:root{--ink:#173b3d;--dark:#0f3436;--green:#087768;--line:#dbe6e2;--bg:#edf3f0;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink)}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-size:14px}h1,h2,h3,p{margin:0}button,input,select{font:inherit}button{cursor:pointer}button:hover{filter:brightness(.95)}.toolbar{background:var(--dark);height:70px;display:flex;align-items:center;justify-content:space-between;padding:12px 27px;color:white}.top-brand{display:flex;align-items:center;gap:11px}.top-brand img{width:43px;height:43px}.top-brand strong{display:block;font-size:19px;letter-spacing:-.03em}.top-brand small{font-size:11px;color:#b9d5ce}.back{color:white;text-decoration:none;border:1px solid #568380;border-radius:9px;padding:10px 12px}.workarea{display:grid;grid-template-columns:370px minmax(0,1fr);gap:20px;max-width:1700px;margin:auto;padding:20px}.builder{align-self:start;background:white;padding:24px;border:1px solid var(--line);border-radius:15px;position:sticky;top:16px;box-shadow:0 1px 10px #143d3912}.eyebrow{font-weight:800;letter-spacing:.13em;color:#388b7a;font-size:10px}.builder h1{margin:10px 0;font-size:24px}.help,.hint{font-size:12px;line-height:1.5;color:#67827d}.filters{margin-top:18px;display:flex;flex-direction:column;gap:12px}.filters label{font-size:12px;font-weight:750;display:block}.filters input:not([type=checkbox]),.filters select{display:block;width:100%;border:1px solid #cbdad5;border-radius:8px;min-height:40px;margin-top:5px;padding:8px;background:#fff;color:var(--ink)}.two{display:grid;grid-template-columns:1fr 1fr;gap:9px}.check{display:flex!important;align-items:start;gap:8px;line-height:1.45;font-weight:600!important}.check input{margin:2px 0 0}.actions{display:flex;flex-direction:column;gap:8px;margin:18px 0 10px}.actions button{border:1px solid #b9d1c8;border-radius:9px;padding:11px;font-weight:750;color:#095f54;background:white}.actions button.primary{background:var(--green);border-color:var(--green);color:white}.error{color:#bb3333;font-size:13px;line-height:1.4;margin-top:10px}.preview{min-width:0}.preview-caption{display:flex;justify-content:space-between;color:#587772;font-size:11px;letter-spacing:.09em;font-weight:800;margin:8px 0 14px}.paper{width:100%;background:white;min-height:650px;border:1px solid var(--line);box-shadow:0 12px 30px #163b3420;padding:34px 36px;border-radius:7px}.loading{padding:50px;color:#61817c}.report-top{display:flex;align-items:center;justify-content:space-between;border-bottom:2px solid #156d62;padding-bottom:14px;gap:10px}.logo{width:226px;height:auto}.confidential{font-size:9px;letter-spacing:.08em;color:#64857c;font-weight:800;text-align:right}.report-intro{margin-top:23px;display:flex;justify-content:space-between;gap:25px}.report-intro h1{font-size:24px;letter-spacing:-.04em;margin:8px 0}.company{font-weight:800;font-size:13px}.subline{color:#748985;font-size:11px;margin-top:7px}.side-number{min-width:116px;background:#f0f7f3;border-radius:11px;border:1px solid #d3e5dc;padding:12px;text-align:center}.side-number span{font-size:9px;font-weight:700;display:block}.side-number strong{font-size:32px;color:#11685d}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:27px 0 14px}.kpi{border-radius:10px;border:1px solid #d9e7e2;padding:12px 14px;background:#f6f8f7;min-width:0}.kpi-name{font-size:10px;font-weight:750;color:#5d7973}.kpi-value{font-size:21px;font-weight:850;letter-spacing:-.035em;margin-top:8px;white-space:normal;overflow-wrap:anywhere}.kpi.amber{background:#fff8ed;border-color:#f6dfb9}.kpi.green,.kpi.settled{background:#effaf3;border-color:#cee8d6}.kpi.red{background:#fff2f1;border-color:#efd5d3}.kpi.total{grid-column:span 2;background:#f0f8f5;border-color:#cce3da}.kpi.settled{grid-column:span 2}.chart{border:1px solid #e0ebe6;border-radius:10px;padding:16px 17px;margin-bottom:26px;break-inside:avoid}.chart h3{font-size:12px;margin-bottom:13px}.bars{height:120px;display:flex;gap:13px;align-items:end}.bar-col{flex:1;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;height:100%;font-size:10px}.bar-col strong{font-size:9px;margin-bottom:5px}.bar-col small{font-size:9px;margin-top:4px;color:#66867a}.bar-track{height:78px;display:flex;align-items:flex-end;border-bottom:1px solid #b8d4ca}.bar-track div{width:60%;margin:0 auto;background:#198a7a;border-radius:4px 4px 0 0}.details{margin-top:25px}.details-head{display:flex;justify-content:space-between;margin-bottom:13px;gap:10px}.details h2{font-size:16px}.details-head span{font-size:10px;color:#6a877f}.group-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:16px;margin-bottom:7px;background:#edf5f1;padding:10px 13px;border-left:3px solid #258c78;break-after:avoid}.group-head h3{font-size:12px}.group-head span{font-size:10px;white-space:nowrap}.table-group{break-inside:auto;margin-bottom:16px}.report-table{width:100%;border-collapse:collapse;table-layout:fixed}.report-table th{background:#163f40;color:white;text-align:left;font-size:9px;line-height:1.3;padding:10px 7px;overflow-wrap:anywhere}.report-table td{font-size:9px;line-height:1.4;padding:8px 7px;border-bottom:1px solid #e5ece8;overflow-wrap:anywhere;vertical-align:top}.report-table tbody tr:nth-child(even){background:#f6faf8}.report-table thead{display:table-header-group}.report-table tr{break-inside:avoid}.report-table .money{text-align:right;white-space:nowrap}.report-table .notes{font-size:8px}.notes small{color:#7a8d87;font-size:8px}.state{display:inline-block;padding:4px 5px;border-radius:6px;font-size:8px;font-weight:750}.state.ok{background:#dff5e9;color:#18744d}.state.waiting{background:#e4f2ff;color:#235f90}.state.late{background:#ffe9e5;color:#aa3831}.blank{text-align:center;padding:24px!important;color:#6b8079}.report-ending{border-top:1px solid #d7e4dd;margin-top:25px;padding-top:13px;display:flex;justify-content:space-between;gap:10px;font-size:9px;color:#799087}.photo-appendix{break-before:page;margin-top:40px}.photo-appendix h2{font-size:20px}.photo-appendix>p{font-size:11px;color:#6c827c;margin:8px 0 18px}.photo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:17px}.photo-grid figure{margin:0;border:1px solid #e0e9e5;border-radius:9px;padding:10px;break-inside:avoid}.photo-grid img{width:100%;max-height:155px;object-fit:contain;display:block}.photo-grid figcaption{margin-top:8px;font-size:9px;color:#41534f}
@media(max-width:1130px){.workarea{grid-template-columns:310px 1fr}.paper{padding:22px}.kpis{grid-template-columns:repeat(2,1fr)}.kpi.total,.kpi.settled{grid-column:span 1}}@media(max-width:840px){.workarea{display:block}.builder{position:static}.preview{margin-top:28px}.paper{overflow-x:auto}.report-table{min-width:560px}.kpis{grid-template-columns:repeat(2,1fr)}.preview-caption{font-size:10px}}
@media print{*{-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}.toolbar,.builder,.preview-caption{display:none!important}body{background:white!important}.workarea,.preview{display:block!important;max-width:100%!important;padding:0!important;margin:0!important}.paper{border:0!important;box-shadow:none!important;border-radius:0!important;margin:0!important;padding:0!important;min-height:0!important;overflow:visible!important}.report-intro{margin-top:17px}.report-intro h1{font-size:21px}.logo{width:180px}.kpis{margin-top:17px}.kpi{padding:8px 10px}.kpi-value{font-size:17px}.chart{margin-bottom:14px;padding:8px 12px}.bars{height:100px}.bar-track{height:60px}.details{margin-top:16px}.report-table{min-width:0!important}.report-table td{padding:6px 5px;font-size:8px}.report-table th{padding:7px 5px;font-size:8px}.photo-appendix{margin-top:0}.report-ending{font-size:8px}.table-group{page-break-inside:auto}}

/* RC3: page geometry is always A4 PORTRAIT; never follow record count or viewport. */
@page {
 size: A4 portrait;
 margin: 12mm 11mm 15mm 11mm;
 @bottom-right { content: "Σελίδα " counter(page) " / " counter(pages); font: 9px Arial, sans-serif; color: #648278; }
}
.paper-format{min-height:65px;padding:10px 12px;border:1px solid #cbdad5;border-radius:8px;background:#f0f7f3;display:flex;flex-direction:column;justify-content:center;gap:7px;font-size:12px}
.paper-format strong{color:#173b3d}.paper-format span{color:#11685d;font-size:12px;font-weight:750}
/* Screen preview uses the exact A4 aspect ratio, not a stretched landscape card. */
.paper{width:100%;max-width:210mm;min-height:297mm;margin:0 auto;padding:12mm}
.report-table .bank-subline{display:block;font-size:8px;color:#69847e;font-weight:500;margin-top:3px;line-height:1.3}
.report-table .due{white-space:nowrap}
.report-table .row-extras{font-size:8px;color:#68827b;line-height:1.4;margin-top:5px;overflow-wrap:anywhere}
.report-table .row-extras b{color:#395f58}
.report-table th,.report-table td{overflow-wrap:anywhere;word-break:normal}
@media print {
 html,body{width:auto!important;min-width:0!important}
 .paper{width:auto!important;max-width:none!important;min-height:0!important;padding:0!important}
 .report-table{table-layout:fixed;max-width:100%!important;min-width:0!important}
 .report-table td{font-size:8px;line-height:1.42;padding:6px 4px}
 .report-table th{font-size:7.5px;line-height:1.33;padding:7px 4px}
 .report-table .bank-subline{font-size:7px}
 .report-table .row-extras{font-size:7px}
 .report-table .state{font-size:7px;padding:3px 2px}
 .report-table .money{white-space:nowrap;letter-spacing:-.025em}
 .kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 .kpi{min-width:0;padding:8px 7px}
 .kpi-name{font-size:9px}
 .kpi-value{font-size:16px}
 .chart{min-width:0}
 .bars{gap:5px}
 .bar-col strong,.bar-col small{font-size:7px;overflow-wrap:anywhere}
 .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .report-top,.kpi,.group-head,.chart{break-inside:avoid}
}
