:root{--bg:#f3f6fa;--pr:#236878;--pr2:#e7f3f3;--bd:#dce5ec}
aside{background:linear-gradient(180deg,#142b45,#17394c);width:216px}aside button.on{background:#256f80}aside button{border-radius:9px}main>.top{gap:10px}main>.top select{max-width:440px}main>.top h2{flex-basis:100%;font-size:22px}.card{border-radius:15px;box-shadow:0 3px 14px #17394c06;padding:18px}.kpi div{border-radius:14px;box-shadow:0 3px 12px #17394c07}.top .b{border-radius:8px}.note{line-height:1.7}.warnbox{background:#fff8e7;border:1px solid #ead8ad;border-radius:12px;padding:12px 16px;margin:12px 0;color:#765518;white-space:normal}.table-scroll{max-height:58vh;overflow:auto;border:1px solid var(--bd);border-radius:10px} .table-scroll th{position:sticky;top:0;z-index:2}.table-scroll tfoot td{position:sticky;bottom:0;background:#eaf3f6;z-index:2}.table-scroll tr:hover td{background:#f4f9fa}.form-tabs{display:flex;gap:8px;flex-wrap:wrap}.form-tabs button{border-radius:9px}.form-tabs .on{background:#e7f3f3;color:#165b6d;border-color:#1f6c7a}.pick-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:8px;max-height:235px;overflow:auto;margin:12px 0}.pick-list label{border:1px solid var(--bd);padding:10px;border-radius:8px;cursor:pointer}.pick-list input{accent-color:var(--pr)}.form-tools{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px}.form-tools label{font-size:12px;color:var(--mu)}.form-tools input,.form-tools select{margin-top:4px}.form-edit{margin:12px 0;padding:12px;background:#f7fafc;border-radius:10px}.form-edit summary{cursor:pointer;font-weight:600}.form-edit .form-tools{margin-top:12px}.declaration{font:13pt/1.5 'Times New Roman',serif;color:#000;white-space:normal;background:#fff;padding:20mm 15mm;margin:16px auto;max-width:210mm}.declaration .center{text-align:center}.declaration .right{text-align:right}.declaration table{white-space:normal;font-size:9pt}.declaration th,.declaration td{border:1px solid #000;background:white;color:#000;padding:4px;vertical-align:middle}.declaration h3{font-size:14pt;text-align:center}.declaration .signature{display:flex;justify-content:space-between;margin-top:18px;gap:18px;min-height:100px}.declaration.landscape{max-width:none;padding:12mm 8mm;min-width:1050px}.form-preview{overflow:auto}.page-break{break-after:page}.page-break:last-child{break-after:auto}.paperline{margin:7px 0}.draft-status{font-size:12px;color:var(--mu);padding:8px 0}.hide-empty:empty{display:none}.summarybar{display:flex;justify-content:space-between;gap:16px;background:#e8f2f4;border:1px solid #c6dde3;padding:10px 14px;border-radius:9px;margin-bottom:12px;flex-wrap:wrap}.nav-toggle{border:0;background:var(--pr2);color:var(--pr);border-radius:8px;padding:6px 10px;cursor:pointer}.compact aside{width:76px}.compact aside h1 small,.compact aside .me{display:none}.compact aside h1{font-size:0}.compact aside h1:first-letter{font-size:22px}.compact aside button{font-size:0}.compact aside button:first-letter{font-size:20px}.compact #nav button{padding:10px;text-align:center}
@media(max-width:760px){main{padding:0 12px 18px}main>.top{margin:0 -12px 12px;padding:12px}main>.top select{max-width:100%;width:100%}.declaration{padding:10mm}.row2{grid-template-columns:1fr}.compact aside{width:auto}.form-tools{grid-template-columns:1fr 1fr}.pick-list{grid-template-columns:1fr 1fr}}
@media print{.noprint,.nav-toggle,.warnbox,.form-editor,.form-tabs,.draft-status,.summarybar{display:none!important}.declaration{margin:0;border:0;box-shadow:none;padding:0;max-width:none}.declaration.landscape{min-width:0;padding:0;font-size:11pt}.declaration.landscape table{font-size:7pt}.form-preview,.card{overflow:visible!important;max-height:none!important}.declaration th,.declaration td{position:static!important}thead{display:table-header-group}tfoot{display:table-footer-group}.page-break{break-after:page}tr{break-inside:avoid}body.frmview main>.top{display:none}.table-scroll{max-height:none;overflow:visible;border:0}.table-scroll th,.table-scroll tfoot td{position:static}}

.declaration .two{display:grid;grid-template-columns:1.2fr 1fr;gap:12px}.declaration .paperline{overflow-wrap:anywhere}.declaration.landscape table{table-layout:fixed;overflow-wrap:anywhere}.declaration.landscape th{font-size:8pt;line-height:1.25}.declaration.landscape table th:first-child{width:3%}.declaration.landscape table th:nth-child(2){width:8%}.declaration.landscape table th:nth-child(3){width:7%}
@media print{.declaration{font-size:12pt;line-height:1.35}.declaration .paperline{margin:5px 0}.declaration .signature{min-height:90px}.declaration.landscape th{font-size:7pt}.declaration.landscape h3{font-size:12pt}.declaration.landscape table th:first-child{width:3%}}
/* 1.1.1 — warm, quiet palette and compact actions. */
:root{--bg:#f5f1e9;--card:#fffdf8;--tx:#303c37;--mu:#7a7c72;--pr:#526c58;--pr2:#eaf0e5;--bd:#e1ded2;--ok:#477653;--er:#aa5543;--accent:#bd7b57}
body{background:var(--bg);color:var(--tx)}
aside{background:linear-gradient(165deg,#35473e 0%,#293c34 70%,#25372f);color:#e0e5d9;border-right:1px solid #5b6c5433;padding:18px 12px}aside button.on{background:#647d60;color:#fffdf5;box-shadow:0 3px 12px #15291e25}aside button:hover{background:#53664e}aside .me{border-color:#71826755}aside h1{letter-spacing:.1px}aside .me b{color:#fffbef}
.card{border:1px solid var(--bd);border-radius:17px;box-shadow:0 4px 18px #59482f06;background:#fffdf9}.kpi div{border-radius:16px;border:1px solid #dedfd1;background:linear-gradient(140deg,#fffefb,#f9f6ed);border-top:3px solid #b9c5a6}.kpi b{color:#3d5545}.kpi span{color:#7c7c6f}.top h2{color:#344c3c;letter-spacing:-.25px}
button.b,label.b,a.b{border-radius:9px;transition:background .15s,box-shadow .15s}.b.g{border:1px solid #c7d0bd;background:#fffdf8;color:#486249}.b:hover{box-shadow:0 3px 9px #4b5d3b1c}.b.d{background:#ac634e}.tag{background:#e9efdf;color:#506b46}.tag.r{background:#f9e9df;color:#a45c3f}.tag.gr{background:#e6efdf;color:#4c7048}
input,select,textarea{border-radius:9px;border-color:#dddccf;background:#fffefa}input:focus,select:focus,textarea:focus{outline:2px solid #9bb28d66;outline-offset:1px;border-color:#83997b}.filter-field{display:inline-flex;flex-direction:column;gap:4px;color:#7a7c72;font-size:12px;min-width:215px;margin:8px 0}.filter-field select{font-size:13px;width:100%;min-width:215px}.top .filter-field{margin:0}.field-help{display:block;color:#737b68;line-height:1.6;margin:7px 0 0;font-size:11px}.summarybar{background:#edf0e3;border-color:#d5ddc6;border-radius:11px;color:#4b6247}.warnbox{background:#fff5df;border-color:#e8d7b4;color:#8b6c38}.table-scroll{border-color:#e3e2d6;border-radius:11px}.table-scroll th{background:#f0eee3;color:#6e7867}.table-scroll tr:hover td{background:#f5f6ed}.table-scroll tfoot td{background:#eaf0df}.form-tabs button.on{background:#e9eddf;border-color:#7b9470;color:#425d3f}.pick-list label{background:#fffdf8;border-radius:11px;border-color:#e0e1d4}.pick-list label:has(input:checked){background:#edf2e5;border-color:#8ba37c}.form-edit{background:#f5f5ea;border:1px solid #e3e3d4;border-radius:12px}.nav-toggle{background:#e6ebdc;color:#496249}
.action-popover{position:fixed;inset:auto;margin:0;padding:7px;min-width:210px;max-width:min(270px,90vw);background:#fffdf7;color:#3f5140;border:1px solid #d7ddca;border-radius:13px;box-shadow:0 12px 35px #293e302b;z-index:50}.action-popover::backdrop{background:transparent}.action-popover button{display:block;width:100%;padding:10px 12px;text-align:left;background:none;border:0;border-radius:7px;color:inherit;font:inherit;cursor:pointer;white-space:normal}.action-popover button:hover,.action-popover button:focus-visible{background:#edf2e4;outline:none}.menu-trigger{white-space:nowrap;padding:5px 10px!important;color:#5b6e51!important}.nav-group{margin:9px 0}.nav-group>summary{cursor:pointer;list-style:none;font-size:11px;text-transform:uppercase;letter-spacing:.7px;padding:8px 10px;color:#acbaa2}.nav-group>summary::after{content:'⌄';float:right}.nav-group:not([open])>summary::after{content:'›'}.nav-group>summary:hover{color:#e8eedf}.compact .nav-group>summary{font-size:0;padding:4px}.compact .nav-group>summary::after{display:none}
@media print{.menu-trigger,.action-popover,.filter-field,.nav-group{display:none!important}.card{box-shadow:none;background:white}.summarybar{color:#000}.table-scroll tfoot td{background:#f2f2ec}.declaration{color:#000;background:#fff}.declaration th,.declaration td{background:white;color:black}.field-help{color:#444}}
@media(max-width:760px){.filter-field,.filter-field select{min-width:160px;max-width:100%}.nav-group{margin:0}.nav-group>summary{padding:7px 9px}.nav-group>div{display:flex;flex-wrap:wrap}.top{gap:8px}}

.action-popover{max-height:calc(100dvh - 24px);overflow-y:auto}
/* Import preview and dedicated print layout */
#dlg:has(.io-preview),#dlg:has(#io-text){width:min(1100px,95vw);max-width:95vw}
.io-error{color:#9c3527;white-space:normal}.io-preview{max-height:48vh;overflow:auto}.io-preview td{vertical-align:top;white-space:normal}.io-preview details{min-width:180px}.io-preview ul{padding-left:20px;max-width:500px;overflow-wrap:anywhere}
.io-columns{display:flex;flex-wrap:wrap;gap:12px 22px;max-width:750px}.io-columns label{display:flex;gap:5px}.io-tools{margin-bottom:8px}
body.report-mode> :not(#report-print-root){display:none!important}
#report-print-root{padding:22px;background:white;color:#222;min-height:100vh}#report-print-root h1{font-size:20px}#report-print-root table{width:100%;border-collapse:collapse;font-size:12px;white-space:normal}#report-print-root th,#report-print-root td{border:1px solid #aaa;padding:6px;white-space:normal;overflow-wrap:anywhere}#report-print-root thead{display:table-header-group}#report-print-root tfoot{display:table-row-group}.report-foot{font-size:11px;margin-top:18px}
@media print{body.report-mode{background:white!important}#report-print-root{display:block!important;padding:0;min-height:0}#report-print-root .report-actions{display:none!important}#report-print-root table{font-size:10px;table-layout:auto}#report-print-root thead th{position:static!important}#report-print-root tr{break-inside:avoid}#report-print-root tfoot td{position:static!important}#report-print-root h1{font-size:17px}}
