:root{
  --navy:#0b1730;--navy-2:#12264a;--navy-3:#1a3766;
  --blue:#2f72e8;--blue-2:#5b8df2;--cyan:#08b9c7;--teal:#16b995;
  --purple:#7358e8;--amber:#f3a42d;--rose:#e05a74;--green:#21ad76;
  --ink:#18263b;--muted:#76859a;--muted-2:#9aa6b6;--line:#e6ebf2;
  --surface:#fff;--bg:#f4f7fb;--bg-2:#eef3f8;--shadow:0 16px 40px rgba(18,38,74,.10);
  --shadow-sm:0 8px 22px rgba(18,38,74,.08);--radius:18px;
}
*{box-sizing:border-box}html{direction:rtl;scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font-family:Tahoma,"Segoe UI",Arial,sans-serif;font-size:13px;line-height:1.85}button,input,select,textarea{font:inherit}a{color:inherit}img{max-width:100%}
body::selection{background:#cfe1ff;color:#0b1730}
.muted{color:var(--muted)}.small{font-size:11px}.ltr{direction:ltr}

/* -------- shell -------- */
.topbar{height:76px;background:linear-gradient(110deg,#07132b 0%,#0e2142 52%,#183764 100%);color:#fff;display:flex;align-items:center;position:sticky;top:0;z-index:70;padding:0 20px;box-shadow:0 12px 32px rgba(5,20,44,.20)}
.brand-link{display:flex;align-items:center;gap:11px;text-decoration:none}.brand-logo-wrap{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 8px 24px rgba(0,0,0,.18)}.brand-logo{width:48px;height:48px;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(0,0,0,.18))}.brand-copy strong{display:block;font-size:18px;letter-spacing:-.4px}.brand-copy small{display:block;font-size:9px;opacity:.63;direction:ltr;margin-top:-1px}
.top-center{display:flex;align-items:center;gap:10px;margin-right:44px}.top-product{font-weight:900;font-size:12px;display:flex;align-items:center;gap:7px}.live-dot{width:8px;height:8px;border-radius:999px;background:#2ee0a1;box-shadow:0 0 0 6px rgba(46,224,161,.10)}.top-date{font-size:11px;color:#b9c6da;padding-right:14px;border-right:1px solid rgba(255,255,255,.10)}
.top-search{border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.055);color:#dce7f6;display:flex;align-items:center;gap:8px;padding:8px 11px;border-radius:11px;margin-right:auto;font-size:9px;cursor:pointer}.top-search:hover{background:rgba(255,255,255,.09)}.top-search .search-icon{font-size:16px;color:#78b6ff}.top-search kbd{font-family:Tahoma;font-size:8px;color:#93a8c4;padding:3px 5px;border:1px solid rgba(255,255,255,.10);border-radius:6px}.user-chip{display:flex;align-items:center;gap:7px;color:#cdd9e9;font-size:9px;padding:4px 6px}.user-avatar{width:28px;height:28px;border-radius:9px;display:grid;place-items:center;color:#fff;background:linear-gradient(135deg,#2f72e8,#0bb9c7);font-weight:900}.top-actions{margin-right:12px;display:flex;align-items:center;gap:6px}.nav-toggle{display:none}.top-action{border:1px solid transparent;text-decoration:none;color:#dbe4f1;background:rgba(255,255,255,.04);display:flex;align-items:center;gap:7px;padding:8px 11px;border-radius:11px;font-size:10px;cursor:pointer}.top-action:hover{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.10)}.top-action span{font-size:13px;color:#8eb6ff}.top-logout{font-family:inherit}
.inline{display:inline}.app-shell{display:grid;grid-template-columns:292px minmax(0,1fr);min-height:calc(100vh - 76px)}.sidebar{position:sticky;top:76px;height:calc(100vh - 76px);background:linear-gradient(180deg,#0d1e3a 0%,#0b1730 100%);padding:18px 14px;display:flex;flex-direction:column;gap:6px;overflow:auto;border-left:1px solid rgba(255,255,255,.03)}
.sidebar-collapse{margin-right:auto;border:0;background:transparent;color:#8ea3c1;font-size:18px;cursor:pointer}.sidebar-brand-mini{font-size:10px;color:#90a4c2;padding:4px 10px 10px;display:flex;align-items:center;gap:7px}.mini-dot{width:7px;height:7px;border-radius:99px;background:#54d5ef;box-shadow:0 0 0 5px rgba(84,213,239,.10)}.sidebar a{color:#b9c6da;text-decoration:none;padding:11px 10px;border-radius:12px;display:flex;align-items:center;gap:10px;font-size:11px;transition:.18s}.sidebar a:hover{background:rgba(255,255,255,.06);color:#fff;transform:translateX(-2px)}.sidebar a.nav-main{color:#fff;background:linear-gradient(90deg,rgba(65,132,239,.26),rgba(25,68,128,.26));box-shadow:inset 3px 0 0 #64a0ff}.nav-group{padding:15px 11px 6px;color:#687ea1;font-size:9px;font-weight:900;letter-spacing:.5px}.nav-ico{width:31px;height:31px;border-radius:10px;display:grid;place-items:center;font-size:13px;background:rgba(255,255,255,.06);flex:0 0 31px}.nav-ico.blue{color:#6da3ff;background:rgba(70,130,239,.13)}.nav-ico.purple{color:#a28bf7;background:rgba(115,88,232,.13)}.nav-ico.indigo{color:#98a6ff;background:rgba(114,128,246,.13)}.nav-ico.green{color:#5fe0b2;background:rgba(33,173,118,.13)}.nav-ico.orange{color:#ffc265;background:rgba(243,164,45,.13)}.nav-ico.teal{color:#63e1df;background:rgba(22,185,149,.13)}.nav-ico.red{color:#ff8298;background:rgba(224,90,116,.13)}.nav-ico.yellow{color:#ffd979;background:rgba(242,198,70,.13)}.nav-ico.cyan{color:#6edff1;background:rgba(8,185,199,.13)}.nav-ico.slate{color:#c0cce0;background:rgba(144,164,192,.12)}.nav-ico.gold{color:#ffd37a;background:rgba(246,173,55,.12)}
.sidebar-bottom{margin-top:auto;padding-top:10px;border-top:1px solid rgba(255,255,255,.07)}.license-lock{margin:10px 5px;padding:15px;border-radius:16px;background:linear-gradient(145deg,rgba(243,164,45,.10),rgba(224,90,116,.09));border:1px solid rgba(255,255,255,.07);display:flex;flex-direction:column;gap:5px}.license-lock strong{color:#fff;font-size:11px}.license-lock span{color:#94a6c0;font-size:9px;line-height:1.8}.license-lock a{padding:8px 10px;background:rgba(255,255,255,.08);color:#ffe0a1;text-align:center;margin-top:6px}
body.sidebar-collapsed .app-shell{grid-template-columns:92px minmax(0,1fr)}body.sidebar-collapsed .sidebar a span:not(.nav-ico),body.sidebar-collapsed .sidebar .nav-group,body.sidebar-collapsed .sidebar-brand-mini span:not(.mini-dot),body.sidebar-collapsed .license-lock,body.sidebar-collapsed .sidebar-bottom a span:not(.nav-ico){display:none}body.sidebar-collapsed .sidebar{padding-left:9px;padding-right:9px}body.sidebar-collapsed .sidebar a{justify-content:center}body.sidebar-collapsed .sidebar a em{display:none}body.sidebar-collapsed .nav-ico{margin:0}.main-content{min-width:0;padding:28px 28px 42px;background:radial-gradient(circle at 10% 2%,rgba(47,114,232,.06),transparent 24%),radial-gradient(circle at 95% 12%,rgba(8,185,199,.05),transparent 24%),var(--bg)}.page{max-width:1600px;margin:0 auto}.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:20px}.page-head h1{margin:2px 0 2px;font-size:28px;letter-spacing:-.7px}.page-head p{margin:0;color:var(--muted);font-size:11px}.eyebrow,.section-kicker{display:flex;align-items:center;gap:7px;color:#53719a;font-size:9px;font-weight:900;letter-spacing:.4px}.eyebrow-dot{width:7px;height:7px;border-radius:99px;background:var(--blue);box-shadow:0 0 0 5px rgba(47,114,232,.10)}

/* -------- controls -------- */
.button{appearance:none;border:1px solid #dbe3ec;background:#fff;color:#2a3b53;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;border-radius:11px;cursor:pointer;font-weight:900;font-size:10px;transition:.16s;box-shadow:0 1px 0 rgba(22,39,61,.02)}.button:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(22,39,61,.08)}.button-primary,.button.primary{color:#fff;border-color:#3479ef;background:linear-gradient(135deg,#2f72e8,#5d8ff1);box-shadow:0 8px 18px rgba(47,114,232,.22)}.button-soft{background:#edf4ff;color:#2e65bb;border-color:#d9e7ff}.button-lg{padding:12px 16px;font-size:11px;border-radius:13px}.button-danger,.button.danger{background:#fff0f3;border-color:#f4ccd5;color:#bd4359}.button-success{background:#e9fbf4;border-color:#c9eee1;color:#128060}.icon-button{width:34px;height:34px;border:1px solid #e0e7ef;background:#fff;border-radius:10px;color:#5d6f87;cursor:pointer}.toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;font-size:9px;font-weight:900;background:#edf4ff;color:#2765c1}.badge.ok{background:#e9faf3;color:#13815f}.badge.warn{background:#fff6e6;color:#9c6a1a}.badge.ai{background:linear-gradient(135deg,#e6f9fc,#eef1ff);color:#385bd1}
.card,.panel{background:rgba(255,255,255,.92);border:1px solid rgba(220,228,238,.92);border-radius:var(--radius);box-shadow:var(--shadow-sm)}.card{padding:18px}.panel{padding:18px}.subcard{margin-bottom:14px}.panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:16px}.premium-head h2,.panel-head h2{margin:2px 0;font-size:17px;letter-spacing:-.4px}.premium-head p,.panel-head p{margin:0;color:var(--muted);font-size:10px}.section-kicker{color:#68809f;text-transform:none}.section-kicker::before{content:"";width:18px;height:4px;border-radius:9px;background:linear-gradient(90deg,var(--blue),var(--cyan))}
.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.form-grid label,.card label{display:flex;flex-direction:column;gap:6px;color:#5f7087;font-size:10px;font-weight:900}.form-grid input,.form-grid select,.card input,.card select,.card textarea,.inline-form input,.inline-form select{width:100%;padding:10px 12px;border:1px solid #d9e2ec;border-radius:11px;background:#fff;color:#21324a;outline:none;font-size:11px}.form-grid input:focus,.form-grid select:focus,.card input:focus,.card select:focus,.card textarea:focus,.inline-form input:focus,.inline-form select:focus{border-color:#8ab2f5;box-shadow:0 0 0 4px rgba(47,114,232,.08)}.check{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important}.check input{width:auto}.inline-form{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:14px}.journal-row{display:grid;grid-template-columns:2fr 1fr 1fr 1.6fr .9fr auto;gap:8px;margin:8px 0;padding:9px;border:1px solid #e7edf4;border-radius:13px;background:#f9fbfd}.journal-row input,.journal-row select{background:#fff;border:1px solid #dce4ed;border-radius:9px;padding:9px 10px;min-width:0}.table-wrap{overflow:auto}.workspace-table{width:100%;border-collapse:separate;border-spacing:0;margin-top:12px;background:#fff;border:1px solid #e5eaf1;border-radius:14px;overflow:hidden}.workspace-table th,.workspace-table td{padding:10px 11px;border-bottom:1px solid #edf1f5;text-align:right;white-space:nowrap}.workspace-table th{background:#f6f9fc;color:#586981;font-size:9px;font-weight:900}.workspace-table td{font-size:10px;color:#30415a}.workspace-table tr:last-child td{border-bottom:0}.workspace-table tbody tr:hover td{background:#f9fbff}.kv,.notice{padding:11px 12px;border:1px solid #e5ebf2;border-radius:11px;margin:7px 0;display:flex;justify-content:space-between;gap:15px}.notice{background:#f8fafc}.error{background:#fff0f3;color:#9d3e53;border:1px solid #f1c8d1;padding:11px 13px;border-radius:11px;margin:10px 0}.success{background:#ebfbf4;color:#207455;border:1px solid #c8ecdd;padding:11px 13px;border-radius:11px;margin:10px 0}

/* -------- dashboard -------- */
.dashboard-page{padding-bottom:20px}.hero-shell{position:relative;overflow:hidden;border-radius:24px;margin-bottom:18px;background:linear-gradient(120deg,#0b1730 0%,#10264a 48%,#1d4d83 100%);color:#fff;box-shadow:0 20px 52px rgba(11,23,48,.25);padding:26px}.hero-shell::before{content:"";position:absolute;inset:auto -90px -90px auto;width:300px;height:300px;background:radial-gradient(circle,rgba(88,182,255,.28),transparent 67%);pointer-events:none}.hero-shell::after{content:"";position:absolute;inset:-80px auto auto -110px;width:260px;height:260px;background:radial-gradient(circle,rgba(14,219,193,.18),transparent 66%);pointer-events:none}.hero-layout{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:24px;align-items:center}.hero-eyebrow{display:flex;gap:9px;align-items:center;color:#b3d0ff;font-size:9px;font-weight:900}.hero-eyebrow span{padding:4px 8px;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08)}.hero-shell h1{margin:8px 0 4px;font-size:34px;line-height:1.25;letter-spacing:-1px}.hero-shell h1 strong{font-weight:900;color:#7ed9ff}.hero-shell p{margin:0;color:#b8c8df;font-size:11px}.hero-chips{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px}.hero-chip{padding:6px 9px;border-radius:999px;font-size:9px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.09);color:#dce8fb}.hero-chip.ok{background:rgba(39,204,147,.12);color:#9ff0d0}.hero-chip.warn{background:rgba(250,176,74,.12);color:#ffd59b}.hero-actions{display:flex;gap:9px}.hero-actions .button{min-width:140px}.hero-actions .button-soft{background:#fff;color:#214772;border-color:#fff}.hero-actions .button-primary{background:linear-gradient(135deg,#28d3c4,#5b8df2);border-color:transparent}
.kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;margin-bottom:18px}.kpi-card{padding:16px 15px;min-height:126px;position:relative;overflow:hidden;background:#fff;border:1px solid #e4e9f1;border-radius:18px;box-shadow:var(--shadow-sm)}.kpi-card::after{content:"";position:absolute;inset:auto -12px -36px auto;width:90px;height:90px;border-radius:50%;background:radial-gradient(circle,var(--accent) 0%,transparent 70%);opacity:.10}.kpi-top{display:flex;align-items:center;gap:9px;color:#596d87;font-size:9px;font-weight:900}.kpi-icon{width:33px;height:33px;border-radius:11px;display:grid;place-items:center;background:var(--accent-bg);color:var(--accent)}.kpi-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.kpi-card .kpi-caption{margin-right:auto;color:#a2adbc;font-size:8px;font-weight:600}.kpi-card strong{display:block;font-size:20px;letter-spacing:-.6px;margin-top:15px;direction:rtl}.kpi-card small{display:block;color:#99a5b3;font-size:8px;margin-top:1px}.kpi-sales{--accent:#2f72e8;--accent-bg:#edf4ff}.kpi-purchase{--accent:#f3a42d;--accent-bg:#fff6e8}.kpi-profit{--accent:#18ae79;--accent-bg:#eafaf3}.kpi-cash{--accent:#08b9c7;--accent-bg:#e7fbfd}.kpi-receivable{--accent:#7358e8;--accent-bg:#f0edff}.kpi-check{--accent:#e05a74;--accent-bg:#fff0f3}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.48fr) minmax(340px,.72fr);gap:16px;margin-bottom:16px}.dashboard-grid-left,.dashboard-grid-right{min-width:0}.module-panel{padding:18px}.module-section-title{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:15px}.module-section-title h2{margin:2px 0 3px;font-size:18px}.module-section-title p{margin:0;color:var(--muted);font-size:9px}.module-badge{padding:6px 9px;background:#eef5ff;color:#2c68bf;border-radius:9px;font-size:9px;font-weight:900}
.quick-bar{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;margin-bottom:13px}.quick-action{border:1px solid #e1e7ef;background:#fbfcfe;border-radius:13px;padding:10px 8px;text-align:right;display:flex;align-items:center;gap:8px;cursor:pointer;transition:.16s}.quick-action:hover{transform:translateY(-2px);box-shadow:0 9px 22px rgba(25,42,68,.09);border-color:#d6e1f0;background:#fff}.quick-action-icon{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;font-weight:900;font-size:12px;flex:0 0 32px}.qa-blue{background:#edf4ff;color:#2f72e8}.qa-green{background:#eafaf3;color:#17a971}.qa-orange{background:#fff5e7;color:#dd8c1a}.qa-purple{background:#f0edff;color:#7358e8}.qa-cyan{background:#e7fbfd;color:#08a5b5}.qa-rose{background:#fff0f3;color:#df5b74}.quick-action b{display:block;color:#2f4059;font-size:9px}.quick-action small{display:block;color:#97a3b2;font-size:8px;margin-top:1px}
.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.module-tile{appearance:none;border:1px solid #e1e7ef;background:#fff;border-radius:15px;padding:13px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:11px;text-align:right;cursor:pointer;transition:.18s;min-height:72px;position:relative;overflow:hidden}.module-tile::before{content:"";position:absolute;inset:0 auto 0 0;width:4px;background:var(--tile);opacity:.85}.module-tile:hover{transform:translateY(-2px);border-color:#d3deea;box-shadow:0 11px 24px rgba(33,54,82,.09)}.module-tile .tile-icon{width:41px;height:41px;border-radius:13px;display:grid;place-items:center;background:var(--tile-bg);color:var(--tile)}.module-tile .tile-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.module-tile b{display:block;color:#2c3d55;font-size:10px}.module-tile small{display:block;color:#94a0af;font-size:8px;margin-top:2px;line-height:1.8}.module-tile .tile-arrow{color:#b3bdca;font-size:12px}.tile-blue{--tile:#2f72e8;--tile-bg:#edf4ff}.tile-purple{--tile:#7358e8;--tile-bg:#f0edff}.tile-green{--tile:#18ae79;--tile-bg:#eafaf3}.tile-orange{--tile:#f0a22c;--tile-bg:#fff5e7}.tile-teal{--tile:#12b7a0;--tile-bg:#e8faf7}.tile-rose{--tile:#e05a74;--tile-bg:#fff0f3}.tile-cyan{--tile:#09acc1;--tile-bg:#e7fbfd}.tile-indigo{--tile:#5868d9;--tile-bg:#eef0ff}.tile-slate{--tile:#677a95;--tile-bg:#eff3f8}

.ai-card{background:linear-gradient(145deg,#0d1d39 0%,#112a4c 58%,#15536b 100%);color:#fff;overflow:hidden;position:relative}.ai-card::before{content:"";position:absolute;width:210px;height:210px;border-radius:50%;right:-70px;top:-85px;background:radial-gradient(circle,rgba(61,216,218,.22),transparent 64%)}.ai-head{position:relative;z-index:1;display:flex;align-items:center;gap:10px;margin-bottom:10px}.ai-logo{width:42px;height:42px;border-radius:13px;overflow:hidden;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);display:grid;place-items:center}.ai-logo img{width:36px;height:36px;object-fit:contain}.ai-head strong{font-size:12px}.ai-head small{display:block;color:#92b2d2;font-size:8px;margin-top:2px}.ai-list{position:relative;z-index:1;display:grid;gap:8px}.ai-item{padding:9px 10px;border-radius:11px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.06);color:#d7e3f3;font-size:9px;line-height:1.9}.ai-item::before{content:"✦";color:#65e2dc;margin-left:7px}.ai-footer{display:flex;align-items:center;justify-content:space-between;margin-top:11px;position:relative;z-index:1}.ai-status{font-size:8px;color:#91bed1}.ai-refresh{border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.07);color:#dffcff;border-radius:9px;padding:6px 9px;cursor:pointer;font-size:8px}

.chart-card{padding:18px}.chart-title{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.chart-title h3{font-size:14px;margin:0}.chart-title p{font-size:8px;color:var(--muted);margin:2px 0 0}.chart-body{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}.bar-wrap{display:grid;gap:7px}.bar-label{display:flex;justify-content:space-between;gap:10px;font-size:9px;color:#67788f}.bar-track{height:10px;background:#eef2f7;border-radius:99px;overflow:hidden}.bar-fill{height:100%;border-radius:99px;background:var(--bar);width:var(--w)}.metric-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:13px}.metric-mini{padding:10px;border-radius:12px;background:#f7f9fc;border:1px solid #ebeff4}.metric-mini span{display:block;color:#8c98a8;font-size:8px}.metric-mini b{display:block;margin-top:2px;font-size:11px}

.dashboard-bottom{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:16px}.activity-card,.checks-card{padding:18px}.card-title-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.card-title-row h3{margin:0;font-size:14px}.card-title-row p{margin:2px 0 0;color:var(--muted);font-size:8px}.ghost-link{font-size:8px;color:#4e78b9;text-decoration:none;padding:5px 7px;border-radius:8px;background:#eff5ff}.activity-list{display:grid;gap:7px}.activity-row{display:grid;grid-template-columns:52px minmax(0,1fr) auto;align-items:center;gap:10px;padding:9px 10px;border:1px solid #e9edf3;border-radius:11px;background:#fff}.activity-no{width:40px;height:30px;border-radius:9px;background:#eef4ff;color:#2f72e8;display:grid;place-items:center;font-size:9px;font-weight:900}.activity-text b{display:block;font-size:9px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.activity-text small{display:block;font-size:8px;color:#98a4b4;margin-top:2px}.activity-amount{text-align:left}.activity-amount b{display:block;font-size:9px}.activity-amount small{display:block;color:#9ba6b4;font-size:7px}.empty-mini{padding:24px;text-align:center;color:#9ca8b7;font-size:9px;border:1px dashed #d9e0e8;border-radius:12px;background:#fbfcfe}
.check-item{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;padding:9px;border-bottom:1px solid #edf1f5}.check-item:last-child{border-bottom:0}.check-icon{width:34px;height:34px;border-radius:10px;background:#fff4e6;color:#dc8c16;display:grid;place-items:center;font-size:12px}.check-item b{display:block;font-size:9px}.check-item small{color:#9ba6b4;font-size:8px}.check-amount{text-align:left}.check-amount b{font-size:9px}.check-amount small{font-size:8px;color:#dc8c16}

/* -------- MDI desktop -------- */
.desk-panel{margin-top:16px}.desk-toolbar{display:flex;align-items:center;gap:7px}.desktop-shell{position:relative;min-height:430px;overflow:hidden;border:1px solid #dce5ef;border-radius:18px;background:linear-gradient(135deg,#eaf0f7,#f8fafc);box-shadow:inset 0 1px 0 #fff}.desktop-wall{position:absolute;inset:0;background-image:radial-gradient(circle at 15% 20%,rgba(47,114,232,.08),transparent 22%),radial-gradient(circle at 80% 25%,rgba(8,185,199,.07),transparent 20%),linear-gradient(transparent 95%,rgba(120,143,170,.06) 100%);pointer-events:none}.desktop-empty{position:absolute;inset:0;display:grid;place-items:center;align-content:center;text-align:center;color:#9ca9b9}.desktop-empty .empty-logo{width:54px;height:54px;opacity:.8;margin-bottom:8px;filter:grayscale(.2);mix-blend-mode:multiply}.desktop-empty strong{display:block;color:#6f7f94;font-size:11px}.desktop-empty small{font-size:8px}.internal-window{position:absolute;background:#fff;border:1px solid #ccd7e4;border-radius:16px;box-shadow:0 26px 55px rgba(25,43,68,.22);min-width:430px;min-height:235px;width:min(900px,82%);height:min(620px,82%);overflow:hidden;resize:both}.internal-window .window-bar{height:50px;background:linear-gradient(110deg,#10264a,#1b4674);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 9px 0 13px;cursor:move}.window-brand{display:flex;align-items:center;gap:9px}.window-brand img{width:28px;height:28px;object-fit:contain;border-radius:8px;background:rgba(255,255,255,.08);padding:3px}.internal-window .window-title{font-weight:900;font-size:10px}.internal-window .window-subtitle{display:block;font-weight:400;color:#91acd0;font-size:7px}.window-controls{display:flex;gap:5px}.window-controls button{border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:#fff;width:29px;height:29px;border-radius:8px;cursor:pointer}.window-controls button:hover{background:rgba(255,255,255,.16)}.window-frame{border:0;width:100%;height:calc(100% - 50px);display:block;background:#f6f8fb}.internal-window.minimized{height:50px!important;min-height:50px!important}.internal-window.minimized .window-frame{display:none}.internal-window.maximized{right:6px!important;top:6px!important;width:calc(100% - 12px)!important;height:calc(100% - 12px)!important}.window-dock{display:flex;align-items:center;gap:7px;overflow:auto;padding-top:9px}.dock-item{border:1px solid #dce4ed;background:#fff;border-radius:9px;padding:6px 9px;font-size:8px;color:#5b6f89;cursor:pointer;white-space:nowrap}.dock-item.active{border-color:#a8c6f7;color:#2f72e8;background:#eff5ff}.dock-close{margin-right:5px;color:#a2acb7}.window-toolbar{display:flex;gap:7px;flex-wrap:wrap;margin-top:8px}

/* -------- embedded operation -------- */
.embedded-window{background:#f4f7fb}.embedded-head{height:68px;background:linear-gradient(110deg,#0d1d39,#1a4d76);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 16px;box-shadow:0 10px 24px rgba(15,35,62,.16)}.embedded-title{display:flex;align-items:center;gap:10px}.embedded-title img{width:42px;height:42px;object-fit:contain;border-radius:12px;background:rgba(255,255,255,.10);padding:4px}.embedded-head strong{display:block;font-size:13px}.embedded-head small{display:block;opacity:.62;font-size:8px;direction:ltr;margin-top:2px}.embedded-head .button{padding:7px 11px;background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.15)}.embedded-content{padding:14px}.window-card{min-height:calc(100vh - 96px);box-shadow:none;border-radius:14px}

/* -------- login / help / reports -------- */
.login{min-height:100vh;display:grid;place-items:center;background:radial-gradient(circle at 18% 18%,rgba(47,114,232,.15),transparent 28%),radial-gradient(circle at 82% 85%,rgba(8,185,199,.11),transparent 25%),linear-gradient(135deg,#edf3fb,#f7fafc);padding:20px}.login-card{width:min(470px,94vw);padding:30px;border-radius:24px}.login-card .login-brand{display:flex;justify-content:center;margin-bottom:12px}.login-card .login-brand img{width:96px;height:96px;filter:drop-shadow(0 16px 28px rgba(37,89,160,.16))}.login-features{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin:-7px 0 16px}.login-features span{padding:5px 7px;background:#f2f6fb;border:1px solid #e3e9f1;border-radius:999px;color:#708098;font-size:8px}.login-card h1{text-align:center;margin:5px 0;font-size:25px}.login-card p{text-align:center;color:var(--muted);font-size:10px;margin:0 0 20px}.login-card label{margin:10px 0}.login-card .button{margin-top:6px}.help-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:16px}.help-nav{background:#0d1e3a;border-radius:16px;padding:10px;align-self:start;position:sticky;top:96px}.help-nav a{display:block;padding:10px 11px;color:#b9c8dd;text-decoration:none;border-radius:10px;font-size:9px}.help-nav a:hover{background:rgba(255,255,255,.06);color:#fff}.help-content{line-height:2}.help-content h2{margin-top:0;color:#1e385d}.report-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0}.report-link{text-align:right;cursor:pointer;font-weight:900;min-height:92px;display:flex;flex-direction:column;justify-content:center}.report-link:hover{border-color:#cbdcf5;box-shadow:var(--shadow)}.stat{background:#f7f9fc;border:1px solid #e8edf3;padding:12px;border-radius:12px}.stat span{display:block;color:var(--muted);font-size:9px}.stat b{display:block;margin-top:3px;font-size:13px}
.toast{position:fixed;left:22px;bottom:22px;background:#0e2142;color:#fff;padding:11px 15px;border-radius:12px;z-index:120;box-shadow:0 14px 30px rgba(15,35,61,.28);font-size:10px}.toast.error{background:#8d3e50}.toast.success{background:#176f59}

/* -------- command palette -------- */
.command-overlay{position:fixed;inset:0;z-index:200;background:rgba(6,17,36,.52);backdrop-filter:blur(7px);display:none;align-items:flex-start;justify-content:center;padding-top:10vh}.command-overlay.open{display:flex}.command-panel{width:min(700px,94vw);background:#fff;border:1px solid #dbe4ee;border-radius:20px;box-shadow:0 35px 90px rgba(4,14,32,.28);overflow:hidden}.command-search{padding:14px;border-bottom:1px solid #e9eef4;background:#fbfcfe}.command-search input{width:100%;border:0;outline:none;font-size:12px;padding:9px;background:transparent;color:#223651}.command-list{max-height:420px;overflow:auto;padding:8px}.command-item{width:100%;border:0;background:#fff;display:flex;align-items:center;gap:10px;padding:10px;border-radius:11px;text-align:right;cursor:pointer}.command-item:hover,.command-item.active{background:#eff5ff}.command-item-icon{width:34px;height:34px;border-radius:10px;background:#eef4ff;color:#2f72e8;display:grid;place-items:center}.command-item b{display:block;font-size:10px}.command-item small{display:block;color:#94a0b0;font-size:8px}.command-hint{padding:9px 14px;color:#98a4b4;background:#fbfcfe;font-size:8px;border-top:1px solid #e9eef4}

@media(max-width:1450px){.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.quick-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1180px){.app-shell{grid-template-columns:250px minmax(0,1fr)}.dashboard-grid,.dashboard-bottom{grid-template-columns:1fr}.kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.module-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:900px){.app-shell{display:block}.nav-toggle{display:flex}.top-search{display:none}.user-chip{display:none}.sidebar{position:fixed;right:0;top:76px;width:280px;transform:translateX(100%);transition:.2s;z-index:65;box-shadow:-20px 0 50px rgba(6,17,36,.20)}body.nav-open .sidebar{transform:translateX(0)}.main-content{padding:18px}.top-center{display:none}.hero-layout{grid-template-columns:1fr}.hero-actions{width:100%}.hero-actions .button{flex:1}.quick-bar{grid-template-columns:repeat(3,minmax(0,1fr))}.module-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.help-layout{grid-template-columns:1fr}.help-nav{position:static}.report-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.topbar{height:68px;padding:0 10px}.brand-logo-wrap{width:44px;height:44px}.brand-logo{width:41px;height:41px}.brand-copy strong{font-size:16px}.brand-copy small{display:none}.top-actions .top-action{padding:8px}.top-actions .top-action span{display:none}.main-content{padding:12px}.hero-shell{padding:20px;border-radius:20px}.hero-shell h1{font-size:27px}.kpi-grid{grid-template-columns:1fr 1fr}.quick-bar{grid-template-columns:1fr 1fr}.module-grid{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.journal-row{grid-template-columns:1fr}.report-grid{grid-template-columns:1fr}.internal-window{min-width:280px;width:94%;height:78%}.dashboard-bottom{grid-template-columns:1fr}.chart-body{grid-template-columns:1fr}.metric-strip{grid-template-columns:1fr}.activity-row{grid-template-columns:44px minmax(0,1fr)}.activity-amount{display:none}.page-head{align-items:flex-start;flex-direction:column}.page-head h1{font-size:23px}}

/* ==========================================================
   Haseb-style shell 1.1.1 — compact ribbon + right quick bar
   ========================================================== */
body.haseb-shell{background:#eaf0f7;color:#17263d;min-height:100vh;overflow-x:hidden}
.haseb-topbar{height:76px;position:sticky;top:0;z-index:120;display:flex;align-items:center;gap:14px;padding:7px 12px;background:linear-gradient(100deg,#09203d 0%,#102e56 52%,#163d70 100%);color:#f5f8fc;box-shadow:0 8px 24px rgba(9,29,55,.20);border-bottom:1px solid rgba(255,255,255,.08);direction:rtl}
.haseb-brand{display:flex;align-items:center;gap:8px;flex:0 0 158px;min-width:130px;text-decoration:none;color:#fff;order:2}
.haseb-brand img{width:43px;height:43px;object-fit:contain;border-radius:12px;background:rgba(255,255,255,.08);padding:3px;filter:drop-shadow(0 4px 8px rgba(0,0,0,.15))}
.haseb-brand strong{display:block;font-size:15px;font-weight:900;letter-spacing:-.2px;line-height:1.4}
.haseb-brand small{display:block;font-size:8px;color:#b9cbe2;direction:ltr;text-align:right;line-height:1.4}
.module-ribbon{display:flex;align-items:stretch;gap:3px;flex:1 1 auto;min-width:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#38577b transparent;padding:0 2px;order:0}
.module-ribbon .ribbon-button{position:relative;display:flex;flex:0 0 auto;align-items:center;justify-content:center;gap:6px;min-width:62px;height:52px;padding:5px 9px;border:1px solid transparent;border-radius:10px;background:transparent;color:#c9d8e9;font-family:inherit;font-size:10px;font-weight:800;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background .15s,border-color .15s,color .15s}
.module-ribbon .ribbon-button small{font-size:8px;color:#7f9bbd;padding:2px 4px;border-radius:5px;background:rgba(255,255,255,.045);align-self:flex-start}
.module-ribbon .ribbon-icon{display:inline-grid;place-items:center;width:23px;height:23px;flex:0 0 23px;border:1px solid rgba(130,177,236,.13);border-radius:7px;background:rgba(87,143,218,.13);color:#82b5ff;font-size:13px}
.module-ribbon .ribbon-button:hover,.module-ribbon .ribbon-button.active,.module-ribbon .ribbon-button[aria-expanded=true]{color:#fff;background:rgba(117,165,229,.14);border-color:rgba(130,177,236,.20)}
.module-ribbon .ribbon-button.active:after,.module-ribbon .ribbon-button[aria-expanded=true]:after{content:"";position:absolute;left:12px;right:12px;bottom:1px;height:2px;border-radius:99px;background:linear-gradient(90deg,#25c6d3,#73a9ff)}
.top-user-tools{display:flex;align-items:center;gap:4px;flex:0 0 auto;min-width:0;order:1}
.top-tool{display:flex;align-items:center;justify-content:center;gap:5px;min-height:35px;padding:6px 8px;border:1px solid rgba(255,255,255,.07);border-radius:9px;background:rgba(255,255,255,.045);color:#dbe7f5;font-family:inherit;font-size:9px;text-decoration:none;white-space:nowrap;cursor:pointer}
.top-tool>span{color:#8ec5ff;font-size:12px}.top-tool small{font-size:9px}.top-tool:hover{background:rgba(255,255,255,.11);color:#fff}.top-tool kbd{font-family:Tahoma;font-size:8px;color:#9eb8d8;background:rgba(0,0,0,.12);border:1px solid rgba(255,255,255,.08);border-radius:5px;padding:2px 4px}.top-separator{height:25px;width:1px;background:rgba(255,255,255,.12);margin:0 3px}.top-year{font-size:9px;color:#b6c9e0;white-space:nowrap;padding:0 5px}.top-current-user{display:inline-flex;align-items:center;gap:6px;color:#ecf5ff;font-size:9px;white-space:nowrap;padding:4px 6px}.top-current-user i{width:7px;height:7px;border-radius:50%;background:#38d9a2;box-shadow:0 0 0 4px rgba(56,217,162,.1)}.top-logout-form{margin:0}
.haseb-app-grid{direction:ltr;display:grid;grid-template-columns:minmax(0,1fr) 236px;min-height:calc(100vh - 76px);align-items:stretch}
.haseb-main{direction:rtl;min-width:0;min-height:calc(100vh - 76px);background:linear-gradient(150deg,#eef4fb 0%,#f5f8fc 64%,#e8f2f7 100%);padding:17px 18px 28px}
.haseb-main .page-host{width:100%;max-width:1780px;margin:0 auto}
.quick-rail{direction:rtl;position:sticky;top:76px;height:calc(100vh - 76px);min-width:0;overflow-y:auto;overflow-x:hidden;background:linear-gradient(180deg,#0d2748 0%,#0a1d37 100%);border-left:1px solid rgba(255,255,255,.05);padding:13px 10px 10px;display:flex;flex-direction:column;gap:4px;color:#e7f0fb;scrollbar-width:thin;scrollbar-color:#294968 transparent}
.quick-rail-head{display:flex;align-items:center;justify-content:space-between;padding:5px 8px 11px;margin-bottom:5px;border-bottom:1px solid rgba(255,255,255,.08);color:#fff;font-size:11px}.quick-rail-head strong{font-size:11px}.rail-tools{display:grid;place-items:center;color:#81baff;background:rgba(71,139,227,.12);border-radius:7px;width:25px;height:25px;font-size:15px}
.quick-command{width:100%;display:grid;grid-template-columns:29px minmax(0,1fr) auto;align-items:center;gap:8px;padding:7px 7px;border:1px solid transparent;border-radius:9px;background:transparent;color:#bfd1e6;text-align:right;font-family:inherit;font-size:10px;font-weight:700;cursor:pointer;transition:background .15s,border-color .15s,transform .15s}
.quick-command:hover{background:rgba(111,166,236,.12);border-color:rgba(112,166,235,.18);color:#fff;transform:translateX(-1px)}.quick-command>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.quick-command kbd{font-family:Tahoma;font-size:7px;white-space:nowrap;color:#7996b9;border:1px solid rgba(255,255,255,.08);background:rgba(0,0,0,.10);padding:2px 4px;border-radius:5px}
.shortcut-icon{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;font-size:13px;font-weight:900}.blue-shortcut{background:#1d4776;color:#75b3ff}.violet-shortcut{background:#3e3575;color:#c0a9ff}.cyan-shortcut{background:#164e68;color:#7ee9f5}.orange-shortcut{background:#604624;color:#ffd087}.purple-shortcut{background:#43386f;color:#ccb8ff}.green-shortcut{background:#175443;color:#7ce7ba}.red-shortcut{background:#633447;color:#ffadbd}.indigo-shortcut{background:#303f70;color:#aab8ff}.teal-shortcut{background:#15515a;color:#73e7df}.slate-shortcut{background:#3d4e62;color:#d3e0ed}
.quick-rail-footer{margin-top:auto;display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:12px 7px 5px;border-top:1px solid rgba(255,255,255,.08);color:#829dbb;font-size:8px}.quick-rail-footer small{margin-right:auto;color:#6688ae;font-size:8px}.status-dot{width:7px;height:7px;border-radius:50%;background:#23c99a;box-shadow:0 0 0 4px rgba(35,201,154,.1)}
.license-required-rail{padding:16px 10px;margin:9px 2px;border:1px solid rgba(238,188,101,.18);border-radius:12px;background:rgba(239,176,65,.07);display:flex;flex-direction:column;align-items:flex-start;gap:8px}.license-required-rail>span{font-size:19px;color:#ffd17b}.license-required-rail strong{font-size:11px;color:#fff}.license-required-rail p{font-size:9px;color:#a9bed4;margin:0;line-height:1.9}.license-required-rail a{display:block;width:100%;text-align:center;background:#d99d39;color:#14253b;text-decoration:none;border-radius:7px;padding:8px;font-size:9px;font-weight:900}
/* Menu popover: compact groups and honest feature states. */
.haseb-menu-popup{position:fixed;z-index:180;max-height:min(78vh,740px);overflow:auto;border:1px solid #d3dfed;border-radius:14px;background:#fff;box-shadow:0 24px 60px rgba(6,25,51,.26);direction:rtl;color:#192e4a}
.haseb-menu-popup[hidden]{display:none}.menu-popup-head{position:sticky;top:0;z-index:2;background:linear-gradient(100deg,#f7faff,#edf4fc);border-bottom:1px solid #e0e8f2;padding:12px 15px;display:flex;justify-content:space-between;align-items:center;gap:12px}.menu-popup-head strong{display:block;font-size:13px;color:#143861}.menu-popup-head small{display:block;color:#7d8ea4;font-size:9px}.menu-popup-head button{width:28px;height:28px;border:0;border-radius:8px;background:#e7eef7;color:#4b6482;font-size:20px;cursor:pointer}.menu-popup-body{padding:5px 10px 10px;display:grid;grid-template-columns:1fr;gap:4px}.menu-popup-group{padding:5px 0 6px;border-bottom:1px solid #edf1f6}.menu-popup-group:last-child{border-bottom:0}.menu-popup-group h3{margin:4px 8px 5px;color:#72849a;font-size:9px;font-weight:900}.menu-popup-item{width:100%;display:grid;grid-template-columns:25px minmax(0,1fr) auto;gap:8px;align-items:center;text-align:right;border:1px solid transparent;border-radius:9px;background:#fff;padding:8px 7px;cursor:pointer;color:#233953}.menu-popup-item:hover{background:#f2f7ff;border-color:#dce8f8}.menu-item-symbol{width:25px;height:25px;border-radius:7px;background:#eaf2ff;color:#2d78d6;display:grid;place-items:center;font-size:14px}.menu-item-copy b{display:block;font-size:10px}.menu-item-copy small{display:block;color:#8796a9;font-size:8px;line-height:1.7}.menu-item-state{white-space:nowrap;border-radius:99px;padding:4px 6px;font-size:7px;font-weight:800}.menu-item-state.active{background:#e4f8ee;color:#12835d}.menu-item-state.limited{background:#fff5df;color:#95651a}.menu-item-state.planned{background:#eef1f6;color:#6d7b8f}
.command-overlay{z-index:220}.command-panel{border-radius:15px}.command-item{font-family:Tahoma}.command-item small{direction:rtl;text-align:right}
/* Haseb-style home and tile workspace */
.haseb-home{max-width:1900px;margin:0 auto;display:flex;flex-direction:column;gap:11px}
.workspace-welcome{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 22px;min-height:105px;border-radius:16px;background:linear-gradient(110deg,#102c4a 0%,#153e72 60%,#2064a1 100%);color:#fff;box-shadow:0 12px 30px rgba(14,48,86,.16);position:relative;overflow:hidden}
.workspace-welcome:after{content:"";position:absolute;left:-60px;top:-120px;width:300px;height:300px;border-radius:50%;border:1px solid rgba(255,255,255,.08);box-shadow:0 0 0 26px rgba(255,255,255,.025),0 0 0 58px rgba(255,255,255,.018);pointer-events:none}
.welcome-brand{display:flex;align-items:center;gap:14px;min-width:0}.welcome-brand>img{width:65px;height:65px;object-fit:contain;border-radius:14px;background:rgba(255,255,255,.10);padding:5px;box-shadow:inset 0 1px 0 rgba(255,255,255,.14)}.welcome-brand .eyebrow{color:#95c9ff;font-size:9px;direction:ltr;justify-content:flex-start}.welcome-brand h1{margin:4px 0 2px;color:#fff;font-size:24px;font-weight:900;letter-spacing:-.5px}.welcome-brand h1 b{color:#74d5ee}.welcome-brand p{margin:0;color:#ccddf1;font-size:9px;line-height:1.8}.dot-sep{color:#68c8e5;padding:0 5px}.welcome-status{position:relative;z-index:1;display:flex;align-items:flex-end;justify-content:flex-end;gap:6px;flex-wrap:wrap;max-width:360px}.status-pill{display:inline-flex;align-items:center;gap:6px;padding:6px 9px;border-radius:99px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:#d7e7f8;font-size:8px;white-space:nowrap}.status-pill i{width:6px;height:6px;border-radius:50%;background:#58d6a6}.status-pill.status-warn i{background:#ffc56c}.status-pill.status-ok{background:rgba(41,197,141,.1);color:#bdffe4}
.quick-actions-strip{display:flex;align-items:center;gap:6px;flex-wrap:wrap;padding:7px 9px;background:#fff;border:1px solid #dce5ef;border-radius:12px;box-shadow:0 3px 12px rgba(17,48,85,.035)}
.quick-action-chip{display:flex;align-items:center;gap:7px;min-height:39px;padding:5px 9px;border:1px solid #e3eaf3;border-radius:9px;background:#fcfdff;color:#314760;font-family:inherit;font-size:9px;font-weight:800;cursor:pointer;transition:.15s}.quick-action-chip:hover{transform:translateY(-1px);border-color:#b8d1f3;box-shadow:0 5px 14px rgba(27,79,141,.08);background:#f5f9ff}.chip-icon{width:26px;height:26px;display:grid;place-items:center;border-radius:7px;font-size:12px;font-weight:900}.chip-blue{color:#2670d8;background:#eaf2ff}.chip-orange{color:#b97720;background:#fff1dc}.chip-purple{color:#7456de;background:#f0edff}.chip-green{color:#168460;background:#e5f8f0}.chip-red{color:#cf526a;background:#fff0f3}.chip-indigo{color:#5a69ca;background:#edf0ff}.chip-teal{color:#168f97;background:#e4f8fa}.chip-slate{color:#59728c;background:#eef2f7}.quick-action-chip kbd{font-family:Tahoma;border:1px solid #e4eaf1;border-radius:5px;background:#f6f8fb;color:#8a9aaf;font-size:7px;padding:2px 4px;margin-right:2px}
.desktop-panel{min-width:0;border:1px solid #dce5ef;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 5px 18px rgba(20,46,80,.055)}.desktop-panel-head{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 15px;border-bottom:1px solid #e7edf4;background:linear-gradient(180deg,#fff,#fbfdff)}.desktop-panel-title{display:flex;align-items:center;gap:10px}.desktop-status-dot{width:8px;height:8px;border-radius:50%;background:#24c796;box-shadow:0 0 0 5px rgba(36,199,150,.1)}.desktop-panel-title h2{margin:0;font-size:14px;color:#1d3657}.desktop-panel-title p{margin:2px 0 0;color:#8796a8;font-size:9px}.tile-layout-tools{display:flex;align-items:center;gap:5px;color:#72849a;font-size:8px;white-space:nowrap}.tile-layout-tools button{width:29px;height:27px;border:1px solid #dfe7f0;background:#fff;color:#637994;border-radius:7px;font-weight:900;cursor:pointer}.tile-layout-tools button:hover,.tile-layout-tools button.active{background:#eaf3ff;border-color:#b7d0f4;color:#246fd1}.tile-tool-separator{width:1px;height:20px;background:#e2e8f0;margin:0 4px}.tile-layout-tools .tile-close-all{width:auto;padding:0 9px;color:#a34f5f;background:#fff5f6;border-color:#f3d5da}
.workspace-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:11px;background:#f5f8fc;align-items:start;direction:rtl}.workspace-tiles[data-cols="1"]{grid-template-columns:minmax(0,1fr)}.workspace-tiles[data-cols="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-tiles[data-cols="3"]{grid-template-columns:repeat(3,minmax(0,1fr))}.tile-window{min-width:0;min-height:250px;overflow:hidden;border:1px solid #d4e0ec;border-radius:11px;background:#fff;box-shadow:0 3px 11px rgba(17,47,83,.075);display:flex;flex-direction:column;transition:border-color .15s,box-shadow .15s}.tile-window:hover{border-color:#b2cae8;box-shadow:0 8px 22px rgba(17,47,83,.10)}.tile-window.is-wide{grid-column:1/-1}.workspace-tiles[data-cols="1"] .tile-window{grid-column:1/-1}.tile-window.minimized{display:none}.tile-window-bar{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:43px;padding:6px 9px;background:linear-gradient(100deg,#12365d,#1d4e7c);color:#fff;border-bottom:2px solid #36a5c3}.tile-window-heading{display:flex;align-items:center;gap:8px;min-width:0}.tile-window-heading img{width:27px;height:27px;object-fit:contain;background:rgba(255,255,255,.1);border-radius:7px;padding:2px}.tile-window-heading div{min-width:0}.tile-window-heading strong{display:block;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:#fff}.tile-window-heading small{display:block;color:#a9c8e5;font-size:7px}.tile-controls{display:flex;gap:4px;flex:0 0 auto}.tile-control{width:24px;height:24px;display:grid;place-items:center;padding:0;border:1px solid rgba(255,255,255,.13);border-radius:6px;background:rgba(255,255,255,.07);color:#e2effe;font-family:Tahoma;font-size:12px;cursor:pointer}.tile-control:hover,.tile-control.selected{background:rgba(255,255,255,.18);color:#fff}.tile-control.close:hover{background:#b84358;border-color:#b84358}.tile-iframe-wrap{min-height:0;flex:1;background:#f8fafc}.tile-iframe-wrap iframe{display:block;width:100%;height:470px;border:0;background:#f8fafc}.tile-window.is-wide .tile-iframe-wrap iframe{height:580px}.workspace-tiles[data-cols="3"] .tile-iframe-wrap iframe{height:420px}
.desktop-empty-state{grid-column:1/-1;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:240px;text-align:center;border:1px dashed #cad8e8;border-radius:11px;background:linear-gradient(180deg,#fbfdff,#f4f8fd);padding:25px}.empty-logo-wrap{display:grid;place-items:center;width:57px;height:57px;border-radius:15px;background:#eaf3ff;border:1px solid #d8e7fb;margin-bottom:10px}.empty-logo-wrap img{width:48px;height:48px;object-fit:contain}.desktop-empty-state strong{font-size:12px;color:#254262}.desktop-empty-state p{font-size:9px;color:#8192a7;margin:4px 0 13px}.empty-shortcuts{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.empty-shortcuts span{display:flex;gap:7px;padding:5px 8px;border:1px solid #e0e9f4;border-radius:7px;background:#fff;color:#6b809a;font-size:8px}.empty-shortcuts b{color:#2874cb}
.workspace-dock-wrap{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border-top:1px solid #e3eaf2;background:#fff}.dock-label{display:flex;align-items:center;gap:6px;white-space:nowrap;color:#71849b;font-size:8px;padding:6px 1px}.dock-label span{width:6px;height:6px;border-radius:50%;background:#4d94e8}.window-dock{display:flex;flex:1;min-width:0;align-items:center;gap:5px;overflow-x:auto;padding:1px 0 4px}.dock-empty{font-size:8px;color:#a1adbc;padding:6px}.dock-window{display:flex;align-items:center;gap:3px;flex:0 0 auto;max-width:220px;padding:3px;border:1px solid #e0e8f1;border-radius:8px;background:#f8fbff}.dock-window.minimized{border-color:#8bb5ec;background:#edf5ff}.dock-open{display:flex;align-items:center;gap:6px;max-width:165px;border:0;background:transparent;color:#59728e;font-family:inherit;font-size:8px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;cursor:pointer;padding:4px}.dock-window-state{width:6px;height:6px;border-radius:50%;background:#3491e6}.dock-x{width:21px;height:21px;border:0;border-radius:5px;background:transparent;color:#9aa8b9;font-size:14px;cursor:pointer}.dock-x:hover{background:#ffe9ed;color:#c34e62}.home-footer-note{padding:8px 12px;border:1px solid #dbe8f0;border-radius:9px;background:#f7fbfd;color:#72899c;font-size:8px}.home-footer-note>span{color:#17a87b;margin-left:5px}
/* Embedded forms look like compact desktop accounting windows. */
.embedded-window{min-height:100vh;background:#f4f7fb;color:#1e314a;font-size:12px;overflow-x:hidden}.embedded-content{padding:11px;background:#f5f8fc;min-height:100vh}.operation-work-area{min-width:0;direction:rtl}.operation-section-title{margin:0 0 5px;padding:0 0 7px;border-bottom:1px solid #dde7f1;color:#203b5e;font-size:14px;line-height:1.7}.haseb-operation-root>h2+ p.muted{margin:0 0 10px;font-size:9px;color:#768ba2}.haseb-operation-root .card,.haseb-operation-root .subcard{border-radius:8px;box-shadow:none;border-color:#d7e2ee;padding:10px;background:#fff}.haseb-operation-root .form-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.haseb-operation-root .form-grid label,.haseb-operation-root .card label{font-size:9px}.haseb-operation-root .form-grid input,.haseb-operation-root .form-grid select,.haseb-operation-root .card input,.haseb-operation-root .card select,.haseb-operation-root .card textarea,.haseb-operation-root .inline-form input,.haseb-operation-root .inline-form select{font-size:10px;padding:7px 8px;border-radius:7px;min-height:31px}.haseb-operation-root .button,.haseb-operation-root .form-command{font-size:9px;padding:7px 10px;border-radius:7px}.haseb-operation-root .journal-row{grid-template-columns:minmax(145px,2fr) repeat(3,minmax(70px,1fr)) minmax(75px,1fr) auto;gap:5px;padding:6px;border:1px solid #e2eaf3;border-radius:7px;background:#f8fafc;margin:5px 0}.haseb-operation-root .journal-row input,.haseb-operation-root .journal-row select{min-width:0;border-radius:6px;border:1px solid #dce5ef;padding:7px;font-size:9px;background:#fff}.haseb-operation-root .workspace-table{border-spacing:0;width:100%;font-size:9px}.haseb-operation-root .workspace-table thead th{position:sticky;top:0;background:#e9f1fa;color:#4d6886;padding:8px 7px;border-bottom:1px solid #cad8e8}.haseb-operation-root .workspace-table tbody td{padding:7px;border-bottom:1px solid #eaf0f6;color:#314761}.haseb-operation-root .workspace-table tbody tr:nth-child(even){background:#f9fbfe}.haseb-operation-root .workspace-table tbody tr:hover{background:#eef6ff}.haseb-operation-root .table-wrap{max-height:370px;overflow:auto;border:1px solid #e0e8f1;border-radius:7px}.haseb-operation-root .inline-note{margin:8px 0;padding:8px 10px;border-radius:7px;font-size:9px;line-height:1.9}.haseb-operation-root .warn-note{background:#fff8e9;border-color:#f1dfb8;color:#85642a}.haseb-operation-root .report-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.haseb-operation-root .report-choice{padding:10px;border-radius:8px}.haseb-operation-root .report-choice b{font-size:10px}.haseb-operation-root .report-choice small{font-size:8px}.form-section-head,.report-workspace-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid #dfe8f2}.form-section-head h2,.report-workspace-head h2{margin:0 0 2px;font-size:14px;color:#203c5d}.form-section-head p,.report-workspace-head p{margin:0;color:#7c8fa5;font-size:9px}.compact-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:end;padding:10px;border:1px solid #dfe7f1;border-radius:8px;background:#fff;margin-bottom:10px}.compact-form label{display:flex;flex-direction:column;gap:4px;color:#5b708a;font-size:9px;font-weight:800}.compact-form input,.compact-form select{width:100%;min-width:0;border:1px solid #d5e1ed;border-radius:6px;padding:7px 8px;font:inherit;font-size:10px;background:#fff;color:#213651;min-height:31px}.compact-form input:focus,.compact-form select:focus{outline:0;border-color:#7daeea;box-shadow:0 0 0 3px rgba(67,130,210,.10)}.compact-form .form-span-2{grid-column:span 2}.check-inline{display:flex!important;flex-direction:row!important;align-items:center;gap:7px!important}.check-inline input{width:auto}.bank-form{grid-template-columns:repeat(3,minmax(0,1fr))}.segmented-switch{display:flex;align-items:center;gap:4px;padding:3px;background:#edf3fa;border-radius:8px}.segmented-switch button{border:0;border-radius:6px;padding:6px 10px;background:transparent;color:#687e98;font-family:inherit;font-size:9px;cursor:pointer}.segmented-switch button.active{background:#fff;color:#236ec1;box-shadow:0 1px 4px rgba(15,43,76,.1)}.status-chip{display:inline-flex;align-items:center;padding:5px 8px;border-radius:99px;font-size:8px;font-weight:900}.status-chip.good{background:#e4f8ef;color:#14845d}.status-chip.warn{background:#fff4dd;color:#9b681b}.catalog-feature{display:flex;gap:12px;padding:15px;border:1px solid #dbe5f0;background:#fff;border-radius:9px;box-shadow:0 2px 7px rgba(15,46,82,.03)}.catalog-feature-icon{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:#eaf3ff;color:#276fc7;font-size:19px}.catalog-feature-body{min-width:0;flex:1}.feature-state{display:inline-block;color:#7d8fa4;font-size:8px;margin:0 0 3px}.catalog-feature h2{margin:0 0 5px;color:#203b5b;font-size:14px}.catalog-feature p{margin:0 0 10px;color:#687e97;font-size:10px;line-height:2}.schema-hint{display:flex;align-items:flex-start;flex-direction:column;gap:3px;border:1px dashed #d9e4ef;background:#f8fbfe;border-radius:7px;padding:8px;margin:8px 0}.schema-hint small{font-size:8px;color:#8a9cb0}.schema-hint code{font-family:Consolas,monospace;font-size:8px;direction:ltr;unicode-bidi:isolate;overflow-wrap:anywhere;color:#3b5a7b}.catalog-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:8px 0}.form-command{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid #d8e3ef;border-radius:7px;padding:8px 10px;background:#fff;color:#355571;font-family:inherit;font-size:9px;font-weight:800;text-align:right;cursor:pointer}.form-command:hover{background:#f0f6ff;border-color:#bfd4f0;color:#246ec3}.form-command.primary{background:linear-gradient(120deg,#2475d5,#2ca8c9);color:#fff;border-color:#2b88c8}.catalog-links small{display:block;color:#8595a9;font-size:8px;font-weight:400;margin-top:2px}.operation-error{padding:18px;border:1px solid #f0cbd0;border-radius:9px;background:#fff7f8;color:#8e3747}.operation-error strong{font-size:12px}.operation-error p{font-size:10px;direction:rtl;unicode-bidi:plaintext;overflow-wrap:anywhere}
@media(max-width:1500px){.haseb-topbar{gap:7px;padding:6px}.haseb-brand{flex-basis:122px;min-width:115px}.haseb-brand img{width:37px;height:37px}.haseb-brand strong{font-size:13px}.module-ribbon .ribbon-button{padding:4px 6px;min-width:52px;gap:4px;font-size:9px}.module-ribbon .ribbon-button small{display:none}.haseb-app-grid{grid-template-columns:minmax(0,1fr) 215px}.quick-rail{padding-right:7px;padding-left:7px}.top-tool{padding:5px 6px}}
@media(max-width:1120px){.haseb-topbar{height:auto;min-height:76px;flex-wrap:wrap;padding:8px 10px}.haseb-brand{flex:0 0 auto}.module-ribbon{order:3;flex-basis:100%;max-width:100%;height:43px}.module-ribbon .ribbon-button{height:38px}.top-user-tools{margin-right:auto}.haseb-app-grid{grid-template-columns:minmax(0,1fr) 192px;min-height:calc(100vh - 120px)}.quick-rail{top:120px;height:calc(100vh - 120px)}.haseb-main{padding:12px}.workspace-welcome{padding:15px}.welcome-brand h1{font-size:20px}.workspace-tiles[data-cols="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}.workspace-tiles[data-cols="3"] .tile-iframe-wrap iframe{height:430px}}
@media(max-width:760px){.haseb-topbar{position:relative}.haseb-brand{min-width:0}.haseb-brand small{display:none}.top-year,.top-separator,.top-current-user{display:none}.top-user-tools .top-tool small{display:none}.top-user-tools .top-tool{padding:7px}.haseb-app-grid{display:flex;flex-direction:column;min-height:auto}.haseb-main{order:1;padding:9px}.quick-rail{order:2;position:static;height:auto;max-height:none;overflow:visible;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.quick-rail-head,.quick-rail-footer,.license-required-rail{grid-column:1/-1}.quick-command{grid-template-columns:25px minmax(0,1fr);font-size:9px}.quick-command kbd{display:none}.workspace-welcome{align-items:flex-start;flex-direction:column}.welcome-status{max-width:none;justify-content:flex-start}.welcome-brand>img{width:50px;height:50px}.welcome-brand h1{font-size:18px}.quick-actions-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.quick-action-chip{justify-content:flex-start}.desktop-panel-head{align-items:flex-start;flex-direction:column}.workspace-tiles,.workspace-tiles[data-cols="1"],.workspace-tiles[data-cols="2"],.workspace-tiles[data-cols="3"]{grid-template-columns:minmax(0,1fr)}.tile-window,.tile-window.is-wide{grid-column:1/-1}.tile-iframe-wrap iframe,.tile-window.is-wide .tile-iframe-wrap iframe,.workspace-tiles[data-cols="3"] .tile-iframe-wrap iframe{height:520px}.workspace-dock-wrap{flex-direction:column;gap:4px}.window-dock{width:100%}.compact-form,.bank-form{grid-template-columns:repeat(2,minmax(0,1fr))}.haseb-operation-root .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.haseb-operation-root .journal-row{grid-template-columns:1fr 1fr}.catalog-links{grid-template-columns:1fr}}
@media(max-width:460px){.module-ribbon .ribbon-button{min-width:45px;padding:3px 5px}.module-ribbon .ribbon-button span:not(.ribbon-icon){font-size:8px}.welcome-brand{align-items:flex-start}.welcome-brand h1{font-size:16px}.welcome-brand p{font-size:8px}.top-user-tools{gap:2px}.top-tool kbd{display:none}.quick-actions-strip{grid-template-columns:1fr 1fr}.quick-action-chip{padding:5px}.tile-iframe-wrap iframe,.tile-window.is-wide .tile-iframe-wrap iframe{height:560px}.compact-form,.bank-form,.haseb-operation-root .form-grid{grid-template-columns:1fr}.compact-form .form-span-2{grid-column:span 1}.tile-layout-tools{flex-wrap:wrap}.form-section-head,.report-workspace-head{align-items:flex-start;flex-direction:column}}

#notifyHost{position:fixed;left:18px;bottom:18px;z-index:300;display:flex;flex-direction:column;gap:7px;pointer-events:none}.sh-toast{max-width:min(440px,92vw);padding:10px 14px;border-radius:9px;background:#163d63;color:#fff;font-size:10px;line-height:1.9;box-shadow:0 12px 30px rgba(8,31,58,.25);border:1px solid rgba(255,255,255,.10);pointer-events:auto}.sh-toast.toast-error{background:#923b4d}.sh-toast.toast-success{background:#176e59}.shell-notice{position:fixed;left:20px;bottom:20px;z-index:300;max-width:min(420px,92vw);padding:10px 14px;border-radius:9px;background:#163d63;color:#fff;box-shadow:0 12px 28px rgba(8,31,58,.23);font-size:10px;opacity:0;transform:translateY(8px);transition:.16s;pointer-events:none}.shell-notice.show{opacity:1;transform:translateY(0)}


/* 1.1.1 header and larger tiled workspace adjustments */
.haseb-header-shell{position:sticky;top:0;z-index:120;box-shadow:0 5px 18px rgba(21,52,87,.14)}
.haseb-topbar{height:72px;min-height:72px;position:relative;top:auto;z-index:auto;display:flex;gap:12px;padding:7px 14px;background:linear-gradient(100deg,#173d66 0%,#204e79 55%,#2b6390 100%);border-bottom:1px solid rgba(255,255,255,.10);box-shadow:none}
.haseb-brand{flex:0 0 auto;min-width:152px;gap:9px}
.haseb-brand img{width:43px;height:43px}
.header-company-context{display:flex;flex:1 1 260px;min-width:170px;flex-direction:column;justify-content:center;gap:1px;padding:0 12px;border-right:1px solid rgba(255,255,255,.14);overflow:hidden}
.header-company-context strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff;font-size:11px;font-weight:900}
.header-company-context span{color:#d9eafe;font-size:10px;font-weight:800;white-space:nowrap}
.header-company-context small{color:#b8d2ec;font-size:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.header-status-context{display:flex;flex:0 1 auto;align-items:center;justify-content:flex-start;gap:5px;max-width:390px;min-width:0;flex-wrap:wrap}
.header-status-pill{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:5px 8px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.08);color:#edf6ff;font-size:8px;font-weight:800;white-space:nowrap}
.header-status-pill i{display:inline-block;width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#4adeb1}
.header-status-pill.is-warn i{background:#ffc86c}
.header-status-pill.is-ok{background:rgba(48,204,145,.11);border-color:rgba(90,228,175,.2)}
.top-user-tools{gap:4px;order:0;margin-right:auto}
.top-tool{min-width:37px;min-height:37px;padding:5px 8px;border-color:rgba(255,255,255,.10);background:rgba(255,255,255,.075);border-radius:9px}
.top-tool small{font-size:8px}
.quick-rail-toggle[aria-pressed="true"]{background:rgba(72,190,234,.22);border-color:rgba(99,206,243,.38)}
.module-ribbon-row{background:linear-gradient(100deg,#244e77 0%,#2b5a84 60%,#315f89 100%);padding:5px 10px 7px;border-bottom:1px solid #c9d9ea;box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.module-ribbon{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:4px;align-items:stretch;flex:none;width:100%;max-width:none;min-width:0;overflow:visible;overflow-x:visible;overflow-y:visible;scrollbar-width:none;padding:0}
.module-ribbon .ribbon-button{position:relative;display:flex;flex:initial;min-width:0;width:100%;height:43px;padding:4px 5px;gap:5px;border:1px solid rgba(196,222,249,.11);border-radius:8px;background:rgba(8,31,58,.12);font-size:9px;white-space:normal;line-height:1.4}
.module-ribbon .ribbon-button>span:not(.ribbon-icon){min-width:0;text-align:center;overflow-wrap:anywhere}
.module-ribbon .ribbon-button small{position:absolute;top:2px;left:3px;align-self:auto;font-size:7px;padding:0 3px;color:#acc9e8;background:rgba(255,255,255,.055)}
.module-ribbon .ribbon-icon{width:22px;height:22px;flex:0 0 22px}
.module-ribbon .ribbon-button.active:after,.module-ribbon .ribbon-button[aria-expanded=true]:after{left:7px;right:7px;bottom:0}
.haseb-app-grid{grid-template-columns:minmax(0,1fr) 236px;min-height:calc(100vh - 124px)}
.haseb-main{min-height:calc(100vh - 124px);padding:12px 14px 20px;background:linear-gradient(145deg,#edf4fb 0%,#f7f9fc 65%,#e9f2f8 100%)}
.quick-rail{top:124px;height:calc(100vh - 124px);background:linear-gradient(180deg,#173958 0%,#122f4d 100%);border-left:1px solid rgba(255,255,255,.10)}
.quick-rail-head{padding:5px 8px 9px}
.rail-tools{border:1px solid rgba(137,190,241,.12);cursor:pointer;font-family:inherit}
.haseb-app-grid.quick-rail-hidden{grid-template-columns:minmax(0,1fr)}
.haseb-app-grid.quick-rail-hidden .quick-rail{display:none}
.haseb-home{gap:8px;max-width:none}
.desktop-panel{min-height:calc(100vh - 150px);border-radius:13px;box-shadow:0 4px 15px rgba(20,46,80,.05)}
.desktop-panel-head{min-height:64px;padding:10px 14px}
.workspace-tiles{min-height:calc(100vh - 250px);gap:9px;padding:10px;background:#f2f6fb;align-items:stretch}
.tile-window{min-height:0;height:auto}
.tile-window.is-wide{grid-column:1/-1}
.tile-iframe-wrap iframe{height:clamp(570px,calc(100vh - 305px),900px);min-height:570px}
.tile-window.is-wide .tile-iframe-wrap iframe{height:clamp(620px,calc(100vh - 275px),930px);min-height:620px}
.workspace-tiles[data-cols="3"] .tile-iframe-wrap iframe{height:clamp(570px,calc(100vh - 305px),900px);min-height:570px}
/* Forms are now comfortably readable instead of compressed into tiny desktop widgets. */
.embedded-content{padding:14px;background:#f5f8fc}
.embedded-window{font-size:13px}
.haseb-operation-root>h2+ p.muted{font-size:11px;line-height:1.9}
.haseb-operation-root .form-grid{gap:10px}
.haseb-operation-root .form-grid label,.haseb-operation-root .card label{font-size:11px}
.haseb-operation-root .form-grid input,.haseb-operation-root .form-grid select,.haseb-operation-root .card input,.haseb-operation-root .card select,.haseb-operation-root .card textarea,.haseb-operation-root .inline-form input,.haseb-operation-root .inline-form select{font-size:12px;min-height:36px;padding:8px 10px}
.haseb-operation-root .button,.haseb-operation-root .form-command{font-size:11px;padding:8px 12px}
.haseb-operation-root .workspace-table{font-size:11px}
.haseb-operation-root .workspace-table thead th,.haseb-operation-root .workspace-table tbody td{padding:9px 8px}
.haseb-operation-root .compact-form label{font-size:11px}
.haseb-operation-root .compact-form input,.haseb-operation-root .compact-form select{font-size:12px;min-height:36px;padding:8px 10px}
@media(max-width:1600px){
  .module-ribbon{grid-template-columns:repeat(6,minmax(0,1fr))}
  .haseb-topbar{gap:8px;height:72px;min-height:72px;flex-wrap:nowrap}
  .header-status-context{max-width:330px}
  .haseb-app-grid{min-height:calc(100vh - 174px)}
  .haseb-main{min-height:calc(100vh - 174px)}
  .quick-rail{top:174px;height:calc(100vh - 174px)}
}
@media(max-width:1250px){
  .module-ribbon{grid-template-columns:repeat(4,minmax(0,1fr))}
  .header-status-context{max-width:260px}
  .header-status-pill{font-size:7px;padding:4px 6px}
  .haseb-app-grid{grid-template-columns:minmax(0,1fr) 205px}
  .quick-rail{top:221px;height:calc(100vh - 221px)}
  .haseb-app-grid{min-height:calc(100vh - 221px)}
  .haseb-main{min-height:calc(100vh - 221px)}
}
@media(max-width:900px){
  .haseb-header-shell{position:relative}
  .haseb-topbar{height:auto;min-height:70px;flex-wrap:wrap;padding:8px}
  .haseb-brand{min-width:120px}
  .header-company-context{flex:1 1 170px;min-width:140px}
  .header-status-context{flex:1 1 100%;order:4;max-width:none;padding:3px 0}
  .top-user-tools{margin-right:auto}
  .module-ribbon{grid-template-columns:repeat(3,minmax(0,1fr))}
  .module-ribbon-row{padding:6px}
  .module-ribbon .ribbon-button{height:42px}
  .haseb-app-grid{grid-template-columns:minmax(0,1fr) 190px;min-height:0}
  .quick-rail{position:relative;top:auto;height:auto;max-height:none;overflow:visible}
  .workspace-tiles,.workspace-tiles[data-cols="2"],.workspace-tiles[data-cols="3"]{grid-template-columns:minmax(0,1fr)}
  .tile-window,.tile-window.is-wide{grid-column:1/-1}
  .tile-iframe-wrap iframe,.tile-window.is-wide .tile-iframe-wrap iframe{height:680px;min-height:680px}
}
@media(max-width:760px){
  .module-ribbon{grid-template-columns:repeat(2,minmax(0,1fr))}
  .haseb-app-grid{display:flex;flex-direction:column;min-height:auto}
  .haseb-main{order:1;padding:8px}
  .quick-rail{order:2;position:static;height:auto;max-height:none;overflow:visible;display:flex;flex-direction:column}
  .haseb-app-grid.quick-rail-hidden .quick-rail{display:none}
  .header-company-context small{display:none}
  .header-status-context{gap:4px}
  .header-status-pill{white-space:normal}
  .desktop-panel-head{align-items:flex-start;flex-direction:column}
  .workspace-tiles,.workspace-tiles[data-cols="1"],.workspace-tiles[data-cols="2"],.workspace-tiles[data-cols="3"]{grid-template-columns:minmax(0,1fr)}
  .tile-window,.tile-window.is-wide{grid-column:1/-1}
  .tile-iframe-wrap iframe,.tile-window.is-wide .tile-iframe-wrap iframe{height:690px;min-height:690px}
}
@media(max-width:900px){
  .quick-rail{position:relative;top:auto;height:auto;max-height:none;overflow:visible}
}


/* 1.1.2 responsive navigation/workspace correction */
.haseb-header-shell{position:relative;top:auto;z-index:120;box-shadow:0 2px 10px rgba(21,52,87,.10)}
.haseb-topbar{height:auto;min-height:64px;gap:8px;padding:6px 10px;flex-wrap:nowrap}
.haseb-brand{min-width:112px}
.header-company-context{min-width:0;flex:1 1 auto;padding-inline:8px}
.header-status-context{max-width:300px;flex-wrap:nowrap;overflow:hidden}
.header-status-pill{font-size:8px;padding:4px 6px}
.top-user-tools{flex:0 0 auto;gap:3px}
.top-tool{min-width:32px;min-height:33px;padding:4px 6px}
.module-ribbon-row{padding:4px 8px;background:#244e77;overflow:hidden}
.module-ribbon{display:flex;flex-wrap:nowrap;gap:5px;width:100%;overflow-x:auto;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:#91b1d2 transparent;padding:1px 0 4px;align-items:center}
.module-ribbon .ribbon-button{display:flex;flex:0 0 auto;width:auto;min-width:max-content;height:34px;padding:4px 9px;gap:6px;white-space:nowrap;line-height:1.2;font-size:10px}
.module-ribbon .ribbon-button>span:not(.ribbon-icon){white-space:nowrap;overflow-wrap:normal}
.module-ribbon .ribbon-button small{position:static;font-size:8px;padding:0 3px;margin-inline-start:2px}
.module-ribbon .ribbon-icon{width:18px;height:18px;flex:0 0 18px}
.haseb-app-grid{grid-template-columns:minmax(0,1fr) 205px;min-height:0;align-items:stretch}
.haseb-main{min-width:0;min-height:0;padding:10px;background:#f2f6fb}
.page-host{min-width:0;width:100%}
.quick-rail{position:relative;top:auto;height:auto;max-height:calc(100vh - 120px);align-self:start;overflow-y:auto;overflow-x:hidden}
.workspace-tiles{min-height:0;align-items:stretch}
.tile-window,.tile-window.is-wide{min-width:0;max-width:100%}
.tile-iframe-wrap{min-width:0;max-width:100%;overflow:auto}
.tile-iframe-wrap iframe,.tile-window.is-wide .tile-iframe-wrap iframe,.workspace-tiles[data-cols="3"] .tile-iframe-wrap iframe{width:100%;min-width:0;height:clamp(520px,calc(100vh - 205px),1000px);min-height:520px}
@media(max-width:1250px){
 .haseb-app-grid{grid-template-columns:minmax(0,1fr) 180px}
 .header-status-context{max-width:220px}
 .haseb-topbar{gap:5px}
 .haseb-brand{min-width:95px}
}
@media(max-width:900px){
 .haseb-topbar{flex-wrap:wrap;min-height:0}
 .haseb-brand{min-width:100px}
 .header-company-context{flex:1 1 160px}
 .header-status-context{order:5;flex:1 1 100%;max-width:none;flex-wrap:wrap;overflow:visible}
 .module-ribbon{display:flex;flex-wrap:nowrap;overflow-x:auto}
 .haseb-app-grid{display:flex;flex-direction:column;min-height:0}
 .haseb-main{order:1;width:100%;min-width:0;padding:8px}
 .quick-rail{order:2;position:relative;top:auto;width:100%;max-height:none;height:auto;overflow:visible}
 .haseb-app-grid.quick-rail-hidden .quick-rail{display:none}
 .workspace-tiles,.workspace-tiles[data-cols="1"],.workspace-tiles[data-cols="2"],.workspace-tiles[data-cols="3"]{grid-template-columns:minmax(0,1fr);padding:6px;gap:8px}
 .tile-window,.tile-window.is-wide{grid-column:1/-1;width:100%;min-width:0}
 .tile-iframe-wrap iframe,.tile-window.is-wide .tile-iframe-wrap iframe,.workspace-tiles[data-cols="3"] .tile-iframe-wrap iframe{height:clamp(520px,72vh,850px);min-height:520px;width:100%;min-width:0}
 .desktop-panel{min-height:0}
}
@media(max-width:600px){
 .haseb-topbar{padding:7px;gap:6px}
 .haseb-brand{min-width:78px;gap:5px}
 .haseb-brand img{width:36px;height:36px}
 .haseb-brand strong{font-size:12px}
 .haseb-brand small{display:none}
 .header-company-context{min-width:0;padding-inline:5px}
 .header-company-context strong{font-size:10px}
 .header-company-context span{font-size:9px}
 .top-user-tools{gap:3px}
 .top-tool{min-width:30px;min-height:31px;padding:3px 5px}
 .top-tool small,.top-tool kbd{display:none}
 .module-ribbon-row{padding:4px 6px}
 .module-ribbon .ribbon-button{height:36px;min-width:max-content;padding:5px 8px;font-size:11px}
 .module-ribbon .ribbon-icon{width:19px;height:19px;flex-basis:19px}
 .haseb-main{padding:6px}
 .workspace-welcome{padding:13px;gap:10px;flex-wrap:wrap}
 .workspace-tiles{padding:5px}
 .tile-iframe-wrap iframe,.tile-window.is-wide .tile-iframe-wrap iframe,.workspace-tiles[data-cols="3"] .tile-iframe-wrap iframe{height:72vh;min-height:500px}
 .embedded-content{padding:8px}
 .haseb-operation-root .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .haseb-operation-root .form-grid label,.haseb-operation-root .card label{font-size:11px}
 .haseb-operation-root .form-grid input,.haseb-operation-root .form-grid select,.haseb-operation-root .card input,.haseb-operation-root .card select,.haseb-operation-root .card textarea{max-width:100%;min-width:0;font-size:14px;min-height:40px}
 .haseb-operation-root .workspace-table{font-size:11px}
 .haseb-operation-root .workspace-table th,.haseb-operation-root .workspace-table td{white-space:nowrap}
}
@media(max-width:380px){.haseb-operation-root .form-grid{grid-template-columns:minmax(0,1fr)}}

/* Shahriar 1.1.4 — Haseb-style tab workspace, turquoise navigation and readable forms */
:root{--sh-turquoise:#16b6c9;--sh-turquoise-deep:#087f93;--sh-navy:#12365d;--sh-ink:#19314d;--sh-surface:#f3f8fb;--sh-border:#d9e8ee;--sh-font-scale:1}
html,body{font-size:15px}
.haseb-topbar,.module-ribbon-row{position:relative!important;top:auto!important;z-index:20}
.haseb-topbar{background:linear-gradient(110deg,#123a66 0%,#185985 45%,#087f93 100%);box-shadow:0 3px 14px rgba(6,49,80,.15)}
.module-ribbon-row{background:#eef8fb;border-bottom:1px solid #cde6ed;box-shadow:0 2px 5px rgba(10,65,87,.06)}
.module-ribbon{gap:5px;padding:7px 10px}
.module-ribbon .ribbon-button{min-height:40px;padding:6px 10px;font-size:12px!important;border-radius:9px;border:1px solid #c8e3eb;background:linear-gradient(#fff,#f4fbfd);color:#1c4b68;box-shadow:0 1px 2px rgba(13,75,95,.05)}
.module-ribbon .ribbon-button:hover,.module-ribbon .ribbon-button.active{border-color:#50c9d6;background:linear-gradient(#ddf8fb,#c5eff4);color:#075e70}
.module-ribbon .ribbon-button small{display:none!important}
.module-ribbon .ribbon-icon{font-size:17px;color:#0898ad}
.haseb-app-grid{min-height:0!important;align-items:stretch;grid-template-columns:minmax(0,1fr) 205px}
.haseb-main{min-width:0;padding:11px;background:radial-gradient(circle at 10% 5%,rgba(23,182,201,.11),transparent 24%),linear-gradient(135deg,#f0f8fa,#f7f9fd 72%)}
.page-host{min-width:0;width:100%}
.haseb-home{max-width:none;gap:8px}
.desktop-panel{height:calc(100svh - 200px);min-height:580px;display:flex;flex-direction:column;border:1px solid #d7e6ed;border-radius:13px;background:#fff;box-shadow:0 7px 26px rgba(13,57,88,.08);overflow:hidden}
.desktop-panel-head{flex:0 0 auto;min-height:60px;padding:9px 14px;background:linear-gradient(110deg,#fff,#f0fbfc);border-bottom:1px solid #dcecf1}
.desktop-panel-title h2{font-size:17px;font-weight:900;color:#193b5d}
.desktop-panel-title p{font-size:12px;color:#6d8799}
.tile-layout-tools{display:flex;gap:6px;align-items:center}
.tile-layout-tools .tile-close-all{width:auto;min-height:34px;padding:5px 12px;border-radius:8px;font-size:12px;background:#fff1f1;border-color:#f1c7cd;color:#9e3446}
.workspace-tab-layout{display:grid;grid-template-columns:42px minmax(0,1fr);direction:ltr;flex:1 1 auto;min-height:0;overflow:hidden;background:#f2f7fa}
.window-dock{width:42px;min-width:42px;height:100%;display:flex;flex-direction:column;align-items:stretch;gap:4px;overflow-y:auto;overflow-x:hidden;padding:8px 4px;background:linear-gradient(180deg,#123e67,#0b718a 68%,#0c8e9a);border-right:1px solid #087589;border-left:1px solid #c2e5eb}
.dock-empty{display:block;padding:8px 1px;color:#d9f6fa;font-size:10px;line-height:1.5;writing-mode:vertical-rl;align-self:center}
.dock-window{width:100%;max-width:none;min-width:0;display:flex;flex-direction:column;gap:2px;align-items:center;padding:4px 2px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(255,255,255,.08);box-shadow:none}
.dock-window.active{border-color:#94f4ee;background:linear-gradient(180deg,#1ac5cf,#0a95a8);box-shadow:0 2px 7px rgba(0,0,0,.14)}
.dock-open{width:100%;max-width:none;min-width:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:8px 1px;color:#f6ffff;font-size:11px;font-weight:800;white-space:normal;overflow:visible;text-overflow:clip;border-radius:6px;line-height:1.35}
.dock-tab-label{position:relative;min-height:118px;max-height:155px}.dock-tab-label span:last-child{position:absolute;left:50%;top:50%;width:122px;max-width:none;max-height:none;transform:translate(-50%,-50%) rotate(-90deg);writing-mode:horizontal-tb;text-orientation:mixed;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:.1px;text-align:center}
.dock-window-state{width:7px;height:7px;flex:0 0 7px;background:#b6f7d9}
.dock-window.active .dock-window-state{background:#fff;box-shadow:0 0 0 3px rgba(255,255,255,.2)}
.dock-x{width:22px;height:22px;flex:0 0 22px;color:#e6fbff;border-radius:6px;background:rgba(0,25,44,.14);font-size:16px}
.dock-x:hover{background:#ffe9ed;color:#a82e42}
.workspace-views{direction:rtl;position:relative;min-width:0;min-height:0;height:100%;padding:10px;overflow:hidden;background:radial-gradient(circle at 95% 4%,rgba(22,182,201,.08),transparent 30%),linear-gradient(135deg,#f5fbfd,#f7f9fc)}
.workspace-views>.desktop-empty-state{position:absolute;inset:10px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;border:1px dashed #b7dce5;border-radius:11px;background:rgba(255,255,255,.78);padding:30px 18px;color:#61788d}
.workspace-views>.desktop-empty-state strong{font-size:22px;color:#1c405e}
.workspace-views>.desktop-empty-state p{font-size:14px;max-width:560px;line-height:1.9}
.workspace-views .empty-logo-wrap{width:72px;height:72px;margin-bottom:15px;border-radius:20px;background:#e4f7fa;border:1px solid #c5edf2;display:grid;place-items:center}
.workspace-views .empty-logo-wrap img{width:52px;height:52px;object-fit:contain}
.workspace-views .empty-shortcuts{display:flex;gap:9px;flex-wrap:wrap;justify-content:center;margin-top:12px}
.workspace-views .empty-shortcuts span{background:#fff;border:1px solid #d9e8ee;border-radius:8px;padding:8px 11px;font-size:12px}
.workspace-views .tile-window{display:none;position:relative;width:100%;height:100%;min-height:0;max-width:none;margin:0;overflow:hidden;flex-direction:column;border:1px solid #cfe1e8;border-radius:10px;background:#fff;box-shadow:0 3px 14px rgba(18,54,93,.09)}
.workspace-views .tile-window.is-active{display:flex}
.workspace-views .tile-window-bar{flex:0 0 auto;min-height:44px;padding:6px 11px;background:linear-gradient(105deg,#133e67,#087f93);border-bottom:3px solid #21c4cb}
.workspace-views .tile-window-heading strong{max-width:min(50vw,550px);font-size:14px}
.workspace-views .tile-window-heading small{font-size:10px}
.workspace-views .tile-controls .tile-control{width:29px;height:29px;font-size:17px}
.workspace-views .tile-iframe-wrap{flex:1 1 auto;min-height:0;width:100%;overflow:auto;background:#f8fbfd}
.workspace-views .tile-iframe-wrap iframe{display:block;width:100%;height:100%;min-height:470px;border:0;background:#f8fbfd}
.workspace-views .tile-window.minimized{display:none}
.haseb-operation-root{padding:17px!important;color:#233c55;font-size:15px}
.haseb-operation-root h2,.company-profile-workspace h2,.fiscal-manager h2{font-size:22px!important;font-weight:900!important;color:#1d4566!important;line-height:1.6}
.haseb-operation-root label,.company-profile-form label,.fiscal-manager label{font-size:14px!important;font-weight:700;color:#294b63;gap:6px}
.haseb-operation-root input,.haseb-operation-root select,.haseb-operation-root textarea,.company-profile-form input,.company-profile-form select,.company-profile-form textarea,.settings-field input,.settings-field select,.settings-field textarea,.fiscal-manager input{font-size:15px!important;min-height:42px;padding:8px 10px;border:1px solid #cadfe7;border-radius:8px;background:#fff;max-width:100%;width:100%;box-sizing:border-box}
.haseb-operation-root input:focus,.haseb-operation-root select:focus,.company-profile-form input:focus,.company-profile-form select:focus,.settings-field input:focus,.settings-field select:focus{outline:3px solid rgba(19,181,199,.16);border-color:#13aabc}
.haseb-operation-root .button,.haseb-operation-root button,.company-profile-form .button,.settings-form .button,.settings-form-stack .button,.fiscal-manager .button{font-size:14px;min-height:40px;border-radius:8px;padding:8px 14px;cursor:pointer}
.haseb-operation-root .workspace-table{font-size:13px}
.haseb-operation-root .workspace-table th,.haseb-operation-root .workspace-table td{padding:9px 10px}
.haseb-operation-root .form-grid{gap:12px}
.haseb-operation-root .journal-row{gap:8px;margin:7px 0}
.haseb-operation-root .journal-row input,.haseb-operation-root .journal-row select{min-height:41px;font-size:14px}
.company-profile-workspace,.fiscal-manager{display:flex;flex-direction:column;gap:14px;padding:7px;min-width:0}
.form-heading-row{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap}
.form-heading-row h2{margin:0}
.form-heading-row .muted{font-size:13px;line-height:1.8;margin:2px 0}
.company-logo-preview{width:70px;height:70px;object-fit:contain;border:1px solid #d5e6eb;border-radius:13px;background:#fff;padding:6px}
.company-profile-form{padding:18px;border:1px solid #d8e7ec;border-radius:13px;background:linear-gradient(130deg,#fff,#f8fdfe);box-shadow:0 4px 13px rgba(16,80,110,.055)}
.company-profile-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px 15px}
.company-profile-grid label{display:flex;flex-direction:column;min-width:0}
.company-profile-grid .span-two{grid-column:span 2}
.company-profile-grid small{color:#6d8797;font-size:11px;line-height:1.7}
.company-profile-grid .check{flex-direction:row;align-items:center}
.company-profile-grid .check input,.settings-field.check input{width:20px;min-height:20px;height:20px;flex:0 0 20px}
.form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.form-actions .muted{font-size:12px;line-height:1.7}
.fiscal-manager .card{padding:14px;border-radius:12px;border:1px solid var(--sh-border);background:white}
.fiscal-manager .compact-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;align-items:end}
.fiscal-manager .compact-form .button{grid-column:1/-1;justify-self:start}
.activate-year{background:#daf8f1!important;color:#087965!important;border-color:#a7e6d8!important;font-weight:900}
.status-chip.good{background:#daf8ef;color:#08795f;border:1px solid #9fe5d2;padding:4px 8px;border-radius:999px}
.haseb-settings{display:flex;flex-direction:column;gap:12px;padding:6px;min-width:0}
.settings-page-head h2{margin:0;font-size:22px;color:#173e5d}
.settings-page-head p{font-size:13px;margin:3px 0}
.haseb-settings-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:14px;align-items:start;direction:rtl;min-width:0}
.haseb-settings-content{grid-column:1;grid-row:1;min-width:0;display:flex;flex-direction:column;gap:12px}
.haseb-settings-nav{grid-column:2;grid-row:1;display:flex;flex-direction:column;gap:7px;padding:10px;border:1px solid #cae3eb;border-radius:13px;background:linear-gradient(180deg,#eaf9fc,#f9fdff);box-shadow:0 3px 13px rgba(20,74,102,.06)}
.haseb-settings-nav button{display:flex;flex-direction:column;align-items:flex-start;gap:3px;width:100%;min-height:54px;padding:9px 11px;text-align:right;border:1px solid #cfe6ed;border-radius:9px;background:#fff;color:#224862;cursor:pointer;font-family:inherit}
.haseb-settings-nav button b{font-size:13px;font-weight:900;line-height:1.5}
.haseb-settings-nav button small{font-size:10px;color:#6e8999;line-height:1.5}
.haseb-settings-nav button.active,.haseb-settings-nav button:hover{background:linear-gradient(110deg,#d5f5f8,#eaffff);border-color:#34bece;color:#065f70;box-shadow:inset 3px 0 #11aebf}
.settings-form-stack,.settings-simple-card{min-width:0;background:#fff;border:1px solid #d9e8ed;border-radius:13px;padding:16px;box-shadow:0 3px 12px rgba(20,74,102,.05)}
.settings-form-stack h3,.settings-simple-card h3{margin:0 0 12px;font-size:18px;color:#173f60}
.settings-form-stack>.inline-note{font-size:12px;line-height:1.8}
.haseb-settings-accordion{border:1px solid #d6e6ec;border-radius:11px;overflow:hidden;background:#fff;margin:9px 0}
.haseb-settings-accordion summary{padding:12px 14px;background:linear-gradient(105deg,#143f67,#1a5574);color:#e9feff;cursor:pointer;list-style:none;font-size:13px;font-weight:900}
.haseb-settings-accordion summary::-webkit-details-marker{display:none}
.haseb-settings-accordion summary:after{content:'＋';float:left;color:#7fe8e9;font-size:17px}
.haseb-settings-accordion[open] summary:after{content:'−'}
.settings-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:14px;background:linear-gradient(135deg,#fff,#fbfeff)}
.settings-field{display:flex;flex-direction:column;gap:5px;font-size:13px;font-weight:700;color:#284d64;min-width:0}
.settings-field.span-two{grid-column:span 2}
.settings-field.check{flex-direction:row;align-items:center;font-weight:650}
.settings-warning-panel{padding:19px;border:1px solid #f0c3c9;border-radius:12px;background:linear-gradient(140deg,#fff7f7,#fff)}
.settings-warning-panel h3{color:#9a3041;margin-top:0;font-size:18px}
.settings-warning-panel p{font-size:14px;line-height:2}
.settings-simple-card p{font-size:13px;line-height:2;color:#5b7587}
.license-locked{opacity:.72;background:#f8f8f8!important}
.menu-popup-item .menu-item-state{font-size:10px}
.home-footer-note{font-size:11px}
@media(max-width:1100px){.company-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.haseb-settings-layout{grid-template-columns:minmax(0,1fr) 220px}.settings-fields{gap:10px}}
@media(max-width:760px){
 .haseb-app-grid{display:flex;flex-direction:column;min-height:0}
 .haseb-main{order:1;width:100%;padding:7px}
 .quick-rail{order:2;position:relative;top:auto;max-height:none;height:auto;width:100%;overflow:visible}
 .desktop-panel{height:auto;min-height:calc(100svh - 215px);overflow:hidden}
 .desktop-panel-head{align-items:flex-start;flex-direction:row;padding:8px 10px;gap:8px}
 .desktop-panel-title h2{font-size:15px}.desktop-panel-title p{font-size:11px;line-height:1.6}
 .workspace-tab-layout{display:flex;flex-direction:column;direction:rtl;min-height:0;flex:1 1 auto;overflow:hidden}
 .window-dock{height:auto;width:100%;min-width:0;min-height:53px;max-height:82px;flex-direction:row;align-items:stretch;overflow-x:auto;overflow-y:hidden;padding:5px 7px;gap:5px;border:0;border-bottom:2px solid #08a2b5}
 .dock-empty{writing-mode:horizontal-tb;align-self:center;white-space:nowrap;padding:4px;font-size:11px}
 .dock-window{width:auto;min-width:70px;max-width:150px;flex:0 0 auto;display:flex;flex-direction:row;align-items:center;gap:2px;padding:3px}
 .dock-open{height:100%;width:auto;min-width:58px;max-width:124px;display:flex;flex-direction:row;align-items:center;justify-content:center;gap:5px;padding:7px 8px;font-size:11px;white-space:nowrap}
 .dock-tab-label{position:relative;min-height:0;max-height:none}.dock-tab-label span:last-child{position:static;transform:none;width:auto;max-width:100px;max-height:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .dock-window-state{width:6px;height:6px;flex-basis:6px}
 .dock-x{width:20px;height:20px;flex-basis:20px;font-size:14px}
 .workspace-views{min-height:0;height:auto;min-height:72svh;padding:6px;overflow:hidden}
 .workspace-views>.desktop-empty-state{position:relative;inset:auto;min-height:60svh;padding:24px 13px}
 .workspace-views>.desktop-empty-state strong{font-size:19px}
 .workspace-views>.desktop-empty-state p{font-size:13px}
 .workspace-views .tile-window{height:auto;min-height:69svh}
 .workspace-views .tile-iframe-wrap{min-height:65svh;overflow:auto}
 .workspace-views .tile-iframe-wrap iframe{width:100%;height:70svh;min-height:620px}
 .workspace-views .tile-window-heading strong{max-width:60vw;font-size:13px}
 .company-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .company-profile-grid .span-two{grid-column:1/-1}
 .haseb-settings-layout{display:flex;flex-direction:column;gap:10px}
 .haseb-settings-nav{order:0;width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding:7px}
 .haseb-settings-nav button{min-height:64px;padding:8px}
 .haseb-settings-nav button b{font-size:12px}
 .haseb-settings-content{order:1;width:100%}
 .settings-fields{grid-template-columns:minmax(0,1fr);padding:11px}
 .settings-field.span-two{grid-column:span 1}
 .fiscal-manager .compact-form{grid-template-columns:repeat(2,minmax(0,1fr))}
 .fiscal-manager .compact-form .button{grid-column:1/-1}
 .haseb-operation-root{padding:10px!important}
 .haseb-operation-root h2{font-size:20px!important}
 .haseb-operation-root .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .haseb-operation-root label{font-size:13px!important}
 .haseb-operation-root .form-grid input,.haseb-operation-root .form-grid select,.haseb-operation-root .card input,.haseb-operation-root .card select{font-size:15px!important;min-height:43px}
}
@media(max-width:440px){
 .company-profile-grid{grid-template-columns:minmax(0,1fr)}
 .company-profile-grid .span-two{grid-column:1}
 .fiscal-manager .compact-form{grid-template-columns:minmax(0,1fr)}
 .haseb-operation-root .form-grid{grid-template-columns:minmax(0,1fr)}
 .desktop-panel-head{flex-wrap:wrap}
 .workspace-views .tile-iframe-wrap iframe{min-height:700px}
 .haseb-settings-nav{grid-template-columns:minmax(0,1fr)}
}
@media print{.haseb-topbar,.module-ribbon-row,.quick-rail,.window-dock,.desktop-panel-head{display:none!important}.workspace-tab-layout{display:block}.workspace-views .tile-window{display:none!important}.workspace-views .tile-window.is-active{display:block!important}.workspace-views .tile-iframe-wrap iframe{height:auto;min-height:0}}

/* Appearance preferences selected in Haseb-style settings; values are chosen from a fixed palette. */
:root{--sh-workspace-primary:#079e9a;--sh-workspace-soft:#dff7f3;--sh-workspace-background:linear-gradient(135deg,#effcf9 0%,#eaf3ff 55%,#f9fcff 100%)}
.haseb-main,.haseb-operation-root,.workspace-views{background:var(--sh-workspace-background)}
.button.primary,.form-command.primary,.settings-page-head,.haseb-settings-nav button.active{border-color:var(--sh-workspace-primary)}
.button.primary,.form-command.primary{background:var(--sh-workspace-primary)}
.haseb-settings-nav button.active{background:var(--sh-workspace-soft)}
html[data-sh-large-typography="true"] body{font-size:17px}
html[data-sh-large-typography="true"] input,html[data-sh-large-typography="true"] select,html[data-sh-large-typography="true"] textarea,html[data-sh-large-typography="true"] button{font-size:16px}
html[data-sh-workspace-motion="true"] .haseb-main{background-size:220% 220%;animation:sh-soft-motion 26s ease-in-out infinite alternate}
@keyframes sh-soft-motion{from{background-position:0% 0%}to{background-position:100% 100%}}
@media(prefers-reduced-motion:reduce){html[data-sh-workspace-motion="true"] .haseb-main{animation:none}}
.company-logo-preview{display:flex;align-items:center;gap:10px;margin-top:8px;color:#53657b;font-size:13px}
.company-logo-preview img{max-width:145px;max-height:72px;object-fit:contain;background:#fff;border:1px solid #dbe5ec;border-radius:9px;padding:5px}
.dock-window.active .dock-open{background:var(--sh-workspace-primary)!important;border-color:var(--sh-workspace-primary)!important;color:#fff!important}

.report-paper-branding{display:flex;align-items:center;gap:16px;flex-wrap:wrap;background:#fff;border:1px solid #dce8ee;border-radius:14px;padding:14px 18px;margin:12px 0;color:#23384d}
.report-paper-branding img{max-width:110px;max-height:62px;object-fit:contain}
.report-paper-brand-text{display:flex;flex:1;min-width:160px;flex-direction:column;gap:4px}
.print-company-slogan{margin:0;color:#53677a;font-size:.95em}
.print-company-footer{width:100%;padding-top:7px;border-top:1px solid #e5edf1;color:#627386;font-size:12px}
@media print{body{background:#fff!important}.report-paper-branding{border:0;border-radius:0;border-bottom:1px solid #888;margin:0 0 12px;padding:0 0 10px}.print-report-button,.report-quick-grid,.report-workspace-head p{display:none!important}.report-result-head,.embedded-report-result,.report-total-strip,.report-metric-grid,.table-wrap{break-inside:avoid;page-break-inside:avoid}.report-workspace-head h2{font-size:18pt}}

/* 1.1.4 workspace sizing: maximize the form canvas and keep readable left tabs. */
@media (min-width:761px){
 .desktop-panel{height:calc(100svh - 215px)!important;min-height:600px!important}
 .workspace-tab-layout{grid-template-columns:76px minmax(0,1fr)!important}
 .window-dock{width:76px!important;min-width:76px!important;padding:9px 6px!important;gap:6px!important}
 .dock-window{min-height:132px!important;padding:5px 3px!important}
 .dock-open{font-size:13px!important;font-weight:900!important;line-height:1.45!important;padding:9px 2px!important}
 .dock-tab-label{min-height:132px!important;max-height:176px!important}
 .dock-tab-label span:last-child{width:145px!important;font-size:13px!important;font-weight:900!important}
 .workspace-views{min-height:0!important;height:100%!important;padding:8px!important;overflow:auto!important}
 .workspace-views .tile-window{min-height:0!important;height:100%!important}
 .workspace-views .tile-iframe-wrap{overflow:auto!important}
 .workspace-views .tile-iframe-wrap iframe{height:calc(100svh - 300px)!important;min-height:560px!important}
}
@media (max-width:760px){
 .desktop-panel{min-height:calc(100svh - 125px)!important}
 .workspace-tab-layout{min-height:0!important}
 .window-dock{min-height:66px!important;max-height:88px!important}
 .dock-window{min-width:104px!important;max-width:180px!important}
 .dock-open{font-size:12px!important;font-weight:800!important}
 .workspace-views{min-height:75svh!important;height:75svh!important;overflow:auto!important}
 .workspace-views .tile-window{min-height:74svh!important;height:74svh!important}
 .workspace-views .tile-iframe-wrap iframe{height:calc(74svh - 52px)!important;min-height:650px!important}
}


/* Shahriar 1.1.5 — taller workspace, readable tabs and consistent larger typography. */
:root{--sh-shell-top:132px;--sh-tab-width:214px}
html,body{font-size:16px}
.haseb-app-grid{height:calc(100svh - var(--sh-shell-top))!important;min-height:0!important;align-items:stretch!important;overflow:hidden!important}
.haseb-main{min-height:0!important;height:100%!important;overflow:hidden!important;padding:8px!important}
.page-host{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important}
.haseb-home{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;gap:5px!important}
.desktop-panel{height:auto!important;min-height:0!important;flex:1 1 auto!important;max-height:none!important;overflow:hidden!important}
.desktop-panel-head{padding:7px 12px!important;min-height:48px!important}
.desktop-panel-title h2{font-size:19px!important}
.desktop-panel-title p{font-size:13px!important}
.tile-close-all{min-height:38px!important;font-size:13px!important}
.workspace-tab-layout{grid-template-columns:var(--sh-tab-width) minmax(0,1fr)!important;flex:1 1 auto!important;min-height:0!important;height:100%!important;overflow:hidden!important}
.window-dock{width:var(--sh-tab-width)!important;min-width:var(--sh-tab-width)!important;max-width:var(--sh-tab-width)!important;height:100%!important;overflow-y:auto!important;overflow-x:hidden!important;padding:9px!important;gap:7px!important;align-items:stretch!important}
.dock-empty{writing-mode:horizontal-tb!important;font-size:13px!important;padding:12px!important;line-height:1.8!important;text-align:center!important}
.dock-window{width:100%!important;max-width:none!important;min-width:0!important;min-height:58px!important;height:auto!important;max-height:none!important;flex-direction:row!important;align-items:stretch!important;gap:5px!important;padding:5px!important;border-radius:10px!important}
.dock-open,.dock-tab-label{direction:rtl!important;position:static!important;transform:none!important;width:auto!important;max-width:none!important;min-width:0!important;min-height:48px!important;max-height:none!important;flex:1 1 auto!important;display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;padding:8px 9px!important;font-size:15px!important;font-weight:900!important;line-height:1.6!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;text-align:right!important}
.dock-tab-label span:last-child{position:static!important;left:auto!important;top:auto!important;width:auto!important;max-width:none!important;max-height:3.2em!important;transform:none!important;writing-mode:horizontal-tb!important;text-orientation:mixed!important;white-space:normal!important;overflow:hidden!important;text-overflow:ellipsis!important;display:-webkit-box!important;-webkit-line-clamp:2!important;-webkit-box-orient:vertical!important;text-align:right!important;overflow-wrap:anywhere!important;flex:1 1 auto!important}
.dock-window-state{width:9px!important;height:9px!important;flex:0 0 9px!important;border-radius:50%!important;align-self:center!important}
.dock-x{align-self:center!important;width:27px!important;height:27px!important;flex:0 0 27px!important;font-size:20px!important}
.workspace-views{height:100%!important;min-height:0!important;padding:7px!important;overflow:hidden!important}
.workspace-views .tile-window{height:100%!important;min-height:0!important;overflow:hidden!important}
.workspace-views .tile-window-bar{min-height:48px!important;padding:7px 12px!important}
.workspace-views .tile-window-heading strong{font-size:16px!important;max-width:min(55vw,700px)!important}
.workspace-views .tile-window-heading small{font-size:12px!important}
.workspace-views .tile-iframe-wrap{min-height:0!important;flex:1 1 auto!important;overflow:hidden!important}
.workspace-views .tile-iframe-wrap iframe{height:100%!important;min-height:0!important;max-height:none!important}
.home-footer-note{flex:0 0 auto!important;font-size:12px!important;line-height:1.5!important;padding:3px 7px!important;margin:0!important}
/* Forms inside the active workspace use legible accounting-sized controls. */
.haseb-operation-root{font-size:16px!important;line-height:1.8!important;padding:18px!important}
.haseb-operation-root h2,.company-profile-workspace h2,.fiscal-manager h2{font-size:23px!important}
.haseb-operation-root h3,.haseb-operation-root .card h3{font-size:18px!important}
.haseb-operation-root label,.company-profile-form label,.fiscal-manager label,.settings-field{font-size:15px!important}
.haseb-operation-root input,.haseb-operation-root select,.haseb-operation-root textarea,.company-profile-form input,.company-profile-form select,.company-profile-form textarea,.settings-field input,.settings-field select,.settings-field textarea,.fiscal-manager input{font-size:16px!important;min-height:46px!important;padding:10px 12px!important}
.haseb-operation-root .button,.haseb-operation-root button,.company-profile-form .button,.settings-form .button,.settings-form-stack .button,.fiscal-manager .button{font-size:15px!important;min-height:44px!important;padding:9px 15px!important}
.haseb-operation-root .workspace-table{font-size:14px!important}
.haseb-operation-root .workspace-table th,.haseb-operation-root .workspace-table td{padding:10px 11px!important}
.haseb-operation-root .journal-row input,.haseb-operation-root .journal-row select{font-size:14px!important;min-height:44px!important}
.menu-popup-item b{font-size:15px!important}.menu-popup-item small{font-size:12px!important}.menu-item-state{font-size:11px!important}
@media(min-width:1400px){:root{--sh-tab-width:230px}.haseb-app-grid{--sh-shell-top:130px}}
@media(min-width:761px) and (max-width:1100px){:root{--sh-tab-width:180px;--sh-shell-top:132px}.dock-open,.dock-tab-label{font-size:13px!important}}
@media(max-width:760px){
 :root{--sh-shell-top:174px;--sh-tab-width:100%}
 .haseb-app-grid{height:auto!important;min-height:calc(100svh - 174px)!important;overflow:visible!important;display:flex!important;flex-direction:column!important}
 .haseb-main{height:auto!important;min-height:calc(100svh - 174px)!important;overflow:visible!important;padding:7px!important}
 .page-host{height:auto!important;min-height:calc(100svh - 190px)!important}
 .haseb-home{height:auto!important;min-height:calc(100svh - 190px)!important}
 .desktop-panel{height:auto!important;min-height:calc(100svh - 210px)!important;flex:1 1 auto!important}
 .desktop-panel-head{min-height:58px!important;gap:6px!important}
 .workspace-tab-layout{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;overflow:visible!important}
 .window-dock{width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;max-height:142px!important;min-height:72px!important;flex:0 0 auto!important;flex-direction:row!important;align-items:stretch!important;overflow-x:auto!important;overflow-y:hidden!important;padding:7px!important;gap:7px!important;border:0!important;border-bottom:1px solid #b7e2e6!important}
 .dock-window{width:210px!important;min-width:210px!important;max-width:250px!important;min-height:56px!important;flex:0 0 auto!important}
 .dock-open,.dock-tab-label{min-height:44px!important;font-size:13px!important;padding:7px!important}
 .workspace-views{height:calc(100svh - 280px)!important;min-height:540px!important;overflow:hidden!important;padding:6px!important}
 .workspace-views .tile-window{height:100%!important;min-height:0!important}
 .workspace-views .tile-iframe-wrap{overflow:auto!important}
 .workspace-views .tile-iframe-wrap iframe{height:100%!important;min-height:0!important}
 .haseb-operation-root{padding:12px!important;font-size:15px!important}
 .haseb-operation-root .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .haseb-operation-root input,.haseb-operation-root select,.haseb-operation-root textarea{font-size:16px!important;min-height:44px!important}
 .home-footer-note{margin-top:5px!important}
}
@media(max-width:440px){
 .workspace-views{height:calc(100svh - 260px)!important;min-height:520px!important}
 .haseb-operation-root .form-grid{grid-template-columns:minmax(0,1fr)!important}
 .dock-window{width:178px!important;min-width:178px!important}
 .dock-open,.dock-tab-label{font-size:12px!important}
}


/* Shahriar 1.1.7 — workspace consumes all space below the measured real menu height. */
html,body{min-height:100%;}
body.haseb-shell:not(.workspace-embedded){height:100dvh;min-height:0;overflow:hidden;display:flex;flex-direction:column}
#hasebHeaderShell{flex:0 0 auto;position:relative!important;top:auto!important}
.haseb-app-grid{height:calc(100dvh - var(--sh-shell-top,132px))!important;min-height:0!important;flex:1 1 auto!important;display:grid!important;overflow:hidden!important;align-items:stretch!important}
.haseb-main{height:100%!important;min-height:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important;padding:5px!important}
.haseb-main .page-host{height:100%!important;min-height:0!important;max-width:none!important;flex:1 1 auto!important;display:flex!important;flex-direction:column!important;margin:0!important}
.haseb-home{height:100%!important;min-height:0!important;max-width:none!important;flex:1 1 auto!important;display:flex!important;flex-direction:column!important;gap:3px!important;margin:0!important}
.desktop-panel{height:auto!important;max-height:none!important;min-height:0!important;flex:1 1 auto!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.desktop-panel-head{flex:0 0 auto!important;min-height:42px!important;padding:4px 10px!important}
.workspace-tab-layout{height:auto!important;min-height:0!important;flex:1 1 auto!important;overflow:hidden!important}
.workspace-views{height:100%!important;min-height:0!important;overflow:hidden!important;padding:4px!important}
.workspace-views .tile-window{height:100%!important;min-height:0!important;overflow:hidden!important}
.workspace-views .tile-iframe-wrap{height:auto!important;min-height:0!important;flex:1 1 auto!important;overflow:hidden!important}
.workspace-views .tile-iframe-wrap iframe{height:100%!important;min-height:0!important;max-height:none!important;border:0!important;display:block!important}
.workspace-views .tile-window-bar{min-height:44px!important;flex:0 0 auto!important}
.window-dock{overflow-y:auto!important;overscroll-behavior:contain}
/* Avoid fixed-height table containers forcing a second nested scrollbar on normal forms. */
.haseb-operation-root .table-wrap{max-height:none!important;overflow-x:auto!important;overflow-y:visible!important}
.embedded-window{height:100%;min-height:0;overflow:auto}
.embedded-content{min-height:0!important;padding:8px!important}
/* Admin forms opened from menus render inside a tab without duplicating the global header/menu. */
body.workspace-embedded{height:100dvh!important;min-height:0!important;overflow:auto!important;display:block!important}
body.workspace-embedded #hasebHeaderShell,body.workspace-embedded .quick-rail{display:none!important}
body.workspace-embedded .haseb-app-grid{display:block!important;width:100%!important;height:auto!important;min-height:100dvh!important;overflow:visible!important}
body.workspace-embedded .haseb-main{display:block!important;height:auto!important;min-height:100dvh!important;overflow:visible!important;padding:8px!important}
body.workspace-embedded .haseb-main .page-host{display:block!important;height:auto!important;min-height:100dvh!important}
@media(max-width:760px){
 body.haseb-shell:not(.workspace-embedded){height:100dvh!important;overflow:hidden!important}
 .haseb-app-grid{height:calc(100dvh - var(--sh-shell-top,174px))!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
 .haseb-main{height:100%!important;min-height:0!important;overflow:hidden!important;padding:3px!important}
 .haseb-main .page-host,.haseb-home{height:100%!important;min-height:0!important;flex:1 1 auto!important}
 .desktop-panel{height:auto!important;min-height:0!important;flex:1 1 auto!important}
 .desktop-panel-head{min-height:38px!important;padding:3px 7px!important}
 .workspace-tab-layout{display:flex!important;flex-direction:column!important;height:auto!important;min-height:0!important;flex:1 1 auto!important;overflow:hidden!important}
 .window-dock{width:100%!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:58px!important;max-height:76px!important;flex:0 0 auto!important;flex-direction:row!important;overflow-x:auto!important;overflow-y:hidden!important;padding:4px!important;gap:5px!important}
 .dock-window{width:200px!important;min-width:160px!important;max-width:230px!important;min-height:48px!important;max-height:64px!important;flex:0 0 auto!important}
 .dock-open,.dock-tab-label{min-height:40px!important;font-size:14px!important;padding:5px 7px!important;line-height:1.35!important}
 .dock-tab-label span:last-child{-webkit-line-clamp:2!important;font-size:14px!important}
 .workspace-views{height:auto!important;min-height:0!important;flex:1 1 auto!important;overflow:hidden!important;padding:3px!important}
 .workspace-views .tile-window{height:100%!important;min-height:0!important}
 .workspace-views .tile-window-bar{min-height:38px!important;padding:4px 7px!important}
 .workspace-views .tile-window-heading strong{font-size:15px!important}
 .workspace-views .tile-iframe-wrap{height:auto!important;min-height:0!important;overflow:hidden!important}
 .workspace-views .tile-iframe-wrap iframe{height:100%!important;min-height:0!important}
 .haseb-operation-root{padding:8px!important;font-size:15px!important}
 .haseb-operation-root .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media(max-width:440px){.haseb-operation-root .form-grid{grid-template-columns:minmax(0,1fr)!important}.dock-window{width:170px!important;min-width:150px!important}}


/* Legacy workspace sizing overrides retained for older screens; final 1.2.0 rules below are authoritative. */
html, body { min-height: 0; }
body.haseb-shell:not(.workspace-embedded) {
  height: 100dvh !important; min-height: 0 !important; overflow: hidden !important;
  display: flex !important; flex-direction: column !important;
}
#hasebHeaderShell { flex: 0 0 auto !important; position: relative !important; }
.haseb-app-grid {
  height: calc(100dvh - var(--sh-shell-top, 132px)) !important;
  min-height: 0 !important; flex: 1 1 auto !important; overflow: hidden !important;
  align-items: stretch !important;
}
.haseb-main { min-height: 0 !important; height: 100% !important; overflow: hidden !important; display: flex !important; flex-direction: column !important; padding: 3px !important; }
.haseb-main > .page-host, .haseb-main .page-host {
  flex: 1 1 auto !important; min-height: 0 !important; height: 100% !important; max-width: none !important;
  margin: 0 !important; display: flex !important; flex-direction: column !important;
}
.haseb-home { flex: 1 1 auto !important; min-height: 0 !important; height: 100% !important; max-width: none !important; margin: 0 !important; gap: 0 !important; overflow: hidden !important; }
.home-footer-note { display: none !important; }
.desktop-panel { flex: 1 1 auto !important; height: 100% !important; min-height: 0 !important; max-height: none !important; overflow: hidden !important; }
.desktop-panel-head { flex: 0 0 auto !important; min-height: 38px !important; padding: 3px 8px !important; }
.workspace-tab-layout { flex: 1 1 auto !important; min-height: 0 !important; height: auto !important; overflow: hidden !important; display: grid !important; grid-template-columns: minmax(190px, 230px) minmax(0, 1fr) !important; }
.window-dock { min-height: 0 !important; height: 100% !important; overflow-y: auto !important; align-content: start !important; }
.dock-window { max-width: none !important; width: 100% !important; }
.dock-open, .dock-tab-label { min-height: 46px !important; font-size: 14px !important; line-height: 1.45 !important; white-space: normal !important; }
.dock-tab-label span:last-child { font-size: 14px !important; }
.workspace-views { height: 100% !important; min-height: 0 !important; overflow: hidden !important; padding: 3px !important; }
.workspace-views .tile-window { height: 100% !important; min-height: 0 !important; overflow: hidden !important; }
.workspace-views .tile-window-bar { flex: 0 0 auto !important; min-height: 40px !important; }
.workspace-views .tile-iframe-wrap { flex: 1 1 auto !important; height: auto !important; min-height: 0 !important; overflow: hidden !important; }
.workspace-views .tile-iframe-wrap iframe { display: block !important; width: 100% !important; height: 100% !important; min-height: 0 !important; max-height: none !important; border: 0 !important; }
/* Operation form content uses the entire iframe viewport; avoid nested table scrollbars. */
html:has(body.embedded-window), body.embedded-window {
  width: 100% !important; height: 100% !important; min-height: 0 !important; margin: 0 !important;
}
body.embedded-window { overflow-x: hidden !important; overflow-y: auto !important; }
body.embedded-window .embedded-content { min-height: 0 !important; padding: 8px !important; }
body.embedded-window .haseb-operation-root .table-wrap { max-height: none !important; overflow-x: auto !important; overflow-y: visible !important; }
body.embedded-window .haseb-operation-root { max-width: none !important; }
body.workspace-embedded { height: 100dvh !important; min-height: 0 !important; overflow: auto !important; }
@media (max-width: 760px) {
  body.haseb-shell:not(.workspace-embedded) { height: 100dvh !important; overflow: hidden !important; }
  .haseb-app-grid { height: calc(100dvh - var(--sh-shell-top, 174px)) !important; min-height: 0 !important; display: flex !important; flex-direction: column !important; }
  .haseb-main, .haseb-main > .page-host, .haseb-main .page-host, .haseb-home { height: 100% !important; min-height: 0 !important; }
  .workspace-tab-layout { display: flex !important; flex-direction: column !important; height: auto !important; min-height: 0 !important; }
  .window-dock { flex: 0 0 auto !important; width: 100% !important; height: auto !important; max-height: 76px !important; min-height: 54px !important; flex-direction: row !important; overflow-x: auto !important; overflow-y: hidden !important; }
  .dock-window { width: 190px !important; min-width: 160px !important; max-width: 230px !important; }
  .dock-open, .dock-tab-label, .dock-tab-label span:last-child { font-size: 14px !important; }
  .workspace-views { flex: 1 1 auto !important; height: auto !important; min-height: 0 !important; overflow: hidden !important; }
  .workspace-views .tile-window { height: 100% !important; min-height: 0 !important; }
  .workspace-views .tile-iframe-wrap { height: auto !important; min-height: 0 !important; overflow: hidden !important; }
  .workspace-views .tile-iframe-wrap iframe { height: 100% !important; min-height: 0 !important; }
  .desktop-panel-head .desktop-panel-title p { display: none !important; }
}

/* Shahriar Accounting 1.2.0 — adaptive workspace: tabs open one form at a time and frames grow to content. */
:root { --sh-tab-width: 248px; }
html { height:auto !important; min-height:100% !important; scroll-behavior:auto; }
body.haseb-shell:not(.workspace-embedded) {
  display:flex !important; flex-direction:column !important;
  height:auto !important; min-height:100dvh !important;
  overflow-x:hidden !important; overflow-y:auto !important;
}
#hasebHeaderShell { position:relative !important; top:auto !important; flex:0 0 auto !important; }
.module-ribbon-row { overflow:hidden !important; }
.module-ribbon {
  display:flex !important; flex-wrap:nowrap !important; align-items:stretch !important;
  gap:4px !important; width:100% !important; min-width:0 !important;
  overflow-x:auto !important; overflow-y:hidden !important;
  scrollbar-width:thin !important; padding:2px 1px 5px !important;
}
.module-ribbon .ribbon-button {
  flex:0 0 auto !important; width:auto !important; min-width:max-content !important;
  max-width:none !important; min-height:40px !important; height:40px !important;
  padding:4px 9px !important; font-size:11px !important; line-height:1.25 !important;
  flex-direction:row !important; flex-wrap:nowrap !important; white-space:nowrap !important;
}
.module-ribbon .ribbon-button>span:not(.ribbon-icon) { white-space:nowrap !important; overflow-wrap:normal !important; }
.module-ribbon .ribbon-button small { display:none !important; }
.haseb-app-grid {
  display:grid !important; grid-template-columns:minmax(0,1fr) 236px !important;
  height:auto !important; min-height:calc(100dvh - var(--sh-shell-top, 160px)) !important;
  max-height:none !important; flex:1 0 auto !important; align-items:stretch !important;
  overflow:visible !important;
}
.haseb-main {
  display:flex !important; flex-direction:column !important;
  height:auto !important; min-height:calc(100dvh - var(--sh-shell-top, 160px)) !important;
  max-height:none !important; overflow:visible !important; padding:5px !important;
}
.haseb-main>.page-host, .haseb-main .page-host {
  display:flex !important; flex-direction:column !important;
  flex:1 0 auto !important; width:100% !important; max-width:none !important;
  height:auto !important; min-height:calc(100dvh - var(--sh-shell-top, 160px) - 10px) !important;
  max-height:none !important; margin:0 !important; overflow:visible !important;
}
.haseb-home {
  display:flex !important; flex-direction:column !important; flex:1 0 auto !important;
  height:auto !important; min-height:calc(100dvh - var(--sh-shell-top, 160px) - 10px) !important;
  max-height:none !important; margin:0 !important; gap:4px !important; overflow:visible !important;
}
.desktop-panel {
  display:flex !important; flex-direction:column !important; flex:1 0 auto !important;
  height:auto !important; min-height:calc(100dvh - var(--sh-shell-top, 160px) - 18px) !important;
  max-height:none !important; overflow:visible !important;
}
.desktop-panel-head { flex:0 0 auto !important; min-height:42px !important; padding:5px 10px !important; }
.workspace-tab-layout {
  display:grid !important; direction:ltr !important;
  grid-template-columns:minmax(220px,248px) minmax(0,1fr) !important;
  flex:1 0 auto !important; height:auto !important;
  min-height:calc(100dvh - var(--sh-shell-top, 160px) - 80px) !important;
  max-height:none !important; overflow:visible !important; align-items:stretch !important;
}
.window-dock {
  direction:rtl !important; display:flex !important; flex-direction:column !important;
  align-self:stretch !important; width:auto !important; min-width:0 !important; max-width:none !important;
  height:auto !important; min-height:0 !important; max-height:none !important;
  overflow-x:hidden !important; overflow-y:auto !important; align-content:start !important;
  padding:7px !important; gap:6px !important;
}
.dock-window { width:100% !important; max-width:none !important; min-width:0 !important; height:auto !important; max-height:none !important; min-height:58px !important; display:flex !important; flex-direction:row !important; align-items:stretch !important; padding:5px !important; gap:5px !important; }
.dock-open, .dock-tab-label {
  direction:rtl !important; position:static !important; transform:none !important;
  display:flex !important; flex:1 1 auto !important; min-width:0 !important; width:auto !important; max-width:none !important;
  min-height:48px !important; height:auto !important; max-height:none !important;
  flex-direction:row !important; align-items:center !important; justify-content:flex-start !important;
  text-align:right !important; white-space:normal !important; overflow:hidden !important;
  padding:8px 10px !important; font-size:16px !important; font-weight:900 !important; line-height:1.55 !important;
}
.dock-tab-label span:last-child {
  position:static !important; transform:none !important; writing-mode:horizontal-tb !important; text-orientation:mixed !important;
  display:-webkit-box !important; -webkit-line-clamp:2 !important; -webkit-box-orient:vertical !important;
  max-width:none !important; width:auto !important; max-height:3.2em !important; overflow:hidden !important;
  white-space:normal !important; text-overflow:ellipsis !important; overflow-wrap:anywhere !important; text-align:right !important; flex:1 1 auto !important;
  font-size:16px !important;
}
.dock-window-state { flex:0 0 9px !important; width:9px !important; height:9px !important; align-self:center !important; }
.dock-x { flex:0 0 30px !important; width:30px !important; height:30px !important; align-self:center !important; font-size:20px !important; }
.workspace-views {
  direction:rtl !important; position:relative !important; display:block !important;
  width:100% !important; height:auto !important; min-height:calc(100dvh - var(--sh-shell-top, 160px) - 120px) !important;
  max-height:none !important; overflow:visible !important; padding:4px !important;
}
.workspace-views>.desktop-empty-state { position:absolute !important; inset:4px !important; min-height:calc(100dvh - var(--sh-shell-top, 160px) - 120px) !important; }
.workspace-views .tile-window {
  display:none !important; position:relative !important; inset:auto !important;
  width:100% !important; height:auto !important; min-height:0 !important; max-height:none !important;
  overflow:visible !important; resize:none !important; margin:0 !important;
}
.workspace-views .tile-window.is-active { display:flex !important; height:auto !important; min-height:0 !important; overflow:visible !important; }
.workspace-views .tile-window-bar { flex:0 0 auto !important; min-height:46px !important; padding:5px 10px !important; }
.workspace-views .tile-window-heading strong { font-size:16px !important; max-width:min(55vw,900px) !important; }
.workspace-views .tile-window-heading small { font-size:12px !important; }
.workspace-views .tile-iframe-wrap {
  display:block !important; flex:0 0 auto !important; width:100% !important;
  height:auto !important; min-height:0 !important; max-height:none !important;
  overflow:visible !important; background:#f8fbfd !important;
}
.workspace-views .tile-iframe-wrap iframe {
  display:block !important; width:100% !important; height:640px !important; min-height:480px !important;
  max-height:none !important; border:0 !important; overflow:hidden !important; background:#fff !important;
}
.home-footer-note { display:none !important; }
/* All controls remain accessible; only horizontal overflow is allowed for extra-wide tables. */
.haseb-operation-root, .operation-work-area, .embedded-content { height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
.haseb-operation-root .table-wrap { height:auto !important; min-height:0 !important; max-height:none !important; overflow-x:auto !important; overflow-y:visible !important; }
.haseb-operation-root .workspace-table { max-height:none !important; }
html:has(body.embedded-window), body.embedded-window {
  display:block !important; width:100% !important; height:auto !important; min-height:0 !important;
  max-height:none !important; margin:0 !important; overflow:visible !important;
}
body.embedded-window { overflow-x:hidden !important; overflow-y:visible !important; }
body.embedded-window .embedded-content { display:block !important; height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; padding:8px !important; }
body.embedded-window #operation, body.embedded-window .haseb-operation-root { height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
body.workspace-embedded { display:block !important; height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
body.workspace-embedded #hasebHeaderShell, body.workspace-embedded .quick-rail { display:none !important; }
body.workspace-embedded .haseb-app-grid { display:block !important; width:100% !important; height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
body.workspace-embedded .haseb-main, body.workspace-embedded .haseb-main .page-host, body.workspace-embedded .haseb-home, body.workspace-embedded .desktop-panel, body.workspace-embedded .workspace-views { display:block !important; height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
body.workspace-embedded .workspace-tab-layout { height:auto !important; min-height:0 !important; overflow:visible !important; }
@media (max-width: 760px) {
  .haseb-app-grid { grid-template-columns:minmax(0,1fr) !important; min-height:calc(100dvh - var(--sh-shell-top, 180px)) !important; }
  .quick-rail { position:relative !important; top:auto !important; height:auto !important; max-height:none !important; }
  .workspace-tab-layout { display:flex !important; flex-direction:column !important; min-height:0 !important; }
  .window-dock { flex-direction:row !important; width:100% !important; min-width:0 !important; max-width:none !important; height:auto !important; max-height:132px !important; overflow-x:auto !important; overflow-y:hidden !important; padding:5px !important; }
  .dock-window { flex:0 0 210px !important; width:210px !important; min-height:58px !important; }
  .dock-open, .dock-tab-label, .dock-tab-label span:last-child { font-size:15px !important; }
  .workspace-views { min-height:calc(100dvh - var(--sh-shell-top, 180px) - 100px) !important; }
  .workspace-views>.desktop-empty-state { min-height:calc(100dvh - var(--sh-shell-top, 180px) - 100px) !important; }
  .haseb-operation-root .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 440px) {
  .dock-window { flex-basis:178px !important; width:178px !important; }
  .haseb-operation-root .form-grid { grid-template-columns:minmax(0,1fr) !important; }
}



/* Shahriar Accounting 1.2.0 — final workspace layout. Keep forms in one selected tab and let the page grow to the iframe content. */
:root { --sh-tab-width: 258px; --sh-workspace-font: 14px; }
html { height:auto !important; min-height:100% !important; overflow-x:hidden !important; overflow-y:auto !important; }
body.haseb-shell:not(.workspace-embedded) {
  display:flex !important; flex-direction:column !important; height:auto !important;
  min-height:100dvh !important; max-height:none !important; overflow-x:hidden !important; overflow-y:auto !important;
}
#hasebHeaderShell { position:relative !important; flex:0 0 auto !important; height:auto !important; }
.module-ribbon-row { height:auto !important; max-height:none !important; overflow:hidden !important; }
.module-ribbon { display:flex !important; flex-wrap:nowrap !important; gap:4px !important; width:100% !important; min-width:0 !important; height:auto !important; overflow-x:auto !important; overflow-y:hidden !important; scrollbar-width:thin !important; }
.module-ribbon .ribbon-button { flex:0 0 auto !important; min-width:max-content !important; width:auto !important; height:42px !important; min-height:42px !important; max-height:none !important; padding:5px 10px !important; font-size:12px !important; white-space:nowrap !important; }
.module-ribbon .ribbon-button>span:not(.ribbon-icon) { white-space:nowrap !important; overflow-wrap:normal !important; }
.haseb-app-grid { display:grid !important; grid-template-columns:minmax(0,1fr) 236px !important; height:auto !important; min-height:calc(100dvh - var(--sh-shell-top,160px)) !important; max-height:none !important; flex:1 0 auto !important; align-items:stretch !important; overflow:visible !important; }
.haseb-main, .haseb-main .page-host, .haseb-home { display:flex !important; flex-direction:column !important; width:100% !important; max-width:none !important; height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
.haseb-main { min-width:0 !important; padding:5px !important; }
.haseb-main .page-host, .haseb-home { flex:1 0 auto !important; }
.desktop-panel { display:flex !important; flex-direction:column !important; flex:1 0 auto !important; height:auto !important; min-height:calc(100dvh - var(--sh-shell-top,160px) - 14px) !important; max-height:none !important; overflow:visible !important; }
.desktop-panel-head { flex:0 0 auto !important; min-height:42px !important; padding:5px 10px !important; }
.desktop-panel-head .desktop-panel-title p { display:none !important; }
.workspace-tab-layout { display:grid !important; direction:ltr !important; grid-template-columns:minmax(230px,var(--sh-tab-width)) minmax(0,1fr) !important; flex:1 0 auto !important; height:auto !important; min-height:calc(100dvh - var(--sh-shell-top,160px) - 66px) !important; max-height:none !important; align-items:stretch !important; overflow:visible !important; }
.window-dock { direction:rtl !important; display:flex !important; flex-direction:column !important; align-self:stretch !important; width:auto !important; min-width:0 !important; max-width:none !important; height:auto !important; min-height:0 !important; max-height:none !important; overflow-x:hidden !important; overflow-y:auto !important; align-content:start !important; padding:7px !important; gap:6px !important; }
.dock-window { width:100% !important; max-width:none !important; min-width:0 !important; height:auto !important; max-height:none !important; min-height:62px !important; display:flex !important; flex-direction:row !important; align-items:stretch !important; padding:5px !important; gap:5px !important; }
.dock-open, .dock-tab-label { display:flex !important; flex:1 1 auto !important; min-width:0 !important; width:auto !important; max-width:none !important; min-height:52px !important; height:auto !important; max-height:none !important; align-items:center !important; justify-content:flex-start !important; direction:rtl !important; text-align:right !important; white-space:normal !important; overflow:hidden !important; padding:8px 10px !important; font-size:16px !important; font-weight:900 !important; line-height:1.5 !important; }
.dock-tab-label span:last-child { position:static !important; transform:none !important; writing-mode:horizontal-tb !important; text-orientation:mixed !important; display:-webkit-box !important; -webkit-line-clamp:2 !important; -webkit-box-orient:vertical !important; max-width:none !important; width:auto !important; max-height:3.2em !important; overflow:hidden !important; white-space:normal !important; text-overflow:ellipsis !important; overflow-wrap:anywhere !important; text-align:right !important; flex:1 1 auto !important; font-size:16px !important; }
.dock-window-state { flex:0 0 9px !important; width:9px !important; height:9px !important; align-self:center !important; }
.dock-x { flex:0 0 30px !important; width:30px !important; height:30px !important; align-self:center !important; font-size:20px !important; }
.workspace-views { direction:rtl !important; position:relative !important; display:block !important; width:100% !important; height:auto !important; min-height:calc(100dvh - var(--sh-shell-top,160px) - 110px) !important; max-height:none !important; overflow:visible !important; padding:4px !important; }
.workspace-views>.desktop-empty-state { position:absolute !important; inset:4px !important; min-height:calc(100dvh - var(--sh-shell-top,160px) - 120px) !important; }
.workspace-views .tile-window { display:none !important; position:relative !important; inset:auto !important; width:100% !important; height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; resize:none !important; margin:0 !important; }
.workspace-views .tile-window.is-active { display:flex !important; flex-direction:column !important; height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
.workspace-views .tile-window-bar { flex:0 0 auto !important; min-height:48px !important; padding:6px 12px !important; }
.workspace-views .tile-window-heading strong { font-size:16px !important; max-width:min(55vw,900px) !important; }
.workspace-views .tile-window-heading small { font-size:12px !important; }
.workspace-views .tile-iframe-wrap { display:block !important; flex:0 0 auto !important; width:100% !important; height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; background:#f8fbfd !important; }
.workspace-views .tile-iframe-wrap iframe { display:block !important; width:100% !important; height:640px !important; min-height:480px !important; max-height:none !important; border:0 !important; overflow:hidden !important; background:#fff !important; }
/* Form frame pages: natural height at every wrapper; tables may scroll horizontally, never inside a fixed-height vertical box. */
html:has(body.embedded-window), html:has(body.workspace-embedded) { display:block !important; height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
body.embedded-window, body.workspace-embedded { display:block !important; width:100% !important; height:auto !important; min-height:0 !important; max-height:none !important; margin:0 !important; overflow-x:hidden !important; overflow-y:visible !important; font-size:14px !important; }
body.embedded-window .embedded-content, body.embedded-window #operation, body.embedded-window .operation-work-area, body.embedded-window .haseb-operation-root, body.workspace-embedded main, body.workspace-embedded .page, body.workspace-embedded .page-host, body.workspace-embedded .haseb-app-grid, body.workspace-embedded .haseb-main, body.workspace-embedded .haseb-home, body.workspace-embedded .desktop-panel, body.workspace-embedded .workspace-views, body.workspace-embedded .workspace-tab-layout, body.workspace-embedded .split { display:block !important; height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
body.workspace-embedded #hasebHeaderShell, body.workspace-embedded .quick-rail, body.workspace-embedded .module-ribbon-row, body.workspace-embedded .window-dock, body.workspace-embedded .desktop-panel-head { display:none !important; }
body.embedded-window .window-card { height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
body.embedded-window .haseb-operation-root *, body.workspace-embedded .page * { max-height:none; }
body.embedded-window .table-wrap, body.embedded-window .table-responsive, body.embedded-window .table-scroll, body.embedded-window .scroll-panel, body.embedded-window .data-grid-wrap, body.workspace-embedded .table-wrap, body.workspace-embedded .table-responsive, body.workspace-embedded .table-scroll, body.workspace-embedded .scroll-panel, body.workspace-embedded .data-grid-wrap { height:auto !important; min-height:0 !important; max-height:none !important; overflow-x:auto !important; overflow-y:visible !important; }
body.embedded-window .haseb-operation-root .form-grid label, body.embedded-window .haseb-operation-root .card label, body.workspace-embedded label { font-size:12px !important; }
body.embedded-window .haseb-operation-root input, body.embedded-window .haseb-operation-root select, body.embedded-window .haseb-operation-root textarea, body.embedded-window .haseb-operation-root .button, body.workspace-embedded input, body.workspace-embedded select, body.workspace-embedded textarea, body.workspace-embedded button { font-size:13px !important; min-height:36px; }
body.embedded-window .haseb-operation-root .workspace-table, body.workspace-embedded .workspace-table { font-size:12px !important; }
.home-footer-note { display:none !important; }
@media (max-width: 760px) {
  .haseb-app-grid { display:flex !important; flex-direction:column !important; height:auto !important; min-height:calc(100dvh - var(--sh-shell-top,180px)) !important; }
  .haseb-main { width:100% !important; }
  .quick-rail { order:2 !important; position:relative !important; top:auto !important; height:auto !important; max-height:none !important; overflow:visible !important; }
  .workspace-tab-layout { display:flex !important; flex-direction:column !important; height:auto !important; min-height:0 !important; overflow:visible !important; }
  .window-dock { flex:0 0 auto !important; flex-direction:row !important; width:100% !important; min-width:0 !important; max-width:none !important; height:auto !important; min-height:0 !important; max-height:132px !important; overflow-x:auto !important; overflow-y:hidden !important; padding:5px !important; }
  .dock-window { flex:0 0 220px !important; width:220px !important; min-height:58px !important; }
  .dock-open, .dock-tab-label, .dock-tab-label span:last-child { font-size:15px !important; }
  .workspace-views { width:100% !important; min-height:calc(100dvh - var(--sh-shell-top,180px) - 100px) !important; }
  .workspace-views>.desktop-empty-state { min-height:calc(100dvh - var(--sh-shell-top,180px) - 100px) !important; }
  .haseb-operation-root .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 440px) {
  .dock-window { flex-basis:190px !important; width:190px !important; }
  .haseb-operation-root .form-grid { grid-template-columns:minmax(0,1fr) !important; }
}


/* 1.2.1: content-driven workspace sizing. No fixed 640px iframe and no viewport-height feedback loop. */
.workspace-views .tile-iframe-wrap iframe { height:320px !important; min-height:240px !important; max-height:none !important; overflow:hidden !important; }
.workspace-views .tile-iframe-wrap { height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
.workspace-views .tile-window.is-active { height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }
.workspace-views { height:auto !important; max-height:none !important; overflow:visible !important; }
body.embedded-window, html:has(body.embedded-window) { height:auto !important; min-height:0 !important; max-height:none !important; overflow-y:visible !important; }
body.embedded-window #operation, body.embedded-window .operation-work-area, body.embedded-window .embedded-content { height:auto !important; min-height:0 !important; max-height:none !important; overflow:visible !important; }


/* Haseb-style account tree form */
.haseb-tree-screen{background:#f4f7fc;border:1px solid #b6c7df;border-radius:8px;padding:12px;color:#203b62;min-height:520px;font-size:14px}
.haseb-tree-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:4px 4px 12px;border-bottom:1px solid #c3d2e6}
.haseb-tree-toolbar h2{margin:0 0 5px;font-size:21px;color:#153b70}.haseb-tree-toolbar p{margin:0;color:#64748b;font-size:12px}
.haseb-tree-actions{display:flex;gap:6px;align-items:center;flex-wrap:wrap}.haseb-tree-actions input{min-width:210px;max-width:300px;height:38px;border:1px solid #9fb4d2;border-radius:5px;padding:7px 10px;background:#fff}
.haseb-tree-layout{display:grid;grid-template-columns:minmax(250px,32%) minmax(0,1fr);gap:10px;padding-top:10px;align-items:stretch}
.haseb-account-detail,.haseb-account-tree-panel{background:#fff;border:1px solid #b9c9df;border-radius:6px;min-width:0;overflow:visible}
.haseb-account-detail{padding:12px;align-self:start;box-shadow:inset 0 3px 0 #25a6c6}.haseb-account-detail h3{margin:0 0 12px;padding-bottom:9px;border-bottom:1px solid #d8e2ef;font-size:17px}.haseb-account-detail dl{display:grid;grid-template-columns:95px minmax(0,1fr);gap:8px 10px;margin:12px 0}.haseb-account-detail dt{color:#64748b}.haseb-account-detail dd{margin:0;font-weight:600;overflow-wrap:anywhere}.haseb-account-badge{display:inline-block;background:#e0f2fe;color:#075985;border:1px solid #7dd3fc;border-radius:4px;padding:4px 9px}
.haseb-tree-panel-title{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;background:#e5edf9;border-bottom:1px solid #b9c9df;font-weight:700}.haseb-tree-panel-title span{font-size:12px;color:#42618a;font-weight:500}
.haseb-account-tree,.haseb-account-children{list-style:none;margin:0;padding:0}.haseb-account-tree-panel>.haseb-account-tree{padding:8px 10px 16px}.haseb-account-children{margin-right:22px;border-right:1px dotted #91a8c8;padding-right:8px}.haseb-tree-row{display:flex;align-items:center;gap:5px;min-height:34px}.haseb-tree-toggle{flex:0 0 23px;width:23px;height:23px;padding:0;border:1px solid #8ca7cb;background:#e8f1ff;color:#164e8a;border-radius:4px;font-weight:800;line-height:1;cursor:pointer}.haseb-tree-toggle.leaf{border-color:transparent;background:transparent;color:#7b8ba3}.haseb-tree-select{display:flex;align-items:center;gap:9px;min-width:0;flex:1;text-align:right;border:1px solid transparent;border-radius:4px;background:transparent;color:#193c70;padding:5px 8px;cursor:pointer}.haseb-tree-select:hover{background:#edf6ff;border-color:#c0d8f2}.haseb-tree-select.selected{background:#18b7e4;color:#082e55;border-color:#0797c7;font-weight:700}.haseb-tree-code{min-width:75px;font-variant-numeric:tabular-nums;color:#35618e}.haseb-tree-title{flex:1;overflow-wrap:anywhere}.haseb-tree-select small{font-size:11px;color:#64748b;white-space:nowrap}.haseb-tree-select.selected small,.haseb-tree-select.selected .haseb-tree-code{color:#082e55}.haseb-account-node[hidden]{display:none!important}
@media(max-width:760px){.haseb-tree-toolbar{align-items:stretch;flex-direction:column}.haseb-tree-actions input{max-width:none;min-width:0;width:100%}.haseb-tree-layout{grid-template-columns:1fr}.haseb-account-detail{order:2}.haseb-account-tree-panel{order:1}.haseb-tree-select{flex-wrap:wrap;gap:4px}.haseb-tree-code{min-width:55px}.haseb-tree-select small{display:none}}

/* Haseb-inspired voucher register */
.haseb-voucher-list{border:1px solid #aebfd9;background:#f5f7fc;border-radius:7px;padding:10px;color:#203a62}.haseb-voucher-head{display:flex;justify-content:space-between;align-items:center;gap:12px;border-bottom:1px solid #c6d2e4;padding:2px 4px 10px}.haseb-voucher-head h2{margin:0;font-size:21px;color:#153b70}.haseb-voucher-head p{margin:5px 0 0;font-size:12px;color:#687d9b}.haseb-voucher-filter{display:flex;align-items:end;gap:8px;flex-wrap:wrap;padding:10px;background:#e7eef9;border:1px solid #c4d2e6;margin:9px 0}.haseb-voucher-filter label{display:flex;flex-direction:column;gap:4px;font-size:12px;min-width:110px}.haseb-voucher-filter input,.haseb-voucher-filter select{height:34px;min-width:110px;border:1px solid #a7bad4;border-radius:4px;padding:5px 8px;background:#fff}.haseb-voucher-filter .haseb-voucher-search{flex:1}.haseb-voucher-filter .haseb-voucher-search input{width:100%}.haseb-voucher-content{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:9px;align-items:start}.haseb-voucher-table-wrap{overflow-x:auto;background:#fff;border:1px solid #bac9dd}.haseb-voucher-table-wrap .workspace-table{width:100%;font-size:12px}.haseb-voucher-table-wrap .workspace-table th{background:#dce7f7;color:#25466f;white-space:nowrap}.haseb-voucher-table-wrap .workspace-table tbody tr:nth-child(even){background:#edf2fa}.haseb-voucher-table-wrap .workspace-table tbody tr:hover{background:#cceeff}.haseb-voucher-detail{background:#fff;border:1px solid #bac9dd;border-top:3px solid #16a6c9;padding:12px}.haseb-voucher-detail h3{font-size:16px;margin:0 0 12px;padding-bottom:8px;border-bottom:1px solid #d8e1ef}.haseb-voucher-detail dl{display:grid;grid-template-columns:78px minmax(0,1fr);gap:8px;margin:0}.haseb-voucher-detail dt{color:#657b98}.haseb-voucher-detail dd{margin:0;font-weight:600;overflow-wrap:anywhere}.haseb-voucher-footer{display:flex;justify-content:space-between;padding:8px 3px 0;font-size:12px;color:#526b8e}@media(max-width:800px){.haseb-voucher-content{grid-template-columns:1fr}.haseb-voucher-detail{order:-1}.haseb-voucher-head{align-items:flex-start;flex-direction:column}.haseb-voucher-filter label{flex:1 1 130px}}

/* Shahriar 1.2.3: full-layout pages opened from the System menu must not measure their iframe viewport.
   Keep the embedded page content-sized; the parent iframe is resized from .page-host content only. */
html:has(body.workspace-embedded) {
  height: auto !important; min-height: 0 !important; max-height: none !important;
  overflow-x: hidden !important; overflow-y: hidden !important;
}
body.workspace-embedded {
  display: block !important; width: 100% !important; height: auto !important;
  min-height: 0 !important; max-height: none !important; margin: 0 !important;
  overflow-x: hidden !important; overflow-y: hidden !important;
}
body.workspace-embedded .haseb-app-grid,
body.workspace-embedded .haseb-main,
body.workspace-embedded .haseb-main > .page-host,
body.workspace-embedded .page-host {
  display: block !important; width: 100% !important; height: auto !important;
  min-height: 0 !important; max-height: none !important; margin: 0 !important;
  flex: 0 0 auto !important; overflow: visible !important;
}
body.workspace-embedded .page-host > * {
  height: auto !important; min-height: 0 !important; max-height: none !important;
  overflow: visible !important; flex: 0 0 auto !important;
}
body.workspace-embedded .page-host .table-wrap,
body.workspace-embedded .page-host .table-responsive,
body.workspace-embedded .page-host .table-scroll,
body.workspace-embedded .page-host .data-grid-wrap {
  height: auto !important; min-height: 0 !important; max-height: none !important;
  overflow-x: auto !important; overflow-y: visible !important;
}
body.workspace-embedded #hasebHeaderShell,
body.workspace-embedded .quick-rail,
body.workspace-embedded .module-ribbon-row,
body.workspace-embedded .window-dock,
body.workspace-embedded .desktop-panel-head { display: none !important; }



/* Shahriar voucher-entry form: scoped to the accounting voucher screen only. */
.haseb-voucher-entry{--v-blue:#1b4c73;--v-turquoise:#12a7a5;--v-line:#cbd8e5;--v-soft:#f1f6fa;color:#26384d;font-size:13px;padding:8px 10px 18px;min-width:0;background:linear-gradient(180deg,#f6fafc 0%,#fff 45%,#f5f9fc 100%);border:1px solid #d4e1eb;border-radius:12px;box-shadow:0 8px 26px rgba(27,76,115,.08)}
.haseb-voucher-titlebar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:9px 12px;background:linear-gradient(105deg,#123d62,#1b6684 68%,#178f98);color:#fff;border-radius:9px;margin-bottom:10px;min-height:58px}
.haseb-voucher-title-main{display:flex;align-items:center;gap:11px}.haseb-voucher-title-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:9px;background:rgba(255,255,255,.16);font-size:23px}.haseb-voucher-titlebar h2{margin:0;color:#fff;font-size:18px;font-weight:900}.haseb-voucher-titlebar small{display:block;margin-top:2px;color:#d9f0f3;font-size:11px}.haseb-voucher-state{white-space:nowrap;padding:6px 10px;border-radius:20px;background:rgba(255,255,255,.14);font-size:11px}.haseb-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#54e0af;margin-left:5px}
.haseb-voucher-meta{display:grid;grid-template-columns:1.1fr .8fr .9fr 1fr 1.3fr;gap:8px;padding:10px;background:#eaf1f8;border:1px solid #d5e0eb;border-radius:8px}.haseb-voucher-entry label{display:flex;flex-direction:column;gap:5px;font-weight:800;color:#50647b;font-size:11px;min-width:0}.haseb-voucher-meta input,.haseb-voucher-meta select,.haseb-voucher-description input{height:36px;width:100%;min-width:0;border:1px solid #bdcddd;border-radius:5px;background:#fff;padding:6px 9px;color:#20364d;font:inherit;font-size:12px}.haseb-voucher-meta .readonly-field{background:#f5f8fb;color:#6b7d90}.haseb-voucher-description{padding:8px 0}.haseb-voucher-description label{display:flex;align-items:center;flex-direction:row}.haseb-voucher-description label input{flex:1}
.haseb-voucher-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 10px;border:1px solid #cbd9e5;border-bottom:0;border-radius:7px 7px 0 0;background:linear-gradient(#f7fafc,#eaf1f7)}.haseb-voucher-toolbar-caption{display:flex;align-items:baseline;gap:10px}.haseb-voucher-toolbar-caption b{font-size:14px;color:#1a4d70}.haseb-voucher-toolbar-caption span{font-size:10px;color:#73859a}.haseb-voucher-toolbar-actions{display:flex;gap:6px}.haseb-voucher-btn{border:1px solid #9cb4c9;background:#fff;color:#245779;border-radius:5px;padding:7px 11px;font:inherit;font-size:11px;font-weight:800;cursor:pointer}.haseb-voucher-btn:hover{background:#e4f5f5;border-color:#46aaa9}.haseb-voucher-btn.secondary{background:#f7fafc}
.haseb-voucher-grid-wrap{width:100%;overflow-x:auto;border:1px solid #cbd9e5;background:#fff}.haseb-voucher-grid{width:100%;min-width:1050px;border-collapse:separate;border-spacing:0;table-layout:fixed}.haseb-voucher-grid th{position:sticky;top:0;z-index:1;background:#dce8f3;color:#23435e;border-left:1px solid #c2d2e1;border-bottom:2px solid #789bb8;padding:8px 6px;font-size:11px;text-align:center;font-weight:900}.haseb-voucher-grid td{padding:4px 5px;border-left:1px solid #e0e8ef;border-bottom:1px solid #e0e8ef;background:#fff;vertical-align:middle}.haseb-voucher-grid tbody tr:nth-child(even) td{background:#f7fafc}.haseb-voucher-grid tbody tr.selected td{background:#e9f6f7}.haseb-voucher-grid tbody tr.invalid-account td{background:#fff1f0}.haseb-voucher-grid tbody tr:last-child td{border-bottom:0}.haseb-voucher-grid .col-no{width:48px}.haseb-voucher-grid .col-account{width:270px}.haseb-voucher-grid .col-description{width:220px}.haseb-voucher-grid .col-track{width:145px}.haseb-voucher-grid .col-party{width:170px}.haseb-voucher-grid .col-debit,.haseb-voucher-grid .col-credit{width:140px}.haseb-voucher-grid .col-action{width:56px}.haseb-voucher-grid input,.haseb-voucher-grid select{width:100%;min-width:0;height:34px;border:1px solid #d0dce7;border-radius:4px;padding:5px 7px;background:#fff;color:#20364d;font:inherit;font-size:11px;outline:none}.haseb-voucher-grid input:focus,.haseb-voucher-grid select:focus{border-color:#159d9d;box-shadow:0 0 0 2px rgba(18,167,165,.13)}.haseb-voucher-grid .row-number{text-align:center;color:#58718a;font-weight:900}.voucher-account-cell{display:flex;flex-direction:column;gap:2px}.voucher-account-cell small{font-size:9px;color:#71859a;min-height:12px}.voucher-account-cell input{font-weight:800}.haseb-voucher-grid .money-input{text-align:left;direction:ltr;font-variant-numeric:tabular-nums}.voucher-row-remove{width:28px;height:28px;border:0;border-radius:50%;background:#fff0f0;color:#c13b4b;font-size:21px;line-height:1;cursor:pointer}.voucher-row-remove:hover{background:#c83f51;color:white}
.haseb-voucher-addline{display:flex;align-items:center;gap:12px;padding:8px 2px}.haseb-voucher-addline small{font-size:10px;color:#718398}.haseb-voucher-extra{border:1px solid #d2e0ea;border-radius:7px;background:#f6fafc;padding:8px 10px;margin:2px 0 10px}.haseb-voucher-extra-title{display:flex;justify-content:space-between;gap:10px;color:#2b526e;font-weight:900;font-size:11px}.haseb-voucher-extra-title span{font-weight:700;color:#159195}.haseb-voucher-extra-fields{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:7px}.haseb-voucher-extra-fields label{min-width:190px}.haseb-voucher-extra-fields select{height:32px;border:1px solid #ccdbe6;border-radius:5px;background:white;padding:5px}.haseb-voucher-extra-fields span{color:#7b8b9c;font-size:10px;padding:7px 0}.haseb-voucher-extra-fields [hidden]{display:none!important}
.haseb-voucher-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) 1.3fr;gap:7px;padding:9px;background:#142f49;color:#fff;border-radius:6px}.haseb-voucher-totals>div{display:flex;flex-direction:column;gap:3px;padding:2px 8px;border-left:1px solid rgba(255,255,255,.15)}.haseb-voucher-totals span{font-size:10px;color:#c5d7e7}.haseb-voucher-totals strong{font-size:15px;color:#fff;font-variant-numeric:tabular-nums}.voucher-balance-status{align-self:center;justify-content:center!important;text-align:center;font-weight:900;font-size:12px;color:#f6d78b}.voucher-balance-status.good{color:#6de0b4}.voucher-balance-status.warn{color:#ffbd91}
.haseb-voucher-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:10px 0}.haseb-voucher-action{border:0;border-radius:6px;padding:10px 17px;font:inherit;font-weight:900;font-size:12px;cursor:pointer}.haseb-voucher-action.print{background:#dcecf8;color:#225577}.haseb-voucher-action.new{background:#e7f4ef;color:#257456}.haseb-voucher-action.save{background:linear-gradient(110deg,#ef6c37,#d94c29);color:#fff;margin-right:auto;min-width:170px;box-shadow:0 4px 12px rgba(217,76,41,.18)}.haseb-voucher-action.save:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.haseb-voucher-action-hint{font-size:10px;color:#8292a2}.haseb-voucher-feedback{display:none;padding:9px 12px;margin:4px 0 8px;border-radius:6px;font-size:11px;font-weight:800}.haseb-voucher-feedback.success,.haseb-voucher-feedback.error{display:block}.haseb-voucher-recent{margin-top:10px;border-top:1px solid #dce5ed;padding-top:8px}.haseb-voucher-recent-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.haseb-voucher-recent h3{margin:0;font-size:13px;color:#244b6b}.haseb-voucher-entry .workspace-table th,.haseb-voucher-entry .workspace-table td{font-size:10px;padding:7px 9px}
@media(max-width:900px){.haseb-voucher-meta{grid-template-columns:repeat(3,minmax(0,1fr))}.haseb-voucher-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.voucher-balance-status{grid-column:1/-1;padding:5px}}
@media(max-width:620px){.haseb-voucher-entry{padding:5px}.haseb-voucher-titlebar{align-items:flex-start}.haseb-voucher-titlebar h2{font-size:15px}.haseb-voucher-state{font-size:9px}.haseb-voucher-meta{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.haseb-voucher-description label{align-items:stretch;flex-direction:column}.haseb-voucher-toolbar{align-items:flex-start;flex-direction:column}.haseb-voucher-toolbar-caption{align-items:flex-start;flex-direction:column;gap:2px}.haseb-voucher-addline{align-items:flex-start;flex-direction:column}.haseb-voucher-actions{align-items:stretch}.haseb-voucher-action{flex:1}.haseb-voucher-action.save{margin-right:0}.haseb-voucher-totals{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media print{body:has(.haseb-voucher-entry) *{visibility:hidden!important}.haseb-voucher-entry,.haseb-voucher-entry *{visibility:visible!important}.haseb-voucher-entry{position:absolute;inset:0;width:100%;box-shadow:none;border:0;background:#fff}.haseb-voucher-titlebar{background:#e8eef4!important;color:#152d42!important}.haseb-voucher-titlebar h2,.haseb-voucher-titlebar small{color:#152d42!important}.haseb-voucher-actions,.haseb-voucher-addline,.haseb-voucher-recent{display:none!important}.haseb-voucher-grid{min-width:0}.haseb-voucher-grid th,.haseb-voucher-totals{-webkit-print-color-adjust:exact;print-color-adjust:exact}}

/* Haseb-inspired voucher list/detail windows — 1.2.5 */
.haseb-voucher-list,.haseb-voucher-detail-screen{direction:rtl;background:#eef3f8;border:1px solid #a9bed0;border-radius:7px;padding:10px;color:#203b55;min-height:100%;}
.haseb-voucher-list .haseb-voucher-head,.haseb-voucher-detail-screen .haseb-voucher-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;background:linear-gradient(110deg,#dce9f5,#f7fbff);border:1px solid #b7cbdc;border-radius:6px;margin-bottom:9px}
.haseb-voucher-list .haseb-voucher-head h2,.haseb-voucher-detail-screen h2{margin:0;font-size:17px;color:#174d70}.haseb-voucher-list .haseb-voucher-head p,.haseb-voucher-detail-screen p{margin:3px 0 0;color:#667e92;font-size:11px}
.haseb-voucher-list .haseb-voucher-filter{display:flex;align-items:end;gap:8px;flex-wrap:wrap;padding:9px;background:#dce8f5;border:1px solid #b8cadc;border-radius:5px;margin-bottom:8px}
.haseb-voucher-list .haseb-voucher-filter label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:800;color:#294d6b;min-width:120px;flex:1}
.haseb-voucher-list .haseb-voucher-filter input,.haseb-voucher-list .haseb-voucher-filter select{height:34px;border:1px solid #a9bfd2;border-radius:4px;background:#fff;padding:5px 8px;min-width:0}
.haseb-voucher-list .haseb-voucher-table-wrap,.haseb-voucher-detail-screen .haseb-voucher-table-wrap{overflow:auto;border:1px solid #aebfd0;background:#fff;max-height:calc(100vh - 250px)}
.haseb-voucher-list .workspace-table,.haseb-voucher-detail-screen .workspace-table{width:100%;border-collapse:collapse;min-width:850px}
.haseb-voucher-list .workspace-table th,.haseb-voucher-detail-screen .workspace-table th{background:#cbd9ed;color:#1d4261;padding:8px;border:1px solid #a9bdd1;white-space:nowrap}
.haseb-voucher-list .workspace-table td,.haseb-voucher-detail-screen .workspace-table td{padding:7px 8px;border:1px solid #d4dee8;white-space:nowrap}
.haseb-voucher-list .workspace-table tbody tr{cursor:pointer}.haseb-voucher-list .workspace-table tbody tr:nth-child(even){background:#f1f7fc}.haseb-voucher-list .workspace-table tbody tr:hover{background:#d8eef7}
.haseb-voucher-list .haseb-voucher-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px;color:#516b82;font-size:11px}
.voucher-number-nav{display:flex;gap:3px}.voucher-number-nav button{width:30px;border:1px solid #b7c9d8;border-radius:4px;background:#e7f0f8;color:#1d5c83;font-weight:900;cursor:pointer}.voucher-number-nav input{flex:1;min-width:0}
.haseb-voucher-entry .col-account-name{width:190px}.haseb-voucher-grid .account-name{background:#f0f5f9;color:#294a64;font-weight:700}
@media print{.haseb-voucher-list,.haseb-voucher-detail-screen{position:absolute;inset:0;background:#fff;border:0}.haseb-voucher-list .haseb-voucher-filter,.haseb-voucher-list .haseb-voucher-footer button{display:none!important}.haseb-voucher-list .haseb-voucher-table-wrap,.haseb-voucher-detail-screen .haseb-voucher-table-wrap{max-height:none;overflow:visible}}
