@import url("https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;700&display=swap");
:root{--bg:#f4f7fb;--card:#fff;--ink:#172033;--muted:#667085;--line:#dce1e9;--p:#3559e0;--ok:#067647;--bad:#b42318}*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}body{margin:0;background:var(--bg);color:var(--ink);font-family:Tahoma,Arial,sans-serif}.app-shell{min-height:100dvh;padding-bottom:82px}.topbar{position:sticky;top:0;z-index:10;background:#ffffffee;backdrop-filter:blur(12px);border-bottom:1px solid var(--line);padding:10px 14px;display:flex;justify-content:space-between;align-items:center;gap:10px}.topbar b{display:block;font-size:18px}.topbar small{color:var(--muted)}.top-actions{display:flex;gap:6px;flex-wrap:wrap}.content{max-width:1100px;margin:auto;padding:14px}.hero{background:linear-gradient(135deg,#182848,#3559e0);color:#fff;padding:20px;border-radius:22px;margin-bottom:14px}.hero h1{margin:0 0 8px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.stat,.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 8px 28px rgba(35,55,95,.07)}.stat span{color:var(--muted);font-size:12px}.stat b{display:block;margin-top:6px}.grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:10px}.btn,button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:0;border-radius:11px;min-height:44px;padding:10px 13px;font:700 14px Tahoma;cursor:pointer}.primary{background:#3559e0;color:#fff}.ghost{background:#edf1f7;color:#24324b}.bottomnav{position:fixed;left:0;right:0;bottom:0;z-index:20;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,1fr);padding-bottom:env(safe-area-inset-bottom)}.bottomnav a{padding:8px 2px;text-align:center;text-decoration:none;color:#667085;font-size:18px;min-height:58px}.bottomnav a span{display:block;font-size:10px;margin-top:2px}.bottomnav a.active{color:#3559e0;background:#f4f6ff}.login-screen,.install-shell{min-height:100dvh;display:grid;place-items:center;padding:18px}.login-card,.install-card{width:min(520px,100%);background:#fff;border:1px solid var(--line);border-radius:24px;padding:22px;box-shadow:0 20px 60px rgba(23,32,51,.12)}.login-card{text-align:center}.logo{width:52px;height:52px;border-radius:16px;background:#3559e0;color:#fff;display:grid;place-items:center;font-weight:900}.logo.big{width:68px;height:68px;margin:0 auto 12px;font-size:30px}.brandline{display:flex;align-items:center;gap:12px}.brandline h1{margin:0}.brandline p{margin:4px 0;color:var(--muted)}.stack{display:grid;gap:10px;margin-top:14px;text-align:right}label{font-size:12px;color:#526074}input,select{width:100%;min-height:46px;padding:10px 11px;border:1px solid #bac4d3;border-radius:10px;background:#fff;color:var(--ink);font:16px Tahoma,Arial,sans-serif;outline:none;margin-top:5px}input:focus,select:focus{border-color:#6d83e8;box-shadow:0 0 0 3px rgba(53,89,224,.12)}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:9px}.form-grid .wide{grid-column:1/-1}.check-grid,.health-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.check,.health{border:1px solid var(--line);border-radius:10px;padding:10px;background:#f8fafc}.check.ok,.health.ok{border-color:#b7ebd0;background:#ecfdf3;color:var(--ok)}.check.bad,.health.bad,.notice.bad{border-color:#f8b4b4;background:#fef3f2;color:var(--bad)}.notice{padding:11px;border-radius:10px;margin:10px 0}.notice.ok{background:#ecfdf3;color:var(--ok)}.tiny{font-size:11px;color:var(--muted);margin-top:14px;line-height:1.8}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px}.section-title h1{margin:0}.health b,.health span{display:block}.health span{margin-top:6px;font-size:12px}code{direction:ltr;display:block;background:#f6f8fb;padding:10px;border-radius:8px}@media(max-width:700px){.content{padding:9px}.topbar{padding:8px 9px}.top-actions .btn{min-height:38px;padding:7px 9px;font-size:11px}.stats,.grid,.form-grid,.check-grid,.health-grid{grid-template-columns:1fr}.hero{padding:16px;border-radius:16px}.login-screen,.install-shell{padding:9px}.login-card,.install-card{padding:16px;border-radius:18px}.bottomnav a{font-size:17px}.btn,button{font-size:13px}input,select{font-size:16px}}

/* v0.1.1 installer polish */
body{font-family:Vazirmatn,"IRANSans",Tahoma,Arial,sans-serif}.btn,button,input,select{font-family:inherit}
.installer-page{background:radial-gradient(circle at 80% 0,#3559e01a,transparent 34%),linear-gradient(180deg,#f8faff,#eef3fb)}
.install-card-v2{width:min(760px,100%);padding:0;overflow:hidden;border:1px solid #dfe6f2;box-shadow:0 30px 80px rgba(31,48,83,.14)}
.installer-hero{display:flex;align-items:center;gap:14px;padding:22px;background:linear-gradient(135deg,#182848,#3559e0);color:#fff}.installer-hero .logo{background:#ffffff18;border:1px solid #ffffff38;width:58px;height:58px;border-radius:18px;font-size:25px}.installer-hero h1{margin:2px 0 4px;font-size:23px}.installer-hero p{margin:0;color:#dfe7ff;font-size:12px}.installer-kicker{font-size:10px;color:#cdd8ff;font-weight:800;letter-spacing:.2px}
.installer-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:#e5eaf3;border-bottom:1px solid #dfe5ef}.installer-step{background:#f8fafc;display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 6px;color:#7a879a;font-size:11px}.installer-step b{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#e6ebf3}.installer-step.active{color:#2947bd;background:#f3f6ff}.installer-step.active b{background:#3559e0;color:#fff}
.installer-block{margin:14px;border:1px solid #e4e9f1;border-radius:15px;background:#fff;padding:14px}.installer-block-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:11px}.installer-block-head>div{display:flex;align-items:center;gap:8px}.installer-block-head h2{margin:0;font-size:16px}.installer-block-head small{color:var(--muted);font-size:10px;line-height:1.8}.section-badge{width:28px;height:28px;border-radius:9px;background:#eef2ff;color:#3559e0;display:grid;place-items:center;font-weight:900}
.check-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.check{display:flex;align-items:center;gap:8px;min-height:44px}.check-icon{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:#fff;font-weight:900}
.installer-form{padding-bottom:14px}.role-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.role-card{border:1px solid #e1e7ef;border-radius:14px;padding:12px;background:#fbfcfe;display:grid;gap:9px}.role-card.admin-role{border-top:3px solid #4f75e8}.role-card.developer-role{border-top:3px solid #8b5cf6}.role-title{display:flex;align-items:center;gap:9px}.role-title>span{font-size:23px}.role-title b,.role-title small{display:block}.role-title small{color:var(--muted);font-size:10px;margin-top:2px}.installer-timezone{display:block;margin-top:10px}.installer-submit-wrap{padding:0 14px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}.install-submit{min-width:190px}.install-success{margin:14px;display:grid;gap:8px}.notice b,.notice span{display:block}.notice span{margin-top:4px;font-size:12px}
@media(max-width:700px){.install-shell{padding:0}.install-card-v2{min-height:100dvh;border-radius:0;border:0}.installer-hero{padding:17px 13px}.installer-hero h1{font-size:20px}.installer-steps{position:sticky;top:0;z-index:4}.installer-step{font-size:9px;padding:8px 2px}.installer-step b{width:21px;height:21px}.installer-block{margin:9px;padding:11px;border-radius:13px}.installer-block-head{display:block}.installer-block-head small{display:block;margin-top:5px}.check-grid,.role-grid,.form-grid{grid-template-columns:1fr}.role-card{padding:10px}.installer-submit-wrap{display:grid;padding:0 9px calc(13px + env(safe-area-inset-bottom))}.install-submit{width:100%;min-width:0;min-height:50px}input,select{font-size:16px!important}}

/* v0.2.0 phase 2 */
.section-title p,.company-head p{margin:4px 0;color:var(--muted);font-size:12px}.quick-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:10px 0}.quick-card{display:block;text-decoration:none;color:var(--ink);background:#fff;border:1px solid var(--line);border-radius:16px;padding:15px;box-shadow:0 8px 28px rgba(35,55,95,.05)}.quick-card>span{font-size:24px;display:block;margin-bottom:8px}.quick-card b,.quick-card small{display:block}.quick-card small{color:var(--muted);font-size:10px;margin-top:4px}.quick-card.disabled{opacity:.72}.create-box summary,.new-panel summary,.account-row summary{cursor:pointer;font-weight:800}.compact-form{margin-top:12px}.company-box{margin-top:10px}.company-head{display:flex;justify-content:space-between;gap:10px;align-items:center}.company-head h2{margin:0 0 7px}.chips{display:flex;gap:5px;flex-wrap:wrap}.chip{display:inline-flex;align-items:center;border-radius:999px;background:#edf1f7;padding:4px 8px;font-size:10px;color:#526074}.chip.good{background:#ecfdf3;color:#067647}.muted-chip{background:#f2f4f7;color:#98a2b3}.panel-list{display:grid;gap:7px;margin:12px 0}.panel-row{display:flex;align-items:center;justify-content:space-between;gap:10px;text-decoration:none;color:var(--ink);border:1px solid #e6eaf0;background:#fafcff;border-radius:12px;padding:11px}.panel-row b,.panel-row small{display:block}.panel-row small{color:var(--muted);font-size:10px;margin-top:4px}.panel-metrics{display:flex;gap:6px;font-size:10px;color:#526074;white-space:nowrap}.new-panel{border-top:1px dashed var(--line);padding-top:10px}.toggle-line{display:flex;align-items:center;gap:8px;min-height:46px}.toggle-line input{width:auto;min-height:auto;margin:0}.warning-toggle{padding:9px;border-radius:10px;background:#fff8e6;color:#7a4b00}.panel-top-grid{align-items:start}.search-line{display:grid;grid-template-columns:1fr auto;gap:8px;margin:10px 0}.search-line input{margin:0}.account-list{display:grid;gap:7px}.account-row{border:1px solid #e5eaf1;border-radius:12px;background:#fbfcfe;overflow:hidden}.account-row>summary{list-style:none;padding:10px;display:flex;justify-content:space-between;align-items:center;gap:10px}.account-row>summary::-webkit-details-marker{display:none}.account-row>summary b,.account-row>summary small{display:block}.account-row>summary small{color:var(--muted);font-size:10px;margin-top:3px}.account-edit{padding:10px;border-top:1px solid #e5eaf1;background:#fff}.history-list{display:grid;gap:7px}.history-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px;border-bottom:1px solid #edf0f4}.history-row:last-child{border-bottom:0}.history-row b,.history-row small{display:block}.history-row small{font-size:10px;color:var(--muted);margin-top:3px}.empty-state{background:#fff;border:1px dashed #cfd7e4;border-radius:16px;padding:24px;text-align:center;color:var(--muted);margin-top:10px}.ltr-inline{direction:ltr;unicode-bidi:isolate}.health-counts{margin-top:10px}
@media(max-width:700px){.quick-grid{grid-template-columns:repeat(2,1fr);gap:7px}.quick-card{padding:11px;border-radius:13px}.quick-card>span{font-size:21px}.company-head,.panel-row,.history-row{align-items:flex-start}.panel-row,.history-row{display:grid}.panel-metrics{white-space:normal}.search-line{grid-template-columns:1fr}.account-row>summary{align-items:flex-start}.account-row>summary .chips{justify-content:flex-end}.section-title{align-items:flex-start}.section-title .btn{min-height:38px;font-size:11px}.panel-top-grid{grid-template-columns:1fr}.toggle-line{min-height:42px}.empty-state{padding:18px 10px}}


/* v0.2.1 mobile-first parity pass */
.page-actions{display:flex;justify-content:flex-start;margin:10px 0}.add-panel-btn{margin-top:8px}
.app-dialog{border:0;padding:0;background:transparent;width:min(560px,calc(100% - 20px));max-width:none}.app-dialog::backdrop{background:rgba(14,23,42,.60);backdrop-filter:blur(4px)}.dialog-card{background:#fff;border:1px solid var(--line);border-radius:20px;padding:14px;box-shadow:0 25px 80px rgba(15,23,42,.22)}.dialog-head{display:flex;justify-content:space-between;gap:10px;align-items:flex-start;margin-bottom:10px}.dialog-head b,.dialog-head small{display:block}.dialog-head small{font-size:10px;color:var(--muted);margin-top:4px;line-height:1.7}.icon-btn{min-width:38px;padding:4px;font-size:20px}.excel-note{margin:0 0 8px}.excel-client-status{grid-column:1/-1;margin:0}
@media(max-width:700px){
  .content{padding:7px 7px 84px}
  .topbar{padding:7px 8px}.topbar b{font-size:17px}.topbar small{font-size:9px}
  .hero{padding:14px;border-radius:15px}.hero h1{font-size:19px}.hero p{font-size:11px;line-height:1.7}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.stat{padding:10px;border-radius:13px}.stat span{font-size:10px}.stat b{font-size:17px}
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.grid>.card{padding:10px}.grid>.card h2{font-size:14px}.grid>.card p{font-size:10px;line-height:1.7}
  .quick-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.quick-card{padding:9px 4px;border-radius:12px;text-align:center;min-width:0}.quick-card>span{font-size:19px;margin-bottom:4px}.quick-card b{font-size:9px;line-height:1.35}.quick-card small{display:none}
  .company-box{padding:10px}.company-head{display:flex;align-items:center}.company-head h2{font-size:15px}.company-head .chips{justify-content:flex-end}.chip{font-size:8px;padding:3px 6px}
  .panel-row{display:flex;align-items:center;padding:9px}.panel-row b{font-size:11px}.panel-row small{font-size:8px}.panel-metrics{display:flex;white-space:nowrap;font-size:8px}
  .section-title{align-items:center}.section-title h1{font-size:18px}.section-title p{font-size:10px}
  .form-grid{grid-template-columns:1fr}.panel-top-grid{grid-template-columns:1fr}
  .health-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .app-dialog{width:100%;max-width:none;margin:auto 0 0;align-self:end}.app-dialog[open]{position:fixed;inset:auto 0 0 0}.dialog-card{border-radius:22px 22px 0 0;padding:13px 10px calc(14px + env(safe-area-inset-bottom));max-height:92dvh;overflow:auto}
  input,select{font-size:16px!important;min-height:44px}.btn,button{min-height:40px}
  .bottomnav a{min-height:60px;padding-bottom:calc(7px + env(safe-area-inset-bottom))}
}
@media(max-width:390px){.quick-card b{font-size:8px}.stats{gap:5px}.stat{padding:9px}.company-head{gap:6px}.panel-row{gap:6px}}

/* v0.3.0 phase 3 accounting workflow */
.entry-layout{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:10px;align-items:start}.entry-main{min-width:0}.recent-reports{min-width:0}.recent-reports h2{margin-top:0}.recent-report-row{display:flex;justify-content:space-between;align-items:center;gap:10px;text-decoration:none;color:var(--ink);padding:10px 0;border-bottom:1px solid #edf0f4}.recent-report-row:last-child{border-bottom:0}.recent-report-row b,.recent-report-row small{display:block}.recent-report-row small{color:var(--muted);font-size:10px;margin-top:3px}.test-check{border:1px dashed #e1b854;background:#fff9e8;border-radius:11px;padding:8px}.preview-card{padding:10px}.preview-actions,.final-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px}.table-wrap{overflow:auto;-webkit-overflow-scrolling:touch;border-radius:13px;border:1px solid #e2e7ef}.accounting-table{width:100%;border-collapse:collapse;min-width:860px;background:#fff}.accounting-table th,.accounting-table td{border-left:1px solid #e5eaf1;border-bottom:1px solid #e5eaf1;padding:7px 6px;text-align:center;font-size:11px;white-space:nowrap}.accounting-table th{background:#f8fafc;font-weight:900}.accounting-table tr:last-child td{border-bottom:0}.accounting-table th:last-child,.accounting-table td:last-child{border-left:0}.recv-cell{background:#fee2e2!important}.pay-cell{background:#dbeafe!important}.comm-cell{background:#dcfce7!important}.site-win{background:#dbeafe!important;color:#172554}.site-loss{background:#ffedd5!important;color:#7c2d12}.unknown-row td:first-child,.unknown-row td:nth-child(2){background:#fff8e6}.account-totals{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:10px 0}.account-totals>div{border:1px solid #e2e7ef;border-radius:12px;padding:10px;display:flex;justify-content:space-between;gap:8px;align-items:center}.account-totals span{font-size:10px}.account-totals b{font-size:15px}.accounting-final{margin-top:10px}.hidden{display:none!important}.row-edit{min-width:34px;padding:3px 7px}.notice.warn{background:#fff7df;border-color:#f2cc6d;color:#704b00}.notice.warn b,.notice.warn span{display:block}.notice.warn span{margin-top:4px}.recent-report-row .chip{flex:0 0 auto}
@media(max-width:900px){.entry-layout{grid-template-columns:1fr}.recent-reports{order:2}}
@media(max-width:700px){
  .entry-layout{display:block}.recent-reports{margin-top:8px}.preview-card{padding:7px}.preview-actions{display:grid;grid-template-columns:1fr 1fr}.preview-actions button{width:100%}
  .table-wrap{border-radius:10px}.accounting-table{min-width:720px}.accounting-table th,.accounting-table td{font-size:9px;padding:6px 4px}
  .account-totals{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.account-totals>div{padding:8px;border-radius:10px}.account-totals b{font-size:13px}
  .final-actions{display:grid;grid-template-columns:1fr 1fr}.final-actions>*{min-width:0}.final-actions form,.final-actions .btn,.final-actions button{width:100%}
  .recent-report-row{padding:9px 2px}.recent-report-row b{font-size:11px}.recent-report-row small{font-size:8px}
}

/* v0.3.1 Phase 3 guardrails + V32 table-fit parity */
.report-fit{overflow:hidden!important;width:100%;max-width:100%;min-width:0}.report-fit .accounting-table{table-layout:fixed;width:100%;min-width:0!important;border-collapse:collapse}.report-fit .accounting-table th,.report-fit .accounting-table td{white-space:normal;overflow-wrap:anywhere;word-break:normal}.report-fit .accounting-table .username-cell{direction:ltr;white-space:nowrap;overflow:hidden;text-overflow:clip;font-size:10px}.report-fit .accounting-table .name-cell{font-weight:800}.calc-note{display:flex;gap:8px;align-items:flex-start;border:1px solid #d9e2f2;background:#f7f9fd;border-radius:11px;padding:9px 10px;margin:0 0 8px}.calc-note b{flex:0 0 auto;font-size:11px}.calc-note span{font-size:10px;line-height:1.8;color:var(--muted)}.calc-details{margin:10px 0}.calc-details summary{cursor:pointer;font-weight:800}.calc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}.calc-grid>div{border:1px solid var(--line);border-radius:10px;padding:8px}.calc-grid b,.calc-grid span{display:block}.calc-grid b{font-size:10px;direction:ltr;text-align:left}.calc-grid span{font-size:9px;color:var(--muted);margin-top:4px;line-height:1.6}.unknown-warning button{margin-top:8px}.unknown-list{display:grid;gap:5px;max-height:36dvh;overflow:auto;margin:8px 0}.unknown-list>div{display:flex;justify-content:space-between;gap:8px;border:1px solid var(--line);border-radius:9px;padding:7px 8px}.unknown-list b{font-size:11px}.unknown-list span{font-size:10px;color:var(--muted)}.resolver-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.unresolved-row td{outline:1px solid #efb52f;outline-offset:-1px}
@media(max-width:700px){
  .report-fit{border-radius:8px}.report-fit .accounting-table{min-width:0!important}.report-fit .accounting-table th,.report-fit .accounting-table td{font-size:clamp(5.4px,1.72vw,9px);padding:4px 1px;height:30px;line-height:1.25}.report-fit .accounting-table thead tr:first-child th{font-size:clamp(6.7px,2.2vw,11px);height:31px}.report-fit .accounting-table .username-cell{font-size:clamp(4.8px,1.48vw,8px)}.report-fit .row-edit{min-width:0;width:100%;padding:3px 1px;font-size:10px}.calc-note{display:block;padding:7px}.calc-note b,.calc-note span{display:block}.calc-note span{margin-top:3px;font-size:9px}.calc-grid{grid-template-columns:1fr}.resolver-actions{grid-template-columns:1fr}.unknown-warning .primary{width:100%}
}
@media(max-width:390px){.report-fit .accounting-table th,.report-fit .accounting-table td{font-size:clamp(5px,1.55vw,7px);padding:3px .5px}.report-fit .accounting-table .username-cell{font-size:clamp(4.5px,1.35vw,6.5px)}}

/* v0.4.0 phases 4-7: customers, reports, exports, settings */



body{font-family:var(--font-global, VazirmatnLocal,Tahoma,Arial,sans-serif);background:var(--bg)}h1,h2,h3,.section-title,.hero{font-family:var(--font-heading,var(--font-global))}.btn,button,input,select,label{font-family:var(--font-form,var(--font-global))}.accounting-table,.report-table{font-family:var(--font-table,var(--font-global))}.recv-cell{background:color-mix(in srgb,var(--recv,#ff5d60) calc(var(--theme-opacity,1)*100%),#fff)!important}.pay-cell{background:color-mix(in srgb,var(--pay,#92cdd9) calc(var(--theme-opacity,1)*100%),#fff)!important}.comm-cell{background:color-mix(in srgb,var(--comm,#78fa70) calc(var(--theme-opacity,1)*100%),#fff)!important}.primary{background:var(--p)}
.customer-head-grid{display:grid;grid-template-columns:minmax(260px,.7fr) minmax(0,1.3fr);gap:10px;align-items:start}.customer-list{display:grid;gap:8px}.customer-row,.suggestion-row,.linked-account{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:11px;text-decoration:none;color:var(--ink)}.customer-row b,.customer-row small,.linked-account b,.linked-account small,.suggestion-row b,.suggestion-row small{display:block}.customer-row small,.linked-account small,.suggestion-row small{font-size:10px;color:var(--muted);margin-top:3px}.customer-row>div:last-child{display:grid;gap:4px;text-align:left;font-size:10px}.account-picker{display:grid;gap:5px;max-height:45dvh;overflow:auto;border:1px solid var(--line);border-radius:12px;padding:6px}.pick-row{display:flex;gap:8px;align-items:flex-start;border-bottom:1px solid #edf0f4;padding:7px 5px}.pick-row:last-child{border-bottom:0}.pick-row input{width:18px;min-height:18px;margin:1px 0 0}.pick-row span,.pick-row small{display:block}.pick-row small{font-size:9px;color:var(--muted);margin-top:2px}.danger-zone{margin:12px 0}.share-box{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.summary-canvas{width:100%;height:auto;border:1px solid var(--line);background:#fff}.report-filter{margin:10px 0}.report-export-actions{margin-top:10px}.settings-layout{display:grid;gap:10px}.theme-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}.theme-grid input[type=color]{padding:3px;height:46px}.theme-preview{margin-top:10px;padding:10px;border:1px solid var(--line);border-radius:12px}.preview-swatches{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin-top:8px}.preview-swatches span{padding:10px;text-align:center;border-radius:8px}.settings-save{position:sticky;bottom:75px;z-index:4;width:100%;min-height:50px}.accounting-final .name-cell a{color:inherit;text-decoration:underline;text-decoration-style:dotted}
@media(max-width:700px){.customer-head-grid{grid-template-columns:1fr}.customer-row,.linked-account,.suggestion-row{padding:9px}.customer-row>div:last-child{font-size:8px}.theme-grid{grid-template-columns:repeat(2,1fr)}.report-export-actions{display:grid;grid-template-columns:repeat(3,1fr)}.report-export-actions>*{min-width:0;padding-inline:5px}.settings-save{bottom:70px}.account-picker{max-height:38dvh}}
@media print{body{font-family:var(--font-print,var(--font-global))}}

/* v0.4.1 report/readability + customer workflow polish */
.accounting-table{border-collapse:collapse;border:1.5px solid #111!important}
.accounting-table th,.accounting-table td{border:1.5px solid #111!important;color:#090909}
.report-fit .accounting-table th,.report-fit .accounting-table td{padding:5px 2px;line-height:1.25}
.customer-inline-link{appearance:none;border:0;background:transparent;color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:2px;font:inherit;font-weight:800;padding:0;cursor:pointer;width:100%}
.customer-account-dialog .dialog-card{width:min(980px,calc(100vw - 18px))}.customer-auto-image{display:block;width:100%;height:auto;border:1.5px solid #111;margin-top:10px;background:#fff}.customer-auto-image:not([src]){display:none}.picker-search{width:100%;margin:4px 0 7px}.customer-admin-card .toggle-line{margin-top:2px}.report-actions-cell{display:flex;gap:4px;justify-content:center;flex-wrap:wrap}.report-actions-cell form{margin:0}.report-actions-cell .btn,.report-actions-cell button{min-height:32px;padding:4px 7px;font-size:10px}.date-with-picker{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px;align-items:end}.date-with-picker .calendar-btn{min-width:44px;padding:8px}.jalali-calendar-card{width:min(380px,calc(100vw - 20px))}.jalali-calendar-head{display:grid;grid-template-columns:42px 1fr 42px;gap:6px;align-items:center;margin-bottom:8px}.jalali-calendar-head b{text-align:center}.jalali-calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}.jalali-calendar-grid span,.jalali-calendar-grid button{min-width:0;min-height:38px;border:0;border-radius:8px;text-align:center}.jalali-calendar-grid span{font-size:10px;color:var(--muted);display:flex;align-items:center;justify-content:center}.jalali-calendar-grid button{background:#f2f4f7;font:700 12px var(--font-form);cursor:pointer}.jalali-calendar-grid button.today{outline:2px solid var(--p)}.jalali-calendar-grid button.selected{background:var(--p);color:#fff}.filter-customer-combo{position:relative}.font-file-status{display:grid;gap:5px;margin-top:8px}.font-file-status span{display:flex;justify-content:space-between;gap:8px;padding:7px 8px;border-radius:8px;background:#f2f4f7}.font-file-status .missing{background:#fff0f0;color:#a31919}.font-file-status .ok{background:#ecfdf3;color:#087443}
@media(max-width:700px){
  .report-fit .accounting-table th,.report-fit .accounting-table td{font-size:clamp(7.2px,2.12vw,10.5px)!important;padding:3px .7px!important;height:28px!important;line-height:1.18!important}
  .report-fit .accounting-table thead tr:first-child th{font-size:clamp(8px,2.35vw,11.5px)!important;height:29px!important}
  .report-fit .accounting-table .username-cell{font-size:clamp(6.7px,1.95vw,9.5px)!important}
  .customer-account-dialog .account-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-account-dialog .share-box{display:grid;grid-template-columns:1fr 1fr}.customer-account-dialog .share-box>*{width:100%;min-width:0}
  .report-actions-cell{display:grid;grid-template-columns:1fr}.report-actions-cell .btn,.report-actions-cell button{font-size:9px}
}
@media(max-width:390px){.report-fit .accounting-table th,.report-fit .accounting-table td{font-size:clamp(6.7px,2vw,8.5px)!important}.report-fit .accounting-table .username-cell{font-size:6.4px!important}}


/* v0.4.5 report/card parity and mobile navigation corrections */
.site-win{background:var(--recv,#ff5d60)!important;color:#090909!important}.site-loss{background:var(--pay,#92cdd9)!important;color:#090909!important}
.source-download-link{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:3px 9px;border-radius:8px;background:#edf1f7;color:#24324b;text-decoration:none;font-size:10px;font-weight:800}.tiny-inline{font-size:9px;color:var(--muted)}
.customer-reference-card{width:min(1020px,calc(100vw - 12px))!important;padding:12px!important;background:#fff}.customer-reference-head{text-align:center;position:relative;display:block!important}.customer-reference-head>div{padding-inline:42px}.customer-reference-head b{display:block;font-size:24px}.customer-reference-head small{display:block;margin-top:5px;font-weight:700;color:#4b5563}.customer-reference-head .icon-btn{position:absolute;left:0;top:0}.customer-reference-table{margin-top:10px}.customer-reference-table .accounting-table th,.customer-reference-table .accounting-table td{border:1.5px solid #222!important;background:#fff;font-weight:800}.customer-reference-table .comm-cell{background:var(--comm,#78fa70)!important}.customer-reference-table .recv-cell{background:var(--recv,#ff5d60)!important}.customer-reference-table .pay-cell{background:var(--pay,#92cdd9)!important}.customer-reference-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:12px;border:1.5px solid #222}.customer-reference-totals>div{min-height:48px;border-left:1.5px solid #222;padding:8px;text-align:center;font-weight:800}.customer-reference-totals>div:last-child{border-left:0}.customer-reference-totals span,.customer-reference-totals b{display:inline;font-size:16px}.customer-reference-balance{margin-top:0;border:1.5px solid #222;border-top:0;min-height:58px;display:flex;align-items:center;justify-content:center;font-size:23px;text-align:center}.customer-reference-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.customer-share-fallback{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:8px}.customer-share-fallback textarea{grid-column:1/-1;min-height:120px}.customer-auto-image{margin-top:12px}
.bottomnav{z-index:999!important;position:fixed!important;display:grid!important;transform:translateZ(0);-webkit-transform:translateZ(0)}.app-shell{padding-bottom:calc(86px + env(safe-area-inset-bottom))!important}.content{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
@media(max-width:700px){
 .customer-account-dialog{padding:2px!important}.customer-reference-card{width:calc(100vw - 4px)!important;max-height:calc(100dvh - 6px)!important;border-radius:10px!important;padding:6px!important}.customer-reference-head b{font-size:20px}.customer-reference-head small{font-size:10px}.customer-reference-table .accounting-table th,.customer-reference-table .accounting-table td{font-size:clamp(7px,2.05vw,10.5px)!important;padding:3px 1px!important;height:31px!important;line-height:1.15!important}.customer-reference-table .accounting-table thead tr:first-child th{font-size:clamp(8.5px,2.4vw,12px)!important}.customer-reference-table .username-cell{font-size:clamp(6.4px,1.85vw,9px)!important}.customer-reference-totals>div{padding:7px 2px;min-height:43px}.customer-reference-totals span,.customer-reference-totals b{font-size:clamp(9px,2.7vw,13px)}.customer-reference-balance{font-size:clamp(15px,4.6vw,20px);min-height:52px}.customer-reference-actions{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-share-fallback{grid-template-columns:1fr}.customer-share-fallback textarea{grid-column:auto}.bottomnav{padding-bottom:max(env(safe-area-inset-bottom),4px)!important}.report-export-actions{position:relative;z-index:1}
}


/* v0.4.6 stability + report/customer parity */
.accounting-table th,.accounting-table td{border-color:#222!important}
.customer-account-dialog{padding:12px!important}
.customer-account-dialog .customer-reference-card{width:min(980px,calc(100vw - 24px))!important;max-width:980px!important;max-height:calc(100dvh - 24px)!important;overflow:auto!important;padding:12px!important;border-radius:16px!important}
.customer-reference-table{overflow:hidden!important;border-radius:0!important;border:0!important}
.customer-reference-table .accounting-table{min-width:0!important;width:100%!important;table-layout:fixed!important}
.customer-reference-table .accounting-table th,.customer-reference-table .accounting-table td{white-space:normal!important;overflow-wrap:anywhere!important;border:1px solid #222!important}
.customer-reference-totals{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:0!important;margin-top:10px!important}
.customer-reference-totals>div{border:1px solid #222!important;border-radius:0!important;min-height:46px!important;padding:8px 5px!important;text-align:center!important}
.customer-reference-balance{border:1px solid #222!important;border-radius:0!important;margin-top:0!important;min-height:54px!important;display:flex!important;align-items:center!important;justify-content:center!important;font-weight:900!important;font-size:18px!important}
.share-generated-image{display:none!important}
.customer-reference-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:7px!important;margin-top:12px!important}
.customer-reference-actions>*{min-width:0!important}
.bottomnav{z-index:500!important;box-shadow:0 -7px 22px rgba(15,23,42,.12)!important}
.content{padding-bottom:90px!important}
.source-download-link{display:inline-flex;padding:4px 9px;border-radius:999px;background:#edf1f7;text-decoration:none;font-weight:800;font-size:10px;color:#2947bd}
@media(max-width:700px){
 .customer-account-dialog{padding:3px!important;align-items:flex-end!important}
 .customer-account-dialog .customer-reference-card{width:100%!important;max-width:none!important;max-height:calc(100dvh - 6px)!important;border-radius:15px 15px 0 0!important;padding:7px!important}
 .customer-reference-head{position:sticky;top:0;z-index:4;background:#fff;padding:4px 0 6px!important}
 .customer-reference-table .accounting-table th,.customer-reference-table .accounting-table td{font-size:clamp(6px,1.9vw,10px)!important;line-height:1.25!important;padding:4px 1px!important;height:30px!important}
 .customer-reference-table .accounting-table thead tr:first-child th{font-size:clamp(7px,2.2vw,11px)!important}
 .customer-reference-totals>div{font-size:9px!important;padding:7px 2px!important;min-height:42px!important}
 .customer-reference-totals b{font-size:13px!important}
 .customer-reference-balance{font-size:16px!important;min-height:48px!important}
 .customer-reference-actions{grid-template-columns:repeat(2,1fr)!important}
 .customer-reference-actions .btn,.customer-reference-actions button{min-height:42px!important;font-size:11px!important;padding:6px!important}
 .bottomnav{display:grid!important;position:fixed!important;bottom:0!important;left:0!important;right:0!important}
}

/* v0.4.7 customer-card density pass: less dead space, larger readable content */
.customer-account-dialog .customer-reference-card{overflow-x:hidden!important}
.customer-reference-table .accounting-table{table-layout:fixed!important;width:100%!important;min-width:0!important}
.customer-reference-table .accounting-table th,
.customer-reference-table .accounting-table td{vertical-align:middle!important}
.customer-reference-table .name-cell{font-weight:900!important}
.customer-reference-totals>div{display:flex!important;align-items:center!important;justify-content:center!important;gap:3px!important}
.customer-reference-balance{padding:4px 6px!important}

@media(max-width:700px){
  .customer-account-dialog .customer-reference-card{padding:5px!important}
  .customer-reference-head{padding:2px 0 4px!important}
  .customer-reference-head>div{padding-inline:34px!important}
  .customer-reference-head b{font-size:18px!important;line-height:1.2!important}
  .customer-reference-head small{font-size:8px!important;line-height:1.35!important;margin-top:2px!important}
  .customer-reference-head .icon-btn{width:31px!important;height:31px!important;min-height:31px!important;padding:0!important}
  .customer-reference-table{margin-top:5px!important}
  .customer-reference-table .accounting-table th,
  .customer-reference-table .accounting-table td{
    padding:1px .5px!important;
    height:24px!important;
    min-height:24px!important;
    line-height:1.06!important;
    font-size:clamp(7.6px,2.35vw,10.8px)!important;
  }
  .customer-reference-table .accounting-table thead tr:first-child th{
    height:25px!important;
    font-size:clamp(8px,2.5vw,11.2px)!important;
    padding:1px .5px!important;
  }
  .customer-reference-table .accounting-table thead tr:nth-child(2) th{
    font-size:clamp(7.2px,2.15vw,9.8px)!important;
  }
  .customer-reference-table .name-cell{
    font-size:clamp(8.2px,2.55vw,11.2px)!important;
    line-height:1.08!important;
  }
  .customer-reference-table .username-cell{
    font-size:clamp(6.5px,1.9vw,8.6px)!important;
    padding-inline:0!important;
  }
  .customer-reference-table .number,
  .customer-reference-table .comm-cell,
  .customer-reference-table .recv-cell,
  .customer-reference-table .pay-cell{
    font-size:clamp(8px,2.45vw,10.8px)!important;
    font-weight:900!important;
  }
  .customer-reference-totals{margin-top:5px!important}
  .customer-reference-totals>div{
    min-height:34px!important;
    padding:2px 1px!important;
    line-height:1.05!important;
  }
  .customer-reference-totals span{font-size:clamp(8px,2.25vw,10px)!important}
  .customer-reference-totals b{font-size:clamp(10px,3vw,13px)!important}
  .customer-reference-balance{
    min-height:39px!important;
    font-size:clamp(13px,3.8vw,17px)!important;
    line-height:1.1!important;
  }
  .customer-reference-actions{gap:5px!important;margin-top:7px!important}
  .customer-reference-actions .btn,
  .customer-reference-actions button{min-height:36px!important;font-size:10px!important;padding:4px 3px!important}
  #reportCustomerShareStatus{font-size:8px!important;margin-top:3px!important}
}

@media(min-width:701px){
  .customer-reference-table .accounting-table th,
  .customer-reference-table .accounting-table td{padding:5px 3px!important;height:34px!important;font-size:13px!important}
  .customer-reference-table .accounting-table thead tr:first-child th{font-size:14px!important;height:36px!important}
  .customer-reference-table .name-cell{font-size:13px!important}
  .customer-reference-table .username-cell{font-size:11px!important}
  .customer-reference-totals>div{min-height:42px!important;padding:5px!important}
  .customer-reference-balance{min-height:46px!important;font-size:17px!important}
}

/* v0.4.8 customer directory + reporting parity */
:root{--site-win:var(--pay,#92cdd9);--site-loss:var(--recv,#ff5d60)}
.site-win{background:var(--site-win)!important;color:#090909!important}.site-loss{background:var(--site-loss)!important;color:#090909!important}
.source-download-link.disabled{opacity:.5;cursor:not-allowed;pointer-events:none}
.customer-filter-bar{display:grid;grid-template-columns:2fr 1fr 1fr auto;gap:8px;align-items:end}.customer-filter-bar .wide{min-width:0}.customer-directory{display:grid;gap:7px}.customer-directory .customer-row{border:1px solid var(--line);border-radius:13px;padding:10px 12px;background:var(--card);box-shadow:0 4px 14px rgba(35,55,95,.05)}.customer-row-numbers{display:flex;gap:10px;font-size:11px}.recv-text{color:#b42318}.pay-text{color:#13647b}.customer-profile-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px}.customer-account-settings{display:grid;gap:8px}.customer-account-card{border:1px solid var(--line);border-radius:13px;padding:10px;background:#fbfcff}.customer-account-title{display:flex;justify-content:space-between;align-items:center;gap:8px}.customer-account-title b,.customer-account-title small{display:block}.customer-account-title small{font-size:10px;color:var(--muted);margin-top:2px}.account-edit-grid{display:grid;grid-template-columns:1.1fr 1.1fr .8fr .55fr auto;gap:7px;align-items:end;margin-top:8px}.account-edit-grid label{min-width:0}.account-edit-grid input,.account-edit-grid select{min-height:39px;margin-top:3px;padding:7px 8px}.toggle-line.compact{display:flex;align-items:center;gap:5px;min-height:39px}.toggle-line.compact input{width:auto;min-height:0;margin:0}.mini-btn{min-height:32px;padding:4px 7px;font-size:10px}.suggestion-box{display:grid;gap:5px;margin-bottom:8px}.suggestion-row{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px;border:1px solid var(--line);border-radius:10px}.suggestion-row small{display:block;color:var(--muted);font-size:9px;margin-top:2px}
.report-filter+.report-export-actions{margin-top:10px}.report-export-actions{position:sticky;top:58px;z-index:40;background:color-mix(in srgb,var(--bg) 94%,transparent);backdrop-filter:blur(8px);padding:5px;border-radius:12px}.accounting-table thead .recv-cell{background:var(--recv)!important}.accounting-table thead .pay-cell{background:var(--pay)!important}.accounting-table thead .comm-cell{background:var(--comm)!important}.customer-reference-table .accounting-table thead tr:first-child th:nth-child(2){background:var(--recv)!important}.customer-reference-table .accounting-table thead tr:first-child th:nth-child(3){background:var(--pay)!important}
.bottomnav{z-index:10000!important}.content{padding-bottom:100px!important}
.customer-account-dialog .customer-reference-card{overflow-x:hidden!important}.customer-reference-table{overflow:hidden!important}.customer-reference-table .accounting-table{width:100%!important;min-width:0!important;table-layout:fixed!important}.customer-reference-table .accounting-table th,.customer-reference-table .accounting-table td{padding:3px 2px!important;line-height:1.12!important}.customer-reference-totals{border:0!important;gap:5px!important;margin-top:6px!important}.customer-reference-totals>div{border:1.5px solid #222!important;border-radius:7px!important;min-height:38px!important;padding:3px 4px!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:4px!important}.customer-reference-totals span{font-size:10px!important}.customer-reference-totals b{font-size:13px!important}.customer-reference-balance{border:1.5px solid #222!important;border-radius:7px!important;margin-top:5px!important;min-height:42px!important;font-size:16px!important}.customer-reference-actions{margin-top:7px!important}
@media(max-width:700px){
 .customer-filter-bar{grid-template-columns:1fr 1fr}.customer-filter-bar .wide{grid-column:1/-1}.customer-filter-bar button{grid-column:1/-1}.customer-directory .customer-row{padding:8px}.customer-row-numbers{font-size:9px;gap:6px}.customer-profile-grid{grid-template-columns:1fr}.account-edit-grid{grid-template-columns:1fr 1fr}.account-edit-grid button{grid-column:1/-1}.customer-account-card{padding:7px}.customer-account-title{align-items:flex-start}.report-export-actions{top:52px;display:grid!important;grid-template-columns:repeat(3,1fr);gap:5px}.report-export-actions .btn,.report-export-actions button{min-height:36px!important;font-size:10px!important;padding:4px!important}.bottomnav{display:grid!important;visibility:visible!important;opacity:1!important;transform:none!important}.app-shell{padding-bottom:96px!important}.content{padding-bottom:108px!important}.customer-account-dialog{padding:5px!important;align-items:center!important}.customer-account-dialog .customer-reference-card{width:calc(100vw - 10px)!important;max-height:calc(100dvh - 18px)!important;border-radius:13px!important;padding:6px!important}.customer-reference-head b{font-size:17px!important}.customer-reference-head small{font-size:8px!important}.customer-reference-table .accounting-table th,.customer-reference-table .accounting-table td{padding:1px!important;height:23px!important;font-size:clamp(7.4px,2.35vw,10.3px)!important}.customer-reference-table .name-cell{font-size:clamp(8px,2.55vw,10.8px)!important}.customer-reference-table .username-cell{font-size:clamp(6px,1.85vw,8.2px)!important}.customer-reference-totals{gap:3px!important}.customer-reference-totals>div{min-height:32px!important;border-radius:5px!important;padding:2px!important}.customer-reference-totals span{font-size:clamp(7.5px,2.2vw,9px)!important}.customer-reference-totals b{font-size:clamp(9px,2.8vw,11.5px)!important}.customer-reference-balance{min-height:36px!important;border-radius:5px!important;font-size:clamp(12px,3.6vw,15px)!important}.customer-reference-actions{gap:4px!important}.customer-reference-actions .btn,.customer-reference-actions button{min-height:34px!important;font-size:9px!important;padding:3px!important}
}
@media(min-width:701px){.customer-account-dialog .customer-reference-card{width:min(860px,calc(100vw - 36px))!important}.customer-reference-table .accounting-table th,.customer-reference-table .accounting-table td{font-size:12px!important;height:31px!important}.customer-reference-totals>div{min-height:38px!important}.customer-reference-balance{min-height:42px!important}}


/* v0.4.9 hard parity fixes */
.customer-directory .customer-row{display:flex;align-items:center;justify-content:space-between;gap:10px;overflow:hidden}
.customer-row-main{min-width:0}.customer-row-main b{display:block;font-size:14px}.customer-row-main small{display:block;color:var(--muted);font-size:10px;margin-top:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-usernames{font-size:9px!important;color:#475467!important}
.customer-row-numbers{flex:0 0 auto;display:grid!important;gap:2px!important;text-align:left}
.customer-profile-grid h2{margin-top:0}.customer-account-card{overflow:hidden}.customer-account-title{min-width:0}.customer-account-title>div{min-width:0}.customer-account-title b,.customer-account-title small{overflow-wrap:anywhere}
/* Final report customer card: absolutely no horizontal scrollbar on desktop or mobile. */
.customer-account-dialog{overflow:hidden!important}
.customer-account-dialog .customer-reference-card{width:min(760px,calc(100vw - 24px))!important;max-width:760px!important;overflow-y:auto!important;overflow-x:hidden!important;box-sizing:border-box!important}
.customer-account-dialog .customer-reference-card>*{max-width:100%!important;min-width:0!important;box-sizing:border-box!important}
.customer-reference-table{width:100%!important;max-width:100%!important;overflow:hidden!important;border-radius:0!important}
.customer-reference-table .accounting-table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important}
.customer-reference-table .accounting-table th,.customer-reference-table .accounting-table td{min-width:0!important;white-space:normal!important;overflow:hidden!important;text-overflow:clip!important;overflow-wrap:anywhere!important;word-break:normal!important;padding:4px 2px!important}
.customer-reference-actions{width:100%!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}.customer-reference-actions>*{min-width:0!important;width:100%!important}
.customer-reference-totals{width:100%!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}.customer-reference-balance{width:100%!important}
/* Theme colors must be identical in group headers and their data columns. */
.accounting-table th.recv-cell,.accounting-table td.recv-cell,.customer-reference-table .recv-cell{background:var(--recv)!important}
.accounting-table th.pay-cell,.accounting-table td.pay-cell,.customer-reference-table .pay-cell{background:var(--pay)!important}
.accounting-table th.comm-cell,.accounting-table td.comm-cell,.customer-reference-table .comm-cell{background:var(--comm)!important}
/* Reports navigation must never disappear behind report content. */
body .bottomnav{display:grid!important;visibility:visible!important;opacity:1!important;position:fixed!important;bottom:0!important;left:0!important;right:0!important;z-index:2147483000!important}
body .app-shell{padding-bottom:calc(88px + env(safe-area-inset-bottom))!important}
@media(max-width:700px){
 .customer-directory .customer-row{padding:8px 9px}.customer-row-main b{font-size:12px}.customer-row-main small{font-size:8.5px}.customer-row-numbers{font-size:8.5px!important}
 .customer-account-dialog{padding:4px!important;align-items:center!important}
 .customer-account-dialog .customer-reference-card{width:calc(100vw - 8px)!important;max-width:none!important;padding:6px!important;max-height:calc(100dvh - 12px)!important}
 .customer-reference-table .accounting-table th,.customer-reference-table .accounting-table td{font-size:clamp(7.5px,2.45vw,10.4px)!important;padding:2px 1px!important;height:25px!important;line-height:1.12!important}
 .customer-reference-table .name-cell{font-size:clamp(8px,2.65vw,11px)!important}.customer-reference-table .username-cell{font-size:clamp(6.2px,1.9vw,8.4px)!important}
 .customer-reference-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important}
 .customer-reference-actions .btn,.customer-reference-actions button{min-height:34px!important;font-size:9px!important;padding:3px 2px!important}
 .customer-reference-totals>div{min-height:32px!important;padding:2px!important}.customer-reference-totals span{font-size:8px!important}.customer-reference-totals b{font-size:11px!important}.customer-reference-balance{min-height:36px!important;font-size:14px!important}
}


/* v0.4.10 final Phase 4–7 stabilization: do not hide overflow, make content actually fit */
.customer-account-dialog{width:auto!important;max-width:none!important;padding:12px!important;overflow:visible!important}
.customer-account-dialog[open]{position:fixed!important;inset:0!important;margin:auto!important;display:flex!important;align-items:center!important;justify-content:center!important}
.customer-account-dialog .customer-reference-card{width:min(920px,calc(100vw - 32px))!important;max-width:920px!important;max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;overflow-x:visible!important;padding:12px!important;border-radius:16px!important}
.customer-reference-table{width:100%!important;max-width:100%!important;overflow:visible!important;border:0!important}
.customer-reference-table .accounting-table{width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important}
.customer-reference-table .accounting-table th,.customer-reference-table .accounting-table td{box-sizing:border-box!important;min-width:0!important;max-width:none!important;white-space:normal!important;overflow:visible!important;overflow-wrap:anywhere!important;word-break:normal!important;padding:5px 3px!important;height:34px!important;font-size:12px!important;line-height:1.2!important}
.customer-reference-table .accounting-table .name-cell{font-size:12px!important;font-weight:900!important}.customer-reference-table .accounting-table .username-cell{font-size:10px!important;direction:ltr!important}
.customer-reference-totals{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;width:100%!important;margin-top:7px!important;border:0!important}.customer-reference-totals>div{min-width:0!important;min-height:42px!important;padding:5px!important;border:1.5px solid #222!important;border-radius:7px!important}.customer-reference-totals span{font-size:10px!important}.customer-reference-totals b{font-size:14px!important}.customer-reference-balance{width:100%!important;min-height:44px!important;margin-top:6px!important;border:1.5px solid #222!important;border-radius:7px!important;font-size:16px!important}.customer-reference-actions{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important;width:100%!important}.customer-reference-actions>*{min-width:0!important;width:100%!important}
.customer-directory .customer-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important}.customer-row-main{min-width:0!important}.customer-usernames{display:block!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important;max-width:100%!important}
.report-actions-cell{display:flex!important;gap:5px!important;align-items:center!important;justify-content:center!important}.report-actions-cell form{display:inline-flex!important}.report-actions-cell .btn,.report-actions-cell button{min-height:32px!important;padding:5px 8px!important}
@media(max-width:700px){
 .customer-account-dialog{padding:4px!important}.customer-account-dialog .customer-reference-card{width:calc(100vw - 8px)!important;max-width:none!important;max-height:calc(100dvh - 8px)!important;padding:6px!important;border-radius:12px!important}
 .customer-reference-table .accounting-table th,.customer-reference-table .accounting-table td{padding:2px 1px!important;height:26px!important;font-size:clamp(7px,2.25vw,10.5px)!important;line-height:1.12!important}.customer-reference-table .accounting-table .name-cell{font-size:clamp(7.8px,2.5vw,11px)!important}.customer-reference-table .accounting-table .username-cell{font-size:clamp(6px,1.85vw,8.5px)!important}
 .customer-reference-totals{gap:3px!important}.customer-reference-totals>div{min-height:34px!important;padding:2px!important}.customer-reference-totals span{font-size:8px!important}.customer-reference-totals b{font-size:11px!important}.customer-reference-balance{min-height:38px!important;font-size:14px!important}.customer-reference-actions{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:4px!important}.customer-reference-actions .btn,.customer-reference-actions button{min-height:34px!important;font-size:9px!important;padding:3px!important}
 .customer-directory .customer-row{grid-template-columns:1fr!important}.customer-row-numbers{justify-content:flex-start!important;flex-wrap:wrap!important}.report-actions-cell{display:grid!important;grid-template-columns:1fr 1fr!important}.report-actions-cell>*{min-width:0!important}
}


/* v0.4.12 reporting semantics + mobile cleanup */
#reportDataTable thead th{background:#f8fafc!important;color:var(--ink)!important}
#reportDataTable thead th.recv-cell{background:var(--recv)!important}
#reportDataTable thead th.pay-cell{background:var(--pay)!important}
#reportDataTable thead th.comm-cell{background:var(--comm)!important}
#reportDataTable td:not(.recv-cell):not(.pay-cell):not(.comm-cell):not(.site-win):not(.site-loss){background:#fff!important}
.report-view-head{width:34px!important;padding-inline:2px!important}
.report-actions-cell{display:table-cell!important;width:34px!important;min-width:34px!important;padding:2px!important}
.report-view-icon{display:grid;place-items:center;width:30px;height:30px;margin:auto;border-radius:8px;background:#edf1f7;color:#24324b;text-decoration:none;font-size:15px;line-height:1}
.report-view-icon:active{transform:scale(.96)}
.report-type-daily #reportDataTable th:nth-child(1),.report-type-daily #reportDataTable td:nth-child(1){width:14%}
.report-type-daily #reportDataTable th:nth-child(2),.report-type-daily #reportDataTable td:nth-child(2){width:13%}
.report-type-daily #reportDataTable th:nth-child(3),.report-type-daily #reportDataTable td:nth-child(3){width:13%}
.report-type-daily #reportDataTable th:nth-child(4),.report-type-daily #reportDataTable td:nth-child(4),
.report-type-daily #reportDataTable th:nth-child(5),.report-type-daily #reportDataTable td:nth-child(5),
.report-type-daily #reportDataTable th:nth-child(6),.report-type-daily #reportDataTable td:nth-child(6){width:15%}
.report-type-daily #reportDataTable th:nth-child(7),.report-type-daily #reportDataTable td:nth-child(7){width:16%}
.report-type-daily #reportDataTable th:nth-child(8),.report-type-daily #reportDataTable td:nth-child(8){width:34px}
.report-type-monthly #reportDataTable th:nth-child(2),.report-type-monthly #reportDataTable td:nth-child(2),
.report-type-multi #reportDataTable th:nth-child(2),.report-type-multi #reportDataTable td:nth-child(2){background:#fff!important;color:var(--ink)!important}

/* In-app confirmations replace browser-native confirm/alert UI. */
.system-dialog{z-index:2147483600!important}
.system-dialog .dialog-card{width:min(460px,100%)}
.system-dialog-message{font-size:13px;line-height:2;color:var(--ink);padding:4px 1px 10px}
.system-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:6px}
.system-dialog-actions.single{grid-template-columns:1fr}
.system-dialog .danger-confirm{background:#dc2626;color:#fff}

@media(max-width:700px){
  .report-fit{overflow:hidden!important}
  .report-fit #reportDataTable{width:100%!important;min-width:0!important;table-layout:fixed!important}
  .report-fit #reportDataTable th,.report-fit #reportDataTable td{padding:4px 1px!important;height:32px!important;font-size:clamp(7.2px,2.35vw,10px)!important;line-height:1.12!important;white-space:normal!important;overflow-wrap:anywhere!important}
  .report-type-daily #reportDataTable th:nth-child(1),.report-type-daily #reportDataTable td:nth-child(1){font-size:clamp(6.5px,2vw,8.5px)!important}
  .report-type-daily #reportDataTable th:nth-child(2),.report-type-daily #reportDataTable td:nth-child(2),
  .report-type-daily #reportDataTable th:nth-child(3),.report-type-daily #reportDataTable td:nth-child(3){font-size:clamp(6.7px,2.05vw,8.7px)!important}
  .report-type-daily #reportDataTable th:nth-child(4),.report-type-daily #reportDataTable td:nth-child(4),
  .report-type-daily #reportDataTable th:nth-child(5),.report-type-daily #reportDataTable td:nth-child(5),
  .report-type-daily #reportDataTable th:nth-child(6),.report-type-daily #reportDataTable td:nth-child(6),
  .report-type-daily #reportDataTable th:nth-child(7),.report-type-daily #reportDataTable td:nth-child(7){font-size:clamp(7px,2.2vw,9.5px)!important;font-weight:800!important}
  .report-type-daily #reportDataTable th:nth-child(8),.report-type-daily #reportDataTable td:nth-child(8){width:30px!important;min-width:30px!important;padding:1px!important}
  .report-view-icon{width:26px;height:26px;border-radius:7px;font-size:13px}
  .report-type-monthly #reportDataTable th,.report-type-monthly #reportDataTable td,
  .report-type-multi #reportDataTable th,.report-type-multi #reportDataTable td{font-size:clamp(8px,2.55vw,11px)!important}
  .system-dialog[open]{position:fixed!important;inset:auto 0 0 0!important;margin:0!important;width:100%!important;max-width:none!important}
  .system-dialog .dialog-card{border-radius:20px 20px 0 0!important;padding:16px 12px calc(16px + env(safe-area-inset-bottom))!important;width:100%!important}
  .system-dialog-message{font-size:14px;line-height:2}
  .system-dialog-actions button{min-height:48px!important;font-size:14px!important}
}

/* v0.4.15: inline report summary color + single-page print parity */
.report-summary-dialog{width:min(980px,calc(100% - 20px))}.report-summary-card{font-family:var(--font-print,var(--font-global));}.summary-columns{display:grid;grid-template-columns:1fr 1fr;gap:22px;direction:ltr}.summary-panel{direction:rtl;border:1.5px solid #111;border-radius:12px;overflow:hidden}.summary-panel h3{margin:0;padding:10px;text-align:center;font-size:18px;border-bottom:1.5px solid #111}.summary-panel table{width:100%;border-collapse:collapse;table-layout:fixed}.summary-panel th,.summary-panel td{border:1.5px solid #111;padding:7px 5px;text-align:center}.summary-panel th{background:#fff}.summary-pay h3,.summary-pay thead th,.summary-pay tbody td:not(.summary-empty){background:var(--summary-pay,var(--pay,#92cdd9))!important}.summary-recv h3,.summary-recv thead th,.summary-recv tbody td:not(.summary-empty){background:var(--summary-recv,var(--recv,#ff5d60))!important}.summary-name{font-weight:800}.summary-amount{font-weight:900;direction:ltr;font-size:17px}.summary-empty{background:#fff!important;color:var(--muted)}.summary-totals{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:12px}.summary-totals>div{padding:10px;border:1.5px solid #111;border-radius:9px;text-align:center}.summary-totals span,.summary-totals b{display:block}.summary-totals span{font-size:10px}.summary-totals b{font-size:17px;margin-top:3px}.summary-generated-image{display:block;width:100%;height:auto;margin-top:12px;border:1px solid var(--line);border-radius:10px}.report-summary-actions{justify-content:center}
@media(max-width:700px){.report-summary-dialog{width:100%}.summary-columns{gap:6px}.summary-panel h3{font-size:14px;padding:7px 3px}.summary-panel th,.summary-panel td{font-size:10px;padding:5px 2px}.summary-amount{font-size:13px}.summary-totals{gap:4px}.summary-totals>div{padding:7px 3px}.summary-totals b{font-size:13px}.report-summary-actions{display:grid;grid-template-columns:repeat(2,1fr)}.report-summary-actions>*{width:100%}}
@media print{body.summary-print-mode{background:#fff!important;padding:0!important}body.summary-print-mode > *:not(#reportSummaryDialog){display:none!important}body.summary-print-mode #reportSummaryDialog{display:block!important;position:static!important;inset:auto!important;width:100%!important;height:auto!important;max-width:none!important;max-height:none!important;margin:0!important;padding:0!important;background:#fff!important;overflow:visible!important}body.summary-print-mode #reportSummaryDialog .dialog-card{box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;max-height:none!important;overflow:visible!important}body.summary-print-mode #reportSummaryDialog .dialog-head button,body.summary-print-mode #reportSummaryDialog .report-summary-actions,body.summary-print-mode #reportSummaryDialog .customer-share-fallback,body.summary-print-mode #reportSummaryDialog .summary-generated-image,body.summary-print-mode #reportSummaryDialog .tiny{display:none!important}body.summary-print-mode #reportSummaryDialog .dialog-head{justify-content:center!important;text-align:center!important;margin-bottom:12px!important}body.summary-print-mode #reportSummaryDialog .summary-panel h3,body.summary-print-mode #reportSummaryDialog .summary-panel td,body.summary-print-mode #reportSummaryDialog .summary-totals>div{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}}

/* v0.4.16: summary panels use the exact themeFill color used by totals/settings, including opacity. */


/* v0.5.0 Package 5 — mobile-first UX parity + PWA */
:root{--phase8-radius:18px;--nav-h:66px}.content{max-width:1180px}.app-shell{padding-bottom:calc(var(--nav-h) + 18px + env(safe-area-inset-bottom))}.topbar{min-height:58px;padding:7px 12px}.brand-mini{display:flex;align-items:center;gap:8px;color:var(--ink);text-decoration:none;min-width:0}.brand-mini img{width:39px;height:39px;object-fit:contain}.brand-mini span{min-width:0}.brand-mini b{font-size:15px;line-height:1.2}.brand-mini small{font-size:9px}.top-actions{flex-wrap:nowrap}.icon-action{width:38px;height:38px;min-height:38px;border-radius:12px;padding:8px;background:#f3f5fa;color:#4a5568;display:grid;place-items:center;border:1px solid #e4e8f0}.icon-action svg,.bottomnav svg,.quick-icon svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.dashboard-brand{display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(135deg,#fff,#f7f4ff);border:1px solid #e7e1ff;border-radius:22px;padding:14px 16px;margin-bottom:10px}.dashboard-brand>img{width:min(340px,56%);height:72px;object-fit:contain;object-position:right center}.dashboard-brand h1{margin:0;font-size:22px}.dashboard-brand p{margin:3px 0 0;color:var(--muted);font-size:11px}.dashboard-stats{grid-template-columns:repeat(3,1fr);gap:8px}.dashboard-stats .stat{text-align:center;padding:11px 8px}.dashboard-stats .stat b{font-size:22px}.dashboard-quick{grid-template-columns:repeat(4,1fr);gap:8px}.dashboard-quick .quick-card{padding:12px;min-height:112px}.quick-icon{width:38px;height:38px;border-radius:12px;display:grid!important;place-items:center;background:#f2edff;color:#511bd5;margin-bottom:9px!important}.dashboard-note{display:flex;align-items:center;gap:10px;margin-top:10px;border:1px solid #e5e7eb;background:#fff;border-radius:16px;padding:10px 12px}.dashboard-note-mark img{width:38px;height:38px}.dashboard-note b,.dashboard-note span{display:block}.dashboard-note span{color:var(--muted);font-size:10px;margin-top:2px}
.bottomnav{height:calc(var(--nav-h) + env(safe-area-inset-bottom));grid-template-columns:repeat(5,1fr);padding:3px 4px env(safe-area-inset-bottom);box-shadow:0 -10px 26px rgba(25,22,55,.08);border-top:1px solid #e4e6ee}.bottomnav a{min-height:58px;padding:7px 2px 5px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:0;border-radius:12px}.bottomnav a svg{width:21px;height:21px}.bottomnav a span{font-size:9.5px;margin:0;white-space:nowrap}.bottomnav a.active{background:#f0ebff;color:#4b19cf}.bottomnav a.active svg{stroke-width:2.4}
.card,.stat,.quick-card{border-radius:var(--phase8-radius);box-shadow:0 5px 18px rgba(35,37,70,.045)}.section-title{margin-bottom:8px}.section-title h1{font-size:20px}.section-title p{font-size:10.5px;margin-top:3px}.page-actions{margin-bottom:8px}.company-box{padding:10px 11px;margin-top:7px}.company-head h2{font-size:16px;margin-bottom:5px}.company-box details{margin:6px 0}.panel-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin:8px 0}.panel-row{padding:8px 9px;min-height:54px}.panel-row b{font-size:12px}.panel-row small{font-size:8.5px}.panel-metrics{font-size:8.5px;gap:4px}.add-panel-btn{min-height:36px;padding:6px 10px;font-size:11px}.chips{gap:4px}.chip{font-size:8.5px;padding:3px 6px}
.entry-layout{gap:8px}.entry-main{padding:11px}.entry-upload-form{gap:8px}.entry-upload-form>label:first-of-type{background:#fafbff;border:1px dashed #b9b9d7;border-radius:14px;padding:9px}.entry-params{grid-template-columns:1.35fr 1.1fr repeat(3,.8fr);gap:7px}.entry-params label{min-width:0}.entry-params input,.entry-params select{min-height:43px}.recent-reports{padding:10px}.recent-reports h2{font-size:14px;margin:0 0 7px}.recent-report-row{padding:7px 6px}.recent-report-row small{font-size:8.5px}.final-actions{gap:6px}.final-actions .btn,.final-actions button{min-height:40px;padding:7px 10px}
.customer-filter-bar,.report-filter{padding:10px}.customer-filter-bar{display:grid;grid-template-columns:minmax(220px,2fr) repeat(2,minmax(130px,1fr)) auto;gap:7px;align-items:end}.customer-filter-bar>label.wide{grid-column:auto}.customer-filter-bar button{min-height:44px}.customer-list{gap:6px}.customer-row{padding:8px 10px;border-radius:13px}.customer-row-main b{font-size:12.5px}.customer-row-main small{font-size:8.5px}.customer-row-numbers{font-size:9px}.report-filter .form-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.report-filter button.primary{margin-top:8px;min-height:42px}.report-export-actions{margin:7px 0}.account-totals{gap:5px}.account-totals>div{padding:8px 4px}.account-totals span{font-size:9px}.account-totals b{font-size:15px}
.accounting-table{border:1.5px solid #111!important}.accounting-table th,.accounting-table td{border:1px solid #111!important;line-height:1.15!important;padding:4px 2px!important;font-family:var(--font-table,Vazirmatn,Tahoma,Arial,sans-serif)!important}.accounting-table td{font-size:12.5px!important}.accounting-table th{font-size:11.5px!important;font-weight:900!important}.table-wrap{border-radius:8px;overflow:hidden!important}.report-fit{overflow:hidden!important}.report-view-icon{display:grid!important;place-items:center!important;width:28px!important;height:28px!important;margin:auto!important;border-radius:50%!important;background:#f0ebff!important;color:#4b19cf!important;text-decoration:none!important;font-size:13px!important}
.form-grid input,.form-grid select{margin-top:3px}.app-dialog .dialog-card{border-radius:20px}.dialog-head{margin-bottom:9px}.dialog-head b{font-size:15px}.dialog-head small{font-size:9.5px}.icon-btn{border-radius:50%!important;width:38px!important;height:38px!important;padding:0!important}
.golpooch-login{position:fixed;inset:0;width:100vw;height:100dvh;overflow:hidden;background:#17242d;z-index:99999}.golpooch-scene{position:absolute;inset:0;overflow:hidden;background:#17242d}.golpooch-scene:before{content:"";position:absolute;inset:-25px;background:url('brand/login-golpooch.jpg') center/cover no-repeat;filter:blur(24px) brightness(.5);transform:scale(1.08)}.golpooch-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;z-index:1;user-select:none;-webkit-user-drag:none}.golpooch-hand{position:absolute;z-index:4;opacity:.001;background:transparent!important;border:0!important;box-shadow:none!important;cursor:pointer}.golpooch-hand.left{left:46%;top:40.5%;width:8.5%;height:12.5%}.golpooch-hand.right{left:57%;top:40.5%;width:8.5%;height:12.5%}.golpooch-hint{position:absolute;z-index:5;bottom:22px;left:50%;transform:translateX(-50%);background:#10151dcc;color:#fff;padding:8px 14px;border-radius:999px;font-size:12px;backdrop-filter:blur(10px)}.golpooch-panel{position:fixed;z-index:20;left:50%;top:50%;transform:translate(-50%,-50%);width:min(390px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:20px;border:1px solid #ffffff40;border-radius:24px;background:rgba(18,24,32,.9);color:#fff;box-shadow:0 24px 90px #0008;backdrop-filter:blur(18px);text-align:center}.golpooch-panel h1{margin:5px 0;color:#fff}.golpooch-panel p,.golpooch-panel label{color:#fff}.golpooch-panel input{background:#ffffff12;color:#fff;border-color:#ffffff35}.login-brand-mark{width:58px;height:58px;object-fit:contain}.golpooch-close{position:absolute;top:9px;left:9px;width:38px;height:38px;min-height:38px;padding:0;border-radius:50%;background:#ffffff12;color:#fff;border:1px solid #ffffff35;font-size:25px}
@media(max-width:700px){
 .content{padding:7px 7px 12px}.topbar{padding:5px 7px;min-height:52px}.brand-mini img{width:34px;height:34px}.brand-mini b{font-size:13px}.brand-mini small{display:none}.icon-action{width:34px;height:34px;min-height:34px;border-radius:10px;padding:7px}.dev-only{display:none}
 .dashboard-brand{padding:9px 10px;border-radius:16px}.dashboard-brand>img{width:54%;height:48px}.dashboard-brand h1{font-size:16px}.dashboard-brand p{font-size:9px}.dashboard-stats{grid-template-columns:repeat(3,1fr);gap:5px}.dashboard-stats .stat{padding:8px 3px;border-radius:13px}.dashboard-stats .stat span{font-size:9px}.dashboard-stats .stat b{font-size:18px;margin-top:2px}.dashboard-quick{grid-template-columns:repeat(2,1fr)!important;gap:6px!important}.dashboard-quick .quick-card{min-height:82px;padding:9px!important;border-radius:14px!important}.dashboard-quick .quick-card small{font-size:8px}.quick-icon{width:31px;height:31px;border-radius:10px;margin-bottom:5px!important}.quick-icon svg{width:17px;height:17px}.dashboard-note{padding:7px 8px;border-radius:13px}.dashboard-note-mark img{width:31px;height:31px}.dashboard-note b{font-size:11px}.dashboard-note span{font-size:8.5px}
 .section-title{align-items:flex-start}.section-title h1{font-size:17px}.section-title p{font-size:9px;line-height:1.7}.page-actions .primary{width:100%}.company-box{padding:8px;margin-top:6px}.company-head{align-items:flex-start}.company-head h2{font-size:14px}.panel-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}.panel-row{padding:6px;min-height:48px;border-radius:10px;display:block}.panel-row b{font-size:10.5px}.panel-row small{font-size:7.5px;line-height:1.3}.panel-metrics{margin-top:4px;font-size:7.5px;white-space:normal}.add-panel-btn{width:100%;min-height:36px}
 .entry-layout{display:block}.entry-main{padding:8px}.entry-params{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.entry-params label:first-child{grid-column:1/-1}.entry-params label{font-size:9px}.entry-params input,.entry-params select{min-height:42px;padding:7px 8px}.entry-upload-form>label:first-of-type{padding:7px}.entry-upload-form .tiny{font-size:8px;margin:2px 0}.entry-upload-form>button.primary{min-height:48px}.recent-reports{margin-top:7px;padding:8px}.recent-report-row{padding:6px 4px}.recent-report-row .chip{font-size:7px}
 .customer-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;padding:7px}.customer-filter-bar>label.wide{grid-column:1/-1}.customer-filter-bar button{grid-column:1/-1;min-height:42px}.customer-row{padding:7px 8px;gap:5px}.customer-row-main b{font-size:11px}.customer-row-main small{font-size:7.5px}.customer-row-numbers{font-size:7.5px;min-width:82px}
 .report-filter{padding:7px}.report-filter .form-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.report-filter label{font-size:8.5px}.report-filter input,.report-filter select{min-height:41px;padding:6px 7px}.report-export-actions{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:4px!important}.report-export-actions>*{width:100%!important;min-height:38px!important;padding:5px!important;font-size:9px!important}.account-totals{grid-template-columns:repeat(2,1fr)!important;gap:4px}.account-totals>div{padding:6px 2px}.account-totals span{font-size:8px}.account-totals b{font-size:12px}
 .report-fit #reportDataTable,.accounting-table{width:100%!important;min-width:0!important;table-layout:fixed!important}.accounting-table th,.accounting-table td{padding:3px 1px!important;height:29px!important;white-space:normal!important;overflow-wrap:anywhere!important}.accounting-table td{font-size:clamp(7.5px,2.4vw,10.5px)!important}.accounting-table th{font-size:clamp(7px,2.15vw,9.5px)!important}.report-type-daily .accounting-table td,.report-type-daily .accounting-table th{font-size:clamp(6.5px,2vw,9px)!important}.report-actions-cell{width:30px!important}.report-view-icon{width:24px!important;height:24px!important;font-size:11px!important}
 .app-dialog{padding:4px!important}.app-dialog .dialog-card{width:calc(100vw - 8px)!important;max-width:none!important;border-radius:17px!important;padding:10px!important}.dialog-head b{font-size:13px}.dialog-head small{font-size:8px}.bottomnav{--nav-h:62px}.bottomnav a{min-height:54px}.bottomnav a svg{width:20px;height:20px}.bottomnav a span{font-size:8.5px}
 .golpooch-scene:before{display:none}.golpooch-scene{background:radial-gradient(circle at 50% 35%,#405f6f,#17242d 72%)}.golpooch-photo{object-fit:contain}.golpooch-hand.left{left:31.5%;top:55.5%;width:15%;height:11.5%}.golpooch-hand.right{left:52%;top:55.5%;width:15%;height:11.5%}.golpooch-panel{width:calc(100vw - 18px);max-height:calc(100svh - 18px);padding:15px;border-radius:20px}.golpooch-hint{bottom:14px;font-size:10px;padding:6px 11px}
}
@media(max-width:360px){.bottomnav a span{font-size:7.8px}.entry-params{grid-template-columns:1fr 1fr}.accounting-table td{font-size:7.4px!important}.accounting-table th{font-size:6.8px!important}}

/* v0.5.1 Phase 8 mobile-first polish pass */
:root{--ui-gap:8px;--ui-radius:14px}
label{font-size:11.5px;line-height:1.5;font-weight:650}
input,select{min-height:42px;padding:8px 9px;border-radius:9px}
.section-title p{max-width:720px}

/* Dashboard: use the lower space for useful information instead of decorative emptiness. */
.dashboard-chart-card{margin-top:9px;padding:12px 13px;overflow:hidden}
.dashboard-chart-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:3px}
.dashboard-chart-head b,.dashboard-chart-head small{display:block}.dashboard-chart-head b{font-size:13px}.dashboard-chart-head small{font-size:9px;color:var(--muted);margin-top:2px}.dashboard-chart-head a{font-size:10px;text-decoration:none;color:var(--p);font-weight:800}
#dashboardTrendChart{display:block;width:100%;height:190px;overflow:visible}.trend-zero{stroke:#c9ced8;stroke-width:1.5;stroke-dasharray:5 6}.trend-line{fill:none;stroke:var(--p);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}.trend-dot{stroke:#fff;stroke-width:3}.trend-dot.win{fill:var(--site-win,var(--pay,#92cdd9))}.trend-dot.loss{fill:var(--site-loss,var(--recv,#ff5d60))}.trend-label{font:10px var(--font-global,Vazirmatn,Tahoma,sans-serif);fill:#7b8494}

/* Entry: the same information architecture on desktop and phone. */
.entry-params{display:grid!important;grid-template-columns:1.05fr 1.25fr .55fr .95fr;grid-template-areas:"company date date percent" "general general special special";gap:6px!important;align-items:end}
.entry-company{grid-area:company}.entry-date{grid-area:date}.entry-percent{grid-area:percent}.entry-rate-general{grid-area:general}.entry-rate-special{grid-area:special}
.entry-percent input{text-align:center}.entry-date input{font-size:17px;font-weight:800;letter-spacing:.02em}.entry-rate-general input,.entry-rate-special input{direction:ltr;text-align:center;font-variant-numeric:tabular-nums;font-weight:800}
.entry-upload-form>label:first-of-type{margin-bottom:1px}.entry-upload-form .tiny{margin:0 0 3px}

/* Customers: typography is balanced instead of huge controls beside microscopic metadata. */
.customer-filter-bar label{font-size:10.5px}.customer-filter-bar input,.customer-filter-bar select{font-size:16px;min-height:40px;padding-block:6px}
.customer-row-main b{font-size:13px!important;line-height:1.45}.customer-row-main small{font-size:9.5px!important;line-height:1.45}.customer-row-numbers{font-size:9.5px!important}

/* Company directory: denser cards, more companies per viewport. */
.companies-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;align-items:start}
.companies-grid .company-box{margin:0!important;padding:8px 9px!important;min-width:0}
.company-head h2{font-size:14px!important;margin:0 0 4px!important}.company-head .chips{gap:3px}.company-head .chip{padding:2px 5px!important;font-size:7.8px!important}
.company-box>details{margin:4px 0!important}.company-box>details>summary{font-size:9.5px;color:var(--muted)}
.company-box .panel-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px!important;margin:5px 0!important}.company-box .panel-row{padding:6px!important;min-height:43px!important;border-radius:9px!important}.company-box .panel-row b{font-size:10.5px!important}.company-box .panel-row small{font-size:7.5px!important;margin-top:2px!important;line-height:1.25}.company-box .panel-metrics{font-size:7.2px!important;margin-top:2px;gap:3px}.company-box .add-panel-btn{min-height:32px!important;font-size:9.5px!important;padding:4px 8px!important}

/* Settings: cards and controls use compact grids even on phones. */
.settings-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:start}.settings-layout>.settings-card{margin:0;padding:10px 11px}.settings-layout>.settings-card h2{font-size:14px;margin:0 0 8px}.accounting-settings-card{grid-column:1/-1}.settings-number-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:6px!important}.font-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:6px!important}.theme-settings-card .theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}.settings-layout label{font-size:9.5px}.settings-layout input,.settings-layout select{min-height:39px;padding:6px 7px;font-size:15px}.settings-layout input[type=color]{padding:2px;min-height:38px}.settings-layout input[type=range]{min-height:26px}.settings-layout .tiny{font-size:9px;margin-top:7px;line-height:1.55}.settings-layout .notice{font-size:9px;padding:7px;margin:7px 0}.settings-save{grid-column:1/-1;width:min(360px,100%);justify-self:end}
#settingsGeneralRate,#settingsSpecialRate{direction:ltr;text-align:center;font-weight:800;font-variant-numeric:tabular-nums}

/* Reporting data grid: use available pixels for text, not padding. */
.report-fit .accounting-table th,.report-fit .accounting-table td{line-height:1.12!important;padding:3px 2px!important;border-color:#111!important}.report-fit .accounting-table td{font-size:11px!important}.report-fit .accounting-table th{font-size:10px!important}.report-type-daily .accounting-table td,.report-type-daily .accounting-table th{font-size:9.6px!important}.report-view-icon{width:27px!important;height:27px!important}

/* Login parity with the approved V32: full-viewport photograph, no explanatory chip. */
.golpooch-login,.golpooch-scene{width:100vw!important;height:100svh!important;min-height:100svh!important;overflow:hidden!important;background:#17242d!important}
.golpooch-scene:before{content:""!important;position:absolute!important;inset:-26px!important;background:url('brand/login-golpooch.jpg') center/cover no-repeat!important;filter:blur(26px) brightness(.54)!important;transform:scale(1.08)!important;display:block!important}
.golpooch-photo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;z-index:1!important;background:transparent!important}
.golpooch-hint{display:none!important}.golpooch-hand{border-radius:45%!important;transform:none!important}
.golpooch-hand.left{left:46%!important;top:40.5%!important;width:8.5%!important;height:12.5%!important}.golpooch-hand.right{left:57%!important;top:40.5%!important;width:8.5%!important;height:12.5%!important}

@media(max-width:900px){
 .companies-grid{grid-template-columns:1fr}
 .settings-layout{grid-template-columns:1fr}.accounting-settings-card{grid-column:auto}.settings-save{grid-column:auto;width:100%}
}
@media(max-width:700px){
 label{font-size:10.5px}.section-title h1{font-size:17px}.section-title p{font-size:9.5px}
 .dashboard-chart-card{padding:8px;margin-top:6px}.dashboard-chart-head b{font-size:11.5px}#dashboardTrendChart{height:145px}.trend-label{font-size:9px}
 .entry-params{grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-template-areas:"company company company company" "date date date percent" "general general special special"!important;gap:5px!important}.entry-date input{font-size:16px}.entry-percent input{padding-left:3px;padding-right:3px}.entry-params label{font-size:9.5px!important}
 .customer-filter-bar{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:end}.customer-filter-bar>label.wide{grid-column:1/-1}.customer-filter-bar button{grid-column:auto!important}.customer-filter-bar label{font-size:10px}.customer-row-main b{font-size:12.2px!important}.customer-row-main small{font-size:9px!important}.customer-row-numbers{font-size:9px!important}
 .companies-grid{gap:5px}.companies-grid .company-box{padding:7px!important}.company-box .panel-list{grid-template-columns:repeat(2,minmax(0,1fr))!important}.company-box .panel-row{min-height:40px!important}
 .settings-layout{gap:6px}.settings-layout>.settings-card{padding:8px}.settings-number-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.settings-number-grid label:nth-child(3){grid-column:1/2}.settings-number-grid label:nth-child(4){grid-column:2/3}.settings-number-grid label:nth-child(5){grid-column:1/-1}.font-settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.theme-settings-card .theme-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.settings-layout input,.settings-layout select{font-size:16px;min-height:39px}.settings-layout label{font-size:9px}
 .report-fit .accounting-table td{font-size:clamp(8.8px,2.7vw,10.5px)!important}.report-fit .accounting-table th{font-size:clamp(8.2px,2.45vw,9.8px)!important}.report-type-daily .accounting-table td,.report-type-daily .accounting-table th{font-size:clamp(8px,2.35vw,9.3px)!important}.report-fit .accounting-table th,.report-fit .accounting-table td{height:31px!important;padding:2px 1px!important}
 .golpooch-scene:before{display:none!important}.golpooch-photo{object-fit:cover!important;object-position:center center!important;transform:translateY(-8%) scale(1.20)!important;transform-origin:center center!important}.golpooch-hand.left{left:27%!important;top:40.5%!important;width:20%!important;height:15%!important}.golpooch-hand.right{left:53%!important;top:40.5%!important;width:20%!important;height:15%!important}.golpooch-panel{width:calc(100vw - 20px)!important}
}
@media(max-width:390px){
 .theme-settings-card .theme-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.font-settings-grid{grid-template-columns:1fr 1fr!important}
 .report-fit .accounting-table td{font-size:8.7px!important}.report-type-daily .accounting-table td,.report-type-daily .accounting-table th{font-size:7.9px!important}
}
@media(min-width:701px){.customer-filter-bar{grid-template-columns:minmax(240px,2fr) repeat(3,minmax(120px,1fr)) auto!important}}
/* v0.5.2 dashboard analytical trend */
.trend-periods{display:flex;gap:4px;padding:3px;background:#f2f4f8;border-radius:11px}.trend-periods button{border:0;background:transparent;color:var(--muted);padding:6px 10px;min-height:0;border-radius:8px;font:700 11px var(--font-global,Vazirmatn,Tahoma,sans-serif);cursor:pointer}.trend-periods button.active{background:#fff;color:var(--p);box-shadow:0 2px 8px #1111}.trend-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:8px 0}.trend-kpis span{border:1px solid var(--line);border-radius:10px;padding:7px;text-align:center;font-weight:800;font-size:11px}.trend-company-line{fill:none;stroke-width:3.2;stroke-linecap:round;stroke-linejoin:round}.trend-company-dot{stroke:#fff;stroke-width:2}.trend-legend{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:3px;font-size:10px;color:var(--muted)}.trend-legend span{display:inline-flex;align-items:center;gap:4px}.trend-legend i{width:9px;height:9px;border-radius:50%;display:inline-block}.dashboard-chart-head{align-items:center}
@media(max-width:700px){.dashboard-chart-head{align-items:flex-start;gap:7px}.trend-periods{direction:rtl}.trend-periods button{padding:5px 7px;font-size:10px}.trend-kpis span{font-size:10px;padding:6px 3px}#dashboardTrendChart{height:175px}.trend-company-line{stroke-width:3.8}.trend-legend{gap:7px;font-size:9px}}


/* v0.5.3 login parity: exact V28 artwork/crop/hitboxes */
.golpooch-login{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;overflow:hidden!important;background:#0d1720!important;z-index:99999!important}
.golpooch-scene{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;border-radius:0!important;box-shadow:none!important;background:#16232c!important;overflow:hidden!important}
.golpooch-picture{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important;z-index:1!important;background:#dcecf5!important;overflow:hidden!important}
.golpooch-photo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;object-fit:cover!important;object-position:center center!important;display:block!important;user-select:none!important;-webkit-user-drag:none!important;background:#dcecf5!important;transform:none!important}
.golpooch-scene:before{display:none!important}
.golpooch-hand{position:absolute!important;display:block!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;cursor:pointer!important;border-radius:45%!important;z-index:4!important;opacity:.001!important;transform:none!important}
.golpooch-hand.left{left:46%!important;top:40.5%!important;width:8.5%!important;height:12.5%!important}
.golpooch-hand.right{left:57%!important;top:40.5%!important;width:8.5%!important;height:12.5%!important}
.golpooch-hand:hover,.golpooch-hand:focus,.golpooch-hand:active{outline:0!important;background:transparent!important}
@media(max-width:700px){
 .golpooch-login,.golpooch-scene{height:100svh!important;min-height:100svh!important}
 .golpooch-picture{background:#8dcdf4!important}
 .golpooch-photo{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;transform:translateY(-8%) scale(1.20)!important;transform-origin:center center!important}
 .golpooch-hand.left{left:27%!important;top:40.5%!important;width:20%!important;height:15%!important}
 .golpooch-hand.right{left:53%!important;top:40.5%!important;width:20%!important;height:15%!important}
 .golpooch-panel{width:calc(100vw - 20px)!important;max-height:calc(100svh - 18px)!important}
}


/* v0.5.5 dashboard analytics + reporting/customer polish */
.trend-chart-wrap{position:relative;width:100%;min-height:230px;border:1px solid var(--line);border-radius:14px;background:linear-gradient(180deg,#fbfcff,#fff);overflow:hidden}
#dashboardTrendChart{height:230px!important}.trend-grid{stroke:#e7eaf0;stroke-width:1}.trend-axis{stroke:#aeb6c3;stroke-width:1.25}.trend-axis-label{font:9px var(--font-global,Vazirmatn,Tahoma,sans-serif);fill:#7a8494}.trend-overall-area{fill:url(#overallArea);opacity:.72}.trend-overall-line{fill:none;stroke:var(--p);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}.trend-company-line{opacity:.76}.trend-company-dot{cursor:pointer}.trend-overall-dot{fill:var(--p);stroke:#fff;stroke-width:2.4;cursor:pointer}.trend-tooltip{position:absolute;z-index:5;pointer-events:none;min-width:150px;max-width:220px;padding:9px 10px;border-radius:11px;background:#172033;color:#fff;box-shadow:0 9px 30px #17203344;font-size:10px;line-height:1.75;transform:translate(-50%,-115%)}.trend-tooltip b{display:block;font-size:11px}.trend-tooltip.win strong{color:#92cdd9}.trend-tooltip.loss strong{color:#ff8b8f}.trend-axis-note{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:7px;color:var(--muted);font-size:9px}.trend-legend .overall{font-weight:900;color:var(--p)}.trend-legend .overall i{width:18px;border-radius:4px;background:var(--p)!important}.filter-customer-combo small{display:block;color:var(--muted);font-size:9px;line-height:1.6;margin-top:4px}
@media(max-width:700px){.trend-chart-wrap{min-height:210px}#dashboardTrendChart{height:210px!important}.trend-tooltip{font-size:9px;min-width:135px}.trend-axis-note{font-size:8px}.report-filter .filter-customer-combo{grid-column:1/-1}}

/* v0.5.6 dashboard clarity + report semantics */
.trend-chart-wrap{overflow:visible}
.trend-tooltip{transform:none;left:8px;top:8px;max-width:min(220px,calc(100% - 16px));}
.trend-kpis .trend-direction{font-weight:900;border-color:var(--p);}
.trend-kpis .trend-direction.win{background:var(--site-win-fill,#eaf8f1);color:#146c38}.trend-kpis .trend-direction.loss{background:var(--site-loss-fill,#fff0f1);color:#b42318}
.trend-company-end-label{font:700 9px var(--font-global,Vazirmatn,Tahoma,sans-serif);paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
@media(max-width:700px){.trend-tooltip{position:absolute!important;right:8px!important;left:8px!important;top:8px!important;max-width:none!important;transform:none!important}.trend-chart-wrap{padding-top:2px}.trend-kpis{grid-template-columns:repeat(2,1fr)}}

/* v0.6.23: keep customer filter exactly aligned with the other selectors. */
.report-filter .form-grid>.filter-customer-combo{align-self:start;min-width:0}
.report-filter .form-grid>.filter-customer-combo>input[type=search]{min-height:42px;width:100%;box-sizing:border-box}
.report-filter .report-customer-hint{grid-column:1/-1;margin:-3px 0 6px;padding:7px 10px;background:#f4f7fe;color:#586781;border-radius:8px;font-size:10px;line-height:1.6}
.report-filter .report-customer-hint.hidden{display:none!important}

/* v0.6.25: accessible full-width exception reason editor; isolated from global label rules. */
#usdExceptionDialog .usd-exception-card{padding:20px!important;border-radius:19px;background:#fff;max-width:100%;overflow-x:hidden}
#usdExceptionDialog .dialog-head{align-items:center;margin-bottom:16px}
#usdExceptionDialog .dialog-head b{font-size:16px;font-weight:900;color:#182b47;line-height:1.6}
#usdExceptionDialog .usd-exception-alert{margin:0 0 15px!important;padding:12px 14px!important;text-align:right;font-size:13px;line-height:1.9;border:1px solid #f2cecf;border-radius:12px}
#usdExceptionDialog .usd-exception-field{display:grid;grid-template-columns:minmax(0,1fr);gap:7px;width:100%;min-width:0;text-align:right}
#usdExceptionDialog .usd-exception-field>label{display:block!important;width:100%!important;margin:0!important;font-size:13px;font-weight:900;color:#24364d;text-align:right;line-height:1.7}
#usdExceptionDialog .usd-exception-required{font-size:11px;font-weight:600;color:#708096}
#usdExceptionDialog #usdExceptionReason{display:block!important;box-sizing:border-box!important;width:100%!important;max-width:100%!important;min-width:0!important;min-height:124px!important;padding:14px 15px!important;margin:0!important;border:1px solid #cbd5e3!important;border-radius:12px!important;background:#fbfcff!important;color:#24364b!important;font:400 14px/1.9 Tahoma,Arial,sans-serif!important;resize:vertical!important;text-align:right!important;direction:rtl!important;outline:none!important;box-shadow:none!important}
#usdExceptionDialog #usdExceptionReason::placeholder{color:#96a0ae;opacity:1}
#usdExceptionDialog #usdExceptionReason:focus{border-color:#3559e0!important;box-shadow:0 0 0 3px rgba(53,89,224,.10)!important;background:#fff!important}
#usdExceptionDialog .usd-exception-hint{font-size:11px;color:#62758b;margin:0;line-height:1.85}
#usdExceptionDialog .usd-exception-actions{display:flex;gap:9px;align-items:stretch;justify-content:flex-start;flex-wrap:wrap;margin-top:18px}
#usdExceptionDialog .usd-exception-actions button{min-height:44px;border-radius:11px;padding:10px 16px;font-size:12px;line-height:1.5}
@media(max-width:600px){#usdExceptionDialog .usd-exception-card{padding:17px 14px calc(15px + env(safe-area-inset-bottom))!important;border-radius:20px 20px 0 0}#usdExceptionDialog .usd-exception-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr)}#usdExceptionDialog .usd-exception-actions button{min-width:0;width:100%;padding:9px 5px}#usdExceptionDialog #usdExceptionReason{min-height:138px!important;font-size:16px!important}}

/* v0.6.26: report title and dates shown consistently across outputs */
.svo-report-context626{display:flex;align-items:baseline;justify-content:center;flex-wrap:wrap;gap:5px 13px;text-align:center;direction:rtl;padding:10px 12px 8px;color:#213752}
.svo-report-context626 strong{font-size:clamp(15px,2.5vw,20px);font-weight:900}
.svo-report-context626 span{font-size:clamp(12px,2vw,14px);color:#53677f;font-weight:650}

/* v0.6.27: Date captions carry nearly the same visual weight as report titles. */
.svo-report-context626{display:flex;flex-direction:column;align-items:center;gap:5px;padding:10px 12px 12px;text-align:center}
.svo-report-context626 strong{display:block;font-size:clamp(18px,2.6vw,24px);font-weight:900;line-height:1.5}
.svo-report-context626 span{display:block;font-size:clamp(16px,2.25vw,19px);font-weight:900;color:#1e4268;line-height:1.55;font-variant-numeric:tabular-nums}
.company-remove-button{font-weight:800;padding:8px 12px;min-height:38px}
.svo-company-remove-dialog .dialog-card{max-width:520px}
.company-remove-warning{padding:12px 14px;border:1px solid #f5b2a8;background:#fff5f2;border-radius:12px;color:#78302a;font-size:14px;line-height:1.95}
.company-remove-form{margin-top:12px}.company-remove-form label{font-weight:700}.company-remove-form input{width:100%;min-width:0;font-size:16px;padding:12px}
.company-remove-actions{display:flex;flex-wrap:wrap;gap:10px}.company-remove-actions button{flex:1;min-width:130px}
.archived-companies{margin-top:14px}.archived-companies summary{cursor:pointer;font-weight:900;padding:8px 0}
.archived-company-row{display:flex;gap:12px;justify-content:space-between;align-items:center;border-top:1px solid #e3e9f2;padding:12px 0}
.archived-company-row small{display:block;color:#64748b;margin-top:4px}
@media(max-width:600px){.svo-report-context626 strong{font-size:19px}.svo-report-context626 span{font-size:16px}.company-remove-button{width:auto}.company-remove-actions{flex-direction:column}.archived-company-row{flex-wrap:wrap}}

/* v0.6.28: archived company restore/purge actions on narrow screens */
.archived-company-info{min-width:0;flex:1}.archive-stats{line-height:1.75}.archived-company-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.archived-company-actions form{margin:0}.archived-company-actions button{font-weight:800;min-height:38px}.archive-blocked{font-size:12px;color:#9a3412;max-width:230px;line-height:1.75}.svo-company-remove-dialog .company-remove-warning b{font-weight:900}
@media(max-width:600px){.archived-company-actions{width:100%;justify-content:stretch}.archived-company-actions form,.archived-company-actions>button{flex:1}.archived-company-actions form button{width:100%}}

.company-activate-form{display:inline-flex;margin:0}.company-activate-form button{font-weight:800;min-height:38px}
