@font-face{font-family:OfferText;src:url('roboto-regular.ttf')}@font-face{font-family:OfferText;src:url('roboto-bold.ttf');font-weight:700}@font-face{font-family:OfferTitle;src:url('roboto-bold.ttf');font-weight:700}
:root{font-family:Arial,sans-serif;color:#23332e;background:#f2f4f3;font-size:14px;--green:#16634c}*{box-sizing:border-box}[hidden]{display:none!important}body{margin:0}header{display:flex;align-items:center;gap:10px;padding:17px 26px;background:white;border-bottom:1px solid #dce4dd}.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:#153e30;font-size:23px;font-weight:700}.logo{background:#c7e478;border-radius:10px;width:33px;height:33px;text-align:center;font:italic bold 30px Georgia}.tag{font-size:9px;letter-spacing:2px;margin-left:10px}.quiet{margin-right:auto;color:#829088;margin-left:20px;font-size:12px}button,.button{border:1px solid #d3ddd6;background:white;border-radius:7px;padding:10px 13px;font:inherit;cursor:pointer;color:#274139}.primary{background:var(--green);color:white;border-color:var(--green)}button:hover,.button:hover{filter:brightness(.95)}button:disabled{opacity:.4;cursor:not-allowed}main{max-width:1520px;margin:auto;padding:28px 26px}.intro{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.eyebrow{color:#65836b;font-size:10px;letter-spacing:2px;font-weight:bold}h1{font-size:30px;font-weight:600;letter-spacing:-1px;margin:10px 0}p{color:#768279;line-height:1.6}.intro p{margin:0}.layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:start}section,details{background:white;border:1px solid #dfe5df;border-radius:10px;padding:18px;margin-bottom:14px}h2{font-size:15px;margin:0 0 20px}h2 b{font-weight:500;color:#8aa679;margin-right:10px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:12px}label{display:block;color:#5a6c60;font-size:11px;font-weight:500;margin-bottom:12px}input{display:block;width:100%;border:1px solid #d4ded5;border-radius:6px;padding:10px;margin-top:6px;color:#173a2b;background:#fcfdfb;font:500 14px Arial,sans-serif}input:focus{outline:2px solid #91b87a;outline-offset:1px}.hint{font-size:11px;line-height:1.65;color:#7b887e}.price-section{border-color:#8cae86;background:#f9fcf5}.override{margin:17px 0}.override span{display:block;font-size:10px;color:#8a978b;margin-top:3px}.override small{display:block;color:#84917e;font-size:10px;margin-top:5px}.check{grid-column:1/-1;display:flex;align-items:center;gap:10px}.check input{width:auto;margin:0}summary{cursor:pointer;font-size:12px}.metrics{display:grid;grid-template-columns:1.2fr 1.2fr .8fr;gap:12px;margin-bottom:18px}.metrics>div{padding:18px;background:#e5eddf;border:1px solid #d9e3d1;border-radius:9px}.metrics>div:first-child{background:#174f3d;color:white;border-color:#174f3d}.metrics span{font-size:11px;opacity:.75}.metrics strong{display:block;font-size:22px;margin-top:10px;white-space:nowrap;font-weight:600}.metrics em{font-size:14px;font-style:normal}.paperbar{display:flex;justify-content:space-between;align-items:center;color:#869288;font-size:10px;letter-spacing:1px;margin:0 0 12px}.paperbar button{font-size:12px;letter-spacing:0;padding:8px 12px}.result{min-width:0}.tablewrap{overflow:visible}#error{background:#fff0dd;border:1px solid #e4b774;padding:16px;margin-bottom:16px;border-radius:8px;color:#865217}#clear{font-size:11px;width:100%}
/* Jednotná A4 pro náhled i tisk. */
#paper{font-family:OfferText,Calibri,Arial,sans-serif;color:#171717;background:white;width:210mm;height:296mm;min-height:296mm;padding:0 17mm 12mm;margin:0 auto;position:relative;display:flex;flex-direction:column;box-shadow:0 3px 24px #203a2314;flex-shrink:0}.offer-header{display:block;width:210mm;height:auto;margin:0 -17mm 1mm;flex-shrink:0}#paper .docbrand,#paper #project,#paper #finance,.input-title{display:none}#paper h2{font-family:OfferTitle,Arial,sans-serif;color:#36befb;font-size:23pt;line-height:1.15;margin:0 0 5mm;font-weight:700;letter-spacing:-.4pt}#inputs{font-size:10pt;margin:0 0 5mm;padding:0 1mm}#inputs>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:2.7pt 3pt;border-bottom:1px solid #dedede;line-height:1.2}#inputs b{font-weight:400;white-space:nowrap;min-width:60px;text-align:right}.comparison-title{font-family:OfferTitle,Arial,sans-serif;font-size:14pt;line-height:1.25;margin:0 0 2mm;font-weight:700;letter-spacing:-.2pt}#paper table{border-collapse:collapse;table-layout:fixed;width:100%;font-size:9.5pt;line-height:1.18;font-variant-numeric:tabular-nums}#paper thead th{background:#4472e7;color:white;font-size:11pt;line-height:1.3;padding:6pt 3pt;text-align:center;width:16.5%;border:0;font-weight:400}#paper thead th:last-child{font-weight:700}#paper thead th:first-child{width:34%}#paper tbody th,#paper tbody td{border:0;border-bottom:1px solid #fff;padding:2.2pt 4pt;vertical-align:middle;font-weight:400}#paper tbody th{text-align:right;background:white;font-size:9pt;border-bottom-color:#ededed}#paper td{text-align:right;white-space:nowrap;background:#f4eade}#paper td:last-child{background:#f0e3d3}#paper .sectionrow th,#paper .sectionrow td{background:white;font-weight:700;color:#000;font-size:9.5pt;letter-spacing:0;text-transform:none;padding-top:3pt;padding-bottom:3pt;border:0}#paper .sectionrow.day th:before{content:'☀ ';color:#e9ad00;font-size:12pt}#paper .sectionrow.night th:before{content:'☾ ';color:#128593;font-size:12pt}#paper .spacer td{height:3pt;padding:0;border:0;background:white}#paper .total th,#paper .subTotal th,#paper .price th,#paper .return th{background:white}#paper .total th,#paper .total td{border-top:1pt solid #d6c9b8;font-weight:700;padding-top:5pt}#paper .total td,#paper .subTotal td,#paper .price td,#paper .return td{color:#000}#paper .total td:last-child,#paper .price td:last-child{font-weight:700}#paper .loan th{font-weight:700;text-align:left;font-size:9pt;background:#eaf3fb;padding:5pt 6pt;border:0}#paper .loan td{font-weight:700;padding:5pt 4pt}#paper .finrow th{font-size:9pt;text-align:left;padding-left:6pt}#paper .finrow td{font-size:9.5pt}#paper .price th,#paper .price td{font-weight:700;padding-top:5pt;padding-bottom:5pt;border-top:1pt solid #d6c9b8}#paper .return th,#paper .return td{font-weight:700;padding-top:3pt;padding-bottom:3pt}#paper footer{display:flex;align-items:end;justify-content:space-between;border:0;font-family:OfferText,Arial,sans-serif;font-size:7.5pt;line-height:1.25;color:#000;margin-top:auto;padding-top:5mm}#paper .offer-web{font-size:10.5pt;white-space:nowrap}
body.preview-mode .layout{display:block}body.preview-mode aside,body.preview-mode .intro,body.preview-mode .metrics{display:none}body.preview-mode .result{max-width:920px;margin:auto}body.preview-mode .paperbar{position:sticky;top:0;z-index:2;background:#f2f4f3;padding:12px 0}body.preview-mode main{padding-top:8px}
@media screen and (max-width:1180px){.layout{grid-template-columns:280px minmax(0,1fr)}.result{overflow-x:auto;padding-bottom:12px}.metrics{min-width:600px}.paperbar{min-width:600px}.quiet{display:none}.brand{margin-right:auto}header{flex-wrap:wrap}}@media screen and (max-width:800px){main{padding:20px 14px}.layout{display:block}.intro{align-items:start;gap:10px}h1{font-size:25px}.intro button{font-size:10px}.result{margin-top:20px}.metrics{min-width:0;gap:6px}.metrics>div{padding:12px 8px}.metrics strong{font-size:17px}.metrics span{font-size:9px}.paperbar{min-width:0}.tag{display:none}header{padding:14px}.brand{width:100%}.button,button{font-size:12px}body.preview-mode .result{overflow:auto}}
@page{size:A4 portrait;margin:0}@media print{html,body{width:210mm;background:white;margin:0;padding:0}header,.intro,aside,.metrics,.paperbar,.screen,#error{display:none!important}main,body.preview-mode main{padding:0;max-width:none;margin:0}.layout,body.preview-mode .layout{display:block}.result,body.preview-mode .result{margin:0;max-width:none;overflow:visible;padding:0}#paper{box-shadow:none;margin:0;break-inside:avoid}.tablewrap{overflow:visible}*{-webkit-print-color-adjust:exact;print-color-adjust:exact}tr{break-inside:avoid}}
/* Jemnější sazba podle původní nabídky Olomouc. */
@font-face{font-family:OfferOriginal;src:url('roboto-regular.ttf');font-weight:400}
#paper table,#paper #inputs{font-family:OfferOriginal,Arial,sans-serif}
#paper table{font-size:8.8pt;line-height:1.25}
#paper tbody th{font-size:8.3pt}
#paper tbody th,#paper tbody td{padding:2.5pt 4pt}
#paper td,#paper td:last-child{background:#f4eade;text-align:center}
#paper .total th,#paper .total td,#paper .price th,#paper .price td,#paper .return th,#paper .return td{font-weight:400;border-top:0;padding-top:3pt;padding-bottom:3pt}
#paper .total td:last-child,#paper .price td:last-child{font-weight:400}
#paper .loan th,#paper .loan td{background:#f4eade;font-family:OfferOriginal,Arial,sans-serif;font-weight:400;font-size:8.6pt;padding:4pt 5pt}
#paper .loan th{text-align:left;background:white}
#paper .finrow th,#paper .finrow td{font-family:OfferOriginal,Arial,sans-serif;font-size:8.6pt;font-weight:400}
#paper .finrow td{text-align:center}
#paper .sectionrow td{background:white}
#paper footer{font-size:7pt;padding-top:9mm}
#paper footer{padding-top:4mm}
/* Financování respektuje stejnou mřížku jako všechny varianty. */
#paper .loan th,#paper .finrow th{width:34%;text-align:right;background:white;font-size:8.3pt;line-height:1.18;white-space:normal;overflow-wrap:normal;padding:2pt 4pt}
#paper .loan td,#paper .finrow td{background:#f4eade;font-size:8.8pt;line-height:1.18;text-align:center;padding:2pt 4pt}
#paper tbody th,#paper tbody td{padding-top:2pt;padding-bottom:2pt}
#paper #inputs{margin-bottom:4mm}
/* Souvislé bílé oddělovače přes všechny čtyři datové sloupce. */
#paper tbody tr td{border-top:0;border-right:0;border-left:0;border-bottom:1px solid #fff}
#paper tbody tr.spacer td{background:#fff;height:3pt;padding:0;border:0}
#paper tbody tr.sectionrow td{background:#fff;border:0}
#paper .sectionrow.credit th:before{content:none}
#paper .sectionrow.credit th,#paper .sectionrow.credit td{padding-top:3pt;padding-bottom:3pt}
#paper #inputs>div{padding-top:2pt;padding-bottom:2pt}
#paper #inputs{margin-bottom:3mm}
#paper tbody th,#paper tbody td{padding-top:1.5pt;padding-bottom:1.5pt}
#paper tbody tr.spacer td{padding:0}
#paper .sectionrow.credit th:before{content:"";display:inline-block;width:13pt;height:13pt;margin-right:4pt;vertical-align:-2pt;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23238ca7' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-6 9 6H3zM5 11v7m5-7v7m4-7v7m5-7v7M3 21h18M4 18h16'/%3E%3C/svg%3E")}
#paper tbody tr.sectionrow th{font-family:OfferTitle,Arial,sans-serif;font-weight:700}
#paper tbody tr.price th,#paper tbody tr.price td,#paper tbody tr.return th,#paper tbody tr.return td{font-family:OfferTitle,Arial,sans-serif;font-weight:700}
#paper tbody tr.price td:last-child,#paper tbody tr.return td:last-child{font-family:OfferTitle,Arial,sans-serif;font-weight:700}
@font-face{font-family:OfferInter;src:url('roboto-regular.ttf') format('truetype');font-style:normal;font-weight:100 900;font-display:swap}
#paper table,#paper #inputs{font-family:OfferInter,Arial,sans-serif}
#paper table td,#paper #inputs b{font-variant-numeric:normal;font-feature-settings:normal}
#paper tbody tr.loan th,#paper tbody tr.loan td,#paper tbody tr.finrow th,#paper tbody tr.finrow td{font-family:OfferInter,Arial,sans-serif}
#paper tbody tr.price th,#paper tbody tr.price td,#paper tbody tr.return th,#paper tbody tr.return td,#paper tbody tr.price td:last-child,#paper tbody tr.return td:last-child{font-family:OfferInter,Arial,sans-serif;font-weight:700}
#paper tbody tr.sectionrow th{font-family:OfferTitle,Arial,sans-serif;font-weight:700}
#paper .sectionrow.savings th:before{content:"";display:inline-block;width:14pt;height:13pt;margin-right:4pt;vertical-align:-2pt;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23238ca7' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10h2v6h-3l-1 4h-3v-3H9v3H6l-1-5a6 6 0 0 1 1-10l2-3 4 2c4-1 7 1 8 6zM8 7h5'/%3E%3Ccircle cx='17' cy='10' r='.8' fill='%23238ca7' stroke='none'/%3E%3Cpath d='M3 10c-2 0-2-3 0-3'/%3E%3C/svg%3E")}
#paper tbody tr.loan td:last-child,#paper tbody tr.finrow:has(+ tr.spacer) td:last-child{font-weight:700}
/* Tučné zůstávají pouze názvy sloupců a nadpisy sekcí. */
#paper thead th{font-weight:700}
#paper tbody tr.price th,#paper tbody tr.price td,#paper tbody tr.return th,#paper tbody tr.return td,#paper tbody tr.price td:last-child,#paper tbody tr.return td:last-child,#paper tbody tr.loan td:last-child,#paper tbody tr.finrow:has(+ tr.spacer) td:last-child{font-family:OfferInter,Arial,sans-serif;font-weight:400}
#paper thead th{font-weight:400}
#paper thead th:last-child{font-weight:700}
.pdf-field{display:grid;grid-template-columns:18px 1fr;align-items:center;gap:6px;margin:14px 0}.pdf-field>input[type=checkbox]{width:16px;margin:0}.pdf-field>input:not([type=checkbox]){grid-column:2}.pdf-field span{font-size:11px;color:#385246}
.test-notice{background:#eaf3fb;color:#28546b;padding:12px 16px;border:1px solid #c8ddec;border-radius:8px;margin-bottom:22px;font-size:12px}.test-notice a{color:inherit}select{width:100%;margin-top:6px;padding:10px;border:1px solid #d4ded5;border-radius:6px;font:inherit;background:white;color:#173a2b}#replace-preview{border:0;border-radius:12px;padding:24px;max-width:1100px;width:94vw;max-height:94vh;overflow:auto;color:#23332e;box-shadow:0 20px 80px #0003}#replace-preview::backdrop{background:#102d28a8}#replace-preview>p{font-size:13px}.replacement-previews{display:grid;grid-template-columns:1fr 1fr;gap:20px;background:#e9ece9;padding:16px;border-radius:8px}.replacement-previews canvas,.replacement-previews img{width:100%;height:auto;display:block;background:white;box-shadow:0 2px 10px #0001}.replacement-previews h3{font-size:13px;margin-bottom:10px}.dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:18px}@media(max-width:700px){.replacement-previews{grid-template-columns:1fr}}@media print{.test-notice,#replace-preview,#source-pdf-panel{display:none!important}}

/* Test palette from the supplied JOM offer. */
#paper h2{color:#0086d6}#paper thead th{background:#0086d6}#paper thead th:last-child{background:#7acc00}#paper tbody td,#paper .loan td,#paper .finrow td{background:#e8f4fb}#paper tbody td:last-child{background:#f2f8e9}#paper tbody .sectionrow td,#paper tbody .spacer td{background:white}#paper::before{content:"";position:absolute;bottom:0;left:0;width:78.5714286%;height:18pt;background:#0086d6}#paper::after{content:"";position:absolute;bottom:0;right:0;width:21.4285714%;height:18pt;background:#7acc00}

/* Company contact details appear only on the original closing page. */
#paper footer{visibility:hidden}

@font-face{font-family:OfferRoboto;src:url('roboto-regular.ttf')}@font-face{font-family:OfferRoboto;src:url('roboto-bold.ttf');font-weight:700}
#paper,#paper h2,#paper h3,#paper table,#paper table th,#paper table td,#paper #inputs,#paper footer{font-family:OfferRoboto,Arial,sans-serif}

#paper .sectionrow.savings th:before,#paper .sectionrow.credit th:before{content:none;display:none}
#paper .section-icon{display:inline-block;width:13pt;height:13pt;margin-right:4pt;vertical-align:middle;object-fit:contain}

#paper .sectionrow.day th:before,#paper .sectionrow.night th:before{display:inline-block;vertical-align:middle;line-height:1;width:13pt;text-align:center;margin-right:4pt}

#paper tbody tr.total td:last-child,#paper tbody tr.subTotal td:last-child,#paper tbody tr.loan td:last-child,#paper tbody tr.finrow.payment td:last-child,#paper tbody tr.price td:last-child{font-family:OfferRoboto,Arial,sans-serif;font-weight:700}

#paper h2{font-size:26pt}

#paper #inputs{font-size:10pt;color:#171717}

/* Interior economy page: use the former brand header space for readable data. */
#paper{padding-top:12mm}
#paper .offer-header{display:none}
#paper tbody th{font-size:9pt}
#paper tbody td{font-size:9.5pt}
#paper .sectionrow th,#paper .sectionrow td{font-size:10pt}
/* Final PDF preview: small thumbnails stay bounded in memory, one large page. */
#replace-preview{width:min(1200px,96vw);max-width:1200px;max-height:94vh;padding:24px;box-sizing:border-box;overflow:auto}
.offer-preview-layout{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;align-items:start;background:#edf1f5;padding:12px;border-radius:10px}
#offer-preview-thumbnails{display:grid;gap:12px;max-height:65vh;overflow:auto;padding:4px 8px 4px 4px}
.offer-page-thumbnail{display:grid;justify-items:center;gap:6px;border:2px solid transparent;background:white;border-radius:6px;padding:7px;cursor:pointer;color:#273746;font:inherit}
.offer-page-thumbnail[aria-current="true"]{border-color:#0086d6;background:#e8f4fb}
.offer-page-thumbnail canvas{width:100%;height:auto;box-shadow:0 1px 5px #0002}
.offer-page-thumbnail:focus-visible{outline:3px solid #0086d6;outline-offset:2px}
.offer-page-thumbnail span{font-size:13px}
.offer-preview-document{min-width:0;max-height:70vh;overflow:auto;padding:0 4px 8px}
.offer-preview-toolbar{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;background:#edf1f5}
.offer-preview-toolbar button{white-space:nowrap}
#offer-page-canvas{display:block;width:100%;height:auto;background:white;box-shadow:0 2px 8px #0002}
#replace-preview .dialog-actions{position:sticky;bottom:-24px;background:white;padding:14px 0 4px;z-index:2}
@media(max-width:650px){#replace-preview{padding:12px}.offer-preview-layout{grid-template-columns:minmax(0,1fr);gap:10px;padding:8px}#offer-preview-thumbnails{display:flex;max-height:155px;overflow:auto;gap:8px}.offer-page-thumbnail{flex:0 0 82px;padding:4px}.offer-page-thumbnail canvas{width:68px}.offer-preview-document{max-height:58vh}.offer-preview-toolbar{font-size:13px}.offer-preview-toolbar button{font-size:12px;padding:7px}#replace-preview .dialog-actions{bottom:-12px}}
#offer-preview-pages{max-height:70vh;overflow:auto;overscroll-behavior:contain;background:#e8edf2;padding:16px;border-radius:8px;scrollbar-gutter:stable}
.offer-scroll-page{margin:0 auto 24px;max-width:850px}
.offer-scroll-page:last-child{margin-bottom:0}
.offer-scroll-page figcaption{text-align:center;font-size:13px;color:#536374;margin-bottom:8px}
.offer-scroll-sheet{width:100%;background:white;box-shadow:0 2px 8px #0002;overflow:hidden}
.offer-scroll-sheet canvas{display:block;width:100%;height:auto}
#offer-preview-pages:focus-visible{outline:2px solid #0086d6;outline-offset:2px}
@media(max-width:650px){#offer-preview-pages{padding:8px;max-height:68vh}.offer-scroll-page{margin-bottom:16px}}
.offer-zoom-toolbar{display:flex;align-items:center;justify-content:center;gap:10px;padding:8px 0 12px}
.offer-zoom-toolbar button{min-width:42px;min-height:40px;padding:6px 12px;font-size:18px}
.offer-zoom-toolbar #offer-zoom-fit{font-size:14px}
#offer-zoom-value{min-width:62px;text-align:center;font-size:14px;font-variant-numeric:tabular-nums}
#offer-preview-pages .offer-scroll-page{max-width:none;flex-shrink:0}

/* Price and payback labels match the other icon-led section labels. */
#paper tbody tr.price th,#paper tbody tr.return th{font-family:OfferTitle,Arial,sans-serif;font-size:10pt;font-weight:700}
#paper tbody tr.price th .section-icon,#paper tbody tr.return th .section-icon{vertical-align:middle}

/* Calculator workspace and live results. The A4 sheet keeps its export sizing. */
.workspace-summary h2 { font-size: 22px; margin: 5px 0; }
.workspace-summary h3 { margin: 0; }
#workspace-project { margin: 0 0 14px; overflow-wrap: anywhere; }
.workspace-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; margin-bottom: 14px; }
.workspace-steps button { min-height: 44px; padding: 7px 4px; }
.workspace-steps [aria-current="step"] { background: #eaf5e5; border-color: #62926d; color: #285c36; font-weight: 700; }
.workspace-table-wrap { overflow-x: auto; }
.workspace-table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.workspace-table th, .workspace-table td { border-bottom: 1px solid #dce6e1; padding: 10px 6px; text-align: right; }
.workspace-table th:first-child { text-align: left; }
.workspace-table td { white-space: nowrap; }
.workspace-table tbody tr:last-child { background: #eaf5e5; color: #285c36; font-weight: 700; }
.workspace-loan { background: #f2f5f4; border-radius: 9px; margin-top: 16px; padding: 14px; }
.workspace-loan small { color: #53665f; font-weight: normal; }
.workspace-loan dl { margin: 8px 0 0; }
.workspace-loan dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid #dce6e1; }
.workspace-loan dd { margin: 0; text-align: right; font-weight: 700; }
.workspace-export { margin-top: 14px; }
.workspace-export button { width: 100%; }
#export-pdf-status:empty { display: none; }
#workspace-next { display: none; }
@media screen {
  main { max-width: 1240px; }
  .layout { grid-template-columns: minmax(0,1.25fr) minmax(365px,1fr); gap: 18px; }
  .result { overflow: visible; }
  .paperbar { min-width: 0; }
  .workspace-paper { height: 0; overflow: hidden; visibility: hidden; }
  body:not(.preview-mode) .workspace-print-hint { display: none; }
  body.preview-mode .workspace-summary { display: none; }
  body.preview-mode .workspace-paper { height: auto; overflow: auto; visibility: visible; }
  .layout aside label { font-size: 13px; }
  .layout aside h2 { font-size: 18px; margin-bottom: 12px; }
  #identity { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); column-gap: 12px; }
  #identity label:first-child { grid-column: 1/-1; }
  .layout aside input:not([type=checkbox]), .layout aside select { min-width: 0; min-height: 44px; font-size: 16px; }
  .layout aside .button { display: inline-block; }
}
@media screen and (max-width: 800px) {
  .layout { display: block; }
  body:not(.preview-mode):not([data-offer-step=economy]) .workspace-summary,
  body:not(.preview-mode):not([data-offer-step=economy]) .paperbar { display: none; }
  #workspace-next { display: block; width: 100%; min-height: 44px; }
  .workspace-table th, .workspace-table td { font-size: 12px; padding: 8px 4px; }
  .workspace-table td { white-space: normal; }
  .workspace-loan dl div { font-size: 13px; }
}
@media screen and (max-width: 380px) {
  .layout aside .fields, #identity { grid-template-columns: minmax(0,1fr); }
}
@media print { .workspace-summary, #workspace-next { display: none !important; } }

#jom-review { background: #f4f8f4; border-color: #cbded0; }
#jom-review-status { color: #40574b; margin: 0 0 8px; }
.jom-field-origin { display: inline-block; margin-top: 5px; color: #355743; font-size: 12px; }
.jom-field-origin[data-missing="true"] { color: #865217; }

#export-review { width: min(560px,94vw); max-height: 90vh; padding: 20px; border: 1px solid #dce6e1; border-radius: 12px; color: #23332e; }
#export-review::backdrop { background: #152c2670; }
#export-review h2 { font-size: 22px; margin: 0 0 8px; }
#export-review-fields { margin: 12px 0; }
#export-review-fields > div { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; border-top: 1px solid #dce6e1; padding: 8px 0; }
#export-review-fields dd { margin: 0; text-align: right; font-weight: 700; overflow-wrap: anywhere; }
#export-review-fields p { grid-column: 1/-1; margin: 0; font-size: 13px; }
#export-review-fields .export-review-error { color: #a02827; }
#export-review-fields .export-review-warning { color: #865217; }
#export-review .dialog-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }

.workspace-delta {
  display: block;
  margin-top: 3px;
  color: #40574b;
  font-size: .85em;
  font-weight: 600;
  white-space: nowrap;
}
#workspace-delta-note { margin: 7px 0 0; }

.offer-source { padding: 14px; margin-bottom: 12px; border: 1px solid #dce6e1; border-radius: 9px; }
.offer-source-jom { background: #f4f8ee; border-color: #cbdcca; }
.offer-source-ikomunita { background: #f2f7fb; border-color: #c8ddec; }
.offer-source-tag { display: inline-block; padding: 3px 8px; border-radius: 12px; background: #dfeedd; color: #285c36; font-size: 12px; font-weight: 700; }
.offer-source-ikomunita .offer-source-tag { background: #dcebf5; color: #28546b; }
.offer-source h3 { margin: 8px 0 0; }
.offer-source p { margin: 6px 0 10px; color: #40574b; }
.offer-source-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-source .button.offer-source-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-bottom: 0;
  text-align: center;
}
.offer-source .offer-source-action input[type=file] { position: absolute; inset: 0; width: 100%; margin: 0; opacity: 0; cursor: pointer; }
.offer-source .offer-source-action:focus-within { outline: 2px solid #16634c; outline-offset: 2px; }
.offer-source .offer-source-action:has(input:disabled) { opacity: .5; }
