/*
 * Hesaby AccountsWindow (PySide6) visual parity layer, 2026-11-17.
 * Source: ERPSYSTEM/modules/accounts/views/{accounts_window,
 * journal_entries_window,chart_of_accounts_window}.py in latest offline RAR.
 * Scoped to the accounting workspace; no data, roles or RPC changes.
 */
body.qt-desktop-mode .qt-accounts-workspace{
 --account-ink:#173b66;--account-header:#102844;--account-accent:#1d568d;
 --account-border:#d8e3ee;--account-muted:#7d8fa5;--account-paper:#fff;
 display:flex;flex-direction:column;flex:1;min-height:0;min-width:0;
 gap:10px;padding:12px 14px 10px;background:#f7f9fc;color:var(--account-ink);
 direction:rtl;font-family:'Noto Kufi Arabic','Segoe UI',Tahoma,Arial,sans-serif;
}
body.qt-desktop-mode .qt-accounts-workspace *{box-sizing:border-box}
body.qt-desktop-mode .qt-accounts-primary-tabs{
 display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px;
 flex:0 0 auto;align-items:center;min-height:68px;padding:8px 10px;
 border:1px solid var(--account-border);border-radius:11px;background:var(--account-paper);
}
body.qt-desktop-mode .qt-accounts-primary-tabs .qt-native-action{
 min-width:0!important;min-height:46px!important;height:46px!important;
 border:1px solid var(--account-border);border-radius:9px;
 padding:0 8px;font-size:13px;font-weight:800;white-space:normal;line-height:1.4;
 background:#fff;color:var(--account-ink);box-shadow:none;
}
body.qt-desktop-mode .qt-accounts-primary-tabs .qt-native-action.active{
 background:var(--account-accent);border-color:var(--account-accent);color:#fff;font-weight:900
}
body.qt-desktop-mode .qt-accounts-primary-tabs .qt-native-action:not(.active):hover{
 background:#f3f7fb;border-color:#8aaac8;color:#0f3d6a
}
body.qt-desktop-mode .qt-accounts-primary-tabs .qt-native-action:focus-visible,
body.qt-desktop-mode .qt-accounts-more summary:focus-visible{
 outline:2px solid #1d568d;outline-offset:2px;
}
body.qt-desktop-mode .qt-accounts-more{
 flex:0 0 auto;min-width:0;background:#fff;border:1px solid var(--account-border);
 border-radius:9px;color:var(--account-ink);
}
body.qt-desktop-mode .qt-accounts-more>summary{
 cursor:pointer;font-size:12px;font-weight:800;padding:8px 13px;
 list-style-position:inside;user-select:none;
}
body.qt-desktop-mode .qt-accounts-more[open]>summary{border-bottom:1px solid var(--account-border)}
body.qt-desktop-mode .qt-accounts-more .qt-native-tabs{
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;
 padding:9px;border:0;min-height:0;align-items:stretch;background:transparent;
}
body.qt-desktop-mode .qt-accounts-more .qt-native-tabs .qt-native-action{
 background:#fff;color:var(--account-ink);border:1px solid var(--account-border);
 border-radius:7px;min-height:36px;height:auto;padding:7px 8px;white-space:normal;
 font-size:11px;line-height:1.45;font-weight:800;
}
body.qt-desktop-mode .qt-accounts-more .qt-native-tabs .qt-native-action.active{
 background:var(--account-accent);color:#fff;border-color:var(--account-accent);
}
body.qt-desktop-mode .qt-accounts-window-content{
 display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;overflow:auto;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-module,
body.qt-desktop-mode .qt-accounts-workspace .qt-accounts-operation{
 flex:1;min-height:0;min-width:0;gap:8px;direction:rtl;
 font-family:'Noto Kufi Arabic','Segoe UI',Tahoma,Arial,sans-serif;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-content{min-width:0}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-module>h2,
body.qt-desktop-mode .qt-accounts-workspace .qt-accounts-operation>h2{
 font-size:20px;font-weight:900;line-height:1.5;color:var(--account-header);
 margin:0;padding:5px 3px;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-filters,
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts>.qt-native-content:first-child{
 background:#fff;border:1px solid var(--account-border);border-radius:9px;
 padding:8px 12px;gap:7px;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-command-row{
 direction:rtl;justify-content:flex-start;gap:6px;flex-wrap:wrap;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-action{
 min-height:34px;height:34px;border-radius:6px;
 font-family:'Noto Kufi Arabic','Segoe UI',Tahoma,Arial,sans-serif;
 font-size:12px;font-weight:800;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-action.primary{
 background:#1d568d;border-color:#1d568d;color:#fff;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-action.secondary{
 background:#fff;border-color:var(--account-border);color:var(--account-ink);
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-filters input,
body.qt-desktop-mode .qt-accounts-workspace .qt-native-filters select{
 min-height:34px;height:34px;border:1px solid #cbd9e7;border-radius:6px;
 background:#fff;color:var(--account-ink);font-size:12px;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-filters input[type=search],
body.qt-desktop-mode .qt-accounts-workspace .qt-native-filters input[aria-label="البحث"]{
 min-width:260px;max-width:420px;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-table-scroll{
 background:#fff;border:1px solid var(--account-border);border-radius:8px;
 overflow:auto;min-height:120px;max-width:100%;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-table{
 border-collapse:collapse;font-size:12px;text-align:center;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-table thead th,
body.qt-desktop-mode .qt-accounts-workspace .qt-native-table tr:first-child th{
 position:sticky;top:0;z-index:1;min-height:34px;height:34px;padding:6px 9px;
 background:#f1f5fa;color:#173b66;border:1px solid #d8e3ee;
 font-weight:900;font-size:11px;text-align:center;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-table tbody td{
 height:30px;padding:5px 8px;color:var(--account-ink);border:1px solid #e8eef5;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-table tbody tr:nth-child(even){
 background:#f8fafc;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-table tbody tr.selected td{
 background:#eaf2f8;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-pagination{
 flex:0 0 auto;direction:rtl;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts .qt-native-table th:nth-child(1),
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts .qt-native-table td:nth-child(1){min-width:118px}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts .qt-native-table th:nth-child(2),
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts .qt-native-table td:nth-child(2){min-width:105px}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts .qt-native-table th:nth-child(3),
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts .qt-native-table td:nth-child(3){min-width:105px}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts .qt-native-table th:nth-child(4),
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts .qt-native-table td:nth-child(4){
 min-width:280px;text-align:right;white-space:normal;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts .qt-native-table th:nth-child(5),
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts .qt-native-table th:nth-child(6){min-width:110px}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts .qt-native-table th:nth-child(7){min-width:90px}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts .qt-native-table th:nth-child(8){min-width:140px}
body.qt-desktop-mode .qt-accounts-workspace .qt-native-accounts .qt-native-table th:nth-child(9){min-width:110px}
/* Dashboard: 14/12/14/10 margins, 84px status panel, 128px KPI cards from AccountsWindow. */
body.qt-desktop-mode .qt-accounts-dashboard-header{
 display:flex;align-items:center;justify-content:space-between;gap:16px;
 padding:0 0 4px;min-height:84px;direction:rtl;
}
body.qt-desktop-mode .qt-accounts-dashboard-heading h1{
 margin:0;color:#102844;font-size:29px;line-height:1.5;font-weight:900;
}
body.qt-desktop-mode .qt-accounts-dashboard-heading p{
 margin:0;color:#7d8fa5;font-size:12px;font-weight:700;
}
body.qt-desktop-mode .qt-accounts-today{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));min-height:84px;
 min-width:min(560px,58%);border:1px solid var(--account-border);
 border-radius:11px;background:#fff;padding:10px 18px;gap:18px;
}
body.qt-desktop-mode .qt-accounts-today>div{
 display:flex;flex-direction:column;text-align:center;justify-content:center;gap:1px;
}
body.qt-desktop-mode .qt-accounts-today>div+div{
 border-inline-start:1px solid #e4ebf2;
}
body.qt-desktop-mode .qt-accounts-today span{font-size:11px;font-weight:800;color:#60758f}
body.qt-desktop-mode .qt-accounts-today strong{
 font-size:20px;font-weight:900;color:#174f86;font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode .qt-accounts-today small{font-size:10px;font-weight:700;color:#9aa8b8}
body.qt-desktop-mode .qt-accounts-dashboard>.qt-native-command-row{
 background:#fff;border:1px solid var(--account-border);border-radius:9px;padding:8px 10px;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-accounts-summary-grid{gap:10px;margin:0}
body.qt-desktop-mode .qt-accounts-workspace .qt-accounts-summary-card{
 min-height:128px;background:#fff;border:1px solid var(--account-border);
 border-radius:11px;gap:6px;padding:16px;box-shadow:none;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-accounts-summary-card p{
 color:#173b66;font-size:14px;font-weight:900;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-accounts-summary-card strong{
 color:#174f86;font-size:30px;font-weight:900;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-accounts-summary-card small{
 color:#7d8fa5;font-size:11px;font-weight:700;
}
body.qt-desktop-mode .qt-accounts-analytics-grid{
 display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:10px;
}
body.qt-desktop-mode .qt-accounts-analytics-panel,
body.qt-desktop-mode .qt-accounts-quick-panel{
 background:#fff;border:1px solid var(--account-border);border-radius:11px;
 padding:14px;min-width:0;
}
body.qt-desktop-mode .qt-accounts-analytics-panel h3,
body.qt-desktop-mode .qt-accounts-quick-panel h3{
 margin:0 0 10px;color:#173b66;font-size:15px;font-weight:900;
}
body.qt-desktop-mode .qt-accounts-quick-links{
 display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;
}
body.qt-desktop-mode .qt-accounts-quick-links .qt-native-action{
 min-height:44px;height:auto;background:#fff;color:#173b66;
 border:1px solid #d8e3ee;border-radius:9px;
 white-space:normal;padding:9px 8px;
}
body.qt-desktop-mode .qt-accounts-quick-links .qt-native-action:hover{
 background:#f3f7fb;border-color:#7fa2c4;
}
@media(max-width:1160px){
 body.qt-desktop-mode .qt-accounts-analytics-grid{grid-template-columns:1fr}
 body.qt-desktop-mode .qt-accounts-more .qt-native-tabs{grid-template-columns:repeat(3,minmax(0,1fr))}
 body.qt-desktop-mode .qt-accounts-today{min-width:0;flex:1}
}
@media(max-width:820px){
 body.qt-desktop-mode .qt-accounts-primary-tabs{grid-template-columns:repeat(3,minmax(0,1fr));height:auto}
 body.qt-desktop-mode .qt-accounts-dashboard-header{flex-direction:column;align-items:stretch}
 body.qt-desktop-mode .qt-accounts-quick-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:530px){
 body.qt-desktop-mode .qt-accounts-workspace{padding:8px;gap:7px}
 body.qt-desktop-mode .qt-accounts-primary-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.qt-desktop-mode .qt-accounts-more .qt-native-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.qt-desktop-mode .qt-accounts-today{gap:6px;padding:8px;grid-template-columns:repeat(3,minmax(0,1fr))}
 body.qt-desktop-mode .qt-accounts-today strong{font-size:15px}
 body.qt-desktop-mode .qt-accounts-quick-links{grid-template-columns:1fr}
}

/* ChartOfAccountsWindow: 3:1 hierarchy/details cards, 300–350px details. */
body.qt-desktop-mode .qt-accounts-workspace .qt-account-chart-layout{
 grid-template-columns:minmax(0,3fr) minmax(300px,350px);gap:10px;align-items:stretch;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-account-chart-layout>section,
body.qt-desktop-mode .qt-accounts-workspace .qt-account-chart-layout>aside{
 background:#fff;border:1px solid #d8e3ee;border-radius:9px;
 padding:10px;min-height:400px;min-width:0;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-account-chart-layout>aside{
 display:flex;flex-direction:column;gap:8px;width:100%;max-width:350px;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-account-chart-layout h3{
 font-size:15px;font-weight:900;margin:0 0 8px;color:#173b66;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-account-chart-layout>section .qt-native-table{
 width:100%;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-account-chart-layout .qt-native-table th:first-child{
 width:100px;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-account-chart-layout .qt-native-table th:nth-child(2){
 width:auto;text-align:right;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-account-chart-layout .qt-native-table th:nth-child(3),
body.qt-desktop-mode .qt-accounts-workspace .qt-account-chart-layout .qt-native-table th:nth-child(4){
 width:105px;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-account-chart-layout .qt-native-table td:nth-child(2){
 text-align:right;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-chart-detail-form{
 display:flex;flex-direction:column;gap:7px;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-chart-detail-row{
 display:grid;grid-template-columns:84px minmax(0,1fr);align-items:center;gap:8px;
 font-size:12px;color:#244875;font-weight:700;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-chart-detail-row input,
body.qt-desktop-mode .qt-accounts-workspace .qt-chart-detail-row textarea{
 width:100%;min-width:0;min-height:33px;border-radius:5px;
 border:1px solid #d6e1eb;background:#f7f9fc;color:#173b66;
 font-size:12px;padding:5px 8px;font-weight:600;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-chart-detail-row textarea{
 height:78px;resize:none;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-chart-detail-extra{
 display:grid;grid-template-columns:minmax(90px,1fr) minmax(0,2fr);
 gap:6px 8px;border-top:1px solid #e8eef5;padding-top:10px;margin:0;
 font-size:11px;
}
body.qt-desktop-mode .qt-accounts-workspace .qt-chart-detail-extra dt{font-weight:800;color:#496783}
body.qt-desktop-mode .qt-accounts-workspace .qt-chart-detail-extra dd{margin:0;overflow-wrap:anywhere;color:#173b66}
/* JournalEntryDialog is wider than ordinary master dialogs to hold native debit/credit lines. */
body.qt-desktop-mode .qt-accounts-journal-editor{
 width:min(1380px,97vw);max-width:min(1380px,97vw);
 max-height:94dvh;overflow-y:auto;direction:rtl;background:#fff;
}
body.qt-desktop-mode .qt-accounts-journal-editor .qt-native-edit-form>.form-grid{
 display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;
}
body.qt-desktop-mode .qt-accounts-journal-editor .qt-native-table-scroll{
 width:100%;overflow:auto;max-height:50vh;border:1px solid #d8e3ee;
}
body.qt-desktop-mode .qt-accounts-journal-editor .qt-native-table{
 min-width:1350px;border-collapse:collapse;
}
body.qt-desktop-mode .qt-accounts-journal-editor .qt-native-table input,
body.qt-desktop-mode .qt-accounts-journal-editor .qt-native-table select{
 min-height:33px;height:33px;min-width:100px;padding:4px 6px;font-size:11px;border-radius:5px;
}
body.qt-desktop-mode .qt-accounts-master-editor{
 width:min(680px,95vw);max-width:min(680px,95vw);direction:rtl;
}
body.qt-desktop-mode .qt-accounts-master-editor .form-grid{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;
}
@media(max-width:850px){
 body.qt-desktop-mode .qt-accounts-workspace .qt-account-chart-layout{
  grid-template-columns:minmax(0,1fr);
 }
 body.qt-desktop-mode .qt-accounts-workspace .qt-account-chart-layout>aside{
  max-width:none;min-height:0;
 }
}
@media(max-width:650px){
 body.qt-desktop-mode .qt-accounts-journal-editor .qt-native-edit-form>.form-grid,
 body.qt-desktop-mode .qt-accounts-master-editor .form-grid{grid-template-columns:minmax(0,1fr)}
}

/* Original AccountsWindow analytics row: Recent / Donut / 7-day panel.
 * Qt proportions are 10:10:12, with 278px minimum panel height.
 * Trend data stays visibly unavailable until an authorized daily-series RPC exists. */
body.qt-desktop-mode .qt-accounts-dashboard .qt-accounts-analytics-grid{
 grid-template-columns:minmax(0,10fr) minmax(0,10fr) minmax(0,12fr);
 gap:10px;align-items:stretch;
}
body.qt-desktop-mode .qt-accounts-dashboard .qt-accounts-analytics-panel{
 min-height:278px;display:flex;flex-direction:column;gap:7px;
}
body.qt-desktop-mode .qt-accounts-dashboard .qt-accounts-analytics-panel h3{
 margin-bottom:0;
}
body.qt-desktop-mode .qt-accounts-dashboard .qt-accounts-analytics-panel .qt-native-table-scroll{
 flex:1;max-height:260px;
}
body.qt-desktop-mode .qt-accounts-type-distribution{
 flex:1;min-height:190px;display:flex;align-items:center;justify-content:space-between;
 gap:14px;direction:ltr;
}
body.qt-desktop-mode .qt-accounts-type-ring{
 position:relative;width:min(175px,48%);aspect-ratio:1/1;
 flex-shrink:0;border-radius:50%;background:#eef3f8;
}
body.qt-desktop-mode .qt-accounts-type-center{
 position:absolute;inset:18%;border-radius:50%;background:white;
 display:flex;flex-direction:column;align-items:center;justify-content:center;
 box-shadow:0 0 0 1px rgba(255,255,255,.6);
}
body.qt-desktop-mode .qt-accounts-type-center strong{
 color:#173b66;font-size:20px;font-weight:900;font-variant-numeric:tabular-nums;
}
body.qt-desktop-mode .qt-accounts-type-center small{
 color:#71839a;font-size:10px;font-weight:700;text-align:center;
}
body.qt-desktop-mode .qt-accounts-type-legend{
 list-style:none;margin:0;padding:0;flex:1;min-width:0;direction:rtl;
 display:flex;flex-direction:column;justify-content:center;gap:9px;
}
body.qt-desktop-mode .qt-accounts-type-legend li{
 display:flex;align-items:center;gap:7px;color:#294766;
 font-size:12px;font-weight:800;min-width:0;
}
body.qt-desktop-mode .qt-accounts-type-legend span{flex:1}
body.qt-desktop-mode .qt-accounts-type-legend strong{font-variant-numeric:tabular-nums}
body.qt-desktop-mode .qt-accounts-type-key{
 display:block;width:9px;height:9px;flex:0 0 9px;border-radius:50%;
}
body.qt-desktop-mode .qt-accounts-trend-pending{
 flex:1;display:flex;align-items:center;justify-content:center;
 color:#71839a;font-size:12px;font-weight:700;line-height:1.9;
 text-align:center;min-height:180px;padding:14px;
 background:repeating-linear-gradient(0deg,#fff,#fff 38px,#f2f5f9 39px);
 border-radius:6px;
}
body.qt-desktop-mode .qt-accounts-bottom-row{
 display:grid;grid-template-columns:minmax(0,13fr) minmax(0,8fr);
 gap:10px;align-items:start;
}
body.qt-desktop-mode .qt-accounts-bottom-row .qt-accounts-quick-links{
 grid-template-columns:repeat(4,minmax(0,1fr));
}
body.qt-desktop-mode .qt-accounts-fast-actions{
 display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;
}
body.qt-desktop-mode .qt-accounts-fast-actions .qt-native-action{
 min-height:58px;background:#fff;border:1px solid #d8e3ee;
 border-radius:9px;color:#173b66;font-size:12px;font-weight:800;
}
body.qt-desktop-mode .qt-accounts-fast-actions .qt-native-action:not(:disabled):hover{
 background:#f3f7fb;border-color:#7fa2c4;
}
body.qt-desktop-mode .qt-accounts-fast-actions .qt-native-action:disabled{
 opacity:.5;cursor:not-allowed;
}
@media(max-width:1250px){
 body.qt-desktop-mode .qt-accounts-dashboard .qt-accounts-analytics-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
 }
 body.qt-desktop-mode .qt-accounts-trend-panel{grid-column:1/-1}
}
@media(max-width:940px){
 body.qt-desktop-mode .qt-accounts-bottom-row{grid-template-columns:1fr}
 body.qt-desktop-mode .qt-accounts-bottom-row .qt-accounts-quick-links{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:690px){
 body.qt-desktop-mode .qt-accounts-dashboard .qt-accounts-analytics-grid{grid-template-columns:1fr}
 body.qt-desktop-mode .qt-accounts-trend-panel{grid-column:auto}
 body.qt-desktop-mode .qt-accounts-bottom-row .qt-accounts-quick-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Original _AccountsTrendChart: seven day points, 5 grid lines, blue revenue /
   lighter-blue expenses, day/month x labels, and accessible exact-value tooltips. */
body.qt-desktop-mode .qt-accounts-native-trend{
 flex:1;min-height:190px;display:flex;flex-direction:column;
 direction:rtl;width:100%;min-width:0;gap:5px;
}
body.qt-desktop-mode .qt-accounts-native-trend svg{
 width:100%;height:auto;min-height:180px;max-height:230px;overflow:visible;
 display:block;font-family:'Noto Kufi Arabic','Segoe UI',Tahoma,sans-serif;
}
body.qt-desktop-mode .qt-accounts-native-trend svg circle:focus-visible{
 outline:2px solid #1d568d;outline-offset:2px;
}
body.qt-desktop-mode .qt-accounts-trend-legend{
 display:flex;justify-content:flex-end;align-items:center;gap:16px;
 padding-inline-end:8px;color:#6382a4;font-size:11px;font-weight:700;
}
body.qt-desktop-mode .qt-accounts-trend-legend>span{
 display:inline-flex;align-items:center;gap:6px;
}
body.qt-desktop-mode .qt-accounts-trend-content{
 flex:1;min-height:190px;min-width:0;display:flex;flex-direction:column;
}
body.qt-desktop-mode .qt-accounts-trend-content>.qt-accounts-trend-pending{
 flex:1;
}
@media(max-width:690px){
 body.qt-desktop-mode .qt-accounts-native-trend svg{min-height:140px;max-height:205px}
}

/* Original VouchersWindow (1200×700): receipt / disbursement Qt tabs
   share one screen, with each tab's own toolbar, search and seven-column table. */
body.qt-desktop-mode .qt-accounts-vouchers-window{
 direction:rtl;display:flex;flex-direction:column;min-height:0;gap:9px;
 background:#f7f9fc;color:#173b66;
}
body.qt-desktop-mode .qt-accounts-vouchers-window>h2{
 font-size:19px;font-weight:900;margin:4px 0 0;
}
body.qt-desktop-mode .qt-accounts-voucher-tabs{
 display:flex;gap:6px;border-bottom:1px solid #d8e3ee;
 padding:6px 8px 0;background:#fff;border-radius:9px 9px 0 0;
}
body.qt-desktop-mode .qt-accounts-voucher-tabs .qt-native-tab{
 border-radius:8px 8px 0 0;min-height:41px;min-width:165px;
 border:1px solid #d8e3ee;border-bottom:0;font-size:13px;font-weight:800;
}
body.qt-desktop-mode .qt-accounts-voucher-tabs .qt-native-tab.active{
 border-color:#1d568d;background:#1d568d;color:#fff;
}
body.qt-desktop-mode .qt-accounts-voucher-tabs .qt-native-tab:focus-visible,
body.qt-desktop-mode .qt-accounts-voucher-content tr[tabindex]:focus-visible{
 outline:2px solid #1d568d;outline-offset:2px;
}
body.qt-desktop-mode .qt-accounts-voucher-content{
 min-width:0;min-height:0;display:flex;flex-direction:column;flex:1;
}
body.qt-desktop-mode .qt-accounts-voucher-screen{
 flex:1;min-width:0;display:flex;flex-direction:column;
}
body.qt-desktop-mode .qt-accounts-voucher-screen .qt-native-account-documents{
 display:flex;flex-direction:column;min-height:420px;flex:1;gap:9px;
}
body.qt-desktop-mode .qt-accounts-voucher-screen .qt-native-command-row{
 padding:8px 10px;gap:8px;border-radius:9px;border:1px solid #d8e3ee;background:#fff;
}
body.qt-desktop-mode .qt-accounts-voucher-screen .qt-native-filters{
 padding:9px 10px;border:1px solid #d8e3ee;border-radius:9px;background:#fff;
}
body.qt-desktop-mode .qt-accounts-voucher-screen .qt-native-table-scroll{
 overflow:auto;max-height:min(65vh,620px);
}
body.qt-desktop-mode .qt-accounts-voucher-screen .qt-native-table{
 width:100%;table-layout:auto;border-collapse:collapse;
}
body.qt-desktop-mode .qt-accounts-voucher-screen .qt-native-table th{
 white-space:nowrap;background:#eaf0f7;font-weight:800;color:#173b66;
 height:36px;
}
body.qt-desktop-mode .qt-accounts-voucher-screen .qt-native-table td{
 height:32px;min-width:95px;
}
body.qt-desktop-mode .qt-accounts-voucher-screen .qt-native-table td:first-child{
 min-width:120px;
}
body.qt-desktop-mode .qt-accounts-voucher-screen .qt-native-table td:last-child{
 min-width:155px;
}
body.qt-desktop-mode .qt-accounts-voucher-screen .qt-native-table tr[aria-selected="true"]{
 background:#eaf2ff;
}
@media(max-width:690px){
 body.qt-desktop-mode .qt-accounts-voucher-tabs .qt-native-tab{
  min-width:0;flex:1;font-size:12px;
 }
 body.qt-desktop-mode .qt-accounts-voucher-screen .qt-native-command-row{
  flex-wrap:wrap;
 }
 body.qt-desktop-mode .qt-accounts-voucher-screen .qt-native-table-scroll{
  max-height:55vh;
 }
}
