*{box-sizing:border-box}body{margin:0;font:16px system-ui,sans-serif;color:#252830;background:#f5f6f8} [hidden]{display:none!important}.login{min-height:100vh;display:grid;grid-template-columns:46% 54%}.intro{background:#252830;color:white;padding:12%;display:flex;flex-direction:column;justify-content:center}.eyebrow{font-size:12px;letter-spacing:2px;color:#ffc107;font-weight:700}.intro h1{font-size:clamp(34px,5vw,70px);line-height:1.06;margin:28px 0 12px}.intro p{color:#c8cbd1;line-height:1.6}.line{width:70px;height:5px;background:#ffc107;margin-top:30px}.panel{display:grid;place-items:center;background:white;padding:36px}.formwrap{width:min(100%,390px)}.logo{width:220px;max-width:100%;height:auto;margin-bottom:24px}h2{margin:0 0 8px}p{line-height:1.5;color:#666b75}label{display:block;font-weight:600;font-size:14px;margin:22px 0 8px}input{width:100%;padding:14px;border:1px solid #c9cdd4;border-radius:7px;font:inherit}input:focus{outline:2px solid #ffc107;outline-offset:1px}button{border:0;border-radius:7px;padding:14px 20px;font:inherit;font-weight:700;cursor:pointer;background:#ffc107;color:#252830}form button{width:100%;margin-top:24px}button:disabled{opacity:.55;cursor:wait}#message{min-height:24px;font-size:14px;color:#9b2727}small{color:#777}#dashboard{min-height:100vh;display:grid;grid-template-columns:240px 1fr}aside{background:#252830;color:white;padding:24px;display:flex;flex-direction:column;gap:28px}aside img{width:100%;background:white;border-radius:6px;padding:8px}.nav{border-left:4px solid #ffc107;padding:12px;background:#383b43}aside button{margin-top:auto}.content{padding:36px;min-width:0}header{font-size:12px;letter-spacing:1px;display:flex;justify-content:space-between;border-bottom:1px solid #ddd;padding-bottom:20px}header span{background:#fff0b6;padding:6px 10px;border-radius:5px}.tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:30px 0}article{background:white;border:1px solid #e0e2e6;border-radius:10px;padding:24px}article strong{display:block;margin-top:12px;font-size:20px;color:#23734b}.notice{overflow-wrap:anywhere}@media(max-width:720px){.login,#dashboard{grid-template-columns:1fr}.intro{padding:30px}.intro h1{font-size:34px}.panel{padding:28px}.tiles{grid-template-columns:1fr}.content{padding:22px}aside{gap:12px}aside img{width:150px}aside button{align-self:flex-start}}
#navigation{display:grid;gap:6px}#navigation button{background:transparent;color:#e3e5e9;text-align:left;font-size:14px;padding:12px 14px}#navigation button:hover{background:#383b43}#navigation button.selected{background:#ffc107;color:#252830}.identity{display:grid;gap:6px;overflow-wrap:anywhere}.identity small{color:#c8cbd1}.pagehead,.tablehead{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.pagehead h1{margin-bottom:4px}.pagehead p{margin-top:0}.tablehead input{max-width:280px}.tablewrap{overflow:auto;margin-top:18px}table{border-collapse:collapse;width:100%;font-size:14px;text-align:left}th,td{padding:13px 12px;border-bottom:1px solid #e0e2e6;white-space:nowrap}th{background:#f5f6f8;color:#555b65}#count,#status{font-size:13px}.tiles{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.tiles article strong{font-size:28px;color:#252830}.tiles article{border-top:3px solid #ffc107}#records{padding:20px}.content{overflow:hidden}@media(max-width:720px){#navigation{grid-template-columns:repeat(2,1fr)}.tiles{grid-template-columns:repeat(2,minmax(0,1fr))}.tiles article{padding:14px}.tiles article strong{font-size:20px}.tablehead input{max-width:100%}}
@media(min-width:721px){aside{position:sticky;top:0;height:100dvh;overflow:auto;gap:16px}aside img{max-height:95px;object-fit:contain}aside #logout{flex-shrink:0}}.tiles:empty{display:none}.secondary,#closeEditor{background:#e9ebef;padding:8px 12px;font-size:13px}dialog{border:1px solid #d9dce1;border-radius:12px;width:min(760px,95vw);max-height:90dvh;padding:24px;color:#252830}dialog::backdrop{background:#25283099}.dialoghead{display:flex;justify-content:space-between;align-items:center;gap:12px}.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.fields label{margin:12px 0 5px}.fields input,.fields select{width:100%;padding:10px;border:1px solid #c9cdd4;border-radius:6px;font:inherit;background:white}.fields input[type=search]{margin-bottom:5px}.fields [name=estimated_cost_usd],.fields [name=estimated_ptax]{background:#fff4cc}#editError,#historyError{color:#9b2727}#historyPanel{border-top:1px solid #ddd;margin-top:24px}#historyList{max-height:180px;overflow:auto;font-size:14px}@media(max-width:550px){.fields{grid-template-columns:1fr}}
#editor{width:min(900px,95vw)}.formsection{grid-column:1/-1;margin:18px 0 4px;padding:10px 0;border-bottom:1px solid #d9dce1;font-size:15px}.autocomplete{position:relative}.suggestions{position:absolute;top:100%;left:0;right:0;z-index:5;background:white;border:1px solid #c9cdd4;border-radius:6px;box-shadow:0 6px 18px #25283022;max-height:190px;overflow:auto}.suggestions button{display:block;width:100%;margin:0;text-align:left;background:white;padding:10px;font-weight:500;border-radius:0}.suggestions button:hover,.suggestions button:focus{background:#fff4cc}.suggestions p{padding:8px;margin:0}.fields output{display:block;padding:10px;border:1px solid #d9dce1;border-radius:6px;background:#f5f6f8;min-height:42px}.fields output.estimated{background:#fff4cc}.fields input.final{background:#f5f6f8}.fields input[readonly]{background:#f5f6f8}.pagehead>div{margin-right:auto}

#payStatus{width:100%;padding:12px;border:1px solid #c9cdd4;border-radius:7px;font:inherit;background:white} .tiles article:last-child:nth-child(9){border-top-color:#23734b}

#monthFilter{width:240px;max-width:100%;padding:10px;border:1px solid #c9cdd4;border-radius:6px;background:white;font:inherit;color:#252830}#monthFilter[hidden]{display:none}

.month-value{display:none!important}.month-picker{position:relative;min-width:160px}.month-picker[hidden],.month-panel[hidden]{display:none!important}.month-trigger{width:100%;text-align:left;background:white;border:1px solid #c9cdd4;color:#252830;font:inherit;padding:10px;border-radius:6px}.month-panel{position:absolute;top:calc(100% + 4px);left:0;z-index:20;width:240px;max-width:80vw;padding:8px;background:white;border:1px solid #c9cdd4;border-radius:6px;box-shadow:0 5px 16px #25283033}.month-nav{display:flex;align-items:center;justify-content:space-between;gap:4px}.month-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:3px;margin:8px 0}.month-panel button{background:white;color:#252830;padding:7px 5px;font-size:12px;margin:0;border-radius:4px}.month-panel button:hover,.month-panel button:focus-visible{background:#fff4cc}.month-panel button.chosen{background:#ffc107}.month-nav strong{font-size:14px}.month-trigger:disabled{opacity:.6;cursor:not-allowed}

#fields input:disabled,#fields select:disabled{background:#f1f3f5;color:#555;cursor:not-allowed;opacity:1}
.report-heading{display:flex;align-items:center;gap:16px}.report-heading img{width:110px}.report-controls{margin:16px 0}.report-controls select,.report-controls input{display:block;width:100%;padding:10px;border:1px solid #c9cdd4;border-radius:6px;background:white;font:inherit}.report-actions{display:flex;flex-wrap:wrap;gap:8px}.report-chart{margin-top:24px;max-width:850px}.report-chart>div{margin:12px 0;break-inside:avoid}.report-chart small{display:block}.report-track{height:9px;background:#eee;margin:3px 0 6px}.report-bar{height:100%;background:#ffc107}.report-bar.cost{background:#929292}.report-bar.margin{background:#23734b}#reportPanel[hidden],#reportNav[hidden]{display:none!important}@media print{body:has(#reportPanel:not([hidden])) aside,body:has(#reportPanel:not([hidden])) .pagehead,body:has(#reportPanel:not([hidden])) header,body:has(#reportPanel:not([hidden])) #status,.report-controls{display:none!important}body:has(#reportPanel:not([hidden])) .content{margin:0!important;padding:0!important;width:100%!important}body:has(#reportPanel:not([hidden])) #dashboard{display:block!important}#reportPanel{border:0!important;box-shadow:none!important;padding:0!important}#reportPanel .tablewrap{overflow:visible}#reportPanel table{font-size:8pt;min-width:0}#reportPanel td,#reportPanel th{padding:4px;white-space:normal}#reportPanel .tiles article{break-inside:avoid}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}@page{size:A4 landscape;margin:12mm}}
/* Report layout: fixed label area and consistent value baseline, independent of zoom. */
#reportPanel .report-tiles{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:14px;align-items:stretch;margin:22px 0}
#reportPanel .report-tiles article{min-width:0;padding:18px;display:grid;grid-template-rows:minmax(2.8em,auto) 1fr;align-items:start;border-top-color:#ffc107}
#reportPanel .report-tiles small{font-size:13px;line-height:1.4;color:#555b65;display:block}
#reportPanel .report-tiles strong{font-size:clamp(18px,1.65vw,25px);line-height:1.25;margin:0;align-self:end;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#reportPanel .report-controls label{min-width:0}#reportPanel .report-controls input,#reportPanel .report-controls select{min-width:0}
.report-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:20px;margin-top:24px;align-items:start}
#reportPanel .report-chart{max-width:none;margin:0;border:1px solid #e0e2e6;border-radius:10px;padding:20px;min-width:0}
#reportPanel .report-chart h3{margin:0 0 18px}#reportPanel .report-chart>div{padding:12px 0;border-bottom:1px solid #e0e2e6}#reportPanel .report-chart strong{font-size:15px;color:#252830;margin:0 0 10px;overflow-wrap:anywhere}#reportPanel .report-track{height:12px;border-radius:4px;overflow:hidden;margin:5px 0 12px}#reportPanel .report-bar.negative{background:#b42318}
@media print{#reportPanel .report-tiles{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}#reportPanel .report-tiles article{padding:8px}#reportPanel .report-tiles strong{font-size:14pt}#reportPanel .report-charts{display:block}#reportPanel .report-chart{margin:12px 0}#reportPanel .report-chart>div{break-inside:avoid}}

#reportPanel .report-date-wrap{position:relative;display:flex;align-items:center}#reportPanel .report-date-wrap>input:first-child{padding-right:46px}#reportPanel .report-calendar-icon{position:absolute;right:12px;pointer-events:none;font-size:22px;color:#252830}#reportPanel input.report-native-date{position:absolute;right:0;top:0;width:42px;height:100%;opacity:0;cursor:pointer;padding:0}#reportPanel input.report-native-date::-webkit-calendar-picker-indicator{position:absolute;inset:0;width:100%;height:100%;cursor:pointer;margin:0;padding:0}#reportPanel .report-date-wrap:focus-within{outline:2px solid #ffc107;outline-offset:2px;border-radius:6px}#reportPanel .report-actions button:disabled{opacity:.5;cursor:not-allowed}

/* 2.0.24: compact report print layout, independent of screen zoom. */
.report-print-note{font-size:12px;margin:6px 0;color:#666b75}
@media print {
 @page {size:A4 landscape;margin:8mm}
 html,body{background:#fff!important;margin:0!important;padding:0!important}
 body:has(#reportPanel:not([hidden])) #dashboard{display:block!important;min-height:0!important;background:#fff!important}
 body:has(#reportPanel:not([hidden])) .content{display:block!important;overflow:visible!important;min-height:0!important;background:#fff!important}
 #reportPanel{font-size:9pt;background:#fff!important;min-height:0!important;margin:0!important}
 #reportPanel .report-heading{gap:10px;margin:0 0 5px;break-after:avoid}
 #reportPanel .report-heading img{width:75px;height:auto}
 #reportPanel h2{font-size:15pt;margin:0}
 #reportPanel h3{font-size:10pt;margin:7px 0 4px;break-after:avoid;page-break-after:avoid}
 #reportPanel p{font-size:8pt;line-height:1.25;margin:4px 0}
 #reportPanel .report-print-note{display:none!important}
 #reportPanel .report-tiles{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin:7px 0;break-inside:avoid}
 #reportPanel .report-tiles article{padding:5px 7px;border-radius:4px;border-top-width:2px;grid-template-rows:minmax(1.3em,auto) 1fr;min-height:34px}
 #reportPanel .report-tiles small{font-size:7pt;line-height:1.15}
 #reportPanel .report-tiles strong{font-size:11pt;line-height:1.15;margin-top:3px}
 #reportPanel .tablewrap{margin:4px 0 0;overflow:visible!important}
 #reportPanel table{width:100%;table-layout:auto;font-size:7pt;line-height:1.15}
 #reportPanel td,#reportPanel th{padding:3px 2px;white-space:normal;overflow-wrap:anywhere}
 #reportPanel tr{break-inside:avoid;page-break-inside:avoid}
 #reportPanel thead{display:table-header-group}
 #reportPanel .report-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:8px 0 0;align-items:start}
 #reportPanel .report-chart{padding:7px 9px;margin:0;border-radius:4px;min-width:0}
 #reportPanel .report-chart h3{margin:0 0 4px}
 #reportPanel .report-chart>div{padding:4px 0;margin:0;break-inside:avoid;page-break-inside:avoid}
 #reportPanel .report-chart strong{display:block;font-size:8pt;margin:0 0 3px}
 #reportPanel .report-chart small{font-size:7pt;line-height:1.1}
 #reportPanel .report-track{height:5px;margin:2px 0 3px;border-radius:2px}
}
