:root{
  --bg:#f4f6f9; --card:#fff; --line:#dde3ec; --ink:#1c2430; --mut:#6b7686;
  --accent:#1e5fbf; --accent2:#e8f0fc; --warn:#c0392b; --ok:#1e7a3c;
  --spec:#f6f7f9;
}
*{box-sizing:border-box}
body{margin:0;font:14px/1.45 -apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,sans-serif;
  background:var(--bg);color:var(--ink)}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
code{background:#eef1f6;padding:1px 5px;border-radius:3px;font-size:12px}
small{color:var(--mut)}

/* ---- sarlavha ---- */
header.top{display:flex;align-items:center;gap:18px;flex-wrap:wrap;
  background:#fff;border-bottom:1px solid var(--line);padding:8px 16px;position:sticky;top:0;z-index:10}
.brand{font-size:17px;color:var(--ink)}
.brand b{color:var(--accent)}
header nav{display:flex;gap:14px;flex-wrap:wrap;flex:1}
header nav a{color:#41506a;padding:4px 2px;border-bottom:2px solid transparent}
header nav a:hover{border-bottom-color:var(--accent);text-decoration:none}
.userbox{display:flex;align-items:center;gap:10px;color:var(--mut)}
.userbox .who i{font-style:normal;color:var(--mut);font-size:12px}
.chip{background:var(--accent2);color:var(--accent);padding:3px 9px;border-radius:11px;font-size:12px}
a.small{font-size:12px}

main{padding:16px;max-width:1900px;margin:0 auto}
footer{padding:14px 16px;color:var(--mut);font-size:12px;text-align:center}

/* ---- kartochkalar ---- */
.card{background:var(--card);border:1px solid var(--line);border-radius:8px;padding:16px;margin-bottom:16px}
.card.narrow{max-width:460px}
.card h2{margin:0 0 10px;font-size:18px}
.card h3{margin:16px 0 8px;font-size:15px}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:16px}
@media(max-width:1100px){.row2{grid-template-columns:1fr}}

.banner{padding:9px 16px;font-size:13px}
.banner.run{background:#fff6d8;border-bottom:1px solid #ecd98a}
.banner.err{background:#fdecea;border-bottom:1px solid #f0b7b0;color:var(--warn)}
.banner.warn{background:#fff6d8;border:1px solid #ecd98a;border-radius:6px;margin-bottom:10px;padding:8px 12px}
.err{background:#fdecea;color:var(--warn);border:1px solid #f0b7b0;border-radius:6px;padding:8px 12px;margin:8px 0}
.okmsg{background:#e9f6ed;color:var(--ok);border:1px solid #b5dfc2;border-radius:6px;padding:8px 12px;margin:8px 0}
.warn{color:var(--warn)}
.hint{color:var(--mut);font-size:12.5px}

/* ---- plitkalar ---- */
.tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin-bottom:14px}
.tiles.small .tile{padding:10px 12px}
.tile{background:#fff;border:1px solid var(--line);border-radius:8px;padding:14px;display:flex;flex-direction:column;gap:3px}
.tile .lbl{color:var(--mut);font-size:12px}
.tile .val{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}
.tile .val.warn{color:var(--warn)}
.tile .sub{color:var(--mut);font-size:11.5px}

/* ---- jadvallar ---- */
.tablewrap{overflow:auto;max-height:70vh;border:1px solid var(--line);border-radius:6px}
.tablewrap.short{max-height:340px}
table.grid{border-collapse:separate;border-spacing:0;width:100%;font-size:13px}
table.grid th,table.grid td{border-right:1px solid var(--line);border-bottom:1px solid var(--line);
  padding:5px 8px;text-align:left;vertical-align:top;background:#fff}
table.grid tr>*:first-child{border-left:1px solid var(--line)}
table.grid tr:first-child>*{border-top:1px solid var(--line)}
table.grid th{background:#eef2f8;font-weight:600;position:sticky;top:0;z-index:2}
table.grid th a{color:#33425c}
table.grid td.num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}

/* sarlavha matni ko'pi bilan 2 qatorga sig'sin */
table.grid th{line-height:1.25;hyphens:auto}
table.data th a{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden;text-overflow:ellipsis}

/* ikki qatorli guruhlangan sarlavha */
table.grouped thead tr:first-child th{top:0}
table.grouped thead tr:nth-child(2) th{top:var(--hdr1,34px);z-index:2}
table.grouped th.grouphdr{text-align:center;background:#e2eaf6;white-space:nowrap}
table.grouped th.sub{text-align:center;background:#eef2f8;white-space:nowrap}
/* aniq kengliklar: `max-width` jadval kataklarida (table-layout:auto) ishlamaydi */
table.fixed{table-layout:fixed}
table.fixed td,table.fixed th{overflow-wrap:anywhere}
table.tot-table th{position:static}
table.tot-table th.grouphdr{text-align:center;background:#e2eaf6}

/* birinchi ustunni (Xaridor) muzlatish */
table.sticky1 tr>th:first-child,table.sticky1 tr>td:first-child{
  position:sticky;left:0;z-index:3;min-width:210px;max-width:260px;
  box-shadow:1px 0 0 var(--line)}
table.sticky1 thead tr>th:first-child{z-index:5}
table.sticky1 tbody tr:nth-child(even)>td:first-child{background:#fbfcfe}
table.sticky1 tbody tr:hover>td:first-child{background:#f0f5fd}
table.data tr:nth-child(even) td{background:#fbfcfe}
table.data tr:hover td{background:#f0f5fd}
tr.spec td{background:var(--spec) !important;font-style:italic}
tr.sched td{color:#33425c}
tr.tot td{background:#fff6d8 !important}
tr.warnrow td{background:#fdf0ef !important}
td.small{font-size:12px;color:var(--mut);max-width:520px}
td.bar{width:120px}
td.bar span{display:block;height:10px;background:var(--accent);border-radius:3px}

/* ---- formalar ---- */
form label{display:block;margin:8px 0;font-size:13px;color:#33425c}
input,select,button,textarea{font:inherit}
input[type=text],input[type=password],input[type=date],input:not([type]),select,textarea{
  width:100%;padding:6px 9px;border:1px solid var(--line);border-radius:5px;background:#fff}
.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:10px 0}
.filters input,.filters select{width:auto;min-width:150px}
.filters label{margin:0}
button,.btn{background:var(--accent);color:#fff;border:0;border-radius:5px;padding:7px 14px;cursor:pointer}
button:hover,.btn:hover{background:#17509f;text-decoration:none}
button[disabled]{background:#9fb0c8;cursor:not-allowed}
.btn.ghost{background:#eef2f8;color:#33425c}
button.mini{padding:3px 8px;font-size:12px}
button.danger{background:var(--warn)}
form.inline{display:inline-flex;gap:5px;align-items:center;margin:0 6px 4px 0}
form.inline input{width:130px}
.acts{white-space:nowrap}
label.chk{display:inline-flex;align-items:center;gap:6px;margin:0 10px 4px 0;white-space:nowrap}
/* filtr qatoridagi umumiy `min-width` katakchalarga tegmasin */
label.chk input[type=checkbox],.filters label.chk input[type=checkbox]{
  width:auto;min-width:0;flex:0 0 auto;margin:0}
fieldset.sheets{border:1px solid var(--line);border-radius:6px;padding:8px 12px;margin:10px 0}
fieldset.sheets legend{font-size:12px;color:var(--mut)}
details.docs{border:1px solid var(--line);border-radius:5px;padding:6px 10px;background:#fff;max-height:220px;overflow:auto}
details.docs summary{cursor:pointer;font-size:13px}

.tabs{display:flex;gap:6px;margin:10px 0}
.tabs a{padding:5px 12px;border:1px solid var(--line);border-radius:16px;background:#fff;font-size:13px}
.tabs a.on{background:var(--accent);color:#fff;border-color:var(--accent)}

.paging{display:flex;gap:12px;align-items:center;margin:8px 0;font-size:12.5px;color:var(--mut)}
.aktheader{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:10px 0}
@media(max-width:900px){.aktheader{grid-template-columns:1fr}}

/* ---- kirish sahifasi ---- */
body.loginbg{display:flex;align-items:center;justify-content:center;height:100vh;
  background:linear-gradient(160deg,#e9eff8,#f6f8fb)}
.loginbox{background:#fff;border:1px solid var(--line);border-radius:10px;padding:26px 28px;
  width:340px;box-shadow:0 6px 26px rgba(20,40,80,.10)}
.loginbox h1{margin:0;font-size:22px;font-weight:500}
.loginbox h1 b{color:var(--accent)}
.loginbox .sub{color:var(--mut);font-size:12.5px;margin:2px 0 16px}
.loginbox button{width:100%;margin-top:12px;padding:9px}
.loginbox .hint{margin-top:12px;text-align:center}

/* ---- sarlavhadagi holat sanasi ---- */
form.asof{display:inline-flex;align-items:center;gap:6px;margin:0}
form.asof label{margin:0;display:inline-flex;align-items:center;gap:5px;
  font-size:12px;color:var(--mut);white-space:nowrap}
form.asof input[type=date]{width:auto;padding:3px 6px;font-size:12.5px}
form.asof button{padding:3px 9px;font-size:13px;line-height:1.2}

/* ---- davr tanlash (dan … gacha) ---- */
.filters label.rng{display:inline-flex;align-items:center;gap:6px;margin:0;
  font-size:13px;color:#33425c;white-space:nowrap}
.filters label.rng input[type=date]{width:auto;min-width:0}
table.data tfoot td{position:sticky;bottom:0;background:#fff6d8;z-index:2}

/* ---- qidiruvli xaridor maydoni ---- */
.combo{position:relative;display:inline-block;min-width:430px;max-width:100%}
.combo input{width:100%;padding-right:26px}
.combo-clear{position:absolute;right:4px;top:50%;transform:translateY(-50%);
  background:none;border:0;color:var(--mut);font-size:17px;line-height:1;
  padding:0 5px;cursor:pointer}
.combo-clear:hover{background:none;color:var(--warn)}
.combo-list{position:absolute;z-index:20;left:0;right:0;top:100%;margin-top:2px;
  background:#fff;border:1px solid var(--line);border-radius:6px;
  box-shadow:0 6px 20px rgba(20,40,80,.14);max-height:340px;overflow:auto}
.combo-item{padding:6px 10px;cursor:pointer;font-size:13px;white-space:nowrap;
  overflow:hidden;text-overflow:ellipsis}
.combo-item:hover,.combo-item.on{background:var(--accent2)}
.combo-empty,.combo-more{padding:6px 10px;font-size:12px;color:var(--mut)}
a.sug{display:inline-block;margin:3px 8px 0 0;padding:2px 8px;background:#fff;
  border:1px solid var(--line);border-radius:12px;font-size:12.5px}

/* ---- kontragent tanlash ro'yxati ---- */
.picker{border:1px solid #f0c8a8;background:#fff8f0;border-radius:8px;
  padding:10px 14px;margin:10px 0}
.picker .pickhead{margin:0 0 8px;font-weight:600;color:#8a4b12}
.picker table{max-width:1100px}
td.nowrap,th.nowrap,.nowrap{white-space:nowrap}
td.pickcol,th.pickcol{width:88px}
a.btn.mini{padding:3px 10px;font-size:12px;display:inline-block}

/* ---- D_H: hujjatlarni belgilash ---- */
.docpick{border:1px solid var(--line);border-radius:8px;background:#fff;
  margin:0 0 12px;max-width:900px;overflow:hidden}
.docpick-head{display:flex;align-items:center;justify-content:space-between;gap:12px;
  padding:6px 10px;background:#eef2f8;border-bottom:1px solid var(--line);font-size:13px}
.docpick-acts{display:flex;gap:6px}
.docpick-acts .btn.mini{padding:2px 9px;font-size:12px}
/* ~4 ta hujjat ko'rinadi, ortig'i uchun vertikal aylantirish */
.docpick-list{max-height:132px;overflow-y:auto}
.docpick-item{display:grid;grid-template-columns:20px 130px 92px 1fr;align-items:center;
  gap:8px;padding:5px 10px;margin:0;font-size:13px;cursor:pointer;
  border-bottom:1px solid #f0f3f8}
.docpick-item:last-child{border-bottom:0}
.docpick-item:hover{background:var(--accent2)}
.docpick-item input{width:auto;min-width:0;margin:0;justify-self:center}
.dp-no{font-weight:600;white-space:nowrap}
.dp-date{color:var(--mut);white-space:nowrap}
.dp-prod{color:#33425c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:760px){
  .docpick-item{grid-template-columns:20px 1fr;row-gap:2px}
  .dp-date,.dp-prod{grid-column:2}
}

/* ---- kompakt hisobot jadvali ---- */
table.compact th,table.compact td{padding:4px 7px}
table.compact td.num{white-space:nowrap}
table.compact tfoot td{position:sticky;bottom:0;background:#fff6d8}

/* H hisoboti — ustunlar kenglikka to'liq taqsimlanadi, o'ngda bo'sh joy qolmaydi */
table.hfull{width:100%}
table.hfull th,table.hfull td{overflow:hidden;text-overflow:ellipsis}

/* ---- qatordagi kichik dumaloq diagramma ---- */
td.mini-td{text-align:center;padding:2px 4px}
.mini{display:inline-flex;align-items:center;gap:5px}
.mini svg{width:30px;height:30px;flex:0 0 30px}
.mini-track{fill:none;stroke:#e8edf5;stroke-width:5}
.mini-arc{fill:none;stroke-width:5;stroke-linecap:round}
.mini b{font-size:11.5px;font-weight:600;color:#33425c;font-variant-numeric:tabular-nums}
.mini b.over{color:var(--ok)}
.mini-na{color:var(--mut)}

/* ---- Kutilayotgan tushumlar: dastlabki 2 ustun muzlatiladi ---- */
table.sticky2 tr>th:nth-child(1),table.sticky2 tr>td:nth-child(1){
  position:sticky;left:0;z-index:3;box-shadow:1px 0 0 var(--line)}
table.sticky2 tr>th:nth-child(2),table.sticky2 tr>td:nth-child(2){
  position:sticky;left:46px;z-index:3;box-shadow:1px 0 0 var(--line)}
table.sticky2 thead tr>th:nth-child(1),table.sticky2 thead tr>th:nth-child(2){z-index:5}
table.sticky2 tbody tr:nth-child(even)>td:nth-child(-n+2){background:#fbfcfe}
table.sticky2 tbody tr:hover>td:nth-child(-n+2){background:#f0f5fd}
table.sticky2 thead tr:nth-child(2) th{top:var(--hdr1,32px)}
tr.totrow th{background:#e2eaf6 !important;font-weight:600}
tr.totrow th.num{text-align:right;font-variant-numeric:tabular-nums}

/* Excelga yuklash tugmasi */
.btn.excel{background:#1e7a3c}
.btn.excel:hover{background:#186330}

/* Saralanadigan ustun sarlavhalari */
table.sticky2 thead th a{display:block;color:#33425c}
table.sticky2 thead th a:hover{color:var(--accent);text-decoration:none}
table.sticky2 thead th.sorted{background:#d8e4f5}
table.sticky2 thead th.sorted a{color:var(--accent)}
th .arrow{font-size:10px;margin-left:2px}

/* ---- MacBro ish maydoni: yagona ERP dizayn tizimi ---- */
:root{--bg:#f5f7f7;--card:#fff;--line:#e4e9e7;--ink:#243630;--mut:#78847e;--accent:#277858;--accent2:#edf5f0;--warn:#b65c43;--ok:#287a56;--spec:#f5f7f6;--sidebar:#172b24;--sidebar-width:236px;--radius:12px}
body{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:13px;line-height:1.5;-webkit-font-smoothing:antialiased}
a,button,input,select,summary{ -webkit-tap-highlight-color:transparent}
a,button{transition:background .16s,color .16s,border-color .16s}
a:hover{color:#185b40}
.icon{display:inline-block;flex:0 0 auto;vertical-align:middle}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
:focus-visible{outline:3px solid #80bba2;outline-offset:3px}
[hidden]{display:none!important}
.skip-link{position:fixed;top:-80px;left:250px;z-index:100;background:#fff;padding:12px 20px;border-radius:8px}.skip-link:focus{top:8px}
.sidebar{width:var(--sidebar-width);position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;background:var(--sidebar);color:#c5d1ca;z-index:40;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#3e554b transparent}
.sidebar .brand{display:flex;align-items:center;gap:10px;color:white;padding:28px 25px 24px;font-size:23px;font-weight:650;letter-spacing:-.8px;text-decoration:none}
.brand-mark{display:grid;place-items:center;width:39px;height:39px;color:#fff;background:#398763;border-radius:11px;flex:0 0 auto}
.brand-product{display:block;font-size:8px;line-height:1.4;letter-spacing:2.1px;font-weight:500;color:#a1b6aa;margin-top:1px}
.workspace-label{display:flex;align-items:center;gap:10px;margin:0 18px 21px;padding:12px 10px;border:1px solid #34473e;border-radius:8px;font-size:12px;color:#e2e9e5}
.workspace-label small{display:block;color:#9dae9f;font-size:10px;margin-top:2px}.workspace-avatar{width:29px;height:29px;display:grid;place-items:center;background:#32483b;border:1px solid #49604f;border-radius:7px;font-weight:600;color:#d8e4d8}.workspace-dot{width:6px;height:6px;background:#8aba8f;border-radius:50%;margin-left:auto}
.side-nav{padding:0 12px;flex:1}.nav-group{margin-bottom:21px}.nav-label{font-size:9px;letter-spacing:1.35px;color:#91a599;margin:0 13px 9px;font-weight:550}.nav-link{display:flex;align-items:center;gap:11px;padding:10px 13px;color:#b9c7bf;border-radius:7px;font-size:12px;min-height:39px;margin:3px 0}.nav-link .icon{width:17px;height:17px;opacity:.85}.nav-link:hover{color:#fff;background:#263c30;text-decoration:none}.nav-link.active{color:white;background:#336048;box-shadow:inset 0 0 0 1px #476f56}.nav-link.active .icon{color:#c4dec7;opacity:1}.active-dot{width:5px;height:5px;border-radius:50%;background:#bdd8a7;margin-left:auto}
.sidebar-bottom{padding:10px 20px 17px;margin-top:8px}.source-badge{border-top:1px solid #34483b;padding-top:18px;display:flex;align-items:center;gap:10px;color:#d3dfd6;font-size:12px}.source-badge>.icon{color:#9eb7a7}.source-badge small{display:block;font-size:9px;color:#8fa395}.read-only{border:1px solid #46594c;background:#233b2c;padding:2px 5px;border-radius:4px;font-size:9px;margin-left:auto;color:#b7c9b9}.sidebar-version{display:flex;justify-content:space-between;font-size:8px;color:#8ca193;margin-top:22px}.sidebar-version>span{font-size:8px}
.app-shell{margin-left:var(--sidebar-width);min-height:100vh;display:flex;flex-direction:column;min-width:0}.topbar{height:76px;background:white;border-bottom:1px solid var(--line);display:flex;align-items:center;padding:0 30px;gap:24px;position:relative;z-index:20}.breadcrumbs{display:flex;align-items:center;gap:14px;font-size:11px;white-space:nowrap}.breadcrumbs>a{color:var(--mut)}.breadcrumbs>.icon{width:12px;height:12px;color:#a6b1ab}.breadcrumbs>span{font-weight:500}
.global-search{margin-left:auto;display:flex;align-items:center;gap:8px;border:1px solid var(--line);background:#fafbfa;border-radius:7px;padding:6px 10px;width:268px}.global-search>.icon{width:16px;height:16px;color:#88968d}.global-search input{padding:2px 0;border:0!important;background:transparent!important;min-width:0;outline:none;font-size:11px}.global-search:focus-within{border-color:var(--accent)}.global-search kbd{border:1px solid #dee5e0;border-radius:3px;padding:0 5px;background:#fff;font-size:11px;color:#96a098}
.profile-menu{position:relative}.profile-menu summary{display:flex;align-items:center;gap:9px;cursor:pointer;list-style:none}.profile-menu summary::-webkit-details-marker{display:none}.avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#edf1e8;color:#57694a;font-size:11px;font-weight:600;border:1px solid #dfe6d7}.profile-name{font-size:11px;font-weight:600}.profile-name small{display:block;font-size:9px;font-weight:400;color:var(--mut)}.profile-menu summary>.icon{width:14px;height:14px;color:var(--mut);margin-left:5px}.profile-dropdown{position:absolute;top:48px;right:0;width:218px;border:1px solid var(--line);border-radius:9px;padding:6px;background:white;box-shadow:0 8px 25px #1c362018}.profile-dropdown>a{display:flex;gap:9px;padding:10px;border-radius:5px;color:var(--ink);font-size:12px}.profile-dropdown>a:hover{background:var(--accent2);text-decoration:none}.profile-dropdown .icon{width:16px;height:16px}
.icon-button{display:inline-flex;align-items:center;justify-content:center;background:transparent;color:var(--ink);padding:8px;border:1px solid var(--line);border-radius:7px}.icon-button:hover{background:var(--accent2)}.mobile-menu{display:none}.sidebar-overlay{position:fixed;inset:0;background:#101d1880;z-index:30;border-radius:0}
.workspace main{padding:30px 30px 20px;max-width:1800px;width:100%;margin:0 auto;flex:1;min-width:0}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:23px}.eyebrow{font-size:8px;font-weight:600;letter-spacing:1.5px;color:#7f9187;margin-bottom:6px}.page-heading h1{font-size:27px;line-height:1.25;letter-spacing:-.9px;margin:0;font-weight:650}.page-heading p{font-size:11px;color:var(--mut);margin:7px 0 0}.page-heading-actions{display:flex;gap:8px}.btn,button{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 14px;border-radius:7px;font-size:12px;font-weight:550;min-height:36px;border:1px solid transparent;line-height:1.35}.btn .icon,button .icon{width:15px;height:15px}.btn:hover,button:hover{background:#1d6045;color:white}.btn.ghost{background:white;border-color:#dce4df;color:#41534a}.btn.ghost:hover{background:#f0f5f2;border-color:#afc4b7}.btn.excel{background:var(--accent)}.btn.excel:hover{background:#1d6045}button[disabled]{color:#fff}.context-bar{display:flex;align-items:center;gap:12px;background:#f0f3f1;border:1px solid #e3e9e5;padding:9px 13px;border-radius:8px;margin-bottom:24px;font-size:10px;color:#738178;min-height:46px}.snapshot-label{display:flex;align-items:center;gap:7px;white-space:nowrap}.snapshot-label .icon{width:14px;height:14px}.context-bar .asof{gap:7px}.asof input[type=date]{border-color:#dce4dd;padding:4px 7px;font-size:11px;color:#3c5244;min-height:28px}.asof .date-apply{font-size:10px;background:#fff;border:1px solid #dce4dd;color:#40594a;padding:4px 9px;min-height:28px}.asof .date-apply:hover{background:#e1ebe4}.context-divider{height:18px;width:1px;background:#d9e1db}.exchange-rate{white-space:nowrap}.exchange-rate span{padding:0 4px;color:#9aa69e}.exchange-rate b{color:#53685a;font-weight:550}.snapshot-note{display:flex;align-items:center;gap:5px;margin-left:auto;white-space:nowrap;font-size:9px}.snapshot-note .icon{width:13px;height:13px;color:#6b957b}
.card{border-radius:var(--radius);padding:21px;border-color:var(--line);margin-bottom:20px;box-shadow:0 2px 3px #243d2802;min-width:0}.card h2{font-size:16px;letter-spacing:-.3px;margin:0 0 16px;font-weight:600}.card h3{font-size:14px;font-weight:600;margin-top:0}.row2{gap:20px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:19px}.section-heading h2{font-size:14px;letter-spacing:-.2px;margin:0 0 4px}.section-heading p{font-size:10px;color:var(--mut);margin:0}.section-heading>.icon{color:#95a49a;width:17px;height:17px}.soft-label{background:#f5f7f6;border:1px solid #e9eeeb;color:#718076;font-size:9px;padding:5px 8px;border-radius:5px;white-space:nowrap}.subtle-link{display:inline-flex;align-items:center;gap:8px;white-space:nowrap;font-size:10px}.subtle-link .icon{width:14px;height:14px}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:22px}.kpi-card{border:1px solid var(--line);border-radius:var(--radius);padding:18px 18px 13px;background:#fff;display:block;color:var(--ink);overflow:hidden}.kpi-card:hover{border-color:#a7c4b3;box-shadow:0 3px 12px #24472e08;text-decoration:none;color:var(--ink)}.kpi-top{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#738279}.kpi-icon{width:32px;height:32px;display:grid;place-items:center;border-radius:9px}.kpi-icon .icon{width:17px;height:17px}.green{background:#ecf5ef;color:#397858}.amber{background:#fcf3e7;color:#af7d39}.blue{background:#edf2f8;color:#6689b0}.purple{background:#f1edf7;color:#9480b1}.kpi-value{font-size:25px;letter-spacing:-.9px;font-weight:620;margin:12px 0 18px;font-variant-numeric:tabular-nums;line-height:1.2;white-space:nowrap}.kpi-value>span{font-size:10px;font-weight:400;letter-spacing:0;color:#8d9891;margin-left:6px}.debt-value{color:#b27937}.kpi-bottom{display:flex;align-items:center;gap:5px;padding-top:11px;border-top:1px solid #eef1ef;font-size:9px;color:#869389;white-space:nowrap}.kpi-bottom>.icon{width:12px;height:12px;margin-left:auto;color:#9ca99f}.metric-badge{font-size:9px;padding:3px 6px;border-radius:4px;white-space:nowrap;font-weight:550}.status-dot{display:inline-block;width:5px;height:5px;border-radius:50%;flex-shrink:0}.green-dot{background:#77a78a}.green-text{color:#348566}
.dashboard-main-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,1fr);gap:20px}.dashboard-main-grid>.card{margin-bottom:18px}.chart-summary{display:flex;gap:32px;align-items:center;margin-bottom:5px}.chart-summary>div>span{font-size:9px;color:#8a958e;display:block;margin-bottom:5px}.chart-summary strong{font-size:19px;font-weight:550;letter-spacing:-.6px}.chart-summary strong small{font-size:9px;font-weight:400;letter-spacing:0}.chart-legend{display:flex;gap:13px;margin-left:auto;align-self:flex-start;margin-top:7px}.chart-legend>span{display:flex!important;align-items:center;gap:5px;color:#859187!important;font-size:9px!important}.legend-line{display:inline-block;width:14px;height:0;border-top:2px solid}.legend-line.plan{border-color:#8ca6bc;border-top-style:dashed}.legend-line.fact{border-color:#348566}.revenue-chart{margin:8px -5px 3px}.revenue-chart svg{display:block;width:100%;height:auto}.chart-axis{font-size:10px;fill:#8e9b92;font-family:inherit}.chart-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding-top:12px;border-top:1px solid #edf1ee;font-size:10px}.chart-footer>a{display:flex;gap:8px;align-items:center;white-space:nowrap}.chart-footer .icon{width:14px;height:14px}.chart-details summary{cursor:pointer;font-size:10px;color:#7c8d80}.chart-details[open]{flex:1}.chart-details .tablewrap{margin-top:12px}.chart-details table.grid{font-size:10px}.chart-details table.grid th,.chart-details table.grid td{padding:7px 6px}
.distribution-card{display:flex;flex-direction:column}.donut-area{display:flex;justify-content:center;padding:4px 0 18px}.debt-donut{width:178px;height:178px;border-radius:50%;background:#e9eeeb;padding:21px;transform:rotate(0deg)}.donut-center{border-radius:50%;background:white;width:100%;height:100%;display:flex;align-items:center;justify-content:center;flex-direction:column;box-shadow:0 0 0 6px white}.donut-center span{font-size:9px;color:#8a978e}.donut-center strong{font-size:24px;font-weight:600;letter-spacing:-1px;margin:4px 0 0}.donut-center small{font-size:9px;color:#9aa69d}.distribution-legend{display:grid;gap:11px;margin-bottom:19px}.distribution-legend>div{display:flex;align-items:center;gap:8px;font-size:10px}.distribution-legend>div>span:first-child{display:flex;align-items:center;gap:7px}.distribution-legend i{width:7px;height:7px;border-radius:2px}.distribution-legend strong{font-size:10px;font-weight:550;margin-left:auto;white-space:nowrap}.distribution-legend small{font-size:8px;font-weight:400}.distribution-legend .percent{color:#87968b;text-align:right;width:36px;font-size:9px}.card-bottom-link{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #edf1ee;padding-top:13px;font-size:10px;margin-top:auto}.card-bottom-link .icon{width:14px;height:14px}
.quick-actions{display:flex;align-items:center;gap:0;border:1px solid var(--line);background:#fff;border-radius:9px;padding:14px 17px;margin:2px 0 22px}.quick-label{font-size:8px;letter-spacing:1px;color:#97a398;white-space:nowrap;margin-right:21px}.quick-actions a{display:flex;align-items:center;gap:8px;flex:1;padding:2px 15px;border-left:1px solid #e9eeea;font-size:10px;color:#586d5f;white-space:nowrap}.quick-actions a>.icon{width:15px;height:15px;color:#73927e}.quick-actions a>.icon:last-child{margin-left:auto;width:12px;height:12px}.quick-actions a:hover{color:var(--accent)}.dashboard-bottom-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:20px}.aging-list{display:grid;gap:4px}.aging-row{display:grid;grid-template-columns:66px minmax(30px,1fr) 87px 12px;gap:13px;align-items:center;padding:7px 0;color:#687c6c;font-size:10px}.aging-row:hover{text-decoration:none;color:#235f42}.aging-track{height:6px;border-radius:3px;background:#f0f3f1;overflow:hidden}.aging-track i{display:block;height:100%;border-radius:3px}.aging-row strong{font-size:10px;text-align:right;font-weight:550;color:#526756;font-variant-numeric:tabular-nums}.aging-row .icon{width:11px;height:11px;color:#9aa69c}.integration-label{font-size:10px;font-weight:600;background:#fbf5e6;color:#ad8b46;padding:5px 8px;border-radius:5px}.reconciliation-card{display:flex;flex-direction:column}.reconciliation-card>.tablewrap{border:0;border-radius:0;max-height:240px}.dashboard-table td:first-child{font-size:10px;max-width:160px}.dashboard-table th{font-size:9px}.dashboard-table td{font-size:10px}.difference-badge{display:inline-block;padding:2px 5px;border-radius:4px;background:#fbf0e4;color:#b48543}.reconciliation-note{display:flex;align-items:center;gap:8px;margin:12px 0 16px;color:#8d9a91}.reconciliation-note .icon{width:17px;height:17px}.reconciliation-note p{font-size:9px;margin:0;line-height:1.6}.sync-card{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;gap:15px;margin-bottom:16px}.sync-main{display:flex;gap:12px;align-items:center}.sync-icon{width:34px;height:34px;background:#f0f4f1;border:1px solid #e3eae5;border-radius:8px;display:grid;place-items:center;color:#819b88}.sync-icon .icon{width:17px;height:17px}.sync-main h3{font-size:11px;margin:0 0 3px}.sync-main p{font-size:9px;color:#839087;margin:0}.sync-meta{display:flex;align-items:center;gap:16px}.sync-meta>a{font-size:10px;display:flex;align-items:center;gap:8px}.sync-meta .icon{width:14px;height:14px}.currency-footnote{display:flex;align-items:center;gap:24px;color:#95a197;font-size:9px;padding:0 3px}.currency-footnote b{font-weight:500;color:#6a7e6e;margin-left:6px}.app-footer{display:flex;justify-content:space-between;gap:12px;text-align:left;border-top:1px solid #e4eae5;font-size:9px;color:#98a39a;padding:16px 30px}.footer-dot{margin:0 9px}.welcome-empty{text-align:center;padding:70px 20px}.empty-icon{width:64px;height:64px;display:grid;place-items:center;margin:0 auto 20px;border-radius:18px;background:var(--accent2);color:var(--accent)}.empty-icon .icon{width:30px;height:30px}.welcome-empty p{color:var(--mut);line-height:1.9;margin-bottom:25px}
/* Hisobotlar: bir xil filtrlar, sarlavhalar va o'qilishi qulay jadvallar. */
.filters{padding:13px;background:#f7f9f7;border:1px solid #e7ece8;border-radius:8px;gap:10px;margin:17px 0}.filters input[name=q]{min-width:230px;flex:1}.filters input,.filters select{font-size:12px;min-height:35px}.filters select{min-width:120px}.filters .chk{font-size:11px;min-width:0}.filters .chk input{min-height:0}.filters button,.filters .btn{font-size:11px}input[type=text],input[type=password],input[type=date],input:not([type]),select,textarea{border-color:#dce4de;border-radius:6px;padding:8px 10px;color:#3e5145}input::placeholder{color:#97a398}input[type=checkbox]{accent-color:var(--accent)}form label{font-size:12px;color:#607266}.tiles{gap:14px;margin-bottom:20px}.tile{border-radius:9px;padding:16px;background:#fafcfb;gap:7px}.tile .lbl{font-size:10px}.tile .val{font-size:23px;font-weight:550;letter-spacing:-.7px}.tiles.small .tile{padding:15px}.tablewrap{border-color:#e2e9e4;border-radius:8px;scrollbar-width:thin;scrollbar-color:#c5d3c9 #f6f8f6}.tablewrap:focus-visible{outline-offset:2px}table.grid{font-size:12px}table.grid th,table.grid td{padding:10px 11px;border-right-color:#edf1ee;border-bottom-color:#e9eeeb;vertical-align:middle}table.grid th{background:#f2f6f3;color:#617468;font-size:11px;font-weight:600;line-height:1.45}table.grid th a{color:#536e5b}table.grid th a:hover{color:#1d6644}table.grid tr>*:first-child{border-left:0}table.grid tr:first-child>*{border-top:0}table.grid tr>*:last-child{border-right:0}table.grid td.num{font-size:11px}table.data tr:nth-child(even) td{background:#fafcfb}table.data tr:hover td,table.sticky1 tbody tr:hover>td:first-child,table.sticky2 tbody tr:hover>td:nth-child(-n+2){background:#edf5ef}table.sticky1 tbody tr:nth-child(even)>td:first-child,table.sticky2 tbody tr:nth-child(even)>td:nth-child(-n+2){background:#fafcfb}table.grouped th.grouphdr,table.tot-table th.grouphdr{background:#eaf1eb;color:#5b7462}table.grouped th.sub{background:#f3f6f3}table.compact th,table.compact td{padding:7px 8px}table.sticky2 thead th.sorted{background:#e4efe6}tr.totrow th{background:#e9f1eb!important}tr.tot td,table.data tfoot td,table.compact tfoot td{background:#f4f4e8!important;font-weight:550}tr.warnrow td{background:#fff8ef!important}.paging{font-size:11px;margin:13px 0;gap:10px;flex-wrap:wrap}.paging a{border:1px solid #dfe7e1;border-radius:5px;background:#fff;padding:4px 9px}.tabs{border-bottom:1px solid var(--line);gap:17px;margin:17px 0}.tabs a{font-size:12px;border:0;border-bottom:2px solid transparent;border-radius:0;padding:9px 4px;background:transparent;color:#7a8e7f}.tabs a.on{background:transparent;border-color:var(--accent);color:var(--accent);font-weight:600}.hint{font-size:11px;line-height:1.7}.banner,.err,.okmsg{font-size:12px;border-radius:7px;padding:12px 15px;margin-bottom:16px}.banner.run{border:1px solid #e3d8ad;background:#faf6e9}.btn.mini,button.mini{min-height:27px}.combo{min-width:min(430px,100%)}.combo-clear{min-height:0}.combo-clear:hover{color:var(--warn)}.docpick-head{background:#edf3ee}.docpick-list{max-height:180px}.docpick-item{font-size:12px}.mini b{font-size:10px}.mini-track{stroke:#e7ede8}
/* Kirish: brend va sodda, tushunarli forma. */
body.loginbg{height:auto;min-height:100vh;background:#f7f9f7;display:grid;grid-template-columns:1fr 1fr;align-items:stretch}.login-story{background:#172b24;color:#fff;padding:42px 10%;display:flex;flex-direction:column;position:relative;overflow:hidden}.login-story .brand{display:flex;align-items:center;gap:11px;color:white;font-size:25px;font-weight:600;letter-spacing:-1px;text-decoration:none}.login-story-content{margin:auto 0;position:relative;z-index:1;padding:65px 0}.login-eyebrow{display:inline-block;padding:5px 10px;border:1px solid #46634f;border-radius:5px;color:#aec8b6;font-size:10px;letter-spacing:1px}.login-story h2{font-size:clamp(32px,3.4vw,53px);font-weight:500;line-height:1.2;letter-spacing:-1.8px;margin:23px 0}.login-story h2 span{color:#b3caa2}.login-story-content>p{color:#a3b6a8;font-size:13px;line-height:1.9;max-width:370px}.login-features{display:flex;gap:12px;margin-top:30px;flex-wrap:wrap}.login-features span{display:flex;align-items:center;gap:6px;color:#bbcdbc;font-size:10px}.login-features .icon{width:14px;height:14px}.login-graphic{display:flex;align-items:end;gap:15px;height:145px;margin:36px 0 0;padding:0 14px;border-bottom:1px solid #49614e;max-width:350px}.login-graphic i{flex:1;background:#4b7958;border:1px solid #668c64;border-radius:5px 5px 0 0;opacity:.7}.login-graphic i:nth-child(even){background:#97af7d;opacity:.85}.login-story-footer{font-size:10px;color:#8da693;display:flex;justify-content:space-between;gap:15px}.login-form-side{display:flex;align-items:center;justify-content:center;padding:40px}.loginbox{border:0;background:transparent;box-shadow:none;border-radius:0;padding:0;width:350px;max-width:100%}.loginbox .login-form-icon{display:grid;place-items:center;background:white;border:1px solid #dfe6e0;border-radius:12px;width:47px;height:47px;color:#458264;margin-bottom:27px}.loginbox h1{font-size:29px;font-weight:600;letter-spacing:-1px;color:#23372a}.loginbox .sub{font-size:12px;color:#8a998e;margin:10px 0 28px;line-height:1.7}.loginbox label{font-size:12px;font-weight:500;color:#4b6151;margin:17px 0}.loginbox input{display:block;margin-top:8px;background:#fff;min-height:44px;font-size:13px}.loginbox button[type=submit]{margin-top:7px;padding:13px;font-size:12px;width:100%;min-height:44px}.loginbox button[type=submit] .icon{margin-left:auto}.loginbox .hint{font-size:10px;margin-top:23px}.login-security{display:flex;justify-content:center;align-items:center;gap:6px;font-size:9px;color:#9baa9d;margin-top:50px}.login-security .icon{width:13px;height:13px}.password-input{position:relative}.password-input input{padding-right:44px}.loginbox .password-toggle{position:absolute;right:4px;top:4px;margin:0;width:36px;height:36px;min-height:0;padding:8px;color:#8b9e90;background:transparent;border:0}.loginbox .password-toggle:hover{color:#287a56;background:#edf5ef}
@media(min-width:1550px){.kpi-value{font-size:29px}.topbar{padding-inline:36px}.workspace main{padding-inline:36px}.nav-link{font-size:13px}.dashboard-main-grid{grid-template-columns:minmax(0,1.9fr) minmax(0,1fr)}.donut-area{padding:15px 0 23px}.debt-donut{width:200px;height:200px;padding:23px}.distribution-legend{gap:15px}.distribution-legend>div,.distribution-legend strong{font-size:12px}.distribution-card .card-bottom-link{padding-top:17px}}
@media(max-width:1250px){:root{--sidebar-width:215px}.sidebar .brand{padding-left:20px}.topbar{padding-inline:22px;gap:17px}.workspace main{padding:25px 22px 18px}.kpi-grid{gap:11px}.kpi-card{padding:14px 13px 11px}.kpi-value{font-size:21px}.kpi-bottom{font-size:8px}.kpi-bottom .metric-badge{font-size:8px}.quick-label{display:none}.quick-actions a:first-of-type{border-left:0;padding-left:0}.quick-actions a{padding:2px 11px;font-size:9px}.card{padding:18px}.chart-summary{gap:19px}.chart-summary strong{font-size:17px}.chart-legend{gap:8px}.global-search{width:220px}.dashboard-bottom-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}}
@media(max-width:1050px){.global-search{width:190px}.profile-name{display:none}.breadcrumbs{gap:9px}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.kpi-value{font-size:27px}.kpi-bottom{font-size:10px}.dashboard-main-grid{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:15px}.debt-donut{width:152px;height:152px;padding:18px}.donut-center strong{font-size:21px}.chart-summary{flex-wrap:wrap;gap:12px 20px}.chart-legend{margin-left:0;margin-top:0}.distribution-legend strong{font-size:9px}.distribution-legend small{display:none}.section-heading{gap:8px}.section-heading h2{font-size:13px}.soft-label{font-size:8px}.dashboard-bottom-grid{grid-template-columns:1fr}.quick-actions{flex-wrap:wrap;gap:14px 0}.quick-actions a{flex-basis:50%;font-size:10px}.quick-actions a:nth-of-type(3){border:0;padding-left:0}.snapshot-note{display:none}.page-heading-actions .btn{padding:8px 10px;font-size:10px}.row2{grid-template-columns:1fr}}
@media(max-width:800px){:root{--sidebar-width:236px}.sidebar{transform:translateX(-100%);transition:transform .2s}.sidebar.is-open{transform:translateX(0)}body.menu-open{overflow:hidden}.app-shell{margin-left:0}.mobile-menu{display:inline-flex}.topbar{height:65px;gap:13px;padding-inline:20px}.breadcrumbs>a,.breadcrumbs>.icon{display:none}.global-search{max-width:240px;width:auto;flex:1}.workspace main{padding:24px 20px 16px}.profile-menu{margin-left:auto}.page-heading h1{font-size:25px}.dashboard-main-grid{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}.app-footer{padding-inline:20px}.skip-link{left:20px}body.loginbg{grid-template-columns:1fr 1fr}.login-story{padding:35px 25px}.login-story h2{font-size:35px}.login-form-side{padding:30px}.login-graphic{gap:10px}.login-story-footer>span:last-child{display:none}}
@media(max-width:600px){.topbar{padding-inline:16px;gap:12px}.breadcrumbs{font-size:10px;min-width:0;white-space:normal}.global-search{display:none}.profile-menu summary>.icon{display:none}.workspace main{padding:21px 15px 15px}.page-heading{align-items:flex-start;flex-wrap:wrap;gap:15px;margin-bottom:18px}.page-heading h1{font-size:25px}.page-heading p{font-size:10px}.page-heading-actions{width:100%}.page-heading-actions .btn{font-size:11px;padding:8px 12px}.eyebrow{font-size:7px}.context-bar{gap:8px;flex-wrap:wrap;padding:9px 10px;margin-bottom:17px}.snapshot-label{font-size:10px}.context-divider{display:none}.exchange-rate{flex-basis:100%;font-size:10px;padding-top:5px}.kpi-grid{gap:10px;margin-bottom:17px}.kpi-card{padding:13px 11px 11px}.kpi-top{font-size:10px;gap:4px}.kpi-icon{width:26px;height:26px;border-radius:7px}.kpi-icon .icon{width:14px;height:14px}.kpi-value{font-size:20px;margin:12px 0;white-space:normal;overflow-wrap:anywhere;letter-spacing:-.7px}.kpi-value>span{font-size:8px}.kpi-bottom{font-size:8px;white-space:normal;flex-wrap:wrap;gap:4px;min-height:34px}.kpi-bottom>.icon{display:none}.dashboard-main-grid,.dashboard-bottom-grid{grid-template-columns:1fr;gap:0}.card{padding:17px;margin-bottom:17px;border-radius:10px}.chart-summary{gap:20px}.chart-summary strong{font-size:18px}.chart-legend{margin-left:auto}.debt-donut{width:180px;height:180px;padding:21px}.distribution-legend>div,.distribution-legend strong{font-size:11px}.distribution-legend small{display:inline}.distribution-card .section-heading{margin-bottom:12px}.donut-area{padding:5px 0 22px}.quick-actions{padding:14px 12px;margin-bottom:17px}.quick-actions a{gap:6px;font-size:9px}.quick-actions a>.icon{width:13px;height:13px}.quick-actions a>.icon:last-child{display:none}.aging-row{grid-template-columns:66px minmax(30px,1fr) 80px 12px;gap:9px}.sync-card{align-items:flex-start;flex-wrap:wrap}.sync-meta{width:100%;flex-wrap:wrap;gap:10px}.sync-meta>a{margin-left:auto}.currency-footnote{flex-wrap:wrap;gap:5px 17px;font-size:9px}.currency-footnote>span:first-child{flex-basis:100%}.app-footer{font-size:8px;padding:14px 16px;flex-wrap:wrap}.filters{gap:9px;padding:11px}.filters input[name=q],.filters .combo{min-width:0;width:100%;flex-basis:100%}.filters select{min-width:100px;flex:1}.filters .rng{white-space:normal;flex-wrap:wrap}.filters .rng input{width:100%}.filters input:not([type=checkbox]):not([type=hidden]){max-width:100%}.tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tile .val{font-size:19px;overflow-wrap:anywhere}.tiles.small .tile{padding:12px}.card.narrow{max-width:100%}.aktheader{grid-template-columns:1fr}.combo{min-width:0;width:100%}.tabs{gap:12px;flex-wrap:wrap}.tabs a{font-size:11px}body.loginbg{display:flex;flex-direction:column}.login-story{padding:22px 25px}.login-story .brand{font-size:22px}.login-story-content,.login-story-footer{display:none}.login-form-side{flex:1;padding:42px 25px}.loginbox{width:350px}.login-security{margin-top:35px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
@media print{.sidebar,.topbar,.page-heading-actions,.context-bar,.quick-actions,.app-footer,.filters,.paging,.chart-footer,.card-bottom-link{display:none!important}.app-shell{margin:0}.workspace main{padding:0;max-width:none}.card,.kpi-card{box-shadow:none;break-inside:avoid}.tablewrap{overflow:visible;max-height:none}.workspace{background:#fff}.page-heading{margin-bottom:15px}.dashboard-main-grid,.dashboard-bottom-grid{grid-template-columns:1fr}table.grid th,table.sticky1 tr>td:first-child,table.sticky2 tr>td:nth-child(-n+2){position:static!important}}

/* Mahkamlangan ish paneli va hisobot boshqaruvlari. */
:root{--workspace-header-height:118px;--report-controls-height:100px}
.workspace-header{position:sticky;top:0;z-index:35;background:#fff;box-shadow:0 2px 6px #203c2509;flex:none}
.workspace-header .topbar{height:60px;position:static;z-index:auto;gap:18px}
.workspace-header .breadcrumbs{min-width:0;flex:1;font-size:11px}.workspace-header .breadcrumbs>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-header .global-search{flex:0 1 255px;margin-left:auto}
.workspace-toolbar{min-height:56px;display:flex;gap:12px;align-items:center;padding:7px 30px;border-bottom:1px solid var(--line);background:#fafcfb}
.workspace-toolbar .context-bar{background:none;border:0;border-radius:0;padding:0;margin:0;min-height:0;flex-wrap:nowrap;gap:10px;flex:1}
.toolbar-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}.toolbar-actions .btn{min-height:32px;padding:7px 10px;font-size:11px}.toolbar-actions .help-popover{margin-left:3px}
.workspace main{scroll-margin-top:calc(var(--workspace-header-height) + 12px)}
.report-controls{position:sticky;top:calc(var(--workspace-header-height) - 1px);z-index:12;background:#fff;margin:0 -4px 12px;padding:12px 4px 9px;border-bottom:1px solid var(--line);box-shadow:0 5px 5px -6px #254d36}
.report-title{display:flex;align-items:center;gap:9px;margin:0 0 12px;min-width:0}.report-title h2,.report-title h3{margin:0;min-width:0}.report-title h2{font-size:14px}.report-title h3{font-size:13px}.report-title .help-popover{flex-shrink:0}
.report-controls .filters{margin:0;padding:10px;gap:8px}.report-controls .tabs{margin:0 0 8px;gap:16px}.report-controls .tabs a{padding:5px 3px}.report-controls .filters input[name=q]{min-width:170px}.report-controls .filters input[name=customer],.report-controls .filters input[name=doc_no]{width:150px;min-width:100px;flex:1}.report-controls .filters input[type=date]{min-width:120px;width:140px}.report-controls .filters label.rng input{width:auto}
.report-card>.tablewrap{max-height:clamp(180px,calc(100dvh - var(--workspace-header-height) - var(--report-controls-height) - 42px),70vh)}
.report-card .tablewrap.short{max-height:clamp(180px,calc(100dvh - var(--workspace-header-height) - var(--report-controls-height) - 42px),60vh)}
.report-card .tablewrap table.hfull{min-width:1000px}
.docpick-summary{padding:8px 11px;background:#f3f7f4;cursor:pointer;font-size:11px;color:#587361}.report-controls .docpick{margin:9px 0 0;max-width:none}.report-controls .docpick-list{max-height:125px}.report-controls .docpick[open]{max-height:205px;overflow:auto}
/* Yordam belgisi: o'qilishi qulay, ekran chetidan chiqmaydigan batafsil izoh. */
.help-popover{display:inline-block;vertical-align:middle;position:relative;line-height:1.5;text-align:left;font-style:normal}
.help-popover>summary{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border:1px solid #cad9cf;border-radius:50%;background:#f7faf8;color:#637d6b;font-size:12px;font-weight:600;cursor:pointer;list-style:none;user-select:none}
.help-popover>summary::-webkit-details-marker{display:none}.help-popover>summary:hover,.help-popover[open]>summary{color:var(--accent);border-color:#81ac92;background:#e9f3ed}
.help-content{position:absolute;right:0;top:calc(100% + 8px);width:350px;max-width:calc(100vw - 24px);padding:18px;background:white;border:1px solid #d9e4dc;border-radius:10px;box-shadow:0 12px 35px #18352226;z-index:70;white-space:normal;max-height:65vh;overflow:auto;color:#526a59;font-size:12px;font-weight:400;line-height:1.75;overflow-wrap:anywhere}
.help-content.is-positioned{position:fixed;right:auto;z-index:80}.help-title{display:block;font-size:13px;color:#2c4735;margin-bottom:10px}.help-content p,.help-content .hint{font-size:12px;line-height:1.75;margin:0 0 10px;color:#607267}.help-content p:last-child{margin-bottom:0}.help-content code{font-size:11px}.help-content a{display:inline;color:var(--accent)}.reconciliation-help{display:flex;justify-content:flex-end;padding:8px 0}
/* Ogohlantirishlar endi sahifani band qilmaydi: qizil hisoblagich va ochiladigan markaz. */
.notification-menu{position:relative;flex:none}.notification-trigger{position:relative;display:flex;align-items:center;justify-content:center;width:35px;height:35px;list-style:none;cursor:pointer;border:1px solid #e1e9e3;border-radius:8px;background:white;color:#7a9081}.notification-trigger::-webkit-details-marker{display:none}.notification-trigger>.icon{width:18px;height:18px}.notification-trigger.has-errors{color:#bd4246;background:#fff8f7;border-color:#f0d2d1}.notification-trigger:hover{background:#f3f6f4}.notification-count{position:absolute;right:-5px;top:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;border:2px solid #fff;background:#dc464f;color:#fff;font-weight:650;font-size:9px;line-height:13px;text-align:center}.notification-menu.is-read .notification-count{background:#fff;color:#bd4246;border:1px solid #d7686c;line-height:15px}.activity-dot{position:absolute;right:1px;top:2px;width:7px;height:7px;border-radius:50%;background:#d2a447;border:1px solid white}
.notification-panel{position:absolute;right:0;top:calc(100% + 12px);width:410px;max-width:calc(100vw - 24px);max-height:70vh;overflow:auto;background:#fff;border:1px solid #e1e7e2;border-radius:12px;box-shadow:0 14px 45px #162e2629;text-align:left;z-index:60}.notification-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:16px 18px;border-bottom:1px solid #edf1ed}.notification-heading h2{font-size:14px;margin:0}.notification-heading>span{font-size:10px;color:#929e95}.notification-item{display:flex;gap:11px;padding:18px;border-bottom:1px solid #edf1ed}.notification-item:last-child{border-bottom:0}.notice-symbol{flex:none;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:#fff0ee;color:#c35756;font-size:15px;font-weight:650}.running-symbol{background:#f9f2e3;color:#a48939}.notice-symbol .icon{width:14px;height:14px}.notification-item>div{min-width:0}.notification-item h3{font-size:12px;margin:1px 0 8px;color:#7f4241}.notification-item p{font-size:11px;line-height:1.75;color:#718275;margin:0 0 12px;overflow-wrap:anywhere}.notification-item a{display:flex;gap:8px;align-items:center;font-size:11px}.notification-item a .icon{width:13px;height:13px}.notification-totals{display:grid;grid-template-columns:1fr auto;gap:6px 12px;padding:11px;background:#f8faf8;border-radius:7px;font-size:10px;margin:10px 0 12px}.notification-totals dt{color:#809184}.notification-totals dd{margin:0;text-align:right;font-weight:600}.notifications-empty{padding:30px 18px;text-align:center;color:#85978b}.notifications-empty .icon{width:25px;height:25px}.notifications-empty p{font-size:12px}
.source-issues{border:1px solid #ebdbd6;border-radius:8px;background:#fff;margin:16px 0;scroll-margin-top:calc(var(--workspace-header-height) + var(--report-controls-height) + 15px)}.source-issues>summary{display:flex;gap:9px;align-items:center;padding:11px 13px;cursor:pointer;font-size:12px;list-style:none;color:#985653}.source-issues>summary::-webkit-details-marker{display:none}.source-issues>summary::after{content:'⌄';margin-left:auto}.source-issues[open]>summary::after{content:'⌃'}.source-issues>summary .hint{font-size:10px;margin-left:auto}.issue-count{display:inline-grid;place-items:center;min-width:20px;height:20px;background:#fbecea;color:#b65052;border-radius:5px;font-size:10px}.source-issues>.tablewrap{margin:0 12px 12px}.source-issues .grid td.small{min-width:65px}
@media(min-width:1550px){.workspace-toolbar{padding-inline:36px}}
@media(max-width:1250px){.workspace-header .topbar{padding-inline:22px;gap:13px}.workspace-toolbar{padding-inline:22px}.workspace-toolbar .context-bar{gap:8px}.workspace-toolbar .snapshot-label>span{display:none}.workspace-header .breadcrumbs{font-size:10px}.workspace-header .global-search{flex-basis:200px}}
@media(max-width:1050px){.workspace-toolbar .context-bar{gap:6px}.workspace-toolbar .exchange-rate{font-size:9px}.toolbar-actions .btn{padding:6px 8px;font-size:10px}.toolbar-actions{gap:6px}.workspace-toolbar{gap:8px}.report-controls .filters{gap:7px}.report-title h2{font-size:13px}}
@media(max-width:800px){.workspace-header .topbar{height:56px;padding-inline:16px}.workspace-toolbar{padding:7px 16px;flex-wrap:wrap;gap:7px}.workspace-toolbar .context-bar{flex:1;min-width:0}.workspace-toolbar .context-divider{display:none}.workspace-toolbar .exchange-rate{flex-basis:auto;font-size:10px;padding:0}.workspace-header .breadcrumbs{flex:1}.workspace-header .global-search{flex:0 1 170px}.report-controls{padding-top:9px}.report-controls .filters{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin;align-items:center;padding:8px;max-width:100%}.report-controls .filters>*{flex:0 0 auto!important}.report-controls .filters input[name=q]{width:195px!important;min-width:195px;flex-basis:auto!important}.report-controls .filters .combo{width:220px;min-width:220px;flex-basis:auto!important}.report-controls .filters .combo-list{position:fixed;left:16px;right:16px;top:auto;width:auto;max-height:220px}.report-controls .filters .rng{flex-wrap:nowrap;white-space:nowrap}.report-controls .filters .rng input[type=date]{width:130px}.report-controls .filters input[name=customer]{width:170px}.report-controls .tabs{flex-wrap:nowrap;white-space:nowrap}.notification-panel{position:fixed;right:12px;top:60px;max-height:calc(100dvh - 90px)}.report-controls .docpick[open]{max-height:155px}.source-issues>summary{flex-wrap:wrap}.source-issues>summary .hint{display:none}}
@media(max-width:600px){.workspace-header .topbar{gap:12px}.workspace-header .global-search{display:none}.workspace-toolbar{padding:7px 15px}.workspace-toolbar .context-bar{flex-basis:100%;justify-content:space-between;gap:6px}.workspace-toolbar .exchange-rate{font-size:9px;white-space:nowrap}.workspace-toolbar .asof input[type=date]{width:115px;font-size:10px;padding:4px}.workspace-toolbar .asof{gap:5px}.workspace-toolbar .snapshot-label{display:none}.workspace-toolbar .asof .date-apply{font-size:9px;padding:4px 7px}.toolbar-actions{width:100%;justify-content:flex-end;margin-left:0;gap:7px}.toolbar-actions .btn{min-height:28px;padding:5px 9px}.toolbar-actions .btn .icon{width:13px;height:13px}.toolbar-actions>.help-popover{margin-left:auto;order:-1}.workspace main{padding-top:20px}.page-heading h1{font-size:23px}.report-title h2{font-size:12px}.help-popover>summary{width:23px;height:23px}.report-controls .filters select{min-width:110px}.notification-panel{width:calc(100vw - 24px)}.notification-totals{grid-template-columns:1fr;gap:3px}.notification-totals dd{text-align:left;margin-bottom:5px}.source-issues>summary{font-size:11px}.report-controls .docpick-list{max-height:95px}.report-card .tablewrap{max-height:clamp(180px,calc(100dvh - var(--workspace-header-height) - var(--report-controls-height) - 28px),65vh)}}
@media print{.workspace-header,.help-popover,.source-issues,.notification-menu{display:none!important}.report-controls{position:static;box-shadow:none;border:0;padding:0}.report-controls .tabs,.report-controls form{display:none}.report-card>.tablewrap{max-height:none;overflow:visible}}

/* Sahifa aylanganda ustun sarlavhalari filtr paneli ostida ko'rinadi. */
.report-card .tablewrap table.grid thead th{top:var(--table-head-top,0px)}
.report-card .tablewrap table.grid thead tr:nth-child(2) th{top:calc(var(--table-head-top,0px) + var(--hdr1,34px))}

/* Ixcham ro'yxatlar: boshqaruvlar joyida, qolgan balandlik jadvalga beriladi. */
.compact-workspace .workspace-header .topbar {
  height:38px; padding:3px 16px; gap:12px;
}
.compact-workspace .workspace-toolbar {
  min-height:34px; padding:3px 16px; gap:8px;
}
.compact-workspace .workspace-header .global-search {height:28px; flex-basis:210px; padding:3px 8px}
.compact-workspace .global-search input {font-size:11px; min-height:0; padding:0}
.compact-workspace .global-search kbd {font-size:9px; padding:0 4px}
.compact-workspace .profile-menu .avatar {width:27px; height:27px; font-size:10px}
.compact-workspace .profile-name {font-size:11px}
.compact-workspace .profile-name small {display:none}
.compact-workspace .notification-trigger {width:27px; height:27px}
.compact-workspace .workspace-toolbar .context-bar {gap:7px; font-size:10px}
.compact-workspace .workspace-toolbar .asof input[type=date],
.compact-workspace .workspace-toolbar .date-apply {min-height:25px; padding:2px 6px; font-size:10px}
.compact-workspace .toolbar-actions .btn {min-height:25px; padding:3px 8px; font-size:10px}
.compact-workspace .toolbar-actions .btn .icon {width:13px; height:13px}
.compact-workspace .help-popover>summary {width:20px; height:20px; font-size:11px}
.compact-workspace .workspace-header .breadcrumbs {font-size:11px}
.compact-workspace main {padding:12px 16px 8px}
.compact-workspace .page-heading {margin-bottom:12px}
.compact-workspace .page-heading h1 {font-size:20px}
.compact-workspace .page-heading .eyebrow,.compact-workspace .page-heading p {display:none}
.compact-workspace .card {padding:12px; margin-bottom:12px; border-radius:8px}
.compact-workspace .row2 {gap:12px}
.compact-workspace .filters {padding:6px; gap:6px; margin:6px 0}
.compact-workspace .filters input:not([type=checkbox]):not([type=hidden]),
.compact-workspace .filters select {min-height:28px; padding:3px 7px; font-size:11px}
.compact-workspace .filters .btn,.compact-workspace .filters button {min-height:28px; padding:4px 9px; font-size:11px}
.compact-workspace .filters .chk,.compact-workspace .filters .rng {font-size:11px; gap:5px}
.compact-workspace table.grid th {padding:5px 8px; line-height:1.3; font-size:11px}
.compact-workspace table.grid td {padding:4px 8px; line-height:18px; font-size:12px}
.compact-workspace table.grid td.num {font-size:11px}
.compact-workspace table.data tbody td {white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
.compact-workspace table.data tbody td:has(.help-popover) {overflow:visible}
.compact-workspace table.data tbody td.small {max-width:260px}
.compact-workspace table.data tbody td .btn,.compact-workspace table.data tbody td button {min-height:23px; padding:2px 6px; font-size:10px}
.compact-workspace table.data tbody td input,.compact-workspace table.data tbody td select {padding:3px 6px; min-height:25px; font-size:11px}
.compact-workspace table.data tbody td .help-popover>summary {width:18px; height:18px}
.compact-workspace .paging {margin:4px 0; gap:7px; font-size:10px; min-height:25px}
.compact-workspace .paging a {padding:2px 7px}
.compact-workspace .tablewrap {border-radius:5px}
.compact-workspace .report-controls {padding:4px 0; margin:0 0 5px}
.compact-workspace .report-title {margin-bottom:6px}
.compact-workspace .report-title h2 {font-size:13px}
.compact-workspace .density-toggle {min-height:24px; padding:2px 7px; font-size:10px; white-space:nowrap; background:#f1f6f3; color:#42664e; border-color:#dce6df}
.compact-workspace .density-toggle:hover {background:#e4eee7}
.compact-workspace .row-details table.data tbody td {white-space:normal; overflow:visible; overflow-wrap:anywhere; padding-block:7px}
.compact-workspace .tiles {gap:8px; margin:0 0 6px}
.compact-workspace .tiles .tile {padding:6px 9px; gap:2px; border-radius:5px; display:grid; grid-template-columns:1fr auto; align-items:center}
.compact-workspace .tiles .tile .val {font-size:16px; letter-spacing:-.3px; grid-column:2; grid-row:1 / span 2; white-space:nowrap}
.compact-workspace .tiles .tile .lbl {font-size:10px}
.compact-workspace .tiles .tile .sub {font-size:9px; grid-column:1}
.compact-workspace .source-issues {margin:4px 0}
.compact-workspace .source-issues>summary {padding:5px 9px; font-size:11px}

/* Asosiy listlarda faqat jadval aylanadi; ustidagi panel uning ustini yopmaydi. */
.list-workspace .app-shell {height:100dvh; min-height:0; overflow:hidden}
.list-workspace main {display:flex; flex-direction:column; flex:1; min-height:0; overflow:auto; padding:8px 12px}
.list-workspace .page-heading {position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
.list-workspace .app-footer {display:none}
.list-workspace main>.report-card {display:flex; flex-direction:column; flex:1; min-height:0; margin:0; padding:7px 10px}
.list-workspace main>.report-card>* {flex-shrink:0}
.list-workspace .report-controls {position:relative; top:auto; z-index:12; display:grid; grid-template-columns:minmax(0,1fr) auto auto; align-items:center; gap:4px 10px; order:0; box-shadow:none; border-bottom:0; padding:0; margin:0 0 6px}
.list-workspace .report-controls .report-title {grid-column:1; grid-row:1; margin:0; gap:7px; min-height:26px}
.list-workspace .report-controls .report-title h2 {font-size:13px; margin:0}
.list-workspace .report-controls .tabs {grid-column:2; grid-row:1; margin:0; border:0; gap:10px; overflow-x:auto; white-space:nowrap; flex-wrap:nowrap}
.list-workspace .report-controls .tabs a {padding:3px 2px; font-size:11px}
.list-workspace .report-controls>.density-toggle {grid-column:3; grid-row:1}
.list-workspace .report-controls>form {grid-column:1 / -1; min-width:0; margin:0}
.list-workspace .report-controls .filters {display:flex; flex-wrap:nowrap; overflow-x:auto; max-width:100%; padding:5px; gap:6px; margin:0; scrollbar-width:thin; align-items:center}
.list-workspace .report-controls .filters>* {flex:0 0 auto}
.list-workspace .report-controls .filters input[name=q] {flex:1 0 155px!important; min-width:155px; width:180px!important}
.list-workspace .report-controls .filters input[name=customer],.list-workspace .report-controls .filters input[name=doc_no] {width:125px; min-width:100px}
.list-workspace .report-controls .filters input[type=date] {width:125px; min-width:115px}
.list-workspace .report-controls .filters select {min-width:70px; width:auto; max-width:150px}
.list-workspace .report-controls .filters label.rng {white-space:nowrap; flex-wrap:nowrap}
.list-workspace .report-controls .filters .combo {min-width:210px; width:260px; flex:1 0 210px!important}
.list-workspace .report-controls .filters .combo-list {position:fixed; left:auto; right:auto; top:auto; width:300px; max-width:calc(100vw - 40px); max-height:180px}
.list-workspace .report-card>.tiles {order:1}
.list-workspace .report-card>.paging {order:2}
.list-workspace .report-card>.tablewrap,.list-workspace .report-card>.tablewrap.short {order:3; flex:1 1 0; min-height:110px; max-height:none; height:auto; --table-head-top:0px!important}
.list-workspace .report-card>.tablewrap:has(table.data)~.paging {display:none}
.list-workspace .report-card>.source-issues,.list-workspace .report-card>.statement-info {order:1}
.list-workspace .report-card>.source-issues[open] {max-height:180px; overflow:auto}
.list-workspace .report-card>.hint {order:4; margin:3px 0; font-size:10px}
.list-workspace .report-card>.picker,.list-workspace .report-card>.err {order:1; max-height:150px; overflow:auto; margin:4px 0}
.list-workspace .tablewrap table.grid thead th {top:0}
.list-workspace .tablewrap table.grid thead tr:nth-child(2) th {top:var(--hdr1,30px)}
.list-workspace .report-controls .docpick {margin-top:4px}
.list-workspace .report-controls .docpick[open] {max-height:140px; overflow:auto}
.list-workspace .statement-info {border:1px solid var(--line); border-radius:5px; margin:0 0 6px}
.list-workspace .statement-info>summary {display:flex; flex-wrap:wrap; align-items:center; gap:6px 18px; padding:6px 9px; font-size:11px; color:#536e5b; cursor:pointer}
.list-workspace .statement-info-label {margin-left:auto; font-size:10px}
.list-workspace .statement-info-label::after {content:' ⌄'}
.list-workspace .statement-info[open] .statement-info-label::after {content:' ⌃'}
.list-workspace .statement-info .aktheader {max-height:165px; overflow:auto; margin:0; padding:5px; gap:8px}
.list-workspace.table-scrolled .workspace-header .topbar {height:32px}
.list-workspace.table-scrolled .workspace-toolbar {min-height:30px; padding-block:1px}

@media(max-width:1050px) {
  .compact-workspace .workspace-header .global-search {flex-basis:150px}
  .list-workspace .report-controls {gap:4px 7px}
  .list-workspace .report-controls .report-title h2 {font-size:12px}
  .list-workspace .report-controls .tabs {gap:7px}
  .list-workspace .report-controls .tabs a {font-size:10px}
}
@media(max-width:800px) {
  .compact-workspace .workspace-header .topbar {height:38px; padding-inline:10px}
  .compact-workspace .workspace-toolbar {padding-inline:10px; flex-wrap:nowrap}
  .compact-workspace .mobile-menu {padding:4px; min-height:28px}
  .compact-workspace .toolbar-actions {width:auto; flex-shrink:0; gap:5px}
  .compact-workspace .toolbar-actions .btn span {display:none}
  .compact-workspace .toolbar-actions .btn {min-height:27px; width:28px; padding:5px}
  .compact-workspace .toolbar-actions>.help-popover {order:0; margin:0}
  .compact-workspace .toolbar-actions .btn[aria-label] {position:relative}
  .compact-workspace .workspace-toolbar .context-bar {flex-basis:auto; justify-content:flex-start; gap:5px}
  .compact-workspace .workspace-toolbar .asof input[type=date] {width:111px}
  .compact-workspace .workspace-toolbar .exchange-rate {font-size:9px}
  .compact-workspace .help-popover>summary {width:24px; height:24px}
  .list-workspace main {padding:5px}
  .list-workspace main>.report-card {padding:5px 6px}
  .list-workspace .report-controls {grid-template-columns:minmax(0,1fr) auto; gap:3px 6px}
  .list-workspace .report-controls>.density-toggle {grid-column:2}
  .list-workspace .report-controls .tabs {grid-column:1 / -1; grid-row:2}
  .list-workspace .report-controls>form {grid-row:3}
  .list-workspace .report-controls .filters input[name=q] {width:160px!important; min-width:160px}
  .list-workspace .tiles {grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px}
  .list-workspace .tiles .tile {padding:3px 6px}
  .list-workspace .tiles .tile .val {font-size:14px}
  .list-workspace .tiles .tile .lbl {font-size:9px}
  .list-workspace .tiles .tile .sub {display:none}
  .list-workspace .statement-info>summary {gap:4px 8px; font-size:10px}
  .list-workspace .statement-info-label {width:100%; margin:0}
  .compact-workspace .notification-panel {top:42px}
  .compact-workspace .admin-list-card .filters {overflow-x:auto; flex-wrap:nowrap}
}
@media(max-width:420px) {
  .compact-workspace .workspace-toolbar {gap:4px; padding-inline:6px}
  .compact-workspace .workspace-toolbar .exchange-rate {font-size:8px}
  .compact-workspace .toolbar-actions {gap:3px}
  .compact-workspace .toolbar-actions .btn {width:24px; padding:3px}
  .compact-workspace .workspace-toolbar .asof {gap:3px}
  .compact-workspace .workspace-toolbar .date-apply {font-size:9px; padding-inline:4px}
}
@media print {
  .list-workspace .app-shell {height:auto; overflow:visible}
  .list-workspace main {display:block; overflow:visible; padding:0}
  .list-workspace .page-heading {position:static; width:auto; height:auto; clip-path:none; margin:0 0 12px}
  .list-workspace main>.report-card {display:block}
  .list-workspace .report-controls {display:block}
  .list-workspace .report-card>.tablewrap {max-height:none; height:auto; overflow:visible}
  .density-toggle {display:none!important}
  .compact-workspace table.data tbody td {white-space:normal; overflow:visible}
}

.compact-workspace table.data .mini {line-height:20px; vertical-align:middle}
.compact-workspace table.data .mini svg {width:20px; height:20px; flex-basis:20px}
.list-workspace .report-summary {order:1; margin:0 0 5px; border:1px solid var(--line); border-radius:5px; font-size:11px}
.list-workspace .report-summary>summary {display:flex; gap:6px 15px; align-items:center; flex-wrap:wrap; padding:5px 8px; cursor:pointer; color:#536e5b}
.list-workspace .report-summary>summary::after {content:'⌄'; margin-left:auto}
.list-workspace .report-summary[open]>summary::after {content:'⌃'}
.list-workspace .report-summary .tablewrap {max-height:105px; border:0}
@media(min-width:801px) {
  .compact-workspace .sidebar .brand {padding:18px 23px 14px; font-size:21px}
  .compact-workspace .sidebar .brand-mark {width:33px; height:33px; border-radius:9px}
  .compact-workspace .workspace-label {padding:8px 10px; margin-bottom:13px}
  .compact-workspace .side-nav .nav-group {margin-bottom:13px}
  .compact-workspace .side-nav .nav-link {min-height:33px; padding:7px 11px; margin-block:2px; font-size:11px}
  .compact-workspace .side-nav .nav-label {margin-bottom:5px}
}
.compact-workspace.table-scrolled .notification-count {top:-2px}
@media(max-width:360px) {
  .compact-workspace .workspace-toolbar {flex-wrap:wrap}
  .compact-workspace .workspace-toolbar .context-bar {flex-basis:100%}
  .compact-workspace .toolbar-actions {margin-left:auto}
}
@media print {
  .list-workspace .statement-info .aktheader,.list-workspace .report-summary .tablewrap {max-height:none; overflow:visible}
}

/* Yozuv kartochkasi va jurnaldagi tuzatish tugmasi */
.fixbtn{padding:2px 7px;min-height:22px;line-height:1.2;font-size:12px}
/* Jurnalda birinchi ustun — ✎ (tor), ikkinchisi — xaridor; ikkalasi ham
   gorizontal aylantirishda joyida qoladi. */
table.jfix tr>th:nth-child(1),table.jfix tr>td:nth-child(1){
  position:sticky;left:0;z-index:3;width:42px;min-width:42px;max-width:42px;
  text-align:center;padding:5px 4px}
table.jfix tr>th:nth-child(2),table.jfix tr>td:nth-child(2){
  position:sticky;left:42px;z-index:3;min-width:190px;max-width:260px;
  box-shadow:1px 0 0 var(--line)}
table.jfix thead tr>th:nth-child(-n+2){z-index:5}
table.jfix tbody tr:nth-child(even)>td:nth-child(-n+2){background:#fbfcfe}
table.jfix tbody tr:hover>td:nth-child(-n+2){background:#f0f5fd}
@media print{table.jfix tr>td:nth-child(-n+2){position:static!important}}
.cardform{margin-bottom:14px}
.cardform table.grid{max-width:720px}
.cardinput{width:100%;max-width:420px;font-size:12px}
.badge.danger{display:inline-block;margin-left:8px;padding:2px 9px;border-radius:20px;
  background:#fdecec;color:#a3362f;font-size:11px;font-weight:600;vertical-align:middle}
/* Qo'lda tuzatilgan satr — jurnalda ko'zga tashlanib tursin */
table.jfix tbody tr.fixedrow>td{background:#fff8e6}
table.jfix tbody tr.fixedrow:hover>td,
table.jfix tbody tr.fixedrow:hover>td:nth-child(-n+2){background:#fdf1cf}
table.jfix tbody tr.fixedrow>td:nth-child(-n+2){background:#fff8e6}
.btn.mini.fixed,button.mini.fixed{background:#e8a317;border-color:#d1900f;color:#fff}

/* SMART: ixcham, ikki darajali ish maydoni menyusi. */
.sidebar .brand{padding:20px 20px 17px;font-size:27px;letter-spacing:.035em}
.sidebar .brand-mark{font-weight:750;font-size:27px;width:42px;height:42px;border-radius:12px;background:#3c856d}
.sidebar .brand-product{text-transform:none;letter-spacing:.09em;font-size:13px;font-weight:450;margin-top:2px}
.smart-nav{padding:4px 12px 18px}
.smart-nav .nav-label{margin:18px 12px 8px;font-size:11px;letter-spacing:.11em}
.smart-nav .home-link{font-size:14px;padding:11px 12px;margin-bottom:5px;gap:10px}
.nav-module{border-bottom:1px solid #ffffff0b}
.nav-module>summary,.nav-section>summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer;color:#d7e4dd;line-height:1.3;user-select:none}
.nav-module>summary::-webkit-details-marker,.nav-section>summary::-webkit-details-marker{display:none}
.nav-module>summary{padding:11px 12px;border-radius:7px;font-size:14px;font-weight:550;min-height:42px}
.nav-module>summary>.icon{width:17px;height:17px;color:#9bb7aa;flex-shrink:0}
.nav-module>summary:hover,.nav-section>summary:hover{background:#ffffff09;color:#fff}
.nav-module[open]>summary{color:#fff;background:#ffffff07}
.nav-chevron{margin-left:auto;transition:transform .16s;width:14px!important;height:14px!important;flex-shrink:0}
details[open]>summary>.nav-chevron{transform:rotate(180deg)}
.nav-module-body{margin:4px 0 9px 20px;padding-left:10px;border-left:1px solid #486456}
.nav-section>summary{padding:8px 10px;font-size:13px;color:#b9cfc2;min-height:32px}
.smart-nav .nav-module .nav-link{font-size:13px;line-height:1.4;padding:8px 10px;min-height:32px;margin:2px 0;border-radius:6px}
.nav-section>.nav-link{margin-left:8px!important}
.smart-nav .nav-empty{color:#9cb1a6;font-size:12px!important}
.smart-nav .nav-link.active{background:#365f4c;border:1px solid #527b61;color:#fff}
.nav-module>summary:focus-visible,.nav-section>summary:focus-visible{outline:2px solid #bddd9b;outline-offset:-2px}
.sidebar-bottom{padding-top:12px}.sidebar-version{font-size:11px}
.report-title{flex-wrap:wrap}
.report-actions{position:relative;flex-shrink:0}
.report-actions>summary{list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:6px;padding:5px 9px;font-size:12px;line-height:20px;color:var(--accent);background:white;white-space:nowrap}
.report-actions>summary::-webkit-details-marker{display:none}
.report-action-menu{position:absolute;top:calc(100% + 6px);left:0;width:280px;max-width:calc(100vw - 30px);padding:6px;background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:0 12px 34px #12271b26;z-index:100}
.report-action-menu a,.report-action-menu button{display:flex;align-items:center;gap:8px;width:100%;padding:10px!important;border:0;background:white;color:var(--ink);font:inherit;font-size:13px;text-align:left;border-radius:5px;min-height:40px}
.report-action-menu a:hover,.report-action-menu button:hover{background:var(--accent2);text-decoration:none}
.report-action-menu .icon{width:17px;height:17px;flex-shrink:0}
.report-actions[open]{z-index:110}
.smart-dashboard{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.smart-widget{min-width:0}.widget-small{grid-column:span 3}.widget-wide{grid-column:span 6}
.smart-widget>.card,.smart-widget>.kpi-card{height:100%;margin-bottom:0;min-width:0}
.smart-widget .card{padding:20px}.smart-widget .kpi-card{display:flex;flex-direction:column}
.smart-widget .kpi-value{font-size:clamp(22px,2.1vw,34px);overflow-wrap:anywhere}
.smart-widget .kpi-bottom{margin-top:auto;padding-top:16px}
.smart-widget .sync-card{display:flex;align-items:flex-start;flex-direction:column;gap:16px}
.smart-widget .sync-meta{flex-wrap:wrap;gap:8px}.smart-widget .sync-icon{display:none}
.custom-widget{display:flex;flex-direction:column;gap:14px}.custom-widget .section-heading{margin:0}
.widget-bars{display:grid;gap:14px}.widget-bar{display:grid;grid-template-columns:110px 1fr auto;align-items:center;gap:12px;font-size:13px}.widget-bar .aging-track{width:auto}.widget-bar .aging-track i{display:block;height:100%;background:var(--accent)}
.panel-settings .tablewrap{max-height:none}.panel-settings td{vertical-align:middle!important}.block{display:block}.order-input{width:76px!important}
.form-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}
.module-sections{display:flex;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--line);padding-bottom:18px}
.module-sections a{display:flex;align-items:center;gap:8px;padding:9px 14px;background:var(--bg);border:1px solid var(--line);border-radius:8px}
.module-sections a.on{background:var(--accent2);color:var(--accent);border-color:var(--accent)}
.directory-editor{max-width:900px}.directory-form fieldset{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.directory-form label{display:flex;flex-direction:column;gap:6px}.directory-form input{width:100%}.directory-form button{justify-self:start}
.directory-form fieldset:disabled input{color:var(--ink);opacity:1}
@media(max-width:1200px){.widget-small{grid-column:span 6}.widget-wide{grid-column:span 12}}
@media(max-width:700px){.smart-dashboard{gap:12px}.widget-small,.widget-wide{grid-column:span 12}.smart-widget .card{padding:16px}.smart-widget .kpi-value{font-size:28px}.directory-form fieldset{grid-template-columns:1fr}.module-sections{gap:6px}.module-sections a{padding:8px}.report-action-menu{position:fixed;left:12px;top:var(--report-menu-top,140px)}.widget-bar{grid-template-columns:90px 1fr auto;gap:8px}.panel-settings select{min-width:115px}.panel-settings .tablewrap{overflow:auto}}

/* Dalolatnoma: qidiruv, jurnal tugmasi va davr bir ixcham boshqaruv satrida. */
.list-workspace .report-controls .filters .statement-customer{min-width:260px;flex:1 1 300px!important;width:auto}
.list-workspace .report-controls .filters .statement-customer input[name=customer]{width:100%;min-width:0;padding-right:65px}
.statement-customer .combo-clear{right:33px;width:27px;padding:0!important}
.statement-customer .combo-journal{position:absolute;right:2px;top:2px;bottom:2px;width:31px;display:flex;align-items:center;justify-content:center;border-left:1px solid var(--line);border-radius:0 4px 4px 0;color:var(--accent);background:#f1f6f3}
.statement-customer .combo-journal:hover{background:#e3eee7}
.statement-customer .combo-journal .icon{width:17px;height:17px}
.statement-customer .combo-list{z-index:120}
.statement-filters .statement-date{display:flex;align-items:center;gap:5px}
#statement-transactions .statement-opening td{background:#edf3f0;font-weight:550}
@media(max-width:800px){
 .list-workspace .report-controls .statement-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);overflow:visible;gap:6px}
 .list-workspace .report-controls .statement-filters .statement-customer{grid-column:1/-1;width:100%;min-width:0}
 .list-workspace .report-controls .statement-filters .statement-date{min-width:0;gap:4px;font-size:11px}
 .list-workspace .report-controls .statement-filters .statement-date input[type=date]{min-width:0;width:100%;padding-inline:5px}
 .list-workspace .report-controls .statement-filters select{min-width:0;max-width:100%}
}

/* Qidiruv variantlari filtr va jadval chegaralaridan tashqarida ochiladi. */
.search-suggestions{position:fixed;z-index:180;overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #cad9cf;border-radius:9px;box-shadow:0 8px 28px #193a2926;padding:4px;scrollbar-width:thin;text-align:left}
.search-suggestions[hidden]{display:none}
.search-option{padding:8px 10px;border-radius:5px;cursor:pointer;line-height:1.4;overflow-wrap:anywhere;white-space:normal}
.search-option+.search-option{border-top:1px solid #edf1ee}
.search-option strong{display:block;color:#284c39;font-size:12px;font-weight:600}
.search-option span{display:block;color:#64736b;font-size:11px;margin-top:2px}
.search-option:hover,.search-option[aria-selected=true]{background:#eaf3ed;outline:1px solid #d6e5db}
.search-message{padding:9px 10px;color:#65746b;font-size:12px}

/* Taqvim amallari o‘ng burchakda, bandlari bir xil tekislikda. */
.toolbar-actions>.report-actions{order:2;margin-left:4px}
.toolbar-actions .report-action-menu{left:auto;right:0}
.report-action-menu form{display:block;margin:0;padding:0;width:100%}
.report-action-menu a,.report-action-menu button{box-sizing:border-box;justify-content:flex-start!important;white-space:normal;line-height:1.4;margin:0;text-align:left}
.report-action-menu .icon{margin:0!important}
.forecast-boundary{font-size:11px;color:var(--mut);white-space:nowrap}
.directory-form .reserve-field{display:flex;flex-direction:row;align-items:center;gap:9px;align-self:center;min-height:36px}
.directory-form .reserve-field input{width:17px;height:17px;margin:0;accent-color:var(--accent)}
.reserve-badge{display:inline-block;background:#f9f0dc;color:#86621c;border-radius:4px;padding:2px 7px;font-size:11px}
@media(max-width:700px){.toolbar-actions .report-action-menu{left:auto;right:12px}.forecast-context{flex-wrap:wrap}.forecast-context .forecast-boundary{display:none}}

/* Sahifa soni, yo‘nalishlar va qatorlar soni bitta boshqaruv qatorida. */
.paging{flex-wrap:wrap}
.paging>span{white-space:nowrap}
.paging .page-size{display:flex;align-items:center;gap:6px;margin:0;padding:0 0 0 8px;border-left:1px solid var(--line)}
.paging .page-size label{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:inherit;color:var(--mut)}
.paging .page-size select{min-height:26px;padding:3px 7px;min-width:92px;font-size:11px;background:#fff}
@media(max-width:600px){.paging .page-size{border-left:0;padding-left:0}.compact-workspace .paging{gap:6px}}

/* Kontragent rekvizitlari: uzun manzil ham to‘liq o‘qiladi. */
.directory-form .address-field,.directory-form .identity-notice{grid-column:1/-1}
.directory-form textarea{width:100%;min-width:0;resize:vertical;padding:9px 11px;border:1px solid var(--line);border-radius:7px;font:inherit;color:var(--ink);background:#fff}
.identity-notice{margin:0;font-size:12px;color:#a83b36}
.identity-flag{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;margin-left:6px;border:1px solid #d57b76;border-radius:50%;color:#b32f29;font-size:11px;font-weight:700}
.grid td.identity-address{white-space:normal;overflow-wrap:anywhere;min-width:180px;max-width:450px}
.combo-identity{display:block;margin-top:3px;color:var(--muted);font-size:11px;white-space:normal;overflow-wrap:anywhere}

/* Oylar kesimidagi sotuv matritsasi. */
.sales-report .sales-caption{font-size:11px;color:var(--muted);margin-left:6px}
.sales-report .report-actions{margin-left:auto}
.sales-matrix{--sales-label-width:216px;--sales-month-width:104px;--sales-grand-width:112px;--sales-share-width:80px;table-layout:fixed;width:calc(var(--sales-label-width) + var(--sales-rates-width,0px) + var(--sales-columns)*var(--sales-month-width) + var(--sales-grand-width) + var(--sales-share-width))!important}
.sales-matrix .sales-label-col{width:var(--sales-label-width)}
.sales-matrix .sales-rates-col{width:var(--sales-rates-width)}
.sales-matrix .sales-month-col{width:var(--sales-month-width)}
.sales-matrix .sales-grand-col{width:var(--sales-grand-width)}
.sales-matrix .sales-share-col{width:var(--sales-share-width)}
.compact-workspace .sales-matrix th,.compact-workspace .sales-matrix td{padding-inline:6px}
.sales-matrix thead th.num{text-align:right}
.sales-matrix tbody th{position:sticky;left:0;z-index:2;background:#fff;white-space:normal;overflow-wrap:anywhere;font-weight:500}
.sales-matrix thead th:first-child{left:0;z-index:5}
.sales-matrix .sales-grand{position:sticky;right:var(--sales-share-width);z-index:2;background:#edf4ef;font-weight:700}
.sales-matrix thead .sales-grand,.sales-matrix thead .sales-share{z-index:4}
.sales-matrix .sales-share{position:sticky;right:0;z-index:2;background:#edf4ef;font-weight:600}
.sales-matrix .sales-param-heading{overflow:visible!important}
.sales-matrix .sales-param-heading:has(details[open]){z-index:10}
.sales-matrix .sales-total>*{background:#e4efe8;font-weight:700}
.sales-matrix .sales-summary>*{border-top:2px solid var(--line);background:#f3f6f4;font-weight:600}
.sales-matrix .sales-debt>*{background:#e4efe8;font-weight:700}
.sales-issues{font-size:11px;border:1px solid var(--line);border-radius:5px;padding:5px 8px;margin-bottom:6px}
.sales-issues summary{cursor:pointer;color:#93443d}
.sales-issues ul{margin:6px 0;padding-left:20px}
@media(max-width:700px){.sales-matrix{--sales-label-width:176px}.sales-matrix tbody .sales-grand,.sales-matrix tbody .sales-share{position:static}.sales-matrix thead .sales-grand,.sales-matrix thead .sales-share{right:auto}.sales-report .report-controls .filters{flex-wrap:wrap}.sales-report .sales-caption{flex-basis:100%;order:3;margin:0}.sales-report .report-title{flex-wrap:wrap}}
@media print{.sales-matrix tbody th,.sales-matrix .sales-grand,.sales-matrix .sales-share{position:static!important}}

/* Opsiya tanlovi ochilganda ham jadval uchun joy qoladi. */
.sales-report .report-controls .sales-filters{flex-wrap:wrap;overflow:visible}
.option-picker{flex-basis:100%;border-top:1px solid var(--line);padding-top:5px;min-width:0}
.option-picker[hidden]{display:none}
.option-picker summary{cursor:pointer;font-size:12px;color:var(--accent)}
.option-count{color:var(--mut);margin-left:6px}
.option-picker-body{padding:6px 0 0}
.option-picker-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:6px;font-size:11px}
.option-choices{display:flex;flex-wrap:wrap;gap:5px;max-height:105px;overflow:auto}
.option-choices label{display:flex;align-items:center;gap:6px!important;padding:5px 9px;border:1px solid var(--line);border-radius:5px;background:#fff;font-size:12px;max-width:100%;cursor:pointer}
.option-choices input{min-width:0!important;width:15px!important;min-height:15px!important;height:15px!important;padding:0!important;margin:0;accent-color:var(--accent)}
.option-choices span{overflow-wrap:anywhere;white-space:normal}
.option-choices small{white-space:nowrap;color:var(--mut)}
.option-choices label:has(input:checked){border-color:#75a18a;background:#ecf5ef}
.option-choices label[hidden]{display:none}
.sales-matrix .sales-rates{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
@media(max-width:700px){.sales-report .report-controls .sales-filters{gap:5px}.option-picker-tools input{max-width:100%;width:100%}.option-choices{max-height:82px}}

/* SMART belgisi: shriftga bog‘liq bo‘lmagan aniq monogramma. */
.brand .brand-mark{background:transparent;border-radius:13px;overflow:hidden;box-shadow:0 3px 9px #071c1524}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.statement-control-table{width:100%;font-size:12px}
.statement-control-table th,.statement-control-table td{padding:6px 8px}
.statement-source-note{font-size:11px;color:var(--mut);margin:5px 0}

/* Dalolatnoma yig‘indilari: sanalar yonma-yon taqqoslanadi. */
.statement-totals{align-self:start}
.statement-totals tbody th{position:static;font-weight:500;white-space:normal}
.statement-totals tbody th small{display:block;color:var(--mut);font-weight:400;font-size:10px;margin-top:2px}
.statement-totals thead th.num{text-align:right}
.statement-totals tr[data-summary=total]>*{background:#edf4ef;font-weight:600}

/* Ustunlarni sozlash paneli */
.colset{position:relative;display:inline-block}
.colset>summary{list-style:none;cursor:pointer;font-size:11px;padding:4px 10px;min-height:28px;
  display:inline-flex;align-items:center;gap:6px}
.colset>summary::-webkit-details-marker{display:none}
.colset[open]>summary{background:var(--accent);color:#fff;border-color:var(--accent)}
.colset-panel{position:absolute;z-index:40;top:calc(100% + 6px);right:0;width:440px;max-width:92vw;
  background:#fff;border:1px solid var(--line);border-radius:9px;padding:13px;
  box-shadow:0 12px 34px rgba(31,49,38,.16)}
.colset-panel .hint{margin:0 0 9px}
.colset-list{max-height:330px;overflow:auto;border:1px solid var(--line);border-radius:7px}
.colset-list table{font-size:11px}
.colset-list th,.colset-list td{padding:5px 7px}
.colset-list td.mid{text-align:center}
.colset-ord{width:46px;padding:3px 5px;font-size:11px}
.colset-js .colset-ord{display:none}
.colset-table tr{cursor:default}
.colset-table tbody tr.dragging{opacity:.45}
.colset-table tbody tr.picked>td{background:#eaf3ec}
.colset-table tbody tr:focus{outline:2px solid var(--accent);outline-offset:-2px}
.colset-grab{cursor:grab;text-align:center;color:#9bab9f;width:26px;font-size:13px}
.colset-grab:active{cursor:grabbing}
.colset-h{font-size:10px}
.colset-table .mini{min-height:21px;padding:1px 7px;font-size:10px;line-height:1.1;
  background:#fff;border:1px solid #dce4df;color:#41534a}
.colset-table .mini:hover{background:#eef4ef;border-color:#afc4b7;color:#1d6644}
/* Sarlavha chetidagi kenglik "tutqichi" */
th{position:relative}
.colgrip{position:absolute;top:0;right:-6px;width:13px;height:100%;cursor:col-resize;
  touch-action:none;user-select:none;z-index:3}
.colgrip::after{content:"";position:absolute;top:18%;left:5px;width:2px;height:64%;
  border-radius:2px;background:#c7d3ca;opacity:.55}
th:hover>.colgrip::after{opacity:1}
.colgrip:hover::after,.colgrip.resizing::after{background:var(--accent);opacity:1;width:3px}
/* Foydalanuvchi kenglikni o'zi belgilaydi — muzlatilgan ustun chegarasi xalaqit bermasin */
table.fixed.sticky1 tr>th:first-child,table.fixed.sticky1 tr>td:first-child,
table.fixed.sticky2 tr>th:nth-child(-n+2),table.fixed.sticky2 tr>td:nth-child(-n+2){
  min-width:0;max-width:none}
body.col-resizing{cursor:col-resize;user-select:none}
.colset-acts{display:flex;gap:8px;margin-top:10px}
.colset-acts button{font-size:11px}
.paging-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.paging-row .paging{flex:1 1 auto;margin-right:0}
/* Yoqilgan holatdagi tugma (masalan «Teskari tartib») */
.btn.on{background:var(--accent);color:#fff;border-color:var(--accent)}

.balance-metrics{display:flex;flex-wrap:wrap;align-items:end;gap:20px 24px;margin:18px 0}.balance-metric{flex:1 1 145px;min-width:0}.balance-label{display:block;font-size:13px;margin-bottom:8px;color:#536879}.balance-metric strong{display:block;white-space:nowrap;font-variant-numeric:tabular-nums;line-height:1.2;letter-spacing:-.5px}.balance-metric small{font-size:11px;font-weight:400;letter-spacing:0;margin-left:6px}.balance-gross strong{font-size:36px;font-weight:800;color:#203346}.balance-reserve strong{font-size:22px;font-weight:650;color:#a65b16}.balance-net strong{font-size:30px;font-weight:750;color:#00863e}.balance-note{border-top:1px solid #e6ece8;padding-top:12px;font-size:12px;line-height:1.5;color:#617080}.balance-card:hover .balance-net strong{color:#00863e}@media(max-width:500px){.balance-metrics{gap:18px}.balance-gross strong{font-size:32px}.balance-net strong{font-size:28px}.balance-metric{flex-basis:140px}}
