/* PishkhanPlus 2.35.2 — compact dashboard, polished navigation and report dialogs */
:root{--pp-r:16px;--pp-shadow:0 8px 26px rgba(20,40,75,.055);--pp-line:color-mix(in srgb,var(--line,#dbe4ef) 88%,#94a3b8)}
html body #page .box,html body #page .ins,html body #page .kpi,html body #page .tile2{border-radius:var(--pp-r);box-shadow:var(--pp-shadow);min-width:0}
html body #page .box-h,html body #page .ins-h{gap:10px;flex-wrap:wrap}
html body #page .box-b{min-width:0}
/* Use available width instead of leaving large unused columns in statistics reports. */
html body .ix-dlg.ix2{width:min(1120px,calc(100vw - 28px));height:min(88vh,900px);max-height:calc(100dvh - 28px);border-radius:20px;overflow:hidden;box-shadow:0 24px 80px rgba(15,23,42,.24)}
html body .ix2 .ix-body{overflow:auto;overscroll-behavior:contain;padding:16px;gap:12px}
html body .ix2-groups{display:block;column-count:2;column-gap:12px;column-fill:balance}
html body .ix2-groups>.ix2-card{display:inline-block;width:100%;margin:0 0 12px;break-inside:avoid;vertical-align:top}
html body .ix2-card>header{padding:11px 14px}
html body .ix2-row{padding:9px 12px;gap:8px}
html body .ix2-kpis{grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:10px}
html body .ix2-kpi{min-height:94px;justify-content:center}
html body .ix2-panel{padding:14px;box-shadow:0 3px 14px rgba(20,40,75,.035)}
html body .ix2-foot{padding:10px 14px;flex:0 0 auto}
html body .ix2-foot .ix-send{display:flex;flex-wrap:wrap;gap:8px}
/* Keep cards and chart panels dense and responsive, but never clip important values. */
html body #page .tiles,html body #page .kpis,html body #page .ac-kpi,html body #page .iv-ch,html body #page .iv-ops{align-content:start;grid-auto-rows:minmax(min-content,auto)}
html body #page .kpi,html body #page .ac-kpi>div,html body #page .iv-ch>div{min-height:0}
html body #page .chart,html body #page .viz,html body #page svg{max-width:100%}
html body #page .box + .box,html body #page .ins + .ins{margin-top:12px}
/* Sidebar: clearer group hierarchy and compact spacing. */
html body .side{border-inline-start:1px solid var(--line,#dbe4ef);background:linear-gradient(180deg,var(--panel,#fff),var(--panel-2,#f5f8fc))}
html body .side .brand{border-radius:16px;margin:8px 8px 12px;padding:12px}
html body .modules{gap:4px}
html body .modules .mod,html body .modules button{transition:background .16s ease,border-color .16s ease,transform .16s ease}
html body .modules .mod[aria-current="page"],html body .modules button[aria-current="page"],html body .modules .active{border-radius:12px}
html body .modules .grp,html body .modules .group,html body .modules .nav-group-title{letter-spacing:.02em;font-size:10.5px;font-weight:800;color:var(--muted,#64748b);padding:10px 12px 4px}
html body .modules a,html body .modules button{min-height:39px}
html body .side .app-credit{border-radius:14px;margin:8px;padding:9px 10px}
/* Dialogs/forms: consistent hierarchy and controls. */
html body .dlg{border-radius:18px;box-shadow:0 24px 80px rgba(15,23,42,.24);max-width:calc(100vw - 20px)}
html body .dlg-h{position:sticky;top:0;z-index:3;background:var(--panel,#fff);border-bottom:1px solid var(--line,#dbe4ef)}
html body .field,html body input.field,html body select.field,html body textarea.field{min-height:40px;border-radius:11px}
html body .btn{border-radius:10px}
html body button:focus-visible,html body a:focus-visible,html body input:focus-visible,html body select:focus-visible{outline:3px solid color-mix(in srgb,var(--acc,#0f7f8a) 32%,transparent);outline-offset:2px}
/* Investors: faster scanning of balances and payment actions. */
html body #page .iv-2{align-items:stretch;gap:12px}
html body #page .iv-pc,html body #page .iv-albox,html body #page .iv-hero{border-radius:16px;box-shadow:var(--pp-shadow)}
html body #page .iv-pc-n{gap:8px}
html body #page .iv-pc-n>div{min-width:0;padding:9px;border-radius:11px;background:var(--panel-2,#f6f8fb)}
html body #page .iv-ops button{min-height:60px}
/* Avoid accidental horizontal overflow in narrow screens. */
@media(max-width:760px){
 html body .ix-dlg.ix2{width:calc(100vw - 12px);height:calc(100dvh - 12px);max-height:calc(100dvh - 12px);border-radius:14px}
 html body .ix2 .ix-body{padding:10px;gap:10px}
 html body .ix2-groups{column-count:1}
 html body .ix2-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
 html body .ix2-kpi{padding:10px;min-height:82px}
 html body .ix2-kpi b{font-size:17px}
 html body .ix2-foot .ix-send{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:thin}
 html body .ix2-foot .ix-send .btn{flex:0 0 auto}
 html body #page .iv-2{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){html body *,html body *::before,html body *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important;transition-duration:.01ms!important}}


/* PishkhanPlus 2.36.4 — compact monthly goals, searchable archive, responsive grouped navigation */
.mod-ai-entry{background:linear-gradient(135deg,rgba(15,127,138,.16),rgba(90,111,224,.16));margin-bottom:4px}
.goal-actual-primary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;align-items:stretch}
.goal-actual-panel .sp-kpi{padding:9px 11px;min-width:0}
.goal-actual-panel .sp-kpi input{box-sizing:border-box;width:100%;min-width:0;margin-top:6px;padding:8px 9px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:var(--ink);font:inherit}
.goal-auto-kpi{display:flex;flex-direction:column;justify-content:center}
.goal-actual-details{margin-top:9px;border:1px solid var(--line);border-radius:11px;background:var(--panel-2);overflow:hidden}
.goal-actual-details summary{cursor:pointer;list-style:none;padding:10px 12px;font-size:12px;font-weight:750;display:flex;align-items:center;justify-content:space-between;gap:10px}
.goal-actual-details summary::-webkit-details-marker{display:none}
.goal-actual-details summary:after{content:'＋';font-size:15px;color:var(--acc)}
.goal-actual-details[open] summary:after{content:'−'}
.goal-actual-details summary span{font-weight:500;color:var(--muted);margin-inline-start:auto}
.goal-actual-grid{padding:0 9px 9px;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important}
.goal-actual-actions{justify-content:flex-start;margin-top:10px}
.fixmod-docs .fixmod-card{min-width:0}
.doc-archive-sub{display:block;color:var(--muted);font-size:10.5px;line-height:1.65;margin-top:3px;max-width:260px;overflow-wrap:anywhere}
.doc-archive-total{display:block;margin-top:4px;font-variant-numeric:tabular-nums}
.doc-archive-filters{display:grid;grid-template-columns:minmax(180px,2fr) repeat(2,minmax(120px,1fr)) minmax(120px,1fr) auto;gap:8px;align-items:end;margin-bottom:10px}
.doc-archive-filters label{display:grid;gap:5px;font-size:11px;color:var(--muted);min-width:0}
.doc-archive-filters input,.doc-archive-filters select{width:100%;min-width:0;box-sizing:border-box;border:1px solid var(--line);border-radius:9px;padding:8px 9px;background:var(--paper);color:var(--ink);font:inherit;font-size:12px}
.doc-filter-count{font-size:11px;white-space:nowrap;color:var(--muted);padding:9px 0}
.doc-archive-table .fixmod-table{min-width:680px}
.doc-archive-table tr[hidden]{display:none!important}
.doc-archive-empty{padding:14px;border:1px dashed var(--line);border-radius:10px;color:var(--muted);text-align:center;font-size:12px}
.doc-archive-note{font-size:11px;line-height:1.8;color:var(--muted);margin:9px 0 0}
.doc-preview-dialog{width:min(850px,calc(100% - 24px));max-height:90dvh;overflow:auto}
.doc-preview-content{padding:14px 18px 18px}
.doc-preview-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:12px}
.doc-preview-meta>div{border:1px solid var(--line);border-radius:9px;padding:9px;min-width:0}
.doc-preview-meta small{display:block;color:var(--muted);font-size:10px;margin-bottom:4px}
.doc-preview-meta b{font-size:12px;overflow-wrap:anywhere}
.doc-preview-total{padding:10px 12px;background:var(--panel-2);border-radius:9px;margin-top:10px;font-size:12px}
.doc-daily-table .fixmod-table{min-width:540px}
.fixmod-docs .fixmod-card-b{padding:12px}
#mods .grp{font-size:10.5px;letter-spacing:0;margin-top:12px}
#mods .mod{min-height:39px}
#mods .mod:focus-visible,.doc-archive-filters input:focus-visible,.doc-archive-filters select:focus-visible,.goal-actual-panel input:focus-visible{outline:3px solid color-mix(in srgb,var(--acc) 55%,transparent);outline-offset:2px}
@media(max-width:900px){.doc-archive-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.doc-search-label{grid-column:1/-1}.goal-actual-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:560px){.goal-actual-primary{grid-template-columns:1fr}.goal-actual-grid{grid-template-columns:1fr 1fr!important}.doc-archive-filters{grid-template-columns:1fr 1fr}.doc-filter-count{padding:4px 0}.doc-preview-content{padding:10px}.doc-preview-meta{grid-template-columns:1fr 1fr}.fixmod-docs .fixmod-hero{align-items:flex-start}.fixmod-docs .fixmod-hero p{font-size:11.5px}.fixmod-docs .fixmod-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:360px){.goal-actual-grid{grid-template-columns:1fr!important}.doc-preview-meta{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.fixmod-docs *,.goal-actual-panel *{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
