/*
 * Qt MainWindow replica shell — exact source:
 * ERPSYSTEM/ui/styles/modern_main_window.css
 * ERPSYSTEM/ui/modern_main_layout.py::ModernHeader
 * ERPSYSTEM/modules/main_window/main_window.py::_create_sidebar
 *
 * Scoped to authenticated customer portals ONLY. Master Owner is untouched.
 * UI fidelity does not imply module/workflow/data parity.
 */
body.qt-desktop-mode{background:#fff;color:#244875;font-family:"Segoe UI",Tahoma,Arial,sans-serif}
body.qt-desktop-mode .app{
 display:grid;grid-template-areas:"menubar menubar" "sidebar main" "status status";
 grid-template-columns:clamp(220px,17vw,250px) minmax(0,1fr);
 grid-template-rows:27px minmax(0,1fr) 24px;
 height:100dvh;min-height:520px;overflow:hidden;padding:6px 8px;gap:0 9px;background:#fff
}
.qt-main-menubar,.qt-statusbar,.qt-native-nav,.qt-header-clock,.qt-user-header,.qt-window-bar,.qt-window-tabs,#qt-subtitle{display:none}
body.qt-desktop-mode .qt-main-menubar{
 grid-area:menubar;display:flex;align-items:center;justify-content:flex-start;
 border-bottom:1px solid #b8ccdf;background:#fff;padding:2px 4px;color:#244875;
 position:relative;z-index:55;gap:7px;height:27px
}
.qt-menu{position:relative;flex:none}
.qt-menu>summary{list-style:none;border-radius:3px;cursor:pointer;font-size:12px;padding:3px 9px;line-height:20px;user-select:none}
.qt-menu>summary::-webkit-details-marker{display:none}
.qt-menu>summary:hover,.qt-menu[open]>summary{background:#e8f0f7}
.qt-menu-popup{position:absolute;z-index:90;right:0;top:calc(100% + 2px);min-width:205px;border:1px solid #b8ccdf;border-radius:4px;padding:4px;background:#fff;box-shadow:0 6px 22px #112b4c25}
.qt-menu-command{display:block;border:0;border-radius:2px;background:white;text-align:right;padding:7px 10px;width:100%;color:#244875;font-size:12px;min-height:31px}
.qt-menu-command:hover{background:#e8f0f7}
.qt-menu-command:disabled{color:#8797ab;background:#f6f8fa;cursor:not-allowed}
body.qt-desktop-mode .sidebar{
 grid-area:sidebar;width:auto;min-width:0;min-height:0;display:flex;flex-direction:column;
 padding:10px 0;background:#244875;border:0;overflow:hidden;color:#fff
}
body.qt-desktop-mode .sidebar>.brand,
body.qt-desktop-mode .sidebar>.side-label,
body.qt-desktop-mode .sidebar>#primary-nav,
body.qt-desktop-mode .sidebar>.side-note{display:none!important}
body.qt-desktop-mode .qt-native-nav{
 display:flex;flex-direction:column;gap:6px;padding:0 8px;overflow-y:auto;overflow-x:hidden;flex:1;
 scrollbar-width:thin;scrollbar-color:#91a8c3 #244875
}
.qt-sidebar-button{
 display:block;width:100%;height:44px;min-height:44px;max-height:44px;flex:0 0 44px;
 margin:0;text-align:center;border:1px solid #6d89aa;border-radius:7px;
 background:#244875;color:#fff;font-family:Arial,Tahoma,sans-serif;font-size:22px;font-weight:700;
 line-height:1.15;padding:0 8px;box-shadow:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis
}
.qt-sidebar-button:hover,.qt-sidebar-button:focus-visible{background:#1a3a5c;border-color:#fff;color:white}
.qt-sidebar-button.active{background:#eaf1f9;color:#173b66;border-color:#eaf1f9}
.qt-sidebar-button.active:hover{background:#dde8f5;color:#173b66}
body.qt-desktop-mode .main{
 grid-area:main;min-width:0;min-height:0;display:flex;flex-direction:column;
 padding:0;margin:0;overflow:hidden;background:#fff
}
body.qt-desktop-mode .header{
 min-height:74px;height:74px;flex:0 0 74px;padding:8px 12px;gap:12px;margin:0;
 border-bottom:2px solid #244875;background:#fff;align-items:center;
 display:flex;flex-wrap:nowrap;justify-content:space-between
}
body.qt-desktop-mode .header-title{width:220px;min-width:150px;max-width:220px;overflow:hidden;flex:0 0 220px}
body.qt-desktop-mode .header h1{font-size:20px;font-weight:700;color:#244875;margin:0;padding:4px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.qt-desktop-mode .header .eyebrow{display:none}
body.qt-desktop-mode #qt-subtitle{display:block;font-size:12px;font-weight:500;color:#b8ccdf;margin:0;white-space:nowrap}
body.qt-desktop-mode .qt-header-clock{
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 flex:0 0 120px;width:120px;direction:ltr;gap:2px;color:#102844;text-align:center
}
.qt-header-clock strong{font:800 11px "Courier New",monospace}
.qt-header-clock small{font-size:9px;font-weight:600;color:#64748b}
body.qt-desktop-mode .qt-user-header{
 display:flex;align-items:center;gap:6px;min-width:130px;max-width:280px;
 font-size:11px;font-weight:600;color:#244875;white-space:nowrap
}
.qt-connection-dot{background:#34c759;width:8px;height:8px;border-radius:50%;flex:0 0 8px}
.qt-header-separator{color:#b8ccdf;padding:0 6px}
#qt-user-name{overflow:hidden;text-overflow:ellipsis}
body.qt-desktop-mode .header .account{display:none!important}
body.qt-desktop-mode #tenant-context{display:none!important}
body.qt-desktop-mode #workspace{
 display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;overflow:hidden;
 margin:0;padding:0;background:#fff
}
body.qt-desktop-mode #body-content{
 display:flex;flex-direction:column;min-height:0;min-width:0;overflow:auto;
 background:#f7f9fc;padding:10px 16px 16px;flex:1
}
body.qt-desktop-mode #notice{flex:0 0 auto;margin:6px 0;padding:8px 12px;font-size:12px;border-radius:5px}
body.qt-desktop-mode .qt-window-bar{
 display:flex;align-items:center;justify-content:space-between;flex:0 0 32px;height:32px;
 padding-inline-start:9px;background:#f3f4f6;border:1px solid #c4ccd6;
 border-bottom:1px solid #c4ccd6;color:#172033;font:12px "Segoe UI",Tahoma,sans-serif
}
.qt-window-bar strong{font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qt-window-close{width:42px;min-height:31px;height:31px;padding:0;border:0;border-radius:0;background:transparent;color:#172033;font:17px "Segoe UI",Arial,sans-serif}
.qt-window-close:hover{background:#c42b1c;color:#fff}
body.qt-desktop-mode .qt-window-tabs{
 display:flex;align-items:center;gap:3px;background:#e8f0f7;
 padding:3px 7px;border-bottom:1px solid #b8ccdf;min-height:34px;flex:0 0 34px;overflow:auto
}
.qt-module-tab{border:1px solid #cdd8e5;border-radius:7px 7px 0 0;background:#e9eef5;color:#244875;min-height:29px;height:29px;padding:3px 12px;white-space:nowrap;font-weight:700;font-size:12px}
.qt-module-tab.active{background:#1769c2;color:#fff;border-color:#1769c2}
body.qt-desktop-mode .qt-statusbar{
 grid-area:status;display:flex;align-items:center;justify-content:space-between;
 gap:12px;overflow:hidden;background:#e8f0f7;color:#244875;border-top:1px solid #b8ccdf;
 padding:2px 9px;font-size:11px;min-height:24px
}
.qt-statusbar span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.qt-desktop-mode .main>footer{display:none!important}
body.qt-desktop-mode .panel{padding:12px;border-color:#d7e0eb;border-radius:8px;margin:0 0 8px;box-shadow:none}
body.qt-desktop-mode .panel h2{font-size:17px;color:#244875;margin-bottom:9px}
body.qt-desktop-mode .toolbar{padding:9px 12px;border-color:#d7e0eb;border-radius:8px;gap:7px;margin-bottom:8px}
body.qt-desktop-mode .button.primary{background:#244875;color:#fff;border-radius:8px}
body.qt-desktop-mode .button.primary:hover{background:#1a3a5c}
body.qt-desktop-mode .table-scroll{border:1px solid #d7e0eb;border-radius:8px;background:#fff}
body.qt-desktop-mode th{background:#244875;color:#fff;border-inline-start:1px solid #45668d;text-align:center;font-size:11px;padding:9px 7px;height:42px}
body.qt-desktop-mode td{padding:8px 6px;font-size:12px;height:40px;text-align:center;color:#173a63;border-bottom:1px solid #e5ecf3}
body.qt-desktop-mode tbody tr:nth-child(even){background:#f8fbfe}
body.qt-desktop-mode input:not([type=checkbox]),body.qt-desktop-mode select{
 min-height:34px;font-size:12px;border:1px solid #c8d4e3;border-radius:7px;color:#173a63;padding:5px 9px
}
/* Qt DashboardWidget: matches actual dashboard panels, not the old Cloud placeholder */
body.qt-desktop-mode .qt-dashboard{font-family:"Noto Kufi Arabic","Segoe UI",Tahoma,sans-serif;display:flex;flex-direction:column;gap:9px}
.qt-dashboard-shortcuts{display:flex;direction:ltr;align-items:center;gap:6px;min-height:74px;padding:6px;flex-wrap:wrap;background:#f6f9fc;border:1px solid #d8e4ef;border-radius:11px}
.qt-dashboard-scope{display:flex;direction:rtl;align-items:center;gap:5px;flex:0 0 auto}
.qt-dashboard-scope label{font-size:14px;font-weight:800;color:#60758c}
.qt-dashboard-scope select{height:58px;min-height:58px!important;width:103px;font-weight:800;font-size:14px}
.qt-dashboard-shortcuts button{height:60px;min-height:60px;padding:6px 14px;border:1px solid #c7d6e6;border-radius:8px;color:#173b66;background:white;font-size:15px;font-weight:900;white-space:nowrap}
.qt-dashboard-shortcuts button:not(.qt-refresh){flex:1 0 104px}
.qt-dashboard-shortcuts button:hover{background:#eef5fb;border-color:#7fa2c4}
.qt-dashboard-shortcuts button:disabled{opacity:.38;cursor:not-allowed}
.qt-dashboard-stats{display:flex;direction:ltr;flex-wrap:wrap;gap:10px}
.qt-dashboard-stat{
 direction:rtl;display:flex;flex:1 1 180px;flex-direction:column;gap:4px;min-width:180px;
 height:152px;max-height:152px;border:1px solid #d5e0ec;border-top:2px solid #dce8f3;
 border-radius:11px;background:#fff;padding:14px 17px 12px;overflow:hidden
}
.qt-dashboard-stat-title{font-size:15px;font-weight:900;color:#173b66;line-height:1.4}
.qt-dashboard-stat-value{font-size:33px;font-weight:900;color:#174f86;line-height:1.15;direction:ltr;text-align:right}
.qt-dashboard-stat-unit{font-size:12px;font-weight:700;color:#6f8298}
.qt-dashboard-panels{display:flex;direction:ltr;gap:11px;flex-wrap:wrap}
.qt-dashboard-panel{display:flex;direction:rtl;flex:1 1 300px;flex-direction:column;min-width:300px;min-height:260px;gap:6px;background:#fff;border:1px solid #d7e1ec;border-radius:10px;padding:12px 14px}
.qt-dashboard-panel h3{font-size:16px;font-weight:900;color:#173b66;margin:0;text-align:right}
.qt-dashboard-panel p{flex:1;display:flex;align-items:center;justify-content:center;color:#7f90a3;font-size:12px;text-align:center}
@media(max-width:900px){
 body.qt-desktop-mode .app{grid-template-columns:200px minmax(0,1fr);padding:2px;gap:0 5px}
 body.qt-desktop-mode .header-title{width:auto;flex:1 1 180px}
 body.qt-desktop-mode .qt-user-header{display:none}
 body.qt-desktop-mode #body-content{padding:8px}
 .qt-sidebar-button{font-size:18px}
}
@media(max-width:650px){
 body.qt-desktop-mode .app{grid-template-areas:"menubar" "main" "sidebar" "status";grid-template-columns:minmax(0,1fr);grid-template-rows:27px minmax(0,1fr) 104px 24px;min-height:100dvh}
 body.qt-desktop-mode .sidebar{grid-area:sidebar;padding:3px;overflow:hidden}
 body.qt-desktop-mode .qt-native-nav{flex-direction:row;overflow-x:auto;overflow-y:hidden;padding:2px;gap:5px}
 .qt-sidebar-button{flex:0 0 130px;width:130px;min-height:85px;height:85px;max-height:85px;font-size:16px;white-space:normal}
 body.qt-desktop-mode .header{height:62px;min-height:62px;flex:0 0 62px}
 body.qt-desktop-mode .qt-header-clock{width:105px;flex-basis:105px}
 .qt-dashboard-shortcuts button{flex-basis:120px;font-size:13px}
 .qt-dashboard-panel{min-width:100%;flex-basis:100%}
}


/* Source DashboardWidget: analytical panels. Only data from guarded ERP RPCs. */
.qt-dashboard-trend-svg{width:100%;height:auto;min-height:220px;max-height:245px;overflow:visible;direction:ltr}
.qt-dashboard-trend-svg text{font:700 10px "Noto Kufi Arabic","Segoe UI",sans-serif;fill:#8190a2}
.qt-category-chart{direction:ltr;display:flex;gap:12px;align-items:center;flex:1;min-height:205px}
.qt-category-ring{
 flex:0 0 140px;width:140px;height:140px;position:relative;border-radius:50%;background:#dfe8f2
}
.qt-category-ring:after{content:"";position:absolute;inset:28px;border-radius:50%;background:#fff}
.qt-category-legend{direction:rtl;flex:1;min-width:0}
.qt-category-label{display:flex;align-items:center;gap:6px;margin:12px 0;font-size:11px;min-width:0}
.qt-category-label i{width:10px;height:10px;border-radius:50%;flex:0 0 10px}
.qt-category-label span{flex:1;overflow-wrap:anywhere}
.qt-category-label strong{font-size:10px;white-space:nowrap}
.qt-activity-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1f5;min-height:48px;padding:5px 3px;color:#244875;font-size:12px}
.qt-activity-row strong{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.qt-activity-row small{color:#71849a;flex:0 0 auto;font-size:10px}
.qt-dashboard-bottom .qt-dashboard-panel{min-height:205px}
body.qt-desktop-mode .qt-dashboard-table{width:100%;border-collapse:collapse;font-size:12px}
body.qt-desktop-mode .qt-dashboard-table th{background:#eef3f8;color:#405f7e;border:0;border-bottom:1px solid #d9e3ed;padding:7px 5px;font-size:12px;height:32px;text-align:center}
body.qt-desktop-mode .qt-dashboard-table td{padding:6px 5px;height:32px;text-align:center;color:#244875}
.qt-branch-switcher{
 min-height:20px!important;height:21px;padding:0 6px!important;margin-inline-start:6px;
 font-size:11px!important;font-weight:700;background:#fff;color:#173b66;border:1px solid #9db4cc;border-radius:5px;max-width:210px
}
.qt-dashboard-shift-pill{
 display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;font-size:11px;font-weight:800;
 background:#e6f2fc;color:#174f86;border:1px solid #bfd7ef
}
.qt-dashboard-stat.is-positive .qt-dashboard-stat-value{color:#118349}
.qt-dashboard-stat.is-negative .qt-dashboard-stat-value{color:#c92d25}
.qt-category-center{
 position:relative;z-index:1;display:flex;align-items:center;justify-content:center;
 width:100%;height:100%;font-size:11px;font-weight:900;color:#173b66;text-align:center;pointer-events:none
}
.qt-activity-kind{
 display:inline-block;padding:2px 7px;border-radius:6px;font-size:10px;font-weight:800;margin-inline-end:6px;flex:0 0 auto
}
.qt-activity-kind.is-sale{background:#e7f4ec;color:#117a41}
.qt-activity-kind.is-purchase{background:#eaf1fb;color:#1d4f91}
.qt-activity-kind.is-expense{background:#fdecea;color:#b22720}
.qt-activity-amount{font-weight:900;font-size:12px;color:#173b66;direction:ltr;white-space:nowrap}
.qt-stock-pill{display:inline-block;padding:2px 8px;border-radius:999px;font-size:10px;font-weight:800}
.qt-stock-pill.out{background:#fdeceb;color:#b22720}
.qt-stock-pill.low{background:#fff4e0;color:#9b6200}
@media(max-width:750px){.qt-category-chart{flex-wrap:wrap}.qt-category-ring{flex-basis:120px;width:120px;height:120px}}

/*
 * Exact control labels and structural height/color/layout:
 * ERPSYSTEM/modules/customers/views/customer_management_window.py
 * ERPSYSTEM/modules/suppliers/views/suppliers_window.py
 * ERPSYSTEM/modules/inventory/views/stock_window_main.py
 * ERPSYSTEM/modules/warehouses/views/warehouses_window.py
 * All scoped to authenticated Qt customer shell; Master unaffected.
 */
body.qt-desktop-mode .qt-native-module{
 direction:rtl;display:flex;flex-direction:column;flex:1;min-width:0;min-height:100%;
 gap:7px;font-family:'Segoe UI',Tahoma,Arial,sans-serif;color:#244875
}
body.qt-desktop-mode .qt-native-module-header{
 min-height:62px;display:flex;direction:ltr;align-items:center;justify-content:space-between;
 gap:10px;padding:7px 12px;border:1px solid #d4e1ef;border-radius:8px;background:#fff
}
.qt-native-module-heading{direction:rtl;display:flex;flex:0 0 auto;flex-direction:column;justify-content:center;gap:2px;min-width:190px;text-align:right}
.qt-native-module-heading strong{color:#173e70;font-size:18px;font-weight:900;line-height:1.2}
.qt-native-module-heading small{font-size:10px;font-weight:600;color:#72839a}
.qt-native-command-row{display:flex;align-items:center;direction:ltr;gap:7px;min-width:0;overflow-x:auto;scrollbar-width:thin}
body.qt-desktop-mode .qt-native-action{
 display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;
 height:38px;min-height:38px;padding:6px 13px;flex:0 0 auto;
 font:700 12px 'Segoe UI',Tahoma,Arial,sans-serif;
 color:#fff;background:#244875;border:1px solid #244875;border-radius:5px
}
.qt-native-action:hover:not(:disabled){background:#1a3558;border-color:#1a3558}
.qt-native-action.secondary{background:#4a647f;border-color:#4a647f;color:#fff}
.qt-native-action.secondary:hover:not(:disabled){background:#3d536b;border-color:#3d536b}
.qt-native-action.primary{background:#244875;border-color:#244875}
.qt-native-action.success{background:#1aa158;border-color:#1aa158}
.qt-native-action.success:hover:not(:disabled){background:#118349;border-color:#118349}
.qt-native-action.danger{background:#df382f;border-color:#df382f}
.qt-native-action.danger:hover:not(:disabled){background:#bf281f;border-color:#bf281f}
.qt-native-action:disabled{background:#eef2f6!important;border-color:#e0e5ea!important;color:#8a98aa!important;cursor:not-allowed}
.qt-native-separator{display:inline-block;flex:0 0 1px;height:29px;width:1px;background:#c9d4df;margin:0 6px}
.qt-native-module-main{
 display:flex;flex:1;flex-direction:column;gap:7px;min-height:0;min-width:0;
 background:#f8fafc;border:1px solid #d4e1ef;border-radius:7px;padding:8px;overflow:hidden
}
.qt-native-tabs-host{flex:0 0 auto}
.qt-native-tabs{display:flex;direction:rtl;align-items:end;gap:3px;border-bottom:1px solid #bccad7;min-height:39px}
body.qt-desktop-mode .qt-native-tabs .qt-native-action{
 min-height:36px;height:36px;border:1px solid #cdd8e5;border-radius:7px 7px 0 0;
 background:#e9eef5;color:#244875;padding:5px 15px;font-size:12px;font-weight:700
}
body.qt-desktop-mode .qt-native-tabs .qt-native-action.active{
 background:#1769c2;border-color:#1769c2;color:#fff
}
.qt-native-summary-host:empty,.qt-native-filters-host:empty{display:none}
.qt-native-summary{height:76px;min-height:76px;display:flex;direction:ltr;gap:8px}
.qt-native-summary-card{
 min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;
 flex:1;gap:4px;padding:8px 12px;border:1px solid #d9e3ef;border-radius:8px
}
.qt-native-summary-card span{font-size:10px;font-weight:800;direction:rtl;text-align:right;width:100%}
.qt-native-summary-card strong{font-size:18px;font-weight:900;direction:ltr;text-align:right;width:100%}
.qt-native-summary-card.blue{background:#f4f9ff;color:#135ba1}
.qt-native-summary-card.green{background:#f3fbf6;color:#159447}
.qt-native-summary-card.red{background:#fff6f5;color:#c9372c}
.qt-native-summary-card.amber{background:#fff9f0;color:#a65f00}
.qt-native-filters{
 display:flex;direction:rtl;align-items:center;min-height:68px;gap:7px;
 background:#fff;padding:8px 10px;border:1px solid #d5e0eb;border-radius:8px;
 overflow-x:auto;flex-wrap:nowrap
}
body.qt-desktop-mode .qt-native-filters input:not([type=checkbox]),
body.qt-desktop-mode .qt-native-filters select{
 min-height:36px;height:36px;font:700 12px 'Segoe UI',Tahoma,Arial,sans-serif;flex:0 1 125px;min-width:120px
}
body.qt-desktop-mode .qt-native-filters input:first-child{flex:2 1 320px;min-width:220px;max-width:none}
.qt-native-filters .qt-native-action{height:36px!important;min-height:36px!important}
.qt-native-content{display:flex;flex:1;flex-direction:column;min-height:170px;gap:8px;overflow:auto}
.qt-native-list-options{display:flex;align-items:center;direction:ltr;justify-content:flex-start;gap:7px;padding:4px 8px;min-height:30px;font-size:11px}
body.qt-desktop-mode .qt-native-list-options select{min-width:70px;width:80px;min-height:30px;height:30px;font-size:11px}

/* Original stock table column visibility popup and top-page selection strip. */
body.qt-desktop-mode .qt-native-products .qt-native-list-options{
 justify-content:flex-start;direction:ltr;flex-wrap:wrap;gap:12px;
 background:#fff;border:1px solid #d8e3ed;border-radius:7px;padding:7px 12px
}
body.qt-desktop-mode .qt-native-products .qt-native-list-options .qt-native-action{
 height:34px;min-height:34px;font-size:11px
}
body.qt-desktop-mode .qt-native-products .qt-native-list-options input[type=checkbox]{
 width:17px;height:17px;min-width:17px;accent-color:#244875
}
body.qt-desktop-mode .qt-native-inventory-total{color:#244875;font-weight:800}
body.qt-desktop-mode .qt-native-column-picker{
 display:flex;flex-wrap:wrap;gap:8px;direction:rtl;align-items:center;
 background:#fff;border:1px solid #d5e2f0;border-radius:8px;
 padding:10px 12px;box-shadow:0 3px 10px rgb(36 72 117 / 8%)
}
body.qt-desktop-mode .qt-native-column-picker.hidden{display:none}
body.qt-desktop-mode .qt-native-column-option{
 display:inline-flex;direction:rtl;gap:6px;align-items:center;
 font-size:11px;font-weight:700;color:#244875;cursor:pointer
}
body.qt-desktop-mode .qt-native-column-option input[type=checkbox]{
 width:16px;height:16px;accent-color:#244875
}
.qt-native-table-scroll{display:block;overflow:auto;flex:1;min-width:0;min-height:120px;background:#fff;border:1px solid #b8ccdf}
body.qt-desktop-mode .qt-native-table{width:100%;border-collapse:collapse;background:#fff;font-size:12px;text-align:center;white-space:nowrap}
body.qt-desktop-mode .qt-native-table thead th{
 position:sticky;top:0;z-index:1;background:#244875;color:#fff;border-inline-start:1px solid #45668d;
 font-size:11px;font-weight:800;text-align:center;height:39px;padding:7px 9px
}
body.qt-desktop-mode .qt-native-table tbody td{
 padding:8px 6px;height:40px;border:1px solid #e1e9f2;text-align:center;color:#244875
}
body.qt-desktop-mode .qt-native-table tbody tr:nth-child(even){background:#f6f9fc}
body.qt-desktop-mode .qt-native-table tbody tr:hover{background:#eff7ff;cursor:pointer}
body.qt-desktop-mode .qt-native-table tbody tr.selected,body.qt-desktop-mode .qt-native-table tbody tr.selected td{background:#e8f0f7}
.qt-native-row-actions{min-width:106px}
body.qt-desktop-mode .qt-native-row-actions .qt-native-action{height:28px;min-height:28px;font-size:10px;padding:3px 8px}

/* Current offline StockWindow.display_page: exact column widths & stock badge palette. */
body.qt-desktop-mode .qt-native-stock-table{
 width:max-content;min-width:100%;table-layout:fixed;white-space:nowrap;font-size:11pt
}
body.qt-desktop-mode .qt-native-stock-table thead th{
 height:42px;min-height:42px;background:#244875;
 border-inline-start:1px solid #32618f;font-size:11pt;font-weight:900
}
body.qt-desktop-mode .qt-native-stock-table tbody td{
 height:40px;padding:6px 7px;border:1px solid #e3eaf2;color:#244875
}
body.qt-desktop-mode .qt-native-stock-table tbody tr:nth-child(even){background:#fbfdff}
body.qt-desktop-mode .qt-native-stock-table tbody tr.selected,
body.qt-desktop-mode .qt-native-stock-table tbody tr.selected td{background:#dce9f7}
body.qt-desktop-mode .qt-native-stock-table [data-field="_qt_selector"]{width:42px;min-width:42px;max-width:42px}
body.qt-desktop-mode .qt-native-stock-table [data-field="_qt_seq"]{width:48px;min-width:48px;max-width:48px}
body.qt-desktop-mode .qt-native-stock-table [data-field="name"]{width:360px;min-width:360px;max-width:360px;text-align:right}
body.qt-desktop-mode .qt-native-stock-table td[data-field="name"]{font-weight:900;overflow:hidden;text-overflow:ellipsis}
body.qt-desktop-mode .qt-native-stock-table [data-field="barcode"]{width:170px;min-width:170px;max-width:170px;font-family:'Courier New',monospace}
body.qt-desktop-mode .qt-native-stock-table [data-field="category"]{width:120px;min-width:120px;max-width:120px}
body.qt-desktop-mode .qt-native-stock-table [data-field="_qt_qty"]{width:82px;min-width:82px;max-width:82px}
body.qt-desktop-mode .qt-native-stock-table [data-field="_qt_min"]{width:112px;min-width:112px;max-width:112px}
body.qt-desktop-mode .qt-native-stock-table [data-field="_qt_cost"]{width:130px;min-width:130px;max-width:130px}
body.qt-desktop-mode .qt-native-stock-table [data-field="_qt_price"]{width:138px;min-width:138px;max-width:138px}
body.qt-desktop-mode .qt-native-stock-table [data-field="_qt_value"]{width:165px;min-width:165px;max-width:165px;font-weight:900}
body.qt-desktop-mode .qt-native-stock-table [data-field="_qt_date"]{width:118px;min-width:118px;max-width:118px}
body.qt-desktop-mode .qt-native-stock-table [data-field="_qt_status"]{width:96px;min-width:96px;max-width:96px}
body.qt-desktop-mode .qt-native-stock-table [data-field="_qt_barcode"]{width:96px;min-width:96px;max-width:96px}
body.qt-desktop-mode .qt-native-stock-table th[data-field="name"]{text-align:right}
body.qt-desktop-mode .qt-native-stock-table td[data-field="_qt_status"],
body.qt-desktop-mode .qt-native-stock-table td[data-field="_qt_barcode"]{
 padding:0!important;text-align:center
}
body.qt-desktop-mode .qt-native-stock-status-badge{
 display:inline-flex;align-items:center;justify-content:center;
 min-width:84px;height:32px;padding:0 6px;border:1px solid;
 border-radius:8px;font-weight:900;font-size:12px
}
body.qt-desktop-mode .qt-native-stock-status-badge.available{
 background:#dcf7e7;color:#138247;border-color:#c5eed6
}
body.qt-desktop-mode .qt-native-stock-status-badge.low{
 background:#fff0dd;color:#c56b0a;border-color:#f3d9b7
}
body.qt-desktop-mode .qt-native-stock-status-badge.out{
 background:#fde2e2;color:#c92c27;border-color:#f4caca
}
body.qt-desktop-mode .qt-native-stock-status-badge.unknown{
 background:#eef2f6;color:#536477;border-color:#d0d9e3
}
body.qt-desktop-mode .qt-native-stock-table td[data-field="_qt_barcode"] .qt-native-action{
 background:#edf5fc;color:#154b82;border:1px solid #bdd0e4;
 width:84px;min-width:84px;height:32px;min-height:32px;
 padding:0 4px;border-radius:8px;font-weight:900;font-size:12px
}
body.qt-desktop-mode .qt-native-stock-table td[data-field="_qt_barcode"] .qt-native-action:hover:not(:disabled){
 background:#deecf9;border-color:#8eb1d4
}
body.qt-desktop-mode .qt-native-stock-table td[data-field="_qt_barcode"] .qt-native-action:active:not(:disabled){
 background:#cfe2f5;border-color:#6f9bc6
}

.qt-native-pagination{display:flex;direction:rtl;gap:10px;align-items:center;justify-content:flex-end;min-height:42px;background:#fff;border:1px solid #d9e4ef;border-radius:7px;padding:5px 12px;font-size:11px}
.qt-native-pagination-status{margin:0;margin-inline-end:auto;color:#526d87;font-size:11px}
.qt-native-picked{font-size:11px;color:#174b7e;font-weight:800}
.qt-native-empty{display:flex;justify-content:center;align-items:center;min-height:100px;color:#6a8098;font-size:13px}
.qt-native-quiet{margin:0;color:#6f8194;font-size:11px;line-height:1.7}
.qt-native-ledger-tools{display:flex;align-items:center;gap:9px;min-height:58px;background:white;border:1px solid #d9e2eb;border-radius:7px;padding:10px 13px}
body.qt-desktop-mode .qt-native-ledger-tools select{max-width:400px;min-width:220px}
.qt-native-ledger-stats{display:grid;grid-template-columns:repeat(5,minmax(110px,1fr));gap:8px}
.qt-native-ledger-stat{background:#f4f8fc;border:1px solid #d9e4ef;border-radius:7px;display:flex;flex-direction:column;gap:5px;padding:12px 9px}
.qt-native-ledger-stat small{font-size:10px;font-weight:700;color:#70849b}
.qt-native-ledger-stat strong{font-size:16px;color:#174d82}
/* Original Qt stock window: separate inline More-actions strip and date/quantity search. */
body.qt-desktop-mode .qt-native-products .qt-native-module-header{
 min-height:70px;flex-wrap:wrap;align-content:center
}
body.qt-desktop-mode .qt-native-inventory-more{
 display:flex;flex:1 0 100%;order:3;direction:rtl;align-items:center;
 flex-wrap:wrap;gap:6px;border-top:1px solid #e7eef6;padding-top:7px
}
body.qt-desktop-mode .qt-native-inventory-more.hidden{display:none}
body.qt-desktop-mode .qt-native-inventory-more .qt-native-action{
 font-size:11px;min-height:34px;height:34px
}
body.qt-desktop-mode .qt-native-products .qt-native-filters input[type=date]{
 flex:0 0 148px;min-width:148px;direction:ltr
}
body.qt-desktop-mode .qt-native-products .qt-native-filters input[aria-label="بحث"]{
 flex:2 1 220px;min-width:195px
}
body.qt-desktop-mode .qt-native-products .qt-native-filters input[aria-label="قيمة كمية المخزون"]{
 flex:0 0 75px;min-width:75px;text-align:center;direction:ltr
}
body.qt-desktop-mode .qt-native-products .qt-native-filters select[aria-label="مقارنة كمية المخزون"]{
 flex:0 0 82px;min-width:82px
}
body.qt-desktop-mode .qt-native-inventory-qty-label{
 font-weight:800;font-size:12px;color:#133f6d
}

body.qt-desktop-mode .qt-native-products .qt-native-summary{height:83px;min-height:83px}
body.qt-desktop-mode .qt-native-products .qt-native-action{border-radius:8px}
@media(max-width:1100px){
 .qt-native-module-heading{min-width:140px}
 .qt-native-filters{flex-wrap:wrap;min-height:68px}
 .qt-native-summary-card span{font-size:9px}
 .qt-native-ledger-stats{grid-template-columns:repeat(3,minmax(110px,1fr))}
}
@media(max-width:650px){
 body.qt-desktop-mode .qt-native-module-header{align-items:stretch;flex-direction:column-reverse;height:auto;min-height:94px}
 .qt-native-module-heading{min-width:0}
 .qt-native-command-row{overflow-x:auto;width:100%}
 .qt-native-summary{height:auto;min-height:70px;flex-wrap:wrap}
 .qt-native-summary-card{flex:1 0 40%;min-width:130px}
 .qt-native-ledger-stats{grid-template-columns:repeat(2,minmax(100px,1fr))}
}
@media print{
 body.qt-desktop-mode .sidebar,body.qt-desktop-mode #qt-menubar,body.qt-desktop-mode #qt-statusbar,
 body.qt-desktop-mode .header,body.qt-desktop-mode .qt-native-command-row,
 body.qt-desktop-mode .qt-native-filters,body.qt-desktop-mode .qt-native-pagination{display:none!important}
 body.qt-desktop-mode .app{display:block;height:auto;overflow:visible}
 body.qt-desktop-mode #workspace,body.qt-desktop-mode #body-content,body.qt-desktop-mode .qt-native-content{overflow:visible!important;height:auto}
}


/* PurchasesWindow._create_toolbar/_create_tabs/_create_invoices_totals and SalesInvoiceMixin._create_toolbar */
body.qt-desktop-mode .qt-invoice-shell{display:flex;flex-direction:column;gap:7px;min-height:100%;min-width:0;flex:1;color:#244875}
.qt-invoice-toolbar{
 direction:rtl;display:flex;align-items:center;gap:7px;flex:0 0 auto;
 min-height:58px;padding:8px 12px;background:#fff;border:1px solid #d8e2ec;border-radius:9px;
 overflow-x:auto;scrollbar-width:thin
}
body.qt-desktop-mode .qt-invoice-button{
 border:1px solid #244875;border-radius:8px;background:#244875;color:#fff;
 font:700 11px "Segoe UI",Tahoma,Arial,sans-serif;padding:7px 13px;
 min-width:83px;min-height:42px;max-height:42px;white-space:nowrap;flex:0 0 auto
}
body.qt-desktop-mode .qt-invoice-button:hover:not(:disabled){background:#1d3b61;border-color:#1d3b61}
body.qt-desktop-mode .qt-invoice-button.secondary{background:#4a647f;border-color:#4a647f}
body.qt-desktop-mode .qt-invoice-button.success{background:#18a957;border-color:#18a957}
body.qt-desktop-mode .qt-invoice-button.danger{background:#d9363e;border-color:#d9363e}
body.qt-desktop-mode .qt-invoice-button.outline{background:#fff;color:#b42318;border:1px solid #dc999a}
body.qt-desktop-mode .qt-invoice-button:disabled{background:#aab6c4!important;color:#eef2f6!important;border-color:#aab6c4!important;cursor:not-allowed}
.qt-invoice-fill{flex:1}
.qt-invoice-tabs{display:flex;direction:rtl;align-items:end;flex:0 0 39px;min-height:39px;gap:3px;border-bottom:1px solid #bcc7d4}
body.qt-desktop-mode .qt-invoice-tabs .qt-invoice-button.tab{
 border:1px solid #cdd8e5;background:#e9eef5;color:#244875;min-width:154px;
 min-height:39px;max-height:39px;border-radius:8px 8px 0 0;padding:5px 15px;font-size:12px
}
body.qt-desktop-mode .qt-invoice-tabs .qt-invoice-button.tab.active{background:#1769c2;color:#fff;border-color:#1769c2}
.qt-invoice-views{display:flex;gap:7px;align-items:center;flex-wrap:nowrap}
body.qt-desktop-mode .qt-invoice-views .qt-invoice-button{background:#e9eef5;color:#244875;border:1px solid #cdd8e5;min-height:34px;max-height:34px}
.qt-invoice-workarea{display:flex;flex-direction:column;gap:8px;min-height:0;flex:1;overflow:auto}
body.qt-desktop-mode .qt-invoice-workarea>.panel{margin:0;min-height:0}
body.qt-desktop-mode .qt-invoice-workarea>.panel>.table-scroll{min-height:190px;max-height:none;overflow:auto}
.qt-invoice-summary{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px;flex:0 0 auto;min-height:88px}
.qt-invoice-metric{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;padding:7px 12px;background:#f3f8fe;border-radius:9px;border:1px solid #175ea8}
.qt-invoice-metric span{font-weight:700;font-size:10px;text-align:center;white-space:nowrap}
.qt-invoice-metric strong{font-size:20px;font-weight:800;direction:ltr}
.qt-invoice-metric.blue{background:#f2f7fd;color:#175ea8;border-color:#175ea8}
.qt-invoice-metric.green{background:#f1fbf5;color:#149447;border-color:#149447}
.qt-invoice-metric.red{background:#fff3f4;color:#d9363e;border-color:#d9363e}
.qt-invoice-metric.amber{background:#fff8ed;color:#d97706;border-color:#d97706}
.qt-invoice-filters{
 display:flex;direction:rtl;align-items:center;gap:9px;min-height:62px;flex-wrap:wrap;
 background:#fff;border:1px solid #d8e2ec;border-radius:8px;padding:9px 14px;margin:0 0 8px
}
body.qt-desktop-mode .qt-invoice-filters input{flex:1 1 280px;max-width:430px;min-width:180px}
body.qt-desktop-mode .qt-invoice-filters select{min-width:120px;max-width:155px}
body.qt-desktop-mode .qt-invoice-filters small{font-size:10px;color:#6c8197}
body.qt-desktop-mode .qt-invoice-filters .qt-invoice-button{min-height:34px;max-height:34px}
body.qt-desktop-mode .qt-invoice-shell table{width:100%;font-size:12px;white-space:nowrap}
body.qt-desktop-mode .qt-invoice-shell th{background:#244875;color:#fff;text-align:center;height:40px;border-inline-start:1px solid #45668d}
body.qt-desktop-mode .qt-invoice-shell td{height:40px;padding:7px 6px;text-align:center}
body.qt-desktop-mode .qt-invoice-shell td .button{font-size:10px;padding:5px 8px}
body.qt-desktop-mode .qt-invoice-form-dialog{z-index:100;background:rgba(6,24,48,.64)}
body.qt-desktop-mode .qt-invoice-form-dialog>.panel{
 width:min(1100px,95vw);height:auto;max-height:92vh;margin:auto;overflow:auto;
 background:#fff;border:1px solid #b8ccdf;border-radius:9px;padding:20px
}
.qt-invoice-dialog{width:min(880px,96vw);max-width:880px;min-height:200px}
.qt-invoice-chooser-list{display:flex;flex-direction:column;gap:7px;max-height:50vh;overflow:auto;padding:7px}
.qt-invoice-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px;margin:12px 0}
.qt-invoice-preview-field{display:flex;flex-direction:column;gap:5px;background:#f2f7fd;border:1px solid #dce6f0;border-radius:7px;padding:10px 12px}
.qt-invoice-preview-field small{font-size:11px;color:#65758a}
.qt-invoice-preview-field strong{font-size:13px;color:#244875}
.qt-invoice-feedback{padding:8px;color:#7f3040;font-size:11px;background:#fff3f4}
.qt-invoice-shell .qt-invoice-limits{font-size:11px;line-height:1.6;border-bottom:1px solid #dce6f0;padding:3px 8px;color:#708097}
@media(max-width:1050px){.qt-invoice-summary{grid-template-columns:repeat(3,minmax(125px,1fr))}}
@media(max-width:600px){.qt-invoice-summary{grid-template-columns:repeat(2,minmax(125px,1fr))}.qt-invoice-toolbar{padding:4px}.qt-invoice-tabs{overflow-x:auto}}


/* Native edit dialogs use the original ERP two/three-column form flow. */
body.qt-desktop-mode .qt-native-edit-backdrop{z-index:120}
body.qt-desktop-mode .qt-native-edit-dialog{
 width:min(980px,96vw);max-width:980px;max-height:94dvh;overflow:auto;
 border:1px solid #bed0e2;border-radius:10px;background:#fff;padding:18px 20px
}
body.qt-desktop-mode .qt-native-edit-dialog h2{
 margin:0 0 16px;font-size:19px;font-weight:800;color:#244875;
 border-bottom:1px solid #dae4ee;padding-bottom:10px
}
body.qt-desktop-mode .qt-native-edit-form{display:flex;flex-direction:column;gap:9px}
body.qt-desktop-mode .qt-native-edit-form .form-grid{
 display:grid;grid-template-columns:repeat(3,minmax(185px,1fr));gap:10px 13px;align-items:start
}
body.qt-desktop-mode .qt-native-field{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:#244875;min-width:0}
body.qt-desktop-mode .qt-native-field-label{font-size:12px;font-weight:700}
body.qt-desktop-mode .qt-native-field input:not([type=checkbox]),
body.qt-desktop-mode .qt-native-field textarea,body.qt-desktop-mode .qt-native-field select{
 border:1px solid #c9d6e4;border-radius:6px;min-height:35px;max-width:100%;width:100%;
 color:#244875;background:#fff;padding:7px 9px;font-size:12px;direction:rtl
}
body.qt-desktop-mode .qt-native-field textarea{resize:vertical;min-height:58px;font-family:inherit}
body.qt-desktop-mode .qt-native-field input[type=checkbox]{width:17px;height:17px;min-height:0;margin:8px 0;accent-color:#244875}
body.qt-desktop-mode .qt-native-field input:disabled{background:#eef2f6;color:#60768c;cursor:not-allowed}
body.qt-desktop-mode .qt-native-form-note{background:#f3f7fb;border-inline-start:3px solid #244875;font-size:11px;color:#55718e;margin:0;padding:9px 12px;line-height:1.7;border-radius:5px}
body.qt-desktop-mode .qt-native-edit-form .dialog-actions{
 display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #e0e8f0;
 padding-top:12px;margin-top:4px
}
@media(max-width:850px){body.qt-desktop-mode .qt-native-edit-form .form-grid{grid-template-columns:repeat(2,minmax(150px,1fr))}}
@media(max-width:520px){body.qt-desktop-mode .qt-native-edit-form .form-grid{grid-template-columns:minmax(0,1fr)}}

/* Original Qt profit calculator on the item's pricing tab. */
body.qt-desktop-mode .qt-native-margin-controls{
 display:flex;direction:rtl;align-items:center;gap:5px
}
body.qt-desktop-mode .qt-native-margin-controls input[type=number]{
 flex:1 1 auto;min-width:0
}
body.qt-desktop-mode .qt-native-margin-controls .button{
 flex:0 0 auto;min-height:35px;background:#244875;color:#fff;
 border:1px solid #244875;border-radius:6px;font-weight:800
}
body.qt-desktop-mode .qt-native-margin-controls .button:disabled{
 background:#edf1f5;color:#8793a0;border-color:#d4dde6
}
body.qt-desktop-mode .qt-native-profit-preview{
 display:flex;align-items:center;grid-column:1/-1;
 margin:2px 0 0;padding:10px;background:#d5f4e6;
 border-radius:5px;color:#168a4b;font-size:13px;font-weight:800
}


/* Offline BarcodePreviewDialog: readable in ERP; 38.1x25.4mm print CSS is isolated. */
body.qt-desktop-mode .qt-barcode-preview-backdrop{
 position:fixed;inset:0;display:flex;align-items:center;justify-content:center;
 background:rgba(12,26,48,.60);z-index:1300;padding:14px;direction:rtl
}
body.qt-desktop-mode .qt-barcode-preview-dialog{
 display:flex;flex-direction:column;gap:13px;min-width:0;
 width:min(900px,96vw);max-height:95dvh;overflow:auto;
 background:#f9f9f9;border:1px solid #d2dfec;border-radius:9px;padding:18px 22px;
 color:#244875;font-family:'Segoe UI',Tahoma,Arial,sans-serif
}
body.qt-desktop-mode .qt-barcode-preview-dialog h2{
 text-align:right;color:#244875;font-size:19px;font-weight:900;margin:0;
 border-bottom:1px solid #d9e2eb;padding-bottom:12px
}
body.qt-desktop-mode .qt-barcode-preview-info{
 display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:8px
}
body.qt-desktop-mode .qt-barcode-preview-field{
 border:1px solid #d4deea;border-radius:7px;padding:9px;background:#fff;
 display:flex;flex-direction:column;gap:3px;min-width:0
}
body.qt-desktop-mode .qt-barcode-preview-field strong{font-size:11px;color:#687c92}
body.qt-desktop-mode .qt-barcode-preview-field span{font-size:13px;color:#244875;overflow-wrap:anywhere}
body.qt-desktop-mode .qt-barcode-preview-controls{
 display:flex;gap:16px;flex-wrap:wrap;align-items:center;
 padding:12px;border:1px solid #d3dfe9;border-radius:7px;background:#fff
}
body.qt-desktop-mode .qt-barcode-preview-controls label{
 display:inline-flex;gap:7px;align-items:center;font-size:12px;font-weight:800
}
body.qt-desktop-mode .qt-barcode-preview-controls input{
 width:100px;height:34px;border:1px solid #b9c9db;border-radius:5px;
 padding:4px 7px;font-size:13px;direction:ltr
}
body.qt-desktop-mode .qt-barcode-preview-sheet{
 background:#eef3f8;border:1px dashed #a9b9c9;min-height:140px;
 display:flex;align-items:center;justify-content:center;border-radius:7px;padding:18px
}
body.qt-desktop-mode .qt-barcode-preview-sheet .qt-barcode-physical-label{
 width:38.1mm;height:25.4mm;padding:1.1mm 1.4mm;background:white;
 box-shadow:0 2px 9px #0002;display:flex;flex-direction:column;align-items:center;
 overflow:hidden;border:1px solid #eee;color:#000
}
body.qt-desktop-mode .qt-barcode-preview-sheet .qt-barcode-company{
 font-size:7pt;font-weight:bold;line-height:1.1;text-align:center;
 white-space:nowrap;width:100%;max-height:3.2mm;overflow:hidden;
 text-overflow:ellipsis
}
body.qt-desktop-mode .qt-barcode-preview-sheet .qt-barcode-product-name{
 font-size:7pt;font-weight:bold;line-height:1.3;width:100%;text-align:center;
 overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#244875;max-height:4mm
}
body.qt-desktop-mode .qt-barcode-preview-sheet .qt-barcode-symbol{
 width:100%;height:9mm;min-height:9mm;margin-top:.4mm
}
body.qt-desktop-mode .qt-barcode-preview-sheet .qt-barcode-symbol svg{width:100%;height:100%;display:block}
body.qt-desktop-mode .qt-barcode-preview-sheet .qt-barcode-value{
 font-size:6pt;line-height:1.15;font-family:monospace;direction:ltr
}
body.qt-desktop-mode .qt-barcode-preview-sheet .qt-barcode-price{
 font-size:8pt;line-height:1.3;font-weight:bold;direction:ltr
}
body.qt-desktop-mode .qt-barcode-preview-sheet .qt-barcode-date{
 font-size:5pt;direction:ltr
}
body.qt-desktop-mode .qt-barcode-preview-actions{
 display:flex;gap:9px;justify-content:flex-end;border-top:1px solid #d8e1ed;padding-top:13px
}
body.qt-desktop-mode .qt-barcode-preview-actions button{
 min-height:38px;padding:8px 22px;border-radius:6px;font-size:12px;font-weight:800;
 border:1px solid #244875;background:#fff;color:#244875;cursor:pointer
}
body.qt-desktop-mode .qt-barcode-preview-actions .qt-barcode-print-action{
 background:#244875;color:#fff
}
@media(max-width:600px){
 body.qt-desktop-mode .qt-barcode-preview-info{grid-template-columns:1fr}
 body.qt-desktop-mode .qt-barcode-preview-dialog{padding:12px}
}



/* Latest original ImportDialog: 80/20 preview/mapping split, read-only until
 * server atomic inventory-import, option permissions, and ledger parity pass. */
body.qt-desktop-mode .qt-native-inventory-import-backdrop{
 position:fixed;inset:0;z-index:1300;display:flex;align-items:center;justify-content:center;
 padding:14px;background:rgba(10,25,45,.65);direction:rtl
}
body.qt-desktop-mode .qt-native-inventory-import-dialog{
 width:min(1160px,97vw);max-height:95dvh;overflow:auto;
 display:flex;flex-direction:column;gap:11px;padding:16px 22px;
 background:#f9fbfd;color:#244875;border:1px solid #bbccdf;border-radius:8px
}
body.qt-desktop-mode .qt-native-inventory-import-dialog h2{
 margin:0;font-size:19px;font-weight:900;padding-bottom:10px;border-bottom:1px solid #d7e2ee
}
body.qt-desktop-mode .qt-native-inventory-import-dialog h3{
 margin:0 0 10px;font-size:13px;font-weight:900;color:#244875
}
body.qt-desktop-mode .qt-native-inventory-import-warning{
 background:#fff4e1;border:1px solid #efcf94;border-radius:6px;
 padding:9px 12px;color:#925714;font-size:12px;font-weight:800;margin:0
}
body.qt-desktop-mode .qt-native-inventory-import-file{
 display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:12px;font-weight:800
}
body.qt-desktop-mode .qt-native-inventory-import-file input{
 background:#fff;border:1px solid #bed0e3;border-radius:6px;padding:7px;max-width:400px
}
body.qt-desktop-mode .qt-native-inventory-import-layout{
 display:grid;grid-template-columns:minmax(0,4fr) minmax(165px,1fr);direction:ltr;
 gap:12px;min-height:360px
}
body.qt-desktop-mode .qt-native-inventory-import-left,
body.qt-desktop-mode .qt-native-inventory-import-right{
 direction:rtl;padding:12px;background:#fff;border:1px solid #d5e0ec;
 border-radius:7px;min-width:0
}
body.qt-desktop-mode .qt-native-inventory-import-left{
 display:flex;flex-direction:column;gap:8px
}
body.qt-desktop-mode .qt-native-inventory-import-info{
 margin:0;background:#f0f4f8;border-radius:5px;
 padding:8px;line-height:1.6;font-size:11px
}
body.qt-desktop-mode .qt-native-inventory-import-table{
 overflow:auto;max-height:295px;min-height:140px;border:1px solid #d4e0eb
}
body.qt-desktop-mode .qt-native-inventory-import-table table{
 border-collapse:collapse;table-layout:auto;min-width:100%;white-space:nowrap;
 direction:rtl;font-size:11px;text-align:center
}
body.qt-desktop-mode .qt-native-inventory-import-table th{
 background:#244875;color:white;padding:8px;border:1px solid #426c94
}
body.qt-desktop-mode .qt-native-inventory-import-table td{
 padding:8px;border:1px solid #d7e4ef;color:#244875
}
body.qt-desktop-mode .qt-native-inventory-import-options{
 display:flex;flex-direction:column;gap:8px;margin:0;border:1px solid #dae3ed;
 border-radius:7px;background:#fbfcfe;font-size:12px
}
body.qt-desktop-mode .qt-native-inventory-import-options legend{
 font-size:12px;font-weight:900
}
body.qt-desktop-mode .qt-native-inventory-import-options label{
 display:flex;flex-direction:row;align-items:center;gap:9px
}
body.qt-desktop-mode .qt-native-inventory-import-options input:disabled{
 opacity:.5;cursor:not-allowed
}
body.qt-desktop-mode .qt-native-inventory-import-right{
 overflow:auto;max-height:425px;display:flex;flex-direction:column;gap:6px
}
body.qt-desktop-mode .qt-native-inventory-import-map{
 display:flex;align-items:center;justify-content:space-between;gap:8px;
 min-height:34px;font-size:11px;font-weight:700
}
body.qt-desktop-mode .qt-native-inventory-import-map select{
 width:55%;min-width:90px;height:32px;max-width:180px;
 border:1px solid #c1d1e0;border-radius:4px;
 font-size:11px;background:#fff;color:#244875
}
body.qt-desktop-mode .qt-native-inventory-import-result{
 font-size:12px;font-weight:800;color:#244875;margin:0
}
body.qt-desktop-mode .qt-native-inventory-import-actions{
 display:flex;align-items:center;justify-content:flex-end;gap:10px
}
body.qt-desktop-mode .qt-native-inventory-import-actions button{
 padding:8px 17px;border:1px solid #244875;border-radius:6px;
 color:#244875;background:#fff;font-weight:900;font-size:12px;cursor:pointer
}
body.qt-desktop-mode .qt-native-inventory-import-actions button:first-child{
 background:#244875;color:#fff
}
body.qt-desktop-mode .qt-native-inventory-import-actions .qt-native-import-unavailable{
 opacity:.45;cursor:not-allowed
}
@media(max-width:750px){
 body.qt-desktop-mode .qt-native-inventory-import-layout{
  grid-template-columns:minmax(0,1fr);direction:rtl
 }
 body.qt-desktop-mode .qt-native-inventory-import-right{
  max-height:210px
 }
}

/* Offline Qt ItemDialog: five-tab shell, with genuine Cloud fields only. */
body.qt-desktop-mode .qt-native-product-edit-tabs{
 display:flex;direction:rtl;flex-wrap:wrap;gap:5px;
 background:#eef3f8;border-bottom:2px solid #244875;padding:7px 7px 0;
 border-radius:8px 8px 0 0
}
body.qt-desktop-mode .qt-native-product-edit-tab{
 border:1px solid #c8d7e8;border-radius:8px 8px 0 0;
 padding:8px 12px;background:#fff;color:#244875;font-size:12px;font-weight:800;cursor:pointer
}
body.qt-desktop-mode .qt-native-product-edit-tab.active{
 background:#244875;color:#fff;border-color:#244875
}
body.qt-desktop-mode .qt-native-product-edit-tab:disabled{
 background:#f5f7fa;color:#8592a1;cursor:not-allowed
}
body.qt-desktop-mode .qt-native-product-edit-sections{
 min-height:220px;overflow:auto;background:#f9f9f9;border:1px solid #d9e4ef;
 border-top:0;padding:12px;border-radius:0 0 8px 8px
}
body.qt-desktop-mode .qt-native-product-edit-panel[hidden]{display:none!important}
body.qt-desktop-mode .qt-native-product-edit-summary{
 display:grid;grid-template-columns:repeat(2,minmax(150px,1fr));gap:8px
}
body.qt-desktop-mode .qt-native-product-summary-item{
 display:flex;flex-direction:column;gap:6px;background:#fff;border:1px solid #d9e4ef;
 border-radius:8px;padding:11px;color:#244875
}
body.qt-desktop-mode .qt-native-product-summary-item strong{font-size:12px}
body.qt-desktop-mode .qt-native-product-summary-item span{font-size:14px;font-weight:700}
@media(max-width:550px){
 body.qt-desktop-mode .qt-native-product-edit-summary{grid-template-columns:1fr}
}

/* Original offline login pixmap from resources/branding/hesaby_logo.png, rendered at 100x100. */
.qt-login-logo{font-size:0!important;color:transparent!important;background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAMAAABHPGVmAAABIFBMVEUSLZYFWesCJp8hZOEJVeMfLWZba64CEnYFJ5swS6EAFXmQpdoFKJxIdtoGUOMEE3N0md/Dy+UAABtRYH2LjqSdwvoA//97hacALsI+UHMAf78PPsAKPcEAf3/7+/sAAAAACDgFGEcEZv0BWfvn6O9xepY1RWwMIU8ABWyzt8dJVnhupfnS2uvR09vFx9OSl64AAH4AVv2PuPkAAP8ASvTX5PoBGIutyfcAfv8uOWQFFHaFi6Upd/lHiPVTlPpaZYelqru30vsDZvwBDUFDS3JjaYkAAKoAKK2cobUKJpAAN80AAFUBZfoCZfsDZvwEE3MCRdIDZfwAED4AP/8CE3cGOK8AZvw1hPunrMciLFq9wM8FE3RPWZR6gptpnPSPmcel+wcdAAAAYHRSTlPrVxb0IPz7W537Hvxb+5av+/39/v3+Afz//QQxSwL9AP39+/39/f39/f39/f39/f0DBf0B/P38/QL99/38/fz9/f3O/f39A/v99/0DMG+uzPyN/QQw/Q37/f39kvv9/PtkV6a+AAAKlklEQVR42rWaCX/auBLAlRKSJtm06b277z0h27KNwdhgc98ESEg3zdmczfH9v8XOyBw2toGkv6eWOAGjv+fQaDQSSS1vB2/E5ev6f/67tvYO2tra2vr6unjzsuAu74AsuyF/gD/f/PH2LTk8PPzzz+9eOysmAHb8FT4rFH4TcuAKAPZ/eHi1ldjd29vZeXpq7SaUYrGoKInztWvkuK+HoBBv3pJyuXy1tbdjcupvpcpOS1YURT4/xtvc10EOhBBAILs7wf5nrZdtAmf/B4hTeAUk7wIChDjaqNCFzczKirwYQ+LFQAR55nR5c5ooTTXWNNGQf9AWZUJ26Iqt0gRpjuOEiYTkEZE+eqYvaA4o7fw6dbkixM2nfpJyeoPTl7WsECZKZSRKVX+U0+Sevrj1QGc/UqnqcshBKg+q2qCvam1FPimEDUNC5vh5mq7f0lc2R5b3wxQSYtTTxKSvbj2grM+bn8wxNuvpLU5/o5Wasnw8RyEhRtAc3DJyi3vNGfdmkKLI60GNkYUMI6NLkpR8jJWNPybhBknr+t8EynHAx4jfd3/OMTqMYRcSS1oxUiS9Gy5Yxk9ugvXdahQkn9qupx/8XWS8HrATPdIXTH16R4BSkuUT/5Q5hbj/vDlNb/m7+IY9MF10xLQoiMbEA3h3NPx0WT73KYzMBHmfTvp1z9Ecks15F39hRphhYOdJg3Mb79T9X67g2C/MQw5Sm+n0B38XXeiCCYNaCFHDEBUhQo+j6b2+QDYzPvEZJBh1H5l0UfN+/YsFdT7TFut4v4KPscfAhzfyfnViFjLxrPdBo4vnnPTcYZFG0Zg+EVALyQrGnyqMTJVV54sg/SjIxQIIdWYKE5B8Pj+vLIToyyCSD6KHrHYjn4xFIZ6yfgW9d0UIWwgBP17zKGQSeq2XQjjlqrQIArPL/nXVHUMirB6CSEHIlxtZbvWovRAibH/pQUCQdNpcBBEDwi/qkwIpalH5QrXHBRAYLPvrrisgaJEHuggihrZuG167/bynyE7JhLmWGtYiSAmtUkWIGIfWQgitieg0bWeKI0J60YlwtIBV5P2vY8hm2LXmIJY0Dbcok6KUhDaK2SUQE2fJAqrLPU0/L4FQqwZTy8VFH8Tos76iCBO2l0oCYwWjMYGpKjTYwxCIgR0N2l8ZbAmlJSKtYi6DwLC/TrkkH212Svf6kVFRGFRRmtm2MtNWLMQzPajrNB2ZZmVJcFI1zZIv8cF1VpYuhdAW6ovEaQuc/MoHgbRdkds+PWQdk64AcXCokBjfEtPO2cZspivKTaXYjMtaYiHCvwiYZCMGohRbkzglo25MMHh3BM3GNrJWgdAEhBYSZxIB2Z0IXbzx5DmbjUgmacYKkDYEfLIdFbfG6ppCxsMOvEqX4J9ogQwlHrKn7KfIz3SSLoU4nuICkohsq7sUUpHla7KZJvGQsU0sEAEGt9lUEp86mU+fMp8ymU8ink3yoHgIjJRjgDwshXRAFKV5Iwe9S/XlQfEQDsORxDkXzcqyMoZoGVx3Kko7eIcuLZ4Zx+m3/IO8T39bCsmwDqe9Xullc/wsRgLEjlXXFALaV6NG4CqSQGAh0XE+aJMMPLL2WggMlEUQxQeRXp53rQQpTkc8LFQulmWQSyAxNtkpKmeJmRtFTC0zNi4zAguUECTmw8rZ2dn3vemAiLjrEd+3J4lZ1ArGM/wJeFdc9SHx/ezsandnJyOyh4gAlxMfdLq2hguuGo134V/pTlx56eps6+rq6KgO0SNaF+o4U7qQ4gXBWE9+xcxZaJXDK2jkKCmxYfQds6Urs+MW4RhWNuOiMGaOW0fQ6vVkXA/0UcJUiTE9thqDqQSE+vqCUsrOxtbWhr2gDmI2MprWGcXfAUvUYwI5qkH/jw0mrWucfhu/1425sOAjpt+Y3I6r92puJUYuLgX0JxLRljeYGusw85DBIjExhcTkLlgkoPy2y1EJU0F40DNyPKArnyT4FWN0H0qGYekwZxTzjrE7E4YzBLyGjf81iVNLtaihckvlRmDQ6Hcoiaka9HFEaxJogAXUh0vgqki4A6nEkI1GrEMteHF2RyVdQBofbap+tOyPhiUg9nhgSHcWdArKpawGEM67VoZ9Di4bq2LpkA6mtfDVGqh6KK56Eh8QlqAjiCLWiFkCYqHBUDEIGcCfj7Q/QAgqTarNVQxwYXrqi5FmBsSF16DG+viCxU+tz2oaLLXgdaczPYn9d+EHl5imMQ0vd0wa34uLGIlZAW2J5dyv9NEUMmCZAWL6UkfrS4OBNHiQaqok3akwL3V0aXgnDT3ng0fOwIPkaPcOQnFNesj0taEXyKaS9BTwrUsB+VmfpsNCVM6xFDC94q+WxQNOA4/fMOwk61riRjq9kdLZVRSjq7DGJl6tYGJ6Hl2iA22jYfzjSMdU1TbjJt3JIBHVAgGZxS9+Fz27WPfWXITjn+3P8Mjd0uKq+rX7dVJbeR+XEMe3W9Zh1pJqtwJrucK0trJdTz+/EMJHue6SW25kuTAt4AirJMOxNNcwqQ09cdtuNPDj26EqHt5qiJBj2A0btGXAZ/cNHrW8/jErRaXy7nY9Ip+A4U37SfRXXUtCtw020EUw1D6KyAEDRILhh3GGJaOmxP1qIVgeHLtxqYetUulVSlho6mLmeM+GomCfAbcV/tzXJPxbr1kDHOMq05jpfbUCbZyZtxVR8vAXOg9OvZW285T12lMFIJLIgUES6XESDTDLkrrCc3Xwa42L+o4991WhrHfBQmdEDR3VBWmOJ4lq5oQNcvjIXOpLTEd11fg3sQpSmRkxRPYLcyVbT2E7EZCaV+5Cd+149VWIlbzBQLk6k/o1LiC58NJHXp8vPqMsv+ZTCpyDcviMOWjC3broXEIqnLkmb1MeYrSUSZFzbkNg+7Re/xA1IvyX1XaJ2ui91bitjaNwDtbK0ko7S7+0cSmfbdNKNgsXXoL3s61SqW22otZPJ6lqzCZNJKX5hTrNFnVaCHFaFdp0xOWpR4FbajZvohh/V93Y7aZyeGsOHrznOLQiNrMr7R51SnCpUMekTrZUcnpOxM7ptVtdsHFWjtLYSzc09wvBbdPQFiBQPrwkTkb41cn13NZsaDNzs1wuBz157L6mmfP3mzNEEIZk3OKzTAz3/07+nt/+DW/LvimXfaPS4oZhA9QyRh0ucPcisczZ6pDDhxB9R/Y0EfuC++Upt7psgxkovn1ya2Bnho8Dw8oNG6o6aJimlclwy2o01MxwOBiojZzZ/Ty0JtV1sdHgLt8qPxA7/qQyVophWNYgZw9FBZ0b6oN9D2kFKMuAz+AHV1XbmO6Uh/d9Yzb987ghXy7P5hfMhScup4amw3GmzFGM80hG9PGFA++ExO0q3uQ7vYCHJKqrH8RAYY5AmMqq2/CgKfnHZdxxDxJ/auUtYlZY6pXw4Ip8Xog/uEIWnb9BzNbzwghQcm6UCcJ9+TEf18McksOt5w+RpuAVcchnfMrHfd2Bpbx3mkgciNrdcz74ksVSz3lqKt65KDyvVPjf649e5fOp2dGrq+9niURidxd+JIpFcfLq3dox6Mm9dH/vEJl7MD5EBiTyfXKCzDtCti4MfVn9/ZNqwNn2jsOl1qGteUfhvLNwqepKp+FS/wJp4UKvsxCjRQAAAABJRU5ErkJggg==');background-size:100px 100px;background-repeat:no-repeat;background-position:center;}

/* All invoice pagination and search are server-side, not limited to the first 200 rows. */
body.qt-desktop-mode .qt-invoice-pager{
 display:flex;align-items:center;justify-content:flex-end;gap:10px;direction:rtl;
 padding:7px 11px;margin-top:8px;background:#f7faff;border:1px solid #d8e2ec;border-radius:8px
}
body.qt-desktop-mode .qt-invoice-pager small{margin-inline-end:auto;color:#526d87;font-size:11px}
body.qt-desktop-mode .qt-invoice-pager .qt-invoice-button{height:32px;min-height:32px;max-height:32px}
body.qt-desktop-mode .qt-invoice-filters select[aria-label="عدد الفواتير في الصفحة"]{min-width:70px;width:76px}


/* Original treasury_window.py controls, dimensions, QSS, and ten-column cash table.
 * Accounting data always comes from tenant-authorized ERP RPCs, never local demo.
 */
body.qt-desktop-mode .qt-treasury{
 display:flex;flex:1;flex-direction:column;gap:9px;direction:rtl;
 min-width:0;min-height:100%;color:#244875;font-family:"Segoe UI",Tahoma,Arial,sans-serif
}
.qt-treasury-toolbar{display:flex;align-items:center;justify-content:center;
 flex-wrap:nowrap;overflow-x:auto;gap:7px;min-height:55px;flex:0 0 55px;
 padding:4px 8px;background:#fff;border:1px solid #d7e1eb;border-radius:8px
}
body.qt-desktop-mode .qt-treasury-button{
 min-width:105px;min-height:42px;height:44px;flex:0 0 auto;
 padding:6px 13px;border:1px solid #244875;border-radius:7px;
 background:#244875;color:#fff;font:700 12px "Segoe UI",Tahoma,Arial,sans-serif;
 white-space:nowrap
}
body.qt-desktop-mode .qt-treasury-button:hover:not(:disabled){
 background:#1b395d;border-color:#1b395d
}
body.qt-desktop-mode .qt-treasury-button.secondary{
 background:#eef3f8;border-color:#bdd0e1;color:#244875
}
body.qt-desktop-mode .qt-treasury-button.quick{
 min-width:64px;min-height:31px;height:31px;padding:3px 7px;font-size:11px;
 border-color:#cad8e6;background:#f7faff;color:#244875
}
body.qt-desktop-mode .qt-treasury-button.quick:hover{background:#eaf2fa}
body.qt-desktop-mode .qt-treasury-button:disabled{
 color:#91a1b5!important;background:#eaeef2!important;border-color:#dee5ec!important;cursor:not-allowed
}
body.qt-desktop-mode .qt-treasury-filter{
 display:flex;flex-direction:column;gap:7px;padding:9px 12px;
 min-height:100px;flex:0 0 auto;border:1px solid #d7e1eb;border-radius:7px;
 background:#fff
}
.qt-treasury-filter-row{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.qt-treasury-filter-row>span{white-space:nowrap;font-size:12px;font-weight:700}
body.qt-desktop-mode .qt-treasury-filter-row input,
body.qt-desktop-mode .qt-treasury-filter-row select{
 flex:0 0 125px;min-width:125px;min-height:36px;height:36px;
 padding:4px 7px;font-size:12px;border-radius:5px
}
body.qt-desktop-mode .qt-treasury-filter-row select option:disabled{color:#a3acba}
.qt-treasury-shortcuts{display:flex;align-items:center;gap:5px;flex-wrap:wrap;flex:1}
.qt-treasury-filter-actions{display:flex;align-items:center;justify-content:flex-start;gap:8px}
body.qt-desktop-mode .qt-treasury-filter-actions .qt-treasury-button{min-height:38px;height:38px}
.qt-treasury-result{display:flex;flex:1 1 230px;min-height:210px;max-width:100%;overflow:auto}
.qt-treasury-empty-state{
 display:flex;flex:1;min-height:220px;flex-direction:column;
 align-items:center;justify-content:center;gap:8px;border:1px solid #dbe5ef;
 border-radius:8px;background:#fff;color:#61748a;text-align:center
}
.qt-treasury-empty-icon{display:flex;align-items:center;justify-content:center;
 width:58px;height:58px;font-size:38px;font-weight:700;background:#f0f5fb;
 border-radius:15px;color:#244875
}
.qt-treasury-empty-state h2{font-size:18px;color:#244875;margin:0}
.qt-treasury-empty-state p{font-size:12px;margin:0}
.qt-treasury-scroll{flex:1;min-width:0;max-width:100%;min-height:190px;
 border:1px solid #c4d4e5;border-radius:4px;background:#fff;overflow:auto
}
body.qt-desktop-mode .qt-treasury-table{
 width:100%;white-space:nowrap;border-collapse:collapse;table-layout:auto;font-size:12px
}
body.qt-desktop-mode .qt-treasury-table thead th{
 position:sticky;top:0;z-index:1;background:#244875;color:#fff;
 height:38px;min-width:55px;font-size:11px;font-weight:700;text-align:center;
 border:1px solid #59779a;padding:7px 9px
}
body.qt-desktop-mode .qt-treasury-table tbody td{
 height:36px;padding:6px 7px;border:1px solid #e5ecf2;
 font-size:12px;color:#244875;text-align:center
}
body.qt-desktop-mode .qt-treasury-table tbody tr:nth-child(even){background:#f8fbff}
body.qt-desktop-mode .qt-treasury-table tbody tr:hover{background:#eaf2fc}
/* Source ERPSYSTEM TreasuryWindow.setup_transaction_actions and transaction loop:
   return=red on #ffe8cc, transfer=navy on #EEF3F8, receipt=green,
   disbursement=red; scoped to the ten-column MAIN cashbook only. */
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tbody td.qt-treasury-kind,
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tbody td.qt-treasury-cell-amount{
 font-weight:700;font-variant-numeric:tabular-nums
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tbody tr.qt-treasury-income td.qt-treasury-kind{
 color:#178348;background:#eaf8f0
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tbody tr.qt-treasury-income td.qt-treasury-cell-amount{
 color:#178348
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tbody tr.qt-treasury-expense td.qt-treasury-kind{
 color:#c72d23;background:#fff0ef
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tbody tr.qt-treasury-expense td.qt-treasury-cell-amount{
 color:#c72d23
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tbody tr.qt-treasury-transfer td.qt-treasury-kind{
 color:#244875;background:#eef3f8
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tbody tr.qt-treasury-transfer td.qt-treasury-cell-amount{
 color:#244875
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tbody tr.qt-treasury-return td.qt-treasury-kind,
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tbody tr.qt-treasury-return td.qt-treasury-cell-amount,
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tbody tr.qt-treasury-return td.qt-treasury-cell-description{
 color:#c72d23;background:#ffe8cc;font-weight:800
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tbody td.qt-treasury-cell-description{
 max-width:280px;overflow:hidden;text-overflow:ellipsis;text-align:right
}
body.qt-desktop-mode .qt-treasury-table .qt-treasury-button.small{
 height:26px;min-height:26px;min-width:55px;padding:3px 7px;font-size:10px
}
.qt-treasury-no-results,.qt-treasury-loading{
 display:flex;align-items:center;justify-content:center;flex:1;
 min-height:190px;background:#fff;color:#71849b;font-size:13px;border:1px solid #dce6ef
}
.qt-treasury-pager{
 display:flex;flex:0 0 52px;min-height:52px;align-items:center;
 gap:9px;padding:7px 10px;background:#fff;border:1px solid #d6e1ec;border-radius:6px
}
.qt-treasury-pager>span{font-size:12px;font-weight:700}
body.qt-desktop-mode .qt-treasury-pager select{width:72px;min-height:34px;height:34px;font-size:12px}
body.qt-desktop-mode .qt-treasury-pager .qt-treasury-button{
 min-height:36px;height:36px;min-width:100px
}
.qt-treasury-page-count{min-width:72px;text-align:center;padding:7px;
 background:#eaf2fb;color:#244875;border-radius:5px;font-size:13px}
.qt-treasury-total-label{margin-inline-start:auto;color:#61748a;font-size:11px}
.qt-treasury-totals,.qt-treasury-types-group{background:#fff;border:1px solid #d9e4ee;
 border-radius:7px;padding:9px 10px;flex:0 0 auto
}
.qt-treasury-totals>h3,.qt-treasury-types-group>h3{
 font-size:13px;color:#244875;margin:0 0 8px;font-weight:800
}
.qt-treasury-stat-list{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}
.qt-treasury-stat{display:flex;align-items:center;justify-content:space-between;gap:6px;
 border:1px solid #a2c3e3;border-radius:9px;padding:8px 12px;min-height:72px;background:#f2f8fd
}
.qt-treasury-stat div{display:flex;flex-direction:column;gap:4px;min-width:0}
.qt-treasury-stat span{font-size:12px;font-weight:700}
.qt-treasury-stat strong{font-size:16px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.qt-treasury-stat>b{display:grid;place-items:center;border-radius:50%;
 width:36px;height:36px;flex:0 0 36px;font-size:18px;background:#e2effb
}
.qt-treasury-stat.income{color:#16a05d;background:#f1fbf6;border-color:#b4e1c9}
.qt-treasury-stat.out{color:#e53935;background:#fff3f3;border-color:#f1c0c0}
.qt-treasury-stat.balance{color:#1f6fb2;background:#eff7fe;border-color:#aacfe8}
.qt-treasury-stat.returns{color:#e88714;background:#fff8ef;border-color:#e6c9a3}
.qt-treasury-stat.difference{color:#244875;background:#edf3f9;border-color:#b6cce2}
.qt-treasury-types{display:flex;align-items:stretch;gap:8px;max-height:90px;overflow-x:auto}
.qt-treasury-type{display:flex;flex:0 0 185px;flex-direction:column;gap:2px;
 border:1px solid #c7d9e8;border-radius:8px;padding:7px 12px;background:#f3f8fd
}
.qt-treasury-type span{font-size:12px;color:#244875}
.qt-treasury-type strong{font-size:15px;color:#174e82}
.qt-treasury-type small{font-size:10px;color:#61748a}
.qt-treasury-types-group>.qt-treasury-button{height:28px;min-height:28px;min-width:100px;margin-top:5px}
.qt-treasury-audit{flex:0 0 auto;border:1px solid #e1e7ee;background:#fdfefe;
 border-radius:7px;padding:6px 10px;font-size:11px;color:#71849b
}
.qt-treasury-audit summary{cursor:pointer}
.qt-treasury-audit .panel{margin-top:7px}
.qt-treasury-modal{width:min(990px,94vw);max-width:990px;max-height:90vh;overflow:auto}
.qt-treasury-modal-heading{display:flex;align-items:center;justify-content:space-between;gap:15px;
 margin-bottom:10px;border-bottom:1px solid #dce6f0;padding:6px 0
}
.qt-treasury-modal-heading h2{font-size:19px;color:#244875}
.qt-treasury-modal .panel{margin-bottom:8px}
@media(max-width:1100px){.qt-treasury-stat-list{grid-template-columns:repeat(3,minmax(180px,1fr))}
 .qt-treasury-toolbar{justify-content:start}}
@media(max-width:650px){.qt-treasury-stat-list{grid-template-columns:repeat(2,minmax(135px,1fr))}
 .qt-treasury-types{flex-wrap:wrap;max-height:none}.qt-treasury-filter-row{align-items:stretch}
 .qt-treasury-toolbar{overflow-x:auto}.qt-treasury-pager{overflow-x:auto}}


/* Original users_window.py source-matched roster, filter card and eight-column table.
 * Account mutations remain Master Owner-only. Password changes are self-service.
 */
body.qt-desktop-mode .qt-users-window{
 display:flex;flex:1;min-height:100%;min-width:0;flex-direction:column;
 padding:12px 18px 16px;gap:12px;direction:rtl;color:#244875;
 font-family:"Segoe UI",Tahoma,Arial,sans-serif;background:#f8fafc
}
.qt-users-filters{
 display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:70px;
 padding:14px 16px;border:1px solid #d8e2ed;border-radius:9px;background:#fff
}
.qt-users-filters label{font-size:12px;font-weight:800}
body.qt-desktop-mode .qt-users-filters input{
 flex:1 1 320px;min-width:220px;max-width:520px;height:38px;min-height:38px;font-size:12px
}
body.qt-desktop-mode .qt-users-filters select{width:170px;min-height:38px;height:38px}
.qt-users-summary{display:inline-flex;align-items:center;justify-content:center;
 padding:10px 14px;min-height:38px;background:#eef5fb;color:#244875;
 border:1px solid #d7e3ef;border-radius:7px;white-space:nowrap;font-size:12px;font-weight:800
}
.qt-users-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-height:64px;
 padding:10px 16px;border:1px solid #d8e2ed;border-radius:9px;background:#fff
}
body.qt-desktop-mode .qt-users-button{
 display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;
 min-width:120px;min-height:40px;height:40px;padding:8px 12px;
 color:#fff;background:#244875;border:1px solid #244875;border-radius:7px;
 font:700 12px "Segoe UI",Tahoma,Arial,sans-serif
}
body.qt-desktop-mode .qt-users-button:hover:not(:disabled){background:#1b395d}
body.qt-desktop-mode .qt-users-button.secondary{
 background:#eef3fa;border-color:#c1d3e5;color:#244875
}
body.qt-desktop-mode .qt-users-button.danger{background:#c93333;border-color:#c93333}
body.qt-desktop-mode .qt-users-button:disabled{
 opacity:.45;cursor:not-allowed
}
body.qt-desktop-mode .qt-users-actions>.qt-users-action-spacer{
 flex:1 1 20px;border-right:1px solid #d8e2ec;min-width:2px;min-height:34px
}
.qt-users-admin-info{margin:-6px 0 0;color:#6f8092;font-size:11px;line-height:1.7}
.qt-users-table-scroll{overflow:auto;min-height:210px;flex:1;min-width:0;border:1px solid #c3d4e7;
 border-radius:6px;background:#fff
}
body.qt-desktop-mode .qt-users-table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}
body.qt-desktop-mode .qt-users-table th{position:sticky;top:0;z-index:1;min-height:44px;height:44px;
 padding:9px 10px;color:#fff;background:#244875;text-align:center;font-size:12px;font-weight:800;
 border:1px solid #4b6c93
}
body.qt-desktop-mode .qt-users-table td{height:44px;padding:7px 10px;color:#244875;
 border:1px solid #e1e8f0;text-align:center;font-size:12px
}
body.qt-desktop-mode .qt-users-table tbody tr:nth-child(even){background:#f6f9fd}
body.qt-desktop-mode .qt-users-table tbody tr:hover{background:#e8f1fb}
body.qt-desktop-mode .qt-users-table tbody tr.selected{background:#cfe4fb;outline:2px solid #3977b8;outline-offset:-2px}
.qt-users-empty{height:135px!important;font-size:13px;color:#8492a4}
.qt-users-footer{display:flex;align-items:center;justify-content:space-between;
 gap:8px;padding:8px 14px;min-height:55px;background:#fff;
 border:1px solid #d8e3ef;border-radius:8px
}
.qt-users-range,.qt-users-bottom-summary{font-size:11px;color:#516a85;white-space:nowrap}
.qt-users-stretch{flex:1 1 14px}
body.qt-desktop-mode .qt-users-footer .qt-users-button{min-width:38px;width:38px;
 min-height:34px;height:34px;padding:0;font-size:18px
}
.qt-users-page{display:inline-flex;align-items:center;justify-content:center;
 min-width:72px;height:34px;background:#e9f2fc;border-radius:6px;color:#244875;font-size:12px
}
.qt-users-password{padding:12px 15px;background:#fff;border:1px solid #d8e3ef;border-radius:9px}
.qt-users-password .panel{max-width:600px;margin:0 auto}
.qt-users-dialog-overlay{position:fixed;inset:0;z-index:80;background:rgba(13,35,58,.54);display:grid;place-items:center;padding:24px}
.qt-users-dialog{width:min(920px,96vw);max-height:92vh;overflow:auto;background:#fff;border:1px solid #9ab4d1;border-radius:12px;padding:20px;box-shadow:0 18px 55px rgba(0,0,0,.3);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.qt-users-dialog h3,.qt-users-dialog fieldset,.qt-users-dialog-actions,.qt-users-dialog>.qt-users-admin-info{grid-column:1/-1}
.qt-users-field{display:grid;gap:6px;font-weight:700;color:#244875}.qt-users-field input,.qt-users-field select{min-height:40px}
.qt-users-checks,.qt-users-permissions{border:1px solid #c7d7e8;border-radius:8px;padding:12px;display:flex;gap:12px;flex-wrap:wrap}
.qt-users-checks legend,.qt-users-permissions legend{font-weight:800;color:#173f6b;padding:0 6px}
.qt-users-permissions{display:grid;grid-template-columns:repeat(2,minmax(250px,1fr))}
.qt-users-permission-row{display:grid;grid-template-columns:1fr repeat(3,auto);gap:9px;align-items:center;border-bottom:1px solid #e2eaf3;padding:7px 3px}
.qt-users-permission-row>span{font-weight:700}.qt-users-permission-row label{font-size:11px;display:flex;align-items:center;gap:3px}
.qt-users-dialog-actions{display:flex;justify-content:flex-start;gap:10px;position:sticky;bottom:-20px;background:#fff;padding:12px 0 2px}
@media(max-width:900px){
 .qt-users-window{padding:8px!important}
 .qt-users-actions{flex-wrap:nowrap;overflow-x:auto}
 .qt-users-filters{flex-wrap:wrap}
 .qt-users-summary{white-space:normal}
 .qt-users-bottom-summary{display:none}
 .qt-users-dialog{grid-template-columns:1fr}.qt-users-permissions{grid-template-columns:1fr}
}

/* A dedicated content root per Qt window prevents stale async RPC responses
 * from repainting a newer module after the user navigates away. */
body.qt-desktop-mode .qt-render-root{
 display:flex;flex-direction:column;min-height:100%;min-width:0;flex:1;
 align-items:stretch;position:relative
}
body:not(.qt-desktop-mode) .qt-render-root{display:block;min-width:0}


/* Qt warehouse audit history: real server-side search, warehouse filter and
 * long-term paginated transfer/count records. Original source semantics preserved. */
body.qt-desktop-mode .qt-inventory-history{
 display:flex;flex-direction:column;gap:9px;min-width:0;
 background:#fff;border:1px solid #d4e1ef;border-radius:8px;padding:11px 12px
}
body.qt-desktop-mode .qt-inventory-history h2{font-size:16px;color:#244875;margin:0;font-weight:800}
.qt-inventory-history-filters{
 display:flex;flex-wrap:wrap;align-items:center;gap:9px;
 padding:8px 10px;background:#f7faff;border:1px solid #d9e4ef;border-radius:6px
}
body.qt-desktop-mode .qt-inventory-history-filters input{
 min-height:36px;height:36px;flex:2 1 250px;max-width:440px;
 font-size:12px;min-width:190px
}
body.qt-desktop-mode .qt-inventory-history-filters select{
 min-height:36px;height:36px;flex:1 0 110px;max-width:240px;font-size:12px
}
body.qt-desktop-mode .qt-inventory-history-filters select[aria-label="عدد النتائج في الصفحة"]{
 flex:0 0 74px;width:74px
}
body.qt-desktop-mode .qt-inventory-history-button{
 padding:7px 12px;min-height:34px;height:34px;min-width:80px;
 color:#fff;background:#244875;border:1px solid #244875;
 border-radius:6px;font:700 12px "Segoe UI",Tahoma,Arial,sans-serif
}
body.qt-desktop-mode .qt-inventory-history-button.secondary{
 color:#244875;background:#edf4fb;border-color:#bacddd
}
body.qt-desktop-mode .qt-inventory-history-button:disabled{
 opacity:.48;cursor:not-allowed
}
.qt-inventory-history-body{display:block;min-height:130px;max-width:100%}
.qt-inventory-history-scroll{max-width:100%;width:100%;min-height:120px;overflow:auto}
body.qt-desktop-mode .qt-inventory-history-table{
 border-collapse:collapse;width:100%;font-size:12px;white-space:nowrap;text-align:center
}
body.qt-desktop-mode .qt-inventory-history-table th{
 position:sticky;top:0;z-index:1;padding:9px 12px;height:38px;
 background:#244875;color:#fff;font-weight:800;border:1px solid #48688a
}
body.qt-desktop-mode .qt-inventory-history-table td{
 padding:8px 10px;height:39px;border:1px solid #e0e8f2;color:#244875
}
body.qt-desktop-mode .qt-inventory-history-table tbody tr:nth-child(even){
 background:#f4f8fd
}
.qt-inventory-history-table details{text-align:right;min-width:180px}
.qt-inventory-history-table details summary{cursor:pointer;color:#155c9b}
.qt-inventory-history-table details ul{list-style:disc;padding:7px 20px;margin:4px 0;line-height:1.8}
.qt-inventory-history-empty{display:flex;justify-content:center;align-items:center;
 min-height:115px;color:#697f95;text-align:center;font-size:12px
}
.qt-inventory-history-pagination{
 display:flex;align-items:center;justify-content:flex-end;gap:9px;
 background:#f7faff;border:1px solid #d9e4ef;padding:7px 10px;border-radius:6px
}
.qt-inventory-history-pagination span{margin-inline-end:auto;font-size:11px;color:#526e87}
@media(max-width:700px){
 .qt-inventory-history-filters input{max-width:none}
 .qt-inventory-history-pagination{overflow-x:auto}
}


/* Complete, branch-scoped Qt warehouse balances instead of first 1000 bootstrap rows */
body.qt-desktop-mode .qt-warehouse-balances{
 display:flex;flex-direction:column;gap:9px;min-width:0;
 background:#fff;border:1px solid #d4e1ef;border-radius:8px;padding:11px 12px
}
body.qt-desktop-mode .qt-warehouse-balances h2{
 margin:0;font-size:16px;color:#244875;font-weight:800
}
.qt-warehouse-balance-filters{
 display:flex;flex-wrap:wrap;align-items:center;gap:8px;
 background:#f7faff;border:1px solid #d9e4ef;border-radius:6px;padding:8px 10px
}
body.qt-desktop-mode .qt-warehouse-balance-filters input{
 flex:2 1 260px;min-width:185px;max-width:440px;min-height:36px;height:36px;font-size:12px
}
body.qt-desktop-mode .qt-warehouse-balance-filters select{
 flex:1 0 125px;min-height:36px;height:36px;max-width:240px;font-size:12px
}
body.qt-desktop-mode .qt-warehouse-balance-filters select[aria-label="عدد الأرصدة في الصفحة"]{
 flex:0 0 76px;width:76px
}
body.qt-desktop-mode .qt-warehouse-balance-button{
 min-width:82px;height:34px;min-height:34px;padding:6px 12px;
 background:#244875;color:#fff;border:1px solid #244875;border-radius:6px;
 font:700 12px "Segoe UI",Tahoma,Arial,sans-serif
}
body.qt-desktop-mode .qt-warehouse-balance-button:disabled{opacity:.45;cursor:not-allowed}
.qt-warehouse-balance-content{width:100%;max-width:100%;min-height:92px;overflow:auto}
.qt-warehouse-balance-scroll{width:100%;max-width:100%;overflow:auto}
body.qt-desktop-mode .qt-warehouse-balance-table{
 width:100%;border-collapse:collapse;white-space:nowrap;font-size:12px;text-align:center
}
body.qt-desktop-mode .qt-warehouse-balance-table th{
 background:#244875;color:#fff;border:1px solid #48698e;
 font-weight:800;height:38px;min-width:85px;padding:8px 12px
}
body.qt-desktop-mode .qt-warehouse-balance-table td{
 padding:8px 12px;height:38px;border:1px solid #e1e9f1;color:#244875
}
body.qt-desktop-mode .qt-warehouse-balance-table tbody tr:nth-child(even){background:#f5f9fe}
.qt-warehouse-balance-empty{min-height:82px;display:flex;align-items:center;
 justify-content:center;font-size:12px;color:#6d8093;text-align:center
}
.qt-warehouse-balance-pagination{
 display:flex;align-items:center;justify-content:flex-end;gap:10px;
 background:#f7faff;border:1px solid #d9e4ef;border-radius:6px;padding:7px 10px
}
.qt-warehouse-balance-pagination span{margin-inline-end:auto;color:#526e87;font-size:11px}
@media(max-width:700px){
 .qt-warehouse-balance-pagination{overflow-x:auto}
 .qt-warehouse-balance-filters input{max-width:none}
}


/* Searchable server-paged stock SKU picker for large Qt transfer/count forms. */
.qt-stock-product-picker{display:flex;flex-direction:column;gap:5px;min-width:0;width:100%}
body.qt-desktop-mode .qt-stock-product-picker input,
body.qt-desktop-mode .qt-stock-product-picker select{
 width:100%;min-width:0;height:35px;min-height:35px;padding:5px 8px;
 font-size:12px;border:1px solid #bccbde;border-radius:5px
}
.qt-stock-product-pager{display:flex;align-items:center;gap:7px;justify-content:space-between;min-width:0}
.qt-stock-product-pager small{font-size:10px;color:#59728c;flex:1;text-align:center}
body.qt-desktop-mode .qt-stock-product-pager button{
 min-height:27px;height:27px;min-width:47px;padding:2px 7px;
 background:#eef5fc;color:#244875;border:1px solid #c2d6e8;border-radius:5px;
 font:600 11px "Segoe UI",Tahoma,Arial,sans-serif
}
body.qt-desktop-mode .qt-stock-product-pager button:disabled{opacity:.43;cursor:not-allowed}


/* Staging-only: cash POS, unified invoices, expenses and financial reports
   follow the existing customer Qt palette. Never style Master owner. */
body.qt-desktop-mode .qt-pos-window,
body.qt-desktop-mode .qt-report-window,
body.qt-desktop-mode .qt-expenses-window,
body.qt-desktop-mode .qt-expense-history,
body.qt-desktop-mode .qt-report-results{
  border:1px solid #c8d6e7;
  background:#fff;
  border-radius:4px;
  box-shadow:0 1px 2px rgba(20,45,75,.06);
}
body.qt-desktop-mode .qt-pos-window h2,
body.qt-desktop-mode .qt-report-window h2,
body.qt-desktop-mode .qt-expenses-window h2{
  color:#244875;
  font-weight:700;
}
body.qt-desktop-mode .qt-invoice-unified-tabs{
  display:flex;flex-wrap:wrap;gap:6px;
  padding:8px 11px;border-bottom:1px solid #cad7e6;
  background:#eaf0f7;margin-bottom:8px;
}
body.qt-desktop-mode .qt-invoice-unified-tabs button{
  background:#fff;color:#244875;border:1px solid #c2cfdf;
  padding:8px 16px;border-radius:4px;cursor:pointer;
}
body.qt-desktop-mode .qt-invoice-unified-tabs button.active{
  color:white;background:#244875;border-color:#244875;
}
body.qt-desktop-mode .qt-report-cards{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));
  gap:12px;margin:12px 0;
}
body.qt-desktop-mode .qt-report-cards article{
  display:flex;flex-direction:column;gap:8px;
  background:#f7f9fc;padding:12px;border:1px solid #d5dfe9;
}
body.qt-desktop-mode .qt-report-cards strong{
  font-size:20px;color:#244875;
}
body.qt-desktop-mode .qt-expense-history .qt-expense-results,
body.qt-desktop-mode .qt-pos-window .invoice-lines{width:100%;}
body.qt-desktop-mode .qt-expense-form textarea{width:100%;min-height:60px;}
@media(max-width:760px){
 body.qt-desktop-mode .qt-report-cards{grid-template-columns:repeat(2,minmax(0,1fr));}
 body.qt-desktop-mode .qt-invoice-unified-tabs{padding:5px;}
}

/* 2026-11-12: customer Qt treasury, POS and report extensions.
   Scoped to customer desktop; platform Master UI is untouched. */
body.qt-desktop-mode .qt-cashbox-transfers .form-grid,
body.qt-desktop-mode .qt-report-window .form-grid,
body.qt-desktop-mode .qt-pos-window .form-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:10px;
}
body.qt-desktop-mode .qt-cashbox-transfers label,
body.qt-desktop-mode .qt-report-window label,
body.qt-desktop-mode .qt-pos-window label{
  display:flex;flex-direction:column;gap:5px;font-weight:600;color:#244875;
}
body.qt-desktop-mode .qt-cashbox-transfers select,
body.qt-desktop-mode .qt-cashbox-transfers input,
body.qt-desktop-mode .qt-report-window select,
body.qt-desktop-mode .qt-report-window input,
body.qt-desktop-mode .qt-pos-window select,
body.qt-desktop-mode .qt-pos-window input{
  max-width:100%;min-width:0;box-sizing:border-box;
}
body.qt-desktop-mode .qt-cashbox-transfer-form,
body.qt-desktop-mode .qt-report-window form{
  display:flex;flex-direction:column;gap:10px;
}
body.qt-desktop-mode .qt-cashbox-transfer-history,
body.qt-desktop-mode .qt-report-result-table{
  max-width:100%;overflow-x:auto;
}
body.qt-desktop-mode .qt-cashbox-transfers .table-scroll{
  max-width:100%;overflow-x:auto;
}
body.qt-desktop-mode .qt-report-pager{
  display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 0;
}
body.qt-desktop-mode .qt-pos-receipt{
  border:1px solid #b9cad9;background:#f6faff;color:#244875;
}
.qt-pos-receipt-lines{width:100%;border-collapse:collapse;margin:10px 0}
.qt-pos-receipt-lines th,.qt-pos-receipt-lines td{border-bottom:1px dashed #9ca3af;padding:5px;text-align:center}
@media print{
 body.qt-print-pos-receipt *{visibility:hidden!important}
 body.qt-print-pos-receipt .qt-pos-receipt,body.qt-print-pos-receipt .qt-pos-receipt *{visibility:visible!important}
 body.qt-print-pos-receipt .qt-pos-receipt .button{display:none!important}
 body.qt-print-pos-receipt .qt-pos-receipt{display:block!important;position:absolute;inset:0;width:80mm;margin:0 auto;padding:4mm;border:0;box-shadow:none;background:#fff;color:#000;direction:rtl}
 body.qt-print-pos-receipt .qt-pos-receipt-lines{font-size:10px}
}
@media(max-width:720px){
 body.qt-desktop-mode .qt-cashbox-transfers .form-grid,
 body.qt-desktop-mode .qt-report-window .form-grid,
 body.qt-desktop-mode .qt-pos-window .form-grid{
   grid-template-columns:1fr;
 }
}

/* Print the authorized invoice preview ONLY when the user explicitly selects
   "طباعة المعاينة". No other Cloud screen is affected by normal printing. */
@media print {
 @page{size:A4;margin:12mm;}
 body.qt-print-invoice-preview *{visibility:hidden!important;}
 body.qt-print-invoice-preview .qt-invoice-preview,
 body.qt-print-invoice-preview .qt-invoice-preview .qt-invoice-dialog,
 body.qt-print-invoice-preview .qt-invoice-preview .qt-invoice-dialog *{
  visibility:visible!important;
 }
 body.qt-print-invoice-preview .qt-invoice-preview{
  position:absolute!important;inset:0!important;display:block!important;
  padding:0!important;margin:0!important;overflow:visible!important;
  background:white!important;
 }
 body.qt-print-invoice-preview .qt-invoice-dialog{
  position:relative!important;inset:auto!important;margin:0!important;
  border:0!important;box-shadow:none!important;background:white!important;
  color:#111!important;max-width:none!important;width:100%!important;
  min-height:0!important;max-height:none!important;overflow:visible!important;
 }
 body.qt-print-invoice-preview .qt-invoice-preview .dialog-actions{
  display:none!important;
 }
 body.qt-print-invoice-preview .qt-invoice-preview table{
  width:100%!important;border-collapse:collapse!important;
 }
 body.qt-print-invoice-preview .qt-invoice-preview th,
 body.qt-print-invoice-preview .qt-invoice-preview td{
  padding:6px!important;border:1px solid #888!important;
 }
}


/* Staging: inventory stock-alert and physical-count correction controls.
   Customer Qt windows only; the Master dashboard is not restyled. */
body.qt-desktop-mode .qt-stock-adjustment-backdrop{
 display:flex;align-items:center;justify-content:center;z-index:1150;
}
body.qt-desktop-mode .qt-stock-adjustment-dialog{
 width:min(860px,94vw);max-height:90vh;overflow:auto;
}
body.qt-desktop-mode .qt-stock-adjustment-dialog .table-scroll{
 max-height:42vh;overflow:auto;margin:12px 0;
}
body.qt-desktop-mode .qt-stock-adjustment-form{
 display:flex;flex-direction:column;gap:12px;
}
body.qt-desktop-mode .qt-stock-adjustment-form label{
 display:flex;gap:8px;align-items:center;
}
body.qt-desktop-mode .qt-stock-adjustment-form label:first-child{
 flex-direction:column;align-items:stretch;
}
body.qt-desktop-mode .qt-stock-adjustment-form input[type=text]{
 width:100%;max-width:100%;box-sizing:border-box;
}
body.qt-desktop-mode .qt-warehouse-alert-summary{
 padding:8px 12px;background:#fff7e4;color:#8a5110;
 border:1px solid #eed4a4;border-radius:6px;
}
body.qt-desktop-mode .qt-inventory-history-table td .qt-inventory-history-button{
 white-space:nowrap;
}
@media(max-width:760px){
 body.qt-desktop-mode .qt-stock-adjustment-dialog{width:96vw;}
 body.qt-desktop-mode .qt-stock-adjustment-dialog .table-scroll{max-height:35vh;}
}


/* Scoped Qt stock journal and reorder thresholds; Master console unchanged. */
body.qt-desktop-mode .qt-reorder-shade{display:flex;align-items:center;justify-content:center;z-index:1150}
body.qt-desktop-mode .qt-reorder-dialog{width:min(720px,95vw);max-height:90vh;overflow:auto}
body.qt-desktop-mode .qt-reorder-form{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}
body.qt-desktop-mode .qt-reorder-form label{display:flex;flex-direction:column;gap:6px;min-width:170px;flex:1}
body.qt-desktop-mode .qt-reorder-form input{width:100%;max-width:100%;box-sizing:border-box}
body.qt-desktop-mode .qt-reorder-history .table-scroll{max-height:32vh;overflow:auto}
body.qt-desktop-mode .qt-stock-movement-filters{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:12px 0}
body.qt-desktop-mode .qt-stock-movement-filters label{display:flex;flex-direction:column;gap:4px;min-width:120px;flex:1}
body.qt-desktop-mode .qt-stock-movement-filters input,
body.qt-desktop-mode .qt-stock-movement-filters select{width:100%;box-sizing:border-box;min-height:34px}
body.qt-desktop-mode .qt-stock-movement-content .table-scroll{max-height:56vh;overflow:auto}
body.qt-desktop-mode .qt-stock-movement-content th{white-space:nowrap}
body.qt-desktop-mode .qt-stock-movement-summary{padding:8px 10px;border:1px solid var(--border,#ddd);border-radius:4px}
body.qt-desktop-mode .qt-stock-movement-pager{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}
body.qt-desktop-mode .qt-warehouse-balance-table .qt-warehouse-balance-button{white-space:nowrap}
@media(max-width:760px){
 body.qt-desktop-mode .qt-stock-movement-filters label{min-width:45%}
 body.qt-desktop-mode .qt-reorder-dialog{width:97vw}
}


/* Customer Qt invoice receivables/payables; original toolbar and tabs unchanged. */
body.qt-desktop-mode .qt-invoice-aging{
 margin:12px 0 4px;border-top:1px solid var(--border,#dce3eb);
 padding-top:12px;
}
body.qt-desktop-mode .qt-invoice-aging-content{
 border:1px solid #d8e3f2;border-radius:6px;margin-top:10px;
 padding:12px;background:#fcfdff;
}
body.qt-desktop-mode .qt-invoice-aging-filters{
 display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin:10px 0;
}
body.qt-desktop-mode .qt-invoice-aging-filters label{
 display:flex;flex-direction:column;gap:4px;min-width:145px;flex:1;
}
body.qt-desktop-mode .qt-invoice-aging-filters input,
body.qt-desktop-mode .qt-invoice-aging-filters select{
 box-sizing:border-box;width:100%;min-height:34px;
}
body.qt-desktop-mode .qt-invoice-aging-summary{
 margin:8px 0;padding:10px;border-radius:5px;background:#eef5ff;
 border:1px solid #d3e2f5;line-height:1.65;font-weight:600;
}
body.qt-desktop-mode .qt-invoice-aging-content .table-scroll{
 max-height:52vh;overflow:auto;
}
body.qt-desktop-mode .qt-invoice-aging-content th{
 white-space:nowrap;
}
body.qt-desktop-mode .qt-invoice-cash-backdrop{
 display:flex;align-items:center;justify-content:center;z-index:1150;
}
body.qt-desktop-mode .qt-invoice-cash-dialog{
 width:min(690px,96vw);max-height:90vh;overflow:auto;
}
body.qt-desktop-mode .qt-invoice-cash-form{
 display:flex;flex-direction:column;gap:12px;margin:12px 0;
}
body.qt-desktop-mode .qt-invoice-cash-form label{
 display:flex;flex-direction:column;align-items:stretch;gap:5px;
}
body.qt-desktop-mode .qt-invoice-cash-form label:has(input[type=checkbox]){
 display:flex;flex-direction:row;align-items:center;
}
body.qt-desktop-mode .qt-invoice-cash-form select,
body.qt-desktop-mode .qt-invoice-cash-form input[type=number]{
 min-height:35px;box-sizing:border-box;width:100%;
}
@media(max-width:760px){
 body.qt-desktop-mode .qt-invoice-aging-filters label{min-width:45%;}
 body.qt-desktop-mode .qt-invoice-cash-dialog{width:96vw;}
}


/* Invoice cash audit, guarded by treasury.read; read-only viewers may inspect. */
body.qt-desktop-mode .qt-invoice-cash-history-backdrop{
 display:flex;align-items:center;justify-content:center;z-index:1150;
}
body.qt-desktop-mode .qt-invoice-cash-history-dialog{
 width:min(920px,97vw);max-height:92vh;overflow:auto;
}
body.qt-desktop-mode .qt-invoice-cash-history-summary{
 margin:12px 0;padding:10px;line-height:1.7;
 border:1px solid #cddff2;background:#eef6ff;border-radius:6px;
}
body.qt-desktop-mode .qt-invoice-cash-history-dialog .table-scroll{
 max-height:55vh;overflow:auto;
}
body.qt-desktop-mode .qt-invoice-cash-history-dialog th{white-space:nowrap;}


/* Real read-only cashbox day book. Not a shift closing or statutory GL. */
body.qt-desktop-mode .qt-cashbox-daily-ledger{
 display:flex;flex-direction:column;gap:10px;
 min-width:0;max-width:100%;
}
body.qt-desktop-mode .qt-cashbox-daily-filters{
 display:flex;flex-wrap:wrap;align-items:end;gap:10px;
}
body.qt-desktop-mode .qt-cashbox-daily-filters label{
 display:flex;flex-direction:column;gap:5px;min-width:140px;flex:1;
}
body.qt-desktop-mode .qt-cashbox-daily-filters select,
body.qt-desktop-mode .qt-cashbox-daily-filters input{
 box-sizing:border-box;min-height:35px;width:100%;
}
body.qt-desktop-mode .qt-cashbox-daily-status{
 padding:10px;border:1px solid #d7e4f4;
 background:#f0f6ff;border-radius:6px;line-height:1.65;
}
body.qt-desktop-mode .qt-cashbox-daily-status.error{
 color:#8b1b1b;background:#fff0f0;border-color:#edb6b6;
}
body.qt-desktop-mode .qt-cashbox-daily-totals{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:8px;
}
body.qt-desktop-mode .qt-cashbox-daily-total{
 border:1px solid #e1e6ee;border-radius:6px;padding:8px;
 display:flex;flex-direction:column;gap:6px;
}
body.qt-desktop-mode .qt-cashbox-daily-ledger .table-scroll{
 max-height:50vh;overflow:auto;
}
body.qt-desktop-mode .qt-cashbox-daily-ledger th{white-space:nowrap;}
body.qt-desktop-mode .qt-cashbox-daily-pager{
 display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:flex-end;
}
@media(max-width:680px){
 body.qt-desktop-mode .qt-cashbox-daily-filters label{min-width:42%;}
}

/* Native SalesWindow visual parity 2026-11-12.
   Based on latest offline SalesWindowUIMixin (_create_ui, _create_toolbar,
   _create_tabs, _create_invoices_tab, _create_returns_tab, _apply_styles).
   Scope is tenant sales route only; nonfunctional backend actions stay disabled. */
body.qt-desktop-mode #body-content:has(.qt-sales-window){background:#F4F7FB; padding:8px 9px;}
body.qt-desktop-mode #body-content .qt-sales-window{
 display:flex;flex-direction:column;gap:7px;flex:1;min-height:0;min-width:0;
 background:#F4F7FB;color:#173A63;font-family:'Segoe UI',Tahoma,Arial,sans-serif;font-size:11px;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-toolbar{
 display:flex;direction:rtl;align-items:center;flex-wrap:nowrap;gap:7px;
 background:#fff;border:1px solid #D7E0EB;border-bottom:2px solid #D9E8F8;
 border-radius:10px;padding:8px 12px;min-height:58px;overflow-x:auto;flex:0 0 auto;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-toolbar .qt-invoice-button{
 height:42px;min-height:42px;max-height:42px;min-width:104px;max-width:160px;
 flex:0 0 auto;padding:7px 13px;border-radius:8px;border:1px solid rgba(0,0,0,.05);
 background:#244875;color:#fff;font:700 10.5px 'Segoe UI',Tahoma,Arial,sans-serif;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-toolbar .qt-invoice-button:hover:not(:disabled){background:#1D3B61;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-toolbar .qt-invoice-button.success{background:#18A957;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-toolbar .qt-invoice-button.success:hover:not(:disabled){background:#148C49;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-toolbar .qt-invoice-button.secondary{background:#4A647F;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-toolbar .qt-invoice-button.secondary:hover:not(:disabled){background:#3D536B;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-toolbar .qt-invoice-button:disabled{background:#AAB6C4;color:#EEF2F6;border-color:#AAB6C4;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-fill{min-width:8px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-data-scope{
 display:flex;direction:rtl;align-items:center;gap:7px;flex-wrap:wrap;
 background:#fff;border:1px solid #D7E0EB;border-radius:10px;
 padding:9px 14px;min-height:62px;flex:0 0 auto;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-data-scope label,
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-scope-title{font-size:11px;font-weight:700;color:#173A63;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-data-scope input,
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-data-scope select{
 width:124px;max-width:124px;min-height:34px;height:34px;
 border:1px solid #C8D4E3;border-radius:7px;padding:5px 9px;
 background:#fff;color:#173A63;font-weight:600;font-size:11px;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-data-scope select{width:120px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-data-scope .qt-invoice-button{
 width:auto;min-width:96px;height:34px;min-height:34px;max-height:34px;
 border:0;border-radius:8px;background:#1769C2;color:#fff;padding:6px 13px;font-size:11px;font-weight:700;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-data-scope .qt-invoice-button.secondary{background:#4A647F;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-data-scope .qt-invoice-button:disabled{background:#B7C2CF;color:#F4F7FA;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-scope-status{
 display:flex;align-items:center;justify-content:center;padding:4px 9px;
 background:#F3F7FB;border:1px solid #DCE6F0;border-radius:7px;
 color:#50667F;font-size:10px;font-weight:600;line-height:1.5;min-height:32px;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-tabs{
 display:flex;flex:0 0 35px;min-height:35px;align-items:flex-end;gap:3px;
 direction:rtl;background:transparent;border-bottom:1px solid #CDD8E5;overflow-x:auto;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-tabs .qt-invoice-button.tab{
 min-width:96px;min-height:34px;height:34px;max-height:34px;
 border:1px solid #CDD8E5;border-radius:8px 8px 0 0;
 background:#E9EEF5;color:#244875;padding:5px 15px;font-size:12px;font-weight:700;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-tabs .qt-invoice-button.tab.active{
 background:#1769C2;border-color:#1769C2;color:#fff;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea{
 min-height:0;min-width:0;display:flex;flex-direction:column;gap:8px;overflow:auto;flex:1;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel{
 display:flex;flex-direction:column;min-height:0;min-width:0;gap:8px;
 background:transparent;border:0;padding:0;margin:0;box-shadow:none;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel>h2{display:none;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-filters,
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel>.form,
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel>.toolbar{
 background:#fff;border:1px solid #D7E0EB;border-radius:10px;
 min-height:62px;padding:9px 14px;gap:9px;margin:0;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-filters input{
 min-width:245px;max-width:410px;height:34px;border:1px solid #C8D4E3;
 border-radius:7px;color:#173A63;background:#fff;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-filters select{
 min-height:34px;max-height:34px;border:1px solid #C8D4E3;border-radius:7px;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-filters .qt-invoice-button{
 min-width:88px;height:34px;min-height:34px;max-height:34px;
}
body.qt-desktop-mode #body-content .qt-sales-window .table-scroll{
 background:#fff;border:1px solid #D7E0EB;border-radius:10px;
 min-width:0;min-height:200px;max-height:56vh;overflow:auto;
}
body.qt-desktop-mode #body-content .qt-sales-window table{width:100%;border-collapse:separate;border-spacing:0;white-space:nowrap;}
body.qt-desktop-mode #body-content .qt-sales-window th{
 height:44px;min-height:44px;background:#244875;color:#fff;text-align:center;
 padding:8px 6px;border:0;border-inline-start:1px solid #45668D;
 font-size:11px;font-weight:700;
}
body.qt-desktop-mode #body-content .qt-sales-window td{
 height:44px;min-height:44px;padding:7px 6px;text-align:center;
 background:#fff;color:#173A63;border:0;border-bottom:1px solid #E5ECF3;font-size:11px;
}
body.qt-desktop-mode #body-content .qt-sales-window tbody tr:nth-child(even) td{background:#F8FBFE;}
body.qt-desktop-mode #body-content .qt-sales-window tbody tr:hover td{background:#EDF5FE;}
body.qt-desktop-mode #body-content .qt-sales-window tbody tr[aria-selected='true'] td{background:#D8EAFE;}
body.qt-desktop-mode #body-content .qt-sales-window td .button.small{
 min-height:30px;min-width:64px;border-radius:6px;font-size:11px;padding:5px 8px;
}
body.qt-desktop-mode #body-content .qt-sales-window td:last-child .button:disabled{background:#DCE3EB;color:#6C7B8C;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-pager{
 background:#fff;border:1px solid #D7E0EB;border-radius:10px;margin-top:0;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-summary{
 display:grid;grid-template-columns:repeat(5,minmax(125px,1fr));gap:10px;
 min-height:88px;background:#fff;border:1px solid #D7E0EB;
 border-radius:10px;padding:8px 10px;margin-top:auto;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-metric{
 border-radius:9px;min-height:68px;padding:7px 12px;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-metric span{font-size:10px;font-weight:700;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-metric strong{font-size:20px;font-weight:800;}
body.qt-desktop-mode #body-content .qt-sales-window.qt-sales-entry-open{background:#F4F7FB;}
body.qt-desktop-mode #body-content .qt-sales-window.qt-sales-entry-open>.qt-invoice-toolbar,
body.qt-desktop-mode #body-content .qt-sales-window.qt-sales-entry-open>.qt-sales-data-scope,
body.qt-desktop-mode #body-content .qt-sales-window.qt-sales-entry-open>.qt-invoice-tabs{display:none;}
body.qt-desktop-mode #body-content .qt-sales-window.qt-sales-entry-open .qt-invoice-workarea>.panel:not(.hidden){
 display:flex;flex-direction:column;max-width:1120px;width:100%;margin:0 auto;
 background:#fff;border:1px solid #B8CCDF;border-radius:8px;padding:14px;gap:8px;
}
body.qt-desktop-mode #body-content .qt-sales-window.qt-sales-entry-open .qt-invoice-workarea>.panel:not(.hidden)>h2{display:block;}
body.qt-desktop-mode #body-content .qt-sales-window.qt-sales-entry-open .qt-invoice-workarea>.panel:not(.hidden)>.qt-invoice-button{align-self:flex-start;}
@media(max-width:1150px){
 body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-summary{grid-template-columns:repeat(3,minmax(115px,1fr));}
 body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-toolbar{overflow-x:auto;}
}
@media(max-width:780px){
 body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-summary{grid-template-columns:repeat(2,minmax(120px,1fr));}
 body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-data-scope{overflow-x:auto;}
}

/* Sales invoice editor + returns Qt parity 2026-11-12 */
body.qt-desktop-mode #body-content .qt-sales-entry-panel{
  background:transparent;border:0;padding:0;box-shadow:none;max-width:100%;width:100%;
}
body.qt-desktop-mode #body-content .qt-sales-entry-panel>h2{display:none!important;}
body.qt-desktop-mode #body-content .qt-sales-entry-form{
 display:flex;flex-direction:column;gap:7px;background:#F4F7FB;margin:0;
 min-width:0;width:100%;max-width:100%;padding:0;border:0;
}
body.qt-desktop-mode #body-content .qt-sales-entry-toolbar{
 display:flex;align-items:center;direction:rtl;gap:6px;overflow-x:auto;
 height:58px;min-height:58px;max-height:58px;flex:0 0 58px;
 background:#fff;border:1px solid #D8E2EC;border-radius:9px;
 padding:7px 10px;scrollbar-width:thin;
}
body.qt-desktop-mode #body-content .qt-sales-entry-btn{
 height:40px;min-height:40px;min-width:82px;flex:0 0 auto;
 border:0;border-radius:7px;background:#244875;color:#fff;
 font-family:'Segoe UI',Tahoma,Arial,sans-serif;font-weight:800;font-size:13px;
 padding:6px 10px;cursor:pointer;
}
body.qt-desktop-mode #body-content .qt-sales-entry-btn.success{background:#18A957;}
body.qt-desktop-mode #body-content .qt-sales-entry-btn.secondary{background:#4A647F;}
body.qt-desktop-mode #body-content .qt-sales-entry-btn.danger{background:#D9363E;}
body.qt-desktop-mode #body-content .qt-sales-entry-btn:hover:not(:disabled){filter:brightness(.9);}
body.qt-desktop-mode #body-content .qt-sales-entry-btn:disabled{
 background:#E2E8F0!important;color:#94A3B8!important;cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-sales-entry-sequence{
 display:flex;align-items:center;gap:5px;flex:0 0 auto;margin-inline-start:auto;
}
body.qt-desktop-mode #body-content .qt-sales-entry-sequence .qt-sales-entry-btn{min-width:38px;}
body.qt-desktop-mode #body-content .qt-sales-entry-number{
 display:flex;align-items:center;justify-content:center;
 min-width:104px;height:38px;border:1px solid #B9CBE0;
 background:#F8FBFF;color:#244875;border-radius:7px;padding:5px 8px;
 font:800 12px Consolas,'Courier New',monospace;
}
body.qt-desktop-mode #body-content .qt-sales-entry-card{
 background:#fff;border:1px solid #D8E2EC;border-radius:9px;
 padding:9px 11px;display:flex;flex-direction:column;gap:9px;min-width:0;
}
body.qt-desktop-mode #body-content .qt-sales-entry-card>h3{
 color:#244875;margin:0;padding:0 4px 7px;border-bottom:1px solid #E7EDF5;
 font-size:13px;font-weight:800;
}
body.qt-desktop-mode #body-content .qt-sales-customer-card .form-grid{
 display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));
 gap:9px 12px;min-width:0;padding:0;
}
body.qt-desktop-mode #body-content .qt-sales-customer-card label{
 min-width:0;display:flex;flex-direction:column;gap:5px;
 font-size:12px;font-weight:700;color:#244875;
}
body.qt-desktop-mode #body-content .qt-sales-customer-card input,
body.qt-desktop-mode #body-content .qt-sales-customer-card select{
 min-width:0;width:100%;height:34px;min-height:34px;
 border:1px solid #B8CCDF;border-radius:5px;background:#fff;
 font-family:'Segoe UI',Tahoma,Arial,sans-serif;font-size:12px;
}
body.qt-desktop-mode #body-content .qt-sales-products-card{
 flex:1;min-height:160px;
}
body.qt-desktop-mode #body-content .qt-sales-products-card .invoice-lines{
 display:flex;flex-direction:column;gap:6px;min-height:80px;max-height:48vh;
 overflow:auto;min-width:0;
}
body.qt-desktop-mode #body-content .qt-sales-products-card .invoice-item{
 display:grid;grid-template-columns:minmax(250px,3fr) minmax(100px,1fr)
 minmax(160px,1.3fr) 78px;align-items:end;gap:9px;padding:8px;
 background:#F8FBFF;border:1px solid #E4ECF5;border-radius:6px;
}
body.qt-desktop-mode #body-content .qt-sales-products-card .invoice-item label{
 display:flex;flex-direction:column;gap:5px;min-width:0;
}
body.qt-desktop-mode #body-content .qt-sales-products-card .invoice-item input,
body.qt-desktop-mode #body-content .qt-sales-products-card .invoice-item select{
 min-width:0;width:100%;min-height:34px;max-height:34px;
 font-size:12px;background:#fff;
}
body.qt-desktop-mode #body-content .qt-sales-products-card .invoice-item>.button{
 min-height:34px;max-height:34px;padding:6px 8px;border-radius:7px;
}
body.qt-desktop-mode #body-content .qt-sales-summary-card{
 display:flex;flex-direction:row;align-items:center;justify-content:space-between;
 gap:14px;padding:12px 14px;min-height:76px;flex:0 0 auto;
}
body.qt-desktop-mode #body-content .qt-sales-summary-card>.toolbar{
 flex:1;display:flex;align-items:center;justify-content:space-between;
 padding:0!important;border:0!important;background:transparent!important;
 box-shadow:none!important;min-height:0;
}
body.qt-desktop-mode #body-content .qt-sales-summary-card strong{
 font-size:16px;font-weight:800;color:#244875;
}
body.qt-desktop-mode #body-content .qt-sales-summary-card>button[type=submit]{
 flex:0 0 auto;min-height:40px;border-radius:7px;background:#244875;
 color:white;font-weight:800;font-size:13px;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel:nth-child(1) .table-scroll table{
 min-width:1310px;table-layout:auto;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel:nth-child(1) th:first-child{width:48px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel:nth-child(1) th:nth-child(2){min-width:112px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel:nth-child(1) th:nth-child(3){min-width:112px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel:nth-child(1) th:nth-child(4){min-width:126px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel:nth-child(1) th:nth-child(5){min-width:80px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel:nth-child(1) th:nth-child(n+6):nth-child(-n+8){min-width:96px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel:nth-child(1) th:nth-child(9){min-width:76px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel:nth-child(1) th:nth-child(10){min-width:98px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel:nth-child(1) th:nth-child(n+11){min-width:86px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-workarea>.panel:nth-child(2) .table-scroll table{
 min-width:910px;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-return-summary{margin-top:10px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-metric.purple{
 background:#F7F2FC;color:#6D4AA8;border-color:#6D4AA8;
}
@media(max-width:1150px){
 body.qt-desktop-mode #body-content .qt-sales-customer-card .form-grid{
 grid-template-columns:repeat(2,minmax(150px,1fr));
 }
}
@media(max-width:760px){
 body.qt-desktop-mode #body-content .qt-sales-customer-card .form-grid{grid-template-columns:1fr;}
 body.qt-desktop-mode #body-content .qt-sales-products-card .invoice-item{
 grid-template-columns:repeat(2,minmax(130px,1fr));
 }
 body.qt-desktop-mode #body-content .qt-sales-summary-card{flex-wrap:wrap;}
}


/* Sales scope entry parity: verified from offline SalesWindowUIMixin source */
body.qt-desktop-mode .qt-sales-window.qt-sales-scope-await .qt-invoice-workarea{display:flex;align-items:stretch;justify-content:center;min-height:250px;}
body.qt-desktop-mode .qt-sales-window .qt-sales-scope-required{background:#fff;border:1px solid #d8e2ec;border-radius:10px;padding:28px 24px;min-height:150px;max-width:620px;margin:30px auto;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:12px;text-align:center;}
body.qt-desktop-mode .qt-sales-window .qt-sales-scope-required strong{font-size:18px;color:#244875;font-weight:800;}
body.qt-desktop-mode .qt-sales-window .qt-sales-scope-required p{font-size:13px;color:#526d87;line-height:1.8;margin:0;}
body.qt-desktop-mode .qt-sales-window .qt-sales-scope-required.hidden{display:none!important;}
body.qt-desktop-mode .qt-sales-window .qt-sales-scope-status.error{background:#fff4f4;color:#9b2438;border-color:#f4c0c0;}

/* Offline SalesInvoiceEntryMixin 12-column item table parity */
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-products-card .qt-sales-line-scroll{width:100%;max-width:100%;max-height:50vh;overflow:auto;border:1px solid #a1a1a6;border-radius:5px;background:#fff;min-height:210px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:fixed;direction:rtl;font:700 12px Arial,Tahoma,sans-serif;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table thead th{height:42px;padding:8px 6px;text-align:center;background:#244875;color:#fff;border-left:1px solid #1a252f;font-size:12px;font-weight:800;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table th:nth-child(1){width:36px}body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table th:nth-child(2){width:78px}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table th:nth-child(3){width:290px}body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table th:nth-child(4){width:64px}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table th:nth-child(5){width:62px}body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table th:nth-child(6){width:76px}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table th:nth-child(7){width:68px}body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table th:nth-child(8){width:82px}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table th:nth-child(9){width:92px}body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table th:nth-child(10){width:140px}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table th:nth-child(11){width:135px}body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table th:nth-child(12){width:80px}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table .qt-sales-line-table-body tr{display:table-row;background:#fff;border:0;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table tbody tr:nth-child(even){background:#f9f9f9;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table tbody tr:hover{background:#eaf2f8;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table tbody td{height:40px;padding:4px 5px;color:#244875;text-align:center;background:transparent;border-bottom:1px solid #f0f2f6;font-weight:700;font-size:12px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table input,body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table select{width:100%;min-width:0;height:30px;min-height:30px;padding:3px 5px;border:1px solid #b8ccdf;border-radius:4px;font-size:12px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table .qt-sales-item-unported{font-size:11px;color:#8999ac;cursor:help;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table .qt-sales-item-value{white-space:nowrap;color:#175ea8;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table .button{min-width:55px;min-height:29px;padding:4px 7px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-summary-card{flex-wrap:wrap;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-summary-card .qt-sales-notes-strip{flex:1 0 100%;display:flex;align-items:center;gap:6px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:5px;padding:3px 6px;min-height:34px;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-summary-card .qt-sales-notes-strip label{width:100%;display:flex;flex-direction:row;align-items:center;gap:8px;color:#244875;font-weight:700;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-summary-card .qt-sales-notes-strip input{flex:1;min-height:27px;height:27px;border:1px solid #b8ccdf;border-radius:4px;background:#fff;}

/* Qt sales table group layout guard 20261112 */
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-entry-items-table tbody.qt-sales-line-table-body{display:table-row-group!important;min-height:0!important;max-height:none!important;overflow:visible!important;}

/* Native sales customer search and ID row, using authorized customer list only */
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-customer-search-row{
 display:flex;align-items:flex-end;flex-wrap:wrap;gap:9px;direction:rtl;
 background:#fbfdff;border:1px solid #e1e8f0;border-radius:7px;padding:5px 8px;
 min-height:48px;margin-bottom:2px;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-customer-search-row label{
 display:flex;flex-direction:column;gap:3px;max-width:330px;min-width:180px;flex:1;
 color:#244875;font-size:11px;font-weight:700;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-customer-search-row label:nth-child(2){
 flex:0 0 90px;min-width:90px;max-width:90px;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-customer-search-row input{
 min-height:34px;height:34px;width:100%;border:1px solid #b8ccdf;border-radius:5px;padding:5px 7px;font-size:12px;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-customer-search-row label:nth-child(2) input{
 text-align:center;color:#244875;background:#fff;
}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-customer-search-info{
 color:#607890;font-size:10px;align-self:center;min-width:140px;
}

/* Sales product quick lookup parity 2026-11-13 */
body.qt-desktop-mode #body-content .qt-sales-products-card .qt-sales-product-search{display:flex;flex-direction:column;gap:5px;min-width:0;background:#f9f9f9;border:1px solid #e1e8f0;border-radius:7px;padding:7px 9px;}
body.qt-desktop-mode #body-content .qt-sales-products-card .qt-sales-product-controls{display:flex;align-items:end;flex-wrap:wrap;gap:7px;direction:rtl;}
body.qt-desktop-mode #body-content .qt-sales-products-card .qt-sales-product-controls label{display:flex;flex-direction:column;gap:3px;min-width:80px;font-size:11px;font-weight:700;color:#244875;}
body.qt-desktop-mode #body-content .qt-sales-products-card .qt-sales-product-controls label:first-child{flex:1;min-width:230px;}
body.qt-desktop-mode #body-content .qt-sales-products-card .qt-sales-product-controls input{width:100%;min-height:36px;height:36px;background:#fff;border:1px solid #b8ccdf;border-radius:5px;color:#244875;padding:5px 9px;font-size:12px;}
body.qt-desktop-mode #body-content .qt-sales-products-card .qt-sales-product-controls .button{min-height:36px;height:36px;border-radius:6px;background:#244875;color:#fff;font-weight:700;padding:5px 12px;}
body.qt-desktop-mode #body-content .qt-sales-products-card .qt-sales-product-results{display:flex;flex-direction:column;max-height:220px;overflow:auto;background:#fff;border:1px solid #b8ccdf;border-radius:6px;}
body.qt-desktop-mode #body-content .qt-sales-products-card .qt-sales-product-results[hidden]{display:none!important;}
body.qt-desktop-mode #body-content .qt-sales-products-card .qt-sales-product-results .button{display:block;flex:0 0 auto;text-align:right;width:100%;min-height:30px;padding:6px 10px;border:0;border-bottom:1px solid #e5edf7;border-radius:0;background:#fff;color:#173a63;font-size:12px;}
body.qt-desktop-mode #body-content .qt-sales-products-card .qt-sales-product-results .button:hover{background:#eaf1f8;}
body.qt-desktop-mode #body-content .qt-sales-products-card .qt-sales-product-status{font-size:11px;color:#526d87;}

/* Saved sales invoice read-only detail columns + printable compact view 2026-11-13 */
body.qt-desktop-mode .qt-sales-saved-invoice-dialog{width:min(1320px,97vw);max-width:min(1320px,97vw);max-height:94vh;overflow:auto;direction:rtl;}
body.qt-desktop-mode .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-note{font-size:11px;color:#617389;margin:0 0 7px;line-height:1.6;}
body.qt-desktop-mode .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-scroll{max-width:100%;overflow:auto;border-radius:6px;border:1px solid #bed0e3;}
body.qt-desktop-mode .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table{min-width:1170px;width:100%;border-spacing:0;border-collapse:collapse;table-layout:auto;}
body.qt-desktop-mode .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table th{height:40px;background:#244875;color:#fff;text-align:center;padding:6px 8px;border:1px solid #43648b;font-size:11px;white-space:nowrap;}
body.qt-desktop-mode .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table td{height:40px;text-align:center;color:#173a63;padding:6px 8px;border:1px solid #e1e9f3;font-size:11px;white-space:nowrap;}
body.qt-desktop-mode .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table tbody tr:nth-child(even) td{background:#f8fbff;}
@media print{
 body.qt-print-invoice-preview .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table{min-width:0!important;width:100%!important;table-layout:fixed!important;}
 body.qt-print-invoice-preview .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table tr>*:nth-child(1),
 body.qt-print-invoice-preview .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table tr>*:nth-child(4),
 body.qt-print-invoice-preview .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table tr>*:nth-child(7),
 body.qt-print-invoice-preview .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table tr>*:nth-child(8),
 body.qt-print-invoice-preview .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table tr>*:nth-child(10),
 body.qt-print-invoice-preview .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table tr>*:nth-child(11),
 body.qt-print-invoice-preview .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table tr>*:nth-child(12){display:none!important;}
 body.qt-print-invoice-preview .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table th,
 body.qt-print-invoice-preview .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-table td{font-size:10px!important;white-space:normal!important;overflow-wrap:anywhere!important;}
 body.qt-print-invoice-preview .qt-sales-saved-invoice-dialog .qt-sales-saved-preview-note{font-size:9px!important;}
}

/* Saved sales invoice snapshot financial fields 2026-11-13 */
body.qt-desktop-mode .qt-sales-saved-invoice-dialog .qt-sales-saved-financial-summary{background:#fbfdff;border:1px solid #dce7f3;border-radius:7px;padding:9px 11px;margin:10px 0;}
body.qt-desktop-mode .qt-sales-saved-invoice-dialog .qt-sales-saved-financial-summary>h3{font-size:13px;color:#244875;margin:0 0 8px;font-weight:800;}
body.qt-desktop-mode .qt-sales-saved-invoice-dialog .qt-sales-saved-financial-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(128px,1fr));gap:7px;}
body.qt-desktop-mode .qt-sales-saved-invoice-dialog .qt-sales-saved-financial-grid .qt-invoice-preview-field{background:#fff;min-width:0;padding:7px 9px;}
body.qt-desktop-mode .qt-sales-saved-invoice-dialog .qt-sales-saved-invoice-notes{padding:8px 12px;border:1px solid #dce7f3;border-radius:7px;background:#fff;}
body.qt-desktop-mode .qt-sales-saved-invoice-dialog .qt-sales-saved-invoice-notes strong{font-size:12px;color:#244875;}
body.qt-desktop-mode .qt-sales-saved-invoice-dialog .qt-sales-saved-invoice-notes p{margin:5px 0 0;font-size:12px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;}
@media print{body.qt-print-invoice-preview .qt-sales-saved-financial-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:5px!important;}}

/* Native sales invoice delivery status parity 2026-11-13 */
body.qt-desktop-mode #body-content .qt-sales-window td.qt-sales-delivery-state{text-align:center;font-weight:700;color:#334155;white-space:nowrap;}
body.qt-desktop-mode #body-content .qt-sales-window td.qt-sales-delivery-state[data-delivery-status='حجز']{background:#dbeafe;color:#1d4ed8;}
body.qt-desktop-mode #body-content .qt-sales-window td.qt-sales-delivery-state[data-delivery-status='تم التسليم']{background:#dcfce7;color:#16a34a;}
body.qt-desktop-mode #body-content .qt-sales-window td.qt-sales-delivery-state[data-delivery-status='تسليم فوري']{color:#334155;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-invoice-filters select[aria-label='حالة التسليم']{min-width:140px;}

/* Native linked SalesReturnDialog grid, source 2026-11-13 */
body.qt-desktop-mode .qt-sales-return-native-dialog{width:min(1450px,96vw);max-width:min(1450px,96vw);max-height:94vh;overflow:auto;direction:rtl;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-sourcebar{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:#eef5fc;border:1px solid #cbdcf0;border-radius:8px;padding:7px 12px;margin:10px 0;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-sourcebar strong{font-size:12px;color:#244875;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-sourcebar input{width:230px;max-width:100%;min-height:32px;height:32px;background:#f9fbfd;color:#244875;border:1px solid #b8ccdf;border-radius:5px;text-align:center;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-sourcebar small{font-size:11px;color:#607890;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-table-wrap{width:100%;max-width:100%;max-height:50vh;overflow:auto;background:#fff;border:1px solid #b8ccdf;border-radius:6px;margin:10px 0 6px;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:fixed;direction:rtl;font-family:Arial,Tahoma,sans-serif;font-size:11px;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th{height:42px;padding:6px 8px;text-align:center;background:#244875;color:#fff;border:1px solid #193b67;white-space:nowrap;font-weight:800;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(1){min-width:36px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(2){min-width:68px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(3){min-width:215px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(4){min-width:55px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(5){min-width:84px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(6){min-width:78px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(7){min-width:72px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(8){min-width:92px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(9){min-width:62px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(10){min-width:62px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(11){min-width:70px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(12){min-width:92px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(13){min-width:72px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(14){min-width:145px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table th:nth-child(15){min-width:58px}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table tbody{display:table-row-group!important;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table td{height:40px;padding:4px 6px;text-align:center;background:#fff;color:#244875;border:1px solid #e3eaf3;font-size:11px;white-space:nowrap;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table tbody tr:nth-child(even) td{background:#f9fbfe;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table td.qt-sales-return-available{background:#eaf8ee;color:#166534;font-weight:700;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table td.qt-sales-return-quantity{background:#fff7d6;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table td.qt-sales-return-quantity input{width:86px;height:32px;min-height:32px;text-align:center;border:1px solid #cbdcf0;border-radius:4px;background:#fff;color:#244875;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table .qt-sales-return-unavailable{color:#8092a8;cursor:help;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table .qt-sales-return-estimated-value{font-size:11px;color:#244875;}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-linked-table tr.qt-sales-return-active td.qt-sales-return-quantity{background:#ffe9aa;}
body.qt-desktop-mode .qt-purchase-return-native-dialog{width:min(96vw,1320px);max-width:1320px}
body.qt-desktop-mode .qt-purchase-return-native-dialog .qt-purchase-return-linked-table{width:max-content;min-width:100%;border-collapse:collapse;table-layout:fixed;direction:rtl;font-family:Arial,Tahoma,sans-serif;font-size:11px}
body.qt-desktop-mode .qt-purchase-return-native-dialog .qt-purchase-return-linked-table th{height:42px;padding:6px 8px;text-align:center;background:#244875;color:#fff;border:1px solid #193b67;white-space:nowrap;font-weight:800}
body.qt-desktop-mode .qt-purchase-return-native-dialog .qt-purchase-return-linked-table td{height:40px;padding:4px 6px;text-align:center;background:#fff;color:#244875;border:1px solid #e3eaf3;white-space:nowrap}
body.qt-desktop-mode .qt-purchase-return-native-dialog .qt-purchase-return-linked-table tbody tr:nth-child(even) td{background:#f9fbfe}
body.qt-desktop-mode .qt-purchase-return-native-dialog .qt-purchase-return-linked-table input{width:86px;min-height:32px;text-align:center}
body.qt-desktop-mode .qt-purchase-return-native-dialog .qt-purchase-return-linked-table tr.qt-purchase-return-active td{background:#fff9e8}
body.qt-desktop-mode .qt-purchase-return-history-lines{margin-top:12px;max-height:310px}
body.qt-desktop-mode .qt-purchase-return-history-lines table{min-width:900px;border-collapse:collapse}
body.qt-desktop-mode .qt-purchase-return-history-lines th{background:#244875;color:#fff;padding:7px;white-space:nowrap}
body.qt-desktop-mode .qt-purchase-return-history-lines td{padding:7px;border:1px solid #e3eaf3;text-align:center;white-space:nowrap}
body.qt-desktop-mode .qt-purchase-saved-preview-table{min-width:1050px;border-collapse:collapse}
body.qt-desktop-mode .qt-purchase-saved-preview-table th{background:#244875;color:#fff;padding:7px;white-space:nowrap}
body.qt-desktop-mode .qt-purchase-saved-preview-table td{padding:7px;border:1px solid #e3eaf3;text-align:center;white-space:nowrap}
.qt-purchase-print-header{display:none}
@media print{
 @page{size:A4 portrait;margin:12mm}
 body.qt-print-invoice-preview .qt-purchase-print-header{display:block!important;visibility:visible!important;margin-bottom:14px;border-bottom:2px solid #244875;padding-bottom:10px}
 body.qt-print-invoice-preview .qt-purchase-print-brand{display:flex!important;visibility:visible!important;justify-content:space-between;align-items:center;color:#244875;font-size:18px}
 body.qt-print-invoice-preview .qt-purchase-print-brand span{color:#ff9500;font-size:15px;font-weight:700}
 body.qt-print-invoice-preview .qt-purchase-print-meta{display:flex!important;visibility:visible!important;justify-content:space-between;gap:12px;margin-top:10px;font-size:11px}
 body.qt-print-invoice-preview .qt-purchase-saved-preview-table{min-width:0!important;width:100%!important;table-layout:auto!important;font-size:9px}
 body.qt-print-invoice-preview .qt-purchase-saved-preview-table th,
 body.qt-print-invoice-preview .qt-purchase-saved-preview-table td{padding:4px!important;white-space:normal!important}
 body.qt-print-invoice-preview .qt-purchase-saved-financial-summary{break-inside:avoid}
}
body.qt-desktop-mode .qt-sales-return-native-dialog .qt-sales-return-accuracy-note{display:block;font-size:11px;color:#607890;padding:4px 8px;line-height:1.6;}

/* Sale unclassified invoices warning: exact source classification unknown */
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-unclassified-warning{padding:9px 12px;margin:8px 0;font:700 12px/1.7 Arial,Tahoma,sans-serif;background:#f5f7fa;color:#435870;border:1px solid #d5dde7;border-radius:7px;text-align:right;}
body.qt-desktop-mode #body-content .qt-sales-window .qt-sales-unclassified-warning[hidden]{display:none!important;}

/* POS split is traced to pos_window_ui_mixin.py: products_panel stretch=2,
   cart_panel stretch=1. Customer-only; does not affect Master console. */
body.qt-desktop-mode .qt-pos-workspace{
 display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr);
 gap:10px;align-items:start;direction:rtl;min-width:0;
}
body.qt-desktop-mode .qt-pos-catalog,
body.qt-desktop-mode .qt-pos-cart{
 min-width:0;border:1px solid #d8e1eb;background:#fff;border-radius:5px;
 padding:10px;
}
body.qt-desktop-mode .qt-pos-tools,
body.qt-desktop-mode .qt-pos-order-modes,
body.qt-desktop-mode .qt-pos-actions{
 display:flex;gap:6px;align-items:center;flex-wrap:wrap;
}
body.qt-desktop-mode .qt-pos-tools{margin-bottom:10px}
body.qt-desktop-mode .qt-pos-order-modes{
 background:#f7f9fc;border:1px solid #d8e1eb;border-radius:8px;
 padding:5px 8px;margin-bottom:10px;
}
body.qt-desktop-mode .qt-pos-order-modes strong{margin-inline-end:auto;color:#102844;font-size:12px}
body.qt-desktop-mode .qt-pos-tool{
 border:1px solid #c8d5e2;border-radius:5px;
 background:#eef3f9;color:#244875;font-size:12px;font-weight:650;
 padding:8px 10px;min-height:34px;
}
body.qt-desktop-mode .qt-pos-tool:disabled{cursor:not-allowed;opacity:.5}
body.qt-desktop-mode .qt-pos-catalog>input{margin-bottom:10px;width:100%}
body.qt-desktop-mode .qt-pos-products-grid{
 display:grid;grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
 gap:8px;max-height:60vh;overflow-y:auto;align-content:start;
}
body.qt-desktop-mode .qt-pos-product-tile{
 display:flex;flex-direction:column;justify-content:space-between;
 align-items:stretch;gap:6px;min-height:110px;padding:10px;
 text-align:right;white-space:normal;overflow-wrap:anywhere;
 border:1px solid #cbd9e8;border-radius:7px;background:#f8fbff;color:#244875;
}
body.qt-desktop-mode .qt-pos-product-tile:hover,
body.qt-desktop-mode .qt-pos-product-tile:focus-visible{
 border-color:#244875;outline:2px solid #aecbe7;
}
body.qt-desktop-mode .qt-pos-product-tile strong{font-size:13px}
body.qt-desktop-mode .qt-pos-product-tile small{font-size:11px;color:#5c7087}
body.qt-desktop-mode .qt-pos-product-tile span{font-size:14px;font-weight:750}
body.qt-desktop-mode .qt-pos-cart .form{margin-top:0}
body.qt-desktop-mode .qt-pos-posting-status{
 color:#244875;font-size:12px;font-weight:700;width:100%;
 padding:7px 9px;border:1px solid #c9dae9;background:#eef5fc;border-radius:5px;
}
body.qt-desktop-mode .qt-pos-cart .form[inert]{
 opacity:.75;cursor:progress;
}
/* Author-level display:flex rules must not override DOM hidden on cash tender or
   the immutable receipt; a new sale must never show a stale confirmed receipt. */
body.qt-desktop-mode .qt-pos-window [hidden]{display:none!important;}
body.qt-desktop-mode .qt-pos-cart .invoice-item{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:8px;align-items:end;padding:9px 0;border-bottom:1px solid #e3eaf3;
}
body.qt-desktop-mode .qt-pos-cart .invoice-item>label:first-child{grid-column:1/-1}
body.qt-desktop-mode .qt-pos-cart .invoice-item>button{justify-self:end}
body.qt-desktop-mode .qt-pos-quantity-controls{
 display:flex;gap:4px;align-items:center;min-width:0;direction:ltr;
}
body.qt-desktop-mode .qt-pos-quantity-controls input{
 flex:1 1 62px;min-width:0;width:62px;text-align:center;
}
body.qt-desktop-mode .qt-pos-quantity-button{
 flex:0 0 29px;width:29px;height:34px;min-height:34px;
 padding:0;border:1px solid #c5d5e6;border-radius:6px;
 background:#eef5fc;color:#244875;font:700 19px Arial,Tahoma,sans-serif;
}
body.qt-desktop-mode .qt-pos-quantity-button:hover:not(:disabled){background:#dceafe;}
body.qt-desktop-mode .qt-pos-quantity-button:disabled{opacity:.45;cursor:not-allowed}

body.qt-desktop-mode .qt-pos-cart .invoice-lines{max-height:38vh;overflow-y:auto}
body.qt-desktop-mode .qt-pos-actions{padding-top:8px;border-top:1px solid #dce6f0}
body.qt-desktop-mode .qt-pos-actions .button.primary{flex:1;min-width:160px}
@media(max-width:1100px){
 body.qt-desktop-mode .qt-pos-workspace{grid-template-columns:minmax(0,1fr)}
 body.qt-desktop-mode .qt-pos-products-grid{max-height:42vh}
}
@media(max-width:520px){
 body.qt-desktop-mode .qt-pos-catalog,
 body.qt-desktop-mode .qt-pos-cart{padding:6px}
 body.qt-desktop-mode .qt-pos-products-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.qt-desktop-mode .qt-pos-actions .button.primary{width:100%}
}

body.qt-desktop-mode .qt-pos-catalog-pager{
 display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px;
 margin-top:10px;padding:8px;border-top:1px solid #d8e1eb;color:#244875;
}
body.qt-desktop-mode .qt-pos-catalog-status{min-width:130px;text-align:center;font-weight:650}

/* Qt POS customer search remains separately scoped and bounded from product catalog. */
body.qt-desktop-mode .qt-pos-customer-picker{
 display:flex;flex-direction:column;gap:5px;min-width:0;
}
body.qt-desktop-mode .qt-pos-customer-picker input,
body.qt-desktop-mode .qt-pos-customer-picker select{width:100%;min-width:0}
body.qt-desktop-mode .qt-pos-customer-pager{
 display:flex;align-items:center;justify-content:center;
 gap:6px;flex-wrap:wrap;font-size:11px;
}
body.qt-desktop-mode .qt-pos-customer-pager button{padding:3px 7px;min-height:28px}
body.qt-desktop-mode .qt-pos-customer-status{color:#405a76;font-size:11px}

/* Native invoice item and party selectors: paged and scoped to this tenant/branch. */
body.qt-desktop-mode .qt-invoice-party-picker{
 display:flex;flex-direction:column;gap:5px;min-width:0;
}
body.qt-desktop-mode .qt-invoice-party-picker input,
body.qt-desktop-mode .qt-invoice-party-picker select{min-width:0;width:100%}
body.qt-desktop-mode .qt-invoice-party-pager,
body.qt-desktop-mode .qt-invoice-product-pager{
 display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap;
 font-size:11px;color:#405a76;
}
body.qt-desktop-mode .qt-invoice-party-pager button,
body.qt-desktop-mode .qt-invoice-product-pager button{
 padding:3px 9px;min-height:28px;
}
body.qt-desktop-mode .qt-invoice-product-picker{
 min-width:0;margin:10px 0;padding:10px;border:1px solid #d8e1eb;
 background:#f8fbff;border-radius:5px;
}
body.qt-desktop-mode .qt-invoice-product-picker>input{width:100%;margin-bottom:8px}
body.qt-desktop-mode .qt-invoice-product-grid{
 display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));
 gap:7px;max-height:210px;overflow-y:auto;margin-bottom:8px;
}
body.qt-desktop-mode .qt-invoice-product-tile{
 display:flex;flex-direction:column;gap:5px;align-items:stretch;
 text-align:right;white-space:normal;overflow-wrap:anywhere;
 border:1px solid #c8d9e9;background:#fff;min-height:86px;padding:7px;
}
body.qt-desktop-mode .qt-invoice-product-tile strong{font-size:12px}
body.qt-desktop-mode .qt-invoice-product-tile small{font-size:11px;color:#5c7087}
body.qt-desktop-mode .qt-invoice-product-tile span{font-weight:750;color:#244875}
@media(max-width:600px){
 body.qt-desktop-mode .qt-invoice-product-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));max-height:180px;
 }
}

/* Empty tenant setup actions remain visible inside purchases and POS. */
body.qt-desktop-mode .qt-module-setup{margin:8px 0;padding:9px;border:1px solid #e9c6a5;background:#fff8f0;border-radius:5px}
body.qt-desktop-mode .qt-module-setup-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:8px 0}


/* Native purchases child windows: sizing from latest offline
 * modules/purchases/views/{help_dialog,settings_dialog,purchases_statistics}.py */
body.qt-desktop-mode .qt-purchase-info-dialog{
 direction:rtl;text-align:right;color:#0b2f66;background:#f6f8fb;
 max-width:calc(100vw - 32px);max-height:calc(100dvh - 48px);overflow:auto;
}
body.qt-desktop-mode .qt-purchase-info-dialog.qt-purchase-help-dialog{width:min(760px,calc(100vw - 32px));min-height:min(560px,70dvh)}
body.qt-desktop-mode .qt-purchase-info-dialog.qt-purchase-settings-dialog{width:min(620px,calc(100vw - 32px));min-height:min(420px,65dvh)}
body.qt-desktop-mode .qt-purchase-info-dialog.qt-purchase-stat-dialog{width:min(1000px,calc(100vw - 32px));min-height:min(580px,70dvh)}
body.qt-desktop-mode .qt-purchase-info-dialog h2{font-size:16px;font-weight:bold;color:#244875;margin:0 0 10px}
body.qt-desktop-mode .qt-purchase-info-dialog h3{font-size:15px;color:#244875}
body.qt-desktop-mode .qt-purchase-info-dialog h4{font-size:12px;color:#244875;margin:12px 0 3px}
body.qt-desktop-mode .qt-purchase-info-dialog p.qt-purchase-info-panel{
 background:white;border:1px solid #cfd8e3;border-radius:6px;padding:10px;
 font-size:12px;line-height:1.9;margin:0 0 8px
}
body.qt-desktop-mode .qt-purchase-info-note{display:block;font-size:11px;color:#7a5423;margin-bottom:12px}
body.qt-desktop-mode .qt-purchase-info-dialog .qt-invoice-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
@media(max-width:640px){body.qt-desktop-mode .qt-purchase-info-dialog .qt-invoice-summary{grid-template-columns:1fr}}

/* ReportsWindow (latest offline): one toolbar + horizontal six-report selector.
   Enabled summary is cash-only until native ledger/cost/shift features are proven. */
.qt-report-native-tabs{display:flex;gap:6px;align-items:center;flex-wrap:wrap;
 direction:rtl;background:#fff;border:1px solid #dce5f1;border-radius:8px;
 padding:7px;margin-bottom:8px}
.qt-report-native-tab{background:#f8fafc;border:1px solid #dce5f1;border-radius:6px;
 color:#475569;padding:9px 13px;min-height:40px;font-size:13px;font-weight:700}
.qt-report-native-tab.active{background:#244875;border-color:#244875;color:#fff}
.qt-report-native-tab:hover:not(:disabled){background:#eaf1f8;color:#244875}
.qt-report-native-tab:disabled{opacity:.55;cursor:not-allowed}
.qt-report-treasury{direction:rtl}
.qt-report-treasury .qt-report-result-table{overflow:auto}
.qt-report-treasury .qt-report-result-table table{min-width:790px}
.qt-report-treasury .toolbar input{width:min(100%,340px)}
.qt-report-window[hidden],.qt-report-results[hidden],.qt-report-treasury[hidden],
.qt-report-window label[hidden],.qt-report-window button[hidden]{display:none!important}
@media(max-width:800px){
 .qt-report-native-tabs{flex-wrap:nowrap;overflow-x:auto}
 .qt-report-native-tab{white-space:nowrap;flex-shrink:0}
}

/* Standalone POS invoices — modules/pos/views/invoices_list_window.py */
body.qt-desktop-mode #body-content .qt-pos-invoice-window{width:100%;min-height:70vh;display:flex;flex-direction:column;gap:8px;padding:8px;background:#fff;color:#244875;direction:rtl;font-family:Arial,Tahoma,sans-serif;}
body.qt-desktop-mode #body-content .qt-pos-invoice-window h2{font-size:16px;font-weight:800;margin:4px 0;}
body.qt-desktop-mode #body-content .qt-pos-invoice-origin-note{font-size:11px;line-height:1.6;color:#4b6580;background:#f4f8fd;border:1px solid #d6e2ee;border-radius:6px;padding:8px 10px;margin:0;}
body.qt-desktop-mode #body-content .qt-pos-inv-filter{border:1px solid #cfdeee;border-radius:7px;background:#f8fbff;padding:9px;display:flex;flex-direction:column;gap:7px;}
body.qt-desktop-mode #body-content .qt-pos-inv-inputs,body.qt-desktop-mode #body-content .qt-pos-inv-actions{display:flex;gap:7px;align-items:end;flex-wrap:wrap;}
body.qt-desktop-mode #body-content .qt-pos-inv-field{display:flex;flex-direction:column;gap:3px;font-size:11px;font-weight:700;color:#244875;}
body.qt-desktop-mode #body-content .qt-pos-inv-field:first-child{flex:1;min-width:180px;max-width:350px;}
body.qt-desktop-mode #body-content .qt-pos-inv-field input,body.qt-desktop-mode #body-content .qt-pos-inv-field select{height:34px;border:1px solid #b6cadc;border-radius:5px;background:#fff;color:#244875;padding:5px 9px;font-size:12px;}
body.qt-desktop-mode #body-content .qt-pos-inv-button{border:1px solid #244875;background:#244875;border-radius:5px;color:#fff;padding:6px 11px;height:35px;cursor:pointer;font-size:12px;font-weight:700;}
body.qt-desktop-mode #body-content .qt-pos-inv-button.secondary{border-color:#496b91;background:#496b91;}
body.qt-desktop-mode #body-content .qt-pos-inv-button.primary{border-color:#1769c2;background:#1769c2;}
body.qt-desktop-mode #body-content .qt-pos-inv-button:disabled{background:#bdc8d5;border-color:#bdc8d5;cursor:not-allowed;}
body.qt-desktop-mode #body-content .qt-pos-inv-status{font-size:11px;color:#52708c;line-height:1.6;}
body.qt-desktop-mode #body-content .qt-pos-inv-tabs{display:flex;gap:5px;border-bottom:1px solid #d1dfeb;}
body.qt-desktop-mode #body-content .qt-pos-inv-tabs .qt-pos-inv-button{background:#eaf3fb;color:#244875;border-color:#c4d7e9;border-radius:6px 6px 0 0;min-width:115px;}
body.qt-desktop-mode #body-content .qt-pos-inv-tabs .qt-pos-inv-button.active{background:#1769c2;color:#fff;border-color:#1769c2;}
body.qt-desktop-mode #body-content .qt-pos-inv-content{flex:1;min-height:250px;display:flex;flex-direction:column;gap:7px;}
body.qt-desktop-mode #body-content .qt-pos-inv-content.qt-pos-inv-await .qt-pos-inv-scroll,
body.qt-desktop-mode #body-content .qt-pos-inv-content.qt-pos-inv-await .qt-pos-inv-pager{display:none!important;}
body.qt-desktop-mode #body-content .qt-pos-inv-scope-message{align-self:center;text-align:center;padding:32px 25px;background:#fff;border:1px solid #d1dfed;border-radius:8px;max-width:500px;margin:40px auto;}
body.qt-desktop-mode #body-content .qt-pos-inv-scope-message strong{display:block;font-size:16px;color:#244875;margin-bottom:12px;}
body.qt-desktop-mode #body-content .qt-pos-inv-scope-message p{font-size:12px;color:#58718c;}
body.qt-desktop-mode #body-content .qt-pos-inv-scroll{overflow:auto;max-width:100%;flex:1;}
body.qt-desktop-mode #body-content .qt-pos-inv-scroll[hidden]{display:none!important;}
body.qt-desktop-mode #body-content .qt-pos-inv-table{width:100%;min-width:870px;border-collapse:collapse;direction:rtl;}
body.qt-desktop-mode #body-content .qt-pos-inv-table th{background:#244875;color:#fff;padding:9px 7px;white-space:nowrap;text-align:center;height:38px;font-size:12px;}
body.qt-desktop-mode #body-content .qt-pos-inv-table td{border:1px solid #e0e9f1;padding:7px 5px;text-align:center;color:#244875;height:36px;font-size:12px;}
body.qt-desktop-mode #body-content .qt-pos-inv-table tbody tr:nth-child(even) td{background:#f8fbfe;}
body.qt-desktop-mode #body-content .qt-pos-inv-row{cursor:pointer;}
body.qt-desktop-mode #body-content .qt-pos-inv-row:hover td,
body.qt-desktop-mode #body-content .qt-pos-inv-row.selected td{background:#e5effb;}
body.qt-desktop-mode #body-content .qt-pos-inv-pager{display:flex;gap:7px;align-items:center;justify-content:flex-end;padding:5px;}
body.qt-desktop-mode #body-content .qt-pos-inv-summary{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;border:1px solid #cbdbea;background:#f9fbff;border-radius:6px;padding:7px;}
body.qt-desktop-mode #body-content .qt-pos-inv-stat{border:1px solid #dce6ef;background:#fff;padding:7px 9px;border-radius:6px;display:flex;align-items:center;justify-content:space-between;gap:7px;}
body.qt-desktop-mode #body-content .qt-pos-inv-stat span{font-size:11px;font-weight:700;color:#52718c;}
body.qt-desktop-mode #body-content .qt-pos-inv-stat strong{color:#244875;font-size:14px;}
body.qt-desktop-mode .qt-pos-inv-detail{width:min(950px,96vw);max-height:92vh;overflow:auto;direction:rtl;}
body.qt-desktop-mode .qt-pos-inv-detail-info{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;}
body.qt-desktop-mode .qt-pos-inv-detail-info p{margin:5px;font-size:12px;}
@media(max-width:780px){body.qt-desktop-mode #body-content .qt-pos-inv-summary{grid-template-columns:repeat(2,minmax(120px,1fr));}}


/* Purchases original Qt source: return totals below the return register.
 * Unavailable cash/credit classification must not silently render as zero. */
body.qt-desktop-mode .qt-purchase-return-summary{margin-top:9px}
body.qt-desktop-mode .qt-purchase-classification-note{
 grid-column:1/-1;display:block;width:100%;font-size:11px;
 line-height:1.7;color:#7b572d;background:#fff9ec;
 border:1px solid #eedbb7;border-radius:5px;padding:5px 10px
}
body.qt-desktop-mode .qt-purchase-return-summary~.qt-purchase-classification-note{margin:7px 0 10px}


/* Qt ReportsWindow printed pages: browser print shows ONLY authorized, already loaded
   rows from the current report tab; no server query or untrusted HTML templates. */
.qt-report-print-sheet{display:none}
@media print {
 @page{margin:12mm;size:auto}
 body > :not(.qt-report-print-sheet){display:none!important}
 body > .qt-report-print-sheet{
  display:block!important;position:static!important;direction:rtl!important;
  width:100%!important;background:#fff!important;color:#111827!important;
  font-family:Tahoma,Arial,sans-serif!important;font-size:10pt!important
 }
 .qt-report-print-sheet h1{font-size:16pt;margin:0 0 12pt;text-align:right}
 .qt-report-print-sheet p{margin:5pt 0;text-align:right;line-height:1.7}
 .qt-report-print-sheet .qt-report-print-caveat{font-weight:600;color:#374151}
 .qt-report-print-sheet table{
  width:100%;border-collapse:collapse;direction:rtl;table-layout:auto;margin-top:12pt
 }
 .qt-report-print-sheet th,.qt-report-print-sheet td{
  border:1px solid #bdc6d3;padding:5pt 6pt;text-align:right;
  font-size:9pt;overflow-wrap:anywhere;vertical-align:top
 }
 .qt-report-print-sheet th{background:#edf2f7!important;font-weight:700}
 .qt-report-print-sheet thead{display:table-header-group}
 .qt-report-print-sheet tr{break-inside:avoid;page-break-inside:avoid}
}

/* qt-three-native-windows-20261113: sourced from latest
   pos_window_ui_mixin.py::init_ui (cart title, line register, 2:1 panels);
   sales_window_ui_mixin.py and purchases_window_ui_mixin.py (_create_ui/_create_toolbar).
   Customer ERP only. No financial business logic changed. */
body.qt-desktop-mode #body-content:has(.qt-pos-window){
 background:#f8faff;padding:4px 6px;
}
body.qt-desktop-mode .qt-pos-window{
 flex:1;min-height:0;min-width:0;margin:0;padding:0;background:#f8faff;
 border:0;border-radius:0;box-shadow:none;display:flex;flex-direction:column;
}
body.qt-desktop-mode .qt-pos-workspace{
 flex:1;min-height:0;align-items:stretch;gap:0;
 grid-template-columns:minmax(0,2fr) minmax(0,1fr);
 border:1px solid #d8e1eb;background:#fff;
}
body.qt-desktop-mode .qt-pos-catalog,
body.qt-desktop-mode .qt-pos-cart{
 padding:0;border:0;border-radius:0;background:#fff;min-height:0;
}
body.qt-desktop-mode .qt-pos-catalog{
 display:flex;flex-direction:column;overflow:hidden;
 border-inline-end:1px solid #d8e1eb;
}
body.qt-desktop-mode .qt-pos-order-modes{
 order:0;flex:0 0 auto;margin:3px 4px 1px;padding:4px 6px;
 min-height:44px;border-radius:7px;background:#f7f9fc;
}
body.qt-desktop-mode .qt-pos-tools{
 order:1;flex:0 0 auto;margin:3px 4px 5px;justify-content:flex-end;
 padding:4px 6px;min-height:38px;
}
body.qt-desktop-mode .qt-pos-products-grid{
 order:2;flex:1;min-height:0;max-height:none;overflow-y:auto;
 padding:6px;grid-template-columns:repeat(auto-fill,minmax(116px,1fr));
}
body.qt-desktop-mode .qt-pos-catalog-pager{order:3;margin:0;min-height:40px;}
body.qt-desktop-mode .qt-pos-cart{display:flex;flex-direction:column;overflow:hidden;}
body.qt-desktop-mode .qt-pos-cart-header{
 display:flex;flex:0 0 auto;min-height:48px;align-items:center;direction:rtl;
 justify-content:space-between;gap:7px;padding:4px 5px;
 border-bottom:1px solid #d8e1eb;background:#f7f9fc;
}
body.qt-desktop-mode .qt-pos-cart-header label{
 display:flex;align-items:center;gap:5px;min-width:0;
 font:700 10px 'Segoe UI',Tahoma,Arial,sans-serif;color:#244875;
}
body.qt-desktop-mode .qt-pos-cart-search{flex:1;min-width:100px}
body.qt-desktop-mode .qt-pos-cart-search input{
 width:100%;min-width:70px;max-width:210px;height:34px;min-height:34px;
 padding:5px 8px;font-size:11px;
}
body.qt-desktop-mode .qt-pos-cart-header label:not(.qt-pos-cart-search){
 max-width:138px;flex:0 1 138px;
}
body.qt-desktop-mode .qt-pos-cart-header label:not(.qt-pos-cart-search) input{
 width:95px;min-width:0;min-height:32px;height:32px;
 padding:4px 5px;font:700 11px Consolas,monospace;
}
body.qt-desktop-mode .qt-pos-cart .qt-pos-form{
 display:flex;flex-direction:column;flex:1;min-height:0;
 gap:0;margin:0;padding:0;background:#fff;
}
body.qt-desktop-mode .qt-pos-line-head,
body.qt-desktop-mode .qt-pos-cart .invoice-item{
 display:grid;grid-template-columns:minmax(0,1.75fr) minmax(0,.77fr)
 minmax(0,1.3fr) minmax(0,.85fr) 27px;
 direction:rtl;align-items:center;gap:3px;
 min-width:0;
}
body.qt-desktop-mode .qt-pos-line-head{
 min-height:30px;padding:4px 5px;background:#244875;color:#fff;
 font:700 10px 'Segoe UI',Tahoma,Arial,sans-serif;text-align:center;
}
body.qt-desktop-mode .qt-pos-cart .invoice-lines{
 flex:1;min-height:110px;max-height:none;overflow:auto;
 padding:0 4px;border-bottom:1px solid #d8e1eb;
}
body.qt-desktop-mode .qt-pos-cart .invoice-item{
 min-height:45px;padding:4px 1px;
 border-bottom:1px solid #e0e6ed;background:#fff;
}
body.qt-desktop-mode .qt-pos-cart .invoice-item:nth-child(even){background:#f7faff;}
body.qt-desktop-mode .qt-pos-cart .invoice-item>label:first-child{grid-column:auto;}
body.qt-desktop-mode .qt-pos-cart .invoice-item>label{
 display:block;min-width:0;font-size:0;line-height:0;
}
body.qt-desktop-mode .qt-pos-cart .invoice-item select,
body.qt-desktop-mode .qt-pos-cart .invoice-item input{
 box-sizing:border-box;width:100%;min-width:0;height:31px;min-height:31px;
 font:600 10px 'Segoe UI',Tahoma,Arial,sans-serif;
 padding:3px 2px;border-radius:3px;
}
body.qt-desktop-mode .qt-pos-cart .qt-pos-quantity-controls{gap:1px;}
body.qt-desktop-mode .qt-pos-cart .qt-pos-quantity-controls input{
 text-align:center;min-width:28px;flex:1 1 auto;font-size:10px;padding:2px 0;
}
body.qt-desktop-mode .qt-pos-cart .qt-pos-quantity-button{
 flex:0 0 20px;width:20px;height:29px;min-height:29px;
 border-radius:3px;font-size:12px;padding:0;
}
body.qt-desktop-mode .qt-pos-line-total{
 display:block;text-align:center;font-size:11px;font-weight:800;
 color:#244875;direction:ltr;overflow:hidden;text-overflow:ellipsis;
}
body.qt-desktop-mode .qt-pos-cart .qt-pos-line-remove{
 width:27px;min-width:0;min-height:29px;padding:2px 1px;
 font-size:9px;border-radius:3px;text-align:center;justify-self:center;
}
body.qt-desktop-mode .qt-pos-cart .qt-pos-form>.form-grid{
 order:1;flex:0 0 auto;display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 7px;
 padding:8px;background:#f7f9fc;border-top:1px solid #e0e8f1;
}
body.qt-desktop-mode .qt-pos-cart .qt-pos-form>.form-grid label{
 font-size:10px;gap:3px;min-width:0;
}
body.qt-desktop-mode .qt-pos-cart .qt-pos-form>.form-grid input,
body.qt-desktop-mode .qt-pos-cart .qt-pos-form>.form-grid select{
 min-height:31px;height:31px;font-size:11px;padding:3px 6px;
}
body.qt-desktop-mode .qt-pos-cart .qt-pos-form>.toolbar{
 order:2;flex:0 0 auto;min-height:39px;margin:0;
 padding:6px 8px;border-top:1px solid #d8e1eb;
}
body.qt-desktop-mode .qt-pos-cart .qt-pos-actions{
 order:3;flex:0 0 auto;justify-content:space-between;
 padding:6px 8px;margin:0;background:#fff;
}
body.qt-desktop-mode .qt-pos-cart .qt-pos-posting-status{flex:1 1 100%;}
/* An unsupported button remains explicitly disabled rather than pretending to post. */
body.qt-desktop-mode .qt-pos-window button:disabled{cursor:not-allowed;}
@media(max-width:1100px){
 body.qt-desktop-mode .qt-pos-workspace{grid-template-columns:minmax(0,1fr);overflow:auto;}
 body.qt-desktop-mode .qt-pos-catalog{min-height:320px;}
 body.qt-desktop-mode .qt-pos-cart{min-height:360px;}
 body.qt-desktop-mode .qt-pos-products-grid{max-height:42vh;}
 body.qt-desktop-mode .qt-pos-cart .invoice-lines{max-height:32vh;}
}
@media(max-width:540px){
 body.qt-desktop-mode .qt-pos-cart-header{flex-wrap:wrap}
 body.qt-desktop-mode .qt-pos-cart-header label:not(.qt-pos-cart-search){max-width:none}
 body.qt-desktop-mode .qt-pos-line-head,
 body.qt-desktop-mode .qt-pos-cart .invoice-item{
  grid-template-columns:minmax(95px,1.5fr) 55px 94px 55px 27px;
  min-width:370px;
 }
 body.qt-desktop-mode .qt-pos-line-head{overflow:hidden}
 body.qt-desktop-mode .qt-pos-cart .qt-pos-form>.form-grid{grid-template-columns:1fr}
}

/* qt-purchase-native-window-20261113: original purchases_window_ui_mixin.py
   _create_ui/_create_toolbar/_create_tabs/_create_invoices_tab.
   No simulated payments or fake invoice mutation paths. */
body.qt-desktop-mode #body-content:has(.qt-invoice-purchase){
 background:#f4f7fb;padding:8px 9px;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase{
 display:flex;flex-direction:column;gap:7px;flex:1;min-height:0;min-width:0;
 background:#f4f7fb;color:#173a63;font-family:'Segoe UI',Tahoma,Arial,sans-serif;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-toolbar{
 display:flex;direction:rtl;align-items:center;min-height:58px;
 padding:8px 12px;gap:7px;border:1px solid #d7e0eb;
 border-bottom:2px solid #d9e8f8;border-radius:10px;
 background:#fff;overflow-x:auto;flex-wrap:nowrap;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-toolbar .qt-invoice-button{
 height:42px;min-height:42px;max-height:42px;
 min-width:104px;max-width:175px;flex:0 0 auto;
 padding:7px 13px;font:700 10.5px 'Segoe UI',Tahoma,Arial,sans-serif;
 border-radius:8px;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-toolbar .qt-invoice-button.success{
 min-width:148px;background:#18a957;border-color:#18a957;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-toolbar .qt-invoice-button.secondary{
 background:#4a647f;border-color:#4a647f;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-tabs{
 display:flex;direction:rtl;align-items:flex-end;flex:0 0 37px;
 min-height:37px;gap:3px;border-bottom:1px solid #cdd8e5;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-tabs .tab{
 height:36px;min-height:36px;max-height:36px;min-width:160px;
 background:#e9eef5;color:#244875;border:1px solid #cdd8e5;
 border-radius:8px 8px 0 0;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-tabs .tab.active{
 background:#1769c2;color:#fff;border-color:#1769c2;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-workarea{
 display:flex;flex-direction:column;min-height:0;flex:1;
 overflow:auto;gap:7px;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-workarea>.panel{
 min-height:0;min-width:0;display:flex;flex-direction:column;gap:7px;
 background:transparent;border:0;border-radius:0;box-shadow:none;
 margin:0;padding:0;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-filters{
 display:flex;direction:rtl;align-items:center;flex-wrap:wrap;
 min-height:62px;padding:9px 14px;margin:0;
 background:#fff;border:1px solid #d7e0eb;border-radius:10px;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-filters input{
 min-width:280px;max-width:430px;height:34px;min-height:34px;
 border:1px solid #c8d4e3;border-radius:7px;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-filters select{
 min-height:34px;height:34px;max-height:34px;
 border:1px solid #c8d4e3;border-radius:7px;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .table-scroll{
 display:block;flex:1 0 auto;min-height:200px;
 max-height:55vh;overflow:auto;background:#fff;
 border:1px solid #d7e0eb;border-radius:10px;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .table-scroll table{
 width:100%;min-width:1210px;direction:rtl;border-collapse:separate;
 border-spacing:0;white-space:nowrap;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase th{
 height:44px;min-height:44px;text-align:center;
 background:#244875;color:white;border-inline-start:1px solid #45668d;
 padding:7px 6px;font:700 11px 'Segoe UI',Tahoma,Arial,sans-serif;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase td{
 height:44px;min-height:44px;padding:7px 6px;text-align:center;
 background:#fff;color:#173a63;border-bottom:1px solid #e5ecf3;
 font:600 11px 'Segoe UI',Tahoma,Arial,sans-serif;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase tbody tr:nth-child(even) td{background:#f8fbfe;}
body.qt-desktop-mode #body-content .qt-invoice-purchase tbody tr:hover td{background:#edf5fe;}
body.qt-desktop-mode #body-content .qt-invoice-purchase td .button.small{
 min-height:30px;min-width:64px;border-radius:6px;
 font-size:11px;padding:5px 8px;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-summary{
 display:grid;grid-template-columns:repeat(5,minmax(125px,1fr));
 gap:10px;min-height:88px;padding:8px 10px;margin-top:auto;
 background:#fff;border:1px solid #d7e0eb;border-radius:10px;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-metric{
 min-height:68px;border-radius:9px;padding:7px 12px;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-pager{
 margin:0;background:#fff;border:1px solid #d7e0eb;border-radius:9px;
}
body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-purchase-classification-note{
 grid-column:1/-1;color:#65768b;line-height:1.65;font-size:10px;
}
body.qt-desktop-mode .qt-invoice-loading{
 padding:10px 14px;color:#516a84;font-size:12px;
 background:#f7f9fc;border:1px solid #d7e0eb;border-radius:8px;
}
@media(max-width:1150px){
 body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-summary{
  grid-template-columns:repeat(3,minmax(125px,1fr));
 }
}
@media(max-width:760px){
 body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-summary{
  grid-template-columns:repeat(2,minmax(115px,1fr));
 }
 body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-toolbar{overflow-x:auto;}
 body.qt-desktop-mode #body-content .qt-invoice-purchase .qt-invoice-filters input{min-width:165px;max-width:100%;}
}

/* qt-pos-original-six-columns-20261113
 * Verified against latest offline pos_window_ui_mixin.py:1751-1798.
 * Header and all item rows horizontally scroll together as one register. */
body.qt-desktop-mode .qt-pos-line-register{
 order:0;flex:1 1 auto;min-width:0;min-height:110px;
 overflow-x:auto;overflow-y:auto;background:#fff;
 border-bottom:1px solid #d8e1eb;
}
body.qt-desktop-mode .qt-pos-line-register .qt-pos-line-head,
body.qt-desktop-mode .qt-pos-line-register .invoice-item{
 display:grid;
 grid-template-columns:minmax(165px,1fr) 60px 105px 68px 64px 28px;
 min-width:505px;box-sizing:border-box;gap:3px;direction:rtl;
}
body.qt-desktop-mode .qt-pos-line-register .qt-pos-line-head{
 position:sticky;top:0;z-index:2;min-height:32px;
}
body.qt-desktop-mode .qt-pos-line-register .invoice-lines{
 flex:none;min-height:0;max-height:none;overflow:visible;
 display:flex;flex-direction:column;
 padding:0 4px;margin:0;border:0;
}
body.qt-desktop-mode .qt-pos-line-note{
 min-width:0;width:100%;height:29px;min-height:29px;
 padding:2px;border:1px dashed #c8d5e2;border-radius:3px;
 background:#f4f7fb;color:#8192a5;font-size:12px;text-align:center;
}
body.qt-desktop-mode .qt-pos-line-note:disabled{opacity:.7;cursor:not-allowed;}
.qt-employee-statistics{width:min(960px,94vw);max-height:90vh;overflow:auto}
.qt-employee-stat-cards{display:grid;grid-template-columns:repeat(3,minmax(140px,1fr));gap:10px;margin:10px 0 16px}
.qt-employee-stat-card{display:grid;gap:6px;padding:12px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc;text-align:center}
.qt-employee-stat-card strong{font-size:1.25rem;color:#244875}
@media(max-width:720px){.qt-employee-stat-cards{grid-template-columns:repeat(2,minmax(120px,1fr))}}
.qt-employee-report{width:min(1060px,96vw)}
.qt-employee-report-filters{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:10px;margin:10px 0}
.qt-employee-report-filters label{display:grid;gap:5px}
@media(max-width:720px){.qt-employee-report-filters{grid-template-columns:1fr}}
.qt-employee-catalogs{width:min(1040px,96vw)}
.qt-employee-catalog-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.qt-employee-catalog-section{min-width:0;border:1px solid #cbd5e1;border-radius:10px;padding:12px}
.qt-employee-catalog-entry{display:grid;grid-template-columns:1fr auto;gap:7px;margin-bottom:12px}
@media(max-width:760px){.qt-employee-catalog-columns{grid-template-columns:1fr}}
.qt-employee-attendance{width:min(820px,95vw)}
.qt-employee-attendance-status{display:grid;gap:7px;margin:10px 0;padding:14px;border:1px solid #cbd5e1;border-radius:10px;background:#f8fafc}
.qt-employee-attendance-status strong{color:#244875;font-size:1.08rem}
.qt-employee-attendance-summary{display:grid;grid-template-columns:repeat(3,minmax(110px,1fr));gap:8px;margin-bottom:10px}
.qt-employee-absence-form{grid-template-columns:150px 160px minmax(180px,1fr) auto;gap:7px;align-items:center;margin:10px 0;padding:10px;border:1px solid #d8e2ee;border-radius:9px;background:#f8fafc}
.qt-employee-absence-form:not([hidden]){display:grid}
@media(max-width:760px){.qt-employee-attendance-summary{grid-template-columns:repeat(2,minmax(110px,1fr))}.qt-employee-absence-form:not([hidden]){grid-template-columns:1fr}}
.qt-employee-schedule{width:min(850px,96vw)}
.qt-employee-schedule input[type=time]{min-width:105px}
.qt-employee-schedule output{display:inline-block;min-width:65px;text-align:center;font-weight:800;color:#244875}
@media print{
 body.qt-print-employee-report *{visibility:hidden!important}
 body.qt-print-employee-report .qt-employee-report,body.qt-print-employee-report .qt-employee-report *{visibility:visible!important}
 body.qt-print-employee-report .qt-employee-report{display:block!important;position:absolute;inset:0;width:100%;border:0;box-shadow:none;background:#fff;color:#000}
 body.qt-print-employee-report .qt-employee-report-filters,body.qt-print-employee-report .qt-rooms-actions{display:none!important}
}
@media(max-width:540px){
 body.qt-desktop-mode .qt-pos-line-register .qt-pos-line-head,
 body.qt-desktop-mode .qt-pos-line-register .invoice-item{
  grid-template-columns:minmax(165px,1fr) 60px 105px 68px 64px 28px;
  min-width:505px;
 }
}


/* Native Qt Rooms module: source rooms/views/room_window.py; isolated metadata only. */
body.qt-desktop-mode .qt-rooms-window{display:flex;flex-direction:column;gap:12px;min-height:300px}
body.qt-desktop-mode .qt-rooms-window>h2{margin:0;color:#244875;font-size:19px}
body.qt-desktop-mode .qt-rooms-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;direction:rtl}
body.qt-desktop-mode .qt-rooms-show-inactive{display:inline-flex;align-items:center;gap:6px;font-size:12px}
body.qt-desktop-mode .qt-rooms-table{border-collapse:collapse;width:100%;font-size:12px;direction:rtl}
body.qt-desktop-mode .qt-rooms-table th,body.qt-desktop-mode .qt-rooms-table td{padding:9px;border:1px solid #d5e0eb;text-align:right}
body.qt-desktop-mode .qt-rooms-table th{position:sticky;top:0;background:#e8f1f9;color:#244875}
body.qt-desktop-mode .qt-rooms-table tbody tr{cursor:pointer}
body.qt-desktop-mode .qt-rooms-table tbody tr:hover,
body.qt-desktop-mode .qt-rooms-table tbody tr.selected{background:#dceafa}
body.qt-desktop-mode .qt-rooms-dialog{width:min(480px,94vw);max-height:90dvh;overflow-y:auto;border:1px solid #bccfe2;border-radius:8px;background:white;padding:20px;box-shadow:0 12px 40px #102f4d35}
body.qt-desktop-mode .qt-rooms-dialog>h2{font-size:18px;color:#244875;margin:0 0 12px}
body.qt-desktop-mode .qt-rooms-dialog .qt-rooms-field{display:flex;flex-direction:column;gap:5px;margin:10px 0;color:#244875;font-size:13px}
body.qt-desktop-mode .qt-rooms-dialog input,
body.qt-desktop-mode .qt-rooms-dialog textarea{width:100%;min-height:36px;padding:8px;border:1px solid #c0d0e1;border-radius:5px;box-sizing:border-box;font:inherit}
body.qt-desktop-mode .qt-rooms-dialog textarea{min-height:76px;resize:vertical}
body.qt-desktop-mode .qt-rooms-window .qt-native-edit-backdrop,
body.qt-desktop-mode .qt-render-root>.qt-native-edit-backdrop{
 position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;
 background:#081c3480;padding:12px
}
body.qt-desktop-mode .qt-rooms-window .qt-room-status{color:#44607e;font-size:12px}


/* Native Qt Tables layout: original TableWindow right list (2) + left details (1). */
body.qt-desktop-mode .qt-tables-workspace{direction:rtl;min-width:0;min-height:420px}
body.qt-desktop-mode .qt-tables-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(285px,1fr);gap:12px;align-items:start}
body.qt-desktop-mode .qt-tables-list{display:flex;flex-direction:column;gap:10px;min-width:0}
body.qt-desktop-mode .qt-tables-list>h2{font-size:19px;color:#244875;margin:0}
body.qt-desktop-mode .qt-tables-details{min-width:0;display:flex;flex-direction:column;gap:10px}
body.qt-desktop-mode .qt-tables-detail-group,
body.qt-desktop-mode .qt-tables-history-group{border:1px solid #cbd9e8;border-radius:5px;padding:10px;min-width:0}
body.qt-desktop-mode .qt-tables-detail-group legend,
body.qt-desktop-mode .qt-tables-history-group legend{font-weight:700;color:#244875;padding-inline:5px}
body.qt-desktop-mode .qt-tables-details-body{min-height:105px;font-size:12px;color:#244875}
body.qt-desktop-mode .qt-tables-details-body p{margin:7px 0}
body.qt-desktop-mode .qt-tables-history-group table{border-collapse:collapse;width:100%;font-size:10px}
body.qt-desktop-mode .qt-tables-history-group th{border:1px solid #d5e0eb;padding:7px 3px;background:#e8f1f9;white-space:nowrap}
body.qt-desktop-mode .qt-tables-table{min-width:760px}
body.qt-desktop-mode .qt-table-modal-overlay{position:fixed;inset:0;z-index:120;display:flex;align-items:center;justify-content:center;background:#081c3480;padding:12px}
@media(max-width:850px){body.qt-desktop-mode .qt-tables-columns{grid-template-columns:minmax(0,1fr)}}


/* Original DeviceWindow: right-side device list (2) and detail/stat cards (1). */
body.qt-desktop-mode .qt-devices-workspace{direction:rtl;min-width:0;display:flex;flex-direction:column;gap:10px}
body.qt-desktop-mode .qt-devices-header{display:flex;align-items:center;min-height:70px;background:#fff;border:1px solid #cfdeed;
 padding:0 20px;color:#244875;font-size:22px;font-weight:800}
body.qt-desktop-mode .qt-devices-list{min-width:620px}
body.qt-desktop-mode .qt-device-overlay,
body.qt-desktop-mode .qt-maintenance-overlay{position:fixed;inset:0;z-index:120;display:flex;justify-content:center;align-items:center;
 background:#081c3480;padding:12px}
body.qt-desktop-mode .qt-device-dialog,
body.qt-desktop-mode .qt-maintenance-dialog{background:#fff;width:min(540px,96vw);max-height:90dvh;overflow:auto;padding:20px;
 border:1px solid #c0cede;border-radius:9px;box-shadow:0 10px 40px #13264148}
body.qt-desktop-mode .qt-device-dialog>h2,
body.qt-desktop-mode .qt-maintenance-dialog>h2{font-size:19px;margin:0 0 15px;color:#244875}
body.qt-desktop-mode .qt-device-dialog .qt-rooms-field,
body.qt-desktop-mode .qt-maintenance-dialog .qt-rooms-field{display:flex;flex-direction:column;gap:6px;margin:9px 0;color:#244875;font-size:13px}
body.qt-desktop-mode .qt-device-dialog input,
body.qt-desktop-mode .qt-device-dialog select,
body.qt-desktop-mode .qt-maintenance-dialog input,
body.qt-desktop-mode .qt-maintenance-dialog select,
body.qt-desktop-mode .qt-maintenance-dialog textarea{min-height:36px;border:1px solid #c8d8e6;border-radius:5px;
 box-sizing:border-box;width:100%;font:inherit;padding:6px;direction:rtl}
body.qt-desktop-mode .qt-maintenance-dialog textarea{min-height:75px;resize:vertical}
body.qt-desktop-mode .qt-maintenance-workspace{display:flex;flex-direction:column;gap:14px;min-height:380px}
body.qt-desktop-mode .qt-maintenance-table{min-width:850px}
body.qt-desktop-mode .qt-maintenance-table tbody tr{cursor:default}
body.qt-desktop-mode .qt-maintenance-table tbody tr:hover{background:#e4f1fd}
body.qt-desktop-mode .qt-maintenance-stat{padding:5px 9px;color:#244875;border:1px solid #d2e0ee;border-radius:5px;background:#f6f9fe;
 font-size:12px}


/* Original EmployeesWindow staff directory, detail pane and EmployeeEditDialog. */
body.qt-desktop-mode .qt-employees-workspace{display:flex;flex-direction:column;gap:10px;min-width:0;direction:rtl}
body.qt-desktop-mode .qt-employee-toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center;
 background:#fff;border:1px solid #d5e1ed;padding:8px;border-radius:7px}
body.qt-desktop-mode .qt-employee-toolbar .button{min-height:36px}
body.qt-desktop-mode .qt-employee-columns{display:grid;grid-template-columns:minmax(0,2fr) minmax(290px,1fr);
 gap:12px;min-width:0;align-items:start}
body.qt-desktop-mode .qt-employees-list,
body.qt-desktop-mode .qt-employee-details{min-width:0;display:flex;flex-direction:column;gap:10px}
body.qt-desktop-mode .qt-employees-list>h2,
body.qt-desktop-mode .qt-employee-details>h2{color:#244875;font-size:19px;margin:0}
body.qt-desktop-mode .qt-employee-filter-row{display:flex;gap:8px;flex-wrap:wrap;align-items:end}
body.qt-desktop-mode .qt-employee-filter-row>input{min-width:200px;flex:2}
body.qt-desktop-mode .qt-employee-filter-row>label{display:flex;align-items:center;flex-direction:column;
 font-size:12px;gap:4px}
body.qt-desktop-mode .qt-employee-filter-row input,
body.qt-desktop-mode .qt-employee-filter-row select{border:1px solid #cbd9e7;min-height:35px;border-radius:5px;padding:5px 8px}
body.qt-desktop-mode .qt-employee-total{color:#244875;font-weight:700;font-size:12px}
body.qt-desktop-mode .qt-employees-table{min-width:900px}
body.qt-desktop-mode .qt-employee-detail-card p{display:flex;align-items:center;gap:6px;min-height:30px;
 font-size:12px;color:#244875;border-bottom:1px solid #e6eef5;margin:0}
body.qt-desktop-mode .qt-employee-detail-card strong{min-width:92px}
body.qt-desktop-mode .qt-employee-overlay{position:fixed;inset:0;z-index:120;display:flex;align-items:center;
 justify-content:center;background:#081c3480;padding:12px}
body.qt-desktop-mode .qt-employee-dialog{max-height:92dvh;overflow:auto;width:min(850px,96vw);
 padding:18px 20px;background:white;border:1px solid #cad9e8;border-radius:8px}
body.qt-desktop-mode .qt-employee-dialog>h2{color:#244875;font-size:20px;margin:0 0 12px}
body.qt-desktop-mode .qt-employee-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 13px}
body.qt-desktop-mode .qt-employee-form-grid .qt-rooms-field{display:flex;flex-direction:column;gap:4px;
 font-size:12px;color:#244875}
body.qt-desktop-mode .qt-employee-form-grid input,
body.qt-desktop-mode .qt-employee-form-grid select,
body.qt-desktop-mode .qt-employee-form-grid textarea{box-sizing:border-box;width:100%;min-height:35px;
 padding:6px 8px;border:1px solid #cddae6;border-radius:4px;font:inherit;direction:rtl}
body.qt-desktop-mode .qt-employee-form-grid textarea{min-height:62px;resize:vertical}
body.qt-desktop-mode .qt-employee-active{display:flex;align-items:center;gap:6px}
@media(max-width:880px){body.qt-desktop-mode .qt-employee-columns{grid-template-columns:minmax(0,1fr)}}
@media(max-width:570px){body.qt-desktop-mode .qt-employee-form-grid{grid-template-columns:minmax(0,1fr)}}

/* StockWindow.init_ui from latest offline Qt source — scoped to products ONLY.
   No shared customers/suppliers/warehouses layout or financial control changes. */
body.qt-desktop-mode .qt-native-products{
 color:#17385f;font-family:"Noto Kufi Arabic",Tahoma,Arial,sans-serif;
}
body.qt-desktop-mode .qt-native-products .qt-native-module-main{
 background:#f5f8fc;border:none;border-radius:0;padding:8px 12px;
 gap:8px;min-height:0;overflow:auto
}
body.qt-desktop-mode .qt-native-products .qt-native-filters{
 flex-wrap:wrap;overflow:visible;min-height:60px;
 gap:8px;padding:7px 12px;border:1px solid #d9e4ef;
 border-radius:10px;justify-content:flex-start;background:#fff;
}
body.qt-desktop-mode .qt-native-products .qt-native-filters input:not([type=checkbox]),
body.qt-desktop-mode .qt-native-products .qt-native-filters select{
 min-height:40px;height:40px;border:1px solid #c8d6e5;border-radius:9px;
 font:700 12px "Noto Kufi Arabic",Tahoma,Arial,sans-serif;
 color:#17385f;background:#fff
}
body.qt-desktop-mode .qt-native-products .qt-native-filters>input[type=search],
body.qt-desktop-mode .qt-native-products .qt-native-filters>input:not([type=checkbox]){
 flex:1 1 215px;min-width:215px;max-width:100%;text-align:right;direction:rtl
}
body.qt-desktop-mode .qt-native-products .qt-native-filters>select{
 flex:0 0 150px;width:150px;min-width:150px
}
body.qt-desktop-mode .qt-native-products .qt-native-filters .qt-native-stock-section-label{
 order:0;display:flex;flex-direction:column;justify-content:center;
 min-width:160px;gap:1px;direction:rtl;text-align:right
}
body.qt-desktop-mode .qt-native-stock-section-label strong{
 color:#133f6d;font-size:14px;font-weight:900
}
body.qt-desktop-mode .qt-native-stock-section-label small{
 color:#536b84;font-size:10px;font-weight:700
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-date-field{
 display:flex;flex:0 0 218px;width:218px;gap:7px;direction:rtl;
 align-items:center;white-space:nowrap;font-size:12px;font-weight:800;color:#133f6d
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-date-field span{
 flex:0 0 62px;text-align:right
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-date-field input[type=date]{
 flex:0 0 148px;min-width:148px;width:148px;padding:0 7px;box-sizing:border-box
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-qty-field{
 display:flex;flex:0 0 218px;width:218px;gap:0;align-items:center;direction:rtl;
 height:40px;white-space:nowrap
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-qty-field span{
 flex:0 0 62px;font-weight:800;font-size:12px;color:#133f6d;text-align:right
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-qty-field select,
body.qt-desktop-mode .qt-native-products .qt-native-stock-qty-field input{
 box-sizing:border-box;flex:0 0 74px;min-width:74px;width:74px;height:38px;
 text-align:center;border-radius:0
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-qty-field select{
 border-radius:0 9px 9px 0;border-inline-start:none
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-qty-field input{
 border-radius:9px 0 0 9px
}
body.qt-desktop-mode .qt-native-products .qt-native-filters .qt-native-action{
 height:40px!important;min-height:40px!important;min-width:88px;
 background:#0f64bd;border:1px solid #0f64bd;border-radius:9px;
 font:900 12px "Noto Kufi Arabic",Tahoma,Arial,sans-serif
}
body.qt-desktop-mode .qt-native-products .qt-native-module-header.qt-native-stock-actions{
 display:flex;flex-wrap:wrap;direction:rtl;align-items:center;
 gap:7px;justify-content:flex-start;padding:8px 14px;min-height:56px;
 border:1px solid #d9e4ef;border-radius:10px;background:#fff
}
body.qt-desktop-mode .qt-native-products .qt-native-module-header .qt-native-module-heading{
 order:0;min-width:160px;flex:0 0 auto;direction:rtl;text-align:right
}
body.qt-desktop-mode .qt-native-products .qt-native-module-header .qt-native-module-heading strong{
 color:#133f6d;font-size:14px;font-weight:900
}
body.qt-desktop-mode .qt-native-products .qt-native-module-header .qt-native-module-heading small{
 color:#536b84;font-size:10px;font-weight:700
}
body.qt-desktop-mode .qt-native-products .qt-native-command-row{
 order:1;direction:rtl;display:flex;flex:1 1 720px;flex-wrap:wrap;
 min-width:0;gap:7px;align-items:center;overflow:visible
}
body.qt-desktop-mode .qt-native-products .qt-native-command-row .qt-native-action{
 min-height:42px;height:42px;border-radius:9px;white-space:nowrap;
 padding:6px 14px;font:900 12px "Noto Kufi Arabic",Tahoma,Arial,sans-serif
}
body.qt-desktop-mode .qt-native-products .qt-native-command-row .qt-native-action.success{
 background:#1aa158;border-color:#1aa158;min-width:150px;color:#fff
}
body.qt-desktop-mode .qt-native-products .qt-native-command-row .qt-native-action.primary{
 background:#154b82;border-color:#154b82;min-width:132px;color:#fff
}
body.qt-desktop-mode .qt-native-products .qt-native-command-row .qt-native-action.danger{
 background:#df382f;border-color:#df382f;min-width:116px;color:#fff
}
body.qt-desktop-mode .qt-native-products .qt-native-command-row .qt-native-action.secondary{
 background:#fff;border:1px solid #c8d6e5;color:#133f6d;
 min-width:94px
}
body.qt-desktop-mode .qt-native-products .qt-native-command-row .qt-native-action.secondary:hover:not(:disabled){
 background:#eef5fd;border-color:#154b82
}
body.qt-desktop-mode .qt-native-products .qt-native-command-row .qt-native-separator{
 width:1px;height:42px;background:#e7eef6;flex:0 0 1px
}
body.qt-desktop-mode .qt-native-products .qt-native-inventory-more{
 order:2;flex:1 1 100%;width:100%;display:flex;flex-wrap:wrap;
 direction:rtl;gap:6px;background:#fff;padding:8px 10px;
 border:1px solid #d9e4ef;border-radius:9px
}
body.qt-desktop-mode .qt-native-products .qt-native-inventory-more.hidden{display:none}
body.qt-desktop-mode .qt-native-products .qt-native-inventory-more .qt-native-action{
 background:#fff;border:1px solid #c8d6e5;color:#133f6d;
 font:800 11px "Noto Kufi Arabic",Tahoma,Arial,sans-serif;
 min-height:34px;height:34px;border-radius:8px
}
body.qt-desktop-mode .qt-native-products .qt-native-summary-host{
 flex:0 0 auto;background:#fff;border:1px solid #d9e4ef;
 border-radius:10px;padding:8px 10px
}
body.qt-desktop-mode .qt-native-products .qt-native-summary{
 height:auto;min-height:80px;direction:ltr;gap:10px;align-items:stretch
}
body.qt-desktop-mode .qt-native-products .qt-native-summary-card{
 min-height:80px;align-items:flex-end;gap:4px;padding:8px 14px;
 border:0;border-radius:9px
}
body.qt-desktop-mode .qt-native-products .qt-native-summary-card.blue{background:#f2f7fd;color:#133f6d}
body.qt-desktop-mode .qt-native-products .qt-native-summary-card.green{background:#eefaf4;color:#16884e}
body.qt-desktop-mode .qt-native-products .qt-native-summary-card.amber{background:#fff7ed;color:#c67a08}
body.qt-desktop-mode .qt-native-products .qt-native-summary-card.red{background:#fff1f1;color:#cc2d26}
body.qt-desktop-mode .qt-native-products .qt-native-summary-card span{
 font-size:12px;font-weight:800
}
body.qt-desktop-mode .qt-native-products .qt-native-summary-card strong{
 direction:ltr;font-size:22px;font-weight:900
}
body.qt-desktop-mode .qt-native-products .qt-native-content{
 min-height:220px;gap:6px;overflow:auto
}
body.qt-desktop-mode .qt-native-products .qt-native-list-options{
 flex:0 0 auto;min-height:54px;direction:ltr;gap:8px;
 padding:5px 10px;border-radius:10px
}
body.qt-desktop-mode .qt-native-products .qt-native-list-options select{
 width:86px;min-width:86px;height:34px
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-selected-count{
 color:#133f6d;font-weight:800
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-selected-count[hidden]{display:none}
body.qt-desktop-mode .qt-native-products .qt-native-pagination{
 min-height:56px;flex:0 0 auto;direction:ltr;justify-content:space-between;
 background:#fff;border:1px solid #d9e4ef;border-radius:10px;padding:6px 12px
}
body.qt-desktop-mode .qt-native-products .qt-native-pagination-status{
 margin:0;text-align:center;flex:1;color:#133f6d;font-size:12px;font-weight:900
}
body.qt-desktop-mode .qt-native-stock-page-buttons{
 direction:ltr;display:flex;align-items:center;gap:6px;flex:0 0 auto
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-page-buttons .qt-native-action{
 min-width:42px;height:40px;min-height:40px;
 background:#fff;color:#154b82;border:1px solid #c8d6e5;border-radius:8px
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-page-buttons .qt-native-action.active{
 background:#154b82;color:#fff;border-color:#154b82
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-footer{
 display:flex;direction:ltr;align-items:center;justify-content:space-between;
 gap:8px;flex:0 0 auto;min-height:32px;
 background:#eef6fd;padding:6px 10px;color:#536b84;font-size:11px;font-weight:700
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-footer span:last-child{color:#133f6d}
@media(max-width:820px){
 body.qt-desktop-mode .qt-native-products .qt-native-summary{flex-wrap:wrap}
 body.qt-desktop-mode .qt-native-products .qt-native-summary-card{flex:1 1 calc(50% - 10px)}
 body.qt-desktop-mode .qt-native-products .qt-native-pagination{flex-wrap:wrap;justify-content:center}
 body.qt-desktop-mode .qt-native-products .qt-native-pagination-status{flex:1 1 100%}
 body.qt-desktop-mode .qt-native-products .qt-native-stock-footer{flex-wrap:wrap}
}

/* stock_dialogs.CategoriesManagementDialog: ONE window, 2 original Qt tabs. */
body.qt-desktop-mode .qt-inventory-taxonomy-backdrop{
 position:fixed;inset:0;z-index:1350;display:flex;align-items:center;
 justify-content:center;background:rgba(12,27,48,.62);padding:16px;direction:rtl
}
body.qt-desktop-mode .qt-inventory-taxonomy-dialog{
 display:flex;flex-direction:column;gap:10px;background:#f9fbfe;
 width:min(960px,96vw);height:min(690px,93dvh);min-height:380px;
 border:1px solid #bfcfe1;border-radius:10px;padding:16px;
 color:#17385f;font:700 12px "Noto Kufi Arabic",Tahoma,Arial,sans-serif
}
body.qt-desktop-mode .qt-inventory-taxonomy-dialog h2{
 margin:0 0 3px;padding-bottom:8px;border-bottom:1px solid #d9e4ef;
 font-size:18px;color:#154b82;font-weight:900
}
body.qt-desktop-mode .qt-inventory-taxonomy-tabs{
 display:flex;direction:rtl;gap:3px;min-height:43px;
 border-bottom:1px solid #c1cfe0
}
body.qt-desktop-mode .qt-inventory-taxonomy-tabs button{
 background:#eaf1f8;color:#154b82;border:1px solid #c8d6e5;
 border-radius:8px 8px 0 0;padding:8px 16px;
 font:900 12px "Noto Kufi Arabic",Tahoma,Arial,sans-serif
}
body.qt-desktop-mode .qt-inventory-taxonomy-tabs button.active{
 background:#154b82;color:#fff;border-color:#154b82
}
body.qt-desktop-mode .qt-inventory-taxonomy-content{
 display:flex;flex-direction:column;gap:10px;flex:1;min-height:0;
 background:#fff;padding:12px;border:1px solid #d9e4ef;border-radius:7px
}
body.qt-desktop-mode .qt-inventory-taxonomy-search{
 display:flex;direction:rtl;align-items:center;gap:10px
}
body.qt-desktop-mode .qt-inventory-taxonomy-search input{
 flex:1;min-width:120px;min-height:39px;
 border:1px solid #c8d6e5;border-radius:8px;padding:6px 12px;font:700 12px inherit
}
body.qt-desktop-mode .qt-inventory-taxonomy-list{
 flex:1;min-height:110px;overflow:auto;list-style:none;margin:0;
 padding:3px;background:#fff;border:1px solid #c8d6e5;border-radius:6px
}
body.qt-desktop-mode .qt-inventory-taxonomy-item{
 direction:rtl;text-align:right;min-height:37px;
 padding:8px 12px;border-bottom:1px solid #e7eef6;cursor:pointer
}
body.qt-desktop-mode .qt-inventory-taxonomy-item.selected,
body.qt-desktop-mode .qt-inventory-taxonomy-item:hover{
 background:#dce9f7;color:#154b82
}
body.qt-desktop-mode .qt-inventory-taxonomy-state{
 font-size:11px;color:#536b84;margin:0
}
body.qt-desktop-mode .qt-inventory-taxonomy-controls{
 display:flex;direction:rtl;gap:8px;align-items:center
}
body.qt-desktop-mode .qt-inventory-taxonomy-action{
 padding:8px 12px;min-width:94px;min-height:34px;
 border:1px solid #c8d6e5;border-radius:7px;background:#fff;
 color:#154b82;font:800 12px "Noto Kufi Arabic",Tahoma,Arial,sans-serif
}
body.qt-desktop-mode .qt-inventory-taxonomy-action.primary{
 background:#154b82;border-color:#154b82;color:#fff
}
body.qt-desktop-mode .qt-inventory-taxonomy-action.danger{
 background:#df382f;border-color:#df382f;color:#fff
}
body.qt-desktop-mode .qt-inventory-taxonomy-action:disabled{
 opacity:.45;cursor:not-allowed
}
body.qt-desktop-mode .qt-inventory-taxonomy-footer{
 display:flex;justify-content:flex-end;direction:ltr;
 border-top:1px solid #dbe5ef;padding-top:10px
}


/* qt-invoice-child-window-native-20261114
 * Latest original SalesInvoiceDialog/PurchaseInvoiceDialog opens an independent,
 * maximized child workspace. The SalesWindow/PurchasesWindow register remains
 * behind it; there is no embedded editor tab or split-pane.
 */
body.qt-desktop-mode .qt-invoice-form-dialog:not(.hidden){
 position:fixed;inset:0;display:flex;align-items:center;justify-content:center;
 box-sizing:border-box;padding:8px;z-index:150;
 background:rgba(8,24,48,.64);
}
body.qt-desktop-mode .qt-invoice-form-dialog>.qt-invoice-entry-panel,
body.qt-desktop-mode .qt-invoice-form-dialog>.panel{
 box-sizing:border-box;
 width:min(1680px,calc(100vw - 16px));
 max-width:none;height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);
 min-width:0;overflow-y:auto;overflow-x:hidden;
 padding:11px 13px;border:1px solid #adc0d5;border-radius:8px;
 background:#f4f7fb;
}
body.qt-desktop-mode .qt-invoice-entry-window-heading{
 display:flex;align-items:center;direction:rtl;flex:0 0 auto;min-height:30px;
 padding:3px 10px;margin:0 0 6px;
 border-bottom:1px solid #d7e0eb;color:#244875;
 font:800 13px Arial,Tahoma,sans-serif;
}
body.qt-desktop-mode .qt-sales-entry-backdrop .qt-sales-entry-panel{
 width:100%;max-width:none;margin:0;border:0;box-shadow:none;
 background:transparent;
}
body.qt-desktop-mode .qt-invoice-form-dialog>.panel .qt-invoice-entry-close{
 display:block;margin:8px 0 3px auto;flex:0 0 auto;
}
body.qt-desktop-mode .qt-sales-entry-backdrop .qt-sales-entry-form{
 width:100%;min-width:0;max-width:none;
}
@media(max-width:700px){
 body.qt-desktop-mode .qt-invoice-form-dialog:not(.hidden){padding:4px}
 body.qt-desktop-mode .qt-invoice-form-dialog>.qt-invoice-entry-panel,
 body.qt-desktop-mode .qt-invoice-form-dialog>.panel{
  width:calc(100vw - 8px);height:calc(100dvh - 8px);
  max-height:calc(100dvh - 8px);padding:7px;
 }
}


/* qt-purchase-derived-invoice-layout-20261114
 * Offline PurchaseInvoiceDialog subclasses SalesInvoiceDialog. Use the
 * same native toolbar/details/items/totals hierarchy, with purchase-specific
 * fields and only verified posting actions enabled.
 */
body.qt-desktop-mode #body-content .qt-purchase-entry-panel{
 display:flex;flex-direction:column;gap:6px;
 background:transparent;border:0;box-shadow:none;
}
body.qt-desktop-mode #body-content .qt-purchase-entry-panel>h2{display:none}
body.qt-desktop-mode #body-content .qt-purchase-entry-form{
 display:flex;flex-direction:column;gap:8px;
 background:#f4f7fb;border:0;margin:0;padding:0;min-width:0;
}
body.qt-desktop-mode #body-content .qt-purchase-entry-toolbar{
 display:flex;align-items:center;gap:6px;direction:rtl;
 min-height:58px;overflow-x:auto;flex-shrink:0;
 padding:7px 10px;border:1px solid #d8e2ec;border-radius:8px;background:#fff;
}
body.qt-desktop-mode #body-content .qt-purchase-entry-btn{
 border:0;border-radius:7px;background:#244875;color:#fff;
 padding:7px 12px;min-width:76px;min-height:40px;
 font:800 12px Arial,Tahoma,sans-serif;white-space:nowrap;flex-shrink:0;
}
body.qt-desktop-mode #body-content .qt-purchase-entry-btn.success{background:#18a957}
body.qt-desktop-mode #body-content .qt-purchase-entry-btn.secondary{background:#4a647f}
body.qt-desktop-mode #body-content .qt-purchase-entry-btn.danger{background:#d9363e}
body.qt-desktop-mode #body-content .qt-purchase-entry-btn:disabled{
 background:#e2e8f0!important;color:#94a3b8!important;cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-purchase-entry-number{
 display:block;margin-inline-start:auto;white-space:nowrap;direction:rtl;
 border:1px solid #b9cbe0;border-radius:6px;padding:9px;
 font:800 12px Arial,Tahoma,sans-serif;background:#f8fbff;color:#244875;
}
body.qt-desktop-mode #body-content .qt-purchase-entry-card{
 background:#fff;border:1px solid #d8e2ec;border-radius:9px;
 padding:10px;min-width:0;display:flex;flex-direction:column;gap:9px;
}
body.qt-desktop-mode #body-content .qt-purchase-entry-card>h3{
 margin:0;padding:3px 4px 8px;border-bottom:1px solid #e7edf5;
 font:800 13px Arial,Tahoma,sans-serif;color:#244875;
}
body.qt-desktop-mode #body-content .qt-purchase-details-card .form-grid{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:10px;
}
body.qt-desktop-mode #body-content .qt-purchase-line-register{
 max-height:46dvh;overflow:auto;min-width:0;
 border:1px solid #d3dfeb;border-radius:6px;
}
body.qt-desktop-mode #body-content .qt-purchase-line-heading,
body.qt-desktop-mode #body-content .qt-purchase-line-register .invoice-item{
 display:grid;grid-template-columns:minmax(220px,2fr) minmax(100px,1fr) minmax(120px,1fr) 70px;
 gap:6px;align-items:center;direction:rtl;
 min-width:550px;box-sizing:border-box;
}
body.qt-desktop-mode #body-content .qt-purchase-line-heading{
 position:sticky;top:0;z-index:2;
 background:#244875;color:#fff;padding:10px;
 font:800 12px Arial,Tahoma,sans-serif;text-align:center;
}
body.qt-desktop-mode #body-content .qt-purchase-line-register .invoice-lines{
 display:flex;flex-direction:column;max-height:none;min-height:0;
 overflow:visible;padding:4px;margin:0;gap:4px;
}
body.qt-desktop-mode #body-content .qt-purchase-line-register .invoice-item{
 margin:0;padding:6px;border:1px solid #dfe6ef;background:#fff;
}
body.qt-desktop-mode #body-content .qt-purchase-line-register .invoice-item label{
 min-width:0;display:flex;flex-direction:column;gap:3px;
}
body.qt-desktop-mode #body-content .qt-purchase-line-register .invoice-item input,
body.qt-desktop-mode #body-content .qt-purchase-line-register .invoice-item select{
 width:100%;min-width:0;min-height:34px;
}
body.qt-desktop-mode #body-content .qt-purchase-totals-card{
 display:flex;align-items:flex-end;gap:8px;flex-direction:row;justify-content:space-between;flex-wrap:wrap;
}

/* StockDialog.BulkPriceUpdateDialog — original 980×680, 7 controls, 8 columns.
   Preview is read-only until the authorized, audited price update transaction exists. */
body.qt-desktop-mode .qt-inventory-bulk-backdrop{
 position:fixed;inset:0;z-index:1350;background:rgba(10,25,45,.65);
 display:flex;align-items:center;justify-content:center;padding:14px;direction:rtl
}
body.qt-desktop-mode .qt-inventory-bulk-dialog{
 width:min(980px,97vw);min-width:min(820px,97vw);height:min(680px,95dvh);
 min-height:400px;display:flex;flex-direction:column;gap:10px;
 background:#fff;border:1px solid #bed0e2;border-radius:9px;
 padding:12px;color:#244875;font:700 12px "Noto Kufi Arabic",Tahoma,Arial,sans-serif
}
body.qt-desktop-mode .qt-inventory-bulk-dialog h2{
 font-size:18px;font-weight:900;color:#0b315e;margin:0 0 4px
}
body.qt-desktop-mode .qt-inventory-bulk-options{
 display:grid;grid-template-columns:repeat(2,minmax(200px,1fr));gap:8px
}
body.qt-desktop-mode .qt-inventory-bulk-field{
 display:flex;align-items:center;gap:8px;min-width:0;
}
body.qt-desktop-mode .qt-inventory-bulk-field>span{
 font-weight:800;color:#244875;min-width:95px;flex:0 0 40%
}
body.qt-desktop-mode .qt-inventory-bulk-field input,
body.qt-desktop-mode .qt-inventory-bulk-field select{
 min-width:0;flex:1 1 60%;height:37px;border:1px solid #c8d6e5;
 border-radius:7px;background:#fff;padding:4px 8px;color:#244875;
 font:700 12px "Noto Kufi Arabic",Tahoma,Arial,sans-serif
}
body.qt-desktop-mode .qt-inventory-bulk-summary{
 padding:8px;font-size:12px;font-weight:800;margin:0;color:#244875;
 border:1px solid #dce6f0;border-radius:5px;background:#f7fafe
}
body.qt-desktop-mode .qt-inventory-bulk-select-all{
 display:flex;gap:16px;align-items:center;direction:rtl;color:#244875
}
body.qt-desktop-mode .qt-inventory-bulk-select-all label{
 display:flex;align-items:center;gap:7px
}
body.qt-desktop-mode .qt-inventory-bulk-table{
 flex:1;min-height:150px;overflow:auto;
 border:1px solid #dde6f2;background:#fff
}
body.qt-desktop-mode .qt-inventory-bulk-table table{
 width:100%;min-width:860px;border-collapse:collapse;direction:rtl;
 font-size:11px;text-align:center
}
body.qt-desktop-mode .qt-inventory-bulk-table th{
 background:#244875;color:#fff;padding:10px 7px;font-weight:900;
 border:1px solid #3e638a;white-space:nowrap
}
body.qt-desktop-mode .qt-inventory-bulk-table td{
 border:1px solid #dde6f2;padding:8px 7px;white-space:nowrap
}
body.qt-desktop-mode .qt-inventory-bulk-table tbody tr:nth-child(even){background:#fbfdff}
body.qt-desktop-mode .qt-inventory-bulk-table td:nth-child(7){
 background:#eaf7ee;color:#0b6b2b;font-weight:900
}
body.qt-desktop-mode .qt-inventory-bulk-actions{
 display:flex;gap:8px;direction:rtl;align-items:center
}
body.qt-desktop-mode .qt-inventory-bulk-button{
 height:40px;min-width:110px;padding:5px 12px;
 border:1px solid #c8d6e5;border-radius:8px;
 color:#154b82;background:#fff;font-weight:900
}
body.qt-desktop-mode .qt-inventory-bulk-button.primary{
 background:#154b82;color:#fff;border-color:#154b82
}
body.qt-desktop-mode .qt-inventory-bulk-button:disabled{opacity:.42;cursor:not-allowed}
@media(max-width:650px){
 body.qt-desktop-mode .qt-inventory-bulk-options{grid-template-columns:minmax(0,1fr)}
 body.qt-desktop-mode .qt-inventory-bulk-dialog{height:95dvh}
}

/* ItemDialogUiMixin: real Qt named groups inside product edit tabs.
   Non-migrated barcode image, expiry, measurement and raw material writes stay
   disabled to avoid silently corrupting stock or prices. */
body.qt-desktop-mode .qt-native-product-edit-panel>.form-grid{
 grid-template-columns:minmax(0,1fr);gap:10px
}
body.qt-desktop-mode .qt-native-item-group{
 min-width:0;margin:0;border:1px solid #d8e3ee;border-radius:8px;
 background:#fff;padding:10px 12px 12px
}
body.qt-desktop-mode .qt-native-item-group legend{
 padding:0 8px;font:900 14px "Noto Kufi Arabic",Tahoma,Arial,sans-serif;
 color:#154b82
}
body.qt-desktop-mode .qt-native-item-group-fields{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 13px
}
body.qt-desktop-mode .qt-native-item-auxiliary{
 display:flex;align-items:center;gap:8px;margin-top:9px
}
body.qt-desktop-mode .qt-native-item-auxiliary button{
 min-height:34px;border:1px solid #b8ccdf;border-radius:7px;
 background:#f2f6fb;color:#154b82;font-weight:800;padding:6px 12px
}
body.qt-desktop-mode .qt-native-item-auxiliary button:disabled{
 opacity:.5;cursor:not-allowed
}
body.qt-desktop-mode .qt-native-item-unavailable{
 display:flex;align-items:center;gap:9px;font:700 12px "Noto Kufi Arabic",Tahoma,Arial,sans-serif;
 color:#72839a
}
body.qt-desktop-mode .qt-native-item-unavailable input:disabled{opacity:.55}
body.qt-desktop-mode .qt-native-item-group .qt-native-form-note{
 grid-column:1/-1
}
@media(max-width:850px){
 body.qt-desktop-mode .qt-native-item-group-fields{
  grid-template-columns:repeat(2,minmax(0,1fr))
 }
}
@media(max-width:520px){
 body.qt-desktop-mode .qt-native-item-group-fields{
  grid-template-columns:minmax(0,1fr)
 }
}

/* Offline InventoryAdjustmentBatchDialog — nine-column physical-count modal.
   Controlled preview only; no inventory-posting privilege is delegated here. */
body.qt-desktop-mode .qt-inventory-count-backdrop{
 position:fixed;inset:0;z-index:1350;display:flex;align-items:center;justify-content:center;
 padding:15px;background:rgba(10,25,45,.65);direction:rtl
}
body.qt-desktop-mode .qt-inventory-count-dialog{
 width:min(1320px,97vw);height:min(860px,95dvh);min-height:500px;
 display:flex;flex-direction:column;gap:9px;
 padding:10px;background:#fff;border:1px solid #bed0e2;border-radius:10px;
 color:#244875;font:700 12px "Noto Kufi Arabic",Tahoma,Arial,sans-serif
}
body.qt-desktop-mode .qt-inventory-count-dialog h2{
 margin:0;font-size:17px;color:#154b82
}
body.qt-desktop-mode .qt-inventory-count-filters{
 display:grid;grid-template-columns:1fr 2fr 2fr auto auto;
 align-items:center;gap:8px
}
body.qt-desktop-mode .qt-inventory-count-filter{
 display:flex;align-items:center;gap:7px;min-width:0;color:#244875
}
body.qt-desktop-mode .qt-inventory-count-filter input,
body.qt-desktop-mode .qt-inventory-count-filter select{
 flex:1;min-width:0;height:36px;border:1px solid #c8d6e5;border-radius:6px;
 padding:5px 8px;color:#244875;background:#fff
}
body.qt-desktop-mode .qt-inventory-count-state{
 margin:0;color:#244875;font-weight:800
}
body.qt-desktop-mode .qt-inventory-count-table{
 flex:1;min-height:180px;overflow:auto;border:1px solid #dbe5f1
}
body.qt-desktop-mode .qt-inventory-count-table table{
 border-collapse:collapse;min-width:1190px;width:100%;direction:rtl;text-align:center
}
body.qt-desktop-mode .qt-inventory-count-table th{
 background:#154b82;color:#fff;font-size:12px;font-weight:900;
 padding:10px 7px;border:1px solid #386b9d
}
body.qt-desktop-mode .qt-inventory-count-table th:nth-child(4){
 background:#f5a623;color:#0b315e
}
body.qt-desktop-mode .qt-inventory-count-table td{
 border:1px solid #dbe5f1;padding:6px;white-space:nowrap
}
body.qt-desktop-mode .qt-inventory-count-table tbody tr:nth-child(even){background:#fbfdff}
body.qt-desktop-mode .qt-inventory-count-table td input{
 min-width:100px;width:100%;max-width:210px;border:1px solid #c8d6e5;
 border-radius:5px;padding:6px;background:#fff;color:#244875
}
body.qt-desktop-mode .qt-inventory-count-table td:nth-child(4) input{
 background:#fff8ec;border-color:#f5a623
}
body.qt-desktop-mode .qt-inventory-count-pager{
 display:flex;align-items:center;justify-content:space-between;gap:12px
}
body.qt-desktop-mode .qt-inventory-count-summary{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;
 padding:6px 8px;color:#244875;font-weight:800;border:1px solid #dbe5f1
}
body.qt-desktop-mode .qt-inventory-count-actions{
 display:flex;justify-content:flex-end;gap:8px
}
body.qt-desktop-mode .qt-inventory-count-dialog .qt-inventory-adjust-action{
 background:#fff;color:#154b82;border:1px solid #c8d6e5;
 min-width:110px;min-height:36px;border-radius:7px;padding:6px 12px;font-weight:900
}
body.qt-desktop-mode .qt-inventory-count-dialog .qt-inventory-count-actions button:first-child{
 color:#fff;background:#154b82;border-color:#154b82
}
body.qt-desktop-mode .qt-inventory-count-dialog button:disabled{
 opacity:.48;cursor:not-allowed
}
@media(max-width:850px){
 body.qt-desktop-mode .qt-inventory-count-filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.qt-desktop-mode .qt-inventory-count-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}
body.qt-desktop-mode .qt-users-action-permissions{margin-top:10px;border:1px solid #b8ccdf;border-radius:8px;padding:10px;max-height:48vh;overflow:auto}
body.qt-desktop-mode .qt-users-action-permissions>legend{padding:0 8px;color:#154b82;font-weight:900}
body.qt-desktop-mode .qt-users-action-tools{position:sticky;top:-10px;z-index:2;display:grid;grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto auto auto;gap:7px;padding:8px;background:#f5f8fc;border-bottom:1px solid #d7e2ee}
body.qt-desktop-mode .qt-users-action-tools input,body.qt-desktop-mode .qt-users-action-tools select{min-height:35px;border:1px solid #bdcede;border-radius:6px;padding:5px 8px}
body.qt-desktop-mode .qt-users-action-modules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:9px}
body.qt-desktop-mode .qt-users-action-module{min-width:0;border:1px solid #d7e2ee;border-radius:7px;background:#fff}
body.qt-desktop-mode .qt-users-action-heading{display:flex;align-items:center;gap:6px;padding:7px;background:#edf4fb;color:#154b82}
body.qt-desktop-mode .qt-users-action-heading strong{margin-inline-end:auto}
body.qt-desktop-mode .qt-users-action-heading button{min-height:29px;padding:3px 7px;font-size:11px}
body.qt-desktop-mode .qt-users-action-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:8px}
body.qt-desktop-mode .qt-users-action-list label{display:flex;align-items:flex-start;gap:5px;min-width:0;font-size:11px;color:#244875}
body.qt-desktop-mode .qt-users-action-list label:has(input:disabled){opacity:.48}
@media(max-width:900px){body.qt-desktop-mode .qt-users-action-tools{grid-template-columns:1fr 1fr}body.qt-desktop-mode .qt-users-action-modules{grid-template-columns:1fr}}

/* Native Qt TreasuryStatisticsDialog: six real, scoped cash-ledger figures. */
.qt-treasury-native-statistics{min-width:min(760px,80vw);direction:rtl}
.qt-treasury-statistics-note{margin:0 0 14px;color:#687b8f;font-size:12px;line-height:1.8}
.qt-treasury-native-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.qt-treasury-native-stat-grid .qt-treasury-stat{min-height:105px;align-items:center;overflow:hidden}
.qt-treasury-native-stat-grid .qt-treasury-stat strong{font-size:19px;max-width:100%;overflow:hidden;text-overflow:ellipsis}
@media(max-width:780px){
 .qt-treasury-native-statistics{min-width:0;width:100%}
 .qt-treasury-native-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:480px){.qt-treasury-native-stat-grid{grid-template-columns:1fr}}


/* Supplier dialog follows the compact Qt form, not the three-column product editor. */
body.qt-desktop-mode .qt-native-supplier-dialog{
 width:min(640px,calc(100vw - 32px));max-width:640px
}
body.qt-desktop-mode .qt-native-supplier-dialog .qt-native-edit-form>.form-grid{
 grid-template-columns:minmax(0,1fr);gap:8px
}
body.qt-desktop-mode .qt-native-supplier-dialog .qt-native-edit-form>.form-grid>.qt-native-field{
 display:grid;grid-template-columns:135px minmax(0,1fr);align-items:center;gap:10px
}
body.qt-desktop-mode .qt-native-supplier-dialog .qt-native-field:has([name="_opening_balance_direction"]){
 grid-template-columns:135px minmax(0,1fr) 105px
}
body.qt-desktop-mode .qt-native-supplier-dialog .qt-native-field textarea{
 max-height:70px;min-height:56px
}
body.qt-desktop-mode .qt-native-supplier-extra-disclosure{
 margin-top:8px;padding:10px;border:1px solid #d9e3ef;border-radius:6px
}
body.qt-desktop-mode .qt-native-supplier-extra-disclosure summary{
 cursor:pointer;font-weight:700;color:#244875;font-size:12px
}
body.qt-desktop-mode .qt-native-supplier-extra-disclosure .form-grid{
 margin-top:10px;grid-template-columns:repeat(2,minmax(0,1fr))
}
@media(max-width:520px){
 body.qt-desktop-mode .qt-native-supplier-dialog .qt-native-edit-form>.form-grid>.qt-native-field,
 body.qt-desktop-mode .qt-native-supplier-dialog .qt-native-field:has([name="_opening_balance_direction"]){
  grid-template-columns:minmax(0,1fr)
 }
 body.qt-desktop-mode .qt-native-supplier-extra-disclosure .form-grid{
  grid-template-columns:minmax(0,1fr)
 }
}

/* EmployeeFinancialSystemsWindow: original five RTL tabs, salary-increase workflow only.
   Non-implemented cash/payroll tabs never fake a financial transaction. */
body.qt-desktop-mode .qt-employee-financial{
 width:min(1160px,97vw);max-height:90dvh;overflow:auto;direction:rtl;
}
body.qt-desktop-mode .qt-employee-financial>.qt-rooms-actions{
 border-bottom:1px solid #cfdaea;padding-bottom:10px;gap:7px;margin:12px 0;
}
body.qt-desktop-mode .qt-employee-financial>.qt-rooms-actions button{
 min-width:115px;
}
body.qt-desktop-mode .qt-employee-financial>.qt-rooms-actions button:disabled{
 opacity:1;background:#dceafa;color:#124370;border-color:#83a7d0;cursor:default;
}
body.qt-desktop-mode .qt-employee-financial-content{
 display:grid;gap:10px;min-height:190px;min-width:0;
}
body.qt-desktop-mode .qt-employee-financial-content .table-scroll{
 max-height:50vh;overflow:auto;border:1px solid #d4e0eb;border-radius:7px;
}
body.qt-desktop-mode .qt-employee-financial-content table{
 min-width:980px;direction:rtl;
}
body.qt-desktop-mode .qt-employee-financial-content .qt-rooms-actions{
 display:flex;align-items:center;gap:9px;flex-wrap:wrap;
}
body.qt-desktop-mode .qt-employee-financial .qt-room-status{
 color:#244875;line-height:1.7;
}
@media(max-width:760px){
 body.qt-desktop-mode .qt-employee-financial{width:98vw;padding:12px}
 body.qt-desktop-mode .qt-employee-financial>.qt-rooms-actions button{
  min-width:unset;flex:1 1 110px
 }
}


/* Print the genuine current stock page rather than the full cloud dashboard.
   Named @page avoids changing invoice/POS print formats. */
#qt-inventory-print-view{display:none!important}
@page qt-inventory-stock-landscape{size:A4 landscape;margin:10mm}
@media print{
 body.qt-inventory-print-mode{margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}
 body.qt-inventory-print-mode > :not(#qt-inventory-print-view){display:none!important}
 body.qt-inventory-print-mode > #qt-inventory-print-view{
  display:block!important;visibility:visible!important;page:qt-inventory-stock-landscape!important;
  position:static!important;width:100%!important;height:auto!important;overflow:visible!important;
  color:#17385f!important;background:#fff!important;font:9pt "Noto Kufi Arabic",Arial,sans-serif!important
 }
 #qt-inventory-print-view .qt-inventory-print-heading{text-align:center;margin:0 0 9mm;color:#244875;break-after:avoid}
 #qt-inventory-print-view .qt-inventory-print-heading h1{font-size:17pt;font-weight:800;margin:0 0 3mm}
 #qt-inventory-print-view .qt-inventory-print-heading p{margin:0 0 1mm;font-size:9pt}
 #qt-inventory-print-view .qt-inventory-print-details{display:flex;flex-wrap:wrap;gap:2mm 6mm;padding:2mm 0 3mm;border-bottom:1px solid #cad6e3;margin-bottom:3mm;font-size:8pt}
 #qt-inventory-print-view .qt-inventory-print-table{border-collapse:collapse;table-layout:auto;width:100%;direction:rtl;font-size:8pt}
 #qt-inventory-print-view .qt-inventory-print-table thead{display:table-header-group}
 #qt-inventory-print-view .qt-inventory-print-table tr{break-inside:avoid;page-break-inside:avoid}
 #qt-inventory-print-view .qt-inventory-print-table th{
  background:#244875!important;color:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact;
  border:1px solid #244875;padding:2mm 1.5mm;text-align:right;font-weight:800
 }
 #qt-inventory-print-view .qt-inventory-print-table td{
  border:1px solid #cad6e3;padding:1.5mm;text-align:right;overflow-wrap:anywhere;vertical-align:top
 }
 #qt-inventory-print-view .qt-inventory-print-table tr:nth-child(even) td{
  background:#f4f8fc!important;-webkit-print-color-adjust:exact;print-color-adjust:exact
 }
 #qt-inventory-print-view .qt-inventory-print-foot{margin-top:3mm;color:#536b84;font-size:7pt}
}


/* InventoryReportsWindow and InventoryStatisticsWindow: standalone Qt-style
   read-only dialogs, no interaction with invoice/treasury modal layout. */
.qt-inventory-analytics-window{width:min(1320px,calc(100vw - 32px));max-width:calc(100vw - 32px);
 max-height:90dvh;box-sizing:border-box;margin:auto;padding:20px 22px;border:1px solid #ccd9e7;
 border-radius:12px;background:#fff;color:#244875;box-shadow:0 18px 50px #091f4140;overflow:auto;direction:rtl}
.qt-inventory-analytics-window::backdrop{background:#091e35ad}
.qt-inventory-analytics-head{display:flex;justify-content:space-between;align-items:center;gap:20px}
.qt-inventory-analytics-head h2{margin:0;font-size:23px;color:#244875}
.qt-inventory-analytics-disclaimer,.qt-inventory-analytics-unavailable{
 margin:12px 0;color:#526a82;line-height:1.7;font-size:12px}
.qt-inventory-analytics-unavailable{background:#f5f8fc;padding:8px 11px;border-right:3px solid #92abc5}
.qt-inventory-analytics-filters{display:grid;grid-template-columns:repeat(4,minmax(140px,1fr));
 align-items:end;gap:9px;background:#f8fafc;border:1px solid #d4dfeb;padding:12px;border-radius:8px}
.qt-inventory-analytics-field{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px;font-weight:700;color:#244875}
.qt-inventory-analytics-field input,.qt-inventory-analytics-field select{
 min-width:0;width:100%;height:38px;box-sizing:border-box;border:1px solid #cbd7e5;border-radius:6px;
 background:white;color:#17385f;padding:5px 9px;font:inherit}
.qt-inventory-analytics-field input:focus-visible,.qt-inventory-analytics-field select:focus-visible{
 outline:2px solid #277cbf;outline-offset:1px}
.qt-inventory-analytics-actions{display:flex;flex-wrap:wrap;gap:7px;margin:14px 0}
.qt-inventory-analytics-actions button{min-height:36px}
.qt-inventory-analytics-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:11px 0}
.qt-inventory-analytics-stat{display:flex;flex-direction:column;gap:8px;padding:13px;
 background:#f4f8fd;border:1px solid #d8e3ee;border-radius:7px;text-align:right}
.qt-inventory-analytics-stat span{color:#56708a;font-size:12px}
.qt-inventory-analytics-stat strong{font-size:19px;color:#244875;overflow-wrap:anywhere}
.qt-inventory-analytics-scroll{width:100%;max-height:48vh;overflow:auto;border:1px solid #d9e2ec;border-radius:7px}
.qt-inventory-analytics-table{border-collapse:separate;border-spacing:0;width:100%;font-size:12px}
.qt-inventory-analytics-table th{position:sticky;top:0;z-index:1;background:#244875;color:#fff;
 padding:10px 8px;text-align:right;white-space:nowrap}
.qt-inventory-analytics-table td{padding:9px 8px;border-bottom:1px solid #e4ebf2;max-width:260px;overflow-wrap:anywhere}
.qt-inventory-analytics-table tr:nth-child(even){background:#f8fbfd}
.qt-inventory-analytics-pager{display:flex;justify-content:center;align-items:center;gap:15px;padding:15px 0 4px}
@media(max-width:940px){.qt-inventory-analytics-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.qt-inventory-analytics-window{padding:12px;width:calc(100vw - 16px)}
 .qt-inventory-analytics-filters{grid-template-columns:1fr}
 .qt-inventory-analytics-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
 .qt-inventory-analytics-head h2{font-size:17px}}

/* Original EmployeeFinancialSystemsWindow - financial operational tabs. */
body.qt-desktop-mode .qt-employee-financial-content .qt-employee-financial-table{
 width:100%;border-collapse:collapse;direction:rtl;
}
body.qt-desktop-mode .qt-employee-financial-content .qt-employee-financial-table th,
body.qt-desktop-mode .qt-employee-financial-content .qt-employee-financial-table td{
 border:1px solid #d5e0eb;padding:7px 9px;text-align:right;font-size:12px;
}
body.qt-desktop-mode .qt-employee-financial-content .qt-employee-financial-table th{
 position:sticky;top:0;background:#e9f2fa;color:#22436a;z-index:1;
}
body.qt-desktop-mode .qt-employee-financial-content .qt-employee-financial-table tbody tr:nth-child(even){
 background:#f7faff;
}
body.qt-desktop-mode .qt-employee-financial-content .qt-rooms-actions .muted{
 margin-inline-start:auto;color:#576c80;font-size:12px;
}
body.qt-desktop-mode .qt-employee-financial-form{
 max-height:90dvh;overflow-y:auto;width:min(620px,96vw);direction:rtl;
}
body.qt-desktop-mode .qt-employee-financial-form .qt-employee-form-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;
}
body.qt-desktop-mode .qt-employee-financial-form .qt-rooms-field{
 display:flex;flex-direction:column;gap:5px;min-width:0;
}
body.qt-desktop-mode .qt-employee-financial-form .qt-employee-recurring{
 display:flex;flex-direction:row;align-items:center;gap:9px;
}
body.qt-desktop-mode .qt-employee-financial-form .qt-employee-recurring input{
 width:auto;min-height:auto;
}
body.qt-desktop-mode .qt-employee-financial-form textarea{
 resize:vertical;min-height:65px;
}
body.qt-desktop-mode .qt-employee-payroll-preview{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0;
}
body.qt-desktop-mode .qt-employee-payroll-preview .qt-rooms-field{
 display:flex;flex-direction:column;gap:6px;color:#244875;
}
body.qt-desktop-mode .qt-employee-payroll-preview input{
 width:100%;min-height:34px;border:1px solid #b7cadd;border-radius:6px;padding:6px;
}
body.qt-desktop-mode .qt-employee-payroll-preview button{
 grid-column:1/-1;justify-self:start;
}
body.qt-desktop-mode .qt-employee-payroll-result table{
 width:100%;max-width:650px;margin:8px 0 12px;border-collapse:collapse;
}
body.qt-desktop-mode .qt-employee-payroll-result th{
 width:55%;background:#edf4fb;color:#25486d;
}
body.qt-desktop-mode .qt-employee-financial-content button:disabled{
 cursor:not-allowed;opacity:.54;
}
@media(max-width:680px){
 body.qt-desktop-mode .qt-employee-financial-form .qt-employee-form-grid,
 body.qt-desktop-mode .qt-employee-payroll-preview{grid-template-columns:minmax(0,1fr)}
 body.qt-desktop-mode .qt-employee-financial-content .table-scroll{max-width:94vw;overflow-x:auto}
}

/* 2026-11-17 supplier Qt finance/report parity batch.
 * Scoped strictly to the suppliers workspace: never alter customer or treasury views. */
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-toolbar,
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-filters,
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-actions{
 display:flex;direction:rtl;align-items:center;flex-wrap:wrap;gap:8px;
 border:1px solid #d7e1ec;border-radius:8px;background:#fff;
 padding:9px 10px;margin-block:5px
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-toolbar>input{
 min-width:180px;flex:1 1 200px
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-toolbar>select{
 min-width:180px;flex:1 1 200px
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-toolbar>strong{
 flex:0 1 auto;padding:10px 12px;background:#f5f8fb;border:1px solid #d7e1ec;
 border-radius:6px;color:#244875;white-space:normal;overflow-wrap:anywhere
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-filters>input[type=date]{
 width:142px;max-width:100%;min-width:0
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-filters>input:not([type=date]){
 width:185px;min-width:120px;flex:1 1 145px
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-actions>.qt-native-action{
 min-height:36px
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-ledger-stats{
 display:grid;grid-template-columns:repeat(5,minmax(120px,1fr));gap:8px
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-table{
 border:1px solid #cfd9e5;min-height:140px;min-width:0;overflow:auto;background:#fff
}
body.qt-desktop-mode :is(.qt-native-supplier-report-dialog,.qt-native-supplier-advanced-dialog,
 .qt-native-supplier-column-settings,.qt-native-supplier-document-dialog){
 color:#244875;background:#fff;border:1px solid #b8ccdf;border-radius:9px;
 padding:18px;max-width:calc(100vw - 24px);max-height:90dvh;overflow:auto;direction:rtl
}
body.qt-desktop-mode :is(.qt-native-supplier-report-dialog,.qt-native-supplier-advanced-dialog,
 .qt-native-supplier-column-settings,.qt-native-supplier-document-dialog)::backdrop{
 background:rgba(16,40,68,.55)
}
body.qt-desktop-mode .qt-native-supplier-report-dialog h2,
body.qt-desktop-mode .qt-native-supplier-advanced-dialog h2{
 margin:0 0 14px;font-size:20px;font-weight:800
}
body.qt-desktop-mode .qt-native-supplier-report-body>.qt-native-ledger-tools{
 display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-block:10px
}
body.qt-desktop-mode .qt-native-supplier-report-body>.qt-native-ledger-stats{
 display:grid;grid-template-columns:repeat(3,minmax(160px,1fr));gap:12px
}
body.qt-desktop-mode .qt-native-supplier-report-dialog>.qt-native-ledger-tools{
 display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:9px;
 margin-top:14px;padding-top:12px;border-top:1px solid #d7e1ec
}
body.qt-desktop-mode .qt-native-supplier-report-table{min-height:160px;overflow:auto}
body.qt-desktop-mode .qt-native-supplier-column-options{
 display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));gap:10px;margin:15px 0
}
body.qt-desktop-mode .qt-native-supplier-column-label{
 display:flex;gap:7px;align-items:center;padding:8px;background:#f3f7fb;border-radius:5px
}
body.qt-desktop-mode .qt-native-supplier-document-grid{
 display:grid;grid-template-columns:minmax(115px,1fr) minmax(150px,2fr);
 gap:8px 14px;max-width:720px
}
body.qt-desktop-mode .qt-native-supplier-document-grid dt{font-weight:800;color:#244875}
body.qt-desktop-mode .qt-native-supplier-document-grid dd{
 margin:0;padding:7px;background:#f3f7fb;overflow-wrap:anywhere
}
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-pagination{
 display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px
}
@media(max-width:850px){
 body.qt-desktop-mode .qt-native-suppliers .qt-native-ledger-stats,
 body.qt-desktop-mode .qt-native-supplier-report-body>.qt-native-ledger-stats{
  grid-template-columns:repeat(2,minmax(120px,1fr))
 }
}
@media(max-width:520px){
 body.qt-desktop-mode .qt-native-suppliers .qt-native-ledger-stats,
 body.qt-desktop-mode .qt-native-supplier-report-body>.qt-native-ledger-stats,
 body.qt-desktop-mode .qt-native-supplier-column-options{
  grid-template-columns:minmax(0,1fr)
 }
 body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-toolbar>input,
 body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-toolbar>select{
  min-width:0;width:100%;flex-basis:100%
 }
}


/* BarcodeSettingsWindow: native RTL group panel, 600x550 source dimensions. */
body.qt-desktop-mode .qt-barcode-settings-dialog{box-sizing:border-box;width:min(600px,calc(100vw - 24px));
 max-width:calc(100vw - 24px);max-height:90dvh;direction:rtl;border:1px solid #bccbd9;
 border-radius:7px;padding:0;background:#f9f9f9;color:#244875;box-shadow:0 15px 52px #102b4b4d}
body.qt-desktop-mode .qt-barcode-settings-dialog::backdrop{background:#0a1e349c}
body.qt-desktop-mode .qt-barcode-settings-heading{display:flex;align-items:center;justify-content:space-between;
 padding:11px 15px;background:#244875;color:#fff}
body.qt-desktop-mode .qt-barcode-settings-heading h2{margin:0;font-size:18px;color:#fff}
body.qt-desktop-mode .qt-barcode-settings-x{color:white;border:0;background:transparent;cursor:pointer;font-size:21px}
body.qt-desktop-mode .qt-barcode-settings-scroll{overflow:auto;max-height:calc(90dvh - 132px);padding:8px 13px}
body.qt-desktop-mode .qt-barcode-settings-group{min-width:0;border:1px solid #d4dce5;border-radius:5px;background:white;
 padding:10px;margin:9px 0 13px;display:flex;flex-direction:column;gap:9px}
body.qt-desktop-mode .qt-barcode-settings-group legend{font-weight:800;color:#244875;padding:0 5px}
body.qt-desktop-mode .qt-barcode-settings-group p{margin:2px 0;line-height:1.7}
body.qt-desktop-mode .qt-barcode-settings-check{display:flex;align-items:center;gap:9px;cursor:pointer}
body.qt-desktop-mode .qt-barcode-settings-check input{width:16px;height:16px;accent-color:#244875}
body.qt-desktop-mode .qt-barcode-settings-row{display:grid;grid-template-columns:minmax(120px,1fr) minmax(130px,1.4fr);
 align-items:center;gap:10px}
body.qt-desktop-mode .qt-barcode-settings-row input{height:35px;box-sizing:border-box;min-width:0;border:1px solid #c1cddb;
 border-radius:5px;padding:5px 9px;background:#fff;color:#244875}
body.qt-desktop-mode .qt-barcode-settings-note{font-size:11px;color:#547087;line-height:1.6}
body.qt-desktop-mode .qt-barcode-settings-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;
 border-top:1px solid #d7e0ea;padding:10px 13px;background:#f0f4f8}
body.qt-desktop-mode .qt-barcode-preview-sheet .qt-barcode-physical-label{
 width:var(--qt-label-width,38.1mm);height:var(--qt-label-height,25.4mm)}
body.qt-desktop-mode .qt-barcode-preview-sheet .qt-barcode-phone{font-size:6pt;line-height:1.1}
@media(max-width:560px){body.qt-desktop-mode .qt-barcode-settings-row{grid-template-columns:1fr;gap:2px}}


/* Original inventory_reports.py::ColumnSettingsDialog, 500×400 Qt dialog. */
.qt-inventory-columns-dialog{box-sizing:border-box;direction:rtl;
 width:min(500px,calc(100vw - 25px));max-width:calc(100vw - 25px);max-height:85dvh;
 padding:18px;background:#f9f9f9;color:#244875;border:1px solid #ccd8e5;
 border-radius:7px;box-shadow:0 12px 50px #10274755;overflow:auto}
.qt-inventory-columns-dialog::backdrop{background:#13294799}
.qt-inventory-columns-dialog h3{margin:4px 0 13px;color:#244875;font-size:18px}
.qt-inventory-columns-list{display:flex;flex-direction:column;gap:8px;
 padding:12px;border:1px solid #d1d1d6;border-radius:6px;margin:10px 0;max-height:43vh;overflow:auto}
.qt-inventory-columns-list legend{padding:0 5px;color:#244875;font-weight:bold}
.qt-inventory-columns-option{display:flex;align-items:center;gap:9px;min-height:27px;
 font-size:13px;color:#244875;cursor:pointer}
.qt-inventory-columns-option input{accent-color:#244875;width:18px;height:18px}
.qt-inventory-columns-buttons{display:flex;align-items:center;justify-content:flex-end;
 flex-wrap:wrap;gap:8px;margin-top:12px}
.qt-inventory-columns-buttons button{min-height:35px}
.qt-inventory-analytics-low-stock{margin:14px 0;direction:rtl}
.qt-inventory-analytics-low-stock h3{font-size:16px;margin:11px 0 8px;color:#244875}
.qt-inventory-analytics-low-stock .qt-inventory-analytics-scroll{max-height:250px}


/* UserCashboxAssignmentDialog from ERPSYSTEM original PySide6 source.
   Scoped to Treasury; no changes to invoice/account screens. */
.qt-cashbox-assignments{direction:rtl;min-width:0;display:flex;flex-direction:column;gap:11px;color:#244875}
.qt-cashbox-assignments h2{font-size:18px;font-weight:700;color:#244875;margin:0}
.qt-cashbox-assignment-hint,.qt-cashbox-assignment-warning{line-height:1.7;font-size:12px;color:#64748b;margin:0}
.qt-cashbox-assignment-warning{background:#f0f6fc;border:1px solid #d8e8f6;padding:8px 10px;border-radius:6px}
.qt-cashbox-assignment-form{border:1px solid #cbd8e6;border-radius:7px;padding:13px;background:#fff}
.qt-cashbox-assignment-grid{display:grid;grid-template-columns:1.2fr 1.2fr 1fr auto;gap:10px;align-items:end}
.qt-cashbox-assignment-label{display:flex;min-width:0;flex-direction:column;gap:5px;font-size:12px;font-weight:700}
.qt-cashbox-assignment-label select{width:100%;min-width:0;min-height:36px;height:36px;padding:5px 8px;background:#fff;border:1px solid #adbed2;border-radius:5px;color:#244875;font-size:12px}
.qt-cashbox-assignment-label select:focus{outline:2px solid #244875;outline-offset:1px}
.qt-cashbox-assignments .qt-treasury-button{min-width:98px;min-height:36px;height:36px}
.qt-cashbox-assignments .qt-treasury-button:focus-visible{outline:3px solid #bbdbfe;outline-offset:2px}
.qt-cashbox-assignment-message{color:#64748b;font-size:12px;margin:0}
.qt-cashbox-assignment-table{max-height:350px;min-height:145px}
.qt-cashbox-assignment-table tbody tr{cursor:pointer}
.qt-cashbox-assignment-table tbody tr:hover{background:#edf4ff}
.qt-cashbox-assignment-table tbody tr:focus-visible{outline:2px solid #244875;outline-offset:-2px}
.qt-cashbox-assignment-table .qt-treasury-table{width:100%;table-layout:fixed}
.qt-cashbox-assignment-table th,.qt-cashbox-assignment-table td{white-space:normal;overflow-wrap:anywhere}
@media(max-width:960px){
 .qt-cashbox-assignment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .qt-cashbox-assignment-grid>.qt-treasury-button{justify-self:start}
}
@media(max-width:520px){
 .qt-cashbox-assignment-grid{grid-template-columns:minmax(0,1fr)}
 .qt-cashbox-assignment-grid>.qt-treasury-button{width:100%}
}

/* Native TreasuryReportsWindow Qt typography, controls, geometry. */
body.qt-desktop-mode .qt-treasury-native-reports{padding:20px 24px 22px;font-family:Arial,Tahoma,sans-serif}
body.qt-desktop-mode .qt-treasury-native-reports>h2{font:700 22px Arial,Tahoma,sans-serif;color:#244875;border-bottom:1px solid #d1d1d6;padding-bottom:11px;margin-bottom:12px}
body.qt-desktop-mode .qt-treasury-native-reports>.qt-treasury-filter{border:2px solid #d1d1d6;border-radius:8px;background:#f9f9f9;padding:15px;margin:14px 0 12px}
body.qt-desktop-mode .qt-treasury-native-reports .qt-treasury-filter-row label{color:#244875;font:700 12px Arial,Tahoma,sans-serif}
body.qt-desktop-mode .qt-treasury-native-reports .qt-treasury-filter-row input,
body.qt-desktop-mode .qt-treasury-native-reports .qt-treasury-filter-row select{min-height:38px;border-radius:6px;border:2px solid #dde6f2;background:white;color:#244875;padding:6px 9px}
body.qt-desktop-mode .qt-treasury-native-reports .qt-treasury-filter-row select{border-color:#244875;font-weight:bold}
body.qt-desktop-mode .qt-treasury-native-reports .qt-treasury-table{width:100%;border:1px solid #d1d1d6;border-radius:6px;background:#fff}
body.qt-desktop-mode .qt-treasury-native-reports .qt-treasury-table thead th{background:#244875;color:white;font:700 13px Arial,Tahoma,sans-serif;padding:10px;border:0;text-align:right}
body.qt-desktop-mode .qt-treasury-native-reports .qt-treasury-table tbody tr{height:34px}
body.qt-desktop-mode .qt-treasury-native-reports .qt-treasury-table tbody tr:nth-child(even){background:#f9f9f9}
body.qt-desktop-mode .qt-treasury-column-dialog .qt-treasury-modal{width:min(400px,94vw);max-width:400px;min-height:min(500px,85vh);display:flex;flex-direction:column;background:#fff}
.qt-treasury-column-dialog .qt-treasury-column-controls{display:flex;flex:1;min-height:0;flex-direction:column;padding:20px;gap:12px;background:white;border:0}
.qt-treasury-column-dialog .qt-treasury-column-instruction{color:#244875;font:700 16px Arial,Tahoma,sans-serif}
.qt-treasury-column-dialog .qt-treasury-column-checks{display:flex;flex:1;min-height:160px;flex-direction:column;overflow:auto;gap:4px;border:1px solid #d1d1d6;border-radius:4px;padding:8px}
.qt-treasury-column-dialog .qt-treasury-column-checks label{display:flex;align-items:center;gap:8px;color:#244875;padding:8px;border-radius:4px;font:400 13px Arial,Tahoma,sans-serif;cursor:pointer}
.qt-treasury-column-dialog .qt-treasury-column-checks label:hover{background:#f9f9f9}
.qt-treasury-column-dialog .qt-treasury-column-checks input{accent-color:#244875}
.qt-treasury-column-dialog .qt-treasury-column-footer{display:flex;justify-content:flex-start;gap:10px}
@media print{body.qt-print-treasury-report .qt-treasury-column-dialog{display:none!important}}
/* TreasuryReportsWindow original 3-card summary: count, total, current. */
body.qt-desktop-mode .qt-treasury-native-reports>.qt-treasury-stat-list{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;
 padding:12px 0;direction:rtl
}
body.qt-desktop-mode .qt-treasury-native-reports .qt-treasury-report-summary-0 strong{color:#0d6efd}
body.qt-desktop-mode .qt-treasury-native-reports .qt-treasury-report-summary-1 strong{color:#198754}
body.qt-desktop-mode .qt-treasury-native-reports .qt-treasury-report-summary-2 strong{color:#b35c00}
body.qt-desktop-mode .qt-treasury-native-reports .qt-treasury-closing-reconciliation{
 padding:8px 12px;color:#244875;font-size:12px;line-height:1.8
}
@media(max-width:750px){
 body.qt-desktop-mode .qt-treasury-native-reports>.qt-treasury-stat-list{grid-template-columns:minmax(0,1fr)}
}

/* Qt TreasuryTransactionsTable: SingleSelection/SelectRows, 36px rows. */
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table[role="grid"] tbody tr{
 height:36px;cursor:default
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table[role="grid"] tbody tr[aria-selected="true"] > td{
 background:#d9eafa!important;color:#163a69!important
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table[role="grid"] tbody tr:focus-visible{
 outline:2px solid #244875;outline-offset:-2px
}
@media (forced-colors:active){
 body.qt-desktop-mode .qt-treasury-result .qt-treasury-table[role="grid"] tbody tr[aria-selected="true"] > td{
  background:Highlight!important;color:HighlightText!important
 }
}
/* Original TreasuryReportsWindow: column settings and browser print/PDF output. */
.qt-treasury-column-controls{border:1px solid #c7d7ea;border-radius:7px;background:#f6fafe;padding:9px;display:flex;flex-direction:column;gap:8px}
.qt-treasury-column-controls.hidden{display:none!important}
.qt-treasury-column-checks{display:flex;flex-wrap:wrap;gap:6px 13px}
.qt-treasury-column-checks label{display:inline-flex;align-items:center;gap:5px;font-size:12px;cursor:pointer;color:#244875}
.qt-treasury-native-reports{direction:rtl;min-width:0}
.qt-treasury-native-reports .qt-treasury-filter-row label{display:flex;flex-direction:column;align-items:flex-start;gap:4px}
.qt-treasury-native-reports .qt-treasury-filter-actions{flex-wrap:wrap}
@media print{
 @page qt-treasury-native-page{size:A4 landscape;margin:12mm}
 body.qt-print-treasury-report *{visibility:hidden!important}
 body.qt-print-treasury-report .qt-treasury-native-reports,body.qt-print-treasury-report .qt-treasury-native-reports *{visibility:visible!important}
 body.qt-print-treasury-report .qt-treasury-native-reports{position:absolute!important;inset:0!important;width:100%!important;max-width:none!important;
  display:block!important;overflow:visible!important;direction:rtl;background:white!important;color:#000!important;page:qt-treasury-native-page!important}
 body.qt-print-treasury-report .qt-treasury-native-reports .qt-treasury-filter,body.qt-print-treasury-report .qt-treasury-native-reports .qt-treasury-column-controls,
 body.qt-print-treasury-report .qt-treasury-native-reports button{display:none!important}
 body.qt-print-treasury-report .qt-treasury-native-reports .qt-treasury-scroll{overflow:visible!important;height:auto!important;max-height:none!important;border:0!important}
 body.qt-print-treasury-report .qt-treasury-native-reports .qt-treasury-table{width:100%!important;border-collapse:collapse!important;page-break-inside:auto}
 body.qt-print-treasury-report .qt-treasury-native-reports .qt-treasury-table tr{page-break-inside:avoid;break-inside:avoid}
 body.qt-print-treasury-report .qt-treasury-native-reports .qt-treasury-table th,body.qt-print-treasury-report .qt-treasury-native-reports .qt-treasury-table td{border:1px solid #999!important;
  color:#000!important;background:#fff!important;white-space:normal!important;font-size:10px!important}
}


/* Exact five summary labels/colors/placement traced from EmployeeFinancialSystemsWindow.py */
body.qt-desktop-mode .qt-employee-finance-summary{
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
 gap:7px;margin-top:12px;direction:rtl;
 border-top:1px solid #d8e2ee;padding-top:10px;
}
body.qt-desktop-mode .qt-employee-finance-card{
 min-height:55px;max-height:70px;
 border:1px solid #d8e2ee;border-radius:8px;
 padding:5px 6px;display:flex;flex-direction:column;
 justify-content:center;align-items:center;gap:2px;min-width:0;
 background:#f2f6fb;
}
body.qt-desktop-mode .qt-employee-finance-card-title{
 color:#526d89;font-size:11.5px;font-weight:700;white-space:nowrap;
}
body.qt-desktop-mode .qt-employee-finance-card-value{
 font-size:15px;color:#244875;min-width:0;max-width:100%;
 font-variant-numeric:tabular-nums;overflow:hidden;text-overflow:ellipsis;
}
body.qt-desktop-mode .qt-employee-finance-card.is-net{background:#edf4fb}
body.qt-desktop-mode .qt-employee-finance-card.is-bonuses{background:#ecf8f1}
body.qt-desktop-mode .qt-employee-finance-card.is-bonuses strong{color:#137a3d}
body.qt-desktop-mode .qt-employee-finance-card.is-deductions{background:#fdeeee}
body.qt-desktop-mode .qt-employee-finance-card.is-deductions strong{color:#b42318}
body.qt-desktop-mode .qt-employee-finance-card.is-salary{background:#f2f6fb}
body.qt-desktop-mode .qt-employee-finance-card.is-withdrawals{background:#fff6e8}
body.qt-desktop-mode .qt-employee-finance-card.is-withdrawals strong{color:#9a5b00}
body.qt-desktop-mode .qt-employee-finance-disclaimer{
 grid-column:1/-1;color:#6b7280;font-size:11px;margin:1px 0 0;
 border:0;padding:0;line-height:1.6;
}
body.qt-desktop-mode .qt-employee-financial>.qt-rooms-actions[role=tablist]{
 display:flex;flex-wrap:wrap;gap:5px;direction:rtl;
}
body.qt-desktop-mode .qt-employee-financial [role=tab][hidden]{display:none!important}
body.qt-desktop-mode .qt-employee-financial [role=tab]{
 min-height:38px;border-radius:7px 7px 0 0;
 border:1px solid #d8e2ee;background:#f4f7fc;color:#244875;
 font-size:12px;font-weight:700;white-space:nowrap;padding:7px 13px;
}
body.qt-desktop-mode .qt-employee-financial [role=tab][aria-selected=true]{
 background:#fff;border-bottom-color:#fff;color:#174a82;
 box-shadow:inset 0 3px 0 #1f5b93;opacity:1;cursor:default;
}
body.qt-desktop-mode .qt-employee-financial [role=tab][aria-selected=false]:hover{
 background:#e5eff9;
}
body.qt-desktop-mode .qt-employee-financial [role=tab]:focus-visible{
 outline:2px solid #1f5b93;outline-offset:2px;
}
body.qt-desktop-mode .qt-employee-report-aggregates{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:9px;margin:3px 0 12px;
}
body.qt-desktop-mode .qt-employee-report-aggregates .qt-employee-stat-card{
 min-height:64px;margin:0;justify-content:center;
}
body.qt-desktop-mode .qt-employee-report-aggregates strong{
 color:#244875;font-variant-numeric:tabular-nums;font-size:16px;
}
body.qt-desktop-mode .qt-employee-report .qt-employees-table{
 width:100%;border-collapse:collapse;min-width:720px;
}
body.qt-desktop-mode .qt-employee-report .qt-employees-table th{
 position:sticky;top:0;background:#244875;color:white;
 border-color:#41658f;text-align:right;
}
body.qt-desktop-mode .qt-employee-report .qt-employees-table tbody tr:nth-child(even){
 background:#f8fbfe;
}
@media(max-width:840px){
 body.qt-desktop-mode .qt-employee-finance-summary{
  grid-template-columns:repeat(3,minmax(0,1fr));
 }
 body.qt-desktop-mode .qt-employee-finance-card{max-height:none}
}
@media(max-width:560px){
 body.qt-desktop-mode .qt-employee-finance-summary{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body.qt-desktop-mode .qt-employee-report-aggregates{
  grid-template-columns:minmax(0,1fr);
 }
 body.qt-desktop-mode .qt-employee-financial [role=tab]{
  flex:1 1 120px;text-align:center;min-width:0;
 }
}


/* Employee Qt tables: source foreground status colors, approval and attendance. */
body.qt-desktop-mode .qt-employee-status-ok{color:#137a3d;font-weight:700}
body.qt-desktop-mode .qt-employee-status-error{color:#b42318;font-weight:700}
body.qt-desktop-mode .qt-employee-status-pending{color:#9a5b00;font-weight:700}
body.qt-desktop-mode .qt-employee-financial-content .qt-employee-financial-table td:last-child{
 min-width:255px;white-space:nowrap;
}
body.qt-desktop-mode .qt-employee-financial-table td:last-child button{
 min-width:0;margin-inline-end:4px;padding:4px 9px;
 min-height:28px;font-size:11px;
}
body.qt-desktop-mode .qt-employee-financial-table td:last-child button:nth-of-type(1){
 background:#1f5b93;color:white;
}
body.qt-desktop-mode .qt-employee-financial-table td:last-child button:nth-of-type(2){
 background:#244875;color:white;
}
body.qt-desktop-mode .qt-employee-financial-table td:last-child button:nth-of-type(3){
 background:#e53935;color:white;
}
body.qt-desktop-mode .qt-employee-financial-table td:last-child button:disabled{
 background:#e7ecf2;color:#8a98aa;opacity:.7;
}
body.qt-desktop-mode .qt-employee-financial-table td[title]{
 cursor:help;text-decoration:underline dotted #b4c1d2;text-underline-offset:2px;
}
body.qt-desktop-mode .qt-employee-attendance-history{
 border-collapse:collapse;width:100%;min-width:920px;direction:rtl;
}
body.qt-desktop-mode .qt-employee-attendance-history th{
 position:sticky;top:0;background:#244875;color:#fff;
 padding:8px 10px;text-align:right;
}
body.qt-desktop-mode .qt-employee-attendance-history td{
 padding:7px 10px;border:1px solid #d8e2ee;
 font-size:12px;text-align:right;vertical-align:middle;
}
body.qt-desktop-mode .qt-employee-attendance-history tbody tr:nth-child(even){
 background:#f8fbfe;
}
body.qt-desktop-mode .qt-employee-attendance-late{
 color:#b45309;font-weight:700;
}
body.qt-desktop-mode .qt-employee-attendance-status-cell{
 color:#254b73;font-weight:700;
}
body.qt-desktop-mode .qt-employee-payroll-empty-table{
 border:1px solid #cfdceb;border-radius:7px;padding:12px;
 background:#fafcff;overflow-x:auto;
}
body.qt-desktop-mode .qt-employee-payroll-empty-table>p{
 color:#657890;font-size:12px;margin:9px 0;
}
body.qt-desktop-mode .qt-employee-financial-content>h3{
 margin:0;color:#244875;font-size:17px;
}


/* InventoryReportsWindow expiry stages from modules/inventory/models/product_expiry.py. */
body.qt-desktop-mode .qt-inventory-analytics-table tr:has(td[data-expiry-stage="expired"]){background:#fdecec}
body.qt-desktop-mode .qt-inventory-analytics-table tr:has(td[data-expiry-stage="critical"]){background:#fff3e0}
body.qt-desktop-mode .qt-inventory-analytics-table tr:has(td[data-expiry-stage="week"]){background:#fffde7}
body.qt-desktop-mode .qt-inventory-analytics-table tr:has(td[data-expiry-stage="month"]){background:#eaf3ff}
body.qt-desktop-mode .qt-inventory-analytics-table td[data-expiry-stage="expired"]{color:#c62828;font-weight:700}
body.qt-desktop-mode .qt-inventory-analytics-table td[data-expiry-stage="critical"]{color:#e65100;font-weight:700}
body.qt-desktop-mode .qt-inventory-analytics-table td[data-expiry-stage="week"]{color:#8a6d00;font-weight:700}
body.qt-desktop-mode .qt-inventory-analytics-table td[data-expiry-stage="month"]{color:#244875;font-weight:700}
body.qt-desktop-mode .qt-inventory-analytics-table td[data-expiry-stage="healthy"]{color:#1b5e20;font-weight:700}

/* Scoped offline supplier reports/statistics: date ranges and actual top-ten purchase table. */
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-report-filters{
 display:grid;grid-template-columns:repeat(4,minmax(130px,1fr));gap:10px;
 align-items:center;background:#f8fafc;border:1px solid #d7e1ec;
 border-radius:8px;padding:12px;margin:12px 0
}
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-report-filters input,
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-report-filters select{
 min-width:0;max-width:100%;width:100%;box-sizing:border-box
}
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-stats-top-table{
 border:1px solid #d7e1ec;border-radius:6px;overflow:auto;max-width:100%;
 background:white;margin:12px 0;max-height:340px
}
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-stats-top-table .qt-native-table{
 min-width:580px
}
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-stat-opening{
 border-inline-start:4px solid #244875;margin:12px 0;padding:8px 12px;
 background:#f3f7fb;border-radius:4px;line-height:1.9
}
body.qt-desktop-mode .qt-native-supplier-report-dialog :is(input,select,button):focus-visible{
 outline:2px solid #0071e3;outline-offset:2px
}
@media(max-width:820px){
 body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-report-filters{
  grid-template-columns:repeat(2,minmax(0,1fr))
 }
}
@media(max-width:480px){
 body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-report-filters{
  grid-template-columns:minmax(0,1fr)
 }
}


/* EmployeeAttendanceWindow: source-matched 10-column CRUD grid and month status. */
body.qt-desktop-mode .qt-employee-attendance-month-header{
 display:flex;justify-content:space-between;align-items:center;gap:12px;
 flex-wrap:wrap;border-bottom:1px solid #d8e2ed;padding:6px 0;
}
body.qt-desktop-mode .qt-employee-attendance-month-header h3{
 margin:0;color:#244875;font-size:14px;font-weight:700;
}
body.qt-desktop-mode .qt-employee-attendance-month-header .muted{
 font-variant-numeric:tabular-nums;color:#6b7c93;font-weight:700;
}
body.qt-desktop-mode .qt-employee-attendance-summary-bar{
 display:flex;align-items:center;gap:9px;flex-wrap:wrap;
 margin:9px 0;padding:8px 10px;background:#f5f8fc;
 border:1px solid #d4dfec;border-radius:7px;
}
body.qt-desktop-mode .qt-employee-attendance-summary-tag{
 font-size:11px;color:#576d85;border-inline-end:1px solid #cad7e6;
 padding-inline-end:8px;white-space:nowrap;
}
body.qt-desktop-mode .qt-employee-attendance-summary-tag:last-child{
 border-inline-end:none;
}
body.qt-desktop-mode .qt-employee-attendance-summary-tag strong{
 color:#244875;font-weight:700;
}
body.qt-desktop-mode .qt-employee-attendance-history{
 min-width:1170px;table-layout:auto;
}
body.qt-desktop-mode .qt-employee-attendance-history th:nth-child(8),
body.qt-desktop-mode .qt-employee-attendance-history td:nth-child(8){
 min-width:175px;max-width:240px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
body.qt-desktop-mode .qt-employee-attendance-history th:nth-child(9),
body.qt-desktop-mode .qt-employee-attendance-history th:nth-child(10),
body.qt-desktop-mode .qt-employee-attendance-history td:nth-child(9),
body.qt-desktop-mode .qt-employee-attendance-history td:nth-child(10){
 min-width:74px;width:82px;text-align:center;
}
body.qt-desktop-mode .qt-employee-attendance-history td button{
 min-width:62px;min-height:28px;font-size:11px;
 padding:4px 8px;border-radius:5px;
}
body.qt-desktop-mode .qt-employee-attendance-history td:nth-child(9) button:not(:disabled){
 background:#244875;color:white;
}
body.qt-desktop-mode .qt-employee-attendance-history td:nth-child(10) button:not(:disabled){
 background:#d92d20;color:white;
}
body.qt-desktop-mode .qt-employee-attendance-history td button:disabled{
 background:#e5eaf0;color:#8b9baa;cursor:not-allowed;
}
body.qt-desktop-mode .qt-employee-attendance-edit{
 width:min(550px,96vw);direction:rtl;max-height:90dvh;overflow:auto;
}
body.qt-desktop-mode .qt-employee-attendance-edit .qt-employee-form-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 gap:10px;margin:12px 0;
}
body.qt-desktop-mode .qt-employee-attendance-edit .qt-rooms-field{
 display:flex;flex-direction:column;gap:5px;min-width:0;
}
body.qt-desktop-mode .qt-employee-attendance-edit .qt-rooms-field textarea{
 min-height:80px;resize:vertical;
}
body.qt-desktop-mode .qt-employee-advanced-filter{
 width:min(650px,97vw);direction:rtl;max-height:90dvh;overflow:auto;
}
body.qt-desktop-mode .qt-employee-advanced-filter .qt-employee-form-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
}
body.qt-desktop-mode .qt-employee-advanced-filter .qt-rooms-field{
 display:flex;flex-direction:column;gap:6px;min-width:0;
}
body.qt-desktop-mode .qt-employee-advanced-filter input{
 width:100%;min-height:36px;padding:6px 8px;
 border:1px solid #b9cadd;border-radius:5px;
}
body.qt-desktop-mode .qt-employee-advanced-filter .qt-rooms-actions{
 display:flex;align-items:center;gap:9px;flex-wrap:wrap;
}
@media(max-width:650px){
 body.qt-desktop-mode .qt-employee-attendance-edit .qt-employee-form-grid,
 body.qt-desktop-mode .qt-employee-advanced-filter .qt-employee-form-grid{
  grid-template-columns:minmax(0,1fr);
 }
 body.qt-desktop-mode .qt-employee-attendance-summary-bar{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body.qt-desktop-mode .qt-employee-attendance-summary-tag{
  border-inline-end:0;white-space:normal;
 }
}


/* Treasury native Qt remaining source modes — 2026-11-17 Staging */
.qt-treasury .qt-treasury-filter-row input[aria-label="رقم اليومية"],
.qt-treasury-native-reports .qt-treasury-filter-row input[aria-label="رقم اليومية"]{
 flex:0 1 245px;min-width:170px;max-width:320px;
 background:#fff;border:1px solid #afc6dc;border-radius:5px;
 height:36px;padding:6px 9px;font:600 12px Tahoma,"Segoe UI",sans-serif;
 color:#244875;direction:ltr;text-align:left;
}
.qt-treasury .qt-treasury-filter-row input[aria-label="رقم اليومية"]:focus,
.qt-treasury-native-reports .qt-treasury-filter-row input[aria-label="رقم اليومية"]:focus{
 outline:2px solid #6da7d9;outline-offset:1px;
}
.qt-treasury .qt-treasury-statistics-note,
.qt-treasury-native-reports .qt-treasury-statistics-note{
 line-height:1.75;white-space:normal;overflow-wrap:anywhere;
}
.qt-treasury-closing-details{
 margin-top:12px;border:1px solid #cad9e9;border-radius:6px;
 background:#f9fbfd;direction:rtl;overflow:auto;
}
.qt-treasury-closing-details>summary{
 padding:10px 12px;cursor:pointer;font-size:12px;font-weight:700;
 color:#244875;position:sticky;inset-block-start:0;background:#edf4fb;
}
.qt-treasury-closing-details>.qt-treasury-table{width:100%;background:#fff}
.qt-treasury-closing-details .qt-treasury-table tbody tr:nth-child(even){background:#f6fafe}
.qt-treasury-filter-actions{flex-wrap:wrap}
.qt-cashbox-daily-pager{flex-wrap:wrap;align-items:center}
.qt-cashbox-daily-pager .button{min-height:32px}
.qt-treasury-filter-row>.hidden,
.qt-treasury-shortcuts.hidden,
.qt-treasury-native-reports .qt-treasury-filter-row>.hidden{display:none!important}
@media(max-width:760px){
 .qt-treasury .qt-treasury-filter-row input[aria-label="رقم اليومية"],
 .qt-treasury-native-reports .qt-treasury-filter-row input[aria-label="رقم اليومية"]{
  min-width:130px;flex:1 1 170px;max-width:100%;
 }
 .qt-treasury-closing-details .qt-treasury-table{min-width:620px}
}
@media print{
 .qt-treasury-closing-details{display:block!important;overflow:visible!important}
 .qt-treasury-closing-details>summary{display:none!important}
 .qt-treasury-closing-details>.qt-treasury-table{display:table!important}
 .qt-treasury-native-reports .qt-treasury-closing-details{
   break-before:auto;page-break-inside:avoid;
 }
}

/* Offline-inspired supplier invoice-payment dialog; confined to current tenant workspace.
   Only posted purchase invoice settlement is enabled; not independent supplier advances. */
body.qt-desktop-mode .qt-supplier-invoice-pay-dialog{
 width:min(690px,calc(100vw - 24px));max-width:calc(100vw - 24px);
 max-height:90dvh;overflow-y:auto;direction:rtl;
 color:#244875;background:white;border:1px solid #bdccdc;
 border-radius:9px;padding:20px;box-shadow:0 15px 55px rgba(10,35,66,.2)
}
body.qt-desktop-mode .qt-supplier-invoice-pay-dialog::backdrop{
 background:rgba(12,32,58,.58)
}
body.qt-desktop-mode .qt-supplier-invoice-pay-dialog h2{
 font-size:20px;line-height:1.5;margin:0 0 10px;font-weight:800
}
body.qt-desktop-mode .qt-supplier-pay-form{
 display:flex;flex-direction:column;gap:12px;min-width:0
}
body.qt-desktop-mode .qt-supplier-pay-fields{
 border:2px solid #0071e3;border-radius:7px;padding:14px;
 display:grid;grid-template-columns:minmax(0,1fr);gap:10px
}
body.qt-desktop-mode .qt-supplier-pay-field{
 display:grid;grid-template-columns:150px minmax(0,1fr);gap:12px;align-items:center;
 font-size:13px;font-weight:700
}
body.qt-desktop-mode .qt-supplier-pay-field>span{min-width:0;line-height:1.6}
body.qt-desktop-mode .qt-supplier-pay-field>:is(input,select,textarea){
 box-sizing:border-box;min-width:0;width:100%;font:inherit;min-height:37px;
 border-radius:5px;border:1px solid #aabbd0;padding:8px 10px;
 color:#244875;background:white
}
body.qt-desktop-mode .qt-supplier-pay-field>:is(input,textarea):disabled{
 background:#eff2f5;color:#57677a;opacity:1
}
body.qt-desktop-mode .qt-supplier-pay-field textarea{min-height:62px;resize:vertical}
body.qt-desktop-mode .qt-supplier-pay-balances{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px
}
body.qt-desktop-mode .qt-supplier-pay-balances span{
 padding:11px;background:#f1f6fb;border:1px solid #d7e3ef;
 border-radius:6px;font-weight:700;font-size:13px;overflow-wrap:anywhere
}
body.qt-desktop-mode .qt-supplier-pay-actions{
 display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-start;
 border-top:1px solid #e4ebf3;padding-top:12px
}
body.qt-desktop-mode .qt-supplier-pay-actions button{
 min-height:39px;min-width:145px
}
body.qt-desktop-mode .qt-supplier-pay-status{
 font-size:13px;line-height:1.8;min-height:20px;color:#1d503a
}
body.qt-desktop-mode .qt-supplier-pay-status.error{color:#a72727}
body.qt-desktop-mode .qt-supplier-payment-pagination{
 display:flex;gap:9px;align-items:center;justify-content:center;margin:14px 0;
 flex-wrap:wrap
}
body.qt-desktop-mode .qt-supplier-invoice-pay-dialog :is(input,select,textarea,button):focus-visible{
 outline:2px solid #0071e3;outline-offset:2px
}
@media(max-width:720px){
 body.qt-desktop-mode .qt-supplier-pay-balances{
  grid-template-columns:minmax(0,1fr)
 }
}
@media(max-width:490px){
 body.qt-desktop-mode .qt-supplier-pay-field{
  grid-template-columns:minmax(0,1fr);gap:4px
 }
 body.qt-desktop-mode .qt-supplier-invoice-pay-dialog{padding:12px}
 body.qt-desktop-mode .qt-supplier-pay-actions button{
  width:100%;min-width:0
 }
}


/* Qt employee advanced_dialogs.py: evaluation, promotion, award + HR records. */
body.qt-desktop-mode .qt-employee-performance-entry{
 margin:8px 0 4px;display:flex;justify-content:flex-start;gap:8px;
}
body.qt-desktop-mode .qt-employee-performance-entry button{
 background:#f1f6fc;color:#244875;border:1px solid #b9cde2;
 min-height:34px;font-weight:700;
}
body.qt-desktop-mode .qt-employee-performance-entry button:disabled{
 cursor:not-allowed;opacity:.55;
}
body.qt-desktop-mode .qt-employee-performance{
 width:min(1060px,96vw);max-height:92dvh;overflow:auto;direction:rtl;
}
body.qt-desktop-mode .qt-employee-performance>h2{
 margin:0 0 5px;font-size:20px;color:#244875;
}
body.qt-desktop-mode .qt-employee-performance-summary{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:8px;margin:10px 0 15px;
}
body.qt-desktop-mode .qt-employee-performance-summary .qt-employee-stat-card{
 min-height:72px;margin:0;
 background:#f8fbfe;border:1px solid #d2e1ef;
}
body.qt-desktop-mode .qt-employee-performance-summary .qt-employee-stat-card:nth-child(1){
 background:#eef5ff;
}
body.qt-desktop-mode .qt-employee-performance-summary .qt-employee-stat-card:nth-child(4){
 background:#fff6e8;
}
body.qt-desktop-mode .qt-employee-performance-toolbar{
 border-bottom:1px solid #d4e0ea;gap:5px;padding-bottom:8px;flex-wrap:wrap;
}
body.qt-desktop-mode .qt-employee-performance-toolbar button{
 border-radius:7px 7px 0 0;min-height:36px;
}
body.qt-desktop-mode .qt-employee-performance-toolbar button:disabled{
 opacity:1;background:#e6f1ff;color:#244875;cursor:default;
 border-bottom:2px solid #244875;
}
body.qt-desktop-mode .qt-employee-performance-content{
 display:flex;flex-direction:column;gap:11px;min-width:0;
}
body.qt-desktop-mode .qt-employee-performance-content .table-scroll{
 max-height:50vh;overflow:auto;border:1px solid #d4e0ed;border-radius:6px;
}
body.qt-desktop-mode .qt-employee-performance-table{
 min-width:800px;width:100%;border-collapse:collapse;
}
body.qt-desktop-mode .qt-employee-performance-table th{
 text-align:right;background:#edf3fa;color:#244875;position:sticky;top:0;
 padding:9px 11px;z-index:1;
}
body.qt-desktop-mode .qt-employee-performance-table td{
 text-align:right;padding:9px 11px;border-bottom:1px solid #dde8f2;
 vertical-align:top;font-size:12px;white-space:normal;
 overflow-wrap:anywhere;
}
body.qt-desktop-mode .qt-employee-performance-table tbody tr:nth-child(even){
 background:#f9fbfe;
}
body.qt-desktop-mode .qt-employee-performance-form{
 width:min(600px,96vw);max-height:90dvh;overflow:auto;direction:rtl;
}
body.qt-desktop-mode .qt-employee-performance-form .qt-employee-form-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
}
body.qt-desktop-mode .qt-employee-performance-form .qt-rooms-field{
 display:flex;flex-direction:column;gap:6px;min-width:0;
}
body.qt-desktop-mode .qt-employee-performance-form textarea{
 min-height:90px;resize:vertical;
}
body.qt-desktop-mode .qt-employee-performance-form input,
body.qt-desktop-mode .qt-employee-performance-form select,
body.qt-desktop-mode .qt-employee-performance-form textarea{
 width:100%;border:1px solid #b6c8db;border-radius:6px;padding:8px;
 font-size:13px;background:white;color:#223b58;
}
body.qt-desktop-mode .qt-employee-performance-form .notice{
 background:#fff8e7;color:#815514;border:1px solid #e8d7a7;
 font-size:12px;padding:9px;border-radius:6px;
}
@media(max-width:760px){
 body.qt-desktop-mode .qt-employee-performance-summary{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body.qt-desktop-mode .qt-employee-performance-form .qt-employee-form-grid{
  grid-template-columns:minmax(0,1fr);
 }
 body.qt-desktop-mode .qt-employee-performance-toolbar button{
  flex:1 1 115px;
 }
}


/* Offline source: EmployeeTransactionsWindow.py, independent 860x560 window. */
body.qt-desktop-mode .qt-employee-withdrawals-window{
 width:min(860px,96vw);max-width:96vw;min-height:460px;
 max-height:92dvh;overflow:auto;direction:rtl;
}
body.qt-desktop-mode .qt-employee-withdrawals-window>h2{
 font-size:20px;color:#244875;margin:0 0 8px;
}
body.qt-desktop-mode .qt-employee-withdrawals-toolbar{
 display:flex;align-items:center;flex-wrap:wrap;gap:9px;
 background:#fff;border-bottom:1px solid #ddd;
 padding:5px;margin-bottom:10px;
}
body.qt-desktop-mode .qt-employee-withdrawals-toolbar strong{
 color:#244875;font-weight:700;white-space:nowrap;
 padding:5px;margin-inline-end:auto;
}
body.qt-desktop-mode .qt-employee-withdrawals-toolbar button{
 min-height:34px;white-space:nowrap;padding:7px 11px;
 font-size:12px;border-radius:5px;
}
body.qt-desktop-mode .qt-employee-withdrawals-toolbar button:disabled{
 opacity:.55;cursor:not-allowed;
}
body.qt-desktop-mode .qt-employee-withdrawals-toolbar button:nth-child(4):not(:disabled){
 background:#c62828;color:#fff;
}
body.qt-desktop-mode .qt-employee-withdrawals-grid{
 max-height:50dvh;overflow:auto;border:1px solid #ddd;
 border-radius:6px;
}
body.qt-desktop-mode .qt-employee-withdrawals-table{
 width:100%;min-width:760px;border-collapse:collapse;direction:rtl;
}
body.qt-desktop-mode .qt-employee-withdrawals-table th{
 text-align:right;background:#edf4fb;color:#244875;
 padding:10px;position:sticky;top:0;
}
body.qt-desktop-mode .qt-employee-withdrawals-table td{
 padding:9px 10px;text-align:right;font-size:12px;
 border-bottom:1px solid #e1e8ef;
}
body.qt-desktop-mode .qt-employee-withdrawals-table tbody tr:nth-child(even){
 background:#f7faff;
}
body.qt-desktop-mode .qt-employee-withdrawals-table tbody tr{
 cursor:pointer;
}
body.qt-desktop-mode .qt-employee-withdrawals-table tbody tr.selected{
 background:#dceaff;color:#173d68;
}
body.qt-desktop-mode .qt-employee-withdrawals-table tbody tr:focus-visible{
 outline:2px solid #244875;outline-offset:-2px;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary{
 display:flex;align-items:center;flex-wrap:wrap;gap:10px;
 margin:10px 0;padding:5px;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary-card{
 flex:1 1 190px;min-width:0;
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 border-radius:3px;padding:8px 15px;gap:4px;min-height:57px;
 font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary-card.is-total{
 background:#fff3cd;color:#745100;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary-card.is-approved{
 background:#d4edda;color:#236138;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary-card.is-pending{
 background:#cce5ff;color:#245681;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary-card span{
 font-size:11px;font-weight:700;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary-card strong{
 font-size:16px;font-weight:800;
}
body.qt-desktop-mode .qt-employee-withdrawal-entry{
 width:min(580px,95vw);max-height:90dvh;overflow:auto;direction:rtl;
}
body.qt-desktop-mode .qt-employee-withdrawal-entry .qt-employee-form-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
}
body.qt-desktop-mode .qt-employee-withdrawal-entry .qt-rooms-field{
 display:flex;flex-direction:column;gap:5px;min-width:0;
}
body.qt-desktop-mode .qt-employee-withdrawal-entry input,
body.qt-desktop-mode .qt-employee-withdrawal-entry select,
body.qt-desktop-mode .qt-employee-withdrawal-entry textarea{
 width:100%;border:1px solid #bccddd;border-radius:5px;padding:7px;
 background:#fff;color:#244875;
}
body.qt-desktop-mode .qt-employee-withdrawal-entry textarea{
 min-height:80px;resize:vertical;
}
@media(max-width:700px){
 body.qt-desktop-mode .qt-employee-withdrawal-entry .qt-employee-form-grid{
  grid-template-columns:minmax(0,1fr);
 }
 body.qt-desktop-mode .qt-employee-withdrawals-summary-card{
  flex:1 1 100%;
 }
}

/* Supplier Qt statement: true server paging, rights-gated actions and clear balance state. */
body.qt-desktop-mode .qt-native-suppliers .qt-supplier-payment-pagination{
 display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:9px;
 background:#f8fafc;border:1px solid #d7e1ec;border-radius:7px;
 margin-top:12px;padding:9px 11px;min-height:42px
}
body.qt-desktop-mode .qt-native-suppliers .qt-supplier-payment-pagination .qt-native-page-label{
 font-size:12px;font-weight:800;color:#244875;text-align:center;min-width:115px
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-balance{
 max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-actions{
 flex-wrap:wrap
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-table{
 max-width:100%;overflow:auto;min-width:0
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-table th,
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-table td{
 white-space:normal;overflow-wrap:anywhere;vertical-align:middle
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-table tr:nth-child(even){
 background:#f8fafc
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-table tbody tr:hover{
 background:#eef4fc
}
body.qt-desktop-mode .qt-native-suppliers .qt-native-action:disabled{
 cursor:not-allowed;opacity:.56
}
@media(max-width:620px){
 body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-filters{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px
 }
 body.qt-desktop-mode .qt-native-suppliers .qt-native-supplier-finance-filters>input{
  min-width:0;max-width:100%;width:100%
 }
}


/* Qt employee advanced_dialogs.py: evaluation, promotion, award + HR records. */
body.qt-desktop-mode .qt-employee-performance-entry{
 margin:8px 0 4px;display:flex;justify-content:flex-start;gap:8px;
}
body.qt-desktop-mode .qt-employee-performance-entry button{
 background:#f1f6fc;color:#244875;border:1px solid #b9cde2;
 min-height:34px;font-weight:700;
}
body.qt-desktop-mode .qt-employee-performance-entry button:disabled{
 cursor:not-allowed;opacity:.55;
}
body.qt-desktop-mode .qt-employee-performance{
 width:min(1060px,96vw);max-height:92dvh;overflow:auto;direction:rtl;
}
body.qt-desktop-mode .qt-employee-performance>h2{
 margin:0 0 5px;font-size:20px;color:#244875;
}
body.qt-desktop-mode .qt-employee-performance-summary{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:8px;margin:10px 0 15px;
}
body.qt-desktop-mode .qt-employee-performance-summary .qt-employee-stat-card{
 min-height:72px;margin:0;
 background:#f8fbfe;border:1px solid #d2e1ef;
}
body.qt-desktop-mode .qt-employee-performance-summary .qt-employee-stat-card:nth-child(1){
 background:#eef5ff;
}
body.qt-desktop-mode .qt-employee-performance-summary .qt-employee-stat-card:nth-child(4){
 background:#fff6e8;
}
body.qt-desktop-mode .qt-employee-performance-toolbar{
 border-bottom:1px solid #d4e0ea;gap:5px;padding-bottom:8px;flex-wrap:wrap;
}
body.qt-desktop-mode .qt-employee-performance-toolbar button{
 border-radius:7px 7px 0 0;min-height:36px;
}
body.qt-desktop-mode .qt-employee-performance-toolbar button:disabled{
 opacity:1;background:#e6f1ff;color:#244875;cursor:default;
 border-bottom:2px solid #244875;
}
body.qt-desktop-mode .qt-employee-performance-content{
 display:flex;flex-direction:column;gap:11px;min-width:0;
}
body.qt-desktop-mode .qt-employee-performance-content .table-scroll{
 max-height:50vh;overflow:auto;border:1px solid #d4e0ed;border-radius:6px;
}
body.qt-desktop-mode .qt-employee-performance-table{
 min-width:800px;width:100%;border-collapse:collapse;
}
body.qt-desktop-mode .qt-employee-performance-table th{
 text-align:right;background:#edf3fa;color:#244875;position:sticky;top:0;
 padding:9px 11px;z-index:1;
}
body.qt-desktop-mode .qt-employee-performance-table td{
 text-align:right;padding:9px 11px;border-bottom:1px solid #dde8f2;
 vertical-align:top;font-size:12px;white-space:normal;
 overflow-wrap:anywhere;
}
body.qt-desktop-mode .qt-employee-performance-table tbody tr:nth-child(even){
 background:#f9fbfe;
}
body.qt-desktop-mode .qt-employee-performance-form{
 width:min(600px,96vw);max-height:90dvh;overflow:auto;direction:rtl;
}
body.qt-desktop-mode .qt-employee-performance-form .qt-employee-form-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;
}
body.qt-desktop-mode .qt-employee-performance-form .qt-rooms-field{
 display:flex;flex-direction:column;gap:6px;min-width:0;
}
body.qt-desktop-mode .qt-employee-performance-form textarea{
 min-height:90px;resize:vertical;
}
body.qt-desktop-mode .qt-employee-performance-form input,
body.qt-desktop-mode .qt-employee-performance-form select,
body.qt-desktop-mode .qt-employee-performance-form textarea{
 width:100%;border:1px solid #b6c8db;border-radius:6px;padding:8px;
 font-size:13px;background:white;color:#223b58;
}
body.qt-desktop-mode .qt-employee-performance-form .notice{
 background:#fff8e7;color:#815514;border:1px solid #e8d7a7;
 font-size:12px;padding:9px;border-radius:6px;
}
@media(max-width:760px){
 body.qt-desktop-mode .qt-employee-performance-summary{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body.qt-desktop-mode .qt-employee-performance-form .qt-employee-form-grid{
  grid-template-columns:minmax(0,1fr);
 }
 body.qt-desktop-mode .qt-employee-performance-toolbar button{
  flex:1 1 115px;
 }
}


/* Offline source: EmployeeTransactionsWindow.py, independent 860x560 window. */
body.qt-desktop-mode .qt-employee-withdrawals-window{
 width:min(860px,96vw);max-width:96vw;min-height:460px;
 max-height:92dvh;overflow:auto;direction:rtl;
}
body.qt-desktop-mode .qt-employee-withdrawals-window>h2{
 font-size:20px;color:#244875;margin:0 0 8px;
}
body.qt-desktop-mode .qt-employee-withdrawals-toolbar{
 display:flex;align-items:center;flex-wrap:wrap;gap:9px;
 background:#fff;border-bottom:1px solid #ddd;
 padding:5px;margin-bottom:10px;
}
body.qt-desktop-mode .qt-employee-withdrawals-toolbar strong{
 color:#244875;font-weight:700;white-space:nowrap;
 padding:5px;margin-inline-end:auto;
}
body.qt-desktop-mode .qt-employee-withdrawals-toolbar button{
 min-height:34px;white-space:nowrap;padding:7px 11px;
 font-size:12px;border-radius:5px;
}
body.qt-desktop-mode .qt-employee-withdrawals-toolbar button:disabled{
 opacity:.55;cursor:not-allowed;
}
body.qt-desktop-mode .qt-employee-withdrawals-toolbar button:nth-child(4):not(:disabled){
 background:#c62828;color:#fff;
}
body.qt-desktop-mode .qt-employee-withdrawals-grid{
 max-height:50dvh;overflow:auto;border:1px solid #ddd;
 border-radius:6px;
}
body.qt-desktop-mode .qt-employee-withdrawals-table{
 width:100%;min-width:760px;border-collapse:collapse;direction:rtl;
}
body.qt-desktop-mode .qt-employee-withdrawals-table th{
 text-align:right;background:#edf4fb;color:#244875;
 padding:10px;position:sticky;top:0;
}
body.qt-desktop-mode .qt-employee-withdrawals-table td{
 padding:9px 10px;text-align:right;font-size:12px;
 border-bottom:1px solid #e1e8ef;
}
body.qt-desktop-mode .qt-employee-withdrawals-table tbody tr:nth-child(even){
 background:#f7faff;
}
body.qt-desktop-mode .qt-employee-withdrawals-table tbody tr{
 cursor:pointer;
}
body.qt-desktop-mode .qt-employee-withdrawals-table tbody tr.selected{
 background:#dceaff;color:#173d68;
}
body.qt-desktop-mode .qt-employee-withdrawals-table tbody tr:focus-visible{
 outline:2px solid #244875;outline-offset:-2px;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary{
 display:flex;align-items:center;flex-wrap:wrap;gap:10px;
 margin:10px 0;padding:5px;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary-card{
 flex:1 1 190px;min-width:0;
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 border-radius:3px;padding:8px 15px;gap:4px;min-height:57px;
 font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary-card.is-total{
 background:#fff3cd;color:#745100;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary-card.is-approved{
 background:#d4edda;color:#236138;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary-card.is-pending{
 background:#cce5ff;color:#245681;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary-card span{
 font-size:11px;font-weight:700;
}
body.qt-desktop-mode .qt-employee-withdrawals-summary-card strong{
 font-size:16px;font-weight:800;
}
body.qt-desktop-mode .qt-employee-withdrawal-entry{
 width:min(580px,95vw);max-height:90dvh;overflow:auto;direction:rtl;
}
body.qt-desktop-mode .qt-employee-withdrawal-entry .qt-employee-form-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
}
body.qt-desktop-mode .qt-employee-withdrawal-entry .qt-rooms-field{
 display:flex;flex-direction:column;gap:5px;min-width:0;
}
body.qt-desktop-mode .qt-employee-withdrawal-entry input,
body.qt-desktop-mode .qt-employee-withdrawal-entry select,
body.qt-desktop-mode .qt-employee-withdrawal-entry textarea{
 width:100%;border:1px solid #bccddd;border-radius:5px;padding:7px;
 background:#fff;color:#244875;
}
body.qt-desktop-mode .qt-employee-withdrawal-entry textarea{
 min-height:80px;resize:vertical;
}
@media(max-width:700px){
 body.qt-desktop-mode .qt-employee-withdrawal-entry .qt-employee-form-grid{
  grid-template-columns:minmax(0,1fr);
 }
 body.qt-desktop-mode .qt-employee-withdrawals-summary-card{
  flex:1 1 100%;
 }
}


/* Native TreasuryTransactionDialog correction/reversal and immutable audit.
   Staging 2026-11-17; all controls scoped to the original Treasury UI. */
.qt-treasury-reverse-dialog,
.qt-treasury-voucher-preview{
 border:1px solid #b6cce2;border-radius:10px;
 background:#fff;box-shadow:0 18px 58px rgba(20,39,71,.23);
 color:#244875;max-height:90vh;overflow:auto;direction:rtl;
 max-width:min(690px,calc(100vw - 24px));width:min(620px,calc(100vw - 24px));
 padding:0;
}
.qt-treasury-reverse-dialog::backdrop,.qt-treasury-voucher-preview::backdrop{
 background:rgba(13,29,56,.57);backdrop-filter:blur(2px);
}
.qt-treasury-reverse-form{padding:18px;display:flex;flex-direction:column;gap:12px}
.qt-treasury-reverse-form h3{font-size:19px;color:#244875;margin:0}
.qt-treasury-reverse-form label{display:flex;flex-direction:column;gap:5px;
 font-size:13px;font-weight:600;color:#274967}
.qt-treasury-reverse-form textarea,.qt-treasury-reverse-form input,
.qt-treasury-reverse-form select{
 min-height:36px;width:100%;padding:8px;border:1px solid #b3c6d9;
 background:#fff;color:#253c5d;border-radius:6px;font-size:13px;resize:vertical;
}
.qt-treasury-reverse-form textarea{min-height:90px;max-height:190px}
.qt-treasury-reverse-form input:focus-visible,
.qt-treasury-reverse-form select:focus-visible,
.qt-treasury-reverse-form textarea:focus-visible{
 outline:2px solid #5d9cd4;outline-offset:1px;
}
.qt-treasury-reverse-form .qt-treasury-reverse-summary{
 padding:11px 12px;background:#edf4fc;border-inline-start:4px solid #244875;
 border-radius:5px;font-size:13px;line-height:1.8;overflow-wrap:anywhere;
}
.qt-treasury-reverse-form .notice{padding:9px 12px;background:#fff6e8;
 border:1px solid #ead6b9;border-radius:5px;font-size:12px;line-height:1.8;
}
.qt-treasury-reverse-form .form-grid{display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.qt-treasury-reverse-form .form-grid>label:last-child{grid-column:1/-1}
.qt-treasury-manual-history .qt-treasury-table .button{white-space:nowrap}
.qt-treasury-manual-history .qt-treasury-table td:last-child{
 min-width:190px;display:table-cell;white-space:normal;
}
.qt-treasury-manual-history .qt-treasury-table td:last-child .button{
 margin:2px 3px;
}
.qt-treasury-audit-view{
 direction:rtl;border:1px solid #cad8e6;border-radius:7px;
 margin-top:16px;padding:10px;background:#fafcff;
}
.qt-treasury-audit-view>summary{font-size:14px;font-weight:700;
 padding:8px;cursor:pointer;color:#244875}
.qt-treasury-audit-view>.hint{font-size:12px;line-height:1.8;margin:8px 0 12px}
.qt-treasury-audit-filters{display:flex;flex-wrap:wrap;align-items:end;gap:10px}
.qt-treasury-audit-label{display:flex;flex-direction:column;gap:4px;
 font-size:12px;color:#264f7a;font-weight:600}
.qt-treasury-audit-label input,.qt-treasury-audit-label select{
 min-height:35px;background:#fff;color:#244875;border:1px solid #bacbdc;
 border-radius:5px;padding:4px 8px;
}
.qt-treasury-audit-status{font-size:12px;margin:12px 0;line-height:1.7}
.qt-treasury-audit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin:12px 0}
.qt-treasury-audit-card{display:flex;flex-direction:column;gap:5px;padding:11px;
 background:#fff;border:1px solid #d8e2ed;border-radius:7px}
.qt-treasury-audit-card small{color:#64748b;font-size:11px}
.qt-treasury-audit-card strong{font-size:15px;color:#244875;overflow-wrap:anywhere}
.qt-treasury-audit-table{max-height:340px;overflow:auto}
.qt-treasury-audit-table table{min-width:890px;width:100%}
.qt-treasury-voucher-paper{padding:20px 26px;background:#fff;direction:rtl;color:#1f2937}
.qt-treasury-voucher-paper h2{text-align:center;font-size:21px;color:#244875;margin:0 0 12px}
.qt-treasury-voucher-paper>.hint{text-align:center;line-height:1.8;margin:0 0 18px;font-size:12px}
.qt-treasury-voucher-fields{display:grid;grid-template-columns:180px minmax(0,1fr);
 border:1px solid #d8e2ec;border-radius:6px;overflow:hidden;margin:0 0 18px}
.qt-treasury-voucher-fields dt,.qt-treasury-voucher-fields dd{
 padding:10px 12px;margin:0;border-bottom:1px solid #e7edf3;
 font-size:12px;line-height:1.7;overflow-wrap:anywhere;
}
.qt-treasury-voucher-fields dt{background:#f5f8fd;font-weight:700;color:#244875}
.qt-treasury-voucher-fields dd{background:#fff;color:#334155}
.qt-treasury-voucher-fields :nth-last-child(-n+2){border-bottom:0}
.qt-treasury-voucher-controls{justify-content:center;padding:12px}
@media(max-width:560px){
 .qt-treasury-reverse-form .form-grid{grid-template-columns:minmax(0,1fr)}
 .qt-treasury-audit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .qt-treasury-voucher-fields{grid-template-columns:118px minmax(0,1fr)}
 .qt-treasury-reverse-form{padding:12px}
 .qt-treasury-voucher-paper{padding:12px}
}
@media print{
 @page{size:A5 portrait;margin:10mm}
 body:has(.qt-treasury-voucher-preview[open]) *{visibility:hidden!important}
 body:has(.qt-treasury-voucher-preview[open]) .qt-treasury-voucher-preview,
 body:has(.qt-treasury-voucher-preview[open]) .qt-treasury-voucher-preview *{
  visibility:visible!important;
 }
 .qt-treasury-voucher-preview[open]{display:block!important;position:fixed!important;
  inset:0!important;width:100%!important;height:auto!important;max-height:none!important;
  max-width:none!important;margin:0!important;box-shadow:none!important;
  border:0!important;overflow:visible!important;
 }
 .qt-treasury-voucher-preview[open]::backdrop{display:none!important}
 .qt-treasury-voucher-preview[open] .qt-treasury-voucher-controls{display:none!important}
 .qt-treasury-voucher-preview[open] .qt-treasury-voucher-paper{padding:0!important}
 .qt-treasury-voucher-preview[open] .qt-treasury-voucher-fields dt,
 .qt-treasury-voucher-preview[open] .qt-treasury-voucher-fields dd{
  font-size:11px!important;color:#111!important;
 }
}



/* Offline EmployeeSystemsDashboard four colored, independent summary cards. */
body.qt-desktop-mode .qt-employee-systems-overview{
 width:min(760px,96vw);max-height:90dvh;overflow:auto;direction:rtl;
}
body.qt-desktop-mode .qt-employee-systems-overview>h2{
 font-size:18px;color:#244875;margin:0 0 11px;
}
body.qt-desktop-mode .qt-employee-systems-overview-toolbar{
 display:flex;align-items:center;gap:10px;flex-wrap:wrap;
 border-bottom:1px solid #ddd;padding:4px 6px 10px;
 margin-bottom:12px;
}
body.qt-desktop-mode .qt-employee-systems-overview-toolbar strong{
 color:#244875;font-weight:700;margin-inline-end:auto;
}
body.qt-desktop-mode .qt-employee-systems-overview-toolbar button{
 min-height:34px;min-width:95px;
}
body.qt-desktop-mode .qt-employee-systems-overview-totals{
 display:flex;flex-wrap:wrap;gap:6px;align-items:stretch;
 direction:rtl;margin:10px 0;
}
body.qt-desktop-mode .qt-employee-systems-total{
 flex:1 1 145px;display:flex;flex-direction:column;gap:3px;
 align-items:center;justify-content:center;
 min-height:62px;border-radius:3px;padding:5px 10px;
 font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode .qt-employee-systems-total.is-withdrawals{background:#fff3cd;color:#745000}
body.qt-desktop-mode .qt-employee-systems-total.is-bonuses{background:#d4edda;color:#205c31}
body.qt-desktop-mode .qt-employee-systems-total.is-deductions{background:#f8d7da;color:#9d242d}
body.qt-desktop-mode .qt-employee-systems-total.is-increases{background:#d1ecf1;color:#13556b}
body.qt-desktop-mode .qt-employee-systems-total span{
 font-size:12px;font-weight:700;
}
body.qt-desktop-mode .qt-employee-systems-total strong{
 font-size:16px;font-weight:800;max-width:100%;overflow:hidden;text-overflow:ellipsis;
}
/* True Excel .xlsx uses native reusable OpenXML writer, no external library.
   Browser print preview produces the full report, with Save as PDF option. */
.qt-employees-export-print{display:none}
@media print{
 @page{size:A4 landscape;margin:12mm}
 body.qt-print-employee-export{
  margin:0!important;background:#fff!important;color:#111!important;
 }
 body.qt-print-employee-export > *:not(.qt-employees-export-print){
  display:none!important;
 }
 body.qt-print-employee-export > .qt-employees-export-print{
  display:block!important;position:static!important;
  color:#111!important;background:#fff!important;
  direction:rtl;font-family:Arial,Tahoma,sans-serif;
  font-size:11px;max-width:none!important;margin:0!important;
 }
 .qt-employees-export-print h2{font-size:19px;margin:0 0 8px;color:#244875}
 .qt-employees-export-print p{margin:6px 0;color:#555}
 .qt-employees-export-print table{
  width:100%;border-collapse:collapse;table-layout:auto;
  direction:rtl;font-size:10px;
 }
 .qt-employees-export-print thead{display:table-header-group}
 .qt-employees-export-print th,.qt-employees-export-print td{
  text-align:right;border:1px solid #999;padding:5px 6px;
  vertical-align:top;overflow-wrap:anywhere;
 }
 .qt-employees-export-print th{background:#e7edf5!important;color:#111!important}
 .qt-employees-export-print tr{break-inside:avoid;page-break-inside:avoid}
 .qt-employees-export-print .qt-employees-export-footer{
  margin:12px 0 0;font-size:9px;
 }
}


/* Offline hr_management.PayrollManager.calculate_salary HR-only preview. */
body.qt-desktop-mode .qt-employee-hr-monthly-preview{
 margin:17px 0 9px;border-top:1px solid #d8e1ee;
 padding-top:12px;direction:rtl;
}
body.qt-desktop-mode .qt-employee-hr-monthly-preview>h3{
 font-size:15px;color:#244875;font-weight:800;margin:0 0 10px;
}
body.qt-desktop-mode .qt-employee-hr-monthly-preview .qt-rooms-actions{
 display:flex;gap:9px;align-items:end;flex-wrap:wrap;
}
body.qt-desktop-mode .qt-employee-hr-monthly-preview .qt-rooms-field{
 display:flex;flex-direction:column;gap:5px;min-width:170px;
}
body.qt-desktop-mode .qt-employee-hr-monthly-preview input[type=month]{
 border:1px solid #b7cadf;border-radius:5px;padding:7px;
 min-height:35px;color:#244875;background:#fff;
}
body.qt-desktop-mode .qt-employee-hr-monthly-result{
 margin:12px 0;max-width:660px;
}
body.qt-desktop-mode .qt-employee-hr-monthly-result table{
 border-collapse:collapse;width:100%;
}
body.qt-desktop-mode .qt-employee-hr-monthly-result th{
 width:58%;background:#edf4fb;color:#244875;
 padding:8px;text-align:right;border:1px solid #d4e1ec;
}
body.qt-desktop-mode .qt-employee-hr-monthly-result td{
 padding:8px;text-align:right;border:1px solid #d4e1ec;
 font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode .qt-employee-hr-monthly-preview .muted{
 color:#63758c;font-size:11px;line-height:1.7;
}
/* 2026-11-17: Offline PySide6 UsersWindow/UserDialog permission tabs and group editor */
.qt-users-tabbed-dialog{
 display:flex!important;flex-direction:column!important;
 width:min(1220px,96vw)!important;max-width:96vw;min-height:min(650px,88vh);
 max-height:94vh!important;gap:10px!important;padding:16px!important;
 direction:rtl;overflow:hidden!important
}
.qt-users-tabbed-dialog>h3{margin:0;font-size:17px;font-weight:800;color:#153d68;flex:none}
.qt-users-tabbed-dialog>.qt-users-tabbar{flex:none}
.qt-users-tab-content{flex:1;min-height:0;overflow:auto;border:1px solid #d6e1ed;border-radius:8px;padding:12px;background:#fff}
.qt-users-basic-pane{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-content:start}
.qt-users-basic-pane>.qt-users-field{min-width:0}
.qt-users-basic-pane>fieldset,.qt-users-basic-pane>.qt-users-admin-info{grid-column:1/-1}
.qt-users-basic-pane>.qt-users-permissions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.qt-users-rights-pane,.qt-users-rights-pane>fieldset{min-width:0;width:100%}
.qt-users-rights-pane>.qt-users-action-permissions{border:0;padding:0}
.qt-users-tabbar{display:flex;flex-wrap:nowrap;gap:4px;min-height:44px;overflow-x:auto;overflow-y:hidden;
 padding:4px;background:#f1f5fb;border:1px solid #d6e1ed;border-radius:8px;scrollbar-width:thin}
.qt-users-tabbar>.qt-users-button{flex:none;min-height:34px;min-width:95px;white-space:nowrap;
 padding:7px 12px;border:1px solid #c8d8e9;border-radius:6px;background:#fff;color:#244875;font-size:12px}
.qt-users-tabbar>.qt-users-button.active{background:#185da3;color:#fff;border-color:#185da3;font-weight:800}
.qt-users-tabbar>.qt-users-button:focus-visible{outline:3px solid #f1b947;outline-offset:1px}
.qt-users-tabbed-dialog>.qt-users-dialog-actions{position:static;flex:none;margin-top:auto;border-top:1px solid #d6e1ed;
 padding:10px 0 0!important;justify-content:flex-start}
.qt-users-rights-pane .qt-users-action-tools{grid-template-columns:minmax(140px,1fr) minmax(150px,1fr) repeat(3,auto)}
.qt-users-branch-tools{display:flex;gap:8px;width:100%;align-items:center;border-top:1px solid #dae5ef;padding-top:8px}
.qt-users-branch-tools button{min-height:31px}
.qt-users-context-menu{position:fixed;z-index:10020;display:grid;gap:3px;min-width:150px;max-width:220px;
 background:#fff;padding:6px;border:1px solid #a8bbce;border-radius:7px;box-shadow:0 12px 30px rgba(16,38,58,.24);direction:rtl}
.qt-users-context-menu button{text-align:right;min-height:35px;border-radius:4px}
.qt-users-groups-dialog{width:min(1220px,97vw)!important;max-height:94vh!important;
 grid-template-columns:minmax(245px,27%) minmax(0,1fr)!important;column-gap:12px!important;direction:rtl}
.qt-users-groups-dialog>h3,.qt-users-groups-dialog>.qt-users-admin-info{grid-column:1/-1}
.qt-users-groups-list{grid-column:1;display:flex;flex-direction:column;gap:10px;min-width:0;
 border:1px solid #d3dfea;border-radius:8px;padding:10px;background:#fafcff}
.qt-users-groups-list>strong{font-size:13px;color:#1c456e}
.qt-users-groups-list>input{min-height:37px;padding:7px;border:1px solid #b4cadb;border-radius:6px;width:100%}
.qt-users-group-table{width:100%;border-collapse:collapse;font-size:12px;table-layout:fixed}
.qt-users-group-table th,.qt-users-group-table td{border:1px solid #d5e1ef;padding:8px;overflow:hidden;text-overflow:ellipsis}
.qt-users-group-table th{background:#eaf1f8;font-weight:700;text-align:center}
.qt-users-group-table th:first-child,.qt-users-group-table td:first-child{width:71px;text-align:center}
.qt-users-group-table th:nth-child(2),.qt-users-group-table td:nth-child(2){width:115px}
.qt-users-group-table tbody tr{cursor:pointer}
.qt-users-group-table tbody tr:nth-child(2n){background:#f2f7fc}
.qt-users-group-table tbody tr.selected{background:#dcebf9}
.qt-users-groups-details{grid-column:2;display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}
.qt-users-groups-details>.qt-users-action-tools{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.qt-users-groups-details>.qt-users-action-tools textarea{min-height:54px;padding:7px;border:1px solid #b4cadb;border-radius:6px}
.qt-users-groups-details>.qt-users-action-permissions{flex:1;min-height:220px;overflow:auto}
.qt-users-groups-details .qt-users-tabbar{margin:4px 0 9px}
.qt-users-groups-details>.qt-users-dialog-actions{position:static;padding-top:8px;flex:none;border-top:1px solid #d6e1ed}
.qt-users-window [hidden],.qt-users-tabbed-dialog [hidden],.qt-users-groups-dialog [hidden]{display:none!important}
@media(max-width:900px){
 .qt-users-tabbed-dialog{min-height:0;max-height:96vh!important;padding:10px!important}
 .qt-users-basic-pane,.qt-users-basic-pane>.qt-users-permissions{grid-template-columns:1fr}
 .qt-users-groups-dialog{display:flex!important;flex-direction:column!important;overflow:auto}
 .qt-users-groups-list,.qt-users-groups-details{width:100%;max-height:none}
 .qt-users-groups-list{max-height:230px;overflow:auto}
 .qt-users-groups-details>.qt-users-action-tools{grid-template-columns:1fr}
 .qt-users-tabbar>.qt-users-button{min-width:80px}
 .qt-users-rights-pane .qt-users-action-tools{grid-template-columns:1fr 1fr}
}

/* Basic Qt user tab group selector, status and account metadata. */
.qt-users-basic-groups{grid-column:1/-1;min-width:0;background:#f9fbfd;border:1px solid #c7d7e8;border-radius:8px;padding:12px}
.qt-users-basic-groups legend{font-weight:800;color:#173f6b}
.qt-users-quick-group-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.qt-users-quick-group-controls select{min-height:38px;min-width:220px;flex:1;border:1px solid #bfd1e1;border-radius:6px;padding:4px 8px}
.qt-users-quick-group-controls button{min-height:37px;min-width:74px}
.qt-users-basic-groups .qt-users-admin-info{margin:8px 0 0}
.qt-users-status-badge{display:inline-flex;min-width:78px;min-height:28px;align-items:center;justify-content:center;
 border-radius:7px;padding:3px 12px;font-weight:800;font-size:12px}
.qt-users-status-badge.is-active{background:#e0f2e9;color:#0d633b;border:1px solid #99d7b6}
.qt-users-status-badge.is-inactive{background:#fbe7e7;color:#994348;border:1px solid #e9b6b9}
.qt-users-username{font-weight:700;color:#143f65}
.qt-users-table tr:focus-visible{outline:2px solid #3684ce;outline-offset:-2px}
.qt-users-table tbody tr.selected,.qt-users-table tbody tr.selected:nth-child(even){background:#deedfc}
.qt-users-groups-dialog .qt-users-group-table tbody tr:focus-visible{outline:2px solid #3684ce;outline-offset:-2px}
@media(max-width:620px){.qt-users-quick-group-controls{flex-direction:column;align-items:stretch}
.qt-users-quick-group-controls select{min-width:0;width:100%}}

/* Supplier native advanced financial detail and real invoice items (2026-11-17).
   Scoped: does not change customer, inventory, POS or treasury windows. */
body.qt-desktop-mode .qt-supplier-advanced{
 width:min(1050px,calc(100vw - 20px));max-width:calc(100vw - 20px);
 height:min(650px,calc(100dvh - 20px));max-height:calc(100dvh - 20px);
 border:1px solid #c2d0df;border-radius:9px;direction:rtl;
 background:white;color:#244875;overflow:auto;padding:15px 18px;
 box-shadow:0 14px 38px rgba(9,24,45,.2)
}
body.qt-desktop-mode .qt-supplier-invoice-detail{
 width:min(860px,calc(100vw - 20px));max-width:calc(100vw - 20px);
 max-height:90dvh;border-radius:8px;border:1px solid #cbd7e4;
 background:white;color:#244875;overflow:auto;direction:rtl;padding:16px
}
body.qt-desktop-mode .qt-supplier-advanced::backdrop,
body.qt-desktop-mode .qt-supplier-invoice-detail::backdrop{
 background:rgba(5,23,44,.5)
}
body.qt-desktop-mode .qt-supplier-advanced h2,
body.qt-desktop-mode .qt-supplier-invoice-detail h2{
 font-size:18px;font-weight:800;color:#244875;margin:2px 0 10px
}
body.qt-desktop-mode .qt-supplier-detailed-filters{
 display:grid;grid-template-columns:repeat(4,minmax(130px,1fr)) auto;
 gap:9px;align-items:end;padding:12px;margin:10px 0;
 border:1px solid #d7e1ec;border-radius:8px;background:#f8fafc
}
body.qt-desktop-mode .qt-supplier-detailed-field{
 display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;
 color:#244875;min-width:0
}
body.qt-desktop-mode .qt-supplier-detailed-field :is(input,select){
 width:100%;min-width:0;min-height:36px;box-sizing:border-box;
 border:1px solid #becddd;border-radius:5px;padding:6px 8px;
 color:#18324b;background:white
}
body.qt-desktop-mode .qt-supplier-detailed-actions{
 display:flex;gap:6px;flex-wrap:wrap;justify-content:center;align-items:end
}
body.qt-desktop-mode .qt-supplier-detailed-period{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:8px;margin:12px 0
}
body.qt-desktop-mode .qt-supplier-detailed-table-scroll{
 max-width:100%;overflow:auto;border:1px solid #d7e1ec;
 border-radius:6px;margin:8px 0
}
body.qt-desktop-mode table.qt-supplier-detailed-table{
 width:100%;min-width:660px;table-layout:auto;border-collapse:collapse;
 background:white;font-size:12px;direction:rtl
}
body.qt-desktop-mode table.qt-supplier-detailed-table th{
 background:#244875;color:white;padding:10px 8px;font-weight:800;
 border-inline-start:1px solid #365b86;text-align:right;white-space:nowrap
}
body.qt-desktop-mode table.qt-supplier-detailed-table td{
 padding:9px 7px;border:1px solid #e1e8f0;text-align:right;
 color:#18324b;white-space:normal;overflow-wrap:anywhere
}
body.qt-desktop-mode table.qt-supplier-detailed-table tbody tr:nth-child(even){
 background:#f8fafc
}
body.qt-desktop-mode table.qt-supplier-detailed-table tbody tr[tabindex]{
 cursor:pointer
}
body.qt-desktop-mode table.qt-supplier-detailed-table tbody tr:hover,
body.qt-desktop-mode table.qt-supplier-detailed-table tbody tr:focus-visible{
 background:#dbe7f4;outline:2px solid #2d6cb5;outline-offset:-2px
}
body.qt-desktop-mode .qt-supplier-detailed-pager,
body.qt-desktop-mode .qt-supplier-invoice-page{
 display:flex;justify-content:center;align-items:center;gap:9px;
 flex-wrap:wrap;margin:13px 0
}
body.qt-desktop-mode .qt-supplier-detailed-footer{
 margin-top:6px;border-top:1px solid #dbe4ec
}
body.qt-desktop-mode .qt-supplier-invoice-detail .qt-native-supplier-document-grid{
 display:grid;grid-template-columns:max-content minmax(0,1fr);
 column-gap:12px;row-gap:8px;padding:9px;background:#f8fafc;border-radius:5px
}
body.qt-desktop-mode .qt-supplier-invoice-detail .qt-native-supplier-document-grid dd{
 margin:0;min-width:0;overflow-wrap:anywhere
}
body.qt-desktop-mode .qt-supplier-advanced :is(input,select,button):focus-visible,
body.qt-desktop-mode .qt-supplier-invoice-detail button:focus-visible{
 outline:2px solid #0b6cd8;outline-offset:2px
}
@media(max-width:900px){
 body.qt-desktop-mode .qt-supplier-detailed-filters{
  grid-template-columns:repeat(2,minmax(0,1fr))
 }
 body.qt-desktop-mode .qt-supplier-detailed-period{
  grid-template-columns:repeat(2,minmax(0,1fr))
 }
}
@media(max-width:490px){
 body.qt-desktop-mode .qt-supplier-advanced,
 body.qt-desktop-mode .qt-supplier-invoice-detail{padding:10px}
 body.qt-desktop-mode .qt-supplier-detailed-filters{
  grid-template-columns:minmax(0,1fr);padding:8px
 }
 body.qt-desktop-mode .qt-supplier-detailed-period{
  grid-template-columns:minmax(0,1fr)
 }
}


/* Treasury offline StatisticsWindow and TreasuryTransferDialog parity batch.
   Scope is intentionally limited to Treasury modal elements. */
.qt-treasury-native-statistics{direction:rtl;padding:6px;min-width:0}
.qt-treasury-native-statistics .qt-treasury-stat-content{min-width:0}
.qt-treasury-native-statistics .qt-treasury-statistics-note{
 font-size:12px;line-height:1.75;margin-block:10px 12px;overflow-wrap:anywhere
}
.qt-treasury-native-statistics .qt-treasury-statistics-note.error{
 background:#fff4ef;border:1px solid #f3bd9c;color:#9b341e;padding:8px 12px;border-radius:6px
}
.qt-treasury-statistics-breakdown{
 margin-top:13px;background:#f9fbfe;border:1px solid #cbd9e7;
 border-radius:7px;overflow:auto
}
.qt-treasury-statistics-breakdown>summary{
 cursor:pointer;font-weight:700;color:#244875;padding:12px;background:#ecf4fd;
 font-size:13px;
}
.qt-treasury-statistics-breakdown .qt-treasury-stat-extra{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:9px;margin:12px
}
.qt-treasury-statistics-breakdown .qt-treasury-stat-mini{
 background:#fff;border:1px solid #d9e3ed;padding:8px 10px;border-radius:6px;
 font-size:12px;color:#274967;overflow-wrap:anywhere
}
.qt-treasury-statistics-breakdown .qt-treasury-table{min-width:750px}
.qt-treasury-transfer-audit{display:flex;flex-direction:column;gap:11px;
 direction:rtl;margin-top:14px;padding:12px;border:1px solid #cedce9;
 border-radius:7px;background:#f9fbfe;min-width:0}
.qt-treasury-transfer-audit>h3{margin:0;font-size:18px;color:#244875}
.qt-treasury-transfer-audit>.hint{margin:0;font-size:12px;line-height:1.7}
.qt-treasury-transfer-audit-filter{border:1px solid #d0ddeb;background:#fff;
 border-radius:7px;padding:11px}
.qt-treasury-transfer-audit-range{display:flex;flex-wrap:wrap;gap:9px;align-items:end}
.qt-treasury-transfer-filter-label{display:flex;flex-direction:column;gap:4px;
 color:#294b73;font-size:12px;font-weight:700}
.qt-treasury-transfer-filter-label input,
.qt-treasury-transfer-filter-label select{
 min-height:34px;border:1px solid #b9ccdf;border-radius:5px;
 color:#244875;background:#fff;padding:5px 8px}
.qt-treasury-transfer-status{font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.qt-treasury-transfer-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));
 gap:10px}
.qt-treasury-transfer-summary .qt-treasury-stat{
 min-width:0;border:1px solid #ccd9e7;padding:10px;background:#fff;
 border-radius:7px}
.qt-treasury-transfer-summary .qt-treasury-stat strong{
 overflow-wrap:anywhere;font-size:15px}
.qt-treasury-transfer-audit>.qt-treasury-filter-actions{flex-wrap:wrap}
.qt-treasury-transfer-scroll{max-height:410px;overflow:auto}
.qt-treasury-transfer-scroll .qt-treasury-table{min-width:1160px}
.qt-treasury-transfer-scroll .qt-treasury-table td{white-space:normal;overflow-wrap:anywhere}
.qt-treasury-transfer-preview{
 direction:rtl;border:1px solid #b5cce3;border-radius:9px;
 width:min(620px,calc(100vw - 24px));max-width:100%;
 max-height:90vh;overflow:auto;background:white;color:#223b59;
 padding:0;box-shadow:0 16px 52px rgba(16,42,78,.24)
}
.qt-treasury-transfer-preview::backdrop{background:rgba(10,22,43,.55)}
.qt-treasury-transfer-paper{padding:18px 22px}
.qt-treasury-transfer-paper h2{text-align:center;font-size:21px;color:#244875;margin:0 0 10px}
.qt-treasury-transfer-paper .hint{text-align:center;font-size:12px;line-height:1.7}
.qt-treasury-transfer-fields{display:grid;grid-template-columns:170px minmax(0,1fr);
 margin:10px 0;border:1px solid #d8e4ef;border-radius:6px;overflow:hidden}
.qt-treasury-transfer-fields dt,.qt-treasury-transfer-fields dd{
 border-bottom:1px solid #e8eef5;margin:0;padding:8px 11px;
 font-size:12px;line-height:1.7;overflow-wrap:anywhere}
.qt-treasury-transfer-fields dt{background:#f0f5fb;color:#244875;font-weight:700}
.qt-treasury-transfer-fields dd{background:#fff}
.qt-treasury-transfer-paper .qt-treasury-transfer-print-controls{justify-content:center}
@media(max-width:780px){
 .qt-treasury-transfer-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .qt-treasury-statistics-breakdown .qt-treasury-stat-extra{
  grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:470px){
 .qt-treasury-transfer-summary,.qt-treasury-statistics-breakdown .qt-treasury-stat-extra{
  grid-template-columns:minmax(0,1fr)}
 .qt-treasury-transfer-paper{padding:12px}
 .qt-treasury-transfer-fields{grid-template-columns:112px minmax(0,1fr)}
 .qt-treasury-transfer-filter-label{flex:1 1 140px}
}
@media print {
 body:has(.qt-treasury-transfer-preview[open]) *{visibility:hidden!important}
 body:has(.qt-treasury-transfer-preview[open]) .qt-treasury-transfer-preview,
 body:has(.qt-treasury-transfer-preview[open]) .qt-treasury-transfer-preview *{
  visibility:visible!important}
 body:has(.qt-treasury-transfer-preview[open]) .qt-treasury-transfer-preview{
  display:block!important;position:fixed!important;inset:0!important;
  width:100%!important;max-width:none!important;max-height:none!important;
  height:auto!important;margin:0!important;border:0!important;box-shadow:none!important}
 body:has(.qt-treasury-transfer-preview[open]) .qt-treasury-transfer-print-controls{
  display:none!important}
 body:has(.qt-treasury-transfer-preview[open]) .qt-treasury-native-reports{
  visibility:hidden!important}
 body:has(.qt-treasury-backdrop:not(.hidden) .qt-treasury-native-statistics) *{
  visibility:hidden!important}
 body:has(.qt-treasury-backdrop:not(.hidden) .qt-treasury-native-statistics)
  .qt-treasury-native-statistics,
 body:has(.qt-treasury-backdrop:not(.hidden) .qt-treasury-native-statistics)
  .qt-treasury-native-statistics *{visibility:visible!important}
 body:has(.qt-treasury-backdrop:not(.hidden) .qt-treasury-native-statistics)
  .qt-treasury-native-statistics{
  position:absolute!important;inset:0!important;width:100%!important;
  height:auto!important;max-width:none!important;background:white!important;
  direction:rtl;color:#111!important;overflow:visible!important}
 body:has(.qt-treasury-backdrop:not(.hidden) .qt-treasury-native-statistics)
  .qt-treasury-native-statistics>.qt-treasury-filter-actions{
  display:none!important}
 body:has(.qt-treasury-backdrop:not(.hidden) .qt-treasury-native-statistics)
  .qt-treasury-native-reports{visibility:hidden!important}
}

/* Native Qt accounting overview, fiscal controls and read-only audit dialogs. */
.qt-accounts-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0}
.qt-accounts-summary-card{border:1px solid #c5d6e7;border-radius:8px;background:linear-gradient(180deg,#fff 0%,#f2f7fc 100%);padding:14px;display:flex;flex-direction:column;gap:9px;min-width:0}
.qt-accounts-summary-card p{margin:0;color:#355776;font-weight:700;font-size:13px}
.qt-accounts-summary-card strong{font-variant-numeric:tabular-nums;font-size:27px;color:#154579;overflow-wrap:anywhere}
.qt-accounts-summary-card small{font-size:11px;color:#697d94}
.qt-native-accounts-extra{display:flex;flex-direction:column;gap:12px;min-width:0}
.qt-native-accounts-extra>.qt-native-filters{display:flex;flex-wrap:wrap;gap:12px;align-items:end;padding:12px 14px}
.qt-native-accounts-extra>.qt-native-filters label{display:flex;flex-direction:column;gap:5px;min-width:140px}
.qt-native-accounts-extra>.qt-native-filters input,.qt-native-accounts-extra>.qt-native-filters select{min-height:34px;max-width:250px}
.qt-native-accounts-extra>.qt-native-content{min-width:0}
.qt-native-accounts-extra .qt-native-table-scroll{max-width:100%;overflow:auto}
.qt-accounting-audit-detail{white-space:pre-wrap;word-break:break-word;direction:ltr;text-align:left;max-height:55vh;overflow:auto;font-size:12px;background:#f3f7fb;padding:14px;border:1px solid #cfdae6;border-radius:6px}
@media(max-width:1100px){.qt-accounts-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.qt-accounts-summary-grid{grid-template-columns:1fr}.qt-native-accounts-extra>.qt-native-filters input,.qt-native-accounts-extra>.qt-native-filters select{max-width:none;width:100%}}
/* QT UsersWindow/UserDialog, original source fidelity wave 3 */
.qt-users-screen-title{font-size:18px;color:#173f6b;margin:0 0 10px;font-weight:800}
.qt-users-footer-summary{font-weight:700;font-size:12px;color:#365978;white-space:nowrap}
.qt-users-branch-hint{width:100%;color:#64748b;font-size:12px;margin:0 0 8px}
.qt-users-password-tip{grid-column:1/-1;color:#64748b;font-size:12px;padding:3px 0;margin:0}
.qt-users-access-rights{grid-column:1/-1;padding:10px;border:1px solid #a9d2e6;background:#f3f9fc;
 border-radius:7px;margin:7px;display:flex;gap:12px;flex-wrap:wrap}
.qt-users-access-rights legend{font-weight:700;color:#1f527f;padding:0 8px}
.qt-users-access-rights label{min-height:32px;display:flex;align-items:center;gap:6px;cursor:pointer;font-weight:700}
.qt-users-delete-dialog{display:flex!important;flex-direction:column;gap:12px;
 width:min(580px,95vw)!important;max-width:95vw!important;overflow:auto}
.qt-users-delete-dialog h3{margin:0;font-size:18px;font-weight:800;color:#934039}
.qt-users-delete-description{margin:0;font-weight:700;color:#274b6f}
.qt-users-delete-confirm{display:grid;gap:7px;background:#fff6f3;border:1px solid #f5c6bd;padding:12px;border-radius:8px}
.qt-users-delete-confirm input{min-height:40px;padding:7px 10px;border:1px solid #d4a8a1;border-radius:6px}
.qt-users-delete-dialog .qt-users-dialog-actions{position:static;display:flex;gap:8px;
 align-items:center;justify-content:flex-start;flex-wrap:wrap;padding:12px 0 0;border-top:1px solid #e4eaf0}
.qt-users-groups-side-actions{display:flex;gap:8px;margin-top:8px;justify-content:flex-start}
.qt-users-groups-side-actions button{min-width:90px;min-height:34px}
.qt-users-groups-list{min-height:230px}
.qt-users-groups-details .qt-users-action-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.qt-users-rights-pane .qt-users-action-module:has(.qt-users-access-rights){padding-top:0}
.qt-users-status-badge{border-radius:12px!important}
.qt-users-status-badge.is-active{background:#e3f6e9;color:#138a43;border-color:#c8ecd4}
.qt-users-status-badge.is-inactive{background:#fff0f0;color:#c23b3b;border-color:#f3cece}
@media(max-width:950px){.qt-users-footer-summary{display:none}
 .qt-users-access-rights{padding:8px}
 .qt-users-groups-details .qt-users-action-list{grid-template-columns:1fr}}

/* Qt suppliers 7-column native report, complete 5k-row exports and guarded actions. */
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-report-table{
 max-width:100%;overflow:auto;border:1px solid #d6e3ef;border-radius:6px
}
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-report-table table{
 width:100%;min-width:700px;direction:rtl;border-collapse:collapse
}
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-report-table th{
 background:#244875;color:#fff;font-weight:800;white-space:nowrap
}
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-report-table td{
 white-space:normal;overflow-wrap:anywhere
}
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-report-table tr:nth-child(even){
 background:#f8fafc
}
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-ledger-tools{
 flex-wrap:wrap;gap:8px;align-items:center
}
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-action:disabled{
 cursor:not-allowed;opacity:.58
}
body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-report-filters input{
 min-width:0
}
@media(max-width:700px){
 body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-report-filters{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px
 }
}
@media(max-width:460px){
 body.qt-desktop-mode .qt-native-supplier-report-dialog .qt-native-supplier-report-filters{
  grid-template-columns:1fr
 }
}

/* Offline: DepartmentsPositionsWindow managementTabs, sectionHeader,
   entryToolbar, four-column table and countBadge. */
body.qt-desktop-mode .qt-employee-catalogs-native{
 width:min(980px,96vw);min-width:min(760px,96vw);
 min-height:min(470px,85dvh);max-height:92dvh;
 display:flex;flex-direction:column;
 padding:10px;background:#f4f6f9;direction:rtl;
}
body.qt-desktop-mode .qt-employee-catalogs-native>h2{
 margin:0 0 8px;color:#244875;font-size:19px;
}
body.qt-desktop-mode .qt-employee-catalog-tabs{
 display:flex;gap:5px;flex-wrap:wrap;margin-bottom:-1px;
 position:relative;z-index:1;direction:rtl;
}
body.qt-desktop-mode .qt-employee-catalog-tabs [role=tab]{
 background:#e7eef7;color:#244875;
 border:1px solid #d7e0ea;border-radius:8px 8px 0 0;
 min-height:40px;min-width:135px;padding:7px 15px;font-weight:700;
}
body.qt-desktop-mode .qt-employee-catalog-tabs [role=tab][hidden]{
 display:none!important;
}
body.qt-desktop-mode .qt-employee-catalog-tabs [role=tab][aria-selected=true]{
 background:#fff;border-bottom-color:#fff;color:#173a67;
 cursor:default;opacity:1;
}
body.qt-desktop-mode .qt-employee-catalog-tabs [role=tab]:focus-visible{
 outline:2px solid #244875;outline-offset:2px;
}
body.qt-desktop-mode .qt-employee-catalog-page{
 background:#fff;border:1px solid #d7e0ea;
 border-radius:0 8px 8px 8px;
 flex:1;min-height:280px;padding:8px;
 display:flex;flex-direction:column;gap:9px;
}
body.qt-desktop-mode .qt-employee-catalog-header{
 background:#f7f9fc;border:1px solid #d7e0ea;border-radius:6px;
 display:flex;justify-content:space-between;align-items:center;
 gap:10px;padding:8px 13px;
}
body.qt-desktop-mode .qt-employee-catalog-headings h3{
 font-size:15px;margin:0;color:#173a67;
}
body.qt-desktop-mode .qt-employee-catalog-headings p{
 font-size:11px;margin:3px 0 0;color:#64748b;
}
body.qt-desktop-mode .qt-employee-catalog-count{
 background:#e8f2ff;color:#173a67;border-radius:5px;
 min-width:48px;min-height:27px;padding:4px 10px;
 display:flex;align-items:center;justify-content:center;
 font-size:13px;font-weight:800;font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode .qt-employee-catalogs-native .qt-employee-catalog-entry{
 display:flex;align-items:center;gap:9px;
 background:#f7f9fc;border:1px solid #d7e0ea;border-radius:6px;
 margin:0;padding:8px 9px;
}
body.qt-desktop-mode .qt-employee-catalogs-native .qt-employee-catalog-entry input{
 flex:1;min-width:0;min-height:38px;border:1px solid #b8c8da;
 border-radius:5px;padding:7px 10px;font-size:13px;
}
body.qt-desktop-mode .qt-employee-catalogs-native .qt-employee-catalog-entry button{
 min-width:132px;min-height:38px;background:#16a34a;color:#fff;
 border:0;border-radius:5px;
}
body.qt-desktop-mode .qt-employee-catalog-table-wrap{
 flex:1;min-height:180px;max-height:55vh;overflow:auto;
 border:1px solid #d7e0ea;border-radius:5px;
}
body.qt-desktop-mode .qt-employee-catalog-table{
 direction:rtl;width:100%;border-collapse:collapse;
 table-layout:fixed;min-width:570px;
}
body.qt-desktop-mode .qt-employee-catalog-table th{
 text-align:center;background:#244875;color:#fff;
 padding:10px;position:sticky;top:0;min-height:43px;
}
body.qt-desktop-mode .qt-employee-catalog-table td{
 padding:8px 10px;height:48px;border-bottom:1px solid #e3eaf2;
}
body.qt-desktop-mode .qt-employee-catalog-table th:first-child,
body.qt-desktop-mode .qt-employee-catalog-table td:first-child{width:72px;text-align:center}
body.qt-desktop-mode .qt-employee-catalog-table th:nth-child(3),
body.qt-desktop-mode .qt-employee-catalog-table td:nth-child(3),
body.qt-desktop-mode .qt-employee-catalog-table th:nth-child(4),
body.qt-desktop-mode .qt-employee-catalog-table td:nth-child(4){
 width:96px;text-align:center;
}
body.qt-desktop-mode .qt-employee-catalog-table td:nth-child(3) button,
body.qt-desktop-mode .qt-employee-catalog-table td:nth-child(4) button{
 min-width:72px;min-height:32px;font-size:12px;
}
body.qt-desktop-mode .qt-employee-catalog-table td:nth-child(3) button{
 background:#244875;color:#fff;
}
body.qt-desktop-mode .qt-employee-catalog-table td:nth-child(4) button{
 background:#d92d20;color:#fff;
}
body.qt-desktop-mode .qt-employee-catalog-table tr:nth-child(even){background:#f8fafd}
body.qt-desktop-mode .qt-employee-catalog-table tr:hover{background:#e8f2ff}
body.qt-desktop-mode .qt-employee-catalog-statusbar{
 display:flex;justify-content:space-between;align-items:center;
 gap:10px;border-top:1px solid #d7e0ea;
 min-height:28px;padding-top:4px;
 color:#64748b;font-size:11px;
}
/* EmployeesStatisticsWindow, original 6 cards and 5-column staff list. */
body.qt-desktop-mode .qt-employee-statistics{
 width:min(960px,96vw);min-height:min(480px,85dvh);
 max-height:92dvh;overflow:auto;
 display:flex;flex-direction:column;gap:10px;
}
body.qt-desktop-mode .qt-employee-statistics-scroll{
 min-height:200px;max-height:52vh;overflow:auto;
 border:1px solid #d1d1d6;border-radius:6px;
}
body.qt-desktop-mode .qt-employee-statistics-table{min-width:750px}
body.qt-desktop-mode .qt-employee-statistics-table th{
 position:sticky;top:0;background:#244875;color:#fff;
 text-align:right;
}
body.qt-desktop-mode .qt-employee-statistics-table td:nth-child(1),
body.qt-desktop-mode .qt-employee-statistics-table td:nth-child(4),
body.qt-desktop-mode .qt-employee-statistics-table td:nth-child(5){
 text-align:center;
}
body.qt-desktop-mode .qt-employee-statistics-toolbar{
 gap:6px;flex-wrap:wrap;justify-content:flex-start;
}
body.qt-desktop-mode .qt-employee-statistics-toolbar button{
 min-height:35px;min-width:84px;
}
body.qt-desktop-mode .qt-employee-statistics-toolbar .muted{
 font-size:11px;color:#64748b;
 margin-inline-end:auto;white-space:nowrap;
}
@media(max-width:650px){
 body.qt-desktop-mode .qt-employee-catalogs-native{
  min-width:0;padding:7px;
 }
 body.qt-desktop-mode .qt-employee-catalogs-native .qt-employee-catalog-entry{
  flex-wrap:wrap;
 }
 body.qt-desktop-mode .qt-employee-catalogs-native .qt-employee-catalog-entry button{
  flex:1 1 100%;
 }
 body.qt-desktop-mode .qt-employee-catalog-tabs [role=tab]{
  flex:1 1 115px;min-width:0;
 }
}


/* Treasury original TRF receipts, cashier-shift and cashbox-day SOURCE audit.
   Read-only; never presents derived cash as a certified book close. */
.qt-treasury-shift-review-accordion,
.qt-treasury-day-review-accordion{
 display:block;direction:rtl;margin:12px 0;
 border:1px solid #c9d8e8;border-radius:8px;overflow:auto;
 background:#f9fbfe;max-width:100%;
}
.qt-treasury-shift-review-accordion>summary,
.qt-treasury-day-review-accordion>summary{
 cursor:pointer;color:#254c75;background:#edf4fc;
 padding:12px 14px;font-size:13px;font-weight:700;line-height:1.6;
}
.qt-treasury-shift-review,.qt-treasury-day-review{
 min-width:0;padding:14px;display:flex;flex-direction:column;gap:10px;
 direction:rtl;color:#233d5d;
}
.qt-treasury-shift-review>h3,.qt-treasury-day-review>h3{
 font-size:17px;margin:0;color:#244875;
}
.qt-treasury-shift-review>.hint,.qt-treasury-day-review>.hint,
.qt-treasury-shift-review .hint,.qt-treasury-day-review .hint{
 font-size:12px;line-height:1.8;overflow-wrap:anywhere;
}
.qt-treasury-shift-review-controls,.qt-treasury-day-review-controls{
 display:flex;align-items:end;flex-wrap:wrap;gap:10px;
 padding:12px;border:1px solid #cfdeec;background:#fff;border-radius:6px;
}
.qt-treasury-shift-review-controls label,.qt-treasury-day-review-controls label{
 display:flex;flex-direction:column;gap:5px;color:#244875;font-size:12px;
 font-weight:700;min-width:170px;max-width:300px;
}
.qt-treasury-shift-review-controls input,.qt-treasury-day-review-controls input{
 width:100%;padding:7px 9px;min-height:35px;
 background:#fff;color:#264566;border-radius:5px;
 border:1px solid #b5c9de;
}
.qt-treasury-shift-review-controls input:focus-visible,
.qt-treasury-day-review-controls input:focus-visible{
 outline:2px solid #75addb;outline-offset:1px;
}
.qt-treasury-shift-review-controls button,.qt-treasury-day-review-controls button{
 min-height:34px;
}
.qt-treasury-shift-review-status,.qt-treasury-day-review-status{
 line-height:1.8;overflow-wrap:anywhere;font-size:12px;margin:0;
}
.qt-treasury-shift-review-summary,.qt-treasury-day-review-summary{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;
}
.qt-treasury-shift-review-summary .qt-treasury-stat,
.qt-treasury-day-review-summary .qt-treasury-stat{
 border:1px solid #cbd9e8;background:#fff;border-radius:6px;
 padding:11px;min-width:0;
}
.qt-treasury-shift-review-summary .qt-treasury-stat strong,
.qt-treasury-day-review-summary .qt-treasury-stat strong{
 font-size:14px;overflow-wrap:anywhere;
}
.qt-treasury-shift-review-warning,.qt-treasury-day-review-warning{
 font-size:12px;line-height:1.8;margin:0;
 background:#fff6e8;border:1px solid #eddfc8;
 color:#7b4b20;border-radius:5px;padding:10px 12px;
}
.qt-treasury-shift-review-content .table-scroll,
.qt-treasury-day-review-output .table-scroll{
 max-height:340px;overflow:auto;max-width:100%;
}
.qt-treasury-shift-review-content .qt-treasury-table{min-width:1100px}
.qt-treasury-day-review-output .qt-treasury-table{min-width:1450px}
.qt-treasury-shift-review .qt-treasury-filter-actions,
.qt-treasury-day-review .qt-treasury-filter-actions{flex-wrap:wrap;gap:7px}
.qt-treasury-transfer-preview .qt-treasury-transfer-fields dt{
 font-weight:700;
}
@media(max-width:840px){
 .qt-treasury-shift-review-summary,.qt-treasury-day-review-summary{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:480px){
 .qt-treasury-shift-review-summary,.qt-treasury-day-review-summary{
  grid-template-columns:minmax(0,1fr);
 }
 .qt-treasury-shift-review,.qt-treasury-day-review{padding:10px}
 .qt-treasury-shift-review-controls label,.qt-treasury-day-review-controls label{
  flex:1 1 100%;max-width:none;
 }
}
@media print {
 .qt-treasury-shift-review-accordion[open],
 .qt-treasury-day-review-accordion[open]{
  overflow:visible!important;border:0!important;background:#fff!important;
 }
 .qt-treasury-shift-review-accordion[open]>summary,
 .qt-treasury-day-review-accordion[open]>summary{display:none!important}
 .qt-treasury-shift-review-controls,.qt-treasury-day-review-controls,
 .qt-treasury-shift-review>.qt-treasury-filter-actions,
 .qt-treasury-day-review>.qt-treasury-filter-actions{
  display:none!important;
 }
 .qt-treasury-shift-review-content .table-scroll,
 .qt-treasury-day-review-output .table-scroll{
  max-height:none!important;overflow:visible!important;
 }
 .qt-treasury-shift-review-summary .qt-treasury-stat,
 .qt-treasury-day-review-summary .qt-treasury-stat{
  break-inside:avoid;
 }
}

/* Desktop UsersWidget: customer/supplier internal-tab visibility, as in PySide6 */
.qt-users-inner-tabs{margin:8px 7px;background:#fff;border:1px solid #bed8ec;border-radius:8px}
.qt-users-inner-tabs legend{font-weight:800;color:#184f83}
.qt-users-inner-tabs-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 16px;width:100%}
.qt-users-inner-tabs-grid label{display:flex;align-items:center;min-height:34px;gap:8px;font-weight:600}
.qt-users-inner-tabs-grid label:has(input:disabled){opacity:.45}
.qt-users-inner-tabs-grid input{width:16px;height:16px;flex:0 0 16px;accent-color:#2367a2}
.qt-users-inner-tabs .qt-users-branch-tools{margin-top:10px}
.qt-users-inner-tabs .qt-users-branch-tools button{font-size:12px;border-radius:6px}
@media(max-width:700px){.qt-users-inner-tabs-grid{grid-template-columns:1fr}}


/* Qt ReportsWindow: original native six sections, full-height branch tabs and salon workspace. */
.qt-report-native-tabs{min-height:56px;direction:rtl;align-content:center;padding:6px 8px}
.qt-report-native-label{min-width:102px;text-align:center;font-weight:700;color:#475569}
.qt-report-native-tab{min-height:40px;min-width:110px;max-width:160px;font-weight:700}
.qt-report-branches,.qt-report-salon,.qt-report-trial{
 direction:rtl;min-width:0;display:flex;flex-direction:column;gap:9px;
 border:1px solid #dce5f1;border-radius:8px;background:#fff;
}
.qt-report-branches[hidden],.qt-report-salon[hidden],.qt-report-trial[hidden],
.qt-report-items[hidden],.qt-report-treasury[hidden],
.qt-report-branches .qt-report-branch-details[hidden],
.qt-report-branches .qt-report-result-table[hidden],
.qt-report-salon .toolbar select[hidden],
.qt-report-treasury .toolbar select[hidden] {display:none!important}
.qt-report-branches>h2,.qt-report-salon>h2,.qt-report-trial>h2{
 color:#244875;font-weight:800;font-size:20px;margin:0 0 4px;
}
.qt-report-branches>.toolbar,.qt-report-salon>.toolbar,
.qt-report-treasury>.toolbar{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.qt-report-branches>.toolbar input[type="search"],
.qt-report-salon>.toolbar input[type="search"]{flex:1 1 205px;min-width:130px}
.qt-report-branches>.toolbar label{display:flex;flex-direction:row;align-items:center;gap:7px;white-space:nowrap}
.qt-report-branches>.toolbar input[type="checkbox"]{accent-color:#244875;width:16px;height:16px}
.qt-report-branches>.toolbar select,.qt-report-salon>.toolbar select,
.qt-report-treasury>.toolbar select{max-width:100%;min-height:35px}
.qt-report-branches .qt-report-cards{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.qt-report-branches .qt-report-cards .panel{min-width:0;overflow-wrap:anywhere}
.qt-report-branches .qt-report-branch-details{display:flex;flex-direction:column;gap:8px}
.qt-report-branches .qt-report-result-table,.qt-report-salon .qt-report-result-table,
.qt-report-trial .qt-report-result-table{min-height:190px;overflow:auto;max-width:100%}
.qt-report-branches .qt-report-result-table table,
.qt-report-salon .qt-report-result-table table{min-width:800px}
.qt-report-branches .qt-report-result-table tr:focus-visible{outline:2px solid #244875;outline-offset:-3px}
.qt-report-branches .qt-report-result-table tr[tabindex]{cursor:pointer}
.qt-report-branches .qt-report-result-table tr[tabindex]:hover{background:#f2f6fc}
.qt-report-branches>.toolbar button,.qt-report-salon>.toolbar button{
 border-radius:6px;min-height:35px}
.qt-report-branches .toolbar button.primary{background:#244875;color:#fff}
.qt-report-salon .qt-report-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.qt-report-salon .qt-report-result-table{flex:1 1 auto}
.qt-report-trial .qt-report-result-table table{min-width:500px}
.qt-report-branches p.muted,.qt-report-salon p.muted{
 margin:0;color:#64748b;line-height:1.5}
@media(max-width:1250px){
 .qt-report-branches .qt-report-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
 .qt-report-branches .qt-report-cards,.qt-report-salon .qt-report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .qt-report-native-label{display:none}
 .qt-report-branches>.toolbar select,.qt-report-salon>.toolbar select{flex:1 1 170px}
}


/* Qt sales settings_dialog.py / help_dialog.py: four tabs, 23 source fields,
 * 11 searchable help topics. Reference settings are visibly disabled because
 * no authenticated settings read/write RPC is wired for this module yet. */
.qt-sales-reference-backdrop{z-index:12080;align-items:center;justify-content:center}
.qt-sales-reference-dialog{width:min(820px,94vw);max-width:94vw;max-height:min(92vh,900px);overflow:auto;direction:rtl;text-align:right;box-sizing:border-box}
.qt-sales-reference-dialog h2{margin:0 0 10px;color:#244875}
.qt-sales-reference-warning{padding:11px 14px;margin:0 0 13px;border:1px solid #e5bc7c;background:#fff8e9;color:#67431c;border-radius:6px;font-size:13px;line-height:1.8}
.qt-sales-reference-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;border-bottom:1px solid #d4dce6;padding-bottom:9px;margin-bottom:10px}
.qt-sales-reference-tabs .qt-invoice-button{font-size:13px;min-height:38px}
.qt-sales-reference-tabs .qt-invoice-button.active{background:#244875;color:#fff;border-color:#244875}
.qt-sales-settings-pane{min-height:280px;overflow:auto;padding:7px 3px 10px}
.qt-sales-settings-pane[hidden],.qt-sales-help-topics button[hidden],.qt-sales-help-empty[hidden]{display:none!important}
.qt-sales-settings-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.qt-sales-settings-row{display:grid;grid-template-columns:minmax(185px,1fr) minmax(180px,1.3fr) auto;gap:12px;align-items:center;color:#244875;font-weight:600;font-size:13px}
.qt-sales-settings-row:has(input[type="checkbox"]){display:flex;flex-direction:row;gap:12px}
.qt-sales-settings-row input:not([type="checkbox"]),.qt-sales-settings-row select{min-width:0;width:100%;height:38px;border:1px solid #c3ccd7;border-radius:5px;background:#f3f6fa;padding:6px 10px;box-sizing:border-box;text-align:right}
.qt-sales-settings-row input[disabled],.qt-sales-settings-row select[disabled]{cursor:not-allowed;opacity:.84}
.qt-sales-settings-row input[type="checkbox"]{inline-size:18px;block-size:18px;accent-color:#244875;flex:none}
.qt-sales-reference-actions{display:flex;gap:9px;align-items:center;justify-content:flex-start;flex-wrap:wrap;border-top:1px solid #e4e9ef;padding-top:12px;margin-top:12px}
.qt-sales-reference-actions .qt-invoice-button:last-child{margin-inline-start:auto}
.qt-sales-reference-actions .qt-invoice-button[disabled]{opacity:.52;cursor:not-allowed}
.qt-sales-help-search{display:flex;gap:12px;align-items:center;color:#244875;font-size:13px;font-weight:600;margin-block:12px}
.qt-sales-help-search input{flex:1;min-width:0;border:1px solid #bdc7d2;border-radius:5px;padding:10px;background:#fff;color:#153351}
.qt-sales-help-layout{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr);gap:15px;min-height:330px}
.qt-sales-help-topics,.qt-sales-help-article{border:1px solid #dae1e9;border-radius:6px;background:#fff;padding:10px;min-width:0;overflow:auto;max-height:440px}
.qt-sales-help-topics h3,.qt-sales-help-article h3{margin:0 0 9px;color:#244875}
.qt-sales-help-topics .qt-invoice-button{display:block;width:100%;white-space:normal;text-align:right;margin-bottom:4px;padding:9px 10px;line-height:1.4;font-size:13px}
.qt-sales-help-topics .qt-invoice-button.active{background:#244875;color:#fff}
.qt-sales-help-article h4{margin:8px 0 10px;color:#244875;font-size:16px}
.qt-sales-help-article ol{margin:0;padding-inline-start:25px;line-height:2;color:#244875;font-size:14px}
.qt-sales-help-empty{font-size:13px;color:#7b5362}
@media(max-width:650px){
 .qt-sales-reference-dialog{width:96vw;max-width:96vw;max-height:94vh;padding:12px}
 .qt-sales-reference-tabs .qt-invoice-button{flex:1 1 42%;padding:8px}
 .qt-sales-settings-row{grid-template-columns:1fr;gap:5px}
 .qt-sales-help-layout{grid-template-columns:1fr;gap:10px}
 .qt-sales-help-topics{max-height:180px}
 .qt-sales-help-article{max-height:350px}
 .qt-sales-help-search{flex-direction:column;align-items:stretch}
 .qt-sales-reference-actions .qt-invoice-button{flex:1}
 .qt-sales-reference-actions .qt-invoice-button:last-child{margin-inline-start:0}
}
@media print{
 body:has(.qt-sales-help-dialog) *{visibility:hidden!important}
 body:has(.qt-sales-help-dialog) .qt-sales-help-dialog,
 body:has(.qt-sales-help-dialog) .qt-sales-help-dialog *,
 body:has(.qt-sales-help-dialog) .qt-sales-help-article,
 body:has(.qt-sales-help-dialog) .qt-sales-help-article *{visibility:visible!important}
 body:has(.qt-sales-help-dialog) .qt-sales-help-dialog{position:absolute!important;inset:0 auto auto 0!important;width:100%!important;max-height:none!important;overflow:visible!important;border:none!important;box-shadow:none!important}
 body:has(.qt-sales-help-dialog) .qt-sales-help-layout{display:block!important}
 body:has(.qt-sales-help-dialog) .qt-sales-help-topics,
 body:has(.qt-sales-help-dialog) .qt-sales-help-search,
 body:has(.qt-sales-help-dialog) .qt-sales-reference-warning,
 body:has(.qt-sales-help-dialog) .qt-sales-reference-actions{display:none!important}
 body:has(.qt-sales-help-dialog) .qt-sales-help-article{overflow:visible!important;max-height:none!important;border:none!important}
}


/* Original SalesSearchDialog — search criteria and four-column result grid.
 * Search is read-only, tenant/branch-scoped and date-limited via server RPC. */
.qt-sales-advanced-search-dialog{width:min(1050px,96vw);max-height:92vh;overflow:auto;direction:rtl}
.qt-sales-advanced-layout{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:15px;align-items:stretch;min-height:340px}
.qt-sales-advanced-criteria{min-width:0;background:#f9f9f9;padding:10px 12px 14px;border:2px solid #a1a1a6;border-radius:5px}
.qt-sales-advanced-criteria h3,.qt-sales-advanced-results h3{color:#244875;font-size:14px;margin:0 0 15px}
.qt-sales-advanced-field{display:grid;grid-template-columns:minmax(108px,1fr) minmax(0,1.5fr);gap:7px;align-items:center;margin-bottom:12px;color:#244875;font-weight:600;font-size:12px;line-height:1.5}
.qt-sales-advanced-field input{min-width:0;width:100%;height:36px;box-sizing:border-box;border:1px solid #a1a1a6;border-radius:4px;padding:5px 8px;background:#fff;color:#1c3851;font-size:13px}
.qt-sales-advanced-field input:focus-visible{border-color:#244875;outline:2px solid rgba(36,72,117,.17)}
.qt-sales-advanced-field input:disabled{background:#eceef1;color:#727c87;cursor:not-allowed}
.qt-sales-advanced-field:has(input:disabled){opacity:.70}
.qt-sales-advanced-results{display:flex;flex-direction:column;min-width:0;border:1px solid #a1a1a6;border-radius:5px;padding:10px}
.qt-sales-advanced-status{font-size:12px;color:#244875;line-height:1.6;margin:0 0 8px;min-height:18px}
.qt-sales-advanced-table-scroll{min-width:0;max-width:100%;overflow:auto;flex:1;max-height:390px;border:1px solid #d9dee7}
.qt-sales-advanced-table{border-collapse:collapse;width:100%;font-size:12px;min-width:415px;direction:rtl}
.qt-sales-advanced-table thead{position:sticky;top:0;background:#244875;color:white;z-index:1}
.qt-sales-advanced-table th,.qt-sales-advanced-table td{padding:9px 8px;border:1px solid #dce3eb;text-align:right;white-space:nowrap}
.qt-sales-advanced-table tbody tr:nth-child(even){background:#f7f9fb}
.qt-sales-advanced-table tbody tr:hover,.qt-sales-advanced-table tbody tr.selected{background:#e0eaf6}
.qt-sales-advanced-table tbody tr:focus-visible{outline:2px solid #244875;outline-offset:-2px}
.qt-sales-advanced-pager{display:flex;gap:9px;align-items:center;justify-content:flex-start;flex-wrap:wrap;border-top:1px solid #e0e5ed;padding-top:12px;margin-top:12px;font-size:12px;color:#244875}
.qt-sales-advanced-pager .qt-invoice-button{min-width:72px}
@media(max-width:760px){
 .qt-sales-advanced-search-dialog{width:97vw;max-width:97vw;max-height:94vh;padding:10px}
 .qt-sales-advanced-layout{grid-template-columns:minmax(0,1fr);min-height:0}
 .qt-sales-advanced-field{grid-template-columns:minmax(110px,1fr) minmax(0,2fr)}
 .qt-sales-advanced-table-scroll{max-height:255px}
 .qt-sales-advanced-criteria{padding:8px}
}
@media(max-width:420px){
 .qt-sales-advanced-field{grid-template-columns:minmax(0,1fr);gap:3px;margin-bottom:8px}
 .qt-sales-advanced-pager{justify-content:center}
}





/* Offline PayrollManager.generate_payroll: read-only full-month HR preview.
   This is NOT a paid salary ledger or cashbox posting form. */
body.qt-desktop-mode .qt-employee-hr-batch-window{
 width:min(1230px,97vw);max-height:93dvh;
 display:flex;flex-direction:column;gap:9px;
 direction:rtl;overflow:auto;
}
body.qt-desktop-mode .qt-employee-hr-batch-window h2{
 color:#244875;font-size:20px;font-weight:800;margin:0;
}
body.qt-desktop-mode .qt-employee-hr-batch-warning{
 background:#fff8df;color:#795000;
 border:1px solid #dfca8f;border-radius:6px;
 padding:9px 12px;font-size:12px;line-height:1.8;
 margin:0;
}
body.qt-desktop-mode .qt-employee-hr-batch-controls{
 display:flex;align-items:end;gap:9px;flex-wrap:wrap;
 padding:8px;background:#f6f9fd;border:1px solid #d8e3ee;
 border-radius:7px;
}
body.qt-desktop-mode .qt-employee-hr-batch-controls .qt-rooms-field{
 display:flex;flex-direction:column;gap:5px;
 color:#244875;font-weight:700;min-width:167px;
}
body.qt-desktop-mode .qt-employee-hr-batch-controls input[type=month]{
 min-height:36px;padding:6px 9px;border-radius:5px;
 border:1px solid #b8cade;color:#244875;
 background:#fff;
}
body.qt-desktop-mode .qt-employee-hr-batch-controls button{
 min-height:36px;min-width:106px;
 white-space:nowrap;font-size:12px;
}
body.qt-desktop-mode .qt-employee-hr-batch-controls button:disabled{
 opacity:.55;cursor:not-allowed;
}
body.qt-desktop-mode .qt-employee-hr-batch-controls .muted{
 font-weight:700;color:#57718d;margin-inline-start:auto;
}
body.qt-desktop-mode .qt-employee-hr-batch-summary{
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));
 gap:8px;margin:5px 0;
}
body.qt-desktop-mode .qt-employee-hr-batch-summary .qt-employee-stat-card{
 min-height:76px;min-width:0;
 background:#f8fbfe;border:1px solid #d8e4f1;
 margin:0;display:flex;flex-direction:column;gap:4px;
 justify-content:center;align-items:center;
}
body.qt-desktop-mode .qt-employee-hr-batch-summary .qt-employee-stat-card:nth-child(5){
 background:#eaf6eb;border-color:#afd8b8;
}
body.qt-desktop-mode .qt-employee-hr-batch-summary .qt-employee-stat-card:nth-child(6){
 background:#fff5de;border-color:#efdcad;
}
body.qt-desktop-mode .qt-employee-hr-batch-summary .qt-employee-stat-card span{
 font-size:11px;text-align:center;color:#45617f;
}
body.qt-desktop-mode .qt-employee-hr-batch-summary .qt-employee-stat-card strong{
 color:#244875;font-weight:800;
 font-variant-numeric:tabular-nums;
 font-size:17px;max-width:100%;overflow:hidden;text-overflow:ellipsis;
}
body.qt-desktop-mode .qt-employee-hr-batch-scroll{
 min-height:220px;max-height:45dvh;overflow:auto;
 border:1px solid #d4e1ec;border-radius:7px;
}
body.qt-desktop-mode .qt-employee-hr-batch-table{
 min-width:1550px;width:100%;
 direction:rtl;border-collapse:collapse;
}
body.qt-desktop-mode .qt-employee-hr-batch-table th{
 background:#244875;color:#fff;text-align:right;
 padding:9px 10px;white-space:nowrap;
 font-size:11px;position:sticky;top:0;z-index:1;
}
body.qt-desktop-mode .qt-employee-hr-batch-table td{
 border-bottom:1px solid #dde7f2;padding:8px 10px;
 text-align:right;font-size:12px;
 font-variant-numeric:tabular-nums;
 white-space:nowrap;
}
body.qt-desktop-mode .qt-employee-hr-batch-table tbody tr:nth-child(even){
 background:#f8fbff;
}
body.qt-desktop-mode .qt-employee-hr-batch-table td:last-child{
 color:#14763b;font-weight:700;
}
body.qt-desktop-mode .qt-employee-hr-batch-window>.qt-rooms-actions{
 display:flex;gap:9px;align-items:center;
 justify-content:flex-end;flex-wrap:wrap;
}
body.qt-desktop-mode .qt-employee-hr-batch-window>.qt-rooms-actions .muted{
 margin-inline:auto;color:#60768d;font-size:12px;
}
@media(max-width:950px){
 body.qt-desktop-mode .qt-employee-hr-batch-summary{
  grid-template-columns:repeat(3,minmax(0,1fr));
 }
}
@media(max-width:600px){
 body.qt-desktop-mode .qt-employee-hr-batch-window{
  width:99vw;max-height:95dvh;padding:9px;
 }
 body.qt-desktop-mode .qt-employee-hr-batch-summary{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body.qt-desktop-mode .qt-employee-hr-batch-controls button{
  flex:1 1 120px;
 }
 body.qt-desktop-mode .qt-employee-hr-batch-controls .qt-rooms-field{
  flex:1 1 100%;
 }
}

/* Offline Qt PostingVoucher, FundTransfer and CapitalDeposit window parity. */
.qt-accounts-operation{display:flex;flex-direction:column;gap:12px;min-width:0;direction:rtl}
.qt-accounts-operation>.qt-native-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.qt-accounts-operation>.qt-native-filters input{min-height:36px;border:1px solid #b8cfe4;border-radius:5px;padding:4px 9px}
.qt-accounts-operation-stats{padding:9px 12px;border:1px solid #d4e2ed;background:#f7fafc;border-radius:6px;color:#254b71;font-weight:700}
.qt-accounts-operation .qt-native-table-scroll{max-width:100%;overflow:auto}
.qt-accounts-operation-form{min-width:min(700px,92vw)}
.qt-accounts-operation-form>.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.qt-accounts-operation-form label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#284d70;font-weight:600}
.qt-accounts-operation-form input,.qt-accounts-operation-form select,.qt-accounts-operation-form textarea{min-height:35px;width:100%;padding:7px 9px;border:1px solid #c1d3e3;border-radius:5px;background:#fff;color:#193a5a}
.qt-accounts-operation-form textarea{min-height:65px;resize:vertical}
.qt-accounts-voucher-lines{min-width:0;grid-column:1/-1;border:1px solid #c2d4e6;border-radius:6px;padding:12px}
.qt-accounts-voucher-list{display:flex;flex-direction:column;gap:7px;max-height:50vh;overflow:auto}
.qt-accounts-voucher-line{display:grid;grid-template-columns:minmax(160px,2.5fr) minmax(80px,1fr) minmax(80px,1fr) minmax(130px,2fr) auto;gap:7px;align-items:end;border-bottom:1px solid #e6edf4;padding-bottom:8px}
.qt-accounts-voucher-line>button{min-height:34px}
.qt-accounts-voucher-lines>.qt-native-command-row{display:flex;gap:18px;flex-wrap:wrap;justify-content:flex-end}
.qt-accounts-balanced{color:#168348}
.qt-accounts-unbalanced{color:#b92832}
.qt-accounts-capital-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:13px}
.qt-accounts-operation .qt-native-content{min-width:0}
@media(max-width:1050px){.qt-accounts-voucher-line{grid-template-columns:repeat(2,minmax(0,1fr))}.qt-accounts-voucher-line>button{grid-column:1/-1}.qt-accounts-capital-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:660px){.qt-accounts-operation-form>.form-grid{grid-template-columns:1fr}.qt-accounts-voucher-lines{grid-column:1}.qt-accounts-voucher-line{grid-template-columns:1fr}.qt-accounts-capital-summary{grid-template-columns:1fr}}


/* qt-sales-statistics-source-20261117: separate Qt-inspired statistics child window. */
body.qt-desktop-mode .qt-sales-stat-dialog{
 width:min(1040px,96vw);max-width:min(1040px,96vw);max-height:94dvh;
 overflow:auto;direction:rtl;background:#f4f7fb;border:1px solid #b9ccdf;
 padding:16px;color:#173a63;
}
body.qt-desktop-mode .qt-sales-stat-dialog h2{margin:0 0 12px;color:#244875}
body.qt-desktop-mode .qt-sales-stat-dialog .qt-sales-stat-controls{
 display:flex;align-items:end;gap:9px;flex-wrap:wrap;padding:10px;
 background:#fff;border:1px solid #d7e0eb;border-radius:9px;
}
body.qt-desktop-mode .qt-sales-stat-dialog .qt-sales-stat-controls label{
 display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;
}
body.qt-desktop-mode .qt-sales-stat-dialog .qt-sales-stat-controls select,
body.qt-desktop-mode .qt-sales-stat-dialog .qt-sales-stat-controls input{
 min-height:34px;height:34px;padding:4px 9px;border:1px solid #b8ccdf;
 border-radius:6px;background:#fff;color:#173a63;
}
body.qt-desktop-mode .qt-sales-stat-dialog .qt-sales-stat-note{
 background:#fff;border:1px solid #d7e0eb;border-radius:7px;
 margin:12px 0;padding:10px;font-size:12px;line-height:1.7;
}
body.qt-desktop-mode .qt-sales-stat-dialog .qt-sales-stat-cards{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;
}
body.qt-desktop-mode .qt-sales-stat-dialog .qt-sales-stat-breakdown{
 background:#fff;border:1px solid #d7e0eb;border-radius:8px;
 padding:12px;margin:14px 0;
}
body.qt-desktop-mode .qt-sales-stat-dialog .qt-sales-stat-breakdown h3{
 font-size:14px;margin:0 0 9px;color:#244875;
}
body.qt-desktop-mode .qt-sales-stat-dialog .qt-sales-stat-table{
 width:100%;border-collapse:collapse;text-align:right;font-size:12px;
}
body.qt-desktop-mode .qt-sales-stat-dialog .qt-sales-stat-table th,
body.qt-desktop-mode .qt-sales-stat-dialog .qt-sales-stat-table td{
 border:1px solid #dae3ee;padding:8px 10px;
}
body.qt-desktop-mode .qt-sales-stat-dialog .qt-sales-stat-table th{
 background:#244875;color:#fff;
}
@media(max-width:700px){
 body.qt-desktop-mode .qt-sales-stat-dialog .qt-sales-stat-cards{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}

/* Supplier dialog follows the compact Qt form, not the three-column product editor. */
body.qt-desktop-mode .qt-native-supplier-dialog{
 width:min(640px,calc(100vw - 32px));max-width:640px
}
body.qt-desktop-mode .qt-native-supplier-dialog .qt-native-edit-form>.form-grid{
 grid-template-columns:minmax(0,1fr);gap:8px
}
body.qt-desktop-mode .qt-native-supplier-dialog .qt-native-edit-form>.form-grid>.qt-native-field{
 display:grid;grid-template-columns:135px minmax(0,1fr);align-items:center;gap:10px
}
body.qt-desktop-mode .qt-native-supplier-dialog .qt-native-field:has([name="_opening_balance_direction"]){
 grid-template-columns:135px minmax(0,1fr) 105px
}
body.qt-desktop-mode .qt-native-supplier-dialog .qt-native-field textarea{
 max-height:70px;min-height:56px
}
body.qt-desktop-mode .qt-native-supplier-extra-disclosure{
 margin-top:8px;padding:10px;border:1px solid #d9e3ef;border-radius:6px
}
body.qt-desktop-mode .qt-native-supplier-extra-disclosure summary{
 cursor:pointer;font-weight:700;color:#244875;font-size:12px
}
body.qt-desktop-mode .qt-native-supplier-extra-disclosure .form-grid{
 margin-top:10px;grid-template-columns:repeat(2,minmax(0,1fr))
}
@media(max-width:520px){
 body.qt-desktop-mode .qt-native-supplier-dialog .qt-native-edit-form>.form-grid>.qt-native-field,
 body.qt-desktop-mode .qt-native-supplier-dialog .qt-native-field:has([name="_opening_balance_direction"]){
  grid-template-columns:minmax(0,1fr)
 }
 body.qt-desktop-mode .qt-native-supplier-extra-disclosure .form-grid{
  grid-template-columns:minmax(0,1fr)
 }
}




/* SalesReportsWindow.setup_ui native Qt parity, 2026-11-17.
 * Separate sales reports window: eleven source report types, date/shift filters,
 * nine-column invoice results, totals cards and responsive RTL table. */
.qt-sales-reports-dialog{width:min(1180px,96vw);max-width:96vw;max-height:93vh;overflow:auto;direction:rtl;box-sizing:border-box;text-align:right}
.qt-sales-reports-dialog h2{font-size:22px;color:#244875;font-weight:800;letter-spacing:0}
.qt-sales-report-status{font-size:13px;font-weight:700;color:#207b46;padding:7px 4px;line-height:1.7}
.qt-sales-report-status[role="status"]{min-height:25px}
.qt-sales-report-filters{border:2px solid #d1d1d6;border-radius:8px;padding:16px;background:#fff;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:13px;row-gap:12px}
.qt-sales-report-field{display:flex;flex-direction:column;gap:5px;color:#244875;font-size:13px;font-weight:700;min-width:0}
.qt-sales-report-field select,.qt-sales-report-field input{width:100%;height:38px;box-sizing:border-box;border:1px solid #a1a1a6;border-radius:6px;background:#fff;color:#244875;padding:7px 9px;font-size:13px;text-align:right;min-width:0}
.qt-sales-report-field select:focus-visible,.qt-sales-report-field input:focus-visible{border:2px solid #24734b;outline:none;background:#f0fff4}
.qt-sales-report-field select:disabled,.qt-sales-report-field input:disabled{background:#f1f3f6;color:#778392;cursor:not-allowed}
.qt-sales-report-field select option:disabled{color:#778392}
.qt-sales-report-field[hidden]{display:none!important}
.qt-sales-report-field:has(select:disabled){opacity:.76}
.qt-sales-report-filters>.qt-sales-report-field:nth-child(1){grid-column:span 2}
.qt-sales-report-filters>.qt-sales-report-field:nth-child(7){grid-column:span 2}
.qt-sales-report-actions{display:flex;align-items:end;justify-content:end;gap:9px;flex-wrap:wrap;grid-column:span 2}
.qt-sales-report-actions .qt-invoice-button{min-width:130px;min-height:38px;white-space:normal}
.qt-sales-report-section-title{font-size:16px;font-weight:800;color:#244875;margin:18px 0 9px}
.qt-sales-report-scroll{border:1px solid #d1d1d6;border-radius:7px;overflow:auto;max-height:350px;min-height:185px;background:#fff}
.qt-sales-report-table{border-collapse:collapse;direction:rtl;min-width:1300px;width:100%;font-size:12px}
.qt-sales-report-table thead{background:#244875;color:#fff;position:sticky;top:0;z-index:2}
.qt-sales-report-table th{background:#244875;color:#fff;font-size:12px;padding:12px 8px;font-weight:800;min-width:80px;border-inline-end:1px solid rgba(255,255,255,.14);text-align:center;white-space:nowrap}
.qt-sales-report-table th:nth-child(3){min-width:160px}
.qt-sales-report-table td{padding:10px 8px;border-bottom:1px solid #e1e5ea;max-width:215px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:right;color:#22344b}
.qt-sales-report-table tr:nth-child(even) td{background:#f9fafc}
.qt-sales-report-table tr:hover td,.qt-sales-report-table tr.selected td{background:#e2edf9}
.qt-sales-report-table tr:focus-visible{outline:2px solid #244875;outline-offset:-2px}
.qt-sales-report-pager{display:flex;flex-wrap:wrap;align-items:center;gap:9px;color:#244875;font-size:13px;margin-top:10px}
.qt-sales-report-pager .qt-invoice-button{min-width:80px}
.qt-sales-report-pager span{font-weight:700}
.qt-sales-report-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px;border:2px solid #d1d1d6;border-radius:8px;padding:10px}
.qt-sales-report-metric{min-width:0;min-height:64px;padding:11px;border-radius:6px;background:#f0f7ff;border-right:3px solid #244875;display:flex;flex-direction:column;gap:9px}
.qt-sales-report-metric:nth-child(1){background:#effcf4;border-right-color:#34c759}
.qt-sales-report-metric:nth-child(3){background:#fff8ed;border-right-color:#ff9500}
.qt-sales-report-metric span{color:#244875;font-size:13px;font-weight:700}
.qt-sales-report-metric strong{color:#13395e;font-size:19px;font-weight:800;direction:ltr;text-align:right;font-variant-numeric:tabular-nums}
.qt-sales-reports-dialog .qt-sales-reference-actions{margin-top:14px}
.qt-sales-reports-dialog .qt-sales-reference-actions .qt-invoice-button:disabled{background:#e4e8ed;border-color:#e4e8ed;color:#758192;cursor:not-allowed}
@media(max-width:1000px){
 .qt-sales-report-filters{grid-template-columns:repeat(3,minmax(0,1fr))}
 .qt-sales-report-filters>.qt-sales-report-field:nth-child(1){grid-column:span 2}
 .qt-sales-report-filters>.qt-sales-report-field:nth-child(7){grid-column:span 2}
}
@media(max-width:670px){
 .qt-sales-reports-dialog{width:98vw;max-width:98vw;max-height:96vh;padding:12px}
 .qt-sales-reports-dialog h2{font-size:18px}
 .qt-sales-report-filters{grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:10px}
 .qt-sales-report-filters>.qt-sales-report-field:nth-child(1),.qt-sales-report-filters>.qt-sales-report-field:nth-child(7){grid-column:span 2}
 .qt-sales-report-actions{grid-column:span 2;justify-content:stretch}
 .qt-sales-report-actions .qt-invoice-button{flex:1;min-width:0}
 .qt-sales-report-scroll{max-height:270px}
 .qt-sales-report-metrics{gap:6px;padding:6px}
 .qt-sales-report-metric{min-height:58px;padding:7px}
 .qt-sales-report-metric strong{font-size:14px}
}
@media(max-width:400px){
 .qt-sales-report-filters{grid-template-columns:minmax(0,1fr)}
 .qt-sales-report-filters>.qt-sales-report-field:nth-child(1),.qt-sales-report-filters>.qt-sales-report-field:nth-child(7),.qt-sales-report-actions{grid-column:span 1}
 .qt-sales-report-metrics{grid-template-columns:minmax(0,1fr)}
}



/* Treasury financial readiness workbench, source-of-truth read only.
   Scoped solely to the existing native TreasuryReportsWindow accordion. */
.qt-treasury-financial-readiness-accordion{
 display:block;direction:rtl;margin:13px 0;
 background:#fbfcfe;border:1px solid #c5d6e7;border-radius:8px;
 max-width:100%;overflow:auto;
}
.qt-treasury-financial-readiness-accordion>summary{
 cursor:pointer;padding:13px 14px;background:#eaf3fd;
 color:#244c76;font-size:13px;font-weight:700;line-height:1.7;
}
.qt-treasury-readiness{
 direction:rtl;min-width:0;display:flex;flex-direction:column;gap:12px;
 padding:14px;color:#294763;
}
.qt-treasury-readiness h3{font-size:17px;margin:0;color:#244875}
.qt-treasury-readiness-alert{
 border:1px solid #edccab;border-inline-start:4px solid #be6f26;
 padding:11px 13px;margin:0;background:#fff8ec;
 color:#734620;font-size:12px;line-height:1.85;border-radius:5px;
}
.qt-treasury-readiness-controls{
 display:flex;align-items:end;flex-wrap:wrap;gap:10px;
 border:1px solid #d5e2ee;border-radius:7px;padding:12px;
 background:#fff;
}
.qt-treasury-readiness-field{
 display:flex;flex-direction:column;gap:4px;font-size:12px;
 color:#25486d;font-weight:700;min-width:145px;
}
.qt-treasury-readiness-field input,
.qt-treasury-readiness-field select{
 min-height:36px;border:1px solid #b6cadd;color:#25486d;
 border-radius:6px;background:#fff;padding:7px;
}
.qt-treasury-readiness-field input:focus-visible,
.qt-treasury-readiness-field select:focus-visible{
 outline:2px solid #73a9d6;outline-offset:1px;
}
.qt-treasury-readiness-grid{
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:9px;
}
.qt-treasury-readiness-card{
 min-width:0;display:flex;flex-direction:column;gap:7px;padding:11px;
 border-radius:7px;border:1px solid #d3e0ec;background:#fff;
}
.qt-treasury-readiness-card small{font-size:11px;color:#58718a;line-height:1.5}
.qt-treasury-readiness-card strong{font-size:16px;color:#244875;overflow-wrap:anywhere}
.qt-treasury-readiness-status,.qt-treasury-readiness-hint{
 margin:0;color:#3d5873;font-size:12px;line-height:1.85;
}
.qt-treasury-readiness-hint{
 border:1px solid #c7d7e6;border-radius:6px;background:#f4f8fc;
 padding:10px 12px;
}
.qt-treasury-readiness-docs{background:#fff;border:1px solid #cfdde9;border-radius:7px}
.qt-treasury-readiness-docs>summary{
 cursor:pointer;background:#edf3fb;padding:10px 13px;
 font-weight:700;font-size:12px;color:#244875;
}
.qt-treasury-readiness-docs table{width:100%;min-width:460px}
.qt-treasury-readiness-docs td,
.qt-treasury-readiness-docs th{padding:8px 11px;font-size:12px}
.qt-treasury-readiness-table{max-height:430px;overflow:auto;max-width:100%}
.qt-treasury-readiness-table .qt-treasury-table{min-width:1260px}
.qt-treasury-readiness-table .qt-treasury-table td{
 max-width:270px;white-space:normal;overflow-wrap:anywhere;
 line-height:1.65;
}
.qt-treasury-readiness>.qt-treasury-filter-actions{
 flex-wrap:wrap;align-items:center;gap:8px;
}
.qt-treasury-readiness>.qt-treasury-filter-actions .button{
 white-space:nowrap;
}
@media(max-width:1000px){
 .qt-treasury-readiness-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:650px){
 .qt-treasury-readiness-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .qt-treasury-readiness{padding:10px}
 .qt-treasury-readiness-field{flex:1 1 130px;min-width:130px}
}
@media(max-width:400px){
 .qt-treasury-readiness-grid{grid-template-columns:minmax(0,1fr)}
}
@media print{
 .qt-treasury-financial-readiness-accordion[open]{
  display:block!important;background:white!important;
  overflow:visible!important;border:0!important;
 }
 .qt-treasury-financial-readiness-accordion[open]>summary,
 .qt-treasury-readiness-controls,
 .qt-treasury-readiness>.qt-treasury-filter-actions{
  display:none!important;
 }
 .qt-treasury-readiness-table{
  max-height:none!important;overflow:visible!important;
 }
 .qt-treasury-readiness-card{break-inside:avoid}
 .qt-treasury-readiness-alert{color:#674016!important}
}


/* Qt Reports detail paging and original wide salon appointments schema. */
.qt-report-branch-details .qt-report-pager,.qt-report-salon>.qt-report-pager{
 display:flex;direction:rtl;align-items:center;justify-content:flex-end;
 gap:9px;padding:8px 12px;border:1px solid #dbe5f0;
 border-radius:7px;background:#f8fafd;flex-wrap:wrap;
}
.qt-report-branch-details .qt-report-pager[hidden],
.qt-report-salon>.qt-report-pager[hidden]{display:none!important}
.qt-report-branch-details .qt-report-pager button,
.qt-report-salon>.qt-report-pager button{min-height:34px;font-weight:700}
.qt-report-branch-details .qt-report-pager select,
.qt-report-salon>.qt-report-pager select{min-height:34px;min-width:110px}
.qt-report-branch-details .qt-report-result-table table{min-width:850px}
.qt-report-salon .qt-report-result-table table{min-width:1540px}
.qt-report-salon .qt-report-result-table td,
.qt-report-branch-details .qt-report-result-table td{
 padding:8px 12px;line-height:1.6;white-space:nowrap;max-width:320px;
 overflow:hidden;text-overflow:ellipsis;
}
.qt-report-salon .qt-report-result-table thead,
.qt-report-branch-details .qt-report-result-table thead{position:sticky;top:0;z-index:1}
.qt-report-salon .qt-report-result-table th,
.qt-report-branch-details .qt-report-result-table th{
 background:#244875;color:white;font-weight:800;
 padding:10px 12px;white-space:normal;min-width:90px;
}
.qt-report-salon .qt-report-result-table tbody tr:nth-child(even),
.qt-report-branch-details .qt-report-result-table tbody tr:nth-child(even){background:#f5f8fc}
.qt-report-salon .qt-report-result-table tbody tr:hover,
.qt-report-branch-details .qt-report-result-table tbody tr:hover{background:#eaf3ff}
@media(max-width:700px){
 .qt-report-branch-details .qt-report-pager,
 .qt-report-salon>.qt-report-pager{justify-content:center}
 .qt-report-branch-details .qt-report-pager button,
 .qt-report-salon>.qt-report-pager button{flex:1 1 auto}
}

/* 2026-11-17 / Native UsersWindow source parity: separate QToolBar and action card */
.qt-users-window>.qt-users-top-toolbar{
 display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:-12px -18px 0;
 padding:8px 18px;min-height:60px;background:#f7f9fc;border-bottom:1px solid #dce5ef;
 direction:rtl;
}
body.qt-desktop-mode .qt-users-top-toolbar>.qt-users-button{
 min-width:82px;min-height:36px;height:36px;padding:8px 14px;
 background:#fff;color:#1d4f86;border:1px solid #cfdceb;border-radius:7px;
 font-weight:700;font-size:12px;
}
body.qt-desktop-mode .qt-users-top-toolbar>.qt-users-button:hover:not(:disabled){
 background:#f1f6fc;border-color:#9cb9d8;
}
.qt-users-top-toolbar>.qt-users-action-spacer{flex:1 1 32px}
.qt-users-tabbed-dialog .qt-users-basic-pane input:read-only{
 background:#f3f6f9;border:1px solid #bdc8d5;color:#3b516a;cursor:text;
}
.qt-users-tabbed-dialog .qt-users-basic-pane input:read-only:focus{
 border-color:#6299c4;outline:2px solid #a7c9e8;outline-offset:1px;
}
body.qt-desktop-mode .qt-users-table th:first-child,
body.qt-desktop-mode .qt-users-table td:first-child{width:46px;min-width:46px}
body.qt-desktop-mode .qt-users-table th:nth-child(2),
body.qt-desktop-mode .qt-users-table td:nth-child(2){width:110px;min-width:110px}
body.qt-desktop-mode .qt-users-table th:nth-child(4),
body.qt-desktop-mode .qt-users-table td:nth-child(4){width:115px;min-width:115px}
body.qt-desktop-mode .qt-users-table th:nth-child(5),
body.qt-desktop-mode .qt-users-table td:nth-child(5){width:125px;min-width:125px}
body.qt-desktop-mode .qt-users-table th:nth-child(6),
body.qt-desktop-mode .qt-users-table td:nth-child(6){width:145px;min-width:145px}
body.qt-desktop-mode .qt-users-table th:nth-child(7),
body.qt-desktop-mode .qt-users-table td:nth-child(7){width:165px;min-width:165px}
body.qt-desktop-mode .qt-users-table th:nth-child(8),
body.qt-desktop-mode .qt-users-table td:nth-child(8){width:175px;min-width:175px}
.qt-users-window .qt-users-table tbody tr{cursor:pointer}
.qt-users-window .qt-users-table tbody tr:focus-visible{
 outline:2px solid #1f6fc2;outline-offset:-2px;
}
@media(max-width:760px){
 .qt-users-window>.qt-users-top-toolbar{margin:-12px -10px 0;padding:8px 10px}
 .qt-users-window>.qt-users-actions{gap:6px;padding:10px}
 body.qt-desktop-mode .qt-users-actions>.qt-users-button{min-width:96px;font-size:11px}
}

/* Native offline FixedAssetsWindow and real posted fixed-asset lifecycle. */
.qt-native-account-master .qt-native-command-row{display:flex;gap:6px;flex-wrap:wrap}
.qt-native-asset-dialog{width:min(850px,95vw);max-height:92vh;overflow:auto;direction:rtl}
.qt-native-asset-field{display:flex;flex-direction:column;gap:6px;min-width:0}
.qt-native-asset-field span{font-size:13px;color:#284d70;font-weight:600}
.qt-native-asset-field input,.qt-native-asset-field select{width:100%;min-height:36px;border:1px solid #b9cde2;border-radius:6px;padding:6px 9px;background:#fff;color:#1a3453}
.qt-native-asset-field input:read-only,.qt-native-asset-field select:disabled{background:#eaf1f8;color:#375777}
.qt-native-asset-post-form{display:flex;flex-direction:column;gap:12px}
.qt-native-asset-post-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.qt-native-asset-preview{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding:12px;border:1px solid #c5d8e8;background:#f5f9fd;border-radius:6px}
.qt-native-asset-keyvalue{display:flex;flex-direction:column;gap:3px;padding:7px 10px;min-width:0;border-bottom:1px solid #e2eaf3}
.qt-native-asset-keyvalue strong{font-size:12px;color:#345575}
.qt-native-asset-keyvalue span{font-size:15px;color:#173e61;overflow-wrap:anywhere}
.qt-native-asset-report-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin:12px 0}
.qt-native-asset-dialog .qt-native-table-scroll{overflow:auto;max-width:100%}
@media(max-width:750px){.qt-native-asset-post-grid,.qt-native-asset-preview,.qt-native-asset-report-grid{grid-template-columns:1fr}.qt-native-asset-dialog{width:96vw}}


/* Employees Qt UX parity batch: scoped to employee windows only (no shared app overrides). */
body.qt-desktop-mode .qt-employees-workspace{min-width:0;min-height:0;overflow:visible}
body.qt-desktop-mode .qt-employees-workspace .panel{box-sizing:border-box}
body.qt-desktop-mode .qt-employee-toolbar{position:relative;z-index:1}
body.qt-desktop-mode .qt-employee-toolbar .button{white-space:normal;line-height:1.3;text-align:center}
body.qt-desktop-mode .qt-employee-filter-row{min-width:0}
body.qt-desktop-mode .qt-employee-filter-row>label{min-width:100px}
body.qt-desktop-mode .qt-employee-filter-row>input[type=search]{min-width:190px;max-width:100%;box-sizing:border-box}
body.qt-desktop-mode .qt-employee-filter-row>label>select{max-width:100%}
body.qt-desktop-mode .qt-employee-filter-row>label>span{font-weight:600}
body.qt-desktop-mode .qt-employees-list .table-scroll{max-width:100%;overflow-x:auto;overscroll-behavior-x:contain}
body.qt-desktop-mode .qt-employees-table{border-collapse:collapse;width:100%}
body.qt-desktop-mode .qt-employees-table th{white-space:normal;min-width:80px}
body.qt-desktop-mode .qt-employees-table td{vertical-align:middle;overflow-wrap:anywhere}
body.qt-desktop-mode .qt-employees-table>thead>tr>th{position:sticky;top:0;z-index:2;background:#e7eff8;color:#204365}
body.qt-desktop-mode .qt-employees-table>tbody>tr{transition:background-color .12s ease}
body.qt-desktop-mode .qt-employees-table>tbody>tr[aria-selected=true]{background:#deedfc;box-shadow:inset 3px 0 #1963a6}
body.qt-desktop-mode .qt-employees-table>tbody>tr:focus-visible{outline:2px solid #246fb2;outline-offset:-2px}
body.qt-desktop-mode .qt-employees-table>tbody>tr:hover{background:#e9f4fd}
body.qt-desktop-mode .qt-employees-list .qt-rooms-actions{flex-wrap:wrap;gap:8px}
body.qt-desktop-mode .qt-employee-detail-card{min-width:0;overflow-wrap:anywhere}
body.qt-desktop-mode .qt-employee-detail-card p{align-items:flex-start}
body.qt-desktop-mode .qt-employee-detail-card strong{flex:0 0 auto}
body.qt-desktop-mode .qt-employee-detail-card span{flex:1 1 auto;min-width:0;overflow-wrap:anywhere;word-break:break-word}
body.qt-desktop-mode .qt-employee-details .qt-rooms-actions{flex-wrap:wrap}
body.qt-desktop-mode .qt-employee-dialog{box-sizing:border-box;scrollbar-gutter:stable;overscroll-behavior:contain;box-shadow:0 14px 48px #102e5270}
body.qt-desktop-mode .qt-employee-dialog[role=dialog]{outline:none}
body.qt-desktop-mode .qt-employee-dialog>h2{line-height:1.5;overflow-wrap:anywhere}
body.qt-desktop-mode .qt-employee-dialog .table-scroll{max-width:100%;overflow:auto;overscroll-behavior-x:contain}
body.qt-desktop-mode .qt-employee-dialog .qt-rooms-actions{display:flex;gap:8px;flex-wrap:wrap}
body.qt-desktop-mode .qt-employee-dialog .qt-room-status[role=status]{min-height:1.35em;overflow-wrap:anywhere}
body.qt-desktop-mode .qt-employee-dialog input[type=number]{font-variant-numeric:tabular-nums}
body.qt-desktop-mode .qt-employee-dialog input[type=date]{min-width:0}
body.qt-desktop-mode .qt-employee-dialog textarea{resize:vertical;max-width:100%}
body.qt-desktop-mode .qt-employee-dialog input:focus-visible,
body.qt-desktop-mode .qt-employee-dialog select:focus-visible,
body.qt-desktop-mode .qt-employee-dialog textarea:focus-visible,
body.qt-desktop-mode .qt-employee-dialog button:focus-visible,
body.qt-desktop-mode .qt-employees-workspace button:focus-visible,
body.qt-desktop-mode .qt-employee-filter-row :focus-visible{outline:2px solid #2179bd;outline-offset:2px}
body.qt-desktop-mode .qt-employee-dialog button:disabled{opacity:.58;cursor:not-allowed}
body.qt-desktop-mode .qt-employee-absence-form:focus-within{border-color:#4584bb;box-shadow:0 0 0 1px #4584bb3b}
body.qt-desktop-mode .qt-employee-attendance-history{min-width:830px}
body.qt-desktop-mode .qt-employee-attendance-history th{white-space:normal}
body.qt-desktop-mode .qt-employee-attendance-late{color:#8c310c;font-weight:700}
body.qt-desktop-mode .qt-employee-attendance-summary-tag{max-width:100%;overflow-wrap:anywhere}
body.qt-desktop-mode .qt-employee-statistics-table{min-width:620px}
body.qt-desktop-mode .qt-employee-performance-table{min-width:560px}
body.qt-desktop-mode .qt-employee-report{width:min(1080px,96vw)}
body.qt-desktop-mode .qt-employee-report-filters{min-width:0}
body.qt-desktop-mode .qt-employee-report-filters select,
body.qt-desktop-mode .qt-employee-report-filters input{width:100%;box-sizing:border-box;min-width:0}
body.qt-desktop-mode .qt-employee-column-choices{max-height:55vh;overflow-y:auto}
body.qt-desktop-mode .qt-employee-column-choices label{min-height:32px}
body.qt-desktop-mode .qt-employee-finance-summary{min-width:0}
body.qt-desktop-mode .qt-employee-finance-card{min-width:0;overflow-wrap:anywhere}
body.qt-desktop-mode .qt-employee-payroll-result td{font-variant-numeric:tabular-nums}
body.qt-desktop-mode .qt-employee-advanced-filter{width:min(760px,96vw)}
body.qt-desktop-mode .qt-employee-advanced-filter .qt-employee-search-presets{justify-content:flex-start}
body.qt-desktop-mode .qt-employee-statusbar{display:flex;gap:10px;flex-wrap:wrap}
body.qt-desktop-mode .qt-employees-list [aria-busy=true]{opacity:.73}
@media (min-width:1400px){
 body.qt-desktop-mode .qt-employee-columns{grid-template-columns:minmax(0,2.15fr) minmax(320px,.95fr)}
}
@media (max-width:760px){
 body.qt-desktop-mode .qt-employee-toolbar .button{flex:1 1 145px}
 body.qt-desktop-mode .qt-employee-filter-row>input[type=search]{flex:1 1 100%;min-width:0}
 body.qt-desktop-mode .qt-employee-filter-row>label{flex:1 1 135px}
 body.qt-desktop-mode .qt-employee-report-filters{grid-template-columns:1fr 1fr}
 body.qt-desktop-mode .qt-employee-dialog{width:98vw;padding:12px}
 body.qt-desktop-mode .qt-employee-dialog .qt-rooms-actions button{min-height:37px}
}
@media (max-width:480px){
 body.qt-desktop-mode .qt-employee-toolbar .button{flex:1 1 calc(50% - 8px)}
 body.qt-desktop-mode .qt-employee-report-filters{grid-template-columns:1fr}
 body.qt-desktop-mode .qt-employee-dialog{max-height:95dvh}
 body.qt-desktop-mode .qt-employee-stat-cards{grid-template-columns:minmax(0,1fr)}
 body.qt-desktop-mode .qt-employee-details .qt-rooms-actions button{flex:1 1 100%}
}
@media (prefers-reduced-motion:reduce){
 body.qt-desktop-mode .qt-employees-table>tbody>tr{transition:none}
}


/* Qt ReportsWindow / v2: native P&L five-column summary and real invoice tender declarations */
.qt-report-profit-matrix{direction:rtl;display:flex;flex-direction:column;gap:9px;padding:12px 0}
.qt-report-profit-matrix[hidden],.qt-report-declared-methods[hidden],
.qt-report-treasury>.toolbar[hidden],.qt-report-treasury>.qt-report-result-table[hidden],
.qt-report-treasury>.qt-report-cards[hidden]{display:none!important}
.qt-report-profit-matrix h3{font-size:17px;color:#244875;margin:0;font-weight:800}
.qt-report-profit-matrix>.muted{font-size:12px;line-height:1.8;margin:0}
.qt-report-profit-matrix .qt-report-result-table{overflow:auto;max-width:100%}
.qt-report-profit-matrix table{width:100%;min-width:710px;border-collapse:collapse}
.qt-report-profit-matrix table th,.qt-report-profit-matrix table td{
 padding:10px 12px;border-bottom:1px solid #dbe5f0;white-space:normal;text-align:right
}
.qt-report-profit-matrix table th{background:#244875;color:white;font-weight:800}
.qt-report-profit-matrix table tr:nth-child(even):not(.qt-report-profit-total){background:#f4f8fe}
.qt-report-profit-matrix .qt-report-profit-total{background:#e9f2ff;color:#244875;font-weight:800}
.qt-report-treasury .qt-treasury-report-modes{padding:5px 0 9px;display:flex;gap:8px;flex-wrap:wrap}
.qt-report-treasury .qt-treasury-report-modes button{min-height:37px;font-weight:700}
.qt-report-treasury .qt-treasury-report-modes button.primary{background:#244875;border-color:#244875;color:#fff}
.qt-report-declared-methods{display:flex;flex-direction:column;gap:10px;padding:8px 0}
.qt-report-declared-methods>.muted{font-size:12px;line-height:1.8}
.qt-report-declared-methods>input[type=search]{max-width:min(400px,100%);min-height:36px}
.qt-report-declared-methods .qt-report-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.qt-report-declared-methods .qt-report-cards article{overflow:hidden;overflow-wrap:anywhere}
.qt-report-declared-methods .qt-report-result-table{max-width:100%;overflow:auto}
.qt-report-declared-methods table{width:100%;min-width:1000px}
.qt-report-declared-methods th{background:#244875;color:#fff;font-weight:800;white-space:normal}
.qt-report-declared-methods td,.qt-report-declared-methods th{padding:9px 12px;text-align:right}
.qt-report-declared-methods tbody tr:nth-child(even){background:#f5f8fc}
.qt-report-declared-methods tbody tr:hover{background:#ecf3ff}
.qt-report-items .qt-report-result-table table{min-width:870px}
.qt-report-items .qt-report-result-table th{white-space:normal;min-width:95px}
@media(max-width:700px){
 .qt-report-declared-methods .qt-report-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .qt-report-treasury .qt-treasury-report-modes button{flex:1 1 190px}
 .qt-report-profit-matrix{padding-inline:0}
}


/* Original Treasury financial_outbox source capture & historic-gap UI.
   Staging only; does NOT represent a posted accounting journal. */
.qt-treasury-source-outbox-accordion{
 direction:rtl;max-width:100%;margin:12px 0;
 border:1px solid #c3d3e5;border-radius:8px;background:#f9fbfe;
 overflow:auto;
}
.qt-treasury-source-outbox-accordion>summary{
 cursor:pointer;font-weight:700;color:#244875;padding:12px 14px;
 font-size:13px;line-height:1.7;background:#edf4fc;
}
.qt-treasury-outbox{
 direction:rtl;display:flex;flex-direction:column;gap:12px;
 min-width:0;padding:14px;color:#29465f;
}
.qt-treasury-outbox h3{margin:0;font-size:17px;color:#244875}
.qt-treasury-outbox-warning{
 background:#fff8ec;border:1px solid #eacda9;
 border-inline-start:4px solid #a96b2e;border-radius:6px;
 padding:10px 13px;color:#6c4926;font-size:12px;
 line-height:1.9;margin:0;
}
.qt-treasury-outbox-filters{
 display:flex;flex-wrap:wrap;gap:10px;align-items:end;
 padding:12px;border:1px solid #d6e3ef;background:white;border-radius:7px;
}
.qt-treasury-outbox-field{
 display:flex;flex-direction:column;gap:5px;
 font-weight:700;color:#254567;font-size:12px;
 min-width:145px;
}
.qt-treasury-outbox-field input,
.qt-treasury-outbox-field select{
 min-height:36px;border:1px solid #b7ccdf;
 background:white;color:#26476a;border-radius:5px;padding:7px;
}
.qt-treasury-outbox-field input:focus-visible,
.qt-treasury-outbox-field select:focus-visible{
 outline:2px solid #78addb;outline-offset:1px;
}
.qt-treasury-outbox-status{
 margin:0;color:#355a80;font-size:12px;
 line-height:1.8;overflow-wrap:anywhere;
}
.qt-treasury-outbox-summary{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;
}
.qt-treasury-outbox-card{
 display:flex;flex-direction:column;gap:8px;
 padding:11px 12px;background:#fff;
 border:1px solid #d4e0ec;border-radius:7px;
 min-width:0;
}
.qt-treasury-outbox-card small{font-size:11px;color:#5d7790;line-height:1.6}
.qt-treasury-outbox-card strong{
 font-size:16px;color:#224876;overflow-wrap:anywhere;
}
.qt-treasury-outbox-table{max-height:440px;overflow:auto;max-width:100%}
.qt-treasury-outbox-table .qt-treasury-table{min-width:1190px}
.qt-treasury-outbox-table .qt-treasury-table td{
 white-space:normal;overflow-wrap:anywhere;
 max-width:220px;line-height:1.65;
}
.qt-treasury-outbox>.qt-treasury-filter-actions{
 flex-wrap:wrap;align-items:center;gap:8px;
}
.qt-treasury-outbox>.qt-treasury-filter-actions .button{
 white-space:nowrap;
}
.qt-treasury-outbox-receipt{
 width:min(670px,calc(100vw - 24px));max-width:100%;
 max-height:90vh;overflow:auto;direction:rtl;
 background:white;color:#243b59;border-radius:9px;
 border:1px solid #b7cee6;padding:0;
 box-shadow:0 17px 56px rgba(16,35,57,.26);
}
.qt-treasury-outbox-receipt::backdrop{background:rgba(18,35,55,.6)}
.qt-treasury-outbox-receipt-body{padding:17px 21px}
.qt-treasury-outbox-receipt-body h3{
 text-align:center;color:#244875;font-size:20px;margin:0 0 11px;
}
.qt-treasury-outbox-receipt-body .hint{
 text-align:center;font-size:12px;line-height:1.85;
}
.qt-treasury-outbox-receipt-fields{
 display:grid;grid-template-columns:185px minmax(0,1fr);
 border:1px solid #d5e1ed;border-radius:7px;overflow:hidden;
 margin:14px 0;
}
.qt-treasury-outbox-receipt-fields dt,
.qt-treasury-outbox-receipt-fields dd{
 font-size:12px;line-height:1.7;overflow-wrap:anywhere;
 margin:0;padding:9px 11px;border-bottom:1px solid #e6eef6;
}
.qt-treasury-outbox-receipt-fields dt{
 color:#244875;background:#f3f7fc;font-weight:700;
}
.qt-treasury-outbox-receipt-fields dd{background:#fff}
.qt-treasury-outbox-receipt-controls{
 justify-content:center;flex-wrap:wrap;padding-block:9px;
}
@media(max-width:850px){
 .qt-treasury-outbox-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
 .qt-treasury-outbox-field{flex:1 1 140px}
}
@media(max-width:510px){
 .qt-treasury-outbox-summary{grid-template-columns:minmax(0,1fr)}
 .qt-treasury-outbox{padding:10px}
 .qt-treasury-outbox-receipt-fields{grid-template-columns:112px minmax(0,1fr)}
 .qt-treasury-outbox-receipt-body{padding:12px}
}
@media print{
 body:has(.qt-treasury-outbox-receipt[open]) *{visibility:hidden!important}
 body:has(.qt-treasury-outbox-receipt[open]) .qt-treasury-outbox-receipt,
 body:has(.qt-treasury-outbox-receipt[open]) .qt-treasury-outbox-receipt *{
  visibility:visible!important;
 }
 body:has(.qt-treasury-outbox-receipt[open]) .qt-treasury-outbox-receipt{
  display:block!important;position:fixed!important;inset:0!important;
  max-width:none!important;max-height:none!important;
  width:100%!important;height:auto!important;margin:0!important;
  border:0!important;box-shadow:none!important;overflow:visible!important;
 }
 .qt-treasury-outbox-receipt-controls{display:none!important}
 .qt-treasury-outbox-receipt-body{padding:0!important}
}

/* Offline FinancialReportsWindow: structured native report preview and full permissioned export. */
.qt-native-financial-reports{display:flex;flex-direction:column;gap:12px;min-width:0}
.qt-native-financial-reports>.qt-native-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 12px;border:1px solid #d2e1ee;background:#f6f9fd;border-radius:6px}
.qt-native-financial-reports>.qt-native-filters input,.qt-native-financial-reports>.qt-native-filters select{min-height:36px;border:1px solid #b9d0e4;padding:5px 10px;border-radius:5px;background:white;color:#123b5b}
.qt-native-financial-reports>.qt-native-filters select{min-width:180px}
.qt-native-financial-reports>.qt-native-command-row{display:flex;flex-wrap:wrap;gap:8px}
.qt-native-financial-reports>.qt-native-content{min-width:0}
.qt-native-financial-reports .qt-native-table-scroll{overflow:auto;max-width:100%}
.qt-native-financial-reports .qt-native-table td,.qt-native-financial-reports .qt-native-table th{font-variant-numeric:tabular-nums}
.qt-native-financial-reports>.qt-accounts-summary-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:780px){.qt-native-financial-reports>.qt-accounts-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.qt-native-financial-reports>.qt-accounts-summary-grid{grid-template-columns:1fr}.qt-native-financial-reports>.qt-native-filters input,.qt-native-financial-reports>.qt-native-filters select{width:100%;max-width:none}}

/* Treasury report print is explicit. Never print nested financial audit sections
   with the standard six-mode report; they have their own views and permissions. */
.qt-treasury-print-header{display:none}
@media print{
 body.qt-print-treasury-report .qt-treasury-print-header{
  display:block!important;visibility:visible!important;direction:rtl;
  border-bottom:2px solid #244875;margin-bottom:10mm;padding:0 0 5mm;
  color:#1c3655;break-after:avoid}
 body.qt-print-treasury-report .qt-treasury-print-header h2{margin:0 0 5px;font-size:16pt}
 body.qt-print-treasury-report .qt-treasury-print-header p{margin:0 0 5px;font-size:10pt}
 body.qt-print-treasury-report .qt-treasury-native-reports > details{display:none!important}
}

/* Qt POS numeric keypad: accessible single-modal quantity entry; no monetary writes. */
body.qt-desktop-mode .qt-pos-keypad-dialog{
 position:fixed;max-width:min(94vw,360px);width:340px;min-width:0;
 border:1px solid #b9cde2;border-radius:12px;padding:18px;
 background:#fff;color:#102844;box-shadow:0 24px 70px #12345655;
 font-family:"Segoe UI",Tahoma,Arial,sans-serif;text-align:right;direction:rtl;
}
body.qt-desktop-mode .qt-pos-keypad-dialog::backdrop{background:#071d35a6}
body.qt-desktop-mode .qt-pos-keypad-dialog h3{font-size:17px;margin:0 0 8px}
body.qt-desktop-mode .qt-pos-keypad-dialog p{font-size:12px;line-height:1.5;color:#415875;margin:0 0 12px}
body.qt-desktop-mode .qt-pos-keypad-dialog input{
 display:block;width:100%;height:44px;box-sizing:border-box;padding:7px 12px;
 border:1px solid #b8cde1;border-radius:7px;background:#fff;color:#123;
 font:600 22px "Segoe UI",Tahoma,sans-serif;direction:ltr;text-align:center
}
body.qt-desktop-mode .qt-pos-keypad-keys{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:10px
}
body.qt-desktop-mode .qt-pos-keypad-key{
 min-height:48px;background:#f3f7fc;border:1px solid #c9d8e8;border-radius:7px;
 font-size:18px;color:#244875;cursor:pointer
}
body.qt-desktop-mode .qt-pos-keypad-key:focus-visible{
 outline:3px solid #4894d5;outline-offset:1px
}
body.qt-desktop-mode .qt-pos-keypad-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
body.qt-desktop-mode .qt-pos-keypad-error{display:block;min-height:20px;color:#a61b1b;margin-top:4px}
body.qt-desktop-mode .qt-pos-quantity-controls .qt-pos-keypad-open{
 border-radius:4px;min-width:24px;padding:0 3px;font-size:14px
}


/* Offline employees/views/employee_attendance_window.py parity: 54px toolbar,
 * paired today/month cards, 10-column log and six totals. Tenant UI only. */
body.qt-desktop-mode .qt-employee-attendance .qt-employee-attendance-toolbar{
 display:flex;flex-wrap:wrap;align-items:center;direction:rtl;gap:7px;
 min-height:54px;padding:7px 9px;margin-bottom:8px;background:#f4f7fb;
 border:1px solid #d8e2ee;border-radius:7px
}
body.qt-desktop-mode .qt-employee-attendance-employee-chip{
 display:inline-flex;align-items:center;justify-content:center;min-height:33px;
 padding:3px 10px;border:1px solid #cbd9e7;border-radius:7px;
 background:#eaf1f9;color:#244875;font-weight:800;white-space:nowrap
}
body.qt-desktop-mode .qt-employee-attendance-quick-label{
 font-size:12px;font-weight:700;color:#244875;white-space:nowrap
}
body.qt-desktop-mode .qt-employee-attendance .qt-employee-attendance-top{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);
 direction:rtl;gap:8px;margin-bottom:8px;align-items:stretch
}
body.qt-desktop-mode .qt-employee-attendance-native-card{
 min-width:0;border:1px solid #d8e2ee;border-radius:8px;background:#fff;
 padding:9px 11px;box-shadow:0 1px 3px #1234560a
}
body.qt-desktop-mode .qt-employee-attendance-native-card>h3{
 color:#244875;font-size:14px;font-weight:800;line-height:1.5;margin:0 0 9px
}
body.qt-desktop-mode .qt-employee-attendance-today-card .qt-employee-attendance-status{
 min-height:42px;color:#244875;font-weight:700
}
body.qt-desktop-mode .qt-employee-attendance-today-tiles{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px
}
body.qt-desktop-mode .qt-employee-attendance-tile{
 display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px;
 min-width:0;padding:7px 4px;border:1px solid #e1e9f2;border-radius:7px;background:#f5f8fb
}
body.qt-desktop-mode .qt-employee-attendance-tile span{
 font-size:11px;color:#5c7087;white-space:nowrap
}
body.qt-desktop-mode .qt-employee-attendance-tile strong{
 font:800 13px Arial,Tahoma,sans-serif;color:#244875;font-variant-numeric:tabular-nums
}
body.qt-desktop-mode .qt-employee-attendance-stats-card .qt-employee-attendance-summary{
 margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px
}
body.qt-desktop-mode .qt-employee-attendance-stats-card .qt-employee-stat-card{
 min-width:0;min-height:56px;border:1px solid #e1e9f2;background:#f8fafc;border-radius:7px;
 padding:6px 5px;text-align:center
}
body.qt-desktop-mode .qt-employee-attendance-stats-card .qt-employee-stat-card span{
 font-size:11px;color:#667c93
}
body.qt-desktop-mode .qt-employee-attendance-stats-card .qt-employee-stat-card strong{
 color:#244875;font-size:13px
}
body.qt-desktop-mode .qt-employee-attendance-stats-card .qt-employee-stat-card:nth-child(1) strong{color:#137a3d}
body.qt-desktop-mode .qt-employee-attendance-stats-card .qt-employee-stat-card:nth-child(2) strong{color:#b42318}
body.qt-desktop-mode .qt-employee-attendance-stats-card .qt-employee-stat-card:nth-child(3) strong{color:#9a5b00}
body.qt-desktop-mode .qt-employee-attendance-stats-card .qt-employee-stat-card:nth-child(4) strong{color:#5e4db2}
body.qt-desktop-mode .qt-employee-attendance-stats-card .qt-employee-stat-card:nth-child(6) strong{color:#0f7185}
body.qt-desktop-mode .qt-employee-attendance-table-card .qt-employee-attendance-month-header{
 display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px
}
body.qt-desktop-mode .qt-employee-attendance-table-card .table-scroll{overflow:auto;max-width:100%}
body.qt-desktop-mode .qt-employee-attendance-history{
 width:100%;min-width:955px;border-collapse:collapse;direction:rtl
}
body.qt-desktop-mode .qt-employee-attendance-history th{
 height:40px;white-space:nowrap;background:#244875;color:#fff;font-weight:700
}
body.qt-desktop-mode .qt-employee-attendance-history td{
 height:38px;white-space:nowrap;font-variant-numeric:tabular-nums
}
body.qt-desktop-mode .qt-employee-attendance-history th:nth-child(8),
body.qt-desktop-mode .qt-employee-attendance-history td:nth-child(8){
 min-width:150px;white-space:normal;overflow-wrap:anywhere;text-align:right
}
body.qt-desktop-mode .qt-employee-attendance-history tr[data-attendance-status='حاضر'] td:nth-child(6){color:#137a3d;font-weight:800}
body.qt-desktop-mode .qt-employee-attendance-history tr[data-attendance-status='غياب'] td:nth-child(6){color:#b42318;font-weight:800}
body.qt-desktop-mode .qt-employee-attendance-history tr[data-attendance-status='تأخر'] td:nth-child(6){color:#9a5b00;font-weight:800}
body.qt-desktop-mode .qt-employee-attendance-history tr[data-attendance-status='مرض'] td:nth-child(6){color:#5e4db2;font-weight:800}
body.qt-desktop-mode .qt-employee-attendance-history tr[data-attendance-status='إجازة'] td:nth-child(6){color:#0f7185;font-weight:800}
body.qt-desktop-mode .qt-employee-attendance-history tr:nth-child(even) td{background:#f8fbfe}
body.qt-desktop-mode .qt-employee-attendance-summary-bar{
 display:flex;align-items:center;justify-content:space-between;gap:6px;flex-wrap:wrap;
 border:1px solid #d8e2ee;background:#fff;border-radius:7px;padding:5px 8px;margin-top:7px
}
body.qt-desktop-mode .qt-employee-attendance-summary-tag{
 flex:1 1 128px;min-width:0;text-align:center;background:#f4f7fb;color:#244875;
 border:1px solid #d8e2ee;border-radius:7px;padding:5px 9px;font-size:11px;font-weight:700
}
body.qt-desktop-mode .qt-employee-attendance :focus-visible{
 outline:2px solid #2179bd;outline-offset:2px
}
@media(max-width:1000px){
 body.qt-desktop-mode .qt-employee-attendance .qt-employee-attendance-top{
  grid-template-columns:minmax(0,1fr)
 }
}
@media(max-width:580px){
 body.qt-desktop-mode .qt-employee-attendance-stats-card .qt-employee-attendance-summary{
  grid-template-columns:repeat(2,minmax(0,1fr))
 }
 body.qt-desktop-mode .qt-employee-attendance-quick-label{flex-basis:100%}
 body.qt-desktop-mode .qt-employee-attendance-today-tiles{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* TreasuryStatisticsWindow — print ONLY the verified six cards and Cloud audit.
   This opt-in class is never set by unrelated modules or the reports dialog. */
.qt-treasury-stats-print-header,
.qt-treasury-stats-print-footer{display:none}
@page qt-treasury-statistics-page{size:A4 landscape;margin:12mm}
@media print{
 body.qt-print-treasury-statistics{page:qt-treasury-statistics-page;background:#fff!important;color:#111!important}
 body.qt-print-treasury-statistics *{visibility:hidden!important}
 body.qt-print-treasury-statistics .qt-treasury > :not(.qt-treasury-statistics-modal){display:none!important}
 body.qt-print-treasury-statistics .qt-treasury-statistics-modal,
 body.qt-print-treasury-statistics .qt-treasury-statistics-modal *{visibility:visible!important}
 body.qt-print-treasury-statistics .qt-treasury-statistics-modal{
  position:static!important;inset:auto!important;display:block!important;
  background:#fff!important;overflow:visible!important;padding:0!important;
  width:100%!important;max-height:none!important;min-height:0!important;box-shadow:none!important
 }
 body.qt-print-treasury-statistics .qt-treasury-statistics-modal .qt-treasury-modal{
  position:static!important;display:block!important;overflow:visible!important;
  width:100%!important;max-width:none!important;height:auto!important;max-height:none!important;
  padding:0!important;margin:0!important;background:#fff!important;border:0!important;
  box-shadow:none!important;transform:none!important
 }
 body.qt-print-treasury-statistics .qt-treasury-statistics-modal .qt-treasury-modal-heading,
 body.qt-print-treasury-statistics .qt-treasury-native-statistics > .qt-treasury-filter-actions,
 body.qt-print-treasury-statistics .qt-treasury-statistics-modal button{display:none!important}
 body.qt-print-treasury-statistics .qt-treasury-stats-print-header{
  display:block!important;visibility:visible!important;padding:0 0 9mm!important;
  margin:0 0 6mm!important;border-bottom:2px solid #244875
 }
 body.qt-print-treasury-statistics .qt-treasury-stats-print-header h2{
  margin:0 0 4mm!important;font-size:18pt!important;color:#244875!important
 }
 body.qt-print-treasury-statistics .qt-treasury-stats-print-header p{
  font-size:10pt!important;color:#333!important;margin:0!important
 }
 body.qt-print-treasury-statistics .qt-treasury-stats-print-footer{
  display:block!important;font-size:9pt!important;color:#555!important;
  margin-top:7mm!important;border-top:1px solid #ddd!important;padding-top:3mm!important
 }
 body.qt-print-treasury-statistics .qt-treasury-native-statistics,
 body.qt-print-treasury-statistics .qt-treasury-stat-content{
  width:100%!important;max-width:none!important;overflow:visible!important;
  background:#fff!important;color:#111!important
 }
 body.qt-print-treasury-statistics .qt-treasury-native-stat-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:4mm!important;margin-bottom:6mm!important
 }
 body.qt-print-treasury-statistics .qt-treasury-native-stat-grid .qt-treasury-stat{
  break-inside:avoid!important;page-break-inside:avoid!important;min-height:23mm!important;
  border:1px solid #ddd!important;background:#fff!important;box-shadow:none!important
 }
 body.qt-print-treasury-statistics .qt-treasury-statistics-breakdown,
 body.qt-print-treasury-statistics .qt-treasury-statistics-breakdown .qt-treasury-scroll{
  display:block!important;overflow:visible!important;max-height:none!important;
  height:auto!important;min-height:0!important
 }
 body.qt-print-treasury-statistics .qt-treasury-statistics-breakdown .qt-treasury-table{
  width:100%!important;min-width:0!important;border-collapse:collapse!important;font-size:9pt!important
 }
 body.qt-print-treasury-statistics .qt-treasury-statistics-breakdown .qt-treasury-table tr{
  break-inside:avoid!important;page-break-inside:avoid!important
 }
 body.qt-print-treasury-statistics .qt-treasury-statistics-breakdown .qt-treasury-table th,
 body.qt-print-treasury-statistics .qt-treasury-statistics-breakdown .qt-treasury-table td{
  white-space:normal!important;overflow-wrap:anywhere!important;border:1px solid #bbb!important;
  color:#222!important;padding:2mm!important
 }
}


/* Employees HR source: PayrollManager.calculate_salary() — unposted monthly preview.
 * Detail panel displays original 30-day, attendance and deduction breakdown only. */
body.qt-desktop-mode .qt-employee-hr-batch-window .qt-employee-hr-preview-row{
 cursor:pointer;outline-offset:-3px
}
body.qt-desktop-mode .qt-employee-hr-batch-window .qt-employee-hr-preview-row:hover td,
body.qt-desktop-mode .qt-employee-hr-batch-window .qt-employee-hr-preview-row:focus-visible td{
 background:#eaf3ff;color:#173d6a
}
body.qt-desktop-mode .qt-employee-hr-batch-window .qt-employee-hr-preview-row:focus-visible{
 outline:2px solid #297ec1
}
body.qt-desktop-mode .qt-employee-hr-row-hint{
 margin:8px 0 0;font-size:11px;color:#516a83;line-height:1.7;text-align:right
}
body.qt-desktop-mode .qt-employee-hr-person-detail{
 width:min(800px,95vw);max-width:95vw;max-height:90dvh;overflow:auto;
 direction:rtl;color:#244875;box-sizing:border-box;
 background:white;border:1px solid #c4d6e8;border-radius:8px;padding:16px
}
body.qt-desktop-mode .qt-employee-hr-person-detail h2{
 color:#244875;font-size:19px;font-weight:800;line-height:1.5
}
body.qt-desktop-mode .qt-employee-hr-person-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
 gap:9px;margin:12px 0;min-width:0
}
body.qt-desktop-mode .qt-employee-hr-person-field{
 display:flex;flex-direction:column;justify-content:space-between;gap:5px;
 min-width:0;overflow-wrap:anywhere;background:#f7f9fc;
 border:1px solid #dce6f1;border-radius:7px;padding:9px 10px
}
body.qt-desktop-mode .qt-employee-hr-person-field>span{
 color:#607b96;font-size:11px;font-weight:700
}
body.qt-desktop-mode .qt-employee-hr-person-field>strong{
 color:#244875;font-size:14px;font-variant-numeric:tabular-nums;
 white-space:normal
}
body.qt-desktop-mode .qt-employee-hr-person-field.is-net{
 background:#eff7f0;border:1px solid #aacbb4
}
body.qt-desktop-mode .qt-employee-hr-person-field.is-net strong{
 color:#21653b;font-size:17px
}
body.qt-desktop-mode .qt-employee-hr-person-detail .qt-rooms-actions{
 justify-content:flex-start;padding-top:8px
}
@media(max-width:720px){
 body.qt-desktop-mode .qt-employee-hr-person-grid{
  grid-template-columns:repeat(2,minmax(0,1fr))
 }
}
@media(max-width:460px){
 body.qt-desktop-mode .qt-employee-hr-person-grid{
  grid-template-columns:minmax(0,1fr)
 }
}

/* Read-only native cashier totals preview */
body.qt-desktop-mode .qt-pos-cart .qt-pos-cart-stats,body.qt-desktop-mode .qt-pos-cart .qt-pos-cash-preview{font-size:12px;color:#335c83;line-height:1.5;white-space:normal}
body.qt-desktop-mode .qt-pos-cart .qt-pos-cash-preview{flex-basis:100%;direction:rtl;border-top:1px solid #d6e2ed;padding-top:5px}
body.qt-desktop-mode .qt-pos-cart .qt-pos-cash-preview[hidden]{display:none!important}

/* Original Qt TreasuryWindow.transactions_table.setSortingEnabled(True):
   keep native keyboard-accessible sorting within the loaded page, never
   masquerade as a server-wide ledger sort. Isolated to ten-column cashbook. */
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table thead .qt-treasury-sort-button{
 all:unset;display:block;width:100%;box-sizing:border-box;cursor:pointer;
 color:inherit;font:inherit;font-weight:700;text-align:center;line-height:1.3;
 min-height:23px;padding:2px 4px;border-radius:3px
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table thead .qt-treasury-sort-button:hover{
 background:#43668e;color:#fff
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table thead .qt-treasury-sort-button:focus-visible{
 outline:2px solid #ffb13b;outline-offset:1px
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table thead th[aria-sort='ascending'] .qt-treasury-sort-button::after{
 content:' ▲';font-size:9px;color:#ffcf70
}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table thead th[aria-sort='descending'] .qt-treasury-sort-button::after{
 content:' ▼';font-size:9px;color:#ffcf70
}
body.qt-desktop-mode .qt-treasury-page-sort-note{
 display:block;position:sticky;bottom:0;padding:5px 9px;
 border-top:1px solid #d8e2ee;background:#f7fafe;color:#506987;
 font-size:10px;text-align:right;direction:rtl
}

/* Qt TreasuryWindow original column widths at 100% scale:
   [78,86,120,135,250,125,105,155,78,78] px, with horizontal scrolling. */
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table{min-width:1210px}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tr>*:nth-child(1){min-width:78px}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tr>*:nth-child(2){min-width:86px}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tr>*:nth-child(3){min-width:120px}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tr>*:nth-child(4){min-width:135px}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tr>*:nth-child(5){min-width:250px}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tr>*:nth-child(6){min-width:125px}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tr>*:nth-child(7){min-width:105px}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tr>*:nth-child(8){min-width:155px}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tr>*:nth-child(9){min-width:78px}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table tr>*:nth-child(10){min-width:78px}
body.qt-desktop-mode .qt-treasury-result .qt-treasury-table .qt-treasury-cell-description{
 max-width:250px;min-width:250px
}


/* Offline HR saved monthly register: immutable and never a cash payout. */
body.qt-desktop-mode .qt-employee-hr-batch-window .qt-employee-hr-save-button{
 min-height:36px;background:#244875;color:#fff;border:1px solid #173c68;
 border-radius:6px;padding:7px 11px;font-weight:800;font-size:12px
}
body.qt-desktop-mode .qt-employee-hr-batch-window .qt-employee-hr-save-button:disabled{opacity:.5;cursor:not-allowed}
body.qt-desktop-mode .qt-employee-hr-saved-status{
 min-height:36px;line-height:1.7;padding:7px 12px;margin:3px 0;
 background:#eef4fc;color:#244875;border:1px solid #cedae8;
 border-inline-start:4px solid #2a638e;border-radius:6px;
 font-size:12px;font-weight:700;overflow-wrap:anywhere
}
body.qt-desktop-mode .qt-employee-hr-saved-dialog{
 direction:rtl;box-sizing:border-box;width:min(1220px,98vw);
 max-width:98vw;max-height:92dvh;overflow:auto;background:#fff;
 border:1px solid #c9d9e8;border-radius:8px;padding:16px
}
body.qt-desktop-mode .qt-employee-hr-saved-dialog>h2{
 color:#244875;font-size:19px;font-weight:800;margin:0 0 11px
}
body.qt-desktop-mode .qt-employee-hr-saved-dialog .notice{margin:8px 0;padding:10px 12px}
body.qt-desktop-mode .qt-employee-hr-saved-scroll{
 max-width:100%;overflow:auto;min-height:165px;
 border:1px solid #cfdae8;border-radius:7px
}
body.qt-desktop-mode .qt-employee-hr-saved-scroll table{
 min-width:1200px;width:100%;border-collapse:collapse
}
body.qt-desktop-mode .qt-employee-hr-saved-scroll th{
 position:sticky;top:0;z-index:1;background:#244875;color:#fff;white-space:nowrap
}
body.qt-desktop-mode .qt-employee-hr-saved-scroll td{
 padding:8px 9px;font-variant-numeric:tabular-nums
}
body.qt-desktop-mode .qt-employee-hr-saved-scroll tbody tr:nth-child(even){background:#f6f9fc}
body.qt-desktop-mode .qt-employee-hr-saved-dialog>.qt-rooms-actions{
 display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:9px;padding-top:10px
}
body.qt-desktop-mode .qt-employee-hr-saved-dialog>.qt-rooms-actions>.muted{
 color:#365f83;font-size:12px;font-weight:700
}
@media(max-width:760px){
 body.qt-desktop-mode .qt-employee-hr-batch-window .qt-employee-hr-save-button{
  flex:1 1 160px
 }
 body.qt-desktop-mode .qt-employee-hr-saved-dialog{padding:11px}
}

/* Original TreasuryReportsWindow: printable audit view scoped to the selected
   actual shift or day. Does not print dashboard, unrelated dialogs or controls. */
.qt-treasury-review-print-meta{display:none}
@page qt-treasury-review-page{size:A4 landscape;margin:12mm}
@media print{
 body.qt-print-treasury-shift-review,
 body.qt-print-treasury-day-review{
  page:qt-treasury-review-page;background:#fff!important;color:#111!important;
 }
 body.qt-print-treasury-shift-review *,
 body.qt-print-treasury-day-review *{visibility:hidden!important}
 body.qt-print-treasury-shift-review .qt-treasury-shift-review,
 body.qt-print-treasury-shift-review .qt-treasury-shift-review *,
 body.qt-print-treasury-day-review .qt-treasury-day-review,
 body.qt-print-treasury-day-review .qt-treasury-day-review *{visibility:visible!important}
 body.qt-print-treasury-shift-review .qt-treasury-shift-review,
 body.qt-print-treasury-day-review .qt-treasury-day-review{
  position:fixed!important;inset:0!important;width:100%!important;
  max-width:none!important;max-height:none!important;height:auto!important;
  overflow:visible!important;box-shadow:none!important;transform:none!important;
  border:0!important;padding:4mm!important;margin:0!important;
  background:#fff!important;color:#111!important;direction:rtl!important;
  font-size:10pt!important
 }
 body.qt-print-treasury-shift-review .qt-treasury-shift-review .qt-treasury-shift-review-controls,
 body.qt-print-treasury-shift-review .qt-treasury-shift-review .qt-treasury-filter-actions,
 body.qt-print-treasury-day-review .qt-treasury-day-review .qt-treasury-day-review-controls,
 body.qt-print-treasury-day-review .qt-treasury-day-review .qt-treasury-filter-actions{
  display:none!important
 }
 body.qt-print-treasury-shift-review .qt-treasury-review-print-meta,
 body.qt-print-treasury-day-review .qt-treasury-review-print-meta{
  display:block!important;visibility:visible!important;
  margin:3mm 0 5mm!important;padding:3mm 0!important;
  font-size:9pt!important;color:#43566c!important;border-block:1px solid #cdd7e3!important
 }
 body.qt-print-treasury-shift-review .qt-treasury-shift-review .table-scroll,
 body.qt-print-treasury-day-review .qt-treasury-day-review .table-scroll{
  overflow:visible!important;max-height:none!important;height:auto!important;
  min-height:0!important
 }
 body.qt-print-treasury-shift-review .qt-treasury-shift-review .qt-treasury-table,
 body.qt-print-treasury-day-review .qt-treasury-day-review .qt-treasury-table{
  border-collapse:collapse!important;table-layout:auto!important;
  min-width:0!important;width:100%!important;font-size:8pt!important;
 }
 body.qt-print-treasury-shift-review .qt-treasury-shift-review .qt-treasury-table tr,
 body.qt-print-treasury-day-review .qt-treasury-day-review .qt-treasury-table tr{
  break-inside:avoid!important;page-break-inside:avoid!important
 }
 body.qt-print-treasury-shift-review .qt-treasury-shift-review .qt-treasury-table th,
 body.qt-print-treasury-shift-review .qt-treasury-shift-review .qt-treasury-table td,
 body.qt-print-treasury-day-review .qt-treasury-day-review .qt-treasury-table th,
 body.qt-print-treasury-day-review .qt-treasury-day-review .qt-treasury-table td{
  min-width:0!important;max-width:none!important;padding:2mm!important;
  white-space:normal!important;overflow-wrap:anywhere!important;
  border:1px solid #aebaca!important;color:#222!important
 }
 body.qt-print-treasury-shift-review .qt-treasury-shift-review .qt-treasury-stat,
 body.qt-print-treasury-day-review .qt-treasury-day-review .qt-treasury-stat{
  box-shadow:none!important;background:#fff!important;
  border:1px solid #ccd4df!important;break-inside:avoid!important;
 }
}


/* Offline PayrollManager.get_payroll and get_employee_payroll_history:
 * saved, non-payable staff-month snapshot history only; never finance GL. */
body.qt-desktop-mode .qt-employee-hr-individual-history,
body.qt-desktop-mode .qt-employee-hr-register-dialog{
 direction:rtl;box-sizing:border-box;width:min(1110px,97vw);
 max-width:97vw;max-height:92dvh;overflow:auto;background:#fff;
 border:1px solid #d5e1ed;border-radius:8px;padding:15px 18px
}
body.qt-desktop-mode .qt-employee-hr-individual-history h2,
body.qt-desktop-mode .qt-employee-hr-register-dialog h2{
 color:#244875;font-size:19px;font-weight:800;line-height:1.5;
 margin:0 0 9px
}
body.qt-desktop-mode .qt-employee-hr-history-controls{
 display:flex;flex-wrap:wrap;align-items:center;gap:9px;
 margin:9px 0;padding:9px;background:#f5f8fc;
 border:1px solid #d9e5f0;border-radius:7px
}
body.qt-desktop-mode .qt-employee-hr-history-controls select{
 min-height:35px;max-width:225px;padding:5px 8px;
 border:1px solid #afc3d8;border-radius:6px;color:#244875;background:#fff
}
body.qt-desktop-mode .qt-employee-hr-history-controls label{
 color:#244875;font-size:13px;font-weight:700
}
body.qt-desktop-mode .qt-employee-hr-individual-history .notice,
body.qt-desktop-mode .qt-employee-hr-register-dialog .notice{
 margin:8px 0 11px;padding:10px 13px;border-radius:6px;
 background:#fff8df;border:1px solid #dcca98;color:#795000;
 font-size:12px;line-height:1.7
}
body.qt-desktop-mode .qt-employee-hr-history-scroll,
body.qt-desktop-mode .qt-employee-hr-register-scroll{
 max-width:100%;overflow:auto;min-height:170px;border:1px solid #d0dce9;
 border-radius:7px
}
body.qt-desktop-mode .qt-employee-hr-history-table,
body.qt-desktop-mode .qt-employee-hr-register-table{
 width:100%;min-width:1020px;border-collapse:collapse;
 font-variant-numeric:tabular-nums
}
body.qt-desktop-mode .qt-employee-hr-history-table th,
body.qt-desktop-mode .qt-employee-hr-register-table th{
 position:sticky;top:0;z-index:1;
 height:40px;padding:8px 9px;white-space:nowrap;
 background:#244875;color:#fff;font-weight:700
}
body.qt-desktop-mode .qt-employee-hr-history-table td,
body.qt-desktop-mode .qt-employee-hr-register-table td{
 height:40px;padding:7px 9px;text-align:right;
 color:#294c70;white-space:nowrap
}
body.qt-desktop-mode .qt-employee-hr-history-table tr:nth-child(even) td,
body.qt-desktop-mode .qt-employee-hr-register-table tr:nth-child(even) td{
 background:#f7fafe
}
body.qt-desktop-mode .qt-employee-hr-history-table td:nth-child(7),
body.qt-desktop-mode .qt-employee-hr-register-table td:nth-child(6){
 color:#137a3d;font-weight:800
}
body.qt-desktop-mode .qt-employee-hr-history-table td:last-child,
body.qt-desktop-mode .qt-employee-hr-register-table td:nth-child(8){
 color:#9a5b00;font-weight:800
}
body.qt-desktop-mode .qt-employee-hr-register-table button{
 min-height:33px;white-space:nowrap;font-size:12px
}
body.qt-desktop-mode .qt-employee-hr-individual-history .qt-rooms-actions,
body.qt-desktop-mode .qt-employee-hr-register-dialog .qt-rooms-actions{
 display:flex;align-items:center;justify-content:flex-start;
 flex-wrap:wrap;gap:8px;padding-top:11px
}
body.qt-desktop-mode .qt-employee-hr-individual-history :focus-visible,
body.qt-desktop-mode .qt-employee-hr-register-dialog :focus-visible{
 outline:2px solid #2179bd;outline-offset:2px
}
@media(max-width:680px){
 body.qt-desktop-mode .qt-employee-hr-individual-history,
 body.qt-desktop-mode .qt-employee-hr-register-dialog{
  padding:10px 8px
 }
 body.qt-desktop-mode .qt-employee-hr-history-controls select{
  flex:1 1 160px;max-width:none
 }
}


/* Offline EmployeeTransactionsWindow: 7 columns, read-only ledger summary.
   Source approvals require treasury/shift/GL and remain unavailable. */
body.qt-desktop-mode .qt-employee-withdrawals-window .qt-employee-withdrawals-table{
 width:100%;min-width:890px;border-collapse:collapse;
 font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode .qt-employee-withdrawals-window .qt-employee-withdrawals-table th{
 background:#244875;color:#fff;font-weight:700;white-space:nowrap;
 padding:10px 9px;position:sticky;top:0;z-index:1;
}
body.qt-desktop-mode .qt-employee-withdrawals-window .qt-employee-withdrawals-row{
 cursor:pointer;outline-offset:-3px;
}
body.qt-desktop-mode .qt-employee-withdrawals-window .qt-employee-withdrawals-row:focus-visible{
 outline:2px solid #2a7ab5;
}
body.qt-desktop-mode .qt-employee-withdrawals-window .qt-employee-withdrawals-row:hover td,
body.qt-desktop-mode .qt-employee-withdrawals-window .qt-employee-withdrawals-row.selected td{
 background:#e9f3ff;color:#234d78;
}
body.qt-desktop-mode .qt-employee-withdrawals-window .qt-employee-withdrawal-is-pending{
 color:#875400;font-weight:750;white-space:nowrap;
}
body.qt-desktop-mode .qt-employee-withdrawals-window .qt-employee-withdrawal-is-rejected{
 color:#a43a30;font-weight:750;white-space:nowrap;
}
body.qt-desktop-mode .qt-employee-withdrawals-window .qt-employee-withdrawals-summary{
 gap:8px;display:flex;flex-wrap:wrap;
}
body.qt-desktop-mode .qt-employee-withdrawals-window .qt-employee-withdrawals-summary-card{
 flex:1 1 155px;min-width:135px;overflow-wrap:anywhere;
}
body.qt-desktop-mode .qt-employee-withdrawals-window .qt-employee-withdrawals-grid[aria-busy="true"]{
 opacity:.72;pointer-events:none;
}
body.qt-desktop-mode .qt-employee-withdrawals-window .qt-room-status[role="status"]{
 line-height:1.7;
}
@media(max-width:700px){
 body.qt-desktop-mode .qt-employee-withdrawals-window{
  max-width:97vw;padding:10px;
 }
 body.qt-desktop-mode .qt-employee-withdrawals-window .qt-employee-withdrawals-toolbar{
  display:flex;flex-wrap:wrap;gap:7px;
 }
 body.qt-desktop-mode .qt-employee-withdrawals-window .qt-employee-withdrawals-toolbar button{
  flex:1 1 160px;
 }
}


/* qt-invoice-window-visual-parity-20261117 */
/* Source: uploaded ERPSYSTEM/modules/sales/views/sales_invoice_ui_mixin.py
 * and modules/purchases/views/invoice_dialog.py.
 * Presentation only: no synthetic balances or altered financial calculations. */
body.qt-desktop-mode #body-content .qt-invoice-form-dialog:not(.hidden){
 padding:8px;
 background:rgba(8,24,48,.6);
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog>.qt-invoice-entry-panel,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog>.panel{
 background:#f4f7fb;
 border:1px solid #b8ccdf;
 border-radius:9px;
 box-shadow:0 20px 56px rgba(12,31,54,.25);
 scrollbar-color:#9bb4d1 #f1f5f9;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-invoice-entry-window-heading{
 display:flex;
 direction:rtl;
 align-items:center;
 justify-content:space-between;
 min-height:35px;
 margin:-4px 0 8px;
 padding:0 7px 5px;
 color:#244875;
 font:800 13px "Segoe UI",Tahoma,Arial,sans-serif;
 border-bottom:1px solid #d8e2ec;
 background:transparent;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-invoice-entry-caption{
 flex:1;
 line-height:24px;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-invoice-entry-title-close{
 flex:0 0 30px;
 width:30px;
 height:29px;
 min-height:29px;
 padding:0;
 border:1px solid #d5dfe9;
 border-radius:5px;
 background:#fff;
 color:#244875;
 font:800 21px Arial,sans-serif;
 line-height:1;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-invoice-entry-title-close:hover{
 border-color:#b42318;
 background:#fff1f2;
 color:#b42318;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-invoice-entry-close{
 display:none!important;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-form,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-form{
 display:flex;
 flex-direction:column;
 gap:7px;
 min-width:0;
 width:100%;
 background:#f4f7fb;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-toolbar,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-toolbar{
 display:flex;
 direction:rtl;
 align-items:center;
 flex:0 0 58px;
 flex-wrap:nowrap;
 gap:6px;
 height:58px;
 min-height:58px;
 max-height:58px;
 overflow-x:auto;
 scrollbar-width:thin;
 background:#fff;
 padding:7px 10px;
 border:1px solid #d8e2ec;
 border-radius:9px;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-btn,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-btn{
 display:inline-flex;
 align-items:center;
 justify-content:center;
 flex:0 0 auto;
 min-width:82px;
 height:40px;
 min-height:40px;
 padding:6px 10px;
 border:0;
 border-radius:7px;
 background:#244875;
 color:#fff;
 font:800 clamp(12px,1vw,17px) "Segoe UI",Tahoma,Arial,sans-serif;
 white-space:nowrap;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-btn.success,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-btn.success{background:#2f9e44}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-btn.secondary,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-btn.secondary{background:#4a647f}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-btn.danger,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-btn.danger{background:#b42318}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-btn:disabled,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-btn:disabled{
 background:#e2e8f0!important;
 border-color:#e2e8f0!important;
 color:#94a3b8!important;
 cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-btn:nth-child(3),
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-btn:nth-child(3){min-width:118px}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-sequence,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-sequence{
 display:flex;
 direction:rtl;
 align-items:center;
 gap:5px;
 flex:0 0 auto;
 margin-inline-start:auto;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-sequence .qt-sales-entry-btn,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-sequence .qt-purchase-entry-btn{
 min-width:38px;
 width:38px;
 padding:5px;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-number,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-number{
 display:flex;
 align-items:center;
 justify-content:center;
 direction:ltr;
 flex:0 0 104px;
 min-width:104px;
 width:104px;
 height:38px;
 margin:0;
 padding:5px 8px;
 background:#f8fbff;
 border:1px solid #b9cbe0;
 border-radius:7px;
 color:#244875;
 font:800 12px Consolas,"Courier New",monospace;
 font-variant-numeric:tabular-nums;
 overflow:hidden;
 text-overflow:ellipsis;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-card,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-card{
 min-width:0;
 margin:0;
 padding:9px;
 gap:7px;
 background:#fff;
 border:1px solid #d8e2ec;
 border-radius:9px;
 box-shadow:none;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-customer-card>h3,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-details-card>h3{display:none}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-customer-card .form-grid,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-details-card .form-grid{
 display:grid;
 grid-template-columns:repeat(auto-fit,minmax(165px,1fr));
 align-items:end;
 gap:7px 10px;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-customer-card label,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-details-card label{
 min-width:0;
 color:#244875;
 font-weight:800;
 font-size:11px;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-customer-card input,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-customer-card select,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-details-card input,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-details-card select{
 min-width:0;
 width:100%;
 min-height:34px;
 height:34px;
 border:1px solid #b8ccdf;
 border-radius:5px;
 background:#fff;
 color:#244875;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-products-card,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-products-card{
 flex:1 1 auto;
 min-height:170px;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-line-scroll,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-line-register{
 overflow:auto;
 overscroll-behavior:contain;
 border:1px solid #cad9e7;
 border-radius:6px;
 background:#fff;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-items-table thead th{
 height:38px;
 padding:5px 6px;
 background:#244875;
 color:#fff;
 font-size:12px;
 font-weight:800;
 white-space:nowrap;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-items-table tbody td{
 height:36px;
 padding:3px 5px;
 border-bottom:1px solid #e1e8f0;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-line-heading,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-line-register .invoice-item{
 display:grid;
 direction:rtl;
 grid-template-columns:minmax(220px,2.5fr) 90px 120px 76px 96px minmax(150px,1.5fr) minmax(140px,1.3fr) 68px;
 gap:5px;
 align-items:center;
 min-width:1150px;
 box-sizing:border-box;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-line-heading{
 position:sticky;
 top:0;
 z-index:2;
 min-height:38px;
 padding:5px 8px;
 background:#244875;
 color:#fff;
 border:0;
 font:800 12px "Segoe UI",Tahoma,Arial,sans-serif;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-line-heading>span{
 text-align:center;
 white-space:nowrap;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-line-register .invoice-item{
 min-height:38px;
 margin:0;
 padding:3px 8px;
 background:#fff;
 border:0;
 border-bottom:1px solid #e1e8f0;
 border-radius:0;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-line-register .invoice-item:nth-child(even){background:#f9fbfd}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-line-register .invoice-item label{
 min-width:0;
 width:100%;
 margin:0;
 display:flex;
 align-items:stretch;
 justify-content:center;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-line-register .invoice-item label>span{
 position:absolute;
 width:1px;height:1px;
 padding:0;margin:-1px;
 overflow:hidden;
 clip:rect(0,0,0,0);
 white-space:nowrap;
 border:0;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-line-register .invoice-item input,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-line-register .invoice-item select{
 width:100%;
 min-width:0;
 height:30px;
 min-height:30px;
 padding:3px 5px;
 border:1px solid #b8ccdf;
 background:#fff;
 color:#244875;
 text-align:center;
 font-size:12px;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-totals-card{
 display:flex;
 flex-direction:row;
 flex-wrap:wrap;
 align-items:center;
 justify-content:space-between;
 gap:8px;
 min-height:78px;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-notes-strip{
 flex:1 0 100%;
 width:100%;
 min-width:0;
 display:flex;
 align-items:center;
 gap:6px;
 background:#f8fafc;
 border:1px solid #e2e8f0;
 border-radius:6px;
 padding:4px 7px;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-notes-strip label{
 display:flex;
 direction:rtl;
 flex-direction:row;
 align-items:center;
 gap:8px;
 min-width:0;
 width:100%;
 font-weight:800;
 color:#244875;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-notes-strip input{
 flex:1;
 min-width:0;
 width:auto;
 height:31px;
 border:1px solid #b8ccdf;
 border-radius:5px;
 background:#fff;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-summary-card strong,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-totals-card strong{
 padding:6px 10px;
 background:#ecfdf3;
 border:1px solid #22a35a;
 border-radius:7px;
 color:#08783a;
 font-variant-numeric:tabular-nums;
}
@media(max-width:750px){
 body.qt-desktop-mode #body-content .qt-invoice-form-dialog:not(.hidden){padding:4px}
 body.qt-desktop-mode #body-content .qt-invoice-form-dialog>.panel{padding:8px}
 body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-toolbar,
 body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-toolbar{padding:5px;gap:4px}
 body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-entry-btn,
 body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-btn{font-size:12px}
 body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-customer-card .form-grid,
 body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-details-card .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-line-register{max-width:100%;overflow-x:auto}
}
@media(max-width:480px){
 body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-sales-customer-card .form-grid,
 body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-details-card .form-grid{grid-template-columns:minmax(0,1fr)}
}


/* purchase-12-column-source-table-20261117: same grid as the inherited Qt SalesInvoiceDialog */
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table-scroll{
 flex:1 1 auto;
 display:block;
 width:100%;
 min-width:0;
 min-height:180px;
 max-height:48dvh;
 margin:0;
 padding:0;
 overflow:auto;
 overscroll-behavior:contain;
 border:1px solid #a1a1a6;
 border-radius:5px;
 background:#fff;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table{
 width:1300px;
 min-width:1300px;
 table-layout:fixed;
 border-collapse:collapse;
 direction:rtl;
 margin:0;
 background:#fff;
 color:#244875;
 font:700 12px Arial,Tahoma,sans-serif;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table thead th{
 box-sizing:border-box;
 position:sticky;
 z-index:2;
 top:0;
 height:38px;
 padding:5px 6px;
 white-space:nowrap;
 text-align:center;
 background:#244875;
 color:#fff;
 border-inline-end:1px solid #1a252f;
 font-size:12px;
 font-weight:800;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table th:nth-child(1){width:36px}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table th:nth-child(2){width:78px}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table th:nth-child(3){width:290px}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table th:nth-child(4){width:64px}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table th:nth-child(5){width:62px}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table th:nth-child(6){width:76px}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table th:nth-child(7){width:68px}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table th:nth-child(8){width:82px}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table th:nth-child(9){width:92px}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table th:nth-child(10){width:140px}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table th:nth-child(11){width:135px}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table th:nth-child(12){width:80px}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table tbody{
 display:table-row-group!important;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table tbody tr.invoice-item{
 display:table-row!important;
 background:#fff;
 border:0;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table tbody tr:nth-child(even){background:#f9f9f9}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table tbody tr:hover{background:#eaf2f8}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table tbody td{
 display:table-cell;
 height:40px;
 padding:4px 5px;
 text-align:center;
 vertical-align:middle;
 background:transparent;
 border-bottom:1px solid #f0f2f6;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table tbody input,
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table tbody select{
 display:block;
 width:100%;
 min-width:0;
 min-height:30px;
 height:30px;
 padding:3px 5px;
 border:1px solid #b8ccdf;
 border-radius:4px;
 background:#fff;
 color:#244875;
 font:700 12px Arial,Tahoma,sans-serif;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table .qt-purchase-entry-product{
 text-align:right;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table .qt-purchase-entry-value{
 color:#175ea8;
 font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode #body-content .qt-invoice-form-dialog .qt-purchase-entry-table td>.button{
 min-width:55px;
 height:28px;
 min-height:28px;
 padding:3px 5px;
 font-size:11px;
}


/* Original Qt advanced_dialogs.py: EvaluationDialog, PromotionDialog,
 * AwardDialog. These records are administrative, never a paid salary. */
body.qt-desktop-mode .qt-employee-performance{
 direction:rtl;width:min(1060px,98vw);max-width:98vw;
 box-sizing:border-box;max-height:92dvh;overflow:auto;
 background:#fff;border:1px solid #cddbea;border-radius:8px;
 padding:17px;
}
body.qt-desktop-mode .qt-employee-performance-toolbar{
 display:flex;flex-wrap:wrap;gap:7px;
 margin:10px 0;padding:8px;
 background:#f3f7fc;border:1px solid #dae5ee;border-radius:6px;
}
body.qt-desktop-mode .qt-employee-performance-toolbar button{
 min-height:36px;min-width:120px;font-weight:700;
}
body.qt-desktop-mode .qt-employee-performance-toolbar button[aria-selected="true"]{
 color:#fff;background:#244875;border-color:#244875;
}
body.qt-desktop-mode .qt-employee-performance-toolbar button:disabled{
 cursor:not-allowed;opacity:.7;
}
body.qt-desktop-mode .qt-employee-performance-summary{
 display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
 gap:9px;padding:7px 0;
}
body.qt-desktop-mode .qt-employee-performance-summary .qt-employee-stat-card{
 min-height:75px;border:1px solid #d8e3ee;
 border-radius:7px;background:#f8fbff;padding:10px 12px;
}
body.qt-desktop-mode .qt-employee-performance-scroll{
 max-width:100%;overflow:auto;min-height:145px;
 border:1px solid #dae4ef;border-radius:7px;
}
body.qt-desktop-mode .qt-employee-performance-table{
 min-width:900px;width:100%;border-collapse:collapse;
}
body.qt-desktop-mode .qt-employee-performance-table th{
 position:sticky;top:0;z-index:1;
 background:#244875;color:#fff;
 padding:10px 9px;font-weight:700;white-space:nowrap;
}
body.qt-desktop-mode .qt-employee-performance-table td{
 padding:9px 10px;line-height:1.6;vertical-align:top;
 border-bottom:1px solid #e8eff5;
}
body.qt-desktop-mode .qt-employee-performance-table td:nth-child(3){
 font-variant-numeric:tabular-nums;font-weight:700;
}
body.qt-desktop-mode .qt-employee-performance-table tr:nth-child(even){
 background:#f6f9fd;
}
body.qt-desktop-mode .qt-employee-performance-form{
 direction:rtl;box-sizing:border-box;
 width:min(650px,97vw);max-width:97vw;
 max-height:90dvh;overflow:auto;padding:16px;
 background:#fff;border-radius:8px;
}
body.qt-desktop-mode .qt-employee-performance-form .notice{
 background:#fff8e5;color:#775600;border:1px solid #e1d3a2;
 border-radius:6px;line-height:1.7;padding:10px;
}
body.qt-desktop-mode .qt-employee-performance-form .qt-room-status{
 min-height:22px;line-height:1.6;
}
body.qt-desktop-mode .qt-employee-performance-form .qt-rooms-actions{
 display:flex;flex-wrap:wrap;gap:7px;padding-top:11px;
}
body.qt-desktop-mode .qt-employee-performance-form button{
 min-height:36px;
}
body.qt-desktop-mode .qt-employee-performance :focus-visible,
body.qt-desktop-mode .qt-employee-performance-form :focus-visible{
 outline:2px solid #2675aa;outline-offset:2px;
}
body.qt-desktop-mode .qt-employee-performance-content[aria-busy="true"]{
 opacity:.77;
}
@media(max-width:680px){
 body.qt-desktop-mode .qt-employee-performance,
 body.qt-desktop-mode .qt-employee-performance-form{
  padding:10px;
 }
 body.qt-desktop-mode .qt-employee-performance-toolbar button,
 body.qt-desktop-mode .qt-employee-performance-form .qt-rooms-actions button{
  flex:1 1 145px;
 }
}


/* Qt offline visual parity: rooms, tables, devices — 2026-11-17. */
/* Source windows: rooms/views/room_window.py, tables/views/table_window.py,
   devices/views/device_window.py, device_dialog.py, ui/styles/devices.css.
   Visual-only scope: occupancy, session history and restricted actions remain protected. */
body.qt-desktop-mode .qt-rooms-window,
body.qt-desktop-mode .qt-tables-workspace,
body.qt-desktop-mode .qt-devices-workspace{
 direction:rtl;
 font-family:"Noto Kufi Arabic",Tahoma,Arial,sans-serif;
 color:#244875;
}
body.qt-desktop-mode .qt-rooms-window{
 background:#fff;border:0;border-radius:0;box-shadow:none;
 padding:10px;gap:9px;min-height:520px;
}
body.qt-desktop-mode .qt-rooms-window>.qt-rooms-actions{
 flex:0 0 auto;margin:0 0 3px;
}
body.qt-desktop-mode .qt-rooms-window>.table-scroll{
 flex:1 1 auto;min-height:330px;max-height:min(69dvh,780px);
 border:1px solid #b8ccdf;border-radius:3px;
}
body.qt-desktop-mode .qt-rooms-window>.qt-rooms-actions:not(:first-child){
 justify-content:center;min-height:38px;
}
body.qt-desktop-mode .qt-rooms-window>.muted,
body.qt-desktop-mode .qt-tables-list>.muted,
body.qt-desktop-mode .qt-devices-workspace .qt-tables-list>.muted{
 font-size:11px;line-height:1.65;color:#63758a;
 background:#f5f8fc;border-inline-start:3px solid #b8ccdf;
 padding:6px 9px;margin:0;
}
body.qt-desktop-mode .qt-rooms-window .qt-rooms-table,
body.qt-desktop-mode .qt-tables-workspace .qt-rooms-table{
 min-width:920px;table-layout:auto;
}
body.qt-desktop-mode .qt-rooms-window .qt-rooms-table :is(td,th),
body.qt-desktop-mode .qt-tables-workspace .qt-rooms-table :is(td,th){
 vertical-align:middle;border-color:#e1e8f0;
 padding:8px 10px;font-size:12px;line-height:1.55;
}
body.qt-desktop-mode .qt-rooms-window .qt-rooms-table th,
body.qt-desktop-mode .qt-tables-workspace .qt-rooms-table th{
 background:#e8f0f7;color:#244875;white-space:nowrap;
 font-weight:800;height:38px;
}
body.qt-desktop-mode .qt-rooms-window .qt-rooms-table td:nth-child(3),
body.qt-desktop-mode .qt-tables-workspace .qt-rooms-table td:nth-child(3){
 min-width:180px;max-width:300px;
}
body.qt-desktop-mode .qt-rooms-window .qt-rooms-table :is(th,td):nth-child(1),
body.qt-desktop-mode .qt-rooms-window .qt-rooms-table :is(th,td):nth-child(4),
body.qt-desktop-mode .qt-rooms-window .qt-rooms-table :is(th,td):nth-child(5),
body.qt-desktop-mode .qt-rooms-window .qt-rooms-table :is(th,td):nth-child(6),
body.qt-desktop-mode .qt-rooms-window .qt-rooms-table :is(th,td):nth-child(7),
body.qt-desktop-mode .qt-tables-workspace .qt-rooms-table :is(th,td):nth-child(1),
body.qt-desktop-mode .qt-tables-workspace .qt-rooms-table :is(th,td):nth-child(4),
body.qt-desktop-mode .qt-tables-workspace .qt-rooms-table :is(th,td):nth-child(6),
body.qt-desktop-mode .qt-tables-workspace .qt-rooms-table :is(th,td):nth-child(7){
 text-align:center;
}
body.qt-desktop-mode :is(.qt-rooms-window,.qt-tables-workspace,.qt-devices-workspace)
 .qt-rooms-actions>.button[data-qt-glyph]{
 display:inline-flex;align-items:center;justify-content:center;
 gap:6px;min-height:36px;padding:6px 12px;
 border-radius:5px;border:1px solid #b8ccdf;
 font:700 12px "Noto Kufi Arabic",Tahoma,Arial,sans-serif;
 background:#fff;color:#244875;box-shadow:none;white-space:nowrap;
}
body.qt-desktop-mode :is(.qt-rooms-window,.qt-tables-workspace,.qt-devices-workspace)
 .qt-rooms-actions>.button[data-qt-glyph]::before{
 content:attr(data-qt-glyph);display:inline-flex;
 align-items:center;justify-content:center;font-size:17px;
 width:18px;line-height:1;color:#244875;
}
body.qt-desktop-mode :is(.qt-rooms-window,.qt-tables-workspace,.qt-devices-workspace)
 .qt-rooms-actions>.button[data-qt-glyph]:hover:not(:disabled){
 background:#e8f0fe;border-color:#244875;
}
body.qt-desktop-mode :is(.qt-rooms-window,.qt-tables-workspace,.qt-devices-workspace)
 .qt-rooms-actions>.button:disabled{
 opacity:.55;cursor:not-allowed;
}
body.qt-desktop-mode .qt-rooms-show-inactive{
 padding:5px;color:#495057;white-space:nowrap;font-size:12px;
}
body.qt-desktop-mode .qt-rooms-show-inactive:hover{
 background:#e8f0fe;border-radius:4px;
}
body.qt-desktop-mode .qt-rooms-show-inactive input{
 accent-color:#244875;width:16px;height:16px;
}
body.qt-desktop-mode .qt-record-state{
 display:inline-flex;align-items:center;justify-content:center;
 gap:6px;white-space:nowrap;font-weight:700;
 padding:3px 7px;border-radius:5px;border:1px solid #d8e1eb;
 font-size:11px;line-height:1.5;
}
body.qt-desktop-mode .qt-record-state::before{
 content:"";display:inline-block;flex:0 0 9px;width:9px;height:9px;
 border-radius:50%;background:#667b90;
}
body.qt-desktop-mode .qt-state-active,
body.qt-desktop-mode .qt-device-available{
 color:#14783a;background:#f0fbf4;border-color:#c4e5d1;
}
body.qt-desktop-mode .qt-state-active::before,
body.qt-desktop-mode .qt-device-available::before{background:#34c759}
body.qt-desktop-mode .qt-state-inactive,
body.qt-desktop-mode .qt-device-unavailable{
 color:#a63d34;background:#fff3f1;border-color:#f2c9c6;
}
body.qt-desktop-mode .qt-state-inactive::before,
body.qt-desktop-mode .qt-device-unavailable::before{background:#ff3b30}
body.qt-desktop-mode .qt-device-maintenance{
 color:#9b5b06;background:#fff8ec;border-color:#ffdb9f;
}
body.qt-desktop-mode .qt-device-maintenance::before{background:#ff9500}

/* QFormLayout equivalent: right-aligned label + adjacent Qt-size input. */
body.qt-desktop-mode .qt-rooms-dialog{
 width:min(520px,94vw);padding:20px;direction:rtl;
 border:1px solid #b8ccdf;border-radius:7px;
}
body.qt-desktop-mode .qt-rooms-dialog .qt-rooms-field{
 display:grid;grid-template-columns:112px minmax(0,1fr);
 align-items:center;gap:12px;margin:11px 0;direction:rtl;
}
body.qt-desktop-mode .qt-rooms-dialog .qt-rooms-field>span{
 text-align:right;font-weight:700;
}
body.qt-desktop-mode .qt-rooms-dialog :is(input,select,textarea){
 width:100%;max-width:100%;min-width:0;min-height:35px;
 background:#fff;border:1px solid #b8ccdf;border-radius:4px;
 color:#244875;padding:7px 9px;
}
body.qt-desktop-mode .qt-rooms-dialog textarea{height:84px;min-height:70px}
body.qt-desktop-mode .qt-rooms-dialog .qt-rooms-actions{
 justify-content:flex-end;padding-top:8px;
}
body.qt-desktop-mode .qt-rooms-dialog .qt-rooms-actions>.button{
 min-width:100px;min-height:36px;
}

/* TableWindow original: single right list and left detail+history, ratio 2:1. */
body.qt-desktop-mode .qt-tables-workspace{
 background:#fff;min-height:560px;padding:10px;
}
body.qt-desktop-mode .qt-tables-workspace>.qt-tables-columns{
 grid-template-columns:minmax(0,2fr) minmax(300px,1fr);
 gap:14px;align-items:stretch;
}
body.qt-desktop-mode .qt-tables-workspace .qt-tables-list{
 background:#fff;border:0;border-radius:0;box-shadow:none;
 padding:0;gap:9px;
}
body.qt-desktop-mode .qt-tables-workspace .qt-tables-list>.table-scroll{
 flex:1 1 auto;min-height:390px;max-height:70dvh;
 border:1px solid #b8ccdf;border-radius:3px;
}
body.qt-desktop-mode .qt-tables-workspace .qt-tables-details{
 background:#fff;border:0;border-radius:0;box-shadow:none;
 padding:0;gap:14px;
}
body.qt-desktop-mode .qt-tables-workspace .qt-tables-detail-group,
body.qt-desktop-mode .qt-tables-workspace .qt-tables-history-group{
 border:1px solid #b8ccdf;border-radius:5px;padding:12px;
 min-height:160px;background:#fff;
}
body.qt-desktop-mode .qt-tables-workspace .qt-tables-history-group{
 flex:1;min-height:230px;overflow:auto;
}
body.qt-desktop-mode .qt-tables-workspace .qt-tables-history-group table{
 min-width:360px;font-size:11px;
}
body.qt-desktop-mode .qt-tables-workspace .qt-tables-history-group :is(th,td){
 border:1px solid #e1e8f0;padding:7px 5px;
}
body.qt-desktop-mode .qt-tables-workspace .qt-tables-list>.qt-rooms-actions{
 min-height:38px;
}

/* DeviceWindow: 70px header / 20px content gutters / 380px left detail panel.
   Original ui/styles/devices.css uses #244875 and #b8ccdf. */
body.qt-desktop-mode .qt-devices-workspace{
 background:#fff;gap:0;min-height:640px;
}
body.qt-desktop-mode .qt-devices-header{
 flex:0 0 70px;box-sizing:border-box;height:70px;min-height:70px;
 background:#fff;border:0;border-bottom:1px solid #b8ccdf;
 border-radius:0;padding:0 20px;color:#244875;
 font-size:18px;font-weight:600;
}
body.qt-desktop-mode .qt-devices-workspace>.qt-tables-columns{
 padding:20px;gap:20px;min-height:500px;
 grid-template-columns:minmax(0,1fr) 380px;
 align-items:stretch;
}
body.qt-desktop-mode .qt-devices-workspace .qt-tables-list,
body.qt-desktop-mode .qt-devices-workspace .qt-tables-details{
 border:1px solid #b8ccdf;background:#fff;
 border-radius:12px;padding:15px;box-shadow:none;
 box-sizing:border-box;min-width:0;gap:15px;
}
body.qt-desktop-mode .qt-devices-workspace .qt-tables-details{
 width:380px;min-width:380px;
}
body.qt-desktop-mode .qt-devices-toolbar{
 display:flex;flex-wrap:wrap;align-items:center;
 gap:10px;direction:rtl;
}
body.qt-desktop-mode .qt-devices-toolbar>.qt-rooms-actions{
 flex:1 1 auto;flex-wrap:wrap;
 gap:6px;min-width:0;
}
body.qt-desktop-mode .qt-devices-toolbar>input{
 box-sizing:border-box;flex:0 0 300px;width:300px;max-width:100%;
 min-height:38px;border:1px solid #b8ccdf;border-radius:20px;
 padding:8px 15px;background:#fff;color:#244875;
 text-align:right;direction:rtl;font:inherit;
}
body.qt-desktop-mode .qt-devices-toolbar>input:focus{
 border-color:#244875;background:#e8f0f7;outline:2px solid #24487522;
}
body.qt-desktop-mode .qt-devices-workspace .qt-tables-list>.table-scroll{
 min-height:330px;flex:1 1 auto;
 border:1px solid #e1e8f0;border-radius:2px;
}
body.qt-desktop-mode .qt-devices-workspace .qt-devices-list{
 min-width:620px;border-collapse:collapse;
}
body.qt-desktop-mode .qt-devices-workspace .qt-devices-list :is(th,td){
 border:0;border-bottom:1px solid #e8f0f7;
 padding:8px;color:#244875;height:37px;
}
body.qt-desktop-mode .qt-devices-workspace .qt-devices-list th{
 background:#e8f0f7;white-space:nowrap;
}
body.qt-desktop-mode .qt-devices-workspace .qt-devices-list tbody tr:nth-child(even){
 background:#f5f8fc;
}
body.qt-desktop-mode .qt-devices-workspace .qt-devices-list tbody tr.selected{
 background:#e1edfa;
}
body.qt-desktop-mode .qt-devices-workspace .qt-devices-list :is(th,td):nth-child(1),
body.qt-desktop-mode .qt-devices-workspace .qt-devices-list :is(th,td):nth-child(4){
 text-align:center;
}
body.qt-desktop-mode .qt-devices-workspace .qt-devices-list :is(th,td):nth-child(2){min-width:200px}
body.qt-desktop-mode .qt-devices-workspace .qt-devices-list :is(th,td):nth-child(3){min-width:150px}
body.qt-desktop-mode .qt-devices-workspace .qt-tables-detail-group{
 background:#fff;border:1px solid #b8ccdf;
 border-radius:8px;padding:15px;min-height:150px;
}
body.qt-desktop-mode .qt-devices-workspace .qt-tables-detail-group legend{
 color:#244875;font-size:14px;font-weight:700;
}
body.qt-desktop-mode .qt-device-dialog{
 width:min(500px,94vw);min-height:300px;box-sizing:border-box;
 border:1px solid #b8ccdf;border-radius:6px;background:#fff;
 padding:20px;direction:rtl;
}
body.qt-desktop-mode .qt-device-dialog .qt-rooms-field{
 display:grid;grid-template-columns:110px minmax(0,1fr);
 align-items:center;gap:12px;margin:14px 0;
}
body.qt-desktop-mode .qt-device-dialog .qt-rooms-field>span{text-align:right;font-weight:700}
body.qt-desktop-mode .qt-device-dialog :is(input,select){
 width:100%;min-height:35px;padding:8px;
 border:1px solid #b8ccdf;border-radius:4px;
}
body.qt-desktop-mode .qt-device-dialog .qt-rooms-actions{
 padding-top:10px;justify-content:flex-end;
}
body.qt-desktop-mode .qt-device-dialog .qt-rooms-actions>.button{
 min-width:120px;min-height:35px;
}
@media(max-width:1020px){
 body.qt-desktop-mode .qt-devices-workspace>.qt-tables-columns{
  grid-template-columns:minmax(0,1fr);
 }
 body.qt-desktop-mode .qt-devices-workspace .qt-tables-details{
  width:100%;min-width:0;
 }
}
@media(max-width:850px){
 body.qt-desktop-mode .qt-tables-workspace>.qt-tables-columns{
  grid-template-columns:minmax(0,1fr);
 }
 body.qt-desktop-mode .qt-rooms-dialog .qt-rooms-field,
 body.qt-desktop-mode .qt-device-dialog .qt-rooms-field{
  grid-template-columns:100px minmax(0,1fr);
 }
}
@media(max-width:560px){
 body.qt-desktop-mode .qt-devices-workspace>.qt-tables-columns{padding:10px}
 body.qt-desktop-mode .qt-devices-toolbar>input{flex:1 1 100%;width:100%}
 body.qt-desktop-mode .qt-rooms-dialog .qt-rooms-field,
 body.qt-desktop-mode .qt-device-dialog .qt-rooms-field{
  grid-template-columns:1fr;gap:5px;
 }
}


/* Qt POS 2026-11-17: source-guided geometry, status and touch targets.
   Original: modules/pos/views/pos_window_ui_mixin.py. Customer POS only. */
body.qt-desktop-mode #body-content .qt-pos-window{
 width:100%;max-width:none;box-sizing:border-box;padding:8px;
 font-family:Arial,Tahoma,sans-serif;color:#102844;
}
body.qt-desktop-mode #body-content .qt-pos-workspace{
 column-gap:0;align-items:stretch;min-height:540px;
}
body.qt-desktop-mode #body-content .qt-pos-catalog{
 border-radius:6px 0 0 6px;padding:6px;background:#fff;
}
body.qt-desktop-mode #body-content .qt-pos-cart{
 border-radius:0 6px 6px 0;padding:6px 8px;background:#fff;
}
body.qt-desktop-mode #body-content .qt-pos-order-modes{
 min-height:40px;box-sizing:border-box;gap:4px;margin-bottom:5px;
 background:#f7f9fc;
}
body.qt-desktop-mode #body-content .qt-pos-order-modes strong{
 min-width:64px;text-align:center;margin-inline-end:2px;
 font-size:12px;font-weight:800;color:#102844;
}
body.qt-desktop-mode #body-content .qt-pos-tool{
 min-height:35px;padding:6px 9px;border-radius:7px;
 border-color:#b9cbdc;color:#244875;font-weight:700;
}
body.qt-desktop-mode #body-content .qt-pos-tool:focus-visible,
body.qt-desktop-mode #body-content .qt-pos-product-tile:focus-visible,
body.qt-desktop-mode #body-content .qt-pos-quantity-button:focus-visible{
 outline:2px solid #5f8cc0;outline-offset:2px;
}
body.qt-desktop-mode #body-content .qt-pos-products-grid{
 padding:4px;gap:6px;align-content:start;
 grid-template-columns:repeat(auto-fill,minmax(130px,1fr));
}
body.qt-desktop-mode #body-content .qt-pos-product-tile{
 min-height:116px;padding:8px;border-radius:8px;background:#f9fbfd;
 border-color:#d1dce9;
}
body.qt-desktop-mode #body-content .qt-pos-product-tile:disabled{
 opacity:.7;cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-pos-product-tile strong{
 font-size:13px;line-height:1.4;max-height:3.9em;overflow:hidden;
}
body.qt-desktop-mode #body-content .qt-pos-product-tile span{
 padding:3px 6px;border-radius:4px;background:#eef4fa;
 color:#244875;font-size:13px;align-self:flex-end;
 font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode #body-content .qt-pos-cart-header{
 background:#061f3e;border:1px solid #102844;
 border-radius:10px;min-height:48px;box-sizing:border-box;
 padding:4px 8px;gap:8px;align-items:center;
}
body.qt-desktop-mode #body-content .qt-pos-cart-header label{
 color:#fff;font-size:11px;margin:0;
}
body.qt-desktop-mode #body-content .qt-pos-cart-header input{
 min-height:34px;background:#fff;color:#102844;
 border:1px solid #2e5582;border-radius:8px;
}
body.qt-desktop-mode #body-content .qt-pos-cart-search{
 flex:1;min-width:140px;max-width:none;
}
body.qt-desktop-mode #body-content .qt-pos-cart-search input{
 width:100%;min-height:38px;font-size:13px;font-weight:700;
}
body.qt-desktop-mode #body-content .qt-pos-line-register{
 min-width:0;overflow-x:auto;background:#fafafa;
 border:1px solid #d1d1d6;border-radius:4px;
}
body.qt-desktop-mode #body-content .qt-pos-line-head{
 color:#244875;font-weight:700;font-size:11px;
 background:#edf3fa;position:sticky;top:0;z-index:1;
}
body.qt-desktop-mode #body-content .qt-pos-line-register .invoice-lines{
 max-height:44vh;min-height:115px;scrollbar-gutter:stable;
}
body.qt-desktop-mode #body-content .qt-pos-line-register .invoice-item{
 border-bottom:1px solid #e0e5ed;min-width:0;
}
body.qt-desktop-mode #body-content .qt-pos-line-register .invoice-item:focus-within{
 background:#f0f6fc;
}
body.qt-desktop-mode #body-content .qt-pos-line-register input,
body.qt-desktop-mode #body-content .qt-pos-line-register select{
 min-height:32px;max-width:100%;
}
body.qt-desktop-mode #body-content .qt-pos-line-register input:focus,
body.qt-desktop-mode #body-content .qt-pos-cart .form-grid textarea:focus{
 outline:2px solid #5f8cc0;outline-offset:0;
}
body.qt-desktop-mode #body-content .qt-pos-cart .form-grid textarea{
 width:100%;min-width:0;max-width:100%;box-sizing:border-box;
 resize:vertical;min-height:38px;max-height:96px;
 border:1px solid #d1d1d6;border-radius:4px;
 padding:6px 9px;font:12px Arial,Tahoma,sans-serif;
}
body.qt-desktop-mode #body-content .qt-pos-native-total{
 display:inline-flex;align-items:center;justify-content:center;
 min-height:40px;min-width:125px;padding:7px 10px;
 box-sizing:border-box;background:#244875;color:white;
 border-radius:6px;font-size:15px;font-weight:800;
 font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode #body-content .qt-pos-cart-stats{
 color:#244875;font-size:11px;font-weight:700;
}
body.qt-desktop-mode #body-content .qt-pos-cash-preview{
 color:#29536f;font-size:11px;line-height:1.4;
}
body.qt-desktop-mode #body-content .qt-pos-actions{
 padding:6px 4px 8px;gap:7px;
}
body.qt-desktop-mode #body-content .qt-pos-actions .button{
 min-height:44px;font-weight:700;
}
body.qt-desktop-mode #body-content .qt-pos-actions .button:disabled{
 opacity:.55;cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-pos-catalog-pager,
body.qt-desktop-mode #body-content .qt-pos-customer-pager{
 font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode #body-content .qt-pos-window [hidden]{
 display:none!important;
}
@media(max-width:1100px){
 body.qt-desktop-mode #body-content .qt-pos-workspace{
  grid-template-columns:minmax(0,1fr);gap:8px;min-height:0;
 }
 body.qt-desktop-mode #body-content .qt-pos-catalog,
 body.qt-desktop-mode #body-content .qt-pos-cart{
  border-radius:6px;min-height:0;padding:6px;
 }
 body.qt-desktop-mode #body-content .qt-pos-products-grid{
  grid-template-columns:repeat(auto-fill,minmax(118px,1fr));
 }
 body.qt-desktop-mode #body-content .qt-pos-cart-header{
  flex-wrap:wrap;
 }
}
@media(prefers-reduced-motion:reduce){
 body.qt-desktop-mode #body-content .qt-pos-window *{
  scroll-behavior:auto!important;
 }
}

/* CustomerWindow (2026-11-18 uploaded desktop source): 62px command bar,
   68px filter toolbar, 40px desktop rows, 39px headers, 52px page footer.
   Scoped to Customers only: never alter inventory, treasury or suppliers. */
body.qt-desktop-mode .qt-native-customers .qt-native-module-header{
 height:62px;min-height:62px;flex:0 0 62px;gap:7px;
 padding:7px 10px 7px 12px;border-radius:8px
}
body.qt-desktop-mode .qt-native-customers .qt-native-module-heading{
 direction:rtl;text-align:right;min-width:300px;gap:0
}
body.qt-desktop-mode .qt-native-customers .qt-native-module-heading strong{
 font-size:18px;font-weight:900;color:#173e70
}
body.qt-desktop-mode .qt-native-customers .qt-native-module-heading small{
 font-size:10px;font-weight:600;color:#72839a
}
body.qt-desktop-mode .qt-native-customers .qt-native-command-row{
 display:flex;direction:ltr;gap:7px;align-items:center;flex-wrap:nowrap;min-width:0
}
body.qt-desktop-mode .qt-native-customers .qt-native-command-row .qt-native-action{
 min-height:38px;height:38px;white-space:nowrap;font-weight:800
}
body.qt-desktop-mode .qt-native-customers .qt-native-command-row .qt-native-action:nth-child(-n+4){
 background:#244875;border-color:#244875;color:#fff
}
body.qt-desktop-mode .qt-native-customers .qt-native-command-row .qt-native-action:last-child{
 background:#eef5ff;border-color:#b7cde7;color:#244875
}
body.qt-desktop-mode .qt-native-customers .qt-native-summary{
 direction:rtl;height:76px;min-height:76px;gap:8px
}
body.qt-desktop-mode .qt-native-customers .qt-native-summary-card{
 padding:8px 12px;align-items:flex-end;justify-content:center
}
body.qt-desktop-mode .qt-native-customers .qt-native-summary-card strong{
 font-size:18px;font-variant-numeric:tabular-nums
}
body.qt-desktop-mode .qt-native-customers .qt-native-filters{
 height:68px;min-height:68px;flex:0 0 68px;gap:7px;padding:8px 10px;
 border:1px solid #d7e1ec;border-radius:8px;direction:rtl;overflow-x:auto
}
body.qt-desktop-mode .qt-native-customers .qt-native-filters input[type=search]{
 flex:2 0 330px;min-width:330px;max-width:470px
}
body.qt-desktop-mode .qt-native-customers .qt-native-filters select{
 flex:0 0 120px;min-width:120px;max-width:145px
}
body.qt-desktop-mode .qt-native-customers .qt-native-filters .qt-native-action{
 flex:0 0 auto;height:36px;min-height:36px
}
body.qt-desktop-mode .qt-native-customers .qt-native-table-scroll{
 border:1px solid #c8d5e4;border-radius:6px
}
body.qt-desktop-mode .qt-native-customers .qt-native-table thead th{
 height:39px;background:#244875;color:white;border-inline-start:1px solid #3d5f89;
 padding:7px 5px;font-weight:800
}
body.qt-desktop-mode .qt-native-customers .qt-native-table tbody td{
 height:40px;padding:6px;color:#173e70;border:1px solid #dde5ef
}
body.qt-desktop-mode .qt-native-customers .qt-native-table tbody tr:nth-child(even){
 background:#f8fafd
}
body.qt-desktop-mode .qt-native-customers .qt-native-table tbody tr.selected,
body.qt-desktop-mode .qt-native-customers .qt-native-table tbody tr.selected td{
 background:#e5f1ff;color:#173e70
}
body.qt-desktop-mode .qt-native-customers .qt-native-row-actions{
 min-width:124px;width:124px;white-space:nowrap
}
body.qt-desktop-mode .qt-native-customers .qt-native-row-actions .qt-native-action{
 min-height:26px;height:26px;padding:0 5px;font-weight:800;font-size:11px
}
body.qt-desktop-mode .qt-native-customers .qt-native-pagination{
 height:52px;min-height:52px;flex:0 0 52px;direction:ltr;gap:7px;
 justify-content:space-between;padding:6px 10px;border-radius:8px
}
body.qt-desktop-mode .qt-native-customers .qt-native-page-size{
 display:flex;align-items:center;gap:7px;white-space:nowrap;flex:0 0 auto
}
body.qt-desktop-mode .qt-native-customers .qt-native-page-size select{
 width:72px;height:34px;min-width:72px;min-height:34px
}
body.qt-desktop-mode .qt-native-customers .qt-native-pagination-status{
 flex:1;margin:0;text-align:center;color:#244875;font-size:12px;font-weight:800
}
body.qt-desktop-mode .qt-native-customers .qt-native-page-label{
 display:flex;align-items:center;justify-content:center;width:38px;min-width:38px;height:34px;
 border-radius:5px;background:#244875;color:white;font-weight:900;font-variant-numeric:tabular-nums
}
body.qt-desktop-mode .qt-native-customers .qt-native-pagination>.qt-native-action{
 width:82px;min-width:82px;height:34px;min-height:34px
}
body.qt-desktop-mode .qt-native-customers .qt-native-tabs [role=tab]{
 cursor:pointer
}
body.qt-desktop-mode .qt-native-customers .qt-native-tabs [role=tab]:focus-visible{
 outline:2px solid #246fba;outline-offset:2px
}
@media(max-width:1050px){
 body.qt-desktop-mode .qt-native-customers .qt-native-module-header{
  height:auto;min-height:62px;flex-basis:auto;flex-wrap:wrap;align-items:center
 }
 body.qt-desktop-mode .qt-native-customers .qt-native-module-heading{min-width:180px}
 body.qt-desktop-mode .qt-native-customers .qt-native-command-row{overflow-x:auto;max-width:100%}
 body.qt-desktop-mode .qt-native-customers .qt-native-filters{height:auto;flex-basis:auto;flex-wrap:wrap}
 body.qt-desktop-mode .qt-native-customers .qt-native-filters input[type=search]{
  min-width:200px;max-width:none
 }
 body.qt-desktop-mode .qt-native-customers .qt-native-pagination{
  height:auto;min-height:52px;flex-wrap:wrap;gap:8px
 }
}

/* Desktop CustomerWindow column proportions: ID, name, phone, category,
   type, opening balance, added date, status, notes and row actions. */
body.qt-desktop-mode .qt-native-customers .qt-native-table{min-width:1240px;table-layout:fixed;direction:rtl}
body.qt-desktop-mode .qt-native-customers .qt-native-table tr>*:nth-child(1){width:70px}
body.qt-desktop-mode .qt-native-customers .qt-native-table tr>*:nth-child(2){width:17%}
body.qt-desktop-mode .qt-native-customers .qt-native-table tr>*:nth-child(3){width:130px}
body.qt-desktop-mode .qt-native-customers .qt-native-table tr>*:nth-child(4){width:105px}
body.qt-desktop-mode .qt-native-customers .qt-native-table tr>*:nth-child(5){width:82px}
body.qt-desktop-mode .qt-native-customers .qt-native-table tr>*:nth-child(6){width:120px}
body.qt-desktop-mode .qt-native-customers .qt-native-table tr>*:nth-child(7){width:110px}
body.qt-desktop-mode .qt-native-customers .qt-native-table tr>*:nth-child(8){width:90px}
body.qt-desktop-mode .qt-native-customers .qt-native-table tr>*:nth-child(9){width:auto}
body.qt-desktop-mode .qt-native-customers .qt-native-table tr>*:nth-child(10){width:124px}
body.qt-desktop-mode .qt-native-customers .qt-native-table tbody td:nth-child(2),
body.qt-desktop-mode .qt-native-customers .qt-native-table tbody td:nth-child(9){
 text-align:right;overflow:hidden;text-overflow:ellipsis;max-width:280px
}
body.qt-desktop-mode .qt-native-customers .qt-native-table tbody td:nth-child(3){
 direction:ltr;unicode-bidi:plaintext
}


/* 2026-11-18 — Original Qt POS wave 2: native tile geometry, scrolling and
   cashier controls. Reference: pos_window_ui_mixin.py from the user archive.
   Staging POS only; no Master/tenant identity styles are affected. */
body.qt-desktop-mode #body-content .qt-pos-window{
 --pos-ink:#102844;
 --pos-brand:#244875;
 --pos-line:#d1d1d6;
 --pos-soft:#f6f8fb;
 --pos-canvas:#fff;
 --pos-focus:#5d87b1;
 direction:rtl;
 background:var(--pos-canvas);
}
body.qt-desktop-mode #body-content .qt-pos-workspace{
 grid-template-columns:minmax(0,2fr) minmax(390px,1fr);
 align-items:stretch;gap:0;min-height:540px;
}
body.qt-desktop-mode #body-content .qt-pos-catalog{
 padding:4px 6px;overflow:hidden;
 border-radius:5px 0 0 5px;
}
body.qt-desktop-mode #body-content .qt-pos-cart{
 padding:4px 7px;overflow:hidden;
 border-radius:0 5px 5px 0;
 border-inline-start:1px solid #cbd6e4;
}
body.qt-desktop-mode #body-content .qt-pos-catalog-heading{
 font-size:12px;font-weight:800;line-height:1.4;
 padding:4px 8px;margin:1px 0 4px;
 color:var(--pos-ink);border-bottom:1px solid #e3e8ef;
}
body.qt-desktop-mode #body-content .qt-pos-order-modes{
 min-height:40px;margin:2px 0 6px;
 border-radius:8px;background:#f7f9fc;
 border:1px solid #d8e1eb;
}
body.qt-desktop-mode #body-content .qt-pos-order-modes strong{
 font-size:12px;min-width:64px;letter-spacing:0;white-space:nowrap;
}
body.qt-desktop-mode #body-content .qt-pos-tool{
 font-size:12px;font-weight:750;min-height:36px;
 border-radius:7px;white-space:nowrap;cursor:pointer;
 transition:background-color .1s ease,border-color .1s ease;
}
body.qt-desktop-mode #body-content .qt-pos-tool:hover:not(:disabled){
 background:#dceafa;border-color:#7898be;
}
body.qt-desktop-mode #body-content .qt-pos-tool:disabled{
 cursor:not-allowed;opacity:.58;
}
body.qt-desktop-mode #body-content .qt-pos-products-grid{
 grid-template-columns:repeat(auto-fill,minmax(140px,1fr));
 gap:7px;padding:4px;align-items:start;
 max-height:min(68vh,800px);overscroll-behavior:contain;
}
body.qt-desktop-mode #body-content .qt-pos-product-tile{
 height:172px;min-height:172px;
 border:1px solid #e3e8ef;border-radius:12px;
 background:#fff;padding:6px 6px 8px;
 display:flex;flex-direction:column;
 justify-content:flex-start;align-items:stretch;
 gap:5px;overflow:hidden;min-width:0;
 color:#0f2342;text-align:center;
 box-shadow:0 1px 2px rgba(15,35,66,.05);
}
body.qt-desktop-mode #body-content .qt-pos-product-tile:hover:not(:disabled){
 background:#f7fbff;border:2px solid #06224a;
 padding:5px 5px 7px;
}
body.qt-desktop-mode #body-content .qt-pos-product-tile:disabled{
 opacity:.65;cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-pos-product-name{
 display:block;flex:0 0 auto;
 min-width:0;max-width:100%;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 font-size:12px;font-weight:800;line-height:22px;
 text-align:center;color:#0f2342;
}
body.qt-desktop-mode #body-content .qt-pos-product-visual{
 display:flex;flex:1 1 auto;min-height:55px;
 justify-content:center;align-items:center;
 border:1px solid #e0e7f0;background:#f6f8fb;
 border-radius:10px;color:#8a98aa;
 font-size:16px;font-weight:700;
 pointer-events:none;
}
body.qt-desktop-mode #body-content .qt-pos-product-footer{
 display:flex;align-items:stretch;justify-content:center;
 gap:4px;flex-wrap:wrap;min-height:26px;
}
body.qt-desktop-mode #body-content .qt-pos-product-price{
 background:#06224a;color:#fff;
 border:0;border-radius:7px;
 font-size:11px;font-weight:800;
 min-height:26px;padding:4px 8px;
 display:flex;align-items:center;justify-content:center;
 flex:1 1 54%;box-sizing:border-box;
 font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode #body-content .qt-pos-product-service{
 display:flex;justify-content:center;align-items:center;
 border-radius:6px;background:#edf6fb;
 border:1px solid #b3cfdf;color:#244875;
 font-size:10px;font-weight:800;
 min-width:40px;min-height:26px;
 padding:3px 6px;box-sizing:border-box;
}
body.qt-desktop-mode #body-content .qt-pos-product-barcode{
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
 font-size:10px;color:#758ba4;line-height:11px;
 max-width:100%;pointer-events:none;
}
body.qt-desktop-mode #body-content .qt-pos-catalog-pager{
 border-top:1px solid #d8e1eb;
 background:#fcfdff;border-radius:0 0 5px 5px;
 min-height:42px;padding:5px 7px;
 display:flex;justify-content:center;align-items:center;
 gap:6px;flex-wrap:wrap;
}
body.qt-desktop-mode #body-content .qt-pos-page-limit{
 font:600 11px Arial,Tahoma,sans-serif;
 background:#fff;border:1px solid #c8d7e7;
 border-radius:6px;color:#244875;min-height:30px;
 padding:4px 6px;max-width:112px;
}
body.qt-desktop-mode #body-content .qt-pos-page-limit:focus-visible{
 outline:2px solid #628fbe;outline-offset:1px;
}
body.qt-desktop-mode #body-content .qt-pos-cart-header{
 background:#061f3e;color:#fff;
 border-radius:10px;min-height:48px;
 gap:5px;padding:4px 7px;margin-bottom:5px;
}
body.qt-desktop-mode #body-content .qt-pos-cart-header label{
 color:#fff;font-weight:650;font-size:11px;
}
body.qt-desktop-mode #body-content .qt-pos-cart-header input{
 background:#fff;color:#102844;
 border:1px solid #d1d1d6;border-radius:8px;
 font-weight:700;font-size:12px;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-line-register{
 border:1px solid #d1d1d6;
 background:#fafafa;border-radius:5px;
 overflow-x:auto;min-width:0;scrollbar-gutter:stable;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-line-head{
 background:#edf3fa;
 color:#244875;font-size:11px;font-weight:800;
 border-bottom:1px solid #cbd9e8;
 position:sticky;top:0;z-index:1;
}
body.qt-desktop-mode #body-content .qt-pos-cart .invoice-lines{
 max-height:44vh;min-height:110px;overflow-y:auto;
 overscroll-behavior:contain;
}
body.qt-desktop-mode #body-content .qt-pos-cart .invoice-item{
 border-bottom:1px solid #e4e9ef;padding:6px 4px;
}
body.qt-desktop-mode #body-content .qt-pos-cart .invoice-item:focus-within{
 background:#f1f7fd;
}
body.qt-desktop-mode #body-content .qt-pos-cart .form-grid textarea{
 width:100%;min-width:0;
 max-width:100%;min-height:38px;max-height:120px;
 box-sizing:border-box;resize:vertical;
 border:1px solid #d1d1d6;border-radius:6px;
 padding:6px 9px;
 font:12px Arial,Tahoma,sans-serif;color:#102844;
 background:#fff;
}
body.qt-desktop-mode #body-content .qt-pos-cart .form-grid textarea:disabled{
 opacity:.6;cursor:not-allowed;background:#f6f8fb;
}
body.qt-desktop-mode #body-content .qt-pos-native-total{
 min-height:40px;min-width:120px;
 border-radius:7px;background:#244875;
 color:#fff;font-size:15px;font-weight:800;
 padding:7px 10px;box-sizing:border-box;
 display:inline-flex;justify-content:center;align-items:center;
 font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode #body-content .qt-pos-cart-stats{
 font-size:11px;font-weight:700;color:#244875;
}
body.qt-desktop-mode #body-content .qt-pos-actions{
 align-items:stretch;gap:6px;
 border-top:1px solid #d8e1eb;padding-top:8px;
}
body.qt-desktop-mode #body-content .qt-pos-actions button{
 min-height:44px;border-radius:7px;
}
body.qt-desktop-mode #body-content .qt-pos-actions button:focus-visible{
 outline:2px solid #628fbe;outline-offset:2px;
}
body.qt-desktop-mode #body-content .qt-pos-posting-status{
 display:block;min-height:36px;
 font-size:12px;line-height:1.6;
 border-radius:6px;padding:7px 9px;
 background:#eef5fc;color:#244875;
 border:1px solid #c9dae9;
}
body.qt-desktop-mode #body-content .qt-pos-window [hidden]{
 display:none!important;
}
body.qt-desktop-mode #body-content .qt-pos-printed-title{
 color:#244875;font-size:15px;font-weight:800;
}
@media(max-width:1100px){
 body.qt-desktop-mode #body-content .qt-pos-workspace{
  grid-template-columns:minmax(0,1fr);gap:8px;
  min-height:0;
 }
 body.qt-desktop-mode #body-content .qt-pos-catalog,
 body.qt-desktop-mode #body-content .qt-pos-cart{
  border-radius:6px;padding:6px;
 }
 body.qt-desktop-mode #body-content .qt-pos-products-grid{
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
  max-height:42vh;
 }
 body.qt-desktop-mode #body-content .qt-pos-product-tile{
  height:160px;min-height:160px;
 }
 body.qt-desktop-mode #body-content .qt-pos-cart-header{
  flex-wrap:wrap;
 }
}
@media(max-width:580px){
 body.qt-desktop-mode #body-content .qt-pos-products-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;
 }
 body.qt-desktop-mode #body-content .qt-pos-catalog-pager{
  gap:5px;padding:5px;
 }
 body.qt-desktop-mode #body-content .qt-pos-cart .form-grid{
  grid-template-columns:1fr;gap:6px;
 }
 body.qt-desktop-mode #body-content .qt-pos-actions{
  flex-direction:column;
 }
 body.qt-desktop-mode #body-content .qt-pos-actions .button{
  width:100%;min-width:0;
 }
}
@media(prefers-reduced-motion:reduce){
 body.qt-desktop-mode #body-content .qt-pos-window *{
  scroll-behavior:auto!important;transition:none!important;
 }
}


/* StockWindow.delete_item: native Arabic confirmation and blocker preview.
   Scoped to the inventory modal; other ERP dialogs remain unchanged. */
.qt-inventory-delete-backdrop{
 position:fixed;inset:0;z-index:100700;display:flex;
 align-items:center;justify-content:center;padding:18px;
 background:rgba(13,30,48,.63);backdrop-filter:blur(2px)
}
.qt-inventory-delete-dialog{
 direction:rtl;box-sizing:border-box;width:min(660px,96vw);max-height:86vh;
 overflow:auto;border:1px solid #cbd5e1;border-radius:14px;
 padding:22px;background:#fff;color:#172b46;
 box-shadow:0 24px 70px rgba(0,0,0,.25)
}
.qt-inventory-delete-dialog h2{
 font-size:20px;line-height:1.5;margin:0 0 10px;font-weight:850
}
.qt-inventory-delete-dialog .qt-native-quiet{
 line-height:1.75;white-space:normal;margin:10px 0
}
.qt-inventory-delete-list{
 display:grid;gap:8px;max-height:39vh;overflow-y:auto;
 margin:12px 0;padding:2px
}
.qt-inventory-delete-item{
 display:flex;align-items:flex-start;gap:10px;
 padding:10px 12px;border:1px solid #dae4ee;border-radius:9px;
 background:#f7fafc;cursor:pointer
}
.qt-inventory-delete-item:has(input:disabled){
 background:#fff6f6;border-color:#f1cccc;cursor:not-allowed
}
.qt-inventory-delete-item input{
 width:17px;height:17px;margin-top:4px;flex:none;accent-color:#235d9d
}
.qt-inventory-delete-item span{display:grid;gap:4px;min-width:0}
.qt-inventory-delete-item strong{
 font-weight:750;overflow-wrap:anywhere;font-size:14px
}
.qt-inventory-delete-item small{
 font-size:12px;line-height:1.6;color:#586878;overflow-wrap:anywhere
}
.qt-inventory-delete-dialog input[aria-label="تأكيد حذف الأصناف"]{
 width:100%;min-height:40px;box-sizing:border-box;
 padding:8px 12px;border-radius:8px;border:1px solid #b6c5d5;
 font:inherit;background:#fff;color:#24364d
}
.qt-inventory-delete-dialog input[aria-label="تأكيد حذف الأصناف"]:focus-visible{
 outline:2px solid #2879b9;outline-offset:2px
}
.qt-inventory-delete-actions{
 display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-start;
 margin-top:14px
}
.qt-inventory-delete-actions .qt-native-action{
 min-width:116px;min-height:38px
}
@media(max-width:520px){
 .qt-inventory-delete-backdrop{padding:8px}
 .qt-inventory-delete-dialog{padding:15px;max-height:93vh}
 .qt-inventory-delete-list{max-height:46vh}
 .qt-inventory-delete-actions .qt-native-action{flex:1}
}


/* qt-pos-source-tile-parity-20261117
 * Visual metrics from attached offline ERPSYSTEM/modules/pos/views/
 * pos_window_ui_mixin.py (SHA256 25ae1bacf4be9acb45bc542aa3a4632a2f58533958c079b6cfba85b0016d77c6).
 * Presentation only: no changes to scoped catalog RPC, tenders or posting. */
@media (min-width:1101px) {
 body.qt-desktop-mode #body-content .qt-pos-workspace {
  grid-template-columns:minmax(0,1fr) minmax(400px,430px);
 }
}
body.qt-desktop-mode #body-content:has(.qt-pos-window) {
 padding:0;
 background:#fff;
}
body.qt-desktop-mode #body-content .qt-pos-window {
 background:#fff;
 font-family:"Segoe UI",Tahoma,Arial,sans-serif;
 color:#102844;
}
body.qt-desktop-mode #body-content .qt-pos-workspace {
 border:0;
 background:#fff;
 gap:0;
}
body.qt-desktop-mode #body-content .qt-pos-catalog {
 border-inline-end:1px solid #d1d1d6;
}
body.qt-desktop-mode #body-content .qt-pos-order-modes {
 min-height:44px;
 padding:2px 4px;
 margin:0;
 border:1px solid #d8e1eb;
 border-radius:8px;
 background:#f7f9fc;
 gap:4px;
}
body.qt-desktop-mode #body-content .qt-pos-order-modes .qt-pos-tool {
 min-width:72px;
 min-height:36px;
 height:36px;
 border-radius:8px;
}
body.qt-desktop-mode #body-content .qt-pos-tools {
 min-height:54px;
 padding:6px 8px;
 margin:0;
 border:1px solid #d8e1eb;
 border-radius:8px;
 background:#f7f9fc;
 gap:4px;
}
body.qt-desktop-mode #body-content .qt-pos-tool {
 background:#fff;
 color:#244875;
 border:1px solid #c9d6e5;
 border-radius:6px;
 height:36px;
 min-height:36px;
 font-size:12px;
}
body.qt-desktop-mode #body-content .qt-pos-tool:disabled {
 opacity:.65;
 color:#8793a3;
 background:#edf0f4;
}
body.qt-desktop-mode #body-content .qt-pos-products-grid {
 grid-template-columns:repeat(auto-fill,132px);
 grid-auto-rows:170px;
 justify-content:start;
 align-content:start;
 gap:5px;
 padding:4px;
 background:#fafafa;
 border:1px solid #d1d1d6;
 border-radius:4px;
 overflow-x:hidden;
 overflow-y:auto;
}
body.qt-desktop-mode #body-content .qt-pos-product-tile {
 display:flex;
 flex-direction:column;
 align-items:stretch;
 justify-content:flex-start;
 gap:3px;
 box-sizing:border-box;
 width:132px;
 height:170px;
 min-height:170px;
 max-height:170px;
 min-width:132px;
 max-width:132px;
 padding:3px 7px 5px;
 background:#fff;
 border:1px solid #e3e8ef;
 border-radius:12px;
 color:#102844;
 text-align:center;
 overflow:hidden;
 white-space:normal;
 overflow-wrap:normal;
}
body.qt-desktop-mode #body-content .qt-pos-product-tile:hover:not(:disabled) {
 background:#f7fbff;
 border:2px solid #06224a;
 outline:none;
}
body.qt-desktop-mode #body-content .qt-pos-product-tile:focus-visible {
 outline:2px solid #06224a;
 outline-offset:-2px;
}
body.qt-desktop-mode #body-content .qt-pos-product-tile .qt-pos-tile-name {
 display:block;
 height:22px;
 min-height:22px;
 max-height:22px;
 line-height:22px;
 font-size:12px;
 font-weight:800;
 color:#0f2342;
 white-space:nowrap;
 text-overflow:ellipsis;
 overflow:hidden;
 direction:rtl;
 text-align:center;
}
body.qt-desktop-mode #body-content .qt-pos-product-tile .qt-pos-product-photo {
 display:flex;
 align-items:center;
 justify-content:center;
 align-self:center;
 width:106px;
 height:84px;
 min-width:106px;
 min-height:84px;
 max-height:84px;
 flex-shrink:0;
 background:#f6f8fb;
 border:1px solid #e0e7f0;
 border-radius:10px;
 color:#8a98aa;
 font-size:16px;
 font-weight:700;
}
body.qt-desktop-mode #body-content .qt-pos-product-tile .qt-pos-product-footer {
 display:flex;
 align-items:center;
 gap:7px;
 height:26px;
 min-height:26px;
 max-height:26px;
 margin-top:auto;
}
body.qt-desktop-mode #body-content .qt-pos-product-tile .qt-pos-tile-price {
 display:flex;
 align-items:center;
 justify-content:center;
 width:100%;
 height:26px;
 min-height:26px;
 background:#06224a;
 color:#fff;
 border-radius:7px;
 padding:0 3px;
 font-size:11px;
 font-weight:700;
 white-space:nowrap;
}
body.qt-desktop-mode #body-content .qt-pos-cart-header {
 height:48px;
 min-height:48px;
 border:1px solid #102844;
 border-radius:10px;
 background:#061f3e;
 color:#fff;
 padding:4px 5px;
}
body.qt-desktop-mode #body-content .qt-pos-cart-header label {
 color:#fff;
}
body.qt-desktop-mode #body-content .qt-pos-cart-search input {
 min-height:38px;
 height:38px;
 background:#fff;
 border:1px solid #2e5582;
 border-radius:8px;
 color:#102844;
 font-size:12px;
}
body.qt-desktop-mode #body-content .qt-pos-line-register {
 background:#fafafa;
 border:1px solid #d1d1d6;
 border-radius:4px;
}
body.qt-desktop-mode #body-content .qt-pos-line-register .qt-pos-line-head {
 height:41px;
 min-height:41px;
 background:#f9f9f9;
 color:#102844;
 border-bottom:2px solid #e2e8f0;
 font-size:12px;
}
body.qt-desktop-mode #body-content .qt-pos-line-register .invoice-item:nth-child(even) {
 background:#fafafa;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-quantity-button:not(.qt-pos-keypad-open) {
 width:22px;
 min-width:22px;
 height:22px;
 min-height:22px;
 flex:0 0 22px;
 background:#244875;
 border:1px solid #1a3558;
 border-radius:5px;
 color:#fff;
 font-size:12px;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-quantity-button:hover:not(:disabled) {
 background:#1a3558;
 color:#fff;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-quantity-button:disabled {
 color:#8a98aa;
 background:#eef2f6;
 border-color:#d6dee8;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-line-remove {
 background:#b42318;
 border:0;
 color:#fff;
 font-size:11px;
 border-radius:5px;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form>.toolbar strong {
 color:#244875;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-actions .button.primary {
 background:#244875;
 border-color:#244875;
 color:#fff;
 border-radius:6px;
 min-height:40px;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-actions .button.primary:disabled {
 background:#eef2f6;
 border-color:#d6dee8;
 color:#8a98aa;
}
@media (max-width:1100px) {
 body.qt-desktop-mode #body-content .qt-pos-workspace {
  grid-template-columns:minmax(0,1fr);
 }
}
@media (max-width:700px) {
 body.qt-desktop-mode #body-content .qt-pos-products-grid {
  grid-template-columns:repeat(auto-fill,132px);
  justify-content:center;
 }
 body.qt-desktop-mode #body-content .qt-pos-cart-header {
  height:auto;
 }
}


/* POS invoices list: original invoices_list_window.py::setup_ui.
 * 10/8 main margins; top filter 10/8 and 6px rows; 34px controls;
 * 112/100/92/100/90/105/118px actions; 35px table rows;
 * statistics grouped 3 + 2 + 3 in a maximum-height 128px Qt group box.
 * This layer does not add disabled financial operations. */
body.qt-desktop-mode #body-content .qt-pos-invoice-window {
 box-sizing:border-box;
 padding:8px 10px;
 gap:8px;
 background:#fff;
 color:#244875;
 font-family:"Segoe UI",Tahoma,Arial,sans-serif;
}
body.qt-desktop-mode #body-content .qt-pos-inv-filter {
 background:#f7f9fc;
 border:1px solid #d8e1eb;
 border-radius:8px;
 padding:8px 10px;
 gap:6px;
}
body.qt-desktop-mode #body-content .qt-pos-inv-inputs {
 display:flex;
 align-items:center;
 justify-content:flex-start;
 gap:8px;
 flex-wrap:wrap;
}
body.qt-desktop-mode #body-content .qt-pos-inv-inputs .qt-pos-inv-field {
 display:flex;
 flex-direction:row;
 align-items:center;
 gap:6px;
 font-size:12px;
 font-weight:700;
 min-height:34px;
 min-width:0;
 max-width:none;
 flex:0 0 auto;
}
body.qt-desktop-mode #body-content .qt-pos-inv-inputs .qt-pos-inv-field:first-child{
 flex:1 1 245px;
 min-width:200px;
 max-width:390px;
}
body.qt-desktop-mode #body-content .qt-pos-inv-inputs .qt-pos-inv-field:first-child input {
 min-width:200px;
 max-width:320px;
 width:100%;
}
body.qt-desktop-mode #body-content .qt-pos-inv-inputs .qt-pos-inv-field:nth-child(2) select{
 width:150px;
 max-width:150px;
}
body.qt-desktop-mode #body-content .qt-pos-inv-inputs .qt-pos-inv-field:nth-child(n+3) input{
 width:125px;
 max-width:125px;
}
body.qt-desktop-mode #body-content .qt-pos-inv-inputs :is(input,select){
 height:34px;
 min-height:34px;
 box-sizing:border-box;
 border:1px solid #c9d6e5;
 border-radius:5px;
 background:#fff;
 color:#244875;
 font-size:12px;
 padding:4px 7px;
}
body.qt-desktop-mode #body-content .qt-pos-inv-actions {
 display:flex;
 align-items:center;
 justify-content:flex-start;
 gap:6px;
 flex-wrap:wrap;
}
body.qt-desktop-mode #body-content .qt-pos-inv-actions .qt-pos-inv-button{
 height:36px;
 min-height:36px;
 border-radius:5px;
 font-size:12px;
 padding:4px 6px;
 flex-shrink:0;
}
body.qt-desktop-mode #body-content .qt-pos-inv-actions .qt-pos-inv-button:nth-of-type(1){width:112px}
body.qt-desktop-mode #body-content .qt-pos-inv-actions .qt-pos-inv-button:nth-of-type(2){width:100px}
body.qt-desktop-mode #body-content .qt-pos-inv-actions .qt-pos-inv-button:nth-of-type(3){width:92px}
body.qt-desktop-mode #body-content .qt-pos-inv-actions .qt-pos-inv-button:nth-of-type(4){width:90px}
body.qt-desktop-mode #body-content .qt-pos-inv-actions .qt-pos-inv-button:nth-of-type(5){width:112px}
body.qt-desktop-mode #body-content .qt-pos-inv-actions .qt-pos-inv-button:nth-of-type(6){width:100px}
body.qt-desktop-mode #body-content .qt-pos-inv-actions .qt-pos-inv-button:nth-of-type(7){width:105px}
body.qt-desktop-mode #body-content .qt-pos-inv-actions .qt-pos-inv-button:nth-of-type(8){width:118px}
body.qt-desktop-mode #body-content .qt-pos-inv-actions .qt-pos-inv-status {
 margin-inline-start:auto;
 flex:1 1 220px;
 font-size:11px;
 line-height:1.5;
}
body.qt-desktop-mode #body-content .qt-pos-inv-tabs {
 border-bottom:1px solid #d8e1eb;
 gap:0;
}
body.qt-desktop-mode #body-content .qt-pos-inv-tabs .qt-pos-inv-button {
 background:#fff;
 border:1px solid #d8e1eb;
 border-bottom:0;
 border-radius:0;
 min-width:110px;
 padding:8px 18px;
 color:#244875;
 font-size:12px;
 font-weight:700;
}
body.qt-desktop-mode #body-content .qt-pos-inv-tabs .qt-pos-inv-button.active {
 background:#244875;
 border-color:#244875;
 color:#fff;
}
body.qt-desktop-mode #body-content .qt-pos-inv-table {
 border:1px solid #d1d1d6;
 min-width:870px;
}
body.qt-desktop-mode #body-content .qt-pos-inv-table th {
 background:#244875;
 font-weight:700;
 color:#fff;
 padding:5px;
 height:37px;
}
body.qt-desktop-mode #body-content .qt-pos-inv-table td {
 height:35px;
 box-sizing:border-box;
 padding:5px 7px;
 border:1px solid #d1d1d6;
}
body.qt-desktop-mode #body-content .qt-pos-inv-table tbody tr:nth-child(even) td{
 background:#f8fbff;
}
body.qt-desktop-mode #body-content .qt-pos-inv-summary {
 display:grid;
 grid-template-columns:repeat(6,minmax(0,1fr));
 grid-auto-flow:row;
 gap:4px 8px;
 max-height:128px;
 min-height:116px;
 padding:6px 8px;
 border:1px solid #d8e1eb;
 border-radius:8px;
 background:#fff;
 overflow:auto;
 align-items:center;
}
body.qt-desktop-mode #body-content .qt-pos-inv-summary-title {
 grid-column:1/-1;
 margin:0;
 padding:0 2px;
 font-size:12px;
 font-weight:800;
 color:#244875;
 line-height:18px;
}
body.qt-desktop-mode #body-content .qt-pos-inv-summary .qt-pos-inv-stat {
 box-sizing:border-box;
 min-height:26px;
 height:26px;
 min-width:0;
 display:flex;
 align-items:center;
 justify-content:flex-start;
 gap:5px;
 padding:3px 8px;
 border:1px solid #dce6ef;
 border-radius:5px;
 background:#f7f9fc;
 white-space:nowrap;
 overflow:hidden;
}
body.qt-desktop-mode #body-content .qt-pos-inv-summary .qt-pos-inv-stat:nth-of-type(-n+3),
body.qt-desktop-mode #body-content .qt-pos-inv-summary .qt-pos-inv-stat:nth-of-type(n+6){
 grid-column:span 2;
}
body.qt-desktop-mode #body-content .qt-pos-inv-summary .qt-pos-inv-stat:nth-of-type(4),
body.qt-desktop-mode #body-content .qt-pos-inv-summary .qt-pos-inv-stat:nth-of-type(5){
 grid-column:span 3;
}
body.qt-desktop-mode #body-content .qt-pos-inv-stat span {
 font-size:11px;
 min-width:0;
 overflow:hidden;
 text-overflow:ellipsis;
}
body.qt-desktop-mode #body-content .qt-pos-inv-stat strong {
 font-size:12px;
 overflow:hidden;
 text-overflow:ellipsis;
 direction:ltr;
}
body.qt-desktop-mode #body-content .qt-pos-inv-stat:nth-of-type(2){
 background:#fef2f2;
}
body.qt-desktop-mode #body-content .qt-pos-inv-stat:nth-of-type(4){
 background:#f0fdf4;
}
body.qt-desktop-mode #body-content .qt-pos-inv-stat:nth-of-type(5){
 background:#fffbeb;
}
body.qt-desktop-mode #body-content .qt-pos-inv-detail {
 width:min(950px,calc(100vw - 24px));
 max-height:calc(100dvh - 24px);
 padding:12px;
 overflow:auto;
 box-sizing:border-box;
}
body.qt-desktop-mode #body-content .qt-pos-inv-detail-info {
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:6px 12px;
}
@media(max-width:780px){
 body.qt-desktop-mode #body-content .qt-pos-inv-inputs .qt-pos-inv-field:first-child{
  max-width:none;
 }
 body.qt-desktop-mode #body-content .qt-pos-inv-summary{
  grid-template-columns:repeat(2,minmax(0,1fr));
  max-height:none;
  grid-auto-flow:row;
 }
 body.qt-desktop-mode #body-content .qt-pos-inv-summary .qt-pos-inv-stat{
  grid-column:span 1!important;
 }
 body.qt-desktop-mode #body-content .qt-pos-inv-summary-title{
  grid-column:1/-1;
 }
}


/* POS invoice detail popups: invoices_window.py::InvoiceDetailsDialog
 * (760 min width, 980 max, 520–620 height, 12px margins, 8px gaps)
 * and pos_return_dialog.py::PosReturnDetailsDialog (780x410, 6 columns).
 * Detail figures remain server-authoritative and read-only. */
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-detail {
 box-sizing:border-box;
 width:min(980px,calc(100vw - 24px));
 min-width:min(760px,calc(100vw - 24px));
 height:min(570px,calc(100dvh - 24px));
 min-height:min(360px,calc(100dvh - 24px));
 max-height:calc(100dvh - 24px);
 display:flex;
 flex-direction:column;
 gap:8px;
 padding:12px;
 overflow:auto;
 border:1px solid #d8e1eb;
 border-radius:6px;
 background:#fff;
 direction:rtl;
 color:#244875;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-detail.qt-pos-inv-return-detail {
 width:min(780px,calc(100vw - 24px));
 min-width:0;
 height:min(410px,calc(100dvh - 24px));
 min-height:0;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-detail>h2 {
 font-size:16px;
 font-weight:800;
 color:#244875;
 margin:0;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-detail-info {
 display:grid;
 grid-template-columns:repeat(2,minmax(0,1fr));
 gap:6px 12px;
 background:#f7f9fc;
 border:1px solid #d8e1eb;
 border-radius:7px;
 padding:8px 10px;
 min-height:0;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-detail-info p {
 display:flex;
 justify-content:flex-start;
 align-items:center;
 gap:6px;
 margin:0;
 font-size:11px;
 color:#244875;
 overflow-wrap:anywhere;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-detail-info strong {
 font-size:12px;
 font-weight:750;
 color:#102844;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-items-title {
 margin:0;
 font-size:13px;
 font-weight:800;
 color:#244875;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-scroll {
 min-height:90px;
 flex:1;
 overflow:auto;
 border:1px solid #dae5f2;
 background:#fff;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-table {
 width:100%;
 min-width:640px;
 table-layout:fixed;
 border-collapse:collapse;
 font-size:13px;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-table th {
 background:#244875;
 color:#fff;
 height:38px;
 font-size:13px;
 font-weight:800;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-table td {
 height:40px;
 padding:5px 6px;
 text-align:center;
 border:1px solid #d1d1d6;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-detail:not(.qt-pos-inv-return-detail) .qt-pos-inv-table th:nth-child(2){
 width:165px;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-detail:not(.qt-pos-inv-return-detail) .qt-pos-inv-table th:nth-child(3){
 width:75px;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-detail:not(.qt-pos-inv-return-detail) .qt-pos-inv-table th:nth-child(4){
 width:110px;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-detail:not(.qt-pos-inv-return-detail) .qt-pos-inv-table th:nth-child(5){
 width:125px;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-return-total {
 display:block;
 padding:7px 9px;
 background:#f7f9fc;
 border:1px solid #d8e1eb;
 border-radius:6px;
 color:#244875;
 font-size:13px;
}
body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-detail>.qt-pos-inv-button{
 min-height:35px;
 height:35px;
 width:150px;
 max-width:100%;
 align-self:flex-end;
 background:#b42318;
 border-color:#b42318;
 color:#fff;
}
@media(max-width:700px){
 body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-detail-info {
  grid-template-columns:1fr;
 }
 body.qt-desktop-mode .qt-pos-inv-preview .qt-pos-inv-detail .qt-pos-inv-scroll{
  min-height:140px;
 }
}


/* Additional POS table management Qt shell geometry, from offline
 * modules/pos/views/pos_tables_management_window.py. */
body.qt-desktop-mode #body-content .qt-tables-workspace{box-sizing:border-box;direction:rtl;padding:10px;background:#f9f9f9}
body.qt-desktop-mode #body-content .qt-tables-columns{gap:12px;align-items:stretch}
body.qt-desktop-mode #body-content .qt-tables-list,
body.qt-desktop-mode #body-content .qt-tables-details{
 padding:12px;min-height:420px;border:1px solid #d1d1d6;border-radius:8px;background:white
}
body.qt-desktop-mode #body-content .qt-tables-list>h2{
 margin:0 0 8px;padding:0 0 10px;border-bottom:1px solid #d1d1d6;
 font:800 20px "Segoe UI",Tahoma,Arial,sans-serif;color:#244875
}
body.qt-desktop-mode #body-content .qt-tables-list .qt-rooms-actions{
 display:flex;flex-wrap:wrap;gap:8px;align-items:center
}
body.qt-desktop-mode #body-content .qt-tables-list .qt-rooms-actions .button{
 box-sizing:border-box;min-height:34px;padding:6px 12px;border-radius:5px;
 font:700 12px "Segoe UI",Tahoma,Arial,sans-serif
}
body.qt-desktop-mode #body-content .qt-tables-table{width:100%;min-width:900px;border-collapse:collapse;font-size:12px}
body.qt-desktop-mode #body-content .qt-tables-table th{
 position:sticky;top:0;padding:10px 7px;border:1px solid #d1d1d6;
 background:#244875;color:white;text-align:right
}
body.qt-desktop-mode #body-content .qt-tables-table td{
 box-sizing:border-box;height:40px;padding:7px;border:1px solid #d1d1d6
}
body.qt-desktop-mode #body-content .qt-tables-table tbody tr:nth-child(even){background:#f7f9fc}
body.qt-desktop-mode #body-content .qt-tables-table tbody tr.selected{
 background:#dceafa;outline:2px solid #0071e3;outline-offset:-2px
}
body.qt-desktop-mode #body-content .qt-tables-details>fieldset{
 border:1px solid #d8e1eb;border-radius:8px;padding:12px;margin-bottom:12px
}
body.qt-desktop-mode #body-content .qt-tables-details>fieldset legend{font-weight:800;font-size:13px;color:#244875}
body.qt-desktop-mode .qt-table-modal-overlay .qt-rooms-dialog{
 width:min(480px,calc(100vw - 24px));padding:18px 16px;gap:9px;background:white;border-radius:8px
}
body.qt-desktop-mode .qt-table-modal-overlay .qt-rooms-dialog :is(input,select,textarea){
 box-sizing:border-box;min-width:0;min-height:36px;padding:7px 9px;
 border:1px solid #d8e1eb;border-radius:6px;background:white;color:#102844
}
/* Current main renders the authentic tile with alternative class names.
 * Keep current safe POS keyboard/selection code; align only its presentation. */
body.qt-desktop-mode #body-content .qt-pos-product-tile .qt-pos-product-name{height:22px;flex:0 0 22px}
body.qt-desktop-mode #body-content .qt-pos-product-tile .qt-pos-product-visual{
 flex:0 0 84px;height:84px;min-height:84px;max-height:84px;
 width:min(106px,100%);align-self:center
}
body.qt-desktop-mode #body-content .qt-pos-product-tile .qt-pos-product-barcode{
 display:none!important
}
@media(max-width:850px){
 body.qt-desktop-mode #body-content .qt-tables-columns{grid-template-columns:minmax(0,1fr)}
 body.qt-desktop-mode #body-content .qt-tables-workspace{padding:6px}
}


/* Native Qt POS 2026-11-18: customer suggestion list and immutable receipt.
   Offline: pos_window_ui_mixin.py CustomerSearchLineEdit + QListWidget.
   Only scoped point-of-sale visual rules; no database or money mutations. */
body.qt-desktop-mode #body-content .qt-pos-customer-picker{
 position:relative;isolation:isolate;min-width:0;
}
body.qt-desktop-mode #body-content .qt-pos-customer-picker input[type="search"]{
 min-height:36px;max-height:38px;
 border:1px solid #d8dee8;border-radius:8px;
 padding:0 10px;background:#fff;color:#1e1e1e;
 font:700 13px Arial,Tahoma,sans-serif;
}
body.qt-desktop-mode #body-content .qt-pos-customer-picker input[type="search"]:focus-visible{
 border:2px solid #244875;outline:0;background:#f9f9f9;
}
body.qt-desktop-mode #body-content .qt-pos-customer-suggestions{
 display:flex;flex-direction:column;
 width:100%;max-width:100%;box-sizing:border-box;
 max-height:150px;overflow-y:auto;overscroll-behavior:contain;
 background:#fff;color:#1e1e1e;border:1px solid #244875;
 border-radius:4px;box-shadow:0 8px 16px rgba(16,40,68,.12);
 position:relative;z-index:4;gap:0;padding:0;
}
body.qt-desktop-mode #body-content .qt-pos-customer-suggestions[hidden]{
 display:none!important;
}
body.qt-desktop-mode #body-content .qt-pos-customer-suggestion{
 appearance:none;display:block;flex:0 0 auto;
 width:100%;box-sizing:border-box;text-align:right;
 padding:6px 10px;min-height:32px;border:0;
 border-bottom:1px solid #f1f3f6;background:#fff;color:#1e1e1e;
 font:600 12px Arial,Tahoma,sans-serif;
 cursor:pointer;white-space:normal;overflow-wrap:anywhere;
}
body.qt-desktop-mode #body-content .qt-pos-customer-suggestion:last-child{
 border-bottom:0;
}
body.qt-desktop-mode #body-content .qt-pos-customer-suggestion:hover{
 background:#f5f8fc;color:#244875;
}
body.qt-desktop-mode #body-content .qt-pos-customer-suggestion:focus-visible{
 background:#244875;color:#fff;outline:2px solid #628fbe;
 outline-offset:-2px;
}
body.qt-desktop-mode #body-content .qt-pos-customer-suggestion:disabled{
 opacity:.6;cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-pos-receipt-total{
 font:800 15px Arial,Tahoma,sans-serif;
 color:#244875;background:#eef5fc;
 border:1px solid #c9dae9;border-radius:6px;
 padding:8px 10px;margin:6px 0;text-align:right;
 font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode #body-content .qt-pos-receipt .qt-pos-receipt-meta{
 display:flex;flex-direction:column;align-items:start;gap:2px;
 font-size:12px;line-height:1.45;color:#244875;
}
body.qt-desktop-mode #body-content .qt-pos-receipt .qt-pos-receipt-lines{
 width:100%;border-collapse:collapse;table-layout:fixed;
}
body.qt-desktop-mode #body-content .qt-pos-receipt .qt-pos-receipt-lines td{
 word-break:break-word;overflow-wrap:anywhere;
}
body.qt-desktop-mode #body-content .qt-pos-window [hidden]{
 display:none!important;
}
@media(max-width:650px){
 body.qt-desktop-mode #body-content .qt-pos-customer-suggestions{max-height:140px}
 body.qt-desktop-mode #body-content .qt-pos-customer-suggestion{min-height:38px;padding:9px 11px}
 body.qt-desktop-mode #body-content .qt-pos-receipt-total{font-size:14px}
}
@media print{
 body.qt-print-pos-receipt .qt-pos-receipt-total{
  color:#000!important;background:#fff!important;
  border:0!important;border-bottom:1px dashed #777!important;
  border-radius:0!important;padding:5px 0!important;font-size:12px!important;
 }
 body.qt-print-pos-receipt .qt-pos-customer-suggestions{display:none!important}
}


/* Original Qt StockWindow numbered pages: disabled ellipses are separators,
   not missing actions. Keep the five slots compact at narrow widths. */
body.qt-desktop-mode .qt-native-products .qt-native-stock-page-buttons
 .qt-native-page-ellipsis,
body.qt-desktop-mode .qt-native-products .qt-native-stock-page-buttons
 .qt-native-page-ellipsis:disabled{
 border:none;box-shadow:none;background:#fff;color:#244875;
 opacity:1;cursor:default;pointer-events:none;font-weight:900
}
body.qt-desktop-mode .qt-native-products .qt-native-stock-page-buttons
 .qt-native-page-number:focus-visible{
 outline:2px solid #216aa4;outline-offset:2px
}
@media(max-width:760px){
 body.qt-desktop-mode .qt-native-products .qt-native-stock-page-buttons{
  gap:3px;flex-wrap:nowrap
 }
 body.qt-desktop-mode .qt-native-products .qt-native-stock-page-buttons
  .qt-native-page-number{
  min-width:30px;width:30px;height:34px;min-height:34px;padding:0
 }
}


/* 2026-11-18 POS Qt compact settings wave4 — source: pos_window_ui_mixin.py
   Original settings_group (lines 1968-2115), subtotal bar (lines 2120-2165),
   and action buttons (lines 2167-2207). POS-only: no effect on Master portal.
   Discounts/split are deliberately readonly until transactional DB APIs exist. */
body.qt-desktop-mode #body-content .qt-pos-window{
 --qt-pos-original-ink:#1e1e1e;
 --qt-pos-original-accent:#244875;
 --qt-pos-original-outline:#d1d1d6;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-settings{
 border:1px solid #dbe3ed;background:#fdfefe;
 padding:5px 8px 7px;border-radius:6px;
 display:flex;flex-direction:column;gap:5px;
 box-sizing:border-box;min-width:0;
 margin:5px 0 3px;
}
body.qt-desktop-mode #body-content .qt-pos-native-settings .qt-pos-settings-title{
 color:#244875;font-size:11px;font-weight:800;
 line-height:1.4;padding:0 0 3px;margin:0;
 border-bottom:1px solid #e4eaf1;
}
body.qt-desktop-mode #body-content .qt-pos-discount-grid{
 display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,2fr) auto;
 align-items:end;gap:6px;min-width:0;
}
body.qt-desktop-mode #body-content .qt-pos-discount-grid label{
 display:flex;flex-direction:column;gap:4px;
 color:#1e1e1e;font-size:11px;font-weight:700;
 min-width:0;margin:0;
}
body.qt-desktop-mode #body-content .qt-pos-discount-grid input{
 width:100%;max-width:100%;min-width:0;
 height:29px;min-height:29px;
 border:1px solid #d1d1d6;border-radius:4px;
 background:#fff;color:#1e1e1e;font-size:11px;
 padding:4px 6px;box-sizing:border-box;
}
body.qt-desktop-mode #body-content .qt-pos-discount-grid input:disabled{
 background:#f1f3f6;color:#69788b;
 border-style:dashed;cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-pos-discount-grid input:focus-visible{
 outline:2px solid #244875;outline-offset:1px;
}
body.qt-desktop-mode #body-content .qt-pos-discount-grid .qt-pos-split-disabled{
 border:1px solid #c7d3e0;border-radius:5px;
 min-height:29px;height:29px;min-width:67px;
 padding:3px 7px;background:#e7edf5;
 color:#456787;font-size:11px;font-weight:700;
}
body.qt-desktop-mode #body-content .qt-pos-discount-grid .qt-pos-split-disabled:disabled{
 opacity:.6;cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-pos-unavailable-explanation{
 color:#6a7180;font-size:10px;line-height:1.4;
 padding:0 2px;display:block;
}
body.qt-desktop-mode #body-content .qt-pos-tender-panel{
 grid-column:1/-1;padding:0;margin:0;
 min-width:0;max-width:100%;
}
body.qt-desktop-mode #body-content .qt-pos-tender-hint{
 display:block;font-size:11px;font-weight:600;
 line-height:1.45;color:#2b5875;
 padding:6px 9px;border:1px solid #c8d8e8;
 background:#eff6fc;border-radius:5px;
}
body.qt-desktop-mode #body-content .qt-pos-tender-hint[hidden]{
 display:none!important;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form{
 display:flex;flex-direction:column;gap:5px;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form>.form-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
 align-items:end;gap:6px 9px;margin:4px 0;
 min-width:0;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form>.form-grid>label{
 color:#1e1e1e;display:flex;flex-direction:column;
 gap:4px;font-size:11px;font-weight:700;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form>.form-grid input,
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form>.form-grid select{
 min-width:0;min-height:29px;
 border-radius:4px;border:1px solid #d1d1d6;
 font:12px Arial,Tahoma,sans-serif;
 padding:5px 7px;box-sizing:border-box;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form>.form-grid input:focus-visible,
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form>.form-grid select:focus-visible{
 outline:2px solid #244875;outline-offset:0;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form>.form-grid textarea{
 min-height:38px;max-height:72px;
 resize:vertical;border:1px solid #d1d1d6;
 border-radius:4px;padding:6px 9px;
 font-size:12px;line-height:1.4;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form>.form-grid textarea:disabled{
 background:#f3f5f8;color:#708095;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form .qt-pos-actions{
 display:flex;align-items:stretch;gap:8px;
 margin:2px 0 0;padding:6px 4px 8px;
 border-top:1px solid #dfe7f0;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form .qt-pos-actions .button,
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form .qt-pos-actions .qt-pos-tool{
 min-height:44px;font-size:12px;font-weight:750;
 border-radius:7px;box-sizing:border-box;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form .qt-pos-actions .button.primary{
 flex:1 1 120px;min-width:110px;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form .qt-pos-actions button:disabled{
 opacity:.55;cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-line-register{
 min-width:0;overflow-x:auto;max-width:100%;
 border-color:#d1d1d6;border-radius:4px;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-line-register .invoice-item{
 gap:4px;min-height:39px;align-items:center;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-line-register .qt-pos-line-total{
 color:#244875;font-size:12px;font-weight:750;
 font-variant-numeric:tabular-nums;
 text-align:center;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-line-register .qt-pos-line-remove{
 min-height:31px;border:1px solid #cdd8e5;
 border-radius:5px;background:#eef3f8;
 font-size:11px;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-line-register .qt-pos-quantity-button{
 border-radius:4px;background:#eff3f9;
 min-height:32px;height:32px;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-line-register input[data-qty]{
 text-align:center;font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-line-register input[data-price]{
 text-align:center;font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-line-register input:read-only{
 background:#f4f7fb;color:#244875;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-total{
 background:#244875;color:#fff;border-radius:6px;
 min-height:40px;font-size:15px;font-weight:800;
 padding:7px 12px;box-sizing:border-box;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-total:focus-visible{
 outline:2px solid #608bbb;outline-offset:2px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-cart-stats{
 color:#244875;font-size:11px;line-height:1.4;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-cash-preview{
 font-size:11px;line-height:1.4;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-cash-preview[hidden]{
 display:none!important;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-posting-status{
 font-size:11px;line-height:1.5;border-radius:5px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-posting-status[hidden]{
 display:none!important;
}
@media(max-width:1200px){
 body.qt-desktop-mode #body-content .qt-pos-discount-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body.qt-desktop-mode #body-content .qt-pos-discount-grid .qt-pos-split-disabled{
  align-self:end;
 }
}
@media(max-width:900px){
 body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form>.form-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body.qt-desktop-mode #body-content .qt-pos-discount-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
}
@media(max-width:560px){
 body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form>.form-grid{
  grid-template-columns:minmax(0,1fr);gap:6px;
 }
 body.qt-desktop-mode #body-content .qt-pos-discount-grid{
  grid-template-columns:minmax(0,1fr);gap:5px;
 }
 body.qt-desktop-mode #body-content .qt-pos-discount-grid .qt-pos-split-disabled{
  width:100%;
 }
 body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form .qt-pos-actions{
  flex-direction:column;
 }
 body.qt-desktop-mode #body-content .qt-pos-cart .qt-pos-form .qt-pos-actions .button.primary{
  flex:1 1 auto;min-height:44px;
 }
}
@media print{
 body.qt-print-pos-receipt .qt-pos-native-settings{display:none!important}
 body.qt-print-pos-receipt .qt-pos-tender-panel{display:none!important}
}


/* 2026-11-18 Qt POS wave 5 — source-verified native top payment/order bar,
   tool+pricing row and category strip; only the authenticated cash and
   cash+credit workflows are actionable. Offline POS reference:
   pos_window_ui_mixin.py init_ui(), _sync_order_mode_buttons(). */
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-top-row{
 display:flex;flex-wrap:nowrap;align-items:center;justify-content:flex-start;
 min-height:44px;max-height:none;width:100%;min-width:0;
 gap:7px;padding:3px 5px;box-sizing:border-box;
 border:1px solid #d8e1eb;border-radius:8px;background:#f7f9fc;
 direction:rtl;margin:2px 0 5px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-switch{
 display:inline-flex;align-items:center;justify-content:center;
 flex:0 0 auto;gap:5px;height:40px;min-width:205px;
 padding:3px 7px;box-sizing:border-box;
 border:1px solid #d8e1eb;border-radius:8px;background:#f7f9fc;
 direction:rtl;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-title{
 flex:0 0 auto;display:flex;align-items:center;
 color:#102844;font:800 12px Arial,Tahoma,sans-serif;
 white-space:nowrap;padding:0 4px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-choice{
 appearance:none;min-height:30px;height:30px;
 min-width:65px;max-width:115px;
 border:1px solid #d1d1d6;border-radius:7px;
 background:#fff;color:#102844;font:750 11px Arial,Tahoma,sans-serif;
 padding:3px 8px;white-space:nowrap;
 cursor:pointer;transition:background-color .1s ease,border-color .1s ease;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-choice:hover:not(:disabled){
 border-color:#244875;background:#e8f0f7;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-choice.is-active,
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-choice[aria-pressed="true"]{
 border-color:#061f3e;background:#06224a;color:white;
 box-shadow:0 1px 2px rgba(6,34,74,.14);
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-choice.is-active:hover:not(:disabled){
 background:#244875;color:#fff;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-choice:focus-visible{
 outline:2px solid #608bbb;outline-offset:2px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-choice:disabled{
 cursor:not-allowed;opacity:.58;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-choice[aria-pressed="false"]{
 font-weight:650;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-top-row>.qt-pos-order-modes{
 flex:1 1 auto;min-width:0;min-height:38px;
 margin:0;padding:2px 4px;box-sizing:border-box;
 border:1px solid #d8e1eb;border-radius:8px;
 background:#f7f9fc;display:flex;align-items:center;justify-content:flex-start;
 gap:4px;direction:rtl;flex-wrap:nowrap;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-top-row .qt-pos-order-label{
 flex:0 0 auto;display:flex;align-items:center;
 min-width:64px;min-height:28px;
 justify-content:center;color:#102844;
 font:800 12px Arial,Tahoma,sans-serif;
 white-space:nowrap;padding:0 5px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-order-modes .qt-pos-tool{
 flex:0 0 auto;min-width:68px;min-height:32px;height:32px;
 margin:0;padding:4px 7px;
 border:1px solid #d1d1d6;border-radius:8px;
 background:#fff;color:#102844;
 font:750 12px Arial,Tahoma,sans-serif;
 cursor:pointer;white-space:nowrap;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-order-modes .qt-pos-tool[aria-pressed="true"],
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-order-modes .qt-pos-order-selected{
 background:#06224a;border-color:#061f3e;
 color:#fff;opacity:1;cursor:pointer;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-order-modes .qt-pos-tool[disabled]{
 border-color:#d8e1eb;background:#f1f3f6;
 color:#7e8794;opacity:.6;cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-order-modes .qt-pos-order-selected:hover{
 background:#244875;color:#fff;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-order-modes .qt-pos-order-selected:focus-visible{
 outline:2px solid #608bbb;outline-offset:2px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-tool-row{
 display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;
 width:100%;min-width:0;min-height:54px;
 padding:5px 8px;gap:8px;
 box-sizing:border-box;background:#f7f9fc;
 border:1px solid #d8e1eb;border-radius:8px;
 margin:0 0 5px;direction:rtl;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-tool-row .qt-pos-tools{
 display:flex;flex-wrap:wrap;gap:4px;
 align-items:center;justify-content:flex-start;
 width:auto;min-width:0;margin:0;padding:0;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-tool-row .qt-pos-tool{
 font:700 11px Arial,Tahoma,sans-serif;
 min-width:67px;min-height:34px;
 border:1px solid #c7d4e3;border-radius:8px;
 background:#fff;color:#244875;
 padding:4px 8px;white-space:nowrap;cursor:pointer;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-tool-row .qt-pos-tool:hover:not(:disabled){
 border-color:#244875;background:#e8f0f7;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-tool-row .qt-pos-tool:focus-visible{
 outline:2px solid #608bbb;outline-offset:1px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-tool-row .qt-pos-tool:disabled{
 color:#76879a;background:#f0f3f6;opacity:.6;
 cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-pricing-policy{
 display:inline-flex;flex-direction:row;align-items:center;
 justify-content:center;gap:5px;flex:0 0 auto;
 font:750 11px Arial,Tahoma,sans-serif;
 color:#244875;min-height:34px;white-space:nowrap;
 margin:0;padding:0;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-pricing-policy-select{
 width:148px;max-width:148px;min-width:0;
 height:33px;min-height:33px;
 border:1px solid #d1d1d6;border-radius:8px;
 background:#f6f8fc;color:#476584;
 font:700 11px Arial,Tahoma,sans-serif;
 padding:4px 7px;box-sizing:border-box;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-pricing-policy-select:disabled{
 cursor:not-allowed;opacity:.72;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-frame{
 display:flex;flex-direction:row;justify-content:flex-start;
 align-items:center;gap:8px;width:100%;
 min-height:46px;max-height:46px;box-sizing:border-box;
 border:1px solid #d8e1eb;border-radius:8px;
 background:#f7f9fc;
 padding:4px 6px;margin:0 0 4px;
 overflow-x:auto;overflow-y:hidden;
 direction:rtl;
 scrollbar-width:thin;scrollbar-color:#bdbdbd #f0f0f0;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-frame::-webkit-scrollbar{
 height:6px;background:#f0f0f0;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-frame::-webkit-scrollbar-thumb{
 background:#bdbdbd;border-radius:3px;min-width:30px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-pill{
 appearance:none;flex:0 0 auto;
 min-width:58px;min-height:32px;max-height:32px;
 border:1px solid #d1d1d6;border-radius:8px;
 background:#fff;color:#102844;
 padding:0 16px;
 font:750 13px Arial,Tahoma,sans-serif;
 cursor:pointer;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-pill:hover:not(:disabled){
 background:#e8f0f7;border-color:#244875;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-pill.is-active,
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-pill[aria-pressed="true"]{
 background:#06224a;color:#fff;border-color:#061f3e;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-pill.is-active:hover:not(:disabled){
 background:#244875;color:#fff;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-pill:focus-visible{
 outline:2px solid #608bbb;outline-offset:2px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-pill:disabled{
 opacity:.55;cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-context{
 flex:0 1 auto;white-space:nowrap;
 color:#506985;font:650 11px Arial,Tahoma,sans-serif;
 text-overflow:ellipsis;overflow:hidden;max-width:240px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-catalog-heading{
 margin:3px 0 4px;font-size:12px;line-height:1.5;
 color:#244875;font-weight:800;
 border-bottom:1px solid #e2e9f1;padding:2px 7px 4px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-products-grid{
 display:grid;align-content:start;
 grid-template-columns:repeat(auto-fill,minmax(135px,1fr));
 gap:6px;min-height:120px;
 padding:4px;scrollbar-width:thin;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-product-tile{
 min-width:0;min-height:156px;
 border-radius:11px;outline-offset:2px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-product-tile:focus-visible{
 outline:3px solid #5d8abd;outline-offset:2px;
 box-shadow:0 0 0 1px #fff inset;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-product-tile[disabled]{
 cursor:not-allowed;opacity:.66;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-product-name{
 max-width:100%;overflow:hidden;text-overflow:ellipsis;
 white-space:nowrap;color:#102844;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-product-price{
 font-variant-numeric:tabular-nums;
 background:#06224a;color:#fff;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-product-price:empty{
 display:none!important;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-product-barcode{
 unicode-bidi:plaintext;direction:ltr;
 text-align:center;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-catalog-pager{
 border-top:1px solid #d8e1eb;min-height:40px;
 display:flex;align-items:center;justify-content:center;
 flex-wrap:wrap;gap:6px;
 background:#fafdff;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-catalog-pager button{
 min-height:30px;border-radius:6px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-catalog-pager button:focus-visible{
 outline:2px solid #608bbb;outline-offset:1px;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-catalog-status{
 color:#244875;font:700 11px Arial,Tahoma,sans-serif;
 font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-shortcuts-help{
 display:block;min-height:22px;
 color:#738398;font:600 10px Arial,Tahoma,sans-serif;
 text-align:center;white-space:normal;
 padding:4px 6px 0;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-catalog[inert] .qt-pos-shortcuts-help{
 opacity:.5;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-catalog[inert] .qt-pos-category-frame{
 opacity:.55;pointer-events:none;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-catalog[inert] .qt-pos-payment-switch{
 opacity:.6;pointer-events:none;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-catalog[inert] .qt-pos-order-modes{
 opacity:.6;pointer-events:none;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-top-row button:disabled{
 cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-tool-row [aria-disabled="true"]{
 cursor:not-allowed;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-switch[data-payment-mode="partial"]{
 border-color:#bed2e7;
 background:#f0f6fc;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-switch[data-payment-mode="full"]{
 border-color:#d8e1eb;
 background:#f7f9fc;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-switch .qt-pos-payment-choice[aria-pressed="true"]{
 font-weight:800;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-switch .qt-pos-payment-choice[aria-pressed="false"]:focus-visible{
 border-color:#244875;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-frame button{
 touch-action:manipulation;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-product-tile{
 touch-action:manipulation;
}
body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-tools button{
 touch-action:manipulation;
}
@media(max-width:1280px){
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-top-row{
  flex-wrap:wrap;min-height:44px;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-top-row>.qt-pos-order-modes{
  min-width:300px;flex:1 1 300px;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-tool-row{
  justify-content:flex-start;gap:6px;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-pricing-policy{
  flex:0 0 auto;
 }
}
@media(max-width:900px){
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-top-row{
  align-items:stretch;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-switch{
  flex:1 1 210px;min-width:0;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-top-row>.qt-pos-order-modes{
  flex:1 1 270px;min-width:0;flex-wrap:wrap;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-tool-row .qt-pos-tools{
  width:auto;max-width:100%;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-frame{
  min-height:43px;max-height:43px;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-products-grid{
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
 }
}
@media(max-width:580px){
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-top-row{
  flex-direction:column;align-items:stretch;gap:5px;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-switch{
  width:100%;height:auto;min-height:36px;
  justify-content:flex-start;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-top-row>.qt-pos-order-modes{
  min-width:0;flex:1 1 auto;width:100%;justify-content:flex-start;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-order-modes .qt-pos-tool{
  min-width:52px;padding:4px 5px;font-size:10px;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-tool-row{
  padding:5px;gap:5px;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-tool-row .qt-pos-tools{
  gap:4px;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-native-tool-row .qt-pos-tool{
  min-height:34px;min-width:57px;font-size:10px;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-pricing-policy{
  width:100%;justify-content:flex-start;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-pricing-policy-select{
  max-width:175px;width:175px;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-frame{
  min-height:43px;max-height:43px;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-category-context{
  max-width:150px;font-size:10px;
 }
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-shortcuts-help{
  font-size:9px;
 }
}
@media print{
 body.qt-print-pos-receipt .qt-pos-native-top-row,
 body.qt-print-pos-receipt .qt-pos-native-tool-row,
 body.qt-print-pos-receipt .qt-pos-category-frame,
 body.qt-print-pos-receipt .qt-pos-shortcuts-help{
  display:none!important;
 }
}
@media(prefers-reduced-motion:reduce){
 body.qt-desktop-mode #body-content .qt-pos-window .qt-pos-payment-choice{
  transition:none;
 }
}

/* Native sales_reports.py Excel (.xlsx) and five-value print summary parity. */
.qt-sales-report-print-summary{grid-template-columns:repeat(5,minmax(0,1fr));max-width:1100px}
.qt-sales-report-print-metric{min-height:65px;justify-content:center}
.qt-sales-report-print-metric:nth-child(4){background:#fff5f5;border-color:#eac6c6}
.qt-sales-report-print-metric:nth-child(5){background:#f0f6ff;border-color:#c8d9ef}
.qt-sales-report-print-metric strong{font-variant-numeric:tabular-nums}
.qt-sales-reports-dialog .qt-sales-reference-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}
.qt-sales-reports-dialog .qt-sales-reference-actions .qt-invoice-button{flex:none;min-height:36px}
@media(max-width:760px){.qt-sales-report-print-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}}
@media(max-width:490px){.qt-sales-report-print-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}}
@media print{
 body.qt-sales-report-print-mode .qt-sales-report-print-summary{
  grid-template-columns:repeat(5,minmax(0,1fr));max-width:none
 }
 body.qt-sales-report-print-mode .qt-sales-report-print-metric strong{font-size:12px}
}

/* Batch 4 & Visual Desktop Qt Parity: Header cluster, Sidebar home, POS Cart width, Batch 3 Native tables & details */
body.qt-desktop-mode .sidebar>.qt-sidebar-title{
 width:100%;margin:0;padding:12px 10px;border:0;border-bottom:1px solid rgba(255,255,255,.16);
 background:#244875;color:#fff;font-size:17px;font-weight:800;text-align:center;cursor:pointer
}
body.qt-desktop-mode .sidebar>.qt-sidebar-title:hover{background:#1a3a5c}
body.qt-desktop-mode .sidebar>.qt-sidebar-title.is-active{background:#eaf1f9;color:#173b66}
body.qt-desktop-mode .header{justify-content:flex-start}
.qt-header-tools{
 margin-inline-start:auto;display:flex;align-items:center;gap:10px;flex-wrap:nowrap;min-width:0
}
body.qt-desktop-mode .qt-header-tools .qt-branch-switcher{
 min-height:34px!important;height:34px;padding:0 10px!important;margin:0;
 font-size:12px!important;font-weight:700;background:#f8fafc;color:#173b66;
 border:1px solid #b8ccdf;border-radius:6px;max-width:210px
}
body.qt-desktop-mode .qt-window-bar{
 flex:0 0 26px;height:26px;min-height:26px;font-size:11px;background:#f4f7fb;border-color:#d5e0ec
}
body.qt-desktop-mode .qt-window-close{width:34px;height:25px;min-height:25px;font-size:15px}
.qt-notifications-btn{
 position:relative;display:none;align-items:center;justify-content:center;
 min-width:36px;width:36px;height:36px;padding:0;border:1px solid #b8ccdf;border-radius:6px;
 background:#fff;color:#244875;font-size:15px;cursor:pointer;flex:0 0 36px
}
body.qt-desktop-mode .qt-notifications-btn:not(.hidden){display:inline-flex}
.qt-notifications-btn:hover{background:#e8f0f7;border-color:#244875}
.qt-notifications-badge{
 position:absolute;top:-5px;inset-inline-start:-5px;min-width:18px;height:18px;
 padding:0 4px;border-radius:9px;background:#FF3B30;color:#fff;
 font:700 10px/18px "Segoe UI",Tahoma,sans-serif;text-align:center
}
/* Desktop Qt POS cart alignment: prevent clipping of columns or invoice-number label */
@media (min-width:1101px){
 body.qt-desktop-mode #body-content .qt-pos-workspace{
  grid-template-columns:minmax(0,1fr) minmax(420px,445px)
 }
 body.qt-desktop-mode #body-content .qt-pos-cart{
  min-width:420px;max-width:445px
 }
}
body.qt-desktop-mode #body-content .qt-pos-cart>.qt-pos-form>.qt-pos-cart-header{
 background:#061f3e;color:#fff;padding:5px 8px;gap:8px
}
body.qt-desktop-mode #body-content .qt-pos-cart-header label{
 color:#fff!important;flex-direction:row!important;align-items:center;gap:6px;white-space:nowrap
}
body.qt-desktop-mode #body-content .qt-pos-line-register .qt-pos-line-head,
body.qt-desktop-mode #body-content .qt-pos-line-register .invoice-item{
 grid-template-columns:minmax(108px,1.4fr) 50px 84px 52px 44px 26px;
 min-width:386px
}
/* Batch 3 Native Qt tables, pills, filter grid & deletion monitor inspector */
body.qt-desktop-mode .qt-native-table{
 width:100%;border-collapse:collapse;background:#fff;border:1px solid #d5e0eb;font-size:12px
}
body.qt-desktop-mode .qt-native-table th{
 background:#244875;color:#fff;font-weight:700;padding:8px 7px;text-align:center;
 border-bottom:1px solid #1b385d;white-space:nowrap
}
body.qt-desktop-mode .qt-native-table td{
 padding:7px 7px;border-bottom:1px solid #e6edf5;color:#173b66;text-align:center;vertical-align:middle
}
body.qt-desktop-mode .qt-native-table tbody tr:nth-child(even){background:#f8fbff}
body.qt-desktop-mode .qt-native-table tbody tr:hover{background:#edf4fc}
body.qt-desktop-mode .qt-native-table tbody tr.active{background:#dceafe}
.qt-row-actions{display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:nowrap;white-space:nowrap}
body.qt-desktop-mode .qt-row-actions .qt-native-action{
 height:28px;min-height:28px;padding:3px 9px;font-size:11px;border-radius:4px
}
.qt-badge-pill{
 display:inline-block;padding:2px 8px;border-radius:999px;font-size:11px;font-weight:700;white-space:nowrap
}
.qt-badge-pill.is-green{background:#e7f6ed;color:#117a41}
.qt-badge-pill.is-amber{background:#fff4e0;color:#9b6200}
.qt-badge-pill.is-red{background:#fdeceb;color:#b22720}
.qt-badge-pill.is-muted{background:#eef2f6;color:#52657d}
.qt-dm-filter-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;
 background:#fff;border:1px solid #d5e0eb;border-radius:7px;padding:8px 10px
}
.qt-dm-filter-grid>label.qt-native-field{
 display:flex;flex-direction:row!important;align-items:center;gap:6px;margin:0;
 font-size:12px;font-weight:700;color:#244875;white-space:nowrap
}
body.qt-desktop-mode .qt-native-summary-card strong{
 white-space:nowrap;font-size:clamp(14px,1.4vw,18px)
}
.qt-dm-filter-grid input,.qt-dm-filter-grid select{
 flex:1 1 auto;min-width:0;height:32px;min-height:32px;padding:4px 8px;
 border:1px solid #b9c8dc;border-radius:4px;background:#fff;color:#173b66;font-size:12px
}
@media(max-width:780px){.qt-dm-filter-grid{grid-template-columns:1fr}}
.qt-dm-details-panel{
 background:#fff;border:1px solid #d5e0eb;border-radius:6px;padding:8px 10px;
 display:flex;flex-direction:column;gap:6px
}
.qt-dm-details-title{font-size:12px;font-weight:800;color:#173b66}
.qt-dm-details-body{
 margin:0;padding:8px 10px;min-height:95px;max-height:175px;overflow:auto;
 background:#fbfdff;border:1px solid #d8e2ef;border-radius:4px;
 font:12px/1.55 "Segoe UI",Tahoma,Arial,sans-serif;color:#0d2a4a;white-space:pre-wrap;direction:rtl;text-align:right
}
.qt-dm-details-body.is-json{
 font-family:Consolas,"Courier New",monospace;direction:ltr;text-align:left
}
.qt-topbar-dialog{
 border:1px solid #c7d5e5;border-radius:12px;padding:0;max-width:740px;width:min(94vw,740px);
 background:#f4f7fb;color:#0f2440;box-shadow:0 20px 50px rgba(15,36,64,.22)
}
.qt-topbar-dialog:not(.is-wide){max-width:520px;width:min(94vw,520px)}
.qt-topbar-dialog::backdrop{background:rgba(15,36,64,.45)}
.qt-topbar-dialog-card{display:flex;flex-direction:column;gap:12px;padding:16px 18px}
.qt-topbar-dialog-head{
 display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
 padding-bottom:10px;border-bottom:1px solid #d7e2ef
}
.qt-topbar-dialog-titlebox h3{margin:0;color:#17345c;font-size:17px;font-weight:800}
.qt-topbar-dialog-sub{margin:3px 0 0;color:#52657d;font-size:12px}
.qt-topbar-dialog-x{
 width:30px;height:30px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;
 color:#334155;font-size:18px;line-height:1;cursor:pointer
}
.qt-topbar-dialog-x:hover{background:#fee2e2;color:#991b1b;border-color:#fca5a5}
.qt-topbar-dialog-body{display:flex;flex-direction:column;gap:12px;max-height:68vh;overflow:auto}
.qt-topbar-dialog-foot{display:flex;justify-content:flex-end;gap:8px;padding-top:8px;border-top:1px solid #d7e2ef}
.qt-contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media(max-width:620px){.qt-contact-grid{grid-template-columns:1fr}}
.qt-contact-card{
 background:#fff;border:1px solid #d6e0ec;border-radius:10px;padding:12px;
 display:flex;flex-direction:column;justify-content:space-between;gap:10px
}
.qt-contact-card-top{display:flex;align-items:flex-start;gap:10px}
.qt-contact-badge{
 width:38px;height:38px;border-radius:10px;display:inline-flex;align-items:center;
 justify-content:center;font:800 12px "Segoe UI",Tahoma,sans-serif;flex:0 0 38px;color:#fff;background:#244875
}
.qt-contact-card.is-sa .qt-contact-badge{background:#d97706}
.qt-contact-card.is-eg .qt-contact-badge{background:#0f766e}
.qt-contact-card.is-wa .qt-contact-badge{background:#128c4a}
.qt-contact-card.is-fb .qt-contact-badge{background:#1769d2}
.qt-contact-info strong{display:block;font-size:14px;color:#17345c}
.qt-contact-val{font-size:13px;font-weight:700;color:#0f2440;direction:ltr;unicode-bidi:plaintext;margin:2px 0}
.qt-contact-info small{color:#64748b;font-size:11px}
.qt-contact-btn{width:100%}
.qt-contact-diag{
 background:#fff;border:1px solid #d6e0ec;border-radius:10px;padding:10px 12px;
 display:flex;flex-direction:column;gap:8px
}
.qt-contact-diag-title{font-size:12px;color:#17345c}
.qt-contact-diag-pills{display:flex;flex-wrap:wrap;gap:6px}
.qt-contact-diag-pill{
 background:#edf2f8;color:#1e3a5f;border-radius:6px;padding:4px 8px;font-size:11px;font-weight:600
}
.qt-wa-note{
 background:#eef5fc;border:1px solid #c5daf0;border-radius:8px;padding:10px 12px;
 color:#17345c;font-size:12px;line-height:1.55
}
.qt-wa-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.qt-wa-field{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:700;color:#17345c}
.qt-wa-field.is-full{grid-column:1/-1}
.qt-wa-field input,.qt-wa-field select{
 min-height:36px;padding:6px 10px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;font-size:13px
}
.qt-wa-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
@media(max-width:620px){.qt-wa-grid{grid-template-columns:1fr}}
