body{font-size:14px}.app-layout{grid-template-columns:220px minmax(0,1fr)}.nav-link{padding:10px 12px;font-size:14px}.nav-marker{width:9px;height:9px;border-radius:2px;background:#348bc2}.nav-link:nth-child(3n) .nav-marker{background:#d8a927}.nav-link:nth-child(4n) .nav-marker{background:#20a29e}.live-form{max-width:1200px}.live-form .form-fields{margin-top:20px}textarea{font:inherit}.row-input{min-width:90px}.row-input.product{min-width:190px}button.primary{background:#114f80;color:white}a.doc-link{color:#14568b;text-decoration:underline}.status{font-size:12px;padding:4px 7px;background:#edf3f8;white-space:nowrap}#notice{position:fixed;bottom:20px;right:20px;max-width:440px;white-space:pre-wrap;background:#114f80;color:white;padding:12px 18px;border-radius:4px;display:none;z-index:10}.error-box{background:#fff3f1;color:#8d3023;border:1px solid #ebc5be;padding:14px;margin:15px 0}.info-line{color:#596874;line-height:1.6}.related{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}.summary-row{display:flex;gap:26px;flex-wrap:wrap;border-block:1px solid #d7dfe6;padding:18px 0}.summary-row strong{color:#114f80}.list-empty{padding:40px;text-align:center;color:#596874}.preview-toolbar{position:sticky;top:0}#print-dialog{width:100vw;height:100dvh;max-width:none;max-height:none;margin:0;border:0;padding:0;background:#e8edf1}#print-content{padding:25px}.print-page{width:210mm;min-height:297mm;padding:15mm;background:white;margin:auto;color:#304351}.print-head{display:flex;align-items:center;gap:20px;border-bottom:2px solid #114f80;padding-bottom:16px}.print-head img{width:70px;height:70px;object-fit:contain}.print-head h2{color:#114f80;margin:0 0 8px;font-size:20px}.print-head p{white-space:pre-line;font-size:12px;line-height:1.5;margin:0}.print-page h1{margin:22px 0;font-size:22px;color:#114f80}.print-meta{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.print-page table{min-width:0;font-size:12px}.print-page th,.print-page td{padding:10px 7px;white-space:normal}.print-note{white-space:pre-wrap;margin:20px 0;line-height:1.6}.print-signs{display:flex;justify-content:space-between;margin-top:50px}.print-signs div{width:35%;border-bottom:1px solid #cad4de;height:90px}.filter-row{display:flex;gap:10px;margin:20px 0;flex-wrap:wrap}.filter-row input{width:auto}.actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.muted{color:#697680}.read-meta{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin:25px 0}.read-meta small{display:block;color:#596874;margin-bottom:5px}.notice-private{font-size:12px;color:#596874}.line-total{white-space:nowrap}@media(max-width:820px){.app-layout{display:block}.sidebar{display:block;border-bottom:1px solid #d7dfe6;padding:8px}.sidebar nav{flex-direction:row;overflow-x:auto}.nav-link{flex-shrink:0}.read-meta{grid-template-columns:1fr 1fr}.app-header{gap:10px}.header-right{max-width:45%;overflow:hidden}#print-content{overflow:auto}}@media print{body>*{display:none!important}#print-dialog{display:block!important;position:static;background:white;width:auto;height:auto;overflow:visible}#print-dialog .preview-toolbar{display:none!important}#print-content{padding:0}.print-page{width:100%;min-height:0;padding:0;box-shadow:none;margin:0}@page{size:A4;margin:14mm}.print-page tr{break-inside:avoid}.print-page thead{display:table-header-group}}
/* Form sections follow the familiar document order; whitespace replaces box borders. */
.document-heading{display:flex;align-items:center;gap:10px;color:#526575;margin:18px 0}.document-section{padding:14px 0;border:0}.document-section h2{font-size:16px;color:#114f80;margin:0 0 12px}.document-form .form-fields{margin:0;gap:14px 22px;grid-template-columns:repeat(3,minmax(0,1fr))}.document-form .wide-field{grid-column:span 3}.document-form textarea{width:100%;resize:vertical;min-height:60px}.document-form input,.document-form select{max-width:100%}.document-pairs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px;margin:18px 0}.document-pairs div{min-width:0}.document-pairs dt{font-size:12px;color:#596874;margin:0 0 4px}.document-pairs dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.section-options,.document-form .internal-fields{padding:14px 0;border:0;border-block:1px solid #e0e5ea;margin:16px 0}.option-grid{display:flex;flex-wrap:wrap;gap:12px 22px;margin-top:14px}.option-grid label{display:flex;align-items:center;gap:5px}.option-grid input{width:16px;height:16px}.division-editor{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.division-editor fieldset{border:0;padding:0;min-width:0}.division-editor legend{font-weight:600;margin-bottom:10px}.division-editor .field{margin-bottom:8px}.file-label{position:relative;cursor:pointer;overflow:hidden;display:inline-flex}.file-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.file-label:focus-within{outline:2px solid #114f80;outline-offset:2px}.photo-control{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:12px 0}.photo-control .document-image{width:70px;height:60px;object-fit:contain}.document-lines .photo-control{min-width:140px}.document-image{display:block;max-width:100%;max-height:120px;object-fit:contain;margin:8px 0}.document-paper{font-size:11px;line-height:1.35}.document-paper h1{font-size:19px;margin:16px 0 12px}.document-paper h3{font-size:11px;color:#114f80;margin:0 0 7px}.document-paper .paper-two{display:grid;grid-template-columns:1fr 1fr;gap:20px}.document-paper .paper-section{padding:0;margin:10px 0;border:0;break-inside:auto}.document-paper .document-pairs{gap:6px 14px;margin:7px 0}.document-paper .paper-two .document-pairs{grid-template-columns:1fr}.document-paper .document-pairs div{display:grid;grid-template-columns:110px minmax(0,1fr);gap:8px}.document-paper .document-pairs dt{font-size:10px;color:#4f606e}.document-paper .document-pairs dd{font-size:11px}.document-paper table{width:100%;table-layout:fixed;min-width:0}.document-paper th,.document-paper td{padding:7px 5px;overflow-wrap:anywhere;font-size:10px;vertical-align:top}.document-paper .table-scroll{overflow:visible}.document-paper .document-image{max-height:85px;max-width:100%;object-fit:contain}.document-paper .paper-signatures{display:flex;gap:24px;margin-top:20px;break-inside:avoid}.paper-signatures>div{flex:1;min-width:0;overflow-wrap:anywhere}.signature-space{height:44px}.document-paper .paper-divisions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0}.paper-divisions>div{break-inside:avoid;border:0}.paper-divisions p{min-height:28px;margin:5px 0}.paper-divisions small{font-size:9px}.print-checks{display:flex;flex-wrap:wrap;gap:8px 14px;margin:8px 0 14px}.paper-summary{border-top:1px solid #d7dfe6;margin-top:12px;padding-top:6px;break-inside:avoid}.document-paper footer{margin-top:20px;color:#687681;font-size:9px}.draft-mark{color:#8d3023;font-size:10px}.document-paper [hidden],.document-form [hidden]{display:none!important}.document-form .row-input{width:100%;min-width:85px}.document-form .row-input.product{min-width:170px}
@media(max-width:820px){.document-form .form-fields{grid-template-columns:1fr}.document-form .wide-field{grid-column:auto}.division-editor{grid-template-columns:repeat(2,minmax(0,1fr))}.document-form .document-pairs{grid-template-columns:1fr}.document-paper .paper-two{grid-template-columns:1fr 1fr}.document-form .table-scroll{max-width:100%;overflow:auto}}
@media print{.document-paper{min-height:0}.document-paper h3{break-after:avoid}.document-paper .document-pairs div{break-inside:avoid}.document-paper th{background:#f0f3f5!important;print-color-adjust:exact}.document-paper tbody tr:nth-child(even){background:white}.document-paper footer{break-inside:avoid}.document-paper .document-image{break-inside:avoid}}
/* Reset the old preview's container-relative typography inside real A4 documents. */
.document-paper .paper-section{font-size:11px;font-weight:400;color:#304351}.document-paper .paper-two{margin-bottom:12px}.document-paper .paper-divisions>div{font-size:10px;padding:0}.document-paper .paper-signatures{font-size:11px}.document-paper .paper-signatures div{min-height:0}.document-paper .signature-space{height:44px;min-height:0}.document-paper .paper-signatures span{font-size:11px}.document-paper td,.document-paper th{border-right:0}.document-paper .paper-signatures b{display:block;font-size:11px}.document-form textarea:focus-visible,.document-form summary:focus-visible{outline:3px solid #1767ad;outline-offset:3px}
/* Match the approved preview's colored menu icons and calm sidebar proportions. */
.app-layout{grid-template-columns:248px minmax(0,1fr)}.sidebar{background:#f5f6f7;padding:20px 10px}.nav-link{font-size:15px;min-height:50px;padding:11px 14px;gap:14px}.nav-link .icon{width:26px;height:26px;flex:0 0 26px}.nav-link .icon svg{width:26px;height:26px;display:block}.nav-link:hover{background:#eaf0f6}.nav-link[aria-current=page]{background:#e3eefb;color:#29485e}.nav-link:active{background:#d4e5fa}.settings-content{max-width:760px}.settings-section{padding:22px 0 26px;border-bottom:1px solid #e0e5ea}.settings-section:last-child{border:0}.settings-section .section-heading{margin-bottom:17px}.settings-section h2{margin:0;font-size:16px;color:#114f80}.settings-logo{display:flex;align-items:center;gap:15px;margin:0 0 22px;font-size:16px;font-weight:600;color:#114f80}.settings-logo img{width:54px;height:54px;object-fit:contain}#company{max-width:640px}#company>.field{margin:0 0 18px}#company textarea{margin:0;resize:vertical;line-height:1.6}.settings-content .help{font-weight:normal}.settings-content textarea:focus-visible{outline:3px solid #1767ad;outline-offset:3px}@media(max-width:820px){.app-layout{display:block}.sidebar{padding:8px 10px}.sidebar nav{gap:4px}.nav-link{min-height:47px;font-size:14px;gap:9px;padding:9px 12px}.nav-link .icon,.nav-link .icon svg{width:23px;height:23px}.nav-link .icon{flex-basis:23px}.settings-section{padding-top:20px}.settings-content{max-width:100%}}

.help .help-glyph{display:block;width:21px;height:21px;flex-shrink:0;color:#3c4248}.help:hover .help-glyph{color:#114f80}
/* Small help marks, with the open explanation positioned by its own trigger. */
.help{width:28px;min-width:28px;min-height:28px;height:28px;padding:5px;align-self:center}.help .help-glyph{width:16px;height:16px;color:#647789}.help:hover .help-glyph{color:#114f80}[popover]{position:fixed;inset:auto;margin:0;left:12px;top:12px;width:300px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;background:#f8fafc;color:#42576b;border:1px solid #d0dbe5;border-radius:5px;padding:12px 14px;font:400 13px/1.5 Arial,Helvetica,sans-serif;box-shadow:0 3px 12px #304a6314;overflow-wrap:anywhere}@media(pointer:coarse){.help{width:40px;min-width:40px;min-height:40px;height:40px}}
.app-layout{grid-template-columns:270px minmax(0,1fr)}.nav-link{gap:11px;padding:10px 12px;min-height:47px}.nav-link>span:last-child{white-space:normal;line-height:1.3}.tabs{margin-top:18px}.preview-caption{display:flex;align-items:center;gap:4px;color:#647789;font-size:12px;margin:12px 0 18px}.preview-caption>span{border-left:2px solid #d2af62;padding-left:9px}.compact-field{max-width:360px;margin:18px 0}.template-type-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.template-type-tabs [aria-pressed=true]{background:#e5effa;border-color:#477eaf;color:#114f80}.template-workspace{display:grid;grid-template-columns:270px minmax(0,1fr);gap:24px;align-items:start}.template-workspace form{min-width:0}.template-workspace .field{margin-bottom:14px}.template-workspace textarea{margin-bottom:0}.template-workspace h2{margin-top:0}.check-option{display:flex;align-items:center;gap:8px;margin-bottom:14px}.check-option input{width:18px}.template-canvas{background:#eef1f4;overflow:auto;padding:20px;max-height:900px;min-width:0}.template-canvas .print-page{margin:0;box-shadow:0 1px 5px #26394b1a}.template-workspace input[type=color]{padding:4px;width:100%}.template-workspace details{padding:12px 0}.permission-check{width:18px!important;height:18px;min-height:18px!important}.settings-content{max-width:900px}.tabs .tab{font-size:14px;padding:10px 14px}.table-scroll input[type=checkbox]{min-width:18px}#preview-form{margin-top:24px}.template-workspace .option-grid{flex-direction:column;gap:10px}.template-workspace .actions{gap:7px}.template-workspace .actions button{white-space:normal;font-size:13px}
@media(max-width:1100px){.template-workspace{grid-template-columns:1fr}.template-workspace form{max-width:640px}.template-canvas{max-height:700px}}@media(max-width:820px){.app-layout{display:block}.nav-link>span:last-child{white-space:nowrap}.nav-link{min-height:44px}.template-canvas{padding:10px}.tabs{margin-top:14px}.template-workspace{gap:16px}}
.demo-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#edf4fa;border:1px solid #d3e1ec;padding:10px 14px;margin:0 0 22px;font-size:13px;color:#254760}.demo-bar button{font-size:12px;padding:7px 10px;background:#fff}.demo-print{color:#855300;border-bottom:1px solid #ccc;padding:8px;font-size:12px;text-align:center}
@media print{.demo-bar{display:none}}
.status{display:inline-block;border-radius:4px;font-weight:500;line-height:1.4;white-space:normal;min-width:80px}.status-neutral{background:#eceff2;color:#4d5965}.status-warning{background:#fff1bd;color:#725100}.status-danger{background:#fde5e4;color:#a02727}.status-success{background:#def2e5;color:#21643a}.status-info{background:#e5effb;color:#285b85}
.report-period{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:18px 0;border-bottom:1px solid #d7dfe6}.report-period label{display:grid;gap:7px;font-size:13px;color:#526675}.report-period [hidden]{display:none}.report-period input,.report-period select{width:auto;min-width:145px}.report-period p{flex-basis:100%;margin:0;color:#a02727}.report-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;flex-wrap:wrap;margin:24px 0 16px}.report-heading h2{margin:0}.report-heading span{font-size:12px;color:#596874}.report-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#dce5ed;border:1px solid #dce5ed}.report-totals section{background:#f4f8fc;padding:22px}.report-totals span{display:block;color:#526675;font-size:13px;margin-bottom:10px}.report-totals strong{font-size:25px;color:#114f80;font-variant-numeric:tabular-nums}.report-number{min-height:32px;padding:4px 0;border:0;background:transparent;color:#14568b;text-decoration:underline;text-underline-offset:3px;text-align:left;white-space:normal;justify-content:start}.report-number span{margin-left:7px}#report-detail{width:min(1100px,94vw);max-height:88dvh;border:1px solid #ccd8e2;border-radius:6px;padding:24px;color:#35414c}#report-detail::backdrop{background:#18354e55}.report-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:20px}.report-dialog-head h2{margin:0;color:#114f80}.report-dialog-head button{flex-shrink:0}#report-detail h3{margin-top:26px}@media(max-width:700px){.report-totals{grid-template-columns:1fr}.report-totals section{padding:16px}.report-totals strong{font-size:22px}.report-period label{flex:1}.report-period input,.report-period select{width:100%;min-width:120px}#report-detail{padding:16px}}
.audit-date th{background:#eaf2fa;color:#285b85;font-weight:600;padding:12px 14px}.audit-pager{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:12px;margin-top:18px}.audit-pager span{font-size:13px;color:#596874}#audit-filter input[type=search]{min-width:240px}
