
:root{--ink:#241f3d;--indigo:#2a2266;--muted:#777389;--line:#e6e3ef;--yellow:#f8c800}*{box-sizing:border-box}body{margin:0;background:#f4f3f8;color:var(--ink);font:14px system-ui,sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer;border:1px solid var(--line);background:white;color:var(--indigo);border-radius:7px;padding:10px 14px;font-weight:600}button:hover{background:#efedf7}.primary{background:var(--indigo);color:white;border-color:var(--indigo)}.primary:hover{background:#382f87}.yellow{background:var(--yellow);border:0;color:var(--ink)}header.app{background:white;border-bottom:1px solid var(--line);padding:16px 28px;display:flex;align-items:center;gap:14px}header.app img{width:64px}header.app strong{font-size:19px}header.app span{color:var(--muted);display:block;font-size:12px;margin-top:2px}.actions{margin-left:auto;display:flex;gap:8px;flex-wrap:wrap}.workspace{display:grid;grid-template-columns:360px minmax(0,1fr);max-width:1500px;margin:auto;gap:28px;padding:28px}.editor{display:flex;flex-direction:column;gap:16px}.card{background:white;border:1px solid var(--line);border-radius:12px;padding:20px}.card h2{font-size:15px;margin:0 0 16px}label{display:block;font-size:12px;font-weight:600;margin:12px 0 5px}input,textarea,select{width:100%;border:1px solid #d9d5e4;padding:9px;border-radius:6px;background:white;color:var(--ink)}input:focus,textarea:focus{outline:2px solid #d0c9ed}textarea{resize:vertical;min-height:84px}.row{display:flex;gap:10px}.row>*{flex:1;min-width:0}.hint{font-size:12px;color:var(--muted);line-height:1.6}.item{border-top:1px solid var(--line);padding:10px 0}.item .remove{padding:6px 8px;flex:0;color:#a1274e}.item label{margin-top:6px}.preview-label{display:flex;justify-content:space-between;align-items:center;margin:0 0 12px;color:var(--muted);font-size:12px}.sheet{width:210mm;max-width:100%;min-height:297mm;background:white;box-shadow:0 8px 32px #29204713;padding:14mm 13mm 0;display:flex;flex-direction:column;margin:auto}.q-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8mm;gap:10px}.q-head img{width:43mm}.q-title{text-align:right}.q-title h1{font-size:23px;color:var(--indigo);margin:0 0 10px}.q-title p{font-size:10px;margin:5px 0}.details{display:grid;grid-template-columns:1fr 1fr;gap:20px;padding:17px;background:#f4f3f8;border-radius:6px;margin-bottom:22px}.details small{font-weight:bold;color:var(--indigo);font-size:10px}.details b{display:block;margin:5px 0 12px;font-size:12px}.details p{font-size:10px;margin:5px 0;white-space:pre-wrap;overflow-wrap:anywhere}.sheet h2{color:var(--indigo);font-size:16px;margin:0 0 8px}.sheet p.intro{font-size:10px;margin:0 0 17px}table{border-collapse:collapse;width:100%;font-size:11px}th{text-align:left;background:#efedf7;font-size:10px;color:var(--indigo);padding:10px}td{padding:10px;vertical-align:top;overflow-wrap:anywhere}tbody tr:nth-child(odd){background:#f7f7fa}.num{width:38px}.money{text-align:right;white-space:nowrap}.totals{margin:20px 0;background:#efedf7;padding:17px;border-radius:6px;display:flex;justify-content:space-between;align-items:center;gap:12px}.totals strong{font-size:25px;color:var(--indigo);white-space:nowrap}.totals b{font-size:12px}.totals small{display:block;margin-top:6px;font-size:10px}.breakdown{font-size:11px;margin:14px 0 0 auto;width:55%}.breakdown div{display:flex;justify-content:space-between;padding:4px}.terms{font-size:10px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin-bottom:22px}.closing{font-size:10px;margin:0 0 22px}.q-footer{background:var(--indigo);color:white;border-top:3px solid var(--yellow);margin:auto -13mm 0;padding:16px 13mm;display:flex;justify-content:space-between;font-size:10px;gap:12px}.q-footer p{margin:4px 0}#notice{font-size:12px;color:#34704a;min-height:18px}.saved-row{display:flex;gap:6px;margin:8px 0;align-items:center}.saved-row button:first-child{flex:1;text-align:left;font-size:12px}.saved-row button:last-child{padding:9px}.preview{min-width:0}input[type=file]{padding:5px}.mode-note{padding:10px;background:#fff7e6;border-radius:6px} @media(max-width:1120px){.workspace{grid-template-columns:310px 1fr;padding:16px;gap:16px}.sheet{padding:30px 25px 0;min-height:1000px}.q-footer{margin:auto -25px 0;padding:16px 25px}.q-title h1{font-size:19px}}@media(max-width:800px){.workspace{display:block}.editor{margin-bottom:24px}.sheet{min-height:950px}.actions{margin-left:0}header.app{flex-wrap:wrap}.preview-label{display:none}.q-head img{width:110px}.q-title h1{font-size:17px}.totals strong{font-size:21px}}@page{size:A4;margin:12mm}@media print{body{background:white}.app,.editor,.preview-label{display:none!important}.workspace{display:block;padding:0;margin:0}.sheet{box-shadow:none;width:auto;max-width:none;min-height:270mm;padding:0;font-family:Arial,sans-serif}.q-footer{margin:auto 0 0;padding:14px 16px}.q-head img{width:43mm}.q-title h1{font-size:23px}.details,th,tbody tr,.totals,.q-footer{-webkit-print-color-adjust:exact;print-color-adjust:exact}tr,.totals,.details,.q-head,.q-footer{break-inside:avoid}thead{display:table-header-group}.terms{break-inside:auto}.sheet h2{break-after:avoid}.q-footer{break-inside:avoid}.totals strong{font-size:25px}}


[hidden]{display:none!important}.cloud-banner{margin:20px 28px 0;padding:20px;background:#fff7e6;border:1px solid #f8c800;border-radius:10px}.cloud-button{display:inline-block;background:#2a2266;color:white;text-decoration:none;border-radius:7px;padding:11px 14px}.history-entry{display:block;width:100%;text-align:left;margin:8px 0;font-weight:400}.history-entry b,.history-entry span{display:block;overflow-wrap:anywhere}.history-entry span{font-size:11px;color:#777389;margin-top:5px}#history-refresh{margin:12px 0}#record-state{font-weight:600;color:#2a2266}#record-link{display:block;margin:12px 0;font-size:12px}.draft-mark{font-weight:bold;color:#9b3456}button:disabled{opacity:.5;cursor:default}a:focus-visible{outline:3px solid #f8c800} @media print{.cloud-banner{display:none!important}}


/* Keep the quotation document light even when the device prefers dark mode. */
:root{color-scheme:only light}html,body{background:#f4f3f8;color:#241f3d}.sheet{color-scheme:only light;background:#fff;color:#241f3d}.sheet img{object-fit:contain;max-width:100%;height:auto}.q-title,.q-head>*,.details>*,.totals>*,.q-footer>*{min-width:0}.q-title h1,.details b,.totals b,.q-footer p{overflow-wrap:anywhere}.sheet table{table-layout:fixed}.sheet td,.sheet th{word-break:normal;overflow-wrap:anywhere}.sheet table .money{white-space:normal}.sheet th.money,.sheet td.money{width:21%}.sheet th.money:first-of-type,.sheet td.money:first-of-type{width:9%}input,textarea,select{font-size:16px;min-height:44px}label{font-size:14px}.hint{font-size:14px}.actions button,.cloud-button{min-height:44px}#notice{font-size:14px;line-height:1.5}.preview{align-self:start}.editor,.preview{min-width:0}.preview-label{font-size:14px}.record-link-note{font-size:14px;line-height:1.5}.sheet .q-title p{line-height:1.4}
@media screen and (max-width:800px){
 header.app{padding:12px 16px;gap:10px}.actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.actions button{min-width:0;padding:10px 8px;font-size:14px}.workspace{padding:12px;gap:16px}.card{padding:16px}.cloud-banner{margin:12px;padding:16px}.cloud-banner .cloud-button,.cloud-banner button{display:block;width:100%;margin:10px 0;text-align:center}.row{flex-wrap:wrap}.row>*{flex:1 1 115px}.item .row{flex-wrap:nowrap}.sheet{width:100%;min-height:0;padding:20px 16px 0}.q-head{gap:12px;align-items:flex-start;margin-bottom:20px}.q-head img{width:90px;flex:0 0 90px}.q-title{flex:1}.q-title h1{font-size:17px;line-height:1.25}.q-title p{font-size:11px}.details{gap:12px;padding:12px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.details p,.details small{font-size:11px}.details b{font-size:12px}.sheet h2{font-size:16px}.sheet p.intro{font-size:12px}.sheet td,.sheet th{padding:8px 5px;font-size:11px}.sheet .num{width:34px}.totals{align-items:flex-start;flex-direction:column;padding:14px;gap:12px}.totals strong{font-size:24px;align-self:flex-end;max-width:100%;white-space:normal;overflow-wrap:anywhere}.totals small{font-size:11px}.breakdown{width:100%;font-size:12px}.terms,.closing{font-size:12px}.q-footer{margin:12px -16px 0;padding:14px 16px;flex-wrap:wrap;font-size:11px}.preview-label{display:flex;flex-wrap:wrap;gap:6px}.history-entry{min-height:54px}.history-entry span{font-size:13px}}
@page{size:A4;margin:12mm}
@media print{
 :root,html,body{color-scheme:only light!important;background:#fff!important;color:#111!important;forced-color-adjust:none!important}
 .sheet{width:100%!important;max-width:none!important;min-height:268mm!important;margin:0!important;padding:0!important;background:#fff!important;color:#111!important;box-shadow:none!important;font-family:Arial,sans-serif!important}
 .sheet *{color:#111!important;text-shadow:none!important;box-shadow:none!important;color-scheme:only light!important;-webkit-print-color-adjust:exact!important;print-color-adjust:exact!important}
 .sheet .details,.sheet .totals,.sheet th,.sheet td,.sheet tr,.sheet tbody tr:nth-child(odd),.sheet .q-footer{background:none!important;background-color:transparent!important}
 .sheet .details{padding:12px!important;border:1px solid #aaa!important;border-radius:4px!important;grid-template-columns:1fr 1fr!important;gap:20px!important;margin-bottom:18px!important}
 .sheet .q-head{display:flex!important;align-items:center!important;gap:20px!important;margin-bottom:22px!important}.sheet .q-head img{width:42mm!important;height:auto!important;max-height:30mm!important;object-fit:contain!important}.sheet .q-title{flex:1!important;text-align:right!important}.sheet .q-title h1{font-size:21px!important}.sheet .q-title p{font-size:10px!important}
 .sheet table{width:100%!important;table-layout:fixed!important;border-collapse:collapse!important}.sheet th{border-bottom:1px solid #777!important}.sheet td{border-bottom:1px solid #ddd!important}.sheet td,.sheet th{padding:9px 7px!important;font-size:10px!important}.sheet .num{width:32px!important}
 .sheet .totals{display:flex!important;flex-direction:row!important;align-items:center!important;padding:14px!important;border:1.5px solid #333!important;border-radius:4px!important;margin:16px 0!important}.sheet .totals strong{font-size:23px!important;white-space:nowrap!important;align-self:auto!important}.sheet .totals small{font-size:10px!important}.sheet .breakdown{font-size:10px!important;width:55%!important}.sheet .terms,.sheet .closing{font-size:10px!important}.sheet .q-footer{margin:auto 0 0!important;padding:12px 0!important;border-top:2px solid #333!important;display:flex!important;flex-wrap:nowrap!important;font-size:10px!important}
 .sheet .draft-mark{font-weight:700!important}.app,.editor,.preview-label,.cloud-banner,.record-link-note{display:none!important}.workspace{display:block!important;margin:0!important;padding:0!important}.preview{width:100%!important}thead{display:table-header-group!important}tr,.details,.totals,.q-head,.q-footer{break-inside:avoid!important}.terms{break-inside:auto!important}
}


/* Small typographic refinements: readable print text and proper hanging bullets. */
ul.terms{padding-left:1.25em;margin-top:0}ul.terms li{padding-left:.2em;margin-bottom:.3em;white-space:normal}.publication-status{color:#666}
@media print{
 .sheet .q-title .publication-status{display:none!important}
 .sheet .q-title h1{margin-bottom:9px!important}
 .sheet h2{font-size:12pt!important;margin:0 0 8px!important}
 .sheet .intro,.sheet .details p,.sheet .details b,.sheet td{font-size:10pt!important;line-height:1.35!important}
 .sheet .details small,.sheet th,.sheet .q-title p{font-size:9pt!important;line-height:1.4!important}
 .sheet .details b{margin:5px 0 10px!important}
 .sheet .terms,.sheet .closing{font-size:9.5pt!important;line-height:1.5!important}
 .sheet ul.terms{padding-left:15px!important;margin-top:0!important;margin-bottom:18px!important}
 .sheet ul.terms li{padding-left:3px!important;margin-bottom:3px!important}
 .sheet .totals b{font-size:10pt!important}.sheet .totals small{font-size:9pt!important;line-height:1.4!important}
 .sheet .q-footer{font-size:8.5pt!important;line-height:1.4!important}
}
