﻿/* =====================================================
   Thmanyah Sans (Arabic / RTL only)
   ===================================================== */
@font-face {
    font-family: "Thmanyah Sans";
    src: url("../fonts/Thmanyah-Font-Family/thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Thmanyah Sans";
    src: url("../fonts/Thmanyah-Font-Family/thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Thmanyah Sans";
    src: url("../fonts/Thmanyah-Font-Family/thmanyah typeface/thmanyahsans/woff2/thmanyahsans-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

html[dir="rtl"],
html[dir="rtl"] body {
    --bs-font-sans-serif: "Thmanyah Sans", "Segoe UI", Tahoma, sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
    font-family: "Thmanyah Sans", "Segoe UI", Tahoma, sans-serif;
}

/* =====================================================
   Theme
   ===================================================== */
[data-bs-theme=light] {
    --bs-form-total-bc: #f4c448;
    --bs-app-drawer-bg: #ffffff;
    --bs-app-drawer-header-bg: #f9fafb;
    --bs-app-drawer-footer-bg: #fcfcfd;
    --bs-badge-color: #362626;
    --document-copy-icon: #9CA3AF;
    --document-copy-icon-hover: #6B7280;
    --document-copy-hover-bg: #F3F4F6;
}

[data-bs-theme=dark] {
    --bs-form-total-bc: #212121;
    --bs-app-drawer-bg: #1e2129;
    --bs-app-drawer-header-bg: #181b21;
    --bs-app-drawer-footer-bg: #181b21;
    --bs-badge-color: #f4c448;
    --document-copy-icon: #9CA3AF;
    --document-copy-icon-hover: #D1D5DB;
    --document-copy-hover-bg: rgba(255, 255, 255, 0.08);
}

/* =====================================================
   Shell reveal
   The startup and module overlays stay up until Metronic init finishes.
   ===================================================== */
#platxe-module-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 20000;
    background: var(--bs-body-bg, #fff);
}

html[data-platxe-shell="busy"] #platxe-module-overlay {
    display: block;
}

.platxe-loading-ar {
    display: none;
}

html[lang="ar"] .platxe-loading-en {
    display: none;
}

html[lang="ar"] .platxe-loading-ar {
    display: inline;
}

html[data-platxe-shell="busy"] .app-sidebar {
    transition: none !important;
}

/* =====================================================
   Layout
   ===================================================== */
/*
  Module shells use flex-column on .app-wrapper. Until the sidebar is
  position:fixed, that column places every page under the full menu.
*/
    .app-page:has(.app-sidebar) .app-content {
    padding-top: 0;
}

/*
  The home shell is header-only. Fix it before the body attributes arrive,
  otherwise the first paint is a static header and the page jumps.
*/
@media (min-width: 992px) {
    .app-page:not(:has(.app-sidebar)) > .app-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 110;
        height: var(--bs-app-header-height, 74px);
        background-color: #0B0C10;
        border-bottom: 0;
    }

    .app-page:not(:has(.app-sidebar)) > .app-wrapper {
        margin-top: var(--bs-app-header-height, 74px);
        margin-left: 0;
        margin-right: 0;
    }
}

@media (min-width: 992px) {
    .app-wrapper:has(> .app-sidebar) {
        flex-direction: row !important;
        margin-top: var(--bs-app-header-height, 74px);
    }

    html:not([dir="rtl"]) .app-wrapper:has(> .app-sidebar) {
        margin-left: calc(var(--bs-app-sidebar-width, 265px) + var(--bs-app-sidebar-gap-start, 0px) + var(--bs-app-sidebar-gap-end, 0px));
        margin-right: 0;
    }

    html[dir="rtl"] .app-wrapper:has(> .app-sidebar) {
        margin-right: calc(var(--bs-app-sidebar-width, 265px) + var(--bs-app-sidebar-gap-start, 0px) + var(--bs-app-sidebar-gap-end, 0px));
        margin-left: 0;
    }

    .app-wrapper > .app-sidebar {
        position: fixed;
        /* Above the header so the minimize button, which hangs on the rail edge, can be clicked. */
        z-index: 111;
        top: 0;
        bottom: 0;
        width: var(--bs-app-sidebar-width, 265px);
        min-width: 0;
        max-width: var(--bs-app-sidebar-width, 265px);
        /* Black on first paint. The dark-sidebar body attribute arrives after render. */
        background-color: #050101;
    }

    .app-wrapper > .app-sidebar .app-sidebar-menu {
        overflow: hidden;
        width: 100%;
        min-width: 0;
    }

    #kt_app_sidebar_toggle {
        z-index: 2;
    }

    /* Hover opens the icon rail over the page; the page offset stays at the narrow width. */
    [data-kt-app-sidebar-minimize=on][data-kt-app-sidebar-hoverable=true] .app-wrapper > .app-sidebar:hover:not(.animating) {
        width: var(--bs-app-sidebar-width-actual, 265px);
        max-width: var(--bs-app-sidebar-width-actual, 265px);
    }

    html:not([dir="rtl"]) .app-wrapper > .app-sidebar {
        left: 0;
        right: auto;
    }

    html[dir="rtl"] .app-wrapper > .app-sidebar {
        right: 0;
        left: auto;
    }

    .app-page:has(.app-sidebar) > .app-header {
        position: fixed;
        top: 0;
        z-index: 110;
        height: var(--bs-app-header-height, 74px);
    }

    html:not([dir="rtl"]) .app-page:has(.app-sidebar) > .app-header {
        left: calc(var(--bs-app-sidebar-width, 265px) + var(--bs-app-sidebar-gap-start, 0px) + var(--bs-app-sidebar-gap-end, 0px));
        right: 0;
    }

    html[dir="rtl"] .app-page:has(.app-sidebar) > .app-header {
        right: calc(var(--bs-app-sidebar-width, 265px) + var(--bs-app-sidebar-gap-start, 0px) + var(--bs-app-sidebar-gap-end, 0px));
        left: 0;
    }
}

.plt-top {
    z-index: 999 !important;
}

.app-container {
    padding-left: 15px !important;
    padding-right: 15px !important;
}

/* Keep the quick-create button inside the field when the lookup is width 100%. */
.d-flex.align-items-center > .flex-grow-1 {
    min-width: 0;
}

.invoice-header-layout {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 1rem;
}

.invoice-header-information {
    flex: 1;
    min-width: 0;
}

.invoice-header-summary {
    width: 250px;
    min-width: 250px;
    flex: 0 0 250px;
}

.invoice-view-value {
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.35;
    color: var(--bs-gray-800);
}

.invoice-view-summary {
    width: 150px;
    min-width: 150px;
    max-width: 150px;
    flex: 0 0 150px;
}

.invoice-view-summary-card {
    width: 150px;
    padding: 0.4rem 0.55rem;
}

.invoice-view-summary-card + .invoice-view-summary-card {
    margin-top: 0.4rem;
}

.invoice-view-summary-value {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
}

.invoice-view-summary-label {
    margin-top: 0.15rem;
    color: var(--bs-gray-400);
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.2;
    text-transform: uppercase;
}

@media (max-width: 991.98px) {
    .invoice-header-layout {
        flex-wrap: wrap;
    }

    .invoice-header-summary {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
    }
}

.float-down-left {
    position: absolute;
    left: 0;
    bottom: 20px;
}

.float-down-right {
    position: absolute;
    right: 0;
    bottom: 20px;
}

html[dir=rtl] .float-down-left {
    position: absolute;
    right: 0;
    bottom: 20px;
}

html[dir=rtl] .float-down-right {
    position: absolute;
    left: 0;
    bottom: 20px;
}

html[dir=rtl] .float-up-left {
    position: absolute;
    left: 0;
    top: 0;
}

html:not([dir=rtl]) .float-up-left {
    position: absolute;
    right: 0;
    top: 0;
}
.float-down-left-sm {
    position: absolute;
    left: 0;
    bottom: 10px;
}

.float-down-right-sm {
    position: absolute;
    right: 0;
    bottom: 10px;
}

html[dir=rtl] .float-down-left-sm {
    position: absolute;
    right: 0;
    bottom: 10px;
}

html[dir=rtl] .float-down-right-sm {
    position: absolute;
    left: 0;
    bottom: 10px;
}

/* =====================================================
   Forms
   ===================================================== */
form .row {
    margin-top: 2px;
    margin-bottom: 4px;
}

.row > label {
    align-content: center;
}

form hr {
    margin: 4px !important;
    margin-bottom: 6px !important;
    margin-top: 8px !important;
}

.px-group {
    margin-bottom: 15px;
}

.px-group-title {
    font-size: 12px;
    font-weight: 500;
    /*color: #2c2c2c;*/
    padding-bottom: 3px;
    margin-bottom: 7px;
    border-bottom: 1px dashed #cfd8dc;
}

[data-bs-theme=dark] .px-group-title {
    border-bottom-color: #3a4258;
}

.px-group-content {
    padding-right: 12px;
    padding-left: 12px;
}

/* =====================================================
   Buttons
   ===================================================== */
.btn-xs {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 6px !important;
    font-size: 13px !important;
    border-radius: 4px !important;
    /*gap: 3px!important;*/
}

.btn-check:checked + .btn.btn-light-dark,
.btn-check:active + .btn.btn-light-dark,
.btn.btn-light-dark:focus:not(.btn-active),
.btn.btn-light-dark:hover:not(.btn-active),
.btn.btn-light-dark:active:not(.btn-active),
.btn.btn-light-dark.active,
.btn.btn-light-dark.show,
.show > .btn.btn-light-dark {
    background-color: #9da3b4ab !important;
}

/* =====================================================
   Cards & tables
   ===================================================== */
.card {
    box-shadow: none !important;
}

    .card .card-body {
        padding: 10px;
    }

.no-border {
    border-bottom: none !important;
}

.tb-small > .table > :not(caption) > * > * {
    padding: 2px 2px !important;
    align-content: center !important;
}

/* =====================================================
   Documents
   ===================================================== */
.section-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.empty-lines {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--pi-muted);
}

/* New-document icon sits 1px from the back icon */
.card-header .d-flex > a.btn-icon.btn-clear:has(+ a.plt-new-document) {
    margin-right: 1px !important;
}

/* Line action icons (edit / delete) */
.card-header-min .btn.btn-icon.btn-active-light-primary:hover,
.card-header-min .btn.btn-icon.btn-active-light-danger:hover {
    background-color: #d9d9d9 !important;
}

[data-bs-theme=dark] .card-header-min .btn.btn-icon.btn-active-light-primary:hover,
[data-bs-theme=dark] .card-header-min .btn.btn-icon.btn-active-light-danger:hover {
    background-color: #3a4258 !important;
}

/* Add Line: less space before the icon and between the icon and the label. */
.btn.doc-add-line:not(.btn-outline):not(.btn-dashed):not(.btn-bordered):not(.border-hover):not(.border-active):not(.btn-flush):not(.btn-icon):not(.btn-hover-outline).btn-sm {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding-inline: 0.55rem 0.85rem;
}

.btn.doc-add-line > i {
    padding: 0 !important;
    margin: 0;
}

/* Copy Previous Document. Scoped so other ki-copy icons stay unchanged. */
.btn.document-copy-btn {
    --bs-btn-color: var(--document-copy-icon);
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-color: var(--document-copy-icon-hover);
    --bs-btn-hover-bg: var(--document-copy-hover-bg);
    --bs-btn-hover-border-color: transparent;
    --bs-btn-focus-shadow-rgb: 156, 163, 175;
    --bs-btn-active-color: var(--document-copy-icon-hover);
    --bs-btn-active-bg: var(--document-copy-hover-bg);
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-color: var(--document-copy-icon);
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: transparent;
    color: var(--document-copy-icon);
    background-color: transparent;
    border-color: transparent;
    box-shadow: none;
}

.btn.document-copy-btn:hover,
.btn.document-copy-btn:focus,
.btn.document-copy-btn:active,
.btn.document-copy-btn:focus-visible {
    box-shadow: none;
}

.btn.document-copy-btn .ki-copy {
    color: inherit;
}

/* =====================================================
   Modals & dialogs
   ===================================================== */
.sub-modal {
    margin-left: 140px;
    margin-top: 60px;
}

    .sub-modal .modal-content {
        border: dashed #7f7e7e 1px;
    }

.modal form {
    padding: 15px 10px;
}

/* Keep .modal itself full screen; offset dialog for the workspace sidebar */
html:not([dir="rtl"]) .modal .modal-dialog {
    --workspace-sidebar-width: var(--kt-app-sidebar-width-actual, var(--kt-app-sidebar-width, 265px));
    transform: translateX(calc(var(--workspace-sidebar-width) / 2));
}

html:not([dir="rtl"]) body[data-kt-app-sidebar-minimize="on"] .modal .modal-dialog {
    transform: translateX(37.5px);
}

html[dir="rtl"] .modal .modal-dialog {
    --workspace-sidebar-width: var(--kt-app-sidebar-width-actual, var(--kt-app-sidebar-width, 265px));
    transform: translateX(calc(var(--workspace-sidebar-width) / -2));
}

html[dir="rtl"] body[data-kt-app-sidebar-minimize="on"] .modal .modal-dialog {
    transform: translateX(-37.5px);
}

.modal .modal-dialog {
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 991.98px) {
    .modal .modal-dialog {
        transform: none !important;
        margin-left: auto;
        margin-right: auto;
    }
}

/* SweetAlert must sit above full-page document save spinners (z-index 10050). */
.swal2-container.plt-swal-on-top {
    z-index: 20000 !important;
}

/* =====================================================
   Loaders
   ===================================================== */
.plt-fullscreen-loader {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, .35);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}

.plt-loader-card {
    background: #fff;
    border-radius: 12px;
    padding: 18px 22px;
    min-width: 220px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}

[data-bs-theme=dark] .plt-loader-card {
    background: #1e2129;
    color: #f5f5f5;
}

/* =====================================================
   Syncfusion — inputs
   ===================================================== */
input.e-input,
textarea.e-input,
.e-input-group,
.e-input-group.e-control-wrapper,
.e-input-group.e-disabled,
.e-input-group.e-control-wrapper.e-disabled {
    font-size: 13px !important;
}

    /* .e-input-group .e-input[readonly], .e-input-group.e-control-wrapper .e-input[readonly] {
    background: #d7d7d7!important;
} */

    .e-input-group.read-only,
    .e-input-group.e-control-wrapper.read-only,
    .e-float-input.read-only,
    .e-float-input.e-control-wrapper.read-only {
        background-color: #dbdbdb !important;
    }

        .e-input-group.read-only .e-input,
        .e-input-group.e-control-wrapper.read-only .e-input,
        .e-float-input.read-only input,
        .e-float-input.e-control-wrapper.read-only input,
        .e-float-input.read-only textarea,
        .e-float-input.e-control-wrapper.read-only textarea {
            background-color: #dbdbdb !important;
            color: inherit !important;
        }

[data-bs-theme=dark] .e-input-group.read-only,
[data-bs-theme=dark] .e-input-group.e-control-wrapper.read-only,
[data-bs-theme=dark] .e-float-input.read-only,
[data-bs-theme=dark] .e-float-input.e-control-wrapper.read-only,
[data-bs-theme=dark] .e-input-group.read-only .e-input,
[data-bs-theme=dark] .e-input-group.e-control-wrapper.read-only .e-input,
[data-bs-theme=dark] .e-float-input.read-only input,
[data-bs-theme=dark] .e-float-input.e-control-wrapper.read-only input,
[data-bs-theme=dark] .e-float-input.read-only textarea,
[data-bs-theme=dark] .e-float-input.e-control-wrapper.read-only textarea {
    background-color: #2a3142 !important;
    color: var(--bs-body-color, #f5f5f5) !important;
}

[data-bs-theme=dark] .modal label,
[data-bs-theme=dark] .e-tab .e-content label {
    color: var(--bs-body-color, #f5f5f5);
}

/* =====================================================
   Syncfusion — tabs
   ===================================================== */
.e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-wrap {
    background: #A2D2FC;
    height: 36px !important;
}

    .e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-wrap:hover {
        background: #A2D2FC;
        height: 36px !important;
    }

    .e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-text {
        color: #1b2838 !important;
    }

[data-bs-theme=dark] .e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-wrap,
[data-bs-theme=dark] .e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-wrap:hover {
    background: #1d4e89;
}

[data-bs-theme=dark] .e-tab .e-tab-header .e-toolbar-item.e-active .e-tab-text {
    color: #f5f5f5 !important;
}

.e-tab .e-tab-header .e-toolbar-items .e-toolbar-item.e-active::before {
    height: 0px !important;
}

.e-tab .e-tab-header .e-toolbar-item.e-active.e-ileft .e-text-wrap,
.e-tab .e-tab-header .e-toolbar-item.e-active.e-iright .e-text-wrap {
    height: 36px !important;
}

.e-tab .e-tab-header .e-toolbar-item .e-tab-text {
    font-size: 12px !important;
}

.e-tab .e-tab-header .e-toolbar-item .e-tab-wrap {
    padding: 0 7px !important;
}

/* =====================================================
   Syncfusion — grid & dialog
   ===================================================== */
.e-grid .e-rowcell {
    padding: 6px 2px !important;
    line-height: 22px !important;
    font-size: 12px !important;
}

.e-grid td.e-rowcell.platxe-row-actions {
    padding: 2px 1px !important;
    white-space: nowrap;
    font-size: 0 !important;
    line-height: 1 !important;
}

.e-grid td.e-rowcell.platxe-row-actions .btn {
    margin: 0;
    font-size: 12px;
}

.e-grid td.e-rowcell.platxe-grid-wrap,
.e-grid th.e-headercell.platxe-grid-wrap .e-headercelldiv {
    height: auto;
    overflow: visible;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    text-overflow: clip;
}

.e-grid td.e-rowcell.platxe-desc-column {
    overflow: hidden;
    white-space: nowrap;
}

.platxe-desc {
    display: flex;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
}

.platxe-desc-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.platxe-desc-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #a1a5b7;
    cursor: pointer;
}

.platxe-desc-more .ki-duotone {
    font-size: 14px;
    line-height: 1;
}

.platxe-desc:has(.platxe-desc-more) .platxe-desc-text {
    cursor: help;
}

.platxe-desc-more,
.platxe-desc-more:hover,
.platxe-desc-more:focus-visible {
    cursor: pointer;
}

.platxe-desc-more:hover,
.platxe-desc-more:focus-visible {
    color: #3e97ff;
    background: #eef6ff;
    outline: none;
}

.platxe-desc-dialog {
    width: min(420px, calc(100vw - 2rem));
    max-height: min(70vh, 520px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 0.625rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
    color: var(--bs-gray-900, #181c32);
    background: var(--bs-body-bg, #fff);
}

.platxe-desc-dialog::backdrop {
    background: rgba(0, 0, 0, 0.3);
}

.platxe-desc-dialog-header,
.platxe-desc-dialog-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
}

.platxe-desc-dialog-header {
    justify-content: space-between;
    border-bottom: 1px solid var(--bs-gray-200, #eff2f5);
}

.platxe-desc-dialog-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.platxe-desc-dialog-body {
    margin: 0;
    padding: 1rem 1.25rem;
    max-height: 46vh;
    overflow: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    text-align: start;
    font-size: 0.95rem;
    line-height: 1.5;
}

.platxe-desc-dialog-footer {
    justify-content: flex-end;
    border-top: 1px solid var(--bs-gray-200, #eff2f5);
}

.tooltip.platxe-desc-tooltip {
    z-index: 1080;
}

.tooltip.platxe-desc-tooltip .tooltip-inner {
    max-width: 360px;
    text-align: start;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.e-grid .e-headercelldiv{
    font-size: 12px !important;
}
.e-grid .e-gridcontent {
    min-height: 450px;
}

.e-emptyrow {
    text-align: center;
    font-size: 15px;
}

.e-dialog {
    min-width: 440px !important;
}

.e-rowcell.e-templatecell:has(.badge) {
    justify-items: center;
}
 
/* Bootstrap modals use z-index 1055. Syncfusion confirm dialogs default to 1000 and open behind them. */
.e-dlg-container {
    z-index: 2000 !important;
}

.e-row .btn.btn-light {
    background-color: transparent !important;
}

.e-row .btn-check:checked + .btn.btn-active-light-danger,
.btn-check:active + .btn.btn-active-light-danger,
.btn.btn-active-light-danger:focus:not(.btn-active),
.btn.btn-active-light-danger:hover:not(.btn-active),
.btn.btn-active-light-danger:active:not(.btn-active),
.btn.btn-active-light-danger.active,
.btn.btn-active-light-danger.show,
.show > .btn.btn-active-light-danger {
    background-color: transparent !important;
}

.e-row .btn-check:checked + .btn.btn-active-light-primary,
.btn-check:active + .btn.btn-active-light-primary,
.btn.btn-active-light-primary:focus:not(.btn-active),
.btn.btn-active-light-primary:hover:not(.btn-active),
.btn.btn-active-light-primary:active:not(.btn-active),
.btn.btn-active-light-primary.active,
.btn.btn-active-light-primary.show,
.show > .btn.btn-active-light-primary {
    background-color: transparent !important;
}

/* =====================================================
   Sidebar & menu
   ===================================================== */
/* Same gray as the dark-sidebar rules, so labels are not blue on the first paint. */
.app-wrapper > .app-sidebar .menu .menu-item .menu-link,
.app-wrapper > .app-sidebar .menu .menu-item .menu-link .menu-title,
.app-wrapper > .app-sidebar .menu .menu-item .menu-link .menu-icon,
.app-wrapper > .app-sidebar .menu .menu-item .menu-link .menu-icon .svg-icon,
.app-wrapper > .app-sidebar .menu .menu-item .menu-link .menu-icon i {
    color: #bcbcbc;
}

.app-wrapper > .app-sidebar .menu-heading {
    color: #636674;
}

.app-sidebar .menu-item:has(> .menu-content > .menu-heading) {
    margin-top: 0.35rem;
    padding-top: 0 !important;
}

.app-sidebar .menu-item:has(> .menu-content > .menu-heading) > .menu-content {
    padding-top: 0.2rem;
    padding-bottom: 0.15rem;
}

.app-wrapper > .app-sidebar .menu .menu-item .menu-link.active .menu-title,
.app-wrapper > .app-sidebar .menu .menu-item .menu-link.active .menu-icon,
.app-wrapper > .app-sidebar .menu .menu-item .menu-link.active .menu-icon .svg-icon,
.app-wrapper > .app-sidebar .menu .menu-item .menu-link.active .menu-icon i {
    color: #252526;
}

.app-wrapper > .app-sidebar .menu .menu-item .menu-link.active .menu-bullet .bullet {
    background-color: #252526;
}

[data-kt-app-layout=dark-sidebar] .app-sidebar {
    background-color: #050101;
}

/* [data-bs-theme=dark] [data-kt-app-layout=dark-sidebar] .app-sidebar {
    background-color: #000;
} */

/* .app-sidebar .menu .menu-item .menu-link .menu-title {
    color: #1b1919;
} */

.app-sidebar-menu .menu > .menu-item > .menu-link > .menu-title {
    font-size: 13px !important;
    font-weight: normal !important;
}

[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-title {
    color: #bcbcbc;
}

[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-icon,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-icon .svg-icon,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-icon i {
    color: #bcbcbc;
}

.menu-item {
    padding: 0px;
}

    .menu-item .menu-link {
        font-size: 12px !important;
        font-weight: normal !important;
        padding: 6px 10px;
    }

.app-sidebar .menu .menu-item .menu-link {
    padding-top: 8px;
    padding-bottom: 8px;
}

.menu-rounded .menu-link {
    border-radius: 0.17rem;
}

[data-bs-theme=light] .app-sidebar .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here),
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) {
    background-color: #a9a9a9;
}

[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link.active {
    background-color: gray;
}

    [data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link.active .menu-title {
        color: #252526;
    }

    [data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link.active .menu-bullet .bullet {
        background-color: #252526;
    }

    [data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link.active .menu-icon,
    [data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link.active .menu-icon .svg-icon,
    [data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link.active .menu-icon i {
        color: #252526;
    }

[data-bs-theme=light] .app-sidebar .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-title,
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-title {
}

.menu-sub-indention .menu-item .menu-item .menu-link.active {
    margin: 0;
}

/* [data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.show > .menu-link{
    background-color:red;
}
[data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.show > .menu-link .menu-title {
    color:black;
} */

/* =====================================================
   App drawer
   ===================================================== */
.app-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1054;
    background: rgba(16, 24, 40, .35);
}

.app-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 1055;
    display: flex;
    flex-direction: column;
    width: min(1100px, 95vw);
    background-color: var(--bs-app-drawer-bg, #fff);
    box-shadow: -12px 0 32px rgba(16, 24, 40, .18);
    transform: translateX(100%);
    transition: transform .28s ease-in-out;
    visibility: hidden;
}

    .app-drawer.open {
        transform: translateX(0);
        visibility: visible;
    }

    .app-drawer.app-drawer-sm {
        width: min(560px, 95vw);
    }

    .app-drawer.app-drawer-md {
        width: min(800px, 95vw);
    }

    .app-drawer.app-drawer-lg {
        width: min(1200px, 95vw);
    }

    .app-drawer.app-drawer-xl {
        width: min(1680px, 96vw);
    }

.app-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bs-gray-200, #eaecf0);
    background-color: var(--bs-app-drawer-header-bg, #f9fafb);
}

.app-drawer-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.25rem;
}

.app-drawer-footer {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    padding: .85rem 1.25rem;
    border-top: 1px solid var(--bs-gray-200, #eaecf0);
    background-color: var(--bs-app-drawer-footer-bg, #fcfcfd);
}

[dir="rtl"] .app-drawer {
    right: auto;
    left: 0;
    box-shadow: 12px 0 32px rgba(16, 24, 40, .18);
    transform: translateX(-100%);
}

    [dir="rtl"] .app-drawer.open {
        transform: translateX(0);
    }

@media (max-width: 767.98px) {
    .app-drawer,
    .app-drawer.app-drawer-sm,
    .app-drawer.app-drawer-md,
    .app-drawer.app-drawer-lg,
    .app-drawer.app-drawer-xl {
        width: 100vw;
    }
}





/* Header icon group: RTL margin utilities add the start margin without
   clearing the end margin, so each icon is spaced on both sides. */
html[dir=rtl] .app-navbar > .app-navbar-item.ms-1 {
    margin-left: 0.5rem !important;
    margin-right: 0 !important;
}

@media (min-width: 768px) {
    html[dir=rtl] .app-navbar > .app-navbar-item.ms-md-4 {
        margin-left: 0.5rem !important;
        margin-right: 0 !important;
    }
}

/* English / LTR */
html[dir="ltr"] .e-grid .e-rowcell,
html[dir="ltr"] .e-grid .e-headercell {
    border-right: 1px solid #d9d9d9 !important;
    border-left: 0 !important;
}

/* Arabic / RTL */
html[dir="rtl"] .e-grid .e-rowcell,
html[dir="rtl"] .e-grid .e-headercell {
    border-left: 1px solid #d9d9d9 !important;
    border-right: 0 !important;
}
/* Last row bottom border */
.e-grid .e-gridcontent .e-row:last-child .e-rowcell {
    border-bottom: 1px solid #d9d9d9 !important;
}

[data-bs-theme=dark] .e-grid .e-rowcell,
[data-bs-theme=dark] .e-grid .e-headercell,
[data-bs-theme=dark] .e-grid .e-gridcontent .e-row:last-child .e-rowcell {
    border-color: #3a4258 !important;
}

.e-contextmenu-wrapper .e-menu-parent {
    z-index: 10001 !important;
}

.coa-tree-page {
    padding-bottom: 1.5rem;
}

.coa-stat-card {
    border: 1px solid var(--bs-gray-200, #eaecf0);
    box-shadow: none;
}

.coa-tree-shell {
    border: 1px solid var(--bs-gray-200, #eaecf0);
}

.coa-tree-layout {
    display: flex;
    min-height: 560px;
    border: 1px solid var(--bs-gray-200, #eaecf0);
    border-radius: 0.75rem;
    overflow: hidden;
    background: var(--bs-body-bg, #fff);
}

.coa-tree-pane {
    flex: 1;
    min-width: 0;
    overflow: auto;
    max-height: calc(100vh - 280px);
    padding: 0.5rem 0;
}

.coa-tree-details {
    width: 320px;
    min-width: 280px;
    flex: 0 0 320px;
    border-inline-start: 1px solid var(--bs-gray-200, #eaecf0);
    background: var(--bs-gray-100, #f9fafb);
}

.coa-tree-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 38px;
    padding-block: 0.25rem;
    padding-inline-end: 0.75rem;
    cursor: pointer;
    border-radius: 0.45rem;
    margin-inline: 0.4rem;
}

    .coa-tree-row:hover {
        background: var(--bs-gray-100, #f4f6f8);
    }

    .coa-tree-row.is-selected {
        background: rgba(62, 151, 255, 0.12);
    }

    .coa-tree-row.is-inactive {
        opacity: 0.62;
    }

.coa-tree-toggle {
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    color: var(--bs-gray-600, #6c757d);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .coa-tree-toggle.is-leaf {
        cursor: default;
    }

.coa-tree-leaf-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bs-gray-400, #b5b5c3);
}

.coa-tree-icon.is-parent {
    color: #3e97ff;
}

.coa-tree-icon.is-postable {
    color: #50cd89;
}

.coa-tree-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--bs-gray-800, #3f4254);
    min-width: 4.5rem;
}

.coa-tree-name {
    flex: 1;
    min-width: 0;
    font-size: 0.9rem;
    color: var(--bs-gray-900, #181c32);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.coa-tree-meta {
    gap: 0.35rem;
    align-items: center;
}

.coa-tree-row mark {
    background: #fff3cd;
    color: inherit;
    padding: 0 0.1rem;
    border-radius: 0.15rem;
}

.coa-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--bs-gray-300, #e4e6ef);
    font-size: 0.9rem;
}

    .coa-detail-row span {
        color: var(--bs-gray-600, #7e8299);
    }

@media (max-width: 991.98px) {
    .coa-tree-layout {
        flex-wrap: wrap;
        min-height: 0;
    }

    .coa-tree-pane {
        flex: 1 1 100%;
        max-height: 55vh;
        width: 100%;
    }

    .coa-tree-details {
        flex: 1 1 100%;
        width: 100%;
        min-width: 0;
        border-inline-start: 0;
        border-top: 1px solid var(--bs-gray-200, #eaecf0);
    }
}

/* Syncfusion Excel Filter - keep nested operator menu beside the filter */
 
.e-menu-parent {
    z-index: 1055 !important;
}

.badge {
    font-size: 12px !important;
    font-weight: normal !important;
    padding: 7px 6px;
    border-radius: 0.204rem;
    /* background-color: #f56868b5; */
    color: var(--bs-badge-color, #362626);
}

.badge .btn.btn-flush {
    display: inline;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    vertical-align: baseline;
}

.e-grid .e-pager {
    font-size: 12px !important;
    font-weight: normal !important;
}

.asset-fullscreen-modal {
    overflow: hidden;
}

.asset-fullscreen-modal .modal-content,
.asset-fullscreen-modal form {
    min-height: 0;
}

.asset-modal-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    padding: 0;
}

.asset-tab-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    padding: 1rem 1.5rem 0.5rem;
}
[data-bs-theme=light] .e-grid .e-gridcontent {
    background-color: transparent !important;
}

[data-bs-theme=dark] .e-grid,
[data-bs-theme=dark] .e-grid .e-gridheader,
[data-bs-theme=dark] .e-grid .e-gridcontent,
[data-bs-theme=dark] .e-grid .e-content {
    background-color: var(--bs-body-bg, #15171c) !important;
    color: var(--bs-body-color, #f5f5f5);
}

.activity-composer {
    flex-direction: column;
    align-items: stretch;
}

.activity-stream {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 8rem;
}

.activity-date {
    margin: 0.25rem 0;
    text-align: start;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--bs-gray-500, #667085);
}

.activity-system {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    column-gap: 0.75rem;
    row-gap: 0.25rem;
    padding-block: 0.35rem;
    text-align: start;
    font-size: 0.8125rem;
    color: var(--bs-gray-700, #344054);
}

.activity-system-kind {
    font-weight: 600;
    color: var(--bs-gray-500, #667085);
}

.activity-note {
    padding-block: 0.75rem;
    padding-inline: 1rem;
    text-align: start;
    border: 1px solid var(--bs-gray-200, #eaecf0);
    border-radius: 0.75rem;
    background: var(--bs-app-drawer-header-bg, #f9fafb);
}

.activity-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
    font-size: 0.75rem;
    color: var(--bs-gray-600, #475467);
}

.activity-note-content {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    text-align: start;
}

.activity-composer textarea {
    width: 100%;
    resize: vertical;
    text-align: start;
}

.platxe-auth-footer-menu.menu-sub {
    display: flex !important;
    position: absolute;
    bottom: calc(100% + 8px);
    inset-inline-start: 0;
    z-index: 109;
}

.platxe-auth-footer-menu-end {
    inset-inline-start: auto;
    inset-inline-end: 0;
}

.app-container .e-grid {
    max-width: 100%;
}

.app-container .e-grid .e-gridcontent,
.app-container .e-grid .e-content {
    overflow-x: auto;
}

.app-container .e-grid .e-rowcell .badge {
    white-space: nowrap;
    padding: 0.3rem 0.5rem !important;
    line-height: 1.2;
}

/* Code badge plus display name for standard lookups.
   A short name stays on one row. A name that does not fit wraps to a second line. */
.lookup-code-item,
.lookup-code-value {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.lookup-code-value {
    height: 100%;
    white-space: nowrap;
}

.lookup-code-value .lookup-code-badge.badge {
    display: inline-flex;
    align-items: center;
    margin: 0;
    vertical-align: middle;
}

.e-dropdownbase .e-list-item:has(.lookup-code-item),
.e-rtl .e-dropdownbase .e-list-item:has(.lookup-code-item) {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: auto !important;
    min-height: 32px;
    max-height: none;
    line-height: 1.3;
    text-indent: 0;
    white-space: normal;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-inline: 12px;
}

.lookup-code-badge.badge,
.lookup-stock-badge.badge {
    flex: 0 0 auto;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.15rem 0.4rem;
}

.lookup-stock-badge.badge {
    margin-inline-start: auto;
}

.lookup-balance-badge.badge {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    max-width: 100%;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 0.35rem 0.55rem;
    white-space: normal;
    text-align: start;
}

.source-unit-rate .lookup-balance-badge.badge {
    font-size: 0.65rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.1rem 0.35rem;
}

.source-lines-table {
    table-layout: fixed;
    width: 100%;
}

.source-lines-table .source-item-col {
    width: 300px;
    min-width: 300px;
    max-width: 300px;
}

.source-lines-table .source-unit-col {
    width: 180px;
    min-width: 180px;
    max-width: 180px;
}

.source-lines-table .source-qty-col {
    width: 220px;
    min-width: 220px;
    max-width: 220px;
    white-space: nowrap;
}

.lookup-code-name,
.lookup-code-value-name {
    overflow: hidden;
    min-width: 0;
    font-size: 12px;
    line-height: 1.3;
}

.lookup-code-name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    white-space: normal;
    overflow-wrap: break-word;
}

.lookup-code-value-name {
    text-overflow: ellipsis;
    white-space: nowrap;
}

.country-flag {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    flex: 0 0 auto;
}

.e-ddl.e-input-group:has(.lookup-code-value) {
    display: flex;
    align-items: center;
}

.e-ddl.e-input-group .e-input-value:has(.lookup-code-value) {
    display: flex;
    align-items: center;
    align-self: stretch;
    flex: 1 1 auto;
    height: 100%;
    min-height: 30px;
    margin: 0;
    padding-inline: 8px;
    overflow: hidden;
    line-height: 1;
}

.e-ddl.e-input-group:has(.lookup-code-value) .e-input-group-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Applied only while a grid drag-scroll gesture is active. */
html.plt-grid-drag-scrolling,
html.plt-grid-drag-scrolling * {
    -webkit-user-select: none !important;
    user-select: none !important;
    cursor: grabbing !important;
}

/* Document detail lines. Sales invoice is the reference layout. */
.tb-small > .doc-line-table > :not(caption) > * > * {
    padding: 6px 8px !important;
    vertical-align: top;
    align-content: start !important;
}

.doc-line-table {
    width: 100%;
    margin-bottom: 0;
}

[data-bs-theme=light] .doc-line-table {
    --bs-table-hover-bg: var(--bs-gray-300);
}

.doc-line-table thead th {
    white-space: nowrap;
    vertical-align: middle;
    font-size: 0.75rem;
}

.doc-line-table .line-drag {
    opacity: 0;
    transition: opacity 0.12s ease;
}

.doc-line-table tr:hover .line-drag.is-ready,
.doc-line-table tr:focus-within .line-drag.is-ready {
    opacity: 1;
}

.doc-line-table tr:hover .doc-line-no:has(.line-drag.is-ready) .doc-line-no-value,
.doc-line-table tr:focus-within .doc-line-no:has(.line-drag.is-ready) .doc-line-no-value {
    visibility: hidden;
}

.doc-line-table .line-drag.is-ready {
    cursor: grab;
}

.doc-line-no {
    position: relative;
    width: 42px;
    min-width: 42px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.tb-small > .doc-line-table > :not(caption) > tr > .doc-line-no {
    vertical-align: middle !important;
    align-content: center !important;
}

.doc-line-no-value {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--bs-text-muted, var(--bs-gray-500, #99a1b7));
}

.doc-line-no .line-drag {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.doc-line-section-drag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
}

.doc-line-actions {
    width: 72px;
    white-space: nowrap;
}

.doc-line-kind {
    width: 90px;
    max-width: 90px;
}

.doc-line-kind-badge {
    display: inline-block;
    max-width: 90px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
}

.doc-line-item-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 200px;
}

.doc-line-code.badge {
    --bs-badge-font-weight: 400;
    flex: 0 0 auto;
    font-size: 0.65rem;
    font-weight: 400;
    line-height: 1.2;
    padding: 0.05rem 0.35rem;
}

.doc-line-item-name {
    display: block;
    min-width: 200px;
    font-size: 1em;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.doc-line-desc {
    width: 100%;
    min-width: 200px;
}

.doc-line-desc-text {
    font-size: 0.9em;
    font-weight: 400;
    line-height: 1.35;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.doc-line-refs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 4px;
}

.doc-line-ref-badge.badge {
    --bs-badge-font-size: 0.42rem;
    --bs-badge-padding-y: 0.12rem;
    --bs-badge-padding-x: 0.28rem;
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-height: 1.15rem;
    font-size: 0.42rem;
    font-weight: 600;
    line-height: 1.15;
    padding: 0.12rem 0.28rem;
    white-space: normal;
    text-align: start;
}

.doc-line-unit {
    font-size: 0.82em;
    line-height: 1.25;
    color: var(--bs-text-muted);
}

.doc-line-num {
    white-space: nowrap;
    text-align: end;
    vertical-align: top;
    font-size: 0.84em;
    font-variant-numeric: tabular-nums;
}

.finance-payment-lines .doc-line-num {
    min-width: 100px;
}

.finance-receipt-lines .doc-line-num {
    min-width: 100px;
}

.finance-receipt-lines .doc-line-item {
    min-width: 250px;
}

.debit-note-lines .doc-line-num {
    min-width: 100px;
}

.debit-note-lines .doc-line-item {
    min-width: 250px;
}

.credit-note-lines .doc-line-num {
    min-width: 100px;
}

.credit-note-lines .doc-line-item {
    min-width: 250px;
}

.journal-voucher-lines .doc-line-num {
    min-width: 100px;
}

.journal-voucher-lines .doc-line-item {
    min-width: 300px;
}

.sales-doc-lines .doc-line-num {
    min-width: 100px;
}

.sales-doc-lines.invoice-view-lines .doc-line-num,
.sales-doc-lines.invoice-view-lines .doc-line-unit {
    width: 1%;
    min-width: 0;
    max-width: none;
    white-space: nowrap;
}

.sales-doc-lines .doc-line-item {
    min-width: 250px;
}

.transfer-out-lines .doc-line-num {
    min-width: 100px;
}

.opening-balance-lines,
.consumption-lines,
.consumption-return-lines {
    table-layout: fixed;
}

.opening-balance-lines .doc-line-num,
.opening-balance-lines .doc-line-unit,
.consumption-lines .doc-line-num,
.consumption-lines .doc-line-unit,
.consumption-return-lines .doc-line-num,
.consumption-return-lines .doc-line-unit {
    width: 100px;
    min-width: 100px;
    max-width: 100px;
}

.transfer-out-lines .doc-line-item {
    min-width: 250px;
}

.tb-small > .doc-line-table > :not(caption) > tr > .doc-line-num {
    padding-inline: 10px !important;
}

.doc-line-figure {
    display: block;
    line-height: 1.25;
}

.doc-line-amount {
    display: flex;
    flex-direction: column;
    align-items: end;
    width: 100%;
    gap: 2px;
}

.doc-line-amount .badge {
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.2;
    padding: 0.1rem 0.35rem;
}

.doc-line-total {
    font-weight: 700;
}

/* =====================================================
   Gray sidebar appearance
   Additive only. Dark Sidebar rules above stay as they are.
   ===================================================== */
html[data-platxe-sidebar=gray] .platxe-sidebar-dark-show {
    display: none !important;
}

html:not([data-platxe-sidebar=gray]) .platxe-sidebar-gray-show {
    display: none !important;
}

.platxe-sidebar-appearance {
    margin-inline-end: 0.15rem;
}

html[data-bs-theme=dark] .platxe-sidebar-appearance {
    display: none !important;
}

@media (min-width: 992px) {
    [data-kt-app-sidebar-minimize=on]:not([data-kt-app-sidebar-hoverable=true]) .platxe-sidebar-appearance,
    [data-kt-app-sidebar-minimize=on][data-kt-app-sidebar-hoverable=true] .app-sidebar:not(:hover) .platxe-sidebar-appearance {
        display: none !important;
    }
}

html[data-platxe-sidebar=gray] .platxe-sidebar-appearance .btn {
    color: #111827;
    background-color: transparent;
}

html[data-platxe-sidebar=gray] .platxe-sidebar-appearance .btn:hover {
    background-color: color-mix(in srgb, var(--bs-primary) 8%, #e5e7eb);
    color: #111827;
}

html[data-platxe-sidebar=gray] body:has(.app-sidebar) {
    background-color: #f3f4f6;
}

html[data-platxe-sidebar=gray] .app-wrapper > .app-sidebar,
html[data-platxe-sidebar=gray] [data-kt-app-layout=dark-sidebar] .app-sidebar {
    background-color: #e5e7eb;
}

html[data-platxe-sidebar=gray][data-bs-theme=dark] [data-kt-app-layout=dark-sidebar] .app-sidebar {
    border-right-color: #d1d5db;
    border-left-color: #d1d5db;
}

html[data-platxe-sidebar=gray] [data-kt-app-layout=dark-sidebar] .app-sidebar .app-sidebar-logo {
    border-bottom-color: #d1d5db;
}

html[data-platxe-sidebar=gray] .app-sidebar .app-sidebar-logo-default {
    content: url("../assets/media/logos/default.svg");
    height: 25px;
    width: auto;
}

html[data-platxe-sidebar=gray] .app-sidebar .app-sidebar-logo-minimize {
    content: url("../assets/media/logos/default-small-gray.svg");
    height: 20px;
    width: auto;
}

html[data-platxe-sidebar=gray] .app-sidebar .scroll-y,
html[data-platxe-sidebar=gray] .app-sidebar .hover-scroll-overlay-y {
    scrollbar-color: #d1d5db transparent;
}

html[data-platxe-sidebar=gray] .app-sidebar .scroll-y::-webkit-scrollbar-thumb,
html[data-platxe-sidebar=gray] .app-sidebar .hover-scroll-overlay-y::-webkit-scrollbar-thumb {
    background-color: #d1d5db;
}

html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item .menu-heading {
    color: #4b5563 !important;
}

html[data-platxe-sidebar=gray] .app-wrapper > .app-sidebar .menu .menu-item .menu-link,
html[data-platxe-sidebar=gray] .app-wrapper > .app-sidebar .menu .menu-item .menu-link .menu-title,
html[data-platxe-sidebar=gray] .app-wrapper > .app-sidebar .menu .menu-item .menu-link .menu-icon,
html[data-platxe-sidebar=gray] .app-wrapper > .app-sidebar .menu .menu-item .menu-link .menu-icon .svg-icon,
html[data-platxe-sidebar=gray] .app-wrapper > .app-sidebar .menu .menu-item .menu-link .menu-icon i,
html[data-platxe-sidebar=gray] [data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link,
html[data-platxe-sidebar=gray] [data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-title,
html[data-platxe-sidebar=gray] [data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-icon,
html[data-platxe-sidebar=gray] [data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-icon .svg-icon,
html[data-platxe-sidebar=gray] [data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item .menu-link .menu-icon i {
    color: #111827;
}

html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item .menu-link .menu-bullet .bullet {
    background-color: #4b5563;
}

html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item .menu-link .menu-arrow:after {
    background-color: #4b5563;
}

html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here),
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) {
    background-color: color-mix(in srgb, var(--bs-primary) 8%, #e5e7eb);
    color: #111827;
}

html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-title,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-title,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-icon,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-icon .svg-icon,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-icon i,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-icon,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-icon .svg-icon,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-icon i {
    color: #111827;
}

html[data-platxe-sidebar=gray] [data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-bullet .bullet,
html[data-platxe-sidebar=gray] [data-kt-app-layout=dark-sidebar] .app-sidebar .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-bullet .bullet {
    background-color: #111827;
}

html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.here > .menu-link,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.show > .menu-link,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item .menu-link.active {
    background-color: color-mix(in srgb, var(--bs-primary) 16%, #e5e7eb);
    color: #111827;
}

html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.here > .menu-link .menu-title,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.show > .menu-link .menu-title,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item .menu-link.active .menu-title,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.here > .menu-link .menu-icon,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.here > .menu-link .menu-icon .svg-icon,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.here > .menu-link .menu-icon i,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.show > .menu-link .menu-icon,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.show > .menu-link .menu-icon .svg-icon,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.show > .menu-link .menu-icon i,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item .menu-link.active .menu-icon,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item .menu-link.active .menu-icon .svg-icon,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item .menu-link.active .menu-icon i {
    color: #111827;
}

html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.here > .menu-link .menu-bullet .bullet,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.show > .menu-link .menu-bullet .bullet,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item .menu-link.active .menu-bullet .bullet {
    background-color: #111827;
}

html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.here > .menu-link .menu-arrow:after,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.show > .menu-link .menu-arrow:after,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item .menu-link.active .menu-arrow:after,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item.hover:not(.here) > .menu-link:not(.disabled):not(.active):not(.here) .menu-arrow:after,
html[data-platxe-sidebar=gray] .app-sidebar .menu .menu-item:not(.here) .menu-link:hover:not(.disabled):not(.active):not(.here) .menu-arrow:after {
    background-color: #111827;
}

@media (min-width: 992px) {
    html[data-platxe-sidebar=gray] [data-kt-app-layout=dark-sidebar] .app-sidebar .menu-sub-lg-dropdown {
        background-color: #e5e7eb;
    }
}

/* Module home cards and quick actions, matching the light sidebar. */
.workspace-attention-card {
    transition: background-color .15s ease, box-shadow .15s ease;
}

.workspace-attention-card:hover {
    background-color: var(--bs-gray-200) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-bs-theme=light] .workspace-attention-card {
    background-color: #e5e7eb !important;
}

[data-bs-theme=light] .workspace-attention-card:hover {
    background-color: #d1d5db !important;
}

[data-bs-theme=light] .workspace-attention-card .text-muted,
[data-bs-theme=light] .workspace-attention-card .text-gray-800,
[data-bs-theme=light] .workspace-attention-card .text-gray-700 {
    color: #111827 !important;
}

[data-bs-theme=light] .workspace-attention-card .text-gray-500 {
    color: #1f2937 !important;
}

.workspace-quick-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.35rem;
}

[data-bs-theme=light] .workspace-quick-action {
    background-color: #e5e7eb !important;
    border-color: #d1d5db !important;
    color: #111827 !important;
}

[data-bs-theme=light] .btn.btn-light.workspace-quick-action:hover:not(.btn-active),
[data-bs-theme=light] .btn.btn-light.workspace-quick-action:focus:not(.btn-active),
[data-bs-theme=light] .btn.btn-light.workspace-quick-action:active:not(.btn-active) {
    background-color: color-mix(in srgb, var(--bs-primary) 8%, #e5e7eb) !important;
    border-color: color-mix(in srgb, var(--bs-primary) 8%, #e5e7eb) !important;
    color: #111827 !important;
}

[data-bs-theme=light] .workspace-quick-action .svg-icon,
[data-bs-theme=light] .workspace-quick-action i {
    color: #111827 !important;
}

[data-bs-theme=light] .workspace-section-title {
    color: #111827 !important;
}
 