.domestic-models{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.domestic-model{overflow:hidden}.domestic-model>.domestic-picture{width:100%;height:260px;background:#fff;padding:16px}.domestic-model .panel-body p{line-height:1.6}.domestic-picture{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--border,#e1e6de);border-radius:8px;background:#fff;cursor:zoom-in;padding:6px;width:150px;height:120px;max-width:100%}.domestic-picture img{width:100%;height:100%;object-fit:contain}.domestic-picture.large{width:100%;height:240px}.domestic-picture-empty{display:inline-block;padding:12px;color:var(--muted,#738574);font-size:12px}.domestic-code{font-family:monospace;font-size:12px;color:var(--muted,#738574);margin-top:8px;overflow-wrap:anywhere}.domestic-table-wrap{overflow-x:auto;max-width:100%}.domestic-table{table-layout:fixed;min-width:920px;width:100%}.domestic-table th:nth-child(1){width:7%}.domestic-table th:nth-child(2){width:16%}.domestic-table th:nth-child(3){width:29%}.domestic-table th:nth-child(4){width:12%}.domestic-table th:nth-child(5){width:20%}.domestic-table th:nth-child(6){width:16%}.domestic-table td{vertical-align:middle;white-space:normal;overflow-wrap:anywhere}.domestic-table .field{margin:8px 0}.domestic-table .field label{font-size:11px}.domestic-table input{min-width:0;width:100%}.domestic-table [hidden]{display:none!important}.domestic-bom-header{display:grid;grid-template-columns:280px 1fr;gap:28px;padding:24px}.domestic-bom-header p{line-height:1.65}.domestic-total{padding:22px;border-top:1px solid var(--border,#e1e6de);background:var(--surface-soft,#f6f8f2)}.domestic-total>div{display:flex;align-items:center;justify-content:space-between;gap:16px}.domestic-total strong{font-size:22px}.domestic-total p{font-size:13px;margin:10px 0 0;color:var(--muted,#738574)}.domestic-full-picture{display:block;width:100%;max-height:65vh;object-fit:contain}.domestic-confirm{display:flex;gap:10px;align-items:center;padding:12px 0}.domestic-confirm input{width:auto}.domestic-history{padding:16px 0}.domestic-tabs a{text-decoration:none}.domestic-table .right{white-space:normal}.domestic-table-wrap+.domestic-total{margin:0}.domestic-table .button.small{font-size:11px;margin-top:10px}.domestic-model .flex h2{margin:0}.modal:has(.domestic-table){max-width:1260px}.domestic-table .sub{margin-top:7px}@media(max-width:760px){.domestic-models{grid-template-columns:1fr}.domestic-bom-header{grid-template-columns:1fr;padding:16px}.domestic-bom-header .domestic-picture{height:190px}.domestic-model>.domestic-picture{height:210px}.domestic-total>div{align-items:flex-start;flex-direction:column}.domestic-table-wrap{width:100%}}@media print{.domestic-table{min-width:0}.domestic-table .button{display:none}}
.domestic-picture-overlay{position:fixed;inset:24px;z-index:120;background:#fff;padding:20px;border:1px solid var(--border);border-radius:16px;display:flex;flex-direction:column;align-items:center;gap:12px;box-shadow:0 18px 64px #10281830}.domestic-picture-overlay img{width:100%;height:calc(100% - 60px);object-fit:contain}
.modal-foot:has(.domestic-save-guidance){flex-wrap:wrap}.domestic-save-guidance{flex:1 1 280px;margin-right:auto;font-size:12px;line-height:1.5;color:var(--muted)}.domestic-save-guidance.has-error{color:var(--red);font-weight:600}#dialog-form:has(.domestic-save-guidance) [aria-invalid=true]{border-color:var(--red)}
.domestic-picker{border:1px solid var(--line);border-radius:9px;margin:16px 0 22px;overflow:hidden;background:var(--white,#fff)}
.domestic-picker-head,.domestic-picker-foot,.domestic-selected-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;flex-wrap:wrap}
.domestic-picker-head{border-bottom:1px solid var(--line)}
.domestic-picker-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,240px);gap:12px;padding:12px 14px}
.domestic-picker-filters .field{margin:0;min-width:0}.domestic-picker-filters input,.domestic-picker-filters select{width:100%;min-width:0}
.domestic-picker-list{max-height:270px;overflow:auto;overscroll-behavior:contain;border-top:1px solid var(--line)}
.domestic-picker-item{display:flex;align-items:center;width:100%;border-bottom:1px solid var(--line);color:var(--text);background:var(--white,#fff);min-height:80px}
.domestic-picker-select{display:flex;align-items:center;gap:14px;flex:1;min-width:0;align-self:stretch;text-align:left;padding:10px 14px;border:0;color:inherit;background:transparent}
.domestic-picker-item:hover,.domestic-picker-item[data-added=true]{background:var(--bg)}.domestic-picker-select:focus-visible{outline-offset:-3px}.domestic-picker-select[aria-disabled=true]{cursor:default}
.domestic-picker .domestic-picker-remove.button.small{flex-shrink:0;margin-right:14px;min-height:44px}
.domestic-picker-item[hidden],.domestic-picker [hidden]{display:none!important}
.domestic-picker-picture{width:62px;height:58px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid var(--line);border-radius:6px;padding:4px;text-align:center;font-size:10px;color:var(--muted)}
.domestic-picker-picture img{width:100%;height:100%;object-fit:contain}.domestic-picker-description{flex:1;min-width:0;overflow-wrap:anywhere}.domestic-picker-description b{display:block;font-size:12px;line-height:1.5}.domestic-picker-description>span{display:block;font-size:11px;color:var(--muted);margin-top:4px}
.domestic-picker-add{font-size:12px;font-weight:600;color:var(--fh-green);white-space:nowrap;flex-shrink:0}.domestic-picker-foot{font-size:12px;min-height:54px}.domestic-selected-head{padding-left:0;padding-right:0}
@media(max-width:600px){.domestic-picker-filters{grid-template-columns:1fr}.domestic-picker-list{max-height:230px}.domestic-picker-select{display:grid;grid-template-columns:52px minmax(0,1fr);gap:4px 10px;padding:10px}.domestic-picker-picture{width:52px;height:52px;grid-row:1 / 3}.domestic-picker-add{font-size:11px;grid-column:2}.domestic-picker-remove{margin-right:10px}.domestic-picker-head>span{font-size:11px}}
.domestic-price-scroll{max-height:440px;overflow:auto;overscroll-behavior:contain}.domestic-price-entry{width:100%;min-width:640px;table-layout:fixed}.domestic-price-entry th{position:sticky;top:0;z-index:1;background:var(--bg)}.domestic-price-entry th:first-child{width:94px}.domestic-price-entry th:nth-child(3){width:65px}.domestic-price-entry th:last-child{width:150px}.domestic-price-entry td,.domestic-price-comparison td{white-space:normal;overflow-wrap:anywhere}.domestic-price-entry .field{margin:0}.domestic-price-entry input{min-width:0;width:100%;font-variant-numeric:tabular-nums}.domestic-price-entry .domestic-picture,.domestic-price-comparison .domestic-picture{width:66px;height:66px}.domestic-price-entry [hidden]{display:none!important}.domestic-price-comparison .domestic-code{white-space:normal}.domestic-price-entry .sub,.domestic-price-comparison .sub{line-height:1.6}.domestic-price-entry tr:focus-within{background:var(--bg)}#domestic-price-count{padding:12px 0}
@media(max-width:600px){.domestic-price-entry{min-width:0}.domestic-price-entry thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.domestic-price-entry tbody,.domestic-price-entry tr{display:block}.domestic-price-entry tr{position:relative;padding:12px 10px 12px 84px;border-bottom:1px solid var(--line)}.domestic-price-entry td{display:block;padding:0;border:0;min-width:0}.domestic-price-entry td:first-child{position:absolute;left:8px;top:12px;width:66px}.domestic-price-entry td:nth-child(3){display:none}.domestic-price-entry td:last-child{margin-top:12px}.domestic-price-entry .field label{font-size:11px}.domestic-price-scroll{max-height:420px}}
@media(max-width:600px){.domestic-price-entry tbody tr td{padding:0}.domestic-picker .domestic-picker-remove.button.small{margin-right:10px}}
.domestic-compare-suppliers{display:flex;flex-wrap:wrap;gap:10px 20px;margin:0 0 18px;padding:12px;border:1px solid var(--line);border-radius:8px}.domestic-compare-suppliers legend{font-size:12px;color:var(--muted)}.domestic-compare-suppliers label{display:flex;gap:8px;align-items:center;max-width:100%;overflow-wrap:anywhere}.domestic-compare-suppliers input{width:auto;flex-shrink:0}#domestic-compare-results>.table-wrap{margin-top:12px;max-height:55vh;overflow:auto}#domestic-compare-results table{min-width:660px}#domestic-compare-results th{position:sticky;top:0;z-index:1;background:var(--bg);min-width:135px}#domestic-compare-results th:first-child{min-width:90px}#domestic-compare-results th:nth-child(2){min-width:240px}#domestic-compare-results th .sub{font-weight:400;text-transform:none;font-size:11px}
.domestic-po-document{margin:24px 0;line-height:1.7}.domestic-po-document>.form-grid{margin:20px 0;gap:20px}.domestic-po-document .table-wrap{margin:20px 0}.domestic-po-document table,#domestic-po-rows table{min-width:740px}.domestic-po-text{white-space:pre-wrap;overflow-wrap:anywhere}#domestic-po-rows .field{margin:0}#domestic-po-rows input[type=number]{min-width:120px}#domestic-po-rows input[type=checkbox]{width:20px;height:20px}.domestic-po-print img{width:66px;height:66px;object-fit:contain}.domestic-po-print .domestic-picture{display:block;border:0;background:white;padding:0}.domestic-po-print .table-wrap{overflow:visible}.domestic-po-print table{min-width:0;width:100%}.domestic-po-print td{white-space:normal}.domestic-po-print tr{break-inside:avoid}

.domestic-po-brand{margin-bottom:20px}.domestic-po-brand img{width:150px;height:auto;object-fit:contain}.domestic-po-brand p{font-size:10px;color:var(--muted);margin-top:6px}

/* Domestic PDF only: normal screen and immutable snapshots remain unchanged. */
@media print{
 html:has(.domestic-po-print),body:has(.domestic-po-print){background:#fff!important}
 .print-sheet.domestic-po-print{padding:4mm;font-size:10px;background:#fff!important}
 .domestic-po-print .domestic-po-document{margin:0;line-height:1.45}
 .domestic-po-print .domestic-po-brand{margin-bottom:8px}
 .domestic-po-print h2{font-size:15px;margin:8px 0}
 .domestic-po-print .form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0;align-items:start}
 .domestic-po-print .form-grid>div{min-width:0}
 .domestic-po-print .domestic-po-addresses{border:1px solid #8b9e8d;padding:10px;break-inside:avoid}
 .domestic-po-print .muted{color:#45614b;font-weight:600}
 .domestic-po-print .table-wrap{margin:14px 0;overflow:visible}
 .domestic-po-print table{table-layout:fixed;border-collapse:collapse;font-size:10px}
 .domestic-po-print thead{display:table-header-group}
 .domestic-po-print th,.domestic-po-print td,.domestic-po-print tr:last-child td{border:1px solid #8b9e8d;padding:8px 6px;white-space:normal;overflow-wrap:anywhere}
 .domestic-po-print th{color:#21472a;background:#eef3e9;font-size:8px;letter-spacing:0;position:static}
 .domestic-po-print th:nth-child(1){width:13%}
 .domestic-po-print th:nth-child(2){width:29%}
 .domestic-po-print th:nth-child(3),.domestic-po-print th:nth-child(4){width:13%}
 .domestic-po-print th:nth-child(5),.domestic-po-print th:nth-child(6){width:16%}
 .domestic-po-print td:nth-child(n+5){text-align:right;font-variant-numeric:tabular-nums}
 .domestic-po-print img{max-width:100%}
 .domestic-po-print tr{break-inside:avoid;page-break-inside:avoid}
}
