.stugtrygg-presence-form{display:grid!important;grid-template-columns:minmax(0,1fr);gap:14px;width:min(620px,100%);margin:16px 0!important;padding:16px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.stugtrygg-presence-form>label{margin:0}.stugtrygg-presence-form>label:has(>input[type=checkbox]){display:flex;align-items:center;gap:9px}.stugtrygg-presence-form input[type=checkbox],.stugtrygg-presence-form input[type=radio]{display:block;flex:0 0 auto;width:18px;height:18px;margin:0;padding:0;accent-color:var(--olive)}.stugtrygg-alert-email-field{display:grid;gap:5px}.stugtrygg-alert-email-field textarea::placeholder{color:#6b7465;opacity:1}.stugtrygg-alert-options,.stugtrygg-presence-options{display:grid;gap:9px;margin:0;padding:13px 14px;border:1px solid var(--line);border-radius:8px;background:#fff}.stugtrygg-alert-options legend,.stugtrygg-presence-options legend{padding:0 6px;color:var(--olive);font-weight:750}.stugtrygg-alert-options>label,.stugtrygg-presence-options>label{display:flex;align-items:center;gap:9px;margin:0;color:var(--ink);cursor:pointer}.stugtrygg-presence-options>.stugtrygg-presence-date{display:grid;grid-template-columns:minmax(0,1fr);gap:5px;margin:0 0 3px 27px;color:var(--olive);cursor:default}.stugtrygg-presence-date input{max-width:260px}.stugtrygg-presence-form:has(input[name=customer_presence_mode][value=away]:checked) .stugtrygg-presence-date,.stugtrygg-presence-form:has(input[name=customer_presence_mode][value=always]:checked) .stugtrygg-presence-date{display:none}.stugtrygg-presence-form>.button{justify-self:start;min-height:42px;margin:0;border:1px solid var(--olive);border-radius:7px;padding:8px 14px;background:#fff;color:var(--olive);font-weight:700;text-decoration:none}.stugtrygg-presence-form>.button:hover,.stugtrygg-presence-form>.button:focus-visible{background:var(--soft)}@media(max-width:680px){.stugtrygg-presence-form{padding:13px}.stugtrygg-presence-options>.stugtrygg-presence-date{margin-left:0}.stugtrygg-presence-date input{max-width:none}}

:root{color-scheme:light;--olive:#2e4019;--copper:#a4532b;--ink:#172019;--muted:#596253;--line:#dce2d5;--paper:#fbfcf8;--soft:#f1f4eb}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}.admin-shell{width:min(760px,calc(100% - 32px));margin:44px auto 70px}.admin-brand{display:flex;align-items:center;gap:10px;color:var(--olive);font-weight:800;letter-spacing:.08em;text-decoration:none;margin-bottom:28px}.admin-brand img{display:block}.admin-brand small{display:block;color:var(--copper);font-size:10px;letter-spacing:.2em}.admin-card,.admin-heading{border:1px solid var(--line);border-radius:12px;background:#fff;padding:clamp(22px,4vw,36px);box-shadow:0 12px 40px #2332190c}.admin-card{margin:20px 0}.admin-heading{position:relative;padding-right:155px}.admin-heading h1,.admin-card h1{font-size:clamp(28px,4vw,38px);line-height:1.16;color:var(--olive);margin:0 0 12px}.admin-heading p{margin:0;color:var(--muted)}.admin-heading .eyebrow,.eyebrow{color:var(--copper);font-size:12px;font-weight:750;letter-spacing:.13em;margin:0 0 12px}.admin-card h2{font-size:23px;color:var(--olive);margin:0 0 12px}.admin-card h3{font-size:18px;color:var(--olive);margin:28px 0 10px}.admin-card>p{color:var(--muted)}label{display:block;margin:18px 0 6px;font-weight:650;color:var(--olive)}input,textarea{display:block;width:100%;border:1px solid #bfc9b6;border-radius:7px;padding:12px 13px;font:inherit;color:var(--ink);background:#fff}input:focus,textarea:focus{outline:3px solid #a4532b36;border-color:var(--copper)}textarea{resize:vertical}.button{display:inline-flex;justify-content:center;align-items:center;min-height:46px;margin-top:22px;border:1px solid var(--olive);border-radius:7px;padding:10px 18px;background:var(--olive);color:#fff;font:inherit;font-weight:700;text-decoration:none;cursor:pointer}.button:hover,.button:focus-visible{background:#405727}.button.secondary{background:#fff;color:var(--olive)}.back-link{display:block;margin-top:22px;color:var(--olive);font-weight:650}.logout-form{position:absolute;right:26px;top:20px}.logout-form .button{margin:0}.notice{padding:12px 16px;border-radius:7px;margin:16px 0}.notice.ok{background:#e8f3e5;color:#294819}.notice.error{background:#fff0eb;color:#8a3518}.hint,.admin-foot{font-size:13px;color:var(--muted)}.admin-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.admin-grid .admin-card{margin:18px 0}.user-list{margin:18px 0;border-top:1px solid var(--line)}.user-row{display:grid;grid-template-columns:1fr 1.6fr .8fr;gap:12px;padding:12px 8px;border-bottom:1px solid var(--line);font-size:14px;overflow-wrap:anywhere}.user-head{font-weight:750;color:var(--olive)}.password-form{border:1px solid var(--line);border-radius:9px;background:#fff;padding:26px}.admin-foot{text-align:center;margin-top:30px}.admin-foot a{color:var(--olive)}@media(max-width:620px){.admin-shell{margin-top:22px}.admin-grid{grid-template-columns:1fr}.user-row{grid-template-columns:1fr;gap:2px}.user-head{display:none}}

.admin-date-field{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;width:100%;margin-top:0}.admin-date-display{min-width:0}.admin-date-picker{min-width:58px;border:1px solid var(--olive);border-radius:7px;padding:8px 10px;background:#fff;color:var(--olive);font:inherit;font-weight:700;cursor:pointer}.admin-date-picker:hover,.admin-date-picker:focus-visible{background:var(--soft)}.admin-date-native{position:absolute!important;right:0!important;bottom:0!important;width:1px!important;height:1px!important;min-height:0!important;padding:0!important;border:0!important;opacity:0!important;pointer-events:none!important}

.installation-address-choice{grid-column:1/-1;margin:4px 0 14px}.installation-address-choice>summary{display:inline-flex;align-items:center;min-height:42px;padding:9px 14px;border:1px solid var(--olive,#304a17);border-radius:7px;background:#fff;color:var(--olive,#304a17);font-weight:700;cursor:pointer;list-style:none}.installation-address-choice>summary::-webkit-details-marker{display:none}.installation-address-choice>summary::before{content:"+";margin-right:8px;font-size:18px;line-height:1}.installation-address-choice[open]>summary::before{content:"−"}.installation-address-fields{display:grid;gap:6px;margin-top:10px;padding:12px;border:1px solid #d8dfd0;border-radius:8px;background:#f8faf6}.installation-address-fields label{display:grid;gap:5px;font-weight:700}.installation-address-fields input{width:100%}.installation-address-fields small{color:#5d6756}

/* Billing workspace */
.property-lookup-field{display:grid;align-content:start;gap:6px;margin-top:8px}.property-lookup-field>label{margin:0!important}.property-lookup-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.property-lookup-tools[hidden]{display:none}.property-lookup-tools .button{margin:0;padding:7px 10px;font-size:13px}.property-lookup-tools a{color:var(--olive);font-weight:650}.property-lookup-field small{color:var(--muted);line-height:1.4}
.invoice-green-toggle{display:flex;align-items:center;gap:9px}.invoice-green-toggle input{display:inline-block;width:20px;height:20px;margin:0;accent-color:var(--olive)}
.admin-shell:has(.billing-nav){width:min(1180px,calc(100% - 32px))}.billing-nav{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0 2px}.billing-nav a:not(.button){display:inline-flex;padding:9px 13px;border-radius:7px;color:var(--olive);font-weight:650;text-decoration:none}.billing-nav a:not(.button):hover,.billing-nav a:not(.button):focus-visible{background:var(--soft)}.billing-nav .button{margin:0;margin-left:auto}.billing-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:22px 0}.billing-stats div,.billing-stats>a{display:block;padding:18px;border:1px solid var(--line);border-radius:9px;background:var(--paper);color:inherit;text-decoration:none}.billing-stats>a:hover,.billing-stats>a:focus-visible{border-color:#aab998;background:#f7f9f3}.billing-stats>a:focus-visible{outline:3px solid #a4532b55;outline-offset:2px}.billing-stats strong,.billing-stats span{display:block}.billing-stats strong{font-size:24px;color:var(--olive)}.billing-stats span{font-size:13px;color:var(--muted)}.billing-table{overflow:auto;margin:16px 0}.billing-table table{width:100%;min-width:700px;border-collapse:collapse;font-size:14px}.billing-table th,.billing-table td{text-align:left;padding:10px 11px;border-bottom:1px solid var(--line);vertical-align:top}.billing-table th{color:var(--olive);background:var(--soft)}.billing-table a{color:var(--olive);font-weight:650}.billing-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}.billing-form-grid label,.billing-line label{margin-top:8px}.billing-form-grid input,.billing-form-grid select,.billing-line input,.billing-line select{display:block;width:100%;border:1px solid #bfc9b6;border-radius:7px;padding:11px 12px;background:#fff;font:inherit;color:var(--ink)}.billing-line{display:grid;grid-template-columns:minmax(0,3fr) minmax(100px,1fr);gap:16px;border-top:1px solid var(--line);padding:6px 0}.inline-form{display:inline-block;margin:4px}.inline-form button{border:0;background:transparent;color:var(--olive);text-decoration:underline;cursor:pointer;font:inherit;padding:2px}.billing-line select:focus,.billing-line input:focus,.billing-form-grid input:focus,.billing-form-grid select:focus{outline:3px solid #a4532b36;border-color:var(--copper)}[hidden]{display:none!important}@media(max-width:680px){.billing-stats{grid-template-columns:repeat(2,1fr)}.billing-form-grid{grid-template-columns:1fr}.billing-nav .button{margin-left:0}.billing-line{grid-template-columns:1fr 100px}.admin-shell:has(.billing-nav){width:calc(100% - 22px)}.admin-card{padding:20px}}
.billing-line{grid-template-columns:minmax(0,3fr) minmax(110px,.75fr) minmax(110px,.75fr);align-items:end}.billing-line label{min-width:0}.billing-line .article-search{margin-bottom:7px}.billing-line .article-picker{max-width:100%}.invoice-product-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.button-secondary{background:#edf1e8!important;color:var(--olive)!important;border:1px solid #c9d2c0!important}.invoice-list{table-layout:fixed;min-width:1100px!important}.invoice-list th:nth-child(1),.invoice-list td:nth-child(1){width:5%}.invoice-list th:nth-child(2),.invoice-list td:nth-child(2){width:15%}.invoice-list th:nth-child(3),.invoice-list td:nth-child(3),.invoice-list th:nth-child(4),.invoice-list td:nth-child(4){width:9%}.invoice-list th:nth-child(5),.invoice-list td:nth-child(5){width:10%}.invoice-list th:nth-child(6),.invoice-list td:nth-child(6){width:15%}.invoice-list th:nth-child(7),.invoice-list td:nth-child(7){width:37%}.invoice-list td{overflow-wrap:anywhere}.invoice-list .invoice-amount{font-variant-numeric:tabular-nums;white-space:nowrap}.invoice-actions-cell{background:#fbfcf9}.invoice-actions-stack{display:grid;gap:7px;align-content:start}.invoice-actions-stack>a{justify-self:start}.invoice-actions-stack .inline-form{display:flex;align-items:end;gap:8px;flex-wrap:wrap;width:100%;margin:0;padding:9px 10px;border:1px solid var(--line);border-radius:7px;background:#fff}.invoice-actions-stack .inline-form label{display:grid;gap:4px;margin:0;font-size:12px}.invoice-actions-stack .inline-form input[type=date]{width:155px;max-width:100%;padding:8px;border:1px solid #bfc9b6;border-radius:6px;font:inherit}.invoice-actions-stack .inline-form label:has(input[type=checkbox]){display:flex;align-items:center;gap:6px}.invoice-actions-stack .inline-form button{border:0;border-radius:6px;padding:8px 11px;background:var(--olive);color:white;font:600 13px Arial,sans-serif;cursor:pointer}.invoice-actions-stack .inline-form button:hover{background:#425829}.invoice-actions-stack .hint{font-size:12px}.invoice-actions-stack .inline-form:has(input[name=payment_notice_sent]){background:#f4f6f0}.article-number{color:var(--muted);font-size:9pt}.deduction-row{font-weight:600;color:var(--olive)}.deduction-note{margin:3mm 0 0;text-align:right;color:var(--muted);font-size:9pt}.invoice-actions{width:min(210mm,calc(100% - 32px));margin:16px auto 28px;text-align:right}.invoice-actions .print-button{margin:0}
@media(max-width:680px){.billing-line{grid-template-columns:minmax(0,1fr) 90px 100px;gap:8px}.invoice-product-tools{align-items:flex-start;flex-direction:column}.invoice-actions{width:calc(100% - 22px)}.invoice-list{min-width:1100px!important}}
.invoice-bulk-toolbar,.product-list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin:18px 0;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--olive);font-size:14px}.invoice-bulk-toolbar form,.product-list-toolbar form{margin:0}.invoice-bulk-toolbar button,.product-list-toolbar button{min-height:38px;border:1px solid var(--olive);border-radius:6px;padding:8px 14px;background:var(--olive);color:#fff;font:600 14px system-ui,sans-serif;cursor:pointer}.invoice-bulk-toolbar button:hover,.product-list-toolbar button:hover{background:#425829}.invoice-actions-stack .inline-form{align-items:center;min-height:40px;padding:4px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}.invoice-actions-stack .inline-form:has(input[name=payment_notice_sent]){background:transparent}.invoice-actions-stack .inline-form label{display:flex;align-items:center;gap:7px;white-space:nowrap}.invoice-actions-stack .inline-form button{min-height:34px}.payment-notice-row{display:flex;align-items:center;min-height:40px;padding:4px 0;border-bottom:1px solid var(--line)}.payment-notice-toggle{display:flex;align-items:center;gap:8px;margin:0;color:var(--ink);font-size:13px;font-weight:600;cursor:pointer}.payment-notice-toggle input[type=checkbox]{display:block;width:18px;height:18px;margin:0;accent-color:var(--olive)}.article-field{min-width:0}.article-field>label{display:block;margin:8px 0 6px}.article-search-controls{position:relative;z-index:5;display:flex;align-items:stretch;gap:7px}.article-search-controls .article-search{min-width:0;margin:0}.article-add-link{display:inline-flex;flex:0 0 46px;align-items:center;justify-content:center;border:1px solid var(--olive);border-radius:7px;background:var(--olive);color:#fff!important;font-size:28px;line-height:1;text-decoration:none}.article-add-link:hover,.article-add-link:focus-visible{background:#425829}.article-results{position:absolute;top:calc(100% + 5px);left:0;right:0;z-index:20;display:grid;max-height:250px;overflow:auto;margin:0;border:1px solid var(--line);border-radius:7px;background:#fff;box-shadow:0 8px 20px #2332191a}.article-results[hidden]{display:none}.article-results button{width:100%;padding:9px 12px;border:0;border-bottom:1px solid var(--line);background:#fff;color:var(--ink);font:inherit;text-align:left;cursor:pointer}.article-results button:hover,.article-results button:focus-visible{background:var(--soft)}.article-results button:last-child{border-bottom:0}.article-no-results{margin:0;padding:10px 12px;color:var(--muted);font-size:13px}.billing-line .article-picker{margin-top:7px}.product-list-toolbar{margin-bottom:10px}.product-edit-link{text-decoration:none}.product-edit-link:hover,.product-edit-link:focus-visible{text-decoration:underline}.billing-table select[form=product-category-bulk-form]{max-width:130px;padding:7px 9px;border:1px solid #bfc9b6;border-radius:6px;background:#fff;color:var(--ink);font:inherit}.invoice-product-tools{color:var(--muted);font-size:13px}
@media(max-width:680px){.invoice-bulk-toolbar,.product-list-toolbar{align-items:flex-start;flex-direction:column}.article-add-link{flex-basis:42px}}
.invoice-overview-stats{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;align-items:stretch;margin:22px 0}.invoice-summary-card{display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:88px;padding:14px 16px;border-bottom:3px solid var(--line);background:#fbfcf8}.invoice-summary-card span{font-size:13px;font-weight:650;color:var(--muted)}.invoice-summary-card strong{font-size:21px;font-variant-numeric:tabular-nums;color:var(--ink)}.invoice-summary-card.is-unpaid{border-color:#bd493e}.invoice-summary-card.is-unpaid strong{color:#a53e35}.invoice-summary-card.is-waiting{border-color:#cf8a32}.invoice-summary-card.is-waiting strong{color:#9a5c12}.invoice-summary-card.is-paid{border-color:#3c8b4c}.invoice-summary-card.is-paid strong{color:#2d743b}.invoice-summary-card.is-draft{border-color:#aab4a2}.invoice-search-label{display:flex;flex-direction:column;justify-content:center;gap:6px;margin:0;color:var(--olive);font-size:13px}.invoice-search-label input{min-width:0;margin:0;padding:10px 12px}.invoice-list{min-width:1350px!important}.invoice-list th:nth-child(1),.invoice-list td:nth-child(1){width:5%}.invoice-list th:nth-child(2),.invoice-list td:nth-child(2){width:16%}.invoice-list th:nth-child(3),.invoice-list td:nth-child(3),.invoice-list th:nth-child(4),.invoice-list td:nth-child(4){width:8%}.invoice-list th:nth-child(5),.invoice-list td:nth-child(5){width:11%}.invoice-list th:nth-child(6),.invoice-list td:nth-child(6),.invoice-list th:nth-child(7),.invoice-list td:nth-child(7),.invoice-list th:nth-child(8),.invoice-list td:nth-child(8),.invoice-list th:nth-child(9),.invoice-list td:nth-child(9){width:8%}.invoice-list th:nth-child(10),.invoice-list td:nth-child(10){width:20%}.invoice-list thead th{font-size:12px;white-space:nowrap}.invoice-list tbody tr:nth-child(even){background:#fdfefb}.invoice-list tbody tr[hidden]{display:none}.invoice-status-pill{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:27px;padding:4px 9px;border:1px solid transparent;border-radius:999px;font-size:12px;font-weight:750;line-height:1.1;white-space:nowrap}.invoice-status-pill.is-paid{border-color:#c9e4cd;background:#eaf5eb;color:#286b36}.invoice-status-pill.is-unpaid{border-color:#f0cfcb;background:#fff0ee;color:#a13e34}.invoice-status-pill.is-neutral{border-color:#dce2d5;background:#f3f5f0;color:#61685c}.invoice-status-date{display:block;margin-top:4px;color:var(--muted);font-size:11px;white-space:nowrap}.invoice-notice-cell{text-align:center!important;vertical-align:middle!important}.invoice-notice-checkbox{position:relative;display:inline-flex;align-items:center;justify-content:center;margin:0;cursor:pointer}.invoice-notice-checkbox input{position:absolute;width:1px;height:1px;margin:0;opacity:0}.invoice-notice-checkbox span{display:flex;width:22px;height:22px;align-items:center;justify-content:center;border:1px solid #d9b0ac;border-radius:5px;background:#fff4f2;color:#a13e34;font-size:14px;font-weight:800;line-height:1}.invoice-notice-checkbox span::before{content:'−'}.invoice-notice-checkbox input:checked+span{border-color:#add4b4;background:#eaf5eb;color:#286b36}.invoice-notice-checkbox input:checked+span::before{content:'✓'}.invoice-notice-checkbox input:focus-visible+span{outline:3px solid #a4532b55;outline-offset:2px}.invoice-row-actions summary{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:32px;padding:6px 11px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--olive);font-size:13px;font-weight:700;cursor:pointer;list-style:none;white-space:nowrap}.invoice-row-actions summary::-webkit-details-marker{display:none}.invoice-row-actions summary::after{content:'＋';font-size:15px;line-height:1}.invoice-row-actions[open] summary::after{content:'−'}.invoice-row-actions[open] .invoice-actions-stack{margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}.invoice-row-actions:not([open]) .invoice-actions-stack{display:none}.invoice-actions-stack .inline-form{align-items:center;min-height:40px;padding:4px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent}.invoice-actions-stack .inline-form:has(input[name=payment_notice_sent]){background:transparent}.invoice-actions-stack .inline-form button{min-height:34px}.invoice-actions-stack>a{min-height:32px;display:inline-flex;align-items:center}.invoice-list td{vertical-align:middle}.invoice-actions-cell{background:transparent}
@media(max-width:900px){.invoice-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.invoice-overview-stats{grid-template-columns:1fr 1fr;gap:8px}.invoice-summary-card{min-height:78px;padding:12px}.invoice-summary-card strong{font-size:18px}.invoice-search-label{grid-column:1/-1}.invoice-bulk-toolbar{align-items:flex-start}}

/* Use the available desktop width for the invoice status table. */
.admin-shell:has(.billing-nav){width:min(1680px,calc(100% - 32px))}
.admin-main-nav{margin:10px 0 18px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:0 5px 18px #23321908}
.admin-main-nav a[aria-current="page"]{background:var(--soft);box-shadow:inset 0 -2px 0 var(--olive);color:var(--olive)}
.admin-work-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:-10px 0 18px;padding:8px 10px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}.admin-work-tabs a{display:inline-flex;align-items:center;min-height:38px;padding:7px 13px;border-radius:7px;color:var(--olive);font-weight:700;text-decoration:none}.admin-work-tabs a:hover,.admin-work-tabs a:focus-visible{background:#fff}.admin-work-tabs a[aria-current="page"]{background:#fff;box-shadow:inset 0 -2px 0 var(--olive)}.admin-work-tabs a:focus-visible{outline:3px solid #a4532b55;outline-offset:2px}
.admin-main-nav a:focus-visible{outline:3px solid #a4532b55;outline-offset:2px}
.admin-main-nav .button{margin-left:auto}
@media(max-width:680px){.admin-main-nav{gap:4px;padding:7px}.admin-main-nav a:not(.button){padding:8px 9px;font-size:14px}.admin-main-nav .button{margin:4px 0 4px auto}}
@media(max-width:680px){.admin-work-tabs{gap:4px;margin-top:-10px;padding:6px}.admin-work-tabs a{min-height:36px;padding:7px 9px;font-size:14px}}
.invoice-product-search{position:relative;max-width:920px;margin:0 0 18px}.invoice-product-search>label{display:block;margin:0 0 6px;color:var(--olive);font-weight:700}.invoice-product-search>.hint{margin:6px 0 0}.invoice-product-search [data-invoice-product-add]:disabled{opacity:.45;cursor:not-allowed}.invoice-editor-form .billing-line{grid-template-columns:minmax(260px,3fr) minmax(80px,.55fr) minmax(130px,.8fr) minmax(90px,.55fr);align-items:end}
.invoice-editor-form .invoice-price-lock{grid-column:3;display:flex;align-items:center;gap:7px;margin-top:0;color:var(--muted);font-size:12px;font-weight:600}
.invoice-editor-form .invoice-price-lock input{width:17px;height:17px;margin:0;accent-color:var(--olive)}
.invoice-ai-panel{margin:22px 0;padding:16px;border:1px solid var(--line);border-left:4px solid var(--olive);border-radius:8px;background:var(--paper)}
.invoice-ai-panel h3{margin:0 0 6px;color:var(--olive)}.invoice-ai-panel>p{margin:6px 0 12px}.invoice-ai-controls{display:grid;grid-template-columns:minmax(190px,.65fr) minmax(280px,1.35fr);gap:14px;margin:12px 0}.invoice-ai-controls label{display:grid;gap:5px;margin:0;color:var(--olive);font-weight:650}.invoice-ai-controls input,.invoice-ai-controls textarea{width:100%;min-width:0;border:1px solid #bfc9b6;border-radius:7px;padding:10px 11px;background:#fff;color:var(--ink);font:inherit}.invoice-ai-status{min-height:1.3em;margin:8px 0 0;color:var(--olive);font-weight:650}.invoice-ai-panel [data-invoice-ai-suggest]:disabled{opacity:.65;cursor:wait}
@media(max-width:760px){.invoice-editor-form .billing-line{grid-template-columns:minmax(0,1fr) minmax(90px,.45fr)}.invoice-editor-form .billing-line .article-field{grid-column:1/-1}.invoice-editor-form .invoice-price-lock{grid-column:2}.invoice-ai-controls{grid-template-columns:1fr}}
.invoice-list{width:100%;min-width:0!important;table-layout:fixed}
.invoice-list th{white-space:normal;overflow-wrap:anywhere}
.invoice-list td{overflow-wrap:anywhere}
.invoice-list td:nth-child(3),.invoice-list td:nth-child(4),.invoice-list td:nth-child(5){white-space:nowrap}
.invoice-summary-card small{font-size:12px;font-weight:500;color:var(--muted)}
.invoice-summary-filter{width:100%;min-width:0;appearance:none;border:0;border-bottom:3px solid var(--line);border-radius:0;text-align:left;font:inherit;cursor:pointer}
.invoice-summary-filter.is-unpaid{border-bottom-color:#bd493e}
.invoice-summary-filter.is-paid{border-bottom-color:#3c8b4c}
.invoice-summary-filter:hover{background:#f5f7f1}
.invoice-summary-filter:focus-visible{outline:3px solid var(--copper);outline-offset:2px}
.invoice-summary-filter[aria-pressed="true"]{box-shadow:inset 0 0 0 2px currentColor}
@media(max-width:760px){.admin-shell:has(.billing-nav){width:calc(100% - 24px)}.invoice-list{min-width:1180px!important;table-layout:auto}}
.invoice-number-link{font-weight:750;text-decoration:underline;text-underline-offset:2px}.invoice-number-link:hover{color:#2d743b}.invoice-due-date.is-overdue{color:#a13e34;font-weight:750}.invoice-due-date.is-overdue strong,.invoice-overdue-label{display:block;color:#a13e34}.invoice-overdue-label{font-size:11px;text-transform:uppercase;letter-spacing:.03em}.invoice-reminder-date{flex-basis:100%;color:var(--muted);font-size:11px}
/* Invoice action panel has room for full date fields and action buttons. */
.invoice-list{min-width:1450px!important}.invoice-list th:nth-child(1),.invoice-list td:nth-child(1){width:4%}.invoice-list th:nth-child(2),.invoice-list td:nth-child(2){width:14%}.invoice-list th:nth-child(3),.invoice-list td:nth-child(3),.invoice-list th:nth-child(4),.invoice-list td:nth-child(4){width:7.5%}.invoice-list th:nth-child(5),.invoice-list td:nth-child(5){width:9%}.invoice-list th:nth-child(6),.invoice-list td:nth-child(6),.invoice-list th:nth-child(7),.invoice-list td:nth-child(7),.invoice-list th:nth-child(8),.invoice-list td:nth-child(8),.invoice-list th:nth-child(9),.invoice-list td:nth-child(9){width:7%}.invoice-list th:nth-child(10),.invoice-list td:nth-child(10){width:30%}.invoice-list tr[id^=invoice-row-]{scroll-margin-top:20px}
@media(max-width:760px){.invoice-list{min-width:1180px!important}}
.product-category-select option.product-delete-option{color:#a72f25;font-weight:800}.product-category-select.is-delete-action{border-color:#a72f25;background:#fff1ef;color:#a72f25;font-weight:750}
.admin-user-card{margin:14px 0;padding:16px;border:1px solid var(--line);border-radius:9px;background:#fff}.admin-user-heading{display:grid;grid-template-columns:minmax(130px,1fr) minmax(180px,2fr) auto;gap:12px;align-items:center;overflow-wrap:anywhere}.admin-user-role{padding:5px 9px;border-radius:999px;background:var(--soft);color:var(--olive);font-size:12px;font-weight:700}.module-permission-list{display:flex;flex-wrap:wrap;gap:8px 18px;margin:12px 0;padding:12px;border:1px solid var(--line);border-radius:7px}.module-permission-list legend{padding:0 5px;color:var(--olive);font-size:13px;font-weight:700}.module-permission-list label{display:inline-flex;align-items:center;gap:6px;margin:0;color:var(--ink);font-size:13px;cursor:pointer}.module-permission-list input[type=checkbox]{width:17px;height:17px;margin:0;accent-color:var(--olive)}.admin-user-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.admin-user-actions form{margin:0}.danger-button{border:1px solid #a72f25!important;background:#fff1ef!important;color:#a72f25!important}.danger-button:hover{background:#fce4e1!important}.admin-create-user-form{max-width:760px}.admin-create-user-form .module-permission-list{margin-top:18px}@media(max-width:620px){.admin-user-heading{grid-template-columns:1fr;gap:4px}.admin-user-actions{align-items:stretch}.admin-user-actions form,.admin-user-actions button{width:100%}}

.admin-heading-top{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:10px;padding-right:2px}.admin-heading-top .eyebrow{margin:7px 0 0}.admin-heading-shortcuts{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}.admin-heading-shortcuts .button{min-height:34px;margin:0;padding:6px 11px;font-size:13px}.admin-heading-main{display:flex;align-items:center;gap:14px;flex-wrap:wrap}.admin-heading-main h1{margin:0}.admin-mail-link{display:inline-flex;align-items:center;gap:8px;padding:7px 12px;border:1px solid var(--line);border-radius:999px;background:var(--soft);color:var(--olive);font-size:14px;font-weight:700;text-decoration:none}.admin-mail-link:hover,.admin-mail-link:focus-visible{border-color:#9bb68e;background:#e8f3e5}.admin-mail-link:focus-visible{outline:3px solid #a4532b55;outline-offset:2px}.admin-mail-link.has-unread{border-color:#a9d9ae;background:#e7f5e8;color:#256b35}.admin-mail-icon{font-size:19px;line-height:1}
.admin-heading-shortcuts .admin-heading-stugtrygg.has-alerts{border-color:#8e211c;background:#b52d27;color:#fff;box-shadow:0 0 0 0 #b52d2760;animation:stugtrygg-alert-pulse 1.35s ease-in-out infinite}.admin-heading-shortcuts .admin-heading-stugtrygg.has-alerts:hover,.admin-heading-shortcuts .admin-heading-stugtrygg.has-alerts:focus-visible{background:#96221e}.admin-heading-shortcuts .admin-heading-stugtrygg.is-unavailable{border-color:#b7791f;background:#fff5dd;color:#7b4b08}@keyframes stugtrygg-alert-pulse{50%{box-shadow:0 0 0 7px #b52d2726;filter:brightness(1.12)}}@media(prefers-reduced-motion:reduce){.admin-heading-shortcuts .admin-heading-stugtrygg.has-alerts{animation:none}}
#invoice-lines .billing-line{grid-template-columns:minmax(0,2.6fr) minmax(90px,.55fr) minmax(110px,.7fr) minmax(90px,.55fr);align-items:end;gap:12px}#invoice-lines .invoice-price-lock{grid-column:3;display:flex;align-items:center;gap:6px;margin:0;font-size:12px}#invoice-lines .invoice-price-lock input{display:inline-block;width:17px;height:17px;margin:0;accent-color:var(--olive)}#invoice-lines .invoice-line-actions{grid-column:4;display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}#invoice-lines .invoice-line-actions button{border:1px solid var(--olive);border-radius:6px;padding:8px 10px;background:#fff;color:var(--olive);font:600 13px Arial,sans-serif;cursor:pointer}#invoice-lines .invoice-line-actions .invoice-line-remove{border-color:#a72f25;background:#fff1ef;color:#a72f25}#invoice-lines .invoice-line-actions button:disabled{opacity:.45;cursor:not-allowed}@media(max-width:760px){.invoice-product-search{max-width:none}#invoice-lines .billing-line{grid-template-columns:minmax(0,1fr) 90px 100px;gap:8px}#invoice-lines .invoice-price-lock{grid-column:2}#invoice-lines .invoice-line-actions{grid-column:1/-1;justify-content:flex-start}}
.admin-lead-card{margin:16px 0;padding:18px;border:1px solid var(--line);border-radius:10px;background:#fff}.admin-lead-card header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.admin-lead-card h3{margin:0 0 4px;color:var(--olive)}.admin-lead-card header p{margin:0;color:var(--muted)}.lead-status{display:inline-flex;align-items:center;padding:6px 10px;border:1px solid #dce2d5;border-radius:999px;background:var(--soft);color:var(--olive);font-size:12px;font-weight:750;white-space:nowrap}.admin-lead-card>p{overflow-wrap:anywhere}.admin-lead-card details{margin:12px 0;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#fbfcf9}.admin-lead-card summary{color:var(--olive);font-weight:700;cursor:pointer}.lead-inquiry-text{overflow-wrap:anywhere}.admin-lead-card label{display:grid;gap:6px;margin:12px 0;color:var(--olive);font-weight:650}.admin-lead-card textarea,.admin-lead-card select{width:100%;padding:11px 12px;border:1px solid #bfc9b6;border-radius:7px;background:white;color:var(--ink);font:inherit}.admin-lead-card textarea{resize:vertical;line-height:1.5}.admin-lead-card .lead-send-form{display:inline-block;margin:10px 12px 0 0}.admin-lead-card .lead-status-form{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-top:10px}.admin-lead-card .lead-status-form label{min-width:min(260px,100%);margin:0}.admin-lead-card .lead-status-form select{min-height:42px}.admin-lead-card button{margin-top:8px}
.admin-leads-archive{margin-top:22px;padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:#f8f9f5}.admin-leads-archive>summary{color:var(--olive);font-weight:750;cursor:pointer}.admin-leads-archive>p{color:var(--muted)}.admin-leads-archive .admin-lead-card{background:#fff}
.lead-attachment-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin-top:12px}.lead-attachment-grid a{display:grid;gap:7px;color:var(--olive);font-weight:700;text-decoration:none}.lead-attachment-grid img{display:block;width:100%;height:130px;object-fit:cover;border:1px solid var(--line);border-radius:8px;background:var(--soft)}
@media(max-width:620px){.admin-lead-card{padding:14px}.admin-lead-card header{flex-direction:column}.admin-lead-card .lead-status-form{align-items:stretch}.admin-lead-card .lead-status-form label,.admin-lead-card .lead-status-form button{width:100%}}
.operations-form{margin:18px 0 28px;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}.operations-form select,.operation-status-form select{display:block;width:100%;border:1px solid #bfc9b6;border-radius:7px;padding:11px 12px;background:#fff;color:var(--ink);font:inherit}.job-list-filter{display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin:12px 0 18px;padding:12px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}.job-list-filter label{font-weight:650}.job-list-filter select{min-width:min(260px,100%);padding:10px 12px;border:1px solid #bfc9b6;border-radius:7px;background:#fff;color:var(--ink);font:inherit}.job-list-filter .button{margin:0}.operations-item{margin:14px 0;padding:16px;border:1px solid var(--line);border-radius:9px;background:#fff}.job-card-summary{cursor:pointer}.operations-item header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start}.operations-item h3{margin:0;color:var(--olive)}.operations-item p{margin:8px 0}.operation-status-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.operation-status-form label{min-width:190px;margin:8px 0 0}.operation-status-form .button{margin:0}.operations-bank{display:flex;gap:10px;flex-wrap:wrap;margin:16px 0}.operations-bank>div{display:grid;gap:4px;min-width:200px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.operations-table{min-width:900px!important}.operations-table td{font-variant-numeric:tabular-nums}
.job-list-filter input[type=search]{box-sizing:border-box;min-width:min(260px,100%);max-width:100%;padding:10px 12px;border:1px solid #bfc9b6;border-radius:7px;background:#fff;color:var(--ink);font:inherit}
.inspection-check{grid-column:span 1;min-width:0;margin:12px 0;padding:10px 14px;border:1px solid var(--line);border-radius:8px}.inspection-check legend{padding:0 5px;color:var(--olive);font-weight:750}.inspection-check label{margin:8px 0}.inspection-check select{display:block;width:100%;border:1px solid #bfc9b6;border-radius:7px;padding:10px;background:#fff;font:inherit;color:var(--ink)}.inspection-actions{display:flex;gap:10px;flex-wrap:wrap}.inspection-actions .button{margin-top:16px}.inspection-new-customer{margin-top:22px;border-top:1px solid var(--line);padding-top:14px}.inspection-new-customer>summary,.inspection-record a{color:var(--olive);font-weight:700;cursor:pointer}.inspection-record a{text-decoration:underline}
.job-billing-basis{padding:10px 12px;border-left:3px solid #3c8b4c;background:#f2f7f0;color:var(--olive)}
.job-number{margin:0 0 4px!important;color:var(--copper);font-size:12px;font-weight:800;letter-spacing:.06em}.job-material-grid{display:grid;gap:9px;margin:10px 0 18px}.job-material-line{display:grid;grid-template-columns:minmax(260px,2fr) minmax(100px,.6fr) minmax(100px,.6fr);gap:10px;padding:10px;border:1px solid var(--line);border-radius:7px;background:#fff}.job-material-line label,.job-invoice-form label{display:grid;gap:5px;margin:0;color:var(--olive);font-weight:650}.job-material-line select,.job-material-line input,.job-invoice-form select{width:100%;min-width:0;border:1px solid #bfc9b6;border-radius:7px;padding:10px 11px;background:#fff;color:var(--ink);font:inherit}.job-material-summary{margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.job-material-summary ul{margin:8px 0 0;padding-left:20px}.job-material-summary li{margin:4px 0}.job-invoice-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:14px 0}.job-invoice-form label{min-width:min(320px,100%)}
.job-quick-actions{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;margin:14px 0}.job-quick-actions>details>summary{margin:0}.job-quick-actions>details[open]{flex:1 1 100%}.job-material-add-form{margin:10px 0 4px}.job-material-add-form .job-material-line{grid-template-columns:minmax(260px,2fr) minmax(260px,2fr) minmax(100px,.65fr) minmax(100px,.65fr)}
@media(max-width:620px){.job-material-add-form .job-material-line{grid-template-columns:1fr}}
@media(max-width:620px){.job-material-line{grid-template-columns:1fr}.job-invoice-form{align-items:stretch}.job-invoice-form label,.job-invoice-form .button{width:100%}}
.job-ai-settings{margin:12px 0 20px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.job-ai-settings>summary{color:var(--olive);font-weight:750;cursor:pointer}.job-ai-settings>p{color:var(--muted);font-size:13px}.job-ai-key-form{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.job-ai-key-form label{display:grid;gap:6px;min-width:min(360px,100%);color:var(--olive);font-weight:650}.job-ai-key-form input{padding:10px 12px;border:1px solid #bfc9b6;border-radius:7px;font:inherit}.job-ai-settings>form:not(.job-ai-key-form){margin-top:8px}.job-ai-action{display:flex;align-items:center;gap:12px;flex-wrap:wrap;grid-column:1/-1}.job-ai-action span{color:var(--muted);font-size:13px}.job-ai-action button:disabled{opacity:.55;cursor:not-allowed}
@media(max-width:620px){.job-ai-key-form{align-items:stretch}.job-ai-key-form label,.job-ai-key-form button{width:100%}.job-ai-action{align-items:stretch;flex-direction:column}}

/* Article catalog filters and consistent empty values */
.product-list-toolbar .product-search-label,.product-list-toolbar .product-category-filter-label{display:grid;gap:5px;margin:0;color:var(--olive);font-size:12px;font-weight:700}.product-list-toolbar .product-search-label{flex:1 1 280px;max-width:460px}.product-list-toolbar .product-category-filter-label{flex:0 1 180px}.product-list-toolbar input,.product-list-toolbar select{width:100%;min-height:38px;padding:7px 10px;border:1px solid #bfc9b6;border-radius:6px;background:#fff;color:var(--ink);font:inherit}.product-list-toolbar #product-list-count{min-width:80px;color:var(--muted);font-size:13px}.product-price{white-space:nowrap;font-variant-numeric:tabular-nums}.empty-value{color:var(--muted)}
.job-material-line .job-material-search{width:100%;min-width:0;border:1px solid #bfc9b6;border-radius:7px;padding:10px 11px;background:#fff;color:var(--ink);font:inherit}.job-material-line .job-material-search:focus{outline:3px solid #a4532b36;border-color:var(--copper)}.job-material-remove{align-self:end;min-height:41px;border:1px solid #c8756c;border-radius:6px;padding:7px 11px;background:#fff4f2;color:#963b32;font:600 13px system-ui,sans-serif;cursor:pointer}.job-material-remove:disabled{opacity:.45;cursor:not-allowed}.job-material-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.job-material-controls .button{margin-top:0}.job-material-controls .hint{margin:0}
.job-customer-email-settings{margin:20px 0;padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}.job-customer-email-settings legend{padding:0 6px;color:var(--olive);font-weight:750}.job-customer-email-optin{display:flex;align-items:flex-start;gap:9px;margin:4px 0 8px}.job-customer-email-optin input,.job-customer-email-sent input{flex:0 0 auto;width:18px;height:18px;margin:4px 0 0;accent-color:var(--olive)}.job-customer-email-settings .hint{margin:6px 0}.job-customer-email{margin:16px 0;padding:16px;border:1px solid var(--line);border-left:4px solid var(--olive);border-radius:8px;background:#fbfcf8}.job-customer-email h4{margin:0 0 8px;color:var(--olive);font-size:17px}.job-customer-email-review{display:grid;gap:8px}.job-customer-email-review label{margin:8px 0 0}.job-customer-email-review input,.job-customer-email-review textarea{margin-top:5px}.job-customer-email-review .button,.job-customer-email-retry .button{justify-self:start;margin-top:8px}.job-customer-email-sent{display:flex;align-items:flex-start;gap:8px;margin:10px 0;color:#2d743b}.job-customer-email-status{padding:10px 12px;border-radius:6px;background:var(--soft);color:var(--muted)}
.job-material-line{grid-template-columns:minmax(180px,1fr) minmax(240px,1.4fr) minmax(85px,.55fr) minmax(85px,.55fr) auto}@media(max-width:900px){.job-material-line{grid-template-columns:minmax(0,1.4fr) minmax(90px,.6fr) minmax(90px,.6fr)}.job-material-remove{grid-column:3}}@media(max-width:620px){.job-material-line{grid-template-columns:1fr}.job-material-remove{grid-column:auto}}
.job-material-search-status{display:block;min-height:1.2em;margin-top:3px;color:var(--muted);font-size:11px;line-height:1.2}
@media(min-width:761px) and (max-width:1250px){.admin-main-nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px}.admin-main-nav a:not(.button){justify-content:center;padding:8px 5px;font-size:13px;text-align:center}}
.module-roadmap-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0}.module-roadmap-grid article{padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.module-roadmap-grid h3{margin:0 0 4px;font-size:15px}.module-roadmap-grid p{margin:0;color:var(--muted);font-size:13px}.admin-module-roadmap .notice{background:#f1f4eb;color:var(--olive)}@media(max-width:700px){.module-roadmap-grid{grid-template-columns:1fr}}

/* Elbesiktning: paketval, checklista och fotodokumentation */
.inspection-workspace{max-width:none}.inspection-form{padding:clamp(14px,2vw,24px)}.inspection-package-info{display:grid;grid-template-columns:minmax(220px,.8fr) minmax(280px,1.2fr);gap:22px;margin:18px 0;padding:18px;border:1px solid #c9d5bf;border-left:4px solid var(--olive);border-radius:9px;background:var(--paper)}.inspection-package-info h3{margin:0 0 6px}.inspection-package-info p{margin:4px 0;color:var(--muted)}.inspection-package-info ul{columns:2;column-gap:24px;margin:0;padding-left:20px}.inspection-package-info li{break-inside:avoid;margin:0 0 6px}.inspection-checklist{margin:22px 0}.inspection-checklist>h3{margin:12px 0;color:var(--olive)}.inspection-check{margin:12px 0;padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:#fff}.inspection-check legend{padding:0 7px;color:var(--olive);font-weight:750}.inspection-check>.hint{margin:0 0 6px}.inspection-check .billing-form-grid{grid-template-columns:minmax(180px,.55fr) minmax(0,1.45fr);align-items:start}.inspection-check label{margin:4px 0 8px}.inspection-check textarea{min-height:74px}.inspection-summary-grid{margin-top:20px}.inspection-summary-grid .hint{display:block;margin-top:4px;font-weight:400}.inspection-photo-inputs{min-width:0;margin:0;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.inspection-photo-inputs legend{padding:0 6px;color:var(--olive);font-weight:750}.inspection-photo-actions{display:flex;gap:8px;flex-wrap:wrap}.inspection-photo-actions .button{margin:0}.inspection-photo-grid{display:flex;gap:12px;flex-wrap:wrap;margin:18px 0}.inspection-photo-grid h3{flex-basis:100%;margin:4px 0}.inspection-photo-grid figure{width:min(220px,100%);margin:0;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff}.inspection-photo-grid img{display:block;width:100%;height:150px;object-fit:cover;border-radius:5px;background:var(--soft)}.inspection-photo-grid figcaption{margin-top:5px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.inspection-package-tag,.inspection-status{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;font-size:12px;font-weight:750}.inspection-package-tag{margin-bottom:6px;background:var(--soft);color:var(--olive)}.inspection-status.is-complete{background:#e8f3e5;color:#296b3c}.inspection-status.is-draft{background:#fff4dc;color:#735516}.inspection-record header{align-items:center}.inspection-record h3{margin:4px 0}.inspection-record>p{max-width:100ch}.inspection-new-customer>summary{padding:8px 0}.inspection-actions{justify-content:flex-end;margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}.inspection-actions .button{margin-top:0}.inspection-photo-preview:empty{display:none}
@media(max-width:760px){.inspection-package-info{grid-template-columns:1fr;gap:10px}.inspection-package-info ul{columns:1}.inspection-check .billing-form-grid{grid-template-columns:1fr}}
@media print{.inspection-actions,.inspection-new-customer,.billing-nav,.logout-form,.admin-foot{display:none!important}.inspection-record,.inspection-check{break-inside:avoid;box-shadow:none}}
.offer-job-preview{margin:12px 0;padding:0;border:1px solid var(--line);border-radius:8px;background:#fff}.offer-job-preview>summary{padding:11px 13px;color:var(--olive);font-weight:750;cursor:pointer}.offer-job-preview-content{padding:0 13px 13px}.offer-job-preview-grid,.offer-job-preview-totals{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px;margin:8px 0 14px}.offer-job-preview-grid>div,.offer-job-preview-totals>div{min-width:0}.offer-job-preview-grid .full-width{grid-column:1/-1}.offer-job-preview-grid dt,.offer-job-preview-totals dt{color:var(--muted);font-size:12px;font-weight:700}.offer-job-preview-grid dd,.offer-job-preview-totals dd{margin:2px 0 0;overflow-wrap:anywhere}.offer-job-preview-lines{width:100%;border-collapse:collapse;margin:10px 0 14px}.offer-job-preview-lines th,.offer-job-preview-lines td{padding:8px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}.offer-job-preview-lines thead{background:var(--soft)}.offer-job-preview-totals{max-width:680px}.offer-job-preview-totals dd{font-weight:700}.offer-admin-actions>form{display:grid;gap:8px;margin-top:12px}.offer-admin-actions>form .button{justify-self:start;margin:0}@media(max-width:620px){.offer-job-preview-grid,.offer-job-preview-totals{grid-template-columns:1fr}.offer-job-preview-grid .full-width{grid-column:auto}.offer-job-preview-lines{min-width:620px}}
.inspection-remove-photo{display:flex;align-items:center;gap:6px;margin:6px 0 0;font-size:12px;font-weight:600}.inspection-remove-photo input{width:16px;height:16px;margin:0;accent-color:#b83d34}.inspection-photo-preview{display:flex;gap:10px;flex-wrap:wrap}.inspection-photo-preview figure{margin:0}
.inspection-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.inspection-stats>div{display:grid;gap:1px;padding:12px 15px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.inspection-stats strong{font-size:20px;color:var(--olive)}.inspection-stats span{font-size:12px;color:var(--muted)}
@media(max-width:540px){.inspection-stats{gap:6px}.inspection-stats>div{padding:9px}.inspection-stats strong{font-size:18px}.inspection-stats span{font-size:11px}}
.mailbox-html{max-height:60vh;overflow:auto;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow-wrap:anywhere}.mailbox-html img{max-width:100%;height:auto}.mailbox-html table{max-width:100%;border-collapse:collapse}.mailbox-image-consent{display:flex;align-items:center;gap:10px;flex-wrap:wrap;color:var(--muted);font-size:13px}
.mailbox-html a{color:#24588a;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}.mailbox-html a:focus-visible{outline:3px solid #a4532b55;outline-offset:2px;border-radius:2px}
.mailbox-page>h1{font-size:clamp(25px,3vw,32px);color:var(--olive);margin:0 0 10px}.mailbox-folders{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 2px}.mailbox-folder{display:inline-flex;align-items:center;padding:8px 12px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--olive);font-weight:700;text-decoration:none}.mailbox-folder:hover,.mailbox-folder.is-active{border-color:#a9b89e;background:var(--soft)}.mailbox-layout{display:grid;grid-template-columns:minmax(260px,.8fr) minmax(0,2fr);gap:20px;margin-top:20px;align-items:start}.mailbox-list{max-height:72vh;overflow:auto;border:1px solid var(--line);border-radius:9px;background:#fff}.mailbox-empty{margin:0;padding:14px;color:var(--muted)}.mailbox-item{display:grid;gap:3px;padding:12px 14px;border-bottom:1px solid var(--line);color:var(--ink);text-decoration:none}.mailbox-item:last-child{border-bottom:0}.mailbox-item:hover,.mailbox-item.is-selected{background:var(--soft)}.mailbox-item.is-unread strong{color:#256b35}.mailbox-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mailbox-item small{color:var(--muted);font-size:12px}.mailbox-message{min-width:0}.mailbox-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0}.mailbox-action-form{margin:0;padding:0;border:0;background:transparent}.button.danger{border:1px solid #a72f25;background:#a72f25;color:#fff}.button.danger:hover{background:#8c251e}.button.danger:disabled{opacity:.55;cursor:not-allowed}.mailbox-body{white-space:pre-wrap;overflow-wrap:anywhere;max-height:50vh;overflow:auto;padding:16px;border:1px solid var(--line);border-radius:8px;background:var(--paper);font:14px/1.6 system-ui,-apple-system,"Segoe UI",sans-serif}.mailbox-ai,.mailbox-draft,.mailbox-reply{margin-top:18px;padding:16px;border:1px solid var(--line);border-radius:9px;background:#fff}.mailbox-ai>summary{font-weight:750;color:var(--olive);cursor:pointer}.mailbox-draft{background:var(--paper)}.mailbox-draft h3,.mailbox-reply h3{margin-top:0;color:var(--olive)}.mailbox-draft ul{padding-left:20px}.mailbox-draft li{margin:5px 0}@media(max-width:760px){.mailbox-layout{grid-template-columns:1fr}.mailbox-list{max-height:35vh}}

.invoice-summary-card.is-total{border-color:#718265;background:#f5f7f1}.invoice-footer-actions{display:flex;justify-content:flex-end;margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}.invoice-footer-actions .button{margin:0}

.invoice-notice-save-status{display:block;min-height:1.2em;margin-top:2px;color:var(--muted);font-size:10px;line-height:1.2}.invoice-notice-save-status.is-error{color:#a13e34}.invoice-notice-checkbox input:disabled+span{opacity:.55}
.mailbox-page[aria-busy="true"] .mailbox-layout{opacity:.68;transition:opacity .12s ease}.mailbox-ajax-status:empty{display:none}.mailbox-ajax-status:not(:empty){margin:10px 0;padding:8px 12px;border-radius:7px;color:var(--muted);font-size:13px}.mailbox-ajax-status.notice{margin:10px 0}.mailbox-page[aria-busy="true"]{cursor:progress}
.admin-home-module>.button{min-height:38px;margin-top:12px;padding:7px 13px;font-size:14px}
.admin-section-hub{padding:clamp(18px,2.4vw,30px)}.admin-hub-heading{position:relative;padding:0 0 18px;border-bottom:1px solid var(--line)}.admin-hub-heading h1{margin:2px 0 7px}.admin-hub-heading>p:last-of-type{max-width:760px;margin-bottom:0;color:var(--muted)}.admin-hub-primary-actions{position:absolute;top:0;right:0}.admin-hub-group{padding:22px 0 4px}.admin-hub-group+ .admin-hub-group{border-top:1px solid var(--line)}.admin-hub-group>header{display:grid;grid-template-columns:minmax(180px,.35fr) minmax(260px,.65fr);gap:18px;align-items:baseline;margin-bottom:12px}.admin-hub-group h2,.admin-hub-group p{margin:0}.admin-hub-group>header p{color:var(--muted)}.admin-hub-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.admin-hub-card{display:flex;min-width:0;min-height:126px;flex-direction:column;justify-content:space-between;gap:18px;padding:15px;border:1px solid var(--line);border-radius:9px;background:#fbfcf9;color:var(--ink);text-decoration:none;transition:border-color .15s ease,box-shadow .15s ease,transform .15s ease}.admin-hub-card:hover{border-color:#a8b49a;box-shadow:0 7px 20px #23321910;transform:translateY(-1px)}.admin-hub-card:focus-visible{outline:3px solid #a4532b55;outline-offset:2px}.admin-hub-card strong,.admin-hub-card small{display:block}.admin-hub-card strong{color:var(--olive);font-size:17px}.admin-hub-card small{margin-top:5px;color:var(--muted);font-size:13px;line-height:1.45}.admin-hub-card-action{align-self:flex-end;color:var(--olive);font-size:13px;font-weight:750}
@media(max-width:1000px){.admin-hub-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:680px){.admin-hub-heading{padding-right:0}.admin-hub-primary-actions{position:static;margin-top:14px}.admin-hub-primary-actions .button{width:100%}.admin-hub-group{padding-top:18px}.admin-hub-group>header{grid-template-columns:minmax(0,1fr);gap:4px}.admin-hub-grid{grid-template-columns:minmax(0,1fr)}.admin-hub-card{min-height:108px}}
.payment-import-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.payment-import-grid form,.payment-fetch-panel,.payment-ai-panel{padding:18px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}.payment-import-grid h2,.payment-fetch-panel h2,.payment-ai-panel h2{margin-top:0}.payment-import-grid label,.payment-match-form label{display:block;margin:10px 0}.payment-import-grid input[type=file],.payment-match-form select{display:block;width:100%;margin-top:6px;border:1px solid #bfc9b6;border-radius:7px;padding:10px;background:#fff;font:inherit}.payment-fetch-panel,.payment-ai-panel{margin:18px 0}.payment-ai-panel{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 18px;border-left:4px solid var(--olive)}.payment-ai-panel p{margin-bottom:8px}.payment-ai-panel>[data-payment-ai-status]{grid-column:1/-1;margin:0;color:var(--olive);font-weight:650}.payment-match-form{min-width:250px}.payment-match-form .button{margin:4px 0}.payment-match-form .hint,.payment-ai-explanation{display:block}.payment-ai-explanation{margin:5px 0;color:var(--olive);font-size:13px}.payment-import-table td{vertical-align:middle}
.payment-bank-setup{max-width:720px;margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:8px;background:#fff}.payment-bank-setup h3{margin:0 0 8px}.payment-bank-setup label{display:block;margin:10px 0;color:var(--olive);font-weight:650}.payment-bank-setup input{display:block;width:100%;margin-top:5px;padding:10px 12px;border:1px solid #bfc9b6;border-radius:7px;background:#fff;color:var(--ink);font:inherit}
@media(max-width:760px){.payment-import-grid,.payment-ai-panel{grid-template-columns:1fr}.payment-ai-panel>[data-payment-ai-status]{grid-column:auto}}

.ahlsell-import{border-left:4px solid var(--olive);background:linear-gradient(135deg,#fff 0%,#f8faf5 100%)}.ahlsell-import>form:first-of-type{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.ahlsell-import>form:first-of-type label{flex:1 1 340px;margin:8px 0}.ahlsell-import>form:first-of-type input[type=file]{margin-top:6px;padding:9px}.ahlsell-import .button{margin:8px 0}.ahlsell-preview{margin-top:22px;padding:18px;border:1px solid var(--line);border-radius:9px;background:#fff}.ahlsell-preview h3{margin:0 0 6px}.ahlsell-preview .notice{background:var(--soft);color:var(--ink)}.ahlsell-preview form{margin-top:12px}.product-import-source{display:block;margin-top:3px;color:var(--muted);font-size:11px;font-weight:500;white-space:nowrap}
@media(max-width:620px){.ahlsell-import>form:first-of-type{display:block}.product-import-source{white-space:normal}}

.job-document-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.job-offer-form,.job-offer-summary,.job-delete-form{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;margin:14px 0;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.job-offer-form .button,.job-offer-summary .button,.job-delete-form .button{margin:0}.job-offer-form small,.job-delete-form small{flex-basis:100%;color:var(--muted)}.job-offer-send{display:inline-flex;align-items:center;gap:7px;margin:0;color:var(--olive);font-weight:650}.job-offer-send input{width:17px;height:17px;margin:0;accent-color:var(--olive)}.job-offer-summary>span{color:var(--muted);font-size:13px}.job-delete-form{border-color:#e4c3bd;background:#fffafa}.job-delete-form small{color:#785752}.job-print-actions{display:flex;justify-content:space-between;gap:12px;align-items:center;max-width:900px;margin:18px auto;padding:0 20px}.job-print-page{box-sizing:border-box;width:min(900px,calc(100% - 40px));min-height:calc(100vh - 90px);margin:0 auto 30px;padding:42px 48px;border:1px solid var(--line);border-radius:8px;background:#fff;color:#20251d;font:14px/1.55 Arial,sans-serif}.job-print-header{display:flex;justify-content:space-between;align-items:center;gap:20px;padding-bottom:20px;border-bottom:2px solid #30431d}.job-print-header img{width:170px;max-height:65px;object-fit:contain;object-position:left center}.job-print-header p{margin:0;color:#a34c2d;font-size:12px;font-weight:700;letter-spacing:.1em}.job-print-header h1{margin:2px 0;color:#30431d;font-size:24px}.job-print-page h2{margin:24px 0 12px;color:#30431d}.job-print-page h3{margin:24px 0 8px;color:#30431d}.job-print-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;margin:22px 0}.job-print-meta>div{min-width:0}.job-print-meta dt{color:#58604f;font-size:12px;font-weight:700}.job-print-meta dd{margin:2px 0 0;overflow-wrap:anywhere}.job-print-description{white-space:pre-wrap}.job-print-table,.job-print-totals{width:100%;border-collapse:collapse;margin:16px 0}.job-print-table th,.job-print-table td,.job-print-totals th,.job-print-totals td{padding:9px 8px;border-bottom:1px solid #d8ded1;text-align:left;vertical-align:top}.job-print-table thead{background:#f0f3eb}.job-print-number,.job-print-totals td{text-align:right!important;font-variant-numeric:tabular-nums}.job-print-totals{width:min(390px,100%);margin:24px 0 24px auto}.job-print-totals td{white-space:nowrap}.job-print-grand-total th,.job-print-grand-total td{border-top:2px solid #30431d;color:#30431d;font-size:16px;font-weight:700}.job-print-foot{margin-top:38px;padding-top:10px;border-top:1px solid #d8ded1;color:#66705d;font-size:11px}
@media(max-width:680px){.job-print-page{width:calc(100% - 20px);padding:24px 18px}.job-print-meta{grid-template-columns:1fr}.job-print-actions{padding:0 10px}}
@media print{@page{size:A4;margin:16mm}.job-print-actions{display:none!important}.job-print-page{width:100%;min-height:0;margin:0;padding:0;border:0;border-radius:0;font-size:10.5pt}.job-print-header,.job-print-meta,.job-print-table tr,.job-print-totals tr{break-inside:avoid}.job-print-header img{width:145px}.job-print-page h2,.job-print-page h3{break-after:avoid}.job-print-table thead{display:table-header-group}.job-print-table tr{break-inside:avoid}}
.person-number-lookup{display:grid;justify-items:start;gap:5px;margin-top:7px}.person-number-lookup .button{margin:0}.person-number-lookup small{color:var(--muted);font-size:12px;font-weight:400;line-height:1.4}.customer-actions-cell{min-width:180px;vertical-align:middle!important}.customer-actions{display:flex;align-items:center;gap:8px;min-height:38px;white-space:nowrap}.customer-actions>.button,.customer-actions .customer-delete-trigger{min-height:38px;margin:0;padding:7px 11px;font-size:13px;line-height:1.2}.customer-edit-action{white-space:nowrap}.customer-delete-details{position:relative}.customer-delete-trigger{list-style:none}.customer-delete-trigger::-webkit-details-marker{display:none}.customer-delete-details[open]{white-space:normal}.customer-delete-form{width:min(310px,calc(100vw - 48px));margin:8px 0 0;padding:12px;border:1px solid #e4c3bd;border-radius:8px;background:#fffafa;white-space:normal}.customer-delete-form p{margin:0 0 8px;color:#785752;font-size:13px;line-height:1.4}.customer-delete-form label{margin:8px 0;color:var(--olive);font-size:13px}.customer-delete-form input{width:100%;margin-top:4px;padding:8px 9px;font-size:14px}.customer-delete-form .button{min-height:40px;margin:8px 0 0;padding:8px 11px;font-size:13px}
.customer-name-cell{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px}.customer-service-badges{display:inline-flex;align-items:center;flex-wrap:wrap;gap:5px}.customer-service-badge{display:inline-flex;align-items:center;min-height:22px;padding:3px 7px;border:1px solid #bdc9b0;border-radius:999px;background:#f1f5ed;color:#30451c;font-size:11px;font-weight:800;line-height:1.15;white-space:nowrap}.customer-service-badge.is-connect{border-color:#91a779;background:#e9f1e1}.customer-service-badge.is-connect.is-pending{border-style:dashed;background:#f7f4e9;color:#6f5d28}.customer-service-badge.is-agreement{border-color:#d6ad91;background:#fbefe7;color:#8a451f}
.customer-connect-control{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;margin:10px 0 4px;padding:12px 14px;border:1px solid #c8d4bc;border-left:4px solid var(--olive);border-radius:8px;background:#f6f8f2}.customer-connect-control strong,.customer-connect-control span{display:block}.customer-connect-control span{margin-top:3px;color:var(--muted);font-size:13px}.customer-connect-control .button{flex:0 0 auto;margin:0}.stugtrygg-connect-customer>header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.stugtrygg-connect-customer>header h2{margin:3px 0 5px}.stugtrygg-connect-customer>header p{margin:0}.stugtrygg-connect-customer-form{display:flex;align-items:end;gap:10px;margin-top:16px}.stugtrygg-connect-customer-form label{flex:1;margin:0}.stugtrygg-connect-customer-form select{display:block;width:100%;margin-top:5px;padding:11px 12px;border:1px solid #bfc9b6;border-radius:7px;background:#fff;color:var(--ink);font:inherit}.stugtrygg-connect-customer-form .button{margin:0}.stugtrygg-connect-property-needed{margin-top:14px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.stugtrygg-connect-property-needed p{margin:0 0 10px}
@media(max-width:680px){.customer-connect-control,.stugtrygg-connect-customer>header,.stugtrygg-connect-customer-form{align-items:stretch;flex-direction:column}.customer-connect-control .button,.stugtrygg-connect-customer>header .button,.stugtrygg-connect-customer-form .button{width:100%}}
@media(min-width:681px){.customer-actions-cell{min-width:220px}.customer-actions-cell .customer-actions{flex-wrap:nowrap;white-space:nowrap}}
.stugtrygg-connect-customer-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px}.stugtrygg-connect-customer-form>label{grid-column:1/-1;margin:0}.stugtrygg-connect-customer-form>.button{grid-column:2;margin:0}.stugtrygg-alert-policy{grid-column:1/-1;display:grid;gap:10px;margin:0;padding:13px 14px;border:1px solid var(--line);border-radius:8px;background:#fff}.stugtrygg-alert-policy legend{padding:0 6px;color:var(--olive);font-weight:750}.stugtrygg-alert-policy-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.stugtrygg-alert-policy-grid label{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:5px;margin:0;color:var(--olive);font-weight:700}.stugtrygg-alert-policy-grid label input,.stugtrygg-alert-policy-grid label select{grid-column:1;margin:0}.stugtrygg-alert-policy-grid label span{grid-column:2;color:var(--muted);font-size:13px;font-weight:500}.stugtrygg-alert-policy .hint{margin:0}@media(max-width:680px){.stugtrygg-connect-customer-form{grid-template-columns:minmax(0,1fr)}.stugtrygg-connect-customer-form>.button{grid-column:1}.stugtrygg-alert-policy-grid{grid-template-columns:minmax(0,1fr)}}

.job-offer-form>label{display:grid;gap:5px;margin:0;color:var(--olive);font-weight:650}.job-offer-form select,.job-offer-form input{min-width:180px;border:1px solid #bfc9b6;border-radius:7px;padding:9px 10px;background:#fff;color:var(--ink);font:inherit}.job-offer-form small{flex-basis:100%;color:var(--muted)}@media(max-width:620px){.job-offer-form>label,.job-offer-form .button{width:100%}.job-offer-form select,.job-offer-form input{width:100%;box-sizing:border-box}}
.job-offer-form [hidden],.job-offer-send[hidden]{display:none!important}.job-offer-send-existing{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0}.job-offer-send-existing small{color:var(--muted)}.job-offer-price-review{margin:12px 0;padding:14px 16px;border:1px solid var(--line);border-left:4px solid var(--olive);border-radius:8px;background:var(--paper)}.job-offer-price-review>p{margin:4px 0 10px}.job-offer-reprice-form{display:flex;align-items:end;gap:10px 14px;flex-wrap:wrap;margin-top:12px}.job-offer-reprice-form label{display:grid;gap:5px;min-width:min(340px,100%);color:var(--olive);font-weight:650}.job-offer-reprice-form input{width:100%;box-sizing:border-box;border:1px solid #bfc9b6;border-radius:7px;padding:9px 10px;background:#fff;color:var(--ink);font:inherit}.job-offer-reprice-form small{flex-basis:100%;color:var(--muted)}@media(max-width:620px){.job-offer-reprice-form label,.job-offer-reprice-form .button{width:100%}}

.job-ai-price{margin:14px 0;padding:16px;border-left:4px solid var(--olive);border-radius:7px;background:var(--paper)}.job-ai-price label{display:grid;gap:6px;max-width:560px;color:var(--olive);font-weight:700}.job-ai-price input{width:100%;border:1px solid #bfc9b6;border-radius:7px;padding:11px;background:#fff;color:var(--ink);font:inherit}.job-ai-price .hint{margin:8px 0 0}.job-labor-preview{margin-top:10px}@media(max-width:760px){.job-material-line{grid-template-columns:1fr}.job-ai-price label{max-width:100%}}

.job-offer-details{margin:14px 0;border:1px solid var(--line);border-radius:8px;background:#fff}.job-offer-details>summary{padding:13px 15px;color:var(--olive);font-weight:750;cursor:pointer}.job-offer-details[open]>summary{border-bottom:1px solid var(--line);background:var(--paper)}.job-offer-content{padding:4px 14px 14px}.job-offer-content .job-offer-summary{margin:10px 0}.job-offer-delete-form{display:flex;align-items:center;gap:10px 14px;flex-wrap:wrap;margin:12px 0;padding:12px 14px;border:1px solid #e4c3bd;border-radius:8px;background:#fffafa}.job-offer-delete-form .button{margin:0}.job-offer-delete-form small{flex-basis:100%;color:#785752}
.standalone-offers{margin:22px 0;padding:18px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}.standalone-offer{margin:12px 0;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}.standalone-offer-summary{display:flex;align-items:center;gap:8px 16px;padding:14px;cursor:pointer;flex-wrap:wrap;list-style:none}.standalone-offer-summary::-webkit-details-marker{display:none}.standalone-offer-summary::before{content:'▸';flex:0 0 1em;color:var(--olive);font-size:1.15em;font-weight:700}.standalone-offer[open]>.standalone-offer-summary::before{content:'▾'}.standalone-offer-summary>strong:first-of-type{flex:1 1 300px}.standalone-offer-summary>strong:last-of-type{margin-left:auto}.standalone-offer-content{padding:14px;border-top:1px solid var(--line)}.standalone-offer form{margin:10px 0}.standalone-offer .job-offer-reprice-form{display:flex;align-items:end;gap:10px 14px;flex-wrap:wrap}.standalone-offer .job-offer-reprice-form label{min-width:min(100%,300px);flex:1}.standalone-offer .job-offer-decision-form{display:flex;align-items:end;gap:10px 14px;flex-wrap:wrap}.standalone-offer .job-offer-decision-form label{min-width:min(100%,260px);flex:1}

.invoice-template-editor .billing-form-grid input[type="color"]{height:48px;padding:5px}.invoice-template-live-preview{margin-top:28px}.invoice-template-live-preview iframe{display:block;width:100%;height:900px;border:1px solid var(--line);border-radius:8px;background:#fff}
@media(max-width:680px){.invoice-template-live-preview iframe{height:760px}}
.invoice-list th:nth-child(9),.invoice-list td:nth-child(9){width:6%;text-align:center}.invoice-list th:nth-child(10),.invoice-list td:nth-child(10){width:8%}.invoice-list th:nth-child(11),.invoice-list td:nth-child(11){width:20%}.invoice-skv-submitted-cell{text-align:center!important;vertical-align:middle!important}.invoice-skv-submitted{display:inline-flex;width:25px;height:25px;align-items:center;justify-content:center;border:1px solid;border-radius:6px;font-size:17px;font-weight:850;line-height:1}.invoice-skv-submitted.is-submitted{border-color:#8fc99a;background:#e7f5e9;color:#267239}.invoice-skv-submitted.is-not-submitted{border-color:#e9a39a;background:#fff0ee;color:#b23b31}
.invoice-list th:nth-child(1),.invoice-list td:nth-child(1){width:5%}.invoice-list th:nth-child(2),.invoice-list td:nth-child(2){width:15%}.invoice-list th:nth-child(3),.invoice-list td:nth-child(3),.invoice-list th:nth-child(4),.invoice-list td:nth-child(4){width:7%}.invoice-list th:nth-child(5),.invoice-list td:nth-child(5){width:10%}.invoice-list th:nth-child(6),.invoice-list td:nth-child(6),.invoice-list th:nth-child(7),.invoice-list td:nth-child(7),.invoice-list th:nth-child(8),.invoice-list td:nth-child(8){width:7%}

.lead-kind{display:inline-flex;margin:0 0 5px;padding:3px 8px;border:1px solid var(--line);border-radius:999px;background:var(--soft);color:var(--olive);font-size:11px;font-weight:750}
.comp-transaction-field[hidden]{display:none!important}
.ahlsell-search-results{display:grid;gap:8px;margin-top:14px}.ahlsell-result{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:#fff}.ahlsell-result-details{display:grid;gap:4px;min-width:0}.ahlsell-result-details strong{overflow-wrap:anywhere}.ahlsell-result-details span{color:var(--muted);font-size:13px}.ahlsell-result .button{flex:0 0 auto}.ahlsell-preview{overflow-x:auto}.product-list-toolbar #product-list-count,.product-list-toolbar #ahlsell-search-count{min-width:170px}
@media(max-width:680px){.ahlsell-result{align-items:stretch;flex-direction:column;gap:10px}.ahlsell-result .button{width:100%}}
.supplier-credential-cell{min-width:175px}.supplier-credentials{min-width:165px}.supplier-credentials>summary{cursor:pointer;font-weight:700;color:var(--olive)}.supplier-credentials[open]{min-width:220px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#fff}.supplier-credentials>label{display:block;margin:8px 0;font-size:12px}.supplier-credentials input:not([type=checkbox]){width:100%;margin-top:4px}.supplier-credentials small{display:block;color:var(--muted);font-size:11px}.supplier-credential-remove{display:flex!important;align-items:center;gap:6px}.supplier-credential-remove input{width:auto!important}.status-badge{display:inline-block;padding:3px 8px;border:1px solid var(--line);border-radius:999px;font-size:11px;font-weight:700}.status-badge.status-success{color:#25532e;background:#edf7ee;border-color:#b7d8bb}
.supplier-remove-cell{min-width:165px}.supplier-remove{min-width:90px}.supplier-remove>summary{cursor:pointer;color:#a52d25;font-weight:700}.supplier-remove[open]{min-width:190px;padding:8px;border:1px solid #e5b7b1;border-radius:8px;background:#fff8f7}.supplier-remove label{display:block;margin:8px 0;font-size:12px}.supplier-remove label:first-of-type{display:flex;align-items:flex-start;gap:6px}.supplier-remove input:not([type=checkbox]){display:block;width:100%;margin-top:4px}.supplier-remove small{display:block;color:var(--muted);font-size:11px}
.supplier-catalog{margin:12px 0;border:1px solid var(--line);border-radius:8px;padding:12px;background:#fff}.supplier-catalog>summary{cursor:pointer;font-weight:700;color:var(--olive)}.supplier-catalog-search{display:flex;align-items:flex-end;gap:12px;margin:12px 0}.supplier-catalog-search label{flex:1}.supplier-catalog-search input{width:100%;margin-top:4px}.supplier-catalog .billing-table{margin-top:10px}@media(max-width:640px){.supplier-catalog-search{align-items:stretch;flex-direction:column}.supplier-catalog-search .button{width:100%}}
.supplier-catalogs{margin:16px 0;border:1px solid var(--line);border-radius:10px;padding:14px;background:#fff}.supplier-catalogs>summary{cursor:pointer;font-weight:700;color:var(--olive)}.supplier-catalog-all-search{margin:14px 0 18px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}.supplier-catalog-all-search>label{display:block}.supplier-catalog-all-search>label input{width:100%;margin-top:5px}.supplier-catalog-all-search fieldset{margin:12px 0;border:1px solid var(--line);border-radius:7px;padding:8px 12px}.supplier-catalog-all-sources{display:flex;flex-wrap:wrap;gap:8px 18px}.supplier-catalog-all-sources label{display:flex;align-items:center;gap:6px;font-weight:400}.supplier-catalog-all-sources input{width:auto}.supplier-catalog-all-search [data-catalog-all-status]{display:inline-block;margin-left:10px}.supplier-catalogs>.supplier-catalog{background:var(--soft)}@media(max-width:640px){.supplier-catalog-all-search>.button{width:100%}.supplier-catalog-all-search [data-catalog-all-status]{display:block;margin:8px 0 0}}
@media(max-width:760px){.supplier-credential-cell{min-width:210px}}
.inspection-camera-dialog{width:min(760px,calc(100% - 28px));max-width:none;padding:0;border:0;border-radius:12px;box-shadow:0 20px 70px #14200f55}.inspection-camera-dialog::backdrop{background:#17200ecc}.inspection-camera-panel{display:grid;gap:14px;padding:clamp(16px,3vw,26px)}.inspection-camera-panel h2{margin:0}.inspection-camera-panel video{display:block;width:100%;max-height:65vh;min-height:220px;object-fit:contain;border-radius:8px;background:#111}.inspection-camera-panel .hint{margin:0}.inspection-camera-dialog [data-capture-inspection-photo]:disabled{opacity:.55;cursor:not-allowed}
.price-compare-submit.is-loading{cursor:wait;opacity:1;color:#fff;background:#a4532b;border-color:#713618;box-shadow:0 0 0 5px #a4532b55,0 4px 12px #42200e33;font-weight:800}.price-compare-submit.is-loading::before{content:"";display:inline-block;width:17px;height:17px;margin-right:10px;border:3px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-3px;animation:price-compare-spin .8s linear infinite}.price-compare-status[hidden]{display:none!important}.price-compare-status.ai-suggestion-pending{display:flex;min-height:54px;margin:14px 0;padding:14px 16px;border:2px solid var(--copper);border-left-width:6px;border-radius:8px;background:#fff4ed;box-shadow:0 3px 10px #a4532b1c}.price-compare-status.ai-suggestion-pending span{font-size:15px;line-height:1.5;font-weight:700;color:var(--olive)}@media(max-width:680px){.price-compare-submit.is-loading{width:100%;min-height:58px;font-size:17px}.price-compare-status.ai-suggestion-pending{width:100%;margin:14px 0 10px;padding:14px;font-size:16px}}@keyframes price-compare-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.price-compare-submit.is-loading::before{animation-duration:2s}}
.price-compare-status.is-complete{display:flex;min-height:48px;margin:14px 0;padding:12px 16px;border:2px solid #7aa37a;border-left-width:6px;border-radius:8px;background:#edf7ee;color:#214a27;font-weight:750}.price-compare-submit:not(.is-loading):focus-visible{outline:4px solid #a4532b;outline-offset:3px}

/* Guided inspection and cross-portal responsive layout. */
.inspection-wizard-ready .inspection-wizard-progress{position:sticky;top:8px;z-index:6;display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,.6fr);align-items:center;gap:8px 18px;margin:0 0 18px;padding:12px 15px;border:1px solid var(--line);border-left:4px solid var(--olive);border-radius:9px;background:#fff;box-shadow:0 5px 18px #23321912}.inspection-wizard-progress>span{color:var(--olive);font-weight:750}.inspection-wizard-progress progress{width:100%;height:10px;accent-color:var(--olive)}.inspection-step-instruction{margin:0 0 14px;padding:10px 13px;border-radius:7px;background:var(--soft);color:var(--olive);font-weight:650}.inspection-wizard-setup,.inspection-wizard-summary{min-width:0}.inspection-wizard-controls:not([hidden]){position:static;bottom:auto;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:10px;margin:18px -4px -4px;padding:12px 4px 4px;background:transparent;box-shadow:none;border-top:1px solid var(--line)}.inspection-wizard-controls .button{margin:0;min-width:132px}.inspection-wizard-controls .inspection-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;width:100%;margin:0;padding:0;border:0}.inspection-wizard-controls .inspection-actions[hidden]{display:none!important}.inspection-check[hidden]{display:none!important}

.admin-shell,.admin-shell>* ,.admin-card,.admin-heading,.operations-form,.billing-form-grid,.admin-grid,.admin-main-nav,.admin-work-tabs,.billing-nav,.billing-table,.inspection-workspace,.inspection-form,.mailbox-layout,.payment-import-grid{min-width:0;max-width:100%}.billing-table{overscroll-behavior-x:contain;scrollbar-width:thin}.billing-table table{max-width:none}.billing-form-grid>*{min-width:0}.billing-form-grid input,.billing-form-grid select,.billing-form-grid textarea,.operations-form input,.operations-form select,.operations-form textarea{max-width:100%}.admin-main-nav,.admin-work-tabs,.billing-nav{scrollbar-width:thin;overscroll-behavior-x:contain}.admin-main-nav a,.admin-work-tabs a,.billing-nav a{flex:0 0 auto}.customer-actions{flex-wrap:wrap;white-space:normal}.customer-delete-form{z-index:4}.job-document-actions,.mailbox-actions,.inspection-photo-actions,.admin-user-actions{min-width:0}.job-document-actions>*{max-width:100%}.admin-user-heading>*{min-width:0;overflow-wrap:anywhere}.admin-card img,.admin-card iframe,.admin-card video{max-width:100%}

@media(max-width:900px){.admin-shell:has(.billing-nav){width:calc(100% - 28px)}.admin-grid,.payment-import-grid{grid-template-columns:minmax(0,1fr)}.admin-main-nav .button,.billing-nav .button{margin-left:0}.admin-heading{padding-right:140px}.admin-shell:has(.billing-nav)>.admin-card{padding:clamp(16px,3vw,24px)}}
@media(max-width:680px){body{font-size:16px}.admin-shell{width:calc(100% - 20px);margin:16px auto 36px}.admin-shell:has(.billing-nav){width:calc(100% - 20px)}.admin-brand{margin-bottom:16px}.admin-card,.admin-heading{padding:16px;border-radius:10px}.admin-card{margin:12px 0}.admin-card h2{font-size:21px;line-height:1.25}.admin-heading{padding:18px 16px}.logout-form{position:static;display:flex;justify-content:flex-start;margin-top:12px}.logout-form .button{min-height:44px;margin:0}.notice{overflow-wrap:anywhere}.admin-main-nav{margin:8px 0 12px;padding:6px}.admin-main-nav a:not(.button),.admin-work-tabs a,.billing-nav a:not(.button){min-height:42px;padding:8px 11px;font-size:14px}.admin-work-tabs{margin:-4px 0 12px;padding:6px}.admin-heading h1,.admin-card h1{font-size:clamp(25px,7vw,32px)}.admin-grid,.admin-form-grid,.billing-form-grid,.payment-import-grid,.payment-ai-panel{grid-template-columns:minmax(0,1fr)}.billing-form-grid>.full-width{grid-column:auto}.billing-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.invoice-overview-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.billing-table{margin:12px 0;border-radius:7px}.billing-table table{font-size:13px}.billing-table th,.billing-table td{padding:9px}.billing-line,.job-material-line{grid-template-columns:minmax(0,1fr)}.billing-line>*{min-width:0}.invoice-product-tools,.invoice-bulk-toolbar,.product-list-toolbar,.supplier-catalog-search,.ahlsell-import>form:first-of-type{align-items:stretch;flex-direction:column}.invoice-product-tools>* ,.invoice-bulk-toolbar>* ,.product-list-toolbar>*{max-width:100%}.invoice-bulk-toolbar button,.product-list-toolbar button{min-height:44px}.invoice-actions{width:calc(100% - 20px)}.invoice-actions-stack .inline-form{align-items:stretch;flex-wrap:wrap}.invoice-actions-stack .inline-form label,.invoice-actions-stack .inline-form button{width:100%}.invoice-actions-stack .inline-form input[type=date]{width:100%}.job-list-filter{align-items:stretch;flex-direction:column}.job-list-filter select,.job-list-filter .button{width:100%;min-height:44px}.job-offer-form,.job-offer-summary,.job-delete-form,.job-offer-delete-form,.job-offer-reprice-form,.job-offer-decision-form{align-items:stretch;flex-direction:column}.job-offer-form>label,.job-offer-form .button,.job-offer-summary .button,.job-delete-form .button,.job-offer-delete-form .button,.job-offer-reprice-form label,.job-offer-reprice-form .button,.job-offer-decision-form>*{width:100%;min-width:0}.job-print-header{align-items:flex-start;flex-direction:column}.job-print-table{display:block;overflow-x:auto}.job-print-table table{min-width:540px}.customer-actions{align-items:stretch}.customer-actions>.button,.customer-actions .customer-delete-trigger{min-height:44px}.payment-match-form{min-width:0;width:100%}.payment-ai-panel>[data-payment-ai-status]{grid-column:auto}.ahlsell-result{align-items:stretch;flex-direction:column}.ahlsell-result .button{width:100%;min-height:44px}.inspection-wizard-ready .inspection-wizard-progress{top:4px;grid-template-columns:minmax(0,1fr);gap:5px;padding:10px 12px}.inspection-wizard-controls:not([hidden]){margin-right:-3px;margin-left:-3px}.inspection-wizard-controls .button{min-width:0;min-height:48px;flex:1}.inspection-wizard-controls .inspection-actions{display:grid;grid-template-columns:1fr}.inspection-wizard-controls .inspection-actions .button{width:100%;min-height:48px}.inspection-check{padding:12px}.inspection-photo-actions .button{flex:1 1 100%;min-height:48px}.inspection-record>header{align-items:flex-start;flex-direction:column}.inspection-photo-grid figure{width:min(100%,260px)}.mailbox-layout{grid-template-columns:minmax(0,1fr)}.mailbox-list{max-height:38vh}.mailbox-actions>*{max-width:100%}.module-roadmap-grid{grid-template-columns:minmax(0,1fr)}.supplier-catalog-search .button{width:100%}.inspection-camera-panel{padding:14px}.inspection-camera-panel video{min-height:190px}}
@media(max-width:420px){.admin-card,.admin-heading{padding:13px}.admin-main-nav a:not(.button),.admin-work-tabs a,.billing-nav a:not(.button){padding:7px 9px;font-size:13px}.inspection-stats>div{padding:8px}.inspection-stats span{font-size:10px}.billing-stats div,.billing-stats>a{padding:12px}.invoice-summary-card{padding:9px}.inspection-wizard-controls .button{padding:9px 10px;font-size:14px}}
@media(prefers-reduced-motion:reduce){.inspection-wizard-controls .button,.inspection-wizard-progress{scroll-behavior:auto}}


@media(max-width:420px){.inspection-wizard-controls:not([hidden]){display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1.3fr)}.inspection-wizard-controls>[data-inspection-wizard-back][hidden]{display:none}.inspection-wizard-controls:not([hidden])>[data-inspection-wizard-back][hidden]+[data-inspection-wizard-next]{grid-column:1/-1}}


@media(max-width:680px){.product-list-toolbar .product-search-label,.product-list-toolbar .product-category-filter-label{flex:none;width:100%;max-width:100%}.product-list-toolbar input,.product-list-toolbar select{height:44px;min-height:44px}}
.mailbox-message-empty{display:grid;min-height:220px;place-items:center;padding:24px;border:1px dashed var(--line);border-radius:9px;background:var(--soft);color:var(--muted);text-align:center}
@media(max-width:760px){.mailbox-message-empty{display:none}}
.mailbox-attachments{margin:1rem 0;padding:1rem;border:1px solid var(--line);border-radius:9px;background:var(--soft)}.mailbox-attachments h3{margin:.1rem 0 .6rem}.mailbox-attachments ul{margin:0;padding-left:1.25rem}.mailbox-attachments li+li{margin-top:.35rem}.mailbox-attachments .small{margin-left:.35rem}
.customer-list-heading-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:10px;margin:8px 0 14px}.customer-page-actions{display:flex;justify-content:flex-end;gap:5px}.customer-page-actions .button{min-height:38px;margin:0;padding:6px 8px;font-size:12px;line-height:1.2;white-space:nowrap}.customer-filter-disclosure,.customer-create-disclosure{margin:8px 0 14px;border:1px solid var(--line);border-radius:9px;background:#fbfcf9}.customer-list-heading-row .customer-filter-disclosure{min-width:0;margin:0}.customer-filter-disclosure>summary,.customer-create-disclosure>summary{display:flex;align-items:center;gap:9px;padding:10px 13px;color:var(--olive);font-weight:750;cursor:pointer;list-style:none}.customer-filter-disclosure>summary::-webkit-details-marker,.customer-create-disclosure>summary::-webkit-details-marker{display:none}.customer-filter-disclosure>summary:before,.customer-create-disclosure>summary:before{content:"▸"}.customer-filter-disclosure[open]>summary:before,.customer-create-disclosure[open]>summary:before{content:"▾"}.customer-filter-disclosure>summary small{margin-left:auto;color:var(--muted);font-weight:500}.customer-filter-disclosure .customer-list-toolbar{margin:0;padding:12px 13px;border-top:1px solid var(--line)}.customer-create-disclosure-content{padding:4px 13px 15px;border-top:1px solid var(--line)}.customer-create-disclosure-content form{margin-top:0}
#customer-create-form{display:grid;margin:0}#customer-create-form>.button{justify-self:end;margin:14px 0 0}.customer-create-grid{grid-template-columns:repeat(12,minmax(0,1fr));align-items:start;gap:12px 16px;padding-top:12px}.customer-create-grid>label{grid-column:span 6;display:grid;align-content:start;gap:5px;margin:0}.customer-create-grid>label input,.customer-create-grid>label select,.customer-create-grid>.property-lookup-field>input{box-sizing:border-box;height:44px;min-height:44px;padding:8px 12px}.customer-create-grid>label>.hint{display:block;margin:0;color:var(--muted);font-size:12px;font-weight:400;line-height:1.35}.customer-create-grid>label:has([name="customer_type"]){order:10}.customer-create-grid>label:has([name="name"]){order:20}.customer-create-grid>label:has([name="email"]){order:30}.customer-create-grid>label:has([name="phone"]){order:40}.customer-create-grid>label:has([name="mobile"]){order:50}.customer-create-grid>label:has([name="personal_number"]),.customer-create-grid>label:has([name="org_number"]){order:60}.customer-create-grid>label:has([name="vat_number"]){order:70}.customer-create-grid>label:has([name="reverse_charge_vat"]){order:80}.customer-create-grid>label:has([name="labor_discount_percent"]){order:90}.customer-create-grid>label:has([name="referral_partner_id"]){order:100}.customer-create-grid>label:has([name="billing_attention"]){order:110}.customer-create-grid>label:has([name="billing_address"]){order:120}.customer-create-grid>label:has([name="billing_postcode"]){grid-column:span 3;order:130}.customer-create-grid>label:has([name="billing_city"]){grid-column:span 5;order:140}.customer-create-grid>label:has([name="billing_country"]){grid-column:span 4;order:150}.customer-create-grid>.customer-review-field{order:160}.customer-create-grid>.property-lookup-field{order:170}.customer-create-grid>label:has([name="delivery_attention"]){order:180}.customer-create-grid>label:has([name="delivery_address"]){order:190}.customer-create-grid>label:has([name="delivery_postcode"]){grid-column:span 3;order:200}.customer-create-grid>label:has([name="delivery_city"]){grid-column:span 5;order:210}.customer-create-grid>label:has([name="delivery_country"]){grid-column:span 4;order:220}.customer-create-grid>label:has([name="billing_attention"]),.customer-create-grid>label:has([name="billing_address"]),.customer-create-grid>label:has([name="delivery_attention"]),.customer-create-grid>label:has([name="delivery_address"]){position:relative;margin-top:13px;padding-top:24px;border-top:1px solid var(--line)}.customer-create-grid>label:has([name="billing_attention"]):before,.customer-create-grid>label:has([name="delivery_attention"]):before{position:absolute;top:5px;left:0;color:var(--copper);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.customer-create-grid>label:has([name="billing_attention"]):before{content:"Fakturaadress"}.customer-create-grid>label:has([name="delivery_attention"]):before{content:"Leveransadress"}.customer-create-grid>.customer-reverse-charge{grid-template-columns:18px minmax(0,1fr);align-items:center;column-gap:8px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--paper)}.customer-create-grid>.customer-reverse-charge input[type="checkbox"]{display:block;width:18px;height:18px;min-height:18px;margin:0;padding:0;accent-color:var(--olive)}.customer-create-grid>.customer-reverse-charge>.hint{grid-column:1/-1;margin-left:26px}.person-number-control{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.person-number-control .button{display:inline-flex;align-items:center;min-height:44px;margin:0;padding:8px 12px;white-space:nowrap}.person-number-help{margin:0;color:var(--muted);font-size:12px;font-weight:400;line-height:1.35}.customer-review-field{grid-column:1/-1;display:grid;gap:3px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:var(--paper)}.customer-review-field .customer-review-opt-in{display:flex;align-items:center;gap:9px;margin:0;color:var(--olive);font-weight:700;cursor:pointer}.customer-review-field input[type="checkbox"]{display:block;flex:0 0 auto;width:18px;height:18px;margin:0;accent-color:var(--olive)}.customer-review-field .hint{margin:0 0 0 27px;color:var(--muted);font-size:12px;font-weight:400}.customer-create-grid>.property-lookup-field{grid-column:1/-1;grid-template-columns:minmax(260px,1fr) auto;grid-template-areas:"property-label property-label" "property-input property-tools" "property-help property-help";align-items:center;gap:5px 12px;margin:0;padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}.customer-create-grid>.property-lookup-field>label{grid-area:property-label}.customer-create-grid>.property-lookup-field>input{grid-area:property-input;width:100%}.customer-create-grid>.property-lookup-field>.property-lookup-tools{grid-area:property-tools;justify-content:flex-end;flex-wrap:nowrap}.customer-create-grid>.property-lookup-field>small{grid-area:property-help}.customer-create-grid>.property-lookup-field .button{min-height:40px;white-space:nowrap}
.customer-create-grid>.customer-address-card{grid-column:span 6;display:grid;grid-template-columns:repeat(12,minmax(0,1fr));align-content:start;gap:10px 12px;min-width:0;margin:0;padding:10px 12px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}.customer-create-grid>.customer-billing-address-card{order:110}.customer-create-grid>.customer-delivery-address-card{order:120}.customer-address-card>legend{padding:0 6px;color:var(--copper);font-size:11px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.customer-address-card>label{grid-column:1/-1;display:grid;gap:5px;margin:0}.customer-address-card>label:has([name="billing_postcode"]),.customer-address-card>label:has([name="delivery_postcode"]),.customer-address-card>label:has([name="billing_city"]),.customer-address-card>label:has([name="delivery_city"]),.customer-address-card>label:has([name="billing_country"]),.customer-address-card>label:has([name="delivery_country"]){grid-column:span 4}.customer-address-card input{box-sizing:border-box;width:100%;height:44px;min-height:44px;padding:8px 12px}.customer-create-grid>.customer-review-field{order:130}.customer-create-grid>.property-lookup-field{order:140}
@media(min-width:901px){.customer-list-heading-row{grid-template-columns:minmax(0,1fr) var(--customer-actions-column-width,220px)}.customer-page-actions{width:auto;margin-right:var(--customer-actions-right-gap,0);justify-content:space-between}}
.customer-list-toolbar{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:0}.customer-list-toolbar label{display:grid;gap:5px;flex:1;max-width:520px;margin:0;font-weight:700}.customer-list-toolbar input{height:44px;min-height:44px;padding:8px 12px}.customer-list-toolbar>.button{min-height:44px;margin:0;padding:8px 12px}.customer-list-toolbar [role=status]{display:flex;align-items:center;min-height:44px;color:var(--muted);font-size:14px}
.customer-list-toolbar{flex-wrap:wrap}.customer-list-toolbar label:first-of-type{flex:2 1 260px}.customer-list-toolbar label:not(:first-of-type){flex:0 1 180px}.customer-list-toolbar select{height:44px;min-height:44px}.customer-table tr[hidden]{display:none!important}
.customer-sort-button{display:inline-flex;align-items:center;gap:4px;margin:-6px -8px;padding:6px 8px;border:0;border-radius:6px;background:transparent;color:var(--olive);font:inherit;font-weight:750;cursor:pointer}.customer-sort-button:hover,.customer-sort-button:focus-visible{background:#e4eadb;outline:none}.customer-sort-button:focus-visible{box-shadow:0 0 0 3px #a4532b36}.customer-sort-button[aria-pressed="true"]{background:var(--olive);color:#fff}.customer-sort-button[aria-pressed="true"]:after{content:"↑";font-size:12px}.customer-sort-button[aria-pressed="true"][data-sort-direction="desc"]:after{content:"↓"}
@media(max-width:760px){.customer-create-grid{grid-template-columns:1fr;gap:10px;padding-top:10px}.customer-create-grid>label,.customer-create-grid>label:has([name="billing_postcode"]),.customer-create-grid>label:has([name="billing_city"]),.customer-create-grid>label:has([name="billing_country"]),.customer-create-grid>label:has([name="delivery_postcode"]),.customer-create-grid>label:has([name="delivery_city"]),.customer-create-grid>label:has([name="delivery_country"]),.customer-create-grid>.customer-address-card{grid-column:1/-1}.customer-create-grid>label:has([name="billing_address"]),.customer-create-grid>label:has([name="delivery_address"]){margin-top:0;padding-top:0;border-top:0}.customer-create-grid>.property-lookup-field{grid-template-columns:1fr;grid-template-areas:"property-label" "property-input" "property-tools" "property-help"}.customer-create-grid>.property-lookup-field>.property-lookup-tools{justify-content:flex-start;flex-wrap:wrap}.customer-review-field .hint{margin-left:27px}#customer-create-form>.button{justify-self:stretch;text-align:center}}
@media(max-width:680px){.customer-list-toolbar{align-items:stretch;flex-direction:column}.customer-list-toolbar label{max-width:100%}.customer-list-heading-row{grid-template-columns:minmax(0,1fr);gap:7px}.customer-page-actions{justify-content:flex-end}.customer-page-actions .button{min-height:42px;padding-inline:10px}.customer-filter-disclosure>summary small{display:none}.customer-filter-disclosure .customer-list-toolbar{padding:11px}.customer-create-disclosure-content{padding:2px 11px 13px}}

/* Mobile admin shell: compact disclosure navigation and card-shaped table rows. */
.admin-desktop-links{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}.admin-mobile-menu{display:none;min-width:0}.admin-mobile-menu summary{list-style:none;cursor:pointer;color:var(--olive);font-weight:750}.admin-mobile-menu summary::-webkit-details-marker{display:none}.admin-mobile-menu summary:after{content:"⌄";float:right}.admin-mobile-menu[open] summary:after{content:"⌃"}.admin-mobile-menu summary span{display:inline;margin-left:10px;color:var(--muted);font-size:12px;font-weight:600}.admin-mobile-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}.admin-mobile-menu-grid a{display:flex;align-items:center;min-height:46px;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--olive);font-weight:650;text-decoration:none}.admin-mobile-menu-grid a[aria-current="page"]{border-color:#9eae8c;background:var(--soft);box-shadow:inset 3px 0 var(--olive)}
@media(max-width:680px){.admin-desktop-links{display:none}.admin-mobile-menu{display:block;width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:9px;background:#fff}.admin-main-nav{display:block}.admin-main-nav .admin-mobile-menu-grid a{flex:initial;min-height:46px;padding:9px 11px;font-size:14px}.billing-nav.admin-main-nav{padding:0;border:0;background:transparent;box-shadow:none}.admin-main-nav .admin-mobile-menu summary{min-height:30px}.admin-work-tabs,.admin-profile-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.admin-work-tabs a{justify-content:center;min-width:0;text-align:center;border:1px solid var(--line);background:#fff;overflow-wrap:anywhere}.admin-work-tabs a[aria-current="page"]{border-color:#9eae8c}.billing-table{overflow:visible}.billing-table table[data-mobile-cards]{display:block;width:100%;min-width:0!important;table-layout:auto}.billing-table table[data-mobile-cards] thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.billing-table table[data-mobile-cards] tbody{display:grid;gap:10px}.billing-table table[data-mobile-cards] tbody tr{display:block;min-width:0;padding:5px 10px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 3px 12px #23321908}.billing-table table[data-mobile-cards] tbody td{display:grid;grid-template-columns:minmax(82px,.65fr) minmax(0,1.35fr);gap:8px;align-items:start;min-width:0;padding:8px 0;border-bottom:1px solid #edf0e9;overflow-wrap:anywhere}.billing-table table[data-mobile-cards] tbody td:last-child{border-bottom:0}.billing-table table[data-mobile-cards] tbody td:before{content:attr(data-mobile-label);color:var(--muted);font-size:12px;font-weight:750;line-height:1.4}.billing-table table[data-mobile-cards] tbody td>*{min-width:0;max-width:100%;overflow-wrap:anywhere}.billing-table table[data-mobile-cards] tbody td input,.billing-table table[data-mobile-cards] tbody td select{width:100%;min-width:0}.invoice-list{min-width:0!important}.invoice-list .invoice-actions-stack{min-width:0}.customer-table-hint,.invoice-table-hint,.supplier-source-scroll-hint{display:none!important}}
@media(max-width:420px){.admin-mobile-menu-grid{grid-template-columns:1fr 1fr;gap:5px}.admin-mobile-menu-grid a{padding:8px;font-size:13px}.billing-table table[data-mobile-cards] tbody td{grid-template-columns:minmax(70px,.55fr) minmax(0,1.45fr);gap:6px;padding:7px 0}.billing-table table[data-mobile-cards] tbody tr{padding:4px 9px}}
.inspection-group-measurements{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.inspection-group-measurements>p{margin:0 0 10px}.inspection-group-row{display:grid;grid-template-columns:repeat(4,minmax(120px,1fr));gap:8px;align-items:end;margin:8px 0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}.inspection-group-row label{min-width:0;margin:0;font-size:13px}.inspection-group-row input,.inspection-group-row select{width:100%;min-width:0;min-height:44px;padding:8px}.inspection-group-row .inspection-group-remove{min-height:44px;margin:0;padding:8px 10px;font-size:13px}.inspection-group-measurements>[data-add-inspection-group]{min-height:44px;margin:8px 0 0}
@media(max-width:680px){.inspection-group-row{grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}.inspection-group-row .inspection-group-remove{grid-column:1/-1;width:100%}.job-print-table{overflow:visible}.job-print-table[data-mobile-cards]{display:block;width:100%;min-width:0;table-layout:auto}.job-print-table[data-mobile-cards] thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.job-print-table[data-mobile-cards] tbody{display:grid;gap:8px}.job-print-table[data-mobile-cards] tbody tr{display:block;padding:5px 10px;border:1px solid var(--line);border-radius:8px}.job-print-table[data-mobile-cards] tbody td{display:grid;grid-template-columns:minmax(90px,.65fr) minmax(0,1.35fr);gap:8px;padding:7px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.job-print-table[data-mobile-cards] tbody td:before{content:attr(data-mobile-label);color:var(--muted);font-size:12px;font-weight:700}.job-print-table[data-mobile-cards] tbody td:last-child{border:0}}

/* Combined company self-check programme and job-specific controls. */
.self-check-programme,.self-check-record{padding:0;overflow:hidden}.self-check-programme>summary,.self-check-record>summary{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:16px 18px;cursor:pointer;list-style:none}.self-check-programme>summary::-webkit-details-marker,.self-check-record>summary::-webkit-details-marker{display:none}.self-check-programme>summary:before,.self-check-record>summary:before{content:"▸";flex:0 0 auto;color:var(--olive);font-weight:800}.self-check-programme[open]>summary:before,.self-check-record[open]>summary:before{content:"▾"}.self-check-programme>summary>span:first-of-type,.self-check-record>summary>span:first-of-type{display:grid;gap:3px;min-width:0;margin-right:auto}.self-check-programme summary small,.self-check-record summary small{color:var(--muted);font-weight:400}.self-check-programme-body,.self-check-record>div{padding:0 18px 18px;border-top:1px solid var(--line)}.self-check-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.self-check-grid .full-width{grid-column:1/-1}.self-check-grid label,.self-check-control label{display:grid;gap:6px}.self-check-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.self-check-control{min-width:0;margin:0;padding:14px;border:1px solid var(--line);border-radius:8px}.self-check-control legend{padding:0 6px;color:var(--olive);font-weight:750}.self-check-control p{min-height:42px;margin:0 0 10px;color:var(--muted);font-size:13px}.self-check-control label+label{margin-top:9px}.self-check-confirm{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start}.self-check-confirm input{width:auto;margin-top:3px}.self-check-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:18px}.self-check-record{margin-top:10px;border:1px solid var(--line);border-radius:8px}.self-check-editor h2{margin-top:28px}.status-badge.ok{background:#e9f4e5;color:#2e642b}.status-badge.warning{background:#fff2d7;color:#7a5100}
.self-check-identity{margin-bottom:16px}.self-check-compact-details{margin:16px 0;border:1px solid var(--line);border-radius:9px;background:#fbfcf9}.self-check-compact-details>summary{display:flex;align-items:center;gap:8px;padding:13px 15px;cursor:pointer;color:var(--olive);font-weight:750;list-style:none}.self-check-compact-details>summary::-webkit-details-marker{display:none}.self-check-compact-details>summary:before{content:"▸"}.self-check-compact-details[open]>summary:before{content:"▾"}.self-check-compact-details>summary small{margin-left:auto;color:var(--muted);font-weight:400}.self-check-compact-details>.self-check-grid{padding:15px;border-top:1px solid var(--line)}.self-check-quick-confirm{margin:16px 0;padding:13px;border:1px solid #c6d5b8;border-radius:8px;background:#f5f8f1;font-weight:700}.self-check-quick-confirm input{flex:0 0 22px;width:22px;height:22px;accent-color:var(--olive)}.self-check-signoff{margin-top:16px}
.self-check-control-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;align-items:end}.self-check-control-fields label+label{margin-top:0}
@media(max-width:760px){.self-check-grid,.self-check-controls{grid-template-columns:1fr}.self-check-control-fields{grid-template-columns:1fr}.self-check-control-fields label+label{margin-top:9px}.self-check-programme>summary,.self-check-record>summary{align-items:flex-start}.self-check-programme>summary .status-badge,.self-check-record>summary .status-badge{white-space:nowrap}}
@media(min-width:681px) and (max-width:900px){.admin-desktop-links{display:none}.admin-mobile-menu{display:block;width:100%;padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#fff}.admin-main-nav{display:block}.billing-nav.admin-main-nav{padding:0;border:0;background:transparent;box-shadow:none}.billing-table{overflow:visible}.billing-table table[data-mobile-cards]{display:block;width:100%;min-width:0!important;table-layout:auto}.billing-table table[data-mobile-cards] thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.billing-table table[data-mobile-cards] tbody{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.billing-table table[data-mobile-cards] tbody tr{display:block;min-width:0;padding:6px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;box-shadow:0 3px 12px #23321908}.billing-table table[data-mobile-cards] tbody td{display:grid;grid-template-columns:minmax(100px,.7fr) minmax(0,1.3fr);gap:8px;align-items:start;min-width:0;padding:9px 0;border-bottom:1px solid #edf0e9;overflow-wrap:anywhere}.billing-table table[data-mobile-cards] tbody td:before{content:attr(data-mobile-label);color:var(--muted);font-size:12px;font-weight:750}.billing-table table[data-mobile-cards] tbody td>*{min-width:0;max-width:100%;overflow-wrap:anywhere}.billing-table table[data-mobile-cards] tbody td input,.billing-table table[data-mobile-cards] tbody td select{width:100%;min-width:0}.billing-table table[data-mobile-cards] tbody td:last-child{border-bottom:0}.invoice-list{min-width:0!important}.customer-table-hint,.invoice-table-hint,.supplier-source-scroll-hint{display:none!important}.inspection-group-row{grid-template-columns:repeat(2,minmax(0,1fr))}.inspection-group-row .inspection-group-remove{grid-column:1/-1}}
.inspection-step-checklist{display:grid;gap:7px;margin:12px 0;padding:10px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.inspection-task-check{display:flex;align-items:flex-start;gap:10px;min-width:0;margin:0!important;padding:8px;border:1px solid transparent;border-radius:7px;background:#fff;line-height:1.4}.inspection-task-check:has(input:checked){border-color:#c6d5b8;background:#f5f8f1}.inspection-task-check input{flex:0 0 22px;width:22px;height:22px;margin:0;accent-color:var(--olive)}.inspection-task-check span{min-width:0;overflow-wrap:anywhere}.inspection-item-photos{min-width:0;margin:12px 0 0;padding:11px;border:1px dashed #9aa88c;border-radius:8px;background:#fbfcf9}.inspection-item-photos legend{padding:0 5px;color:var(--olive);font-size:13px;font-weight:750}.inspection-item-photos .hint{display:block;margin:7px 0;font-size:12px}.inspection-item-photos .inspection-photo-actions{align-items:center}.inspection-item-photos .button{min-height:42px}.inspection-item-photo-count{margin-top:8px;color:var(--muted);font-size:13px}.inspection-item-photos .inspection-photo-preview figure{width:min(150px,45%);margin:6px 6px 0 0}.inspection-item-photos .inspection-photo-preview img{height:auto;max-height:120px;object-fit:contain}.inspection-check .inspection-item-photos{grid-column:1/-1}.inspection-record .inspection-task-report{display:grid;gap:3px;margin:6px 0;padding:0;list-style:none}.inspection-record .inspection-task-report li:before{content:"✓";display:inline-grid;place-items:center;width:18px;height:18px;margin-right:7px;border:1px solid #64814e;border-radius:4px;color:var(--olive);font-weight:700}.inspection-report-action{margin:16px 0}.inspection-report-action .button{display:inline-flex;align-items:center;min-height:44px}
@media(max-width:680px){.inspection-task-check{min-height:44px;padding:9px 7px}.inspection-item-photos .inspection-photo-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.inspection-item-photos .inspection-photo-actions .button{width:100%;padding:9px 6px;font-size:13px}.inspection-group-measurements{padding:10px}.inspection-check{padding:12px 10px}.inspection-report-action .button{width:100%;justify-content:center}}
.inspection-measurement-list{margin:14px 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.inspection-measurement-list>p{margin:0 0 10px}.inspection-measurement-row{display:grid;grid-template-columns:minmax(130px,1.2fr) minmax(100px,.7fr) minmax(70px,.45fr) minmax(130px,1fr) minmax(120px,.9fr) auto;gap:8px;align-items:end;margin:8px 0;padding:10px;border:1px solid var(--line);border-radius:8px;background:#fff}.inspection-measurement-row label{min-width:0;margin:0;font-size:13px}.inspection-measurement-row input{width:100%;min-width:0;min-height:44px;padding:8px}.inspection-measurement-row button{min-height:44px;margin:0;padding:8px 10px;font-size:13px}.inspection-measurement-list>[data-add-inspection-measurement]{min-height:44px;margin:8px 0 0}.inspection-group-report{overflow-wrap:anywhere}
@media(max-width:680px){.inspection-measurement-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.inspection-measurement-row button{grid-column:1/-1;width:100%}}
.supplier-source-table input[type=checkbox]{width:22px!important;height:22px;justify-self:start}
@media(min-width:681px) and (max-width:900px){.admin-main-nav,.admin-work-tabs,.billing-nav{flex-wrap:wrap;overflow-x:visible;scroll-snap-type:none}.admin-main-nav a,.admin-work-tabs a,.billing-nav a{scroll-snap-align:none}}@media(max-width:680px){.admin-main-nav,.admin-work-tabs,.billing-nav{flex-wrap:wrap;overflow-x:visible;scroll-snap-type:none;scrollbar-width:auto}.admin-main-nav a,.admin-work-tabs a,.billing-nav a{scroll-snap-align:none}}
.invoice-table-hint{display:none}@media(max-width:960px){.invoice-table-hint{display:block;margin:8px 0;color:var(--muted);font-size:13px}}
@media(max-width:900px){.billing-table table[data-mobile-cards] .customer-actions-cell{min-width:0!important}.billing-table table[data-mobile-cards] .customer-actions{flex-wrap:wrap;white-space:normal}.billing-table table[data-mobile-cards] td[data-mobile-label="Fastighetsbeteckning"]:before{content:"Fastighets\A beteckning";white-space:pre-line}}
@media(max-width:900px){.billing-table table[data-mobile-cards] .customer-actions{width:100%;min-width:0}.billing-table table[data-mobile-cards] .customer-delete-details[open]{box-sizing:border-box;flex-basis:100%;min-width:0;width:100%}.billing-table table[data-mobile-cards] .customer-delete-form{box-sizing:border-box;width:100%;max-width:100%;overflow-wrap:anywhere}.billing-table table[data-mobile-cards] .customer-delete-form input{box-sizing:border-box;max-width:100%}}
@media(max-width:900px){.billing-table table[data-mobile-cards] tbody td{width:auto!important}}
@media(max-width:900px){.billing-table table[data-mobile-cards] tbody td[colspan]{display:block!important}.billing-table table[data-mobile-cards] tbody td[colspan]:before{display:none}.billing-table table[data-mobile-cards] tbody td[data-mobile-label="Redigera tidrapportering"]{display:block!important}.billing-table table[data-mobile-cards] tbody td[data-mobile-label="Redigera tidrapportering"]:before{display:block;margin-bottom:8px}}
.message-template-section{min-width:0;margin:16px 0;padding:16px;border:1px solid var(--line);border-radius:9px;background:#fff}.message-template-section legend{padding:0 7px;color:var(--olive);font-size:18px;font-weight:750}.message-template-section textarea{min-height:150px;line-height:1.5}.message-template-section .hint{overflow-wrap:anywhere}.message-template-section code{white-space:normal;font-size:12px}.message-template-logo-option{display:flex;align-items:center;gap:9px}.message-template-logo-option input{width:auto;min-height:0}.message-template-attachments{margin:12px 0;padding:10px 12px;border-radius:7px;background:var(--paper)}.message-template-preview-logo{padding:12px 0 2px}.message-template-preview-logo img{display:block;max-width:190px;width:100%;height:auto}
.message-template-preview{min-width:0;margin-top:14px;padding:14px;border:1px solid #c9d5bf;border-left:4px solid var(--olive);border-radius:8px;background:var(--paper)}.message-template-preview h3{margin:0 0 2px;color:var(--olive);font-size:16px}.message-template-preview>p{margin:0 0 10px}.message-template-preview-subject{display:block;overflow-wrap:anywhere;padding:10px 0;border-bottom:1px solid var(--line)}.message-template-preview-body{max-width:100%;margin:10px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;line-height:1.55;color:var(--ink)}
.inspection-template-library{margin:24px 0;padding:18px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.inspection-template-library>h3{margin:0 0 4px}.inspection-template-library>p{margin:0 0 14px;color:var(--muted)}.inspection-template-card{margin:10px 0;border:1px solid #c9d5bf;border-radius:8px;background:#fff}.inspection-template-card summary{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(0,1.6fr);gap:8px;align-items:center;padding:13px 15px;color:var(--olive);cursor:pointer}.inspection-template-card summary span{color:var(--muted);font-size:14px}.inspection-template-card>div{padding:0 18px 16px}.inspection-template-card>div>p{margin:4px 0 12px;color:var(--muted)}.inspection-template-card ol{padding-left:22px}.inspection-template-card ol>li{padding:10px 0;border-top:1px solid var(--line)}.inspection-template-card ol>li>p{margin:4px 0;color:var(--muted)}.inspection-template-card ol ul{margin:5px 0;padding-left:20px}.inspection-template-card ol ul li{margin:3px 0}@media(max-width:680px){.inspection-template-library{padding:12px}.inspection-template-card summary{grid-template-columns:1fr;gap:2px;padding:12px}.inspection-template-card summary span{font-size:13px}.inspection-template-card>div{padding:0 12px 12px}}
.admin-counter-link{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:6px 11px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--olive);font-size:13px;font-weight:650;text-decoration:none;white-space:nowrap}.admin-counter-link strong{font-size:15px;font-weight:800}.admin-counter-link:hover,.admin-counter-link:focus-visible{border-color:#9bb68e;background:#f0f5eb}.admin-counter-link:focus-visible{outline:3px solid #a4532b55;outline-offset:2px}.admin-counter-inquiries .admin-counter-icon{color:#a4532b}.admin-counter-jobs .admin-counter-icon{color:var(--olive)}@media(max-width:680px){.admin-counter-link{min-height:42px;padding:7px 10px;font-size:12px}.admin-counter-link strong{font-size:14px}}
/* Stugtrygg: touch-first guided checklist */
.cottage-page{max-width:1100px;margin-inline:auto}.cottage-form{display:grid;gap:18px}.cottage-setup,.cottage-final,.cottage-step{padding:clamp(16px,3vw,28px);border:1px solid #d7dfcf;border-radius:14px;background:#fbfcf9}.cottage-wizard{display:grid;gap:12px;scroll-margin-top:16px}.cottage-step[hidden]{display:none}.cottage-step legend{padding:0 8px;font-size:1.2rem;font-weight:800;color:#30451c}.cottage-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.cottage-check{display:flex;align-items:flex-start;gap:12px;min-height:54px;padding:14px;border:1px solid #d7dfcf;border-radius:10px;background:white;cursor:pointer}.cottage-check input,.cottage-assessment input{width:22px;height:22px;flex:0 0 auto;accent-color:#30451c}.cottage-assessment{display:flex;flex-wrap:wrap;gap:12px 22px;margin:12px 0;padding:12px;border:1px solid #d7dfcf;border-radius:10px}.cottage-assessment legend{font-size:1rem}.cottage-assessment label{display:flex;align-items:center;gap:8px;min-height:42px}.cottage-photo-label{display:grid;gap:8px;margin-top:12px}.cottage-photo-label input[type=file]{min-height:48px;padding:10px;border:1px dashed #899879;border-radius:9px;background:#fff}.cottage-wizard-nav{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}.cottage-wizard-nav button{min-height:48px}.cottage-record{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:14px 0;border-bottom:1px solid #d7dfcf;scroll-margin-top:20px}.cottage-record h3,.cottage-record p{margin:4px 0}
.cottage-field-error{display:block;margin-top:6px;color:#a52f24;font-size:.9rem;font-weight:700}.cottage-form [aria-invalid="true"]{border-color:#a52f24;outline:2px solid #a52f2444}
.cottage-saved-photos,.cottage-new-photo-preview{display:flex;gap:12px;flex-wrap:wrap;margin:12px 0}.cottage-saved-photos h3{flex-basis:100%;margin:0}.cottage-saved-photos figure,.cottage-new-photo-preview figure{width:min(190px,100%);margin:0;padding:8px;border:1px solid var(--line);border-radius:9px;background:#fff}.cottage-saved-photos img,.cottage-new-photo-preview img{display:block;width:100%;height:130px;object-fit:cover;border-radius:6px;background:var(--soft)}.cottage-saved-photos figcaption,.cottage-new-photo-preview figcaption{margin-top:6px;color:var(--muted);font-size:12px;overflow-wrap:anywhere}.cottage-saved-photos label{display:flex;align-items:flex-start;gap:7px;margin:8px 0 0;color:#8d2d24;font-size:12px;font-weight:700}.cottage-saved-photos input{flex:0 0 18px;width:18px;height:18px;margin:0;accent-color:#a52f24}.cottage-selected-photo-count{color:var(--muted);font-size:12px}.cottage-new-photo-preview:empty{display:none}
.cottage-list-tools{display:grid;grid-template-columns:minmax(220px,2fr) repeat(2,minmax(160px,1fr));gap:12px;align-items:end;margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.cottage-list-tools label{min-width:0}.cottage-list-tools input,.cottage-list-tools select{width:100%;min-width:0}.cottage-list-tools [data-cottage-list-count]{grid-column:1/-1;margin:0}#cottage-list .cottage-record[hidden]{display:none!important}@media(max-width:760px){.cottage-list-tools{grid-template-columns:1fr}}
.cottage-record-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.cottage-record-actions form{margin:0}.cottage-archive{margin-top:20px;padding:12px;border:1px solid var(--line);border-radius:10px}.cottage-archive summary{cursor:pointer;font-weight:700;color:#30451c}.cottage-delete-confirm{position:relative}.cottage-delete-confirm summary{cursor:pointer;padding:10px 14px;border:1px solid #a52f24;border-radius:8px;color:#a52f24;font-weight:700;list-style:none}.cottage-delete-confirm[open]{width:min(400px,100%);padding:12px;border:1px solid #dfb3ae;border-radius:9px;background:#fff8f7}.cottage-delete-confirm[open] summary{padding:0;border:0}.cottage-delete-confirm form{display:flex;flex-wrap:wrap;gap:8px}.cottage-delete-confirm .button{white-space:normal}
@media(max-width:700px){.cottage-checklist{grid-template-columns:1fr}.cottage-record{align-items:stretch;flex-direction:column}.cottage-record .button{width:100%;text-align:center}.cottage-wizard-nav{display:grid;grid-template-columns:1fr 1fr}.cottage-wizard-nav button{width:100%;white-space:normal}.cottage-assessment{display:grid;grid-template-columns:1fr}.cottage-step{padding:16px}.cottage-check{min-height:58px}.cottage-saved-photos figure,.cottage-new-photo-preview figure{width:min(150px,46%)}}
.customer-portal-document{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:10px 0;border-bottom:1px solid var(--line)}.customer-portal-document .button{margin:0}.customer-portal-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px}.customer-portal-details p{overflow-wrap:anywhere}@media(max-width:600px){.customer-portal-document{align-items:stretch;flex-direction:column}.customer-portal-document .button{width:100%}.customer-portal-details{grid-template-columns:1fr}}
.customer-portal-search,.customer-portal-admin-card{margin:16px 0}.customer-portal-search>div{display:flex;gap:10px;align-items:end}.customer-portal-search>div input{flex:1;min-width:0}.customer-portal-admin-card>header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px}.customer-portal-admin-card>header h2{margin:0}.customer-portal-admin-card>header p{margin:5px 0}.customer-portal-status{display:inline-flex;padding:6px 11px;border-radius:999px;font-size:13px;font-weight:750;white-space:nowrap}.customer-portal-status.is-active{background:#e8f3e5;color:#28663c}.customer-portal-status.is-pending{background:#fff3da;color:#74561c}.customer-portal-admin-actions{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0;padding-bottom:14px;border-bottom:1px solid var(--line)}.customer-portal-admin-actions form{margin:0}.customer-portal-admin-actions .button{margin:0}.customer-portal-record-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.customer-portal-record-grid section{min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.customer-portal-record-grid h3{margin:0 0 8px;color:var(--olive);font-size:16px}.customer-portal-record-grid p{margin:6px 0;overflow-wrap:anywhere}.customer-portal-docs{margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:8px}.customer-portal-docs>summary{color:var(--olive);font-weight:750;cursor:pointer}.customer-portal-docs>form{margin:12px 0}.customer-portal-docs .customer-portal-document form{margin:0}@media(max-width:680px){.customer-portal-search>div,.customer-portal-admin-card>header{align-items:stretch;flex-direction:column}.customer-portal-search>div .button{width:100%;min-height:44px}.customer-portal-record-grid{grid-template-columns:1fr}.customer-portal-admin-actions>*{width:100%}.customer-portal-admin-actions form .button{width:100%;min-height:44px}.customer-portal-docs .customer-portal-document form .button{width:100%;min-height:44px}}
.portal-recovery{margin-top:20px;padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:#fbfcf8}.portal-recovery>summary{color:var(--olive);font-weight:750;cursor:pointer}.portal-recovery p{max-width:70ch}.portal-recovery form{margin-top:12px}

/* Olästa mejl ska vara tydliga även i den smala mobilinkorgen. */
.mailbox-item{border-left:4px solid transparent;padding:13px 14px}
.mailbox-item.is-unread{border-left-color:var(--olive);background:#f0f5e9;box-shadow:inset 0 0 0 1px #d8e3cd}
.mailbox-item.is-unread:hover,.mailbox-item.is-unread.is-selected{background:#e6efdc}
.mailbox-sender{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.mailbox-sender strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mailbox-item.is-unread .mailbox-sender strong{color:#263b17;font-weight:800}
.mailbox-item.is-unread .mailbox-subject{font-weight:700}
.mailbox-unread-badge{flex:none;padding:3px 8px;border-radius:999px;background:var(--olive);color:#fff;font-size:10px;font-weight:800;letter-spacing:.05em;line-height:1.3}
@media(max-width:760px){.mailbox-item{gap:5px;padding:14px 12px}.mailbox-unread-badge{font-size:10px}}
.lead-customer-resolution{grid-column:1/-1;margin:8px 0;padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:var(--soft);color:var(--ink)}.lead-customer-resolution strong{display:block;color:var(--olive);margin-bottom:4px}.lead-customer-resolution p,.lead-customer-resolution small{display:block;margin:3px 0;color:var(--muted);line-height:1.55}
.offer-customer-choice{display:grid;gap:12px;margin:0;padding:14px 16px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}.offer-customer-choice legend{padding:0 6px;color:var(--olive);font-weight:750}.offer-customer-choice>.hint{margin:0}.offer-existing-customer{max-width:780px}.offer-prospect-fields{margin:0}.offer-optional-customer{margin:18px 0 4px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.offer-optional-customer>summary{color:var(--olive);font-weight:750;cursor:pointer}.offer-optional-customer[open]>summary{margin-bottom:10px}
.job-ai-action.ai-suggestion-pending{align-items:flex-start}.job-ai-action.ai-suggestion-pending span{display:flex;align-items:center;gap:10px;color:var(--olive);font-weight:650}.job-ai-action.ai-suggestion-pending span::before{content:"";width:18px;height:18px;flex:0 0 18px;border:3px solid var(--line);border-top-color:var(--copper);border-radius:50%;animation:job-ai-spin .8s linear infinite}.job-ai-action #job-ai-suggest[aria-busy="true"]{opacity:.76;cursor:wait}@keyframes job-ai-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.job-ai-action.ai-suggestion-pending span::before{animation:none;border-top-color:var(--olive)}}
.invoice-status-pill.is-test-invoice{display:block;width:max-content;margin-top:6px;border-color:#d9a6a6;background:#fff0f0;color:#8b2020}

/* Manual system test center */
.system-test-shell{max-width:1280px;margin-inline:auto}.system-test-header{display:flex;justify-content:space-between;align-items:flex-start;gap:22px}.system-test-header h1{margin:0}.system-test-header p{max-width:72ch}.system-test-tools{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.system-test-tools .button{margin:0}.system-test-restore{flex-basis:100%;text-align:right}.system-test-restore summary{color:var(--olive);font-weight:700;cursor:pointer}.system-test-restore form{display:grid;gap:8px;max-width:380px;margin:10px 0 0 auto;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--paper);text-align:left}.system-test-restore .button{width:max-content}.system-test-metrics{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;margin:20px 0}.system-test-metrics>div{display:grid;gap:6px;min-width:0;padding:13px;border:1px solid var(--line);border-radius:9px;background:#fbfcf9}.system-test-metrics span{color:var(--muted);font-size:12px}.system-test-metrics strong{color:var(--olive);font-size:24px}.system-test-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0;padding-bottom:10px;border-bottom:1px solid var(--line)}.system-test-tabs a{padding:9px 12px;border-radius:7px;color:var(--olive);font-weight:700;text-decoration:none}.system-test-tabs a[aria-current=page]{background:var(--soft)}.system-test-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.system-test-module{display:grid;gap:6px;padding:14px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);text-decoration:none}.system-test-module:hover,.system-test-module:focus-visible{border-color:#9aab8c;background:#fbfcf9}.system-test-module>strong{color:var(--olive);font-size:16px}.system-test-module>span:not(.system-test-progress){color:var(--muted);font-size:13px}.system-test-progress{height:7px;overflow:hidden;border-radius:5px;background:#e8ece3}.system-test-progress i{display:block;height:100%;background:var(--olive)}.system-test-filter{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(240px,1.5fr) auto;align-items:end;gap:12px;margin:18px 0}.system-test-filter label{display:grid;gap:5px;color:var(--olive);font-weight:650}.system-test-filter input,.system-test-filter select{width:100%;min-height:42px;padding:8px 10px;border:1px solid #bfc9b6;border-radius:7px;background:#fff;color:var(--ink);font:inherit}.system-test-filter>span{padding:10px;color:var(--muted);font-size:13px}.system-test-case{scroll-margin-top:16px;margin:16px 0;padding:clamp(15px,2.5vw,24px);border:1px solid var(--line);border-radius:11px;background:#fff}.system-test-case-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.system-test-case-heading h2{margin:3px 0 6px;font-size:20px}.system-test-case-heading p:last-child{margin:0;color:var(--muted)}.system-test-case-heading .eyebrow{margin:0;color:var(--olive);font-size:11px;font-weight:800;letter-spacing:.06em}.system-test-status-pill{flex:none;max-width:180px;padding:7px 10px;border:1px solid #d5ddcf;border-radius:999px;background:#f7f9f5;color:var(--olive);font-size:12px;font-weight:750;text-align:center}.system-test-warning{margin:14px 0;padding:12px 14px;border:1px solid #e3bc86;border-left:4px solid #bb701f;border-radius:7px;background:#fff8eb;color:#54350f}.system-test-warning p{margin:4px 0 0;line-height:1.5}.system-test-planned{padding:10px 12px;border-radius:7px;background:#f1f1ec;color:#555}.system-test-detail{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(230px,.8fr);gap:18px;margin-top:16px}.system-test-detail h3,.system-test-attachments h3{margin:0 0 8px;color:var(--olive);font-size:15px}.system-test-detail ol{margin:0;padding-left:22px}.system-test-detail li{margin:0 0 7px;padding-left:3px;line-height:1.5}.system-test-expected{padding:14px;border-radius:8px;background:var(--paper)}.system-test-expected p{line-height:1.55}.system-test-expected .button{margin:4px 0 0}.system-test-save{display:grid;grid-template-columns:minmax(170px,.45fr) minmax(260px,1.5fr) auto;align-items:end;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.system-test-save label,.system-test-upload label{display:grid;gap:5px;color:var(--olive);font-weight:650}.system-test-save select,.system-test-save textarea,.system-test-upload input[type=file]{box-sizing:border-box;width:100%;padding:9px 10px;border:1px solid #bfc9b6;border-radius:7px;background:#fff;color:var(--ink);font:inherit}.system-test-save textarea{resize:vertical}.system-test-save-state{align-self:center;max-width:190px;color:var(--muted);font-size:12px}.system-test-save-state.is-error{color:#9d2f20;font-weight:700}.system-test-upload{display:flex;align-items:end;gap:10px;margin-top:12px}.system-test-upload label{flex:1}.system-test-upload input[type=file]{padding:7px}.system-test-upload .button{margin:0}.system-test-attachments{display:flex;flex-wrap:wrap;gap:7px;margin-top:12px}.system-test-attachments h3{flex-basis:100%}.system-test-attachments a{display:inline-block;padding:7px 10px;border-radius:6px;background:var(--soft);color:var(--olive);overflow-wrap:anywhere}.system-test-history{margin-top:14px;padding-top:10px;border-top:1px solid var(--line)}.system-test-history summary{color:var(--olive);font-weight:700;cursor:pointer}.system-test-history ol{max-height:420px;overflow:auto;padding-left:22px}.system-test-history li{margin:8px 0;line-height:1.5}.system-test-history li p{margin:3px 0;white-space:pre-wrap;overflow-wrap:anywhere}.system-test-issue{margin:12px 0;padding:15px;border:1px solid #e0b4aa;border-left:4px solid #9d4535;border-radius:8px;background:#fffdfc}.system-test-issue header{display:flex;justify-content:space-between;gap:12px}.system-test-issue header span{color:#87584f;font-size:13px}.system-test-issue blockquote{margin:10px 0;padding:10px 13px;border-left:3px solid #c69081;background:#fff;white-space:pre-wrap}.system-test-issue .button{margin:0}.system-test-empty{padding:18px;border-radius:8px;background:var(--paper)}
@media(max-width:900px){.system-test-metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.system-test-save{grid-template-columns:minmax(150px,.6fr) minmax(200px,1.5fr)}.system-test-save-state{grid-column:1/-1;max-width:none}.system-test-filter{grid-template-columns:1fr 1fr}.system-test-filter>span{grid-column:1/-1;padding:0}}
.system-test-report-copy{margin-top:10px}.system-test-report-copy summary{color:var(--olive);font-weight:650;cursor:pointer}.system-test-report-copy textarea{box-sizing:border-box;width:100%;margin-top:8px;padding:10px;border:1px solid var(--line);border-radius:7px;font:13px/1.5 ui-monospace,monospace}
.system-test-shell,.system-test-issue,.system-test-issue header,.system-test-issue header>*{box-sizing:border-box;min-width:0;max-width:100%}
.system-test-issue,.system-test-issue p,.system-test-issue blockquote,.system-test-report-copy,.system-test-report-copy summary{overflow-wrap:anywhere}
.system-test-issue blockquote{min-width:0;max-width:100%}
.system-test-report-copy textarea{min-width:0;max-width:100%}
@media(max-width:620px){.system-test-header{display:grid}.system-test-tools{justify-content:flex-start}.system-test-restore{text-align:left}.system-test-restore form{margin-left:0}.system-test-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.system-test-metrics>div:last-child{grid-column:1/-1}.system-test-module-grid{grid-template-columns:1fr}.system-test-filter,.system-test-detail,.system-test-save{grid-template-columns:1fr}.system-test-case-heading{display:grid}.system-test-status-pill{justify-self:start}.system-test-upload{align-items:stretch;flex-direction:column}.system-test-upload .button{width:100%;min-height:44px}.system-test-issue header{display:grid}.system-test-tools>.button{min-height:42px}.system-test-case{padding:15px}}

.skatteverket-payment-date-form{display:grid!important;grid-template-columns:minmax(0,1fr);align-items:stretch!important;gap:8px!important}.invoice-actions-stack .skatteverket-payment-date-form label{display:grid!important;grid-template-columns:minmax(0,1fr);gap:5px!important;white-space:normal!important}.invoice-actions-stack .skatteverket-payment-date-form input[type=date]{width:100%;max-width:100%;box-sizing:border-box}.legacy-green-export-form{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px!important;align-items:end!important}.invoice-actions-stack .legacy-green-export-form label{display:grid!important;grid-template-columns:minmax(0,1fr);gap:4px!important;white-space:normal!important}.legacy-green-export-form input{width:100%;max-width:100%;min-width:0;box-sizing:border-box;padding:8px;border:1px solid #bfc9b6;border-radius:6px;font:inherit}.legacy-green-export-form small,.legacy-green-export-form button{grid-column:1/-1}.legacy-green-export-form small{white-space:normal;color:var(--muted)}.legacy-green-export-lines{margin:12px 0;padding:12px;border:1px solid var(--line,#d9dfd3);border-radius:8px;background:#f8f9f5}.legacy-green-export-lines p{margin:8px 0}.legacy-green-export-lines th,.legacy-green-export-lines td{padding:6px 8px;text-align:left}.legacy-green-export-lines form{margin-top:10px}@media(max-width:680px){.legacy-green-export-form{grid-template-columns:minmax(0,1fr)}}

.legacy-green-export-open{display:block;margin:10px 0;max-width:100%;white-space:normal}.legacy-green-export-dialog{box-sizing:border-box;width:min(1040px,calc(100vw - 40px));max-width:none;max-height:min(90dvh,900px);overflow:auto;padding:0;border:1px solid var(--line,#d9dfd3);border-radius:14px;background:var(--paper,#fff);color:var(--ink,#1b2418);box-shadow:0 24px 80px #14200f55}.legacy-green-export-dialog::backdrop{background:#17200f99}.legacy-green-export-dialog-panel{display:grid;gap:14px;padding:clamp(18px,3vw,32px)}.legacy-green-export-dialog-panel>header{position:sticky;top:calc(-1 * clamp(18px,3vw,32px));z-index:1;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:calc(-1 * clamp(18px,3vw,32px)) calc(-1 * clamp(18px,3vw,32px)) 0;padding:clamp(18px,3vw,32px);border-bottom:1px solid var(--line,#d9dfd3);background:var(--paper,#fff)}.legacy-green-export-dialog-panel h2{margin:2px 0;color:var(--olive,#30451f);font-size:clamp(21px,3vw,28px)}.legacy-green-export-dialog-panel .eyebrow{margin:0;color:var(--muted,#596253);font-size:12px;font-weight:750;letter-spacing:.06em;text-transform:uppercase}.legacy-green-export-dialog-panel>p{max-width:80ch;line-height:1.55}.legacy-green-export-dialog-panel>header form{margin:0}.legacy-green-export-table-wrap{width:100%;overflow-x:auto;border:1px solid var(--line,#d9dfd3);border-radius:8px}.legacy-green-export-table-wrap table{width:100%;border-collapse:collapse}.legacy-green-export-table-wrap th,.legacy-green-export-table-wrap td{padding:11px 12px;border-bottom:1px solid var(--line,#d9dfd3);text-align:left;vertical-align:top}.legacy-green-export-table-wrap thead{background:var(--soft,#f1f3ec);color:var(--olive,#30451f)}.legacy-green-export-table-wrap tbody tr:nth-child(even){background:#f8f9f5}.legacy-green-export-table-wrap tbody tr:last-child th,.legacy-green-export-table-wrap tbody tr:last-child td{border-bottom:0}.legacy-green-export-totals{display:flex;flex-wrap:wrap;gap:5px 8px;margin:0;padding:13px;border-radius:8px;background:var(--soft,#f1f3ec);line-height:1.6}.legacy-green-export-dialog-panel>form:last-child{margin:0;padding-top:4px}.legacy-green-export-dialog-panel>form:last-child button{min-height:46px}@media(max-width:640px){.legacy-green-export-dialog{width:calc(100vw - 12px);max-height:96dvh;border-radius:11px}.legacy-green-export-dialog-panel{gap:12px;padding:16px}.legacy-green-export-dialog-panel>header{top:-16px;margin:-16px -16px 0;padding:16px}.legacy-green-export-dialog-panel>header .button{min-height:42px}.legacy-green-export-table-wrap{overflow:visible;border:0}.legacy-green-export-table-wrap table,.legacy-green-export-table-wrap tbody{display:block;width:100%}.legacy-green-export-table-wrap thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.legacy-green-export-table-wrap tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px;margin:0 0 9px;padding:12px;border:1px solid var(--line,#d9dfd3);border-radius:8px;background:#fff}.legacy-green-export-table-wrap tbody tr:nth-child(even){background:#f8f9f5}.legacy-green-export-table-wrap tbody th,.legacy-green-export-table-wrap tbody td{display:grid;gap:3px;min-width:0;padding:0;border:0;overflow-wrap:anywhere}.legacy-green-export-table-wrap tbody th{grid-column:1/-1;color:var(--olive,#30451f);font-size:15px}.legacy-green-export-table-wrap tbody td::before{content:attr(data-label);color:var(--muted,#596253);font-size:11px;font-weight:700}.legacy-green-export-totals{display:grid;grid-template-columns:auto 1fr;gap:2px 8px}.legacy-green-export-totals span{display:none}.legacy-green-export-dialog-panel>form:last-child button{width:100%}}
.invoice-printer-send-error{margin:0;padding:10px;border-left:3px solid #9d4535;background:#fff3f0;color:#812b20;font-weight:650}

.mailbox-page-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.mailbox-page-heading h1{margin:0}.mailbox-compose{max-width:760px;margin:0 auto;padding:clamp(16px,3vw,28px);border:1px solid var(--line);border-radius:10px;background:#fff}.mailbox-compose h2{margin-top:0}.mailbox-compose form{display:grid;gap:8px}.mailbox-compose label{margin-top:8px;color:var(--olive);font-weight:700}.mailbox-compose input,.mailbox-compose textarea{box-sizing:border-box;width:100%;max-width:100%;padding:10px 12px;border:1px solid #bfc9b6;border-radius:7px;background:#fff;color:var(--ink);font:inherit}.mailbox-compose textarea{resize:vertical;line-height:1.55}.mailbox-compose-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:10px}.mailbox-compose-actions .button{margin:0}.delivery-page{max-width:1180px;margin-inline:auto}.delivery-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.delivery-heading h1{margin:0}.delivery-heading p:not(.eyebrow){color:var(--muted)}.delivery-scan-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.delivery-heading form{flex:none;margin-top:18px}.delivery-heading form .button{margin:0}.delivery-explainer{padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:var(--paper);color:var(--muted);line-height:1.6}.delivery-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0;padding-bottom:10px;border-bottom:1px solid var(--line)}.delivery-tabs a{padding:9px 12px;border-radius:7px;color:var(--olive);font-weight:750;text-decoration:none}.delivery-tabs a[aria-current=page]{background:var(--soft)}.delivery-last-scan{color:var(--muted);font-size:13px}.delivery-card{margin:14px 0;padding:clamp(15px,2.4vw,22px);border:1px solid var(--line);border-radius:10px;background:#fff}.delivery-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:14px}.delivery-card-heading h2{margin:8px 0 0;color:var(--olive)}.delivery-tracking-link{display:inline-flex;align-items:center;max-width:48%;padding:9px 11px;border-radius:6px;background:var(--paper);font:600 15px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere;color:var(--olive);text-decoration:underline;text-underline-offset:3px}.delivery-tracking-link:focus-visible{outline:3px solid var(--copper);outline-offset:2px}.delivery-status{display:inline-block;padding:4px 9px;border-radius:999px;background:#fff4dd;color:#805516;font-size:12px;font-weight:800}.delivery-status.is-delivered{background:#eaf3e4;color:#365329}.delivery-card dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.delivery-card dl>div{min-width:0}.delivery-card dt{color:var(--muted);font-size:12px;font-weight:700}.delivery-card dd{margin:4px 0 0;overflow-wrap:anywhere}.delivery-card form{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.delivery-card form .button{margin:0}.delivery-card form small{color:var(--muted)}.delivery-empty{padding:20px;border-radius:8px;background:var(--paper);color:var(--muted)}
@media(max-width:680px){.mailbox-page-heading,.delivery-heading{align-items:stretch;flex-direction:column}.mailbox-page-heading>.button,.delivery-heading form .button{width:100%;min-height:44px}.delivery-scan-actions{display:grid;grid-template-columns:minmax(0,1fr);width:100%}.delivery-heading form{margin-top:0}.delivery-card-heading{flex-direction:column}.delivery-tracking-link{max-width:100%}.delivery-card dl{grid-template-columns:minmax(0,1fr);gap:9px}.delivery-card form{align-items:stretch;flex-direction:column}.delivery-card form .button{width:100%;min-height:44px}}
.delivery-card .delivery-note-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:6px 12px;margin:16px 0}.delivery-note-form label{grid-column:1/-1;color:var(--olive);font-size:13px;font-weight:750}.delivery-note-form textarea{box-sizing:border-box;width:100%;min-height:68px;resize:vertical;padding:9px 11px;border:1px solid var(--line);border-radius:7px;background:var(--paper);color:var(--ink);font:inherit;line-height:1.5}.delivery-note-status{max-width:180px;color:var(--muted);font-size:12px}.delivery-card-actions{display:flex;align-items:flex-start;flex-wrap:wrap;gap:12px}.delivery-card-actions>form{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.delivery-edit{min-width:140px}.delivery-edit>summary{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;list-style:none}.delivery-edit>summary::-webkit-details-marker{display:none}.delivery-edit[open]{flex-basis:100%}.delivery-card .delivery-edit-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end;gap:12px;margin-top:12px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.delivery-edit-form label{display:grid;gap:5px;color:var(--olive);font-size:13px;font-weight:750}.delivery-edit-form input,.delivery-edit-form select{box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #bfc9b6;border-radius:6px;background:#fff;color:var(--ink);font:inherit}.delivery-edit-form>.button{grid-column:1/-1;justify-self:start}
@media(max-width:680px){.delivery-card .delivery-note-form{grid-template-columns:minmax(0,1fr)}.delivery-note-status{max-width:none}.delivery-card-actions,.delivery-card-actions>form{align-items:stretch;flex-direction:column}.delivery-edit,.delivery-edit>summary{width:100%}.delivery-card .delivery-edit-form{grid-template-columns:minmax(0,1fr)}.delivery-edit-form>.button{width:100%;min-height:44px}}
.delivery-schedule{margin:18px 0;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}.delivery-schedule h2{margin:0 0 8px;color:var(--olive);font-size:19px}.delivery-schedule p{color:var(--muted)}.delivery-schedule form{max-width:560px}.delivery-schedule form label{margin:10px 0 6px}.delivery-schedule .button{margin-top:12px}
.delivery-manual-add form{display:grid;gap:7px;max-width:680px}.delivery-manual-add form label{margin-top:7px;color:var(--olive);font-weight:700}.delivery-manual-add form input,.delivery-manual-add form select{box-sizing:border-box;width:100%;max-width:100%;min-height:42px;padding:9px 11px;border:1px solid #bfc9b6;border-radius:7px;background:#fff;color:var(--ink);font:inherit}.delivery-manual-add form input:focus-visible,.delivery-manual-add form select:focus-visible{outline:3px solid var(--copper);outline-offset:2px}.delivery-manual-add form .button{justify-self:start}.delivery-progress{display:flex;align-items:center;gap:12px;margin:16px 0;padding:14px 16px;border:1px solid var(--line);border-radius:8px;background:var(--soft);color:var(--olive);font-weight:700;line-height:1.5}.delivery-progress[hidden]{display:none}.delivery-progress::before,.delivery-scan-actions button[data-delivery-active]::before{content:"";flex:none;width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:delivery-scan-spin .8s linear infinite}.delivery-scan-actions button[data-delivery-active]{display:inline-flex;align-items:center;justify-content:center;cursor:wait;opacity:.8}.delivery-scan-actions button:disabled:not([data-delivery-active]){cursor:not-allowed;opacity:.55}@keyframes delivery-scan-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.delivery-progress::before,.delivery-scan-actions button[data-delivery-active]::before{animation-duration:2s}}
.fleet-page > section { margin-top: 2rem; }
.fleet-vehicle-list, .fleet-trip-list { display: grid; gap: .75rem; }
.fleet-month-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 12px 20px; }
.fleet-month-toolbar > .fleet-form { display: flex; align-items: flex-end; flex-wrap: wrap; flex: 1 1 340px; margin: 0; }
.fleet-month-toolbar > .fleet-form > label { flex: 1 1 160px; }
.fleet-month-toolbar > .fleet-form > .button { margin: 0; }
.fleet-month-download { margin: 0; }
.fleet-month-download .button { margin: 0; }
@media(max-width:640px){.fleet-month-download,.fleet-month-download .button{width:100%}}
.fleet-trip-day { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.fleet-trip-day > summary { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 12px 16px; background: var(--soft); color: var(--olive); list-style: none; cursor: pointer; }
.fleet-trip-day > summary::-webkit-details-marker { display: none; }
.fleet-trip-day > summary::before { content: '▸'; flex: none; transition: transform .15s; }
.fleet-trip-day[open] > summary::before { transform: rotate(90deg); }
.fleet-trip-day > summary > span { margin-left: auto; color: var(--muted); font-size: 13px; text-align: right; }
.fleet-trip-day > summary:focus-visible { outline: 3px solid var(--copper); outline-offset: -3px; }
.fleet-trip-day[open] > summary { border-bottom: 1px solid var(--line); }
.fleet-day-trips { display: grid; gap: .75rem; min-width: 0; padding: .75rem; }
.fleet-trip-day:not([open]) > .fleet-day-trips { display: none; }
.fleet-vehicle, .fleet-trip { border: 1px solid var(--line, #d9dfcf); border-radius: 12px; padding: 1rem; background: #fff; }
.fleet-vehicle { display: grid; grid-template-columns: minmax(8rem, .5fr) 1fr; gap: .35rem 1rem; }
.fleet-vehicle small { grid-column: 1 / -1; color: #60675a; overflow-wrap: anywhere; }
.fleet-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 1rem; align-items: end; margin: 1rem 0; }
.fleet-form label { display: grid; gap: .35rem; font-weight: 650; }
.fleet-form input, .fleet-form select { width: 100%; min-height: 2.8rem; }
.fleet-form > p { margin: 0; }
.fleet-trip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .8rem; }
.marketing-sync-disclosure>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--olive);font-size:23px;font-weight:750;line-height:1.25;cursor:pointer;list-style:none}.marketing-sync-disclosure>summary::-webkit-details-marker{display:none}.marketing-sync-disclosure>summary::after{content:'＋';flex:none;font-size:24px;line-height:1}.marketing-sync-disclosure[open]>summary::after{content:'−'}.marketing-sync-disclosure[open]>summary{margin-bottom:12px}.marketing-sync-disclosure-content>p:first-child{color:var(--muted)}
.fleet-trip > div:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.fleet-route-map { flex: 1 0 100%; min-width: 0; }
.fleet-route-map > summary { width: fit-content; color: var(--olive); cursor: pointer; font-weight: 750; }
.fleet-route-map-content { margin-top: .65rem; overflow: hidden; border: 1px solid var(--line, #d9dfcf); border-radius: 10px; background: #edf0e8; }
.fleet-route-map canvas { display: block; width: 100%; height: auto; min-height: 220px; }
.fleet-route-map-content p { margin: .45rem .65rem; color: #56604e; font-size: .78rem; }
.fleet-route-map-content a { color: inherit; }
.fleet-trip-classification { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.fleet-classify.is-selected { background: #30451c; color: #fff; }
.fleet-save-status { min-width: 8rem; color: #526044; font-size: .9rem; }
.fleet-classify-fallback { display: none; }
.fleet-manual-entry { margin-top: 1.25rem; }
.fleet-token { padding: .9rem 1rem; border: 1px solid var(--line, #d9dfcf); border-radius: 8px; background: #f6f8f2; white-space: pre-wrap; overflow-wrap: anywhere; user-select: all; }
.fleet-manual-entry > summary { cursor: pointer; font-weight: 700; }
.ota-process { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line, #d9dfcf); border-left: 4px solid var(--olive, #40513a); border-radius: 10px; background: #f6f8f2; }
.ota-process h4 { margin: 0 0 .5rem; color: var(--olive, #40513a); }
.ota-process p { margin: .45rem 0; }
.ota-process progress { display: block; width: 100%; height: .8rem; margin: .75rem 0; accent-color: var(--olive, #40513a); }
@media (max-width: 640px) {
  .fleet-vehicle { grid-template-columns: 1fr; }
  .fleet-vehicle small { grid-column: auto; }
  .fleet-trip { align-items: stretch; }
  .fleet-trip > div:first-child { display: grid; grid-template-columns: 1fr; }
  .fleet-trip-classification { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .fleet-trip-classification .button { min-height: 2.9rem; }
  .fleet-save-status { grid-column: 1 / -1; }
}

/* Job completion by voice */
.job-voice-finish{margin:18px 0;border:1px solid #bfc9b6;border-radius:10px;background:#f8faf6;overflow:hidden}
.job-voice-finish>summary{display:flex;align-items:center;justify-content:center;width:max-content;max-width:100%;margin:14px;list-style:none;cursor:pointer}
.job-voice-finish>summary::-webkit-details-marker{display:none}
.job-voice-finish>summary::before{content:"🎙";margin-right:8px;font-size:1.15em}
.job-voice-body{display:grid;gap:14px;padding:0 16px 18px}
.job-voice-body>p{margin:0}
.job-voice-controls{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.job-voice-controls [data-voice-status]{flex:1 1 260px;font-weight:700}
.job-voice-text-fallback{border-top:1px solid #d8dfd0;padding-top:10px}
.job-voice-text-fallback>summary{cursor:pointer;font-weight:700;color:var(--olive)}
.job-voice-text-fallback label{display:grid;gap:6px;margin:10px 0}
.job-voice-review{display:grid;gap:14px;padding-top:14px;border-top:2px solid var(--olive)}
.job-voice-review>h4,.job-voice-materials>h4{margin:0}
.job-voice-materials{display:grid;gap:8px}
.job-voice-material-row{display:grid;gap:8px;padding:12px;border:1px solid #d8dfd0;border-radius:8px;background:#fff}
.job-voice-material-classification{width:max-content;max-width:100%;padding:3px 8px;border-radius:999px;background:#eef3e9;color:#344925;font-size:.85rem;font-weight:700}
.job-voice-material-grid{display:grid;grid-template-columns:minmax(0,2fr) minmax(100px,.7fr);gap:10px}
.job-voice-material-grid label{display:grid;gap:5px;font-weight:700}
.job-voice-material-row .hint{margin:0}
.job-voice-transcript>summary{cursor:pointer;font-weight:700}
.job-voice-transcript [data-voice-transcript]{white-space:pre-wrap}
.job-completion-summary{margin:12px 0;padding:12px;border-left:4px solid var(--olive);background:#f4f7f1}
.job-completion-summary p{margin:6px 0 0}
@media(max-width:700px){
  .job-voice-finish>summary{width:calc(100% - 28px)}
  .job-voice-controls{display:grid;grid-template-columns:1fr}
  .job-voice-controls .button{width:100%;min-height:50px}
  .job-voice-material-grid{grid-template-columns:1fr}
}
.mailbox-bulk-toolbar{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 12px;border-bottom:1px solid var(--line);background:#fff}.mailbox-bulk-toolbar label,.mailbox-select-row>label{display:flex;align-items:center;justify-content:center;min-width:30px}.mailbox-select-row{display:flex;align-items:stretch;gap:3px;padding-left:6px;border-bottom:1px solid var(--line)}.mailbox-select-row .mailbox-item{flex:1;min-width:0;border-bottom:0}.mailbox-select-row input,.mailbox-bulk-toolbar input{width:18px;height:18px}
.mailbox-list-filter{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-bottom:8px}.mailbox-list-filter label:first-child{flex:1 1 180px}.mailbox-list-filter input[type=search]{width:100%;min-width:0}.mailbox-list-filter label:has(input[type=checkbox]){display:flex;align-items:center;gap:6px;padding-bottom:10px}.mailbox-list-filter [data-mail-list-count]{font-size:13px;color:var(--muted);padding-bottom:10px}.mailbox-select-row[hidden]{display:none}.mailbox-pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:9px}.mailbox-pagination .button{min-height:38px}

.delivery-scan-hint{margin:-6px 0 14px;color:var(--muted);font-size:13px}.delivery-help,.delivery-settings,.delivery-run-details{margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.delivery-help summary,.delivery-settings summary,.delivery-run-details summary,.delivery-card-details summary{color:var(--olive);font-weight:750;cursor:pointer}.delivery-help p{margin:10px 0 2px;max-width:85ch;line-height:1.55}.delivery-settings{margin:14px 0}.delivery-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.delivery-summary>div{display:grid;gap:4px;padding:13px 15px;border:1px solid var(--line);border-radius:8px;background:#fbfcf9}.delivery-summary span{color:var(--muted);font-size:12px;font-weight:650}.delivery-summary strong{color:var(--olive);font-size:23px}.delivery-filter{display:grid;grid-template-columns:auto minmax(180px,1fr) auto minmax(170px,.55fr) auto;align-items:center;gap:9px 12px;margin:16px 0;padding:12px;border:1px solid var(--line);border-radius:8px;background:#fbfcf9}.delivery-filter--delivered{grid-template-columns:auto minmax(180px,1fr) auto}.delivery-filter label{color:var(--olive);font-size:13px;font-weight:700}.delivery-filter input,.delivery-filter select{box-sizing:border-box;width:100%;min-width:0;min-height:42px;padding:8px 10px;border:1px solid #bfc9b6;border-radius:6px;background:#fff;color:var(--ink);font:inherit}.delivery-filter input:focus-visible,.delivery-filter select:focus-visible{outline:3px solid var(--copper);outline-offset:2px}.delivery-filter [data-delivery-count]{color:var(--muted);font-size:12px;white-space:nowrap}.delivery-run-details{font-size:13px}.delivery-run-details p{margin:9px 0 0;line-height:1.55}.delivery-card-checked{margin:7px 0 0;color:var(--muted);font-size:13px}.delivery-card-details{margin-top:14px}.delivery-card-details summary{padding:7px 0}.delivery-card[hidden]{display:none!important}
@media(max-width:760px){.delivery-summary{grid-template-columns:repeat(3,minmax(0,1fr))}.delivery-summary>div{padding:11px}.delivery-summary strong{font-size:20px}.delivery-filter{grid-template-columns:minmax(0,1fr)}.delivery-filter label{margin-top:3px}.delivery-filter [data-delivery-count]{white-space:normal}}
.delivery-unmatched{margin:16px 0;padding:16px;border:1px solid #e3c9a8;border-radius:9px;background:#fffaf3}.delivery-unmatched h2{margin:0;color:var(--olive);font-size:18px}.delivery-unmatched h2 span{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:25px;margin-left:5px;padding:0 6px;border-radius:999px;background:#f3e3cf;color:#734729;font-size:13px}.delivery-unmatched>p{margin:7px 0 12px;color:var(--muted);font-size:13px;line-height:1.5}.delivery-unmatched ul{display:grid;gap:8px;margin:0;padding:0;list-style:none}.delivery-unmatched li{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#fff}.delivery-unmatched li>div{display:grid;gap:3px;min-width:0}.delivery-unmatched li strong{overflow-wrap:anywhere;color:var(--ink)}.delivery-unmatched li small,.delivery-unmatched-note{color:var(--muted);font-size:12px;overflow-wrap:anywhere}.delivery-unmatched li a{flex:none;color:var(--olive);font-weight:750}
@media(max-width:680px){.delivery-unmatched li{align-items:flex-start;flex-direction:column}.delivery-unmatched li a{min-height:38px;display:inline-flex;align-items:center}}
.job-cost-summary{margin:14px 0;padding:14px 16px;border:1px solid #dce2d5;border-radius:10px;background:#fbfcf9}.job-cost-summary h4{margin:0 0 10px;color:var(--olive);font-size:1rem}.job-cost-summary h4 span{margin-left:6px;color:#687267;font-size:.82rem;font-weight:400}.job-cost-summary dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.job-cost-summary dl>div{padding:8px 10px;border-radius:7px;background:#f2f7f0}.job-cost-summary dt{color:#5c6658;font-size:.88rem}.job-cost-summary dd{margin:3px 0 0;font-size:1.05rem;font-weight:700;color:var(--olive)}.job-cost-summary .job-cost-total{border:1px solid #cad7c3;background:#eef4e9}.job-cost-summary p{margin:10px 0 0;color:#687267;font-size:.85rem}@media(max-width:600px){.job-cost-summary dl{grid-template-columns:1fr 1fr}.job-cost-summary .job-cost-total{grid-column:1/-1}}
.job-time-records{margin:12px 0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fbfcf9}.job-time-records>summary,.job-time-record>summary{cursor:pointer;color:var(--olive);font-weight:700}.job-time-record{margin:8px 0;padding:9px 10px;border-radius:7px;background:#f2f7f0}.job-time-record .operations-form{margin:12px 0 4px}
.time-delete-form{margin-top:10px}.time-delete-form .button{margin:0}
.job-create-details{margin:12px 0 20px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.job-create-details>summary{color:var(--olive);font-weight:750;cursor:pointer}.job-create-details[open]>summary{margin-bottom:14px}.job-customer-add{margin-bottom:4px}.job-customer-add p{margin:7px 0;color:var(--muted);font-size:13px}
.timesheet-row-toggle>summary{cursor:pointer;color:var(--olive);font-weight:700;white-space:nowrap}.timesheet-row-toggle>small{display:block;color:var(--muted);font-size:11px}.timesheet-list-table tbody tr[hidden]{display:none!important}.timesheet-edit-row>td{padding:14px;background:#fbfcf9;border-bottom:1px solid var(--line)}
.job-create-from-offer-menu{margin:12px 0 20px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.job-create-from-offer-menu>summary{color:var(--olive);font-weight:750;cursor:pointer}.job-create-from-offer-menu .job-create-from-offer{margin-top:12px}
.customer-portal-card-summary{cursor:pointer;list-style-position:inside}.customer-portal-admin-card>details>summary>header{display:inline-flex;width:calc(100% - 1.5em);vertical-align:top;justify-content:space-between;align-items:flex-start;gap:18px}.customer-portal-admin-card>details>summary>header h2{margin:0}.customer-portal-admin-card>details>summary>header p{margin:5px 0}@media(max-width:680px){.customer-portal-admin-card>details>summary>header{align-items:stretch;flex-direction:column}}
.customer-portal-admin-card{margin:7px 0;padding:8px 12px}.customer-portal-card-summary{display:flex;align-items:center;gap:9px;list-style:none;cursor:pointer}.customer-portal-card-summary::-webkit-details-marker{display:none}.customer-portal-card-summary::before{content:'▸';flex:0 0 auto;color:var(--olive);font-weight:800}.customer-portal-card[open]>.customer-portal-card-summary::before{content:'▾'}.customer-portal-admin-card>details>summary>header{display:flex;width:100%;vertical-align:baseline;justify-content:space-between;align-items:center;gap:12px}.customer-portal-admin-card>details>summary>header>div{display:flex;flex:1;min-width:0;flex-wrap:wrap;align-items:baseline;gap:3px 14px}.customer-portal-admin-card>details>summary>header .eyebrow,.customer-portal-admin-card>details>summary>header h2,.customer-portal-admin-card>details>summary>header p{margin:0}.customer-portal-admin-card>details>summary>header h2{font-size:16px;line-height:1.35}.customer-portal-admin-card>details>summary>header p{overflow-wrap:anywhere;font-size:14px}.customer-portal-admin-card>details>summary>header .customer-portal-status{flex:0 0 auto}@media(max-width:680px){.customer-portal-admin-card>details>summary>header{align-items:flex-start}.customer-portal-admin-card>details>summary>header>div{gap:2px 9px}.customer-portal-admin-card>details>summary>header .customer-portal-status{font-size:11px;padding:4px 7px}}
.customer-service-overview{margin:14px 0;padding:14px;border:1px solid #cfd9c5;border-radius:9px;background:#f7f9f3}.customer-service-overview>header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}.customer-service-overview>header .eyebrow{margin:0 0 2px}.customer-service-overview>header h3{margin:0;font-size:17px}.customer-service-alert-link{display:inline-flex;padding:5px 9px;border-radius:999px;background:#b52d27;color:#fff;font-size:12px;font-weight:800;text-decoration:none}.customer-service-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.customer-service-empty{grid-column:1/-1;margin:0}.customer-service-card{min-width:0;padding:11px 12px;border:1px solid var(--line);border-left:4px solid #66844f;border-radius:8px;background:#fff}.customer-service-card.has-alerts{border-color:#dfaaa5;border-left-color:#b52d27;background:#fff7f6}.customer-service-card.is-pending{border-left-color:#b7791f}.customer-service-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:9px}.customer-service-card>header>div{display:grid;gap:1px}.customer-service-card>header span,.customer-service-card p{font-size:12px;color:var(--muted)}.customer-service-card p{margin:7px 0}.customer-service-status{flex:0 0 auto;padding:3px 7px;border-radius:999px;background:var(--soft);color:var(--olive)!important;font-size:11px!important;font-weight:750}.customer-service-card.has-alerts .customer-service-status{background:#b52d27;color:#fff!important}.customer-service-card>a{color:var(--olive);font-size:12px;font-weight:750}.customer-service-alerts{display:grid;gap:6px;margin:8px 0;padding:0;list-style:none}.customer-service-alerts li{display:grid;padding:7px 8px;border-radius:6px;background:#fde8e5;color:#78231f;font-size:12px}.customer-service-alerts span{color:#6f3b37}@media(max-width:760px){.customer-service-grid{grid-template-columns:minmax(0,1fr)}.customer-service-overview>header{align-items:flex-start;flex-direction:column}}

/* Stugtrygg alarm workspace: only installations with an active alarm are listed. */
.stugtrygg-alert-page{padding:clamp(18px,2.8vw,30px)}.stugtrygg-alert-page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:14px;border-bottom:1px solid var(--line)}.stugtrygg-alert-page-heading .eyebrow{margin:0 0 3px}.stugtrygg-alert-page-heading h1{margin:0 0 5px}.stugtrygg-alert-page-heading p{margin:0;color:var(--muted)}.stugtrygg-alert-page-heading .button{flex:0 0 auto;margin:0}.stugtrygg-alert-rules{margin:14px 0;padding:11px 13px;border-radius:8px;background:var(--soft)}.stugtrygg-no-alerts p{margin:3px 0 0}.stugtrygg-alert-list{display:grid;gap:12px}.stugtrygg-alert-installation{padding:15px;border:1px solid #dfaaa5;border-left:6px solid #b52d27;border-radius:10px;background:#fff}.stugtrygg-alert-installation>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.stugtrygg-alert-installation>header .eyebrow{margin:0 0 2px;color:#9b2822}.stugtrygg-alert-installation h2{margin:0;font-size:21px}.stugtrygg-alert-installation>header p:last-child{margin:4px 0 0}.stugtrygg-alert-count{flex:0 0 auto;padding:5px 10px;border-radius:999px;background:#b52d27;color:#fff;font-size:12px;font-weight:800}.stugtrygg-alert-installation>ul{display:grid;gap:8px;margin:12px 0;padding:0;list-style:none}.stugtrygg-alert-installation>ul li{display:grid;grid-template-columns:minmax(150px,.7fr) minmax(220px,1.4fr) auto;gap:10px;align-items:start;padding:10px 11px;border-radius:7px;background:#fff0ee}.stugtrygg-alert-installation>ul li strong{color:#8f241f}.stugtrygg-alert-installation>ul li small{color:var(--muted);white-space:nowrap}.stugtrygg-alert-actions{display:flex;gap:8px;flex-wrap:wrap}.stugtrygg-alert-actions .button{min-height:38px;margin:0;padding:7px 11px;font-size:13px}@media(max-width:760px){.stugtrygg-alert-page-heading,.stugtrygg-alert-installation>header{align-items:stretch;flex-direction:column}.stugtrygg-alert-page-heading .button{width:100%}.stugtrygg-alert-installation>ul li{grid-template-columns:minmax(0,1fr);gap:3px}.stugtrygg-alert-installation>ul li small{white-space:normal}.stugtrygg-alert-actions{display:grid;grid-template-columns:1fr}.stugtrygg-alert-actions .button{width:100%}}
.offer-admin-actions,.archived-offers{margin:12px 0;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.offer-admin-actions>summary,.archived-offers>summary{padding:12px 14px;color:var(--olive);font-weight:750;cursor:pointer;list-style:none}.offer-admin-actions>summary::before,.archived-offers>summary::before{content:'▸';display:inline-block;width:1.2em}.offer-admin-actions[open]>summary::before,.archived-offers[open]>summary::before{content:'▾'}.offer-admin-actions form{display:flex;align-items:end;gap:10px 14px;flex-wrap:wrap;padding:4px 14px 14px}.offer-admin-actions label{display:grid;gap:5px;min-width:min(100%,280px);flex:1;font-weight:700}.offer-admin-actions select{padding:10px;border:1px solid var(--line);border-radius:6px;font:inherit}.offer-admin-actions small{flex-basis:100%;color:var(--muted)}.archived-offer{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:12px 14px;border-top:1px solid var(--line)}.archived-offer form{margin:0 0 0 auto}
.invoice-send-confirmation .invoice-send-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.75rem;margin:1.25rem 0}.invoice-send-confirmation .invoice-send-summary>div{padding:.85rem 1rem;border:1px solid var(--line,#d7dfcf);border-radius:.55rem;background:var(--surface-muted,#f3f6ef)}.invoice-send-confirmation dt{font-size:.88rem;color:var(--muted,#53604e)}.invoice-send-confirmation dd{margin:.25rem 0 0;font-weight:700;overflow-wrap:anywhere}.invoice-send-confirmation-actions{display:flex;flex-wrap:wrap;gap:.75rem;align-items:center;margin-top:1.25rem}.invoice-send-confirmation-actions form{margin:0}
.offer-list-tools{display:grid;grid-template-columns:minmax(220px,2fr) minmax(160px,1fr) minmax(160px,1fr);gap:12px;margin:16px 0 8px;padding:14px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.offer-list-tools label{display:grid;gap:6px;font-weight:700}.offer-list-empty{padding:12px;border-radius:7px;background:var(--paper);color:var(--muted)}.standalone-offer[hidden]{display:none!important}@media(max-width:680px){.offer-list-tools{grid-template-columns:minmax(0,1fr)}}
.admin-lead-card .lead-status-form input{width:100%;min-height:42px;padding:9px 11px;border:1px solid #bfc9b6;border-radius:7px;background:#fff;color:var(--ink);font:inherit}.admin-lead-card .lead-history ol{margin:10px 0 0;padding-left:22px}.admin-lead-card .lead-history li{margin:8px 0}.admin-lead-card .lead-history li p{margin:4px 0 0;white-space:pre-wrap}
.job-material-move-controls{grid-column:1/-1;display:flex;gap:8px;justify-content:flex-end}.job-material-move{min-height:36px;border:1px solid var(--line);border-radius:6px;padding:6px 10px;background:var(--paper);color:var(--olive);font:600 13px system-ui,sans-serif;cursor:pointer}.job-material-move:disabled{opacity:.45;cursor:not-allowed}
.job-material-fixed-note{align-self:center;color:var(--muted);font-size:12px}
.customer-data-rights{margin-top:22px;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--paper)}.customer-data-rights h3{margin:0 0 7px}.customer-data-rights>form{margin:13px 0}.customer-audit{margin-top:14px;border-top:1px solid var(--line);padding-top:12px}.customer-audit>summary{cursor:pointer;color:var(--olive);font-weight:750}.customer-audit ol{display:grid;gap:8px;margin:12px 0 0;padding:0;list-style:none}.customer-audit li{display:grid;grid-template-columns:minmax(170px,.7fr) minmax(220px,1fr);gap:3px 14px;padding:9px 11px;border-radius:7px;background:var(--soft)}.customer-audit li span,.customer-audit li small{color:var(--muted);font-size:12px}.customer-audit li small{grid-column:1/-1;overflow-wrap:anywhere}@media(max-width:620px){.customer-data-rights .button{width:100%}.customer-audit li{grid-template-columns:minmax(0,1fr)}}
.inspection-list-tools{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(150px,1fr));gap:12px;align-items:end;margin:14px 0;padding:14px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}
.inspection-list-tools label{min-width:0}.inspection-list-tools input,.inspection-list-tools select{width:100%;min-width:0}.inspection-list-tools [data-inspection-list-count]{grid-column:1/-1;margin:0}#inspection-list .inspection-record[hidden]{display:none!important}
@media(max-width:760px){.inspection-list-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.inspection-list-tools{grid-template-columns:1fr}}
.outgoing-mail-audit>summary{cursor:pointer;color:var(--olive);font-size:17px}.outgoing-mail-audit[open]>summary{margin-bottom:12px}.outgoing-mail-audit .billing-table{margin-bottom:0}
.article-add-link{cursor:pointer;font-family:inherit}.job-material-search-controls{display:flex;align-items:stretch;gap:7px}.job-material-search-controls .job-material-search{flex:1}.inline-product-button{flex:0 0 auto;min-height:41px;border:1px solid var(--olive);border-radius:7px;padding:8px 11px;background:#fff;color:var(--olive);font:700 13px system-ui,sans-serif;cursor:pointer;white-space:nowrap}.inline-product-button:hover,.inline-product-button:focus-visible{background:var(--soft)}.inline-product-feedback{display:block;margin-top:5px;color:var(--olive);font-size:12px;font-weight:650}.inline-product-dialog{box-sizing:border-box;width:min(780px,calc(100vw - 28px));max-width:none;max-height:94dvh;overflow:auto;padding:0;border:0;border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 22px 80px #14200f66}.inline-product-dialog::backdrop{background:#17200faa}.inline-product-panel{display:grid;gap:14px;margin:0;padding:clamp(18px,3vw,28px)}.inline-product-panel>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:12px;border-bottom:1px solid var(--line)}.inline-product-panel h2{margin:2px 0 0;color:var(--olive);font-size:clamp(22px,4vw,29px)}.inline-product-panel .eyebrow{margin:0;color:var(--copper);font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.inline-product-panel>.hint{margin:0}.inline-product-status{min-height:1.4em;margin:0;color:#963b32;font-weight:650}.inline-product-actions{display:flex;gap:10px;flex-wrap:wrap}.inline-product-actions .button{margin:0}.inline-product-actions [aria-busy="true"]{display:inline-flex;align-items:center;gap:8px}.inline-product-actions [aria-busy="true"]::before{content:"";width:14px;height:14px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:inline-product-spin .7s linear infinite}@keyframes inline-product-spin{to{transform:rotate(360deg)}}@media(max-width:620px){.job-material-search-controls{align-items:stretch;flex-direction:column}.inline-product-button{width:100%}.inline-product-dialog{width:calc(100vw - 12px);max-height:96dvh}.inline-product-panel{padding:16px}.inline-product-panel>header{gap:10px}.inline-product-actions{display:grid;grid-template-columns:1fr}.inline-product-actions .button{width:100%}}
.marketing-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:18px}.marketing-heading h2{margin-top:0}.marketing-heading form{min-width:220px}.marketing-heading select{display:block;width:100%;margin-top:5px;padding:10px 11px;border:1px solid #bfc9b6;border-radius:7px;background:#fff;color:var(--ink);font:inherit}.marketing-stats{grid-template-columns:repeat(4,minmax(0,1fr))}.billing-table td small{display:block;margin-top:3px;color:var(--muted)}@media(max-width:800px){.marketing-heading{align-items:stretch;flex-direction:column}.marketing-heading form{min-width:0}.marketing-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
.referral-report-filter{display:grid;grid-template-columns:minmax(210px,1.4fr) repeat(2,minmax(150px,.7fr)) auto auto;gap:12px;align-items:end}.referral-report-filter label{display:grid;gap:5px;color:var(--olive);font-weight:700}.referral-report-filter input,.referral-report-filter select{width:100%;min-height:42px}.referral-report-filter .referral-paid-filter{display:flex;align-items:center;gap:7px;min-height:42px}.referral-report-filter .referral-paid-filter input{width:18px;min-height:18px}.referral-statement{color:#20251d}.referral-statement-header{display:flex;justify-content:space-between;gap:28px;padding-bottom:18px;border-bottom:2px solid var(--olive)}.referral-statement-header h1{margin:4px 0}.referral-statement-header>div:last-child{text-align:right}.referral-statement-partner{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.referral-statement-partner>div{padding:10px 12px;border-radius:7px;background:var(--soft)}.referral-statement-partner dt{color:var(--muted);font-size:12px;font-weight:700}.referral-statement-partner dd{margin:3px 0 0;font-weight:700;overflow-wrap:anywhere}.referral-statement-table th,.referral-statement-table td{font-variant-numeric:tabular-nums}.referral-statement-table tfoot{border-top:2px solid var(--olive)}.referral-statement-note{margin-top:20px;padding:12px 14px;border-left:4px solid var(--olive);background:var(--soft)}.referral-statement-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}@media(max-width:850px){.referral-report-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.referral-report-filter>button{min-height:44px}.referral-statement-header{align-items:flex-start;flex-direction:column}.referral-statement-header>div:last-child{text-align:left}.referral-statement-partner{grid-template-columns:1fr}}
@media print{@page{size:A4 landscape;margin:12mm}.admin-shell:has(.referral-statement){width:100%;margin:0}.admin-shell:has(.referral-statement)>*:not(.referral-statement),.admin-foot{display:none!important}.referral-statement{margin:0;padding:0;border:0;box-shadow:none}.referral-statement-actions{display:none!important}.referral-statement .billing-table{overflow:visible;border:0}.referral-statement-table{min-width:0!important;font-size:9pt}.referral-statement-table th,.referral-statement-table td{padding:6px}.referral-statement-header,.referral-statement-partner>div,.referral-statement-table tr{break-inside:avoid}}

/* Keep invoice option checkboxes beside their labels instead of inheriting full-width text-input styles. */
.invoice-editor-form .invoice-test-option{display:flex;align-items:center;justify-content:flex-start;gap:8px;width:max-content;max-width:100%;margin:12px 0 20px;color:var(--olive);font-weight:650;cursor:pointer}
.invoice-editor-form .invoice-test-option input[type=checkbox]{display:block;flex:0 0 auto;width:18px;height:18px;margin:0;padding:0;accent-color:var(--olive)}

/* Compact, aligned invoice rows. These rules live in the external stylesheet so the admin CSP permits them. */
#invoice-lines .billing-line{grid-template-columns:minmax(260px,1fr) 112px 156px 112px max-content;gap:8px 12px;align-items:start;padding:12px 0}
#invoice-lines .billing-line>.article-field{grid-column:1;grid-row:1/span 2}
#invoice-lines .billing-line>.article-field>label{display:grid;gap:6px;margin:0}
#invoice-lines .billing-line .article-picker{margin-top:0}
#invoice-lines .billing-line>.article-field>.invoice-line-work-date{margin-top:8px}
#invoice-lines .billing-line>label:has(>input[name="line_quantity[]"]){grid-column:2;grid-row:1}
#invoice-lines .billing-line>label:has(>input[name="line_price_ex_vat[]"]){grid-column:3;grid-row:1}
#invoice-lines .billing-line>label:has(>input[name="line_discount[]"]){grid-column:4;grid-row:1}
#invoice-lines .billing-line>label:not(.invoice-price-lock){display:grid;gap:6px;margin:0}
#invoice-lines .billing-line input:not([type=checkbox]),#invoice-lines .billing-line select{box-sizing:border-box;height:42px;min-height:42px;padding:8px 10px}
#invoice-lines .invoice-price-lock{grid-column:3;grid-row:2;align-self:center;margin:0}
#invoice-lines .invoice-line-actions{grid-column:5;grid-row:1;align-self:start;justify-content:flex-end;flex-wrap:nowrap;margin-top:25px}
#invoice-lines .invoice-line-actions button{min-height:34px;padding:7px 9px}
.quantity-input-control{display:grid;grid-template-columns:minmax(0,1fr) 28px;grid-template-rows:1fr 1fr;gap:3px;align-items:stretch;height:42px}
.quantity-input-control>input{grid-column:1;grid-row:1/3;height:42px!important;min-height:42px!important}
.quantity-input-step{grid-column:2;min-width:28px;min-height:0;border:1px solid var(--olive);border-radius:5px;background:#fff;color:var(--olive);padding:0;font:700 11px Arial,sans-serif;line-height:1;cursor:pointer}
.quantity-input-step:hover,.quantity-input-step:focus-visible{background:var(--soft)}
.article-results button.is-keyboard-active,.article-results button[aria-selected="true"]{background:var(--soft);box-shadow:inset 4px 0 0 var(--copper);font-weight:700}
@media(max-width:900px){#invoice-lines .billing-line{grid-template-columns:minmax(240px,1fr) 105px 140px 105px}#invoice-lines .invoice-line-actions{grid-column:1/-1;grid-row:3;justify-content:flex-end;margin-top:0}}
@media(max-width:760px){#invoice-lines .billing-line{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}#invoice-lines .billing-line>.article-field{grid-column:1/-1;grid-row:auto}#invoice-lines .billing-line>label:has(>input[name="line_quantity[]"]){grid-column:1;grid-row:auto}#invoice-lines .billing-line>label:has(>input[name="line_price_ex_vat[]"]){grid-column:2;grid-row:auto}#invoice-lines .billing-line>label:has(>input[name="line_discount[]"]){grid-column:3;grid-row:auto}#invoice-lines .invoice-price-lock{grid-column:2;grid-row:auto}#invoice-lines .invoice-line-actions{grid-column:1/-1;grid-row:auto;justify-content:flex-start;margin-top:0;flex-wrap:wrap}}
@media(max-width:520px){#invoice-lines .billing-line{grid-template-columns:repeat(2,minmax(0,1fr))}#invoice-lines .billing-line>label:has(>input[name="line_quantity[]"]){grid-column:1}#invoice-lines .billing-line>label:has(>input[name="line_price_ex_vat[]"]){grid-column:2}#invoice-lines .billing-line>label:has(>input[name="line_discount[]"]){grid-column:1}#invoice-lines .invoice-price-lock{grid-column:2}}

/* Personal overview: concise account-specific mail, trips, time and profile. */
.overview-business-summary{padding:9px 12px}.overview-business-summary .billing-stats{grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:7px;margin:0}.overview-business-summary .billing-stats>a{padding:9px 11px;border-radius:7px}.overview-business-summary .billing-stats strong{font-size:19px;line-height:1.25}.overview-business-summary .billing-stats span{font-size:11px}
.overview-personal-dashboard>h1{margin-bottom:20px}.overview-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.overview-dashboard-card{min-width:0;padding:19px;border:1px solid var(--line);border-radius:10px;background:var(--paper)}.overview-dashboard-card>header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.overview-dashboard-card>header .eyebrow{margin:0 0 4px}.overview-dashboard-card h2{margin:0;font-size:21px}.overview-dashboard-card>header>.button{min-height:38px;margin:0;padding:7px 12px;font-size:14px}.overview-dashboard-card>p{color:var(--muted)}.overview-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.overview-card-actions .button{min-height:34px;margin:0;padding:6px 10px;font-size:12px}
.overview-mail-list{display:grid;gap:8px}.overview-mail-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:9px 10px;border:1px solid var(--line);border-left:4px solid transparent;border-radius:8px;background:#fff}.overview-mail-item.is-unread{border-left-color:var(--olive);background:#f2f6ed}.overview-mail-item>div:first-child{display:grid;min-width:0;gap:2px}.overview-mail-item strong,.overview-mail-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overview-mail-item small{color:var(--muted)}.overview-mail-item-actions{display:grid;justify-items:stretch;gap:4px}.overview-mail-item-actions .button{min-height:29px;margin:0;padding:3px 7px;font-size:11px}.overview-mail-item-actions form{margin:0}.overview-mail-trash{width:100%;min-height:25px;padding:1px 7px;border:1px solid #c45b48;border-radius:5px;background:#fff;color:#a73725;font:inherit;line-height:1;cursor:pointer}.overview-mail-trash:hover,.overview-mail-trash:focus-visible{background:#fff1ee}.overview-mail-actions{margin:0}.overview-mail-actions .button,.overview-connection-action{min-height:34px;margin:0;padding:6px 10px;font-size:12px}
.overview-time-days{display:grid;gap:9px}.overview-time-days>article{padding:11px 12px;border:1px solid var(--line);border-radius:8px;background:#fff}.overview-time-days article>header{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--olive)}.overview-time-days ul{display:grid;gap:5px;margin:9px 0 0;padding:9px 0 0;border-top:1px solid var(--line);list-style:none}.overview-time-days li{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;font-size:13px}.overview-time-days li span{min-width:0;color:var(--muted);overflow-wrap:anywhere}.overview-time-days li strong{flex:0 0 auto}
.overview-time-dialog{width:min(820px,calc(100% - 24px));max-height:calc(100dvh - 24px);padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 20px 65px #16200f55}.overview-time-dialog::backdrop{background:#15200fb3;backdrop-filter:blur(2px)}.overview-time-dialog>header{position:sticky;z-index:2;top:0;display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 19px;border-bottom:1px solid var(--line);background:#fff}.overview-time-dialog>header .eyebrow{margin:0 0 3px}.overview-time-dialog>header h2{margin:0}.overview-time-dialog-close{width:34px;height:34px;padding:0;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--olive);font-size:24px;line-height:1;cursor:pointer}.overview-time-dialog>.notice,.overview-time-dialog>.operations-form{margin:16px 19px}.overview-time-dialog>.operations-form{padding-bottom:4px}.overview-time-dialog>.operations-form>.button{margin-top:12px}
.overview-fleet-card{grid-column:1/-1}.overview-fleet-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.overview-fleet-card .overview-fleet-trips{display:grid;align-content:start;gap:5px}.overview-fleet-card .fleet-trip{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:7px;margin:0;padding:6px 8px}.overview-fleet-card .overview-trip-summary{display:flex;align-items:center;min-width:0;gap:8px;white-space:nowrap;font-size:12px}.overview-fleet-card .overview-trip-summary strong{flex:0 0 auto}.overview-fleet-card .overview-trip-summary span{flex:0 0 auto}.overview-fleet-card .overview-trip-summary small{min-width:0;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}.overview-fleet-card .fleet-trip-classification{display:flex;align-items:center;gap:3px;margin:0}.overview-fleet-card .fleet-trip-classification .button{min-height:27px;margin:0;padding:3px 6px;border-radius:5px;font-size:11px}.overview-fleet-card .fleet-save-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.overview-profile-row{margin-top:16px;border:1px solid var(--line);border-radius:10px;background:#fff}.overview-profile-row>summary{display:flex;align-items:center;justify-content:flex-start;gap:11px;padding:15px 17px;color:var(--olive);cursor:pointer;list-style:none}.overview-profile-row>summary::-webkit-details-marker{display:none}.overview-profile-row>summary>span:last-child{display:grid;gap:2px}.overview-profile-row>summary small{color:var(--muted);font-weight:400}.overview-profile-toggle{font-size:22px;line-height:1;transition:transform .2s}.overview-profile-row[open] .overview-profile-toggle{transform:rotate(45deg)}.overview-profile-content{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:0 17px 18px;border-top:1px solid var(--line)}.overview-profile-content form{min-width:0}.overview-profile-content h3{margin:16px 0 8px}.overview-profile-content .button{margin-top:14px}.timesheet-source-label{display:block;color:var(--muted);font-size:11px;font-weight:500}
@media(max-width:760px){.overview-dashboard-grid,.overview-profile-content,.overview-fleet-columns{grid-template-columns:minmax(0,1fr)}.overview-dashboard-card>header{align-items:stretch;flex-direction:column}.overview-dashboard-card>header>.button{width:100%}.overview-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.overview-card-actions .button{width:100%}.overview-mail-item{grid-template-columns:minmax(0,1fr) auto}.overview-profile-row>summary{padding:14px}.overview-profile-content{padding:0 14px 14px}.admin-heading-top{align-items:stretch;flex-direction:column}.admin-heading-shortcuts{justify-content:flex-start}.overview-time-dialog{width:min(100% - 12px,820px);max-height:calc(100dvh - 12px)}.overview-time-dialog>header{padding:14px}.overview-time-dialog>.notice,.overview-time-dialog>.operations-form{margin:14px}}
@media(max-width:520px){.overview-fleet-card .fleet-trip{grid-template-columns:auto minmax(0,1fr)}.overview-fleet-card .overview-trip-summary span:nth-of-type(2),.overview-fleet-card .overview-trip-summary small{display:none}.overview-business-summary .billing-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Full mail and mileage workspaces opened from the overview without the admin portal chrome. */
.admin-standalone{background:#f5f7f1}.admin-standalone .admin-standalone-shell{width:min(1720px,calc(100% - 24px));margin:12px auto 24px}.admin-standalone .admin-card{margin:0 0 14px;padding:clamp(16px,2.4vw,28px);box-shadow:0 8px 28px #2332190a}.admin-standalone .admin-card:last-child{margin-bottom:0}.admin-standalone .mailbox-page,.admin-standalone .fleet-page{min-height:calc(100vh - 36px)}
@media(max-width:680px){.admin-standalone .admin-standalone-shell{width:calc(100% - 12px);margin:6px auto 18px}.admin-standalone .admin-card{padding:14px;border-radius:9px}}

/* Overview voice assistant: a persistent but review-first shortcut on desktop and mobile. */
body.overview-voice-open{overflow:hidden}
.admin-heading-voice{display:inline-flex;align-items:center;gap:6px}.admin-heading-voice>span:first-child{font-size:17px;line-height:1}
.overview-voice-dialog[hidden],.overview-voice-result[hidden],.overview-voice-dialog [hidden]{display:none!important}
.overview-voice-dialog{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:20px;background:#16200ecc;backdrop-filter:blur(3px)}
.overview-voice-sheet{box-sizing:border-box;width:min(780px,100%);max-height:calc(100dvh - 40px);overflow:auto;padding:clamp(18px,3vw,28px);border-radius:14px;background:#fff;box-shadow:0 24px 90px #0008;color:var(--ink)}
.overview-voice-sheet>header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:13px;border-bottom:1px solid var(--line)}
.overview-voice-sheet>header .eyebrow{margin:0}.overview-voice-sheet h2{margin:3px 0 0}.overview-voice-close{display:grid;place-items:center;width:42px;height:42px;flex:0 0 auto;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--olive);font:400 30px/1 system-ui,sans-serif;cursor:pointer}
.overview-voice-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:16px 0 8px}.overview-voice-controls .button{margin:0}.overview-voice-status{min-height:1.5em;margin:8px 0;color:var(--olive);font-weight:700}
.overview-voice-listening{display:flex;align-items:center;gap:10px;margin:10px 0 12px;padding:13px 15px;border:2px solid #a72f25;border-radius:10px;background:#fff1ef;color:#8c251e;box-shadow:0 0 0 4px #a72f2514;font-variant-numeric:tabular-nums}.overview-voice-listening-dot{width:15px;height:15px;flex:0 0 auto;border-radius:50%;background:#c93429;box-shadow:0 0 0 0 #c9342970;animation:overview-voice-pulse 1.25s ease-out infinite}.overview-voice-listening>[data-overview-voice-recording-time]{font-size:18px;font-weight:800}.overview-voice-level{display:inline-flex;align-items:center;gap:3px;height:24px;margin-left:auto}.overview-voice-level i{display:block;width:4px;height:8px;border-radius:999px;background:#c93429;animation:overview-voice-level .8s ease-in-out infinite alternate}.overview-voice-level i:nth-child(2){animation-delay:-.55s}.overview-voice-level i:nth-child(3){animation-delay:-.3s}.overview-voice-level i:nth-child(4){animation-delay:-.65s}.overview-voice-assistant[data-recording] [data-overview-voice-record]{background:#a72f25;color:#fff;opacity:1;cursor:default}.overview-voice-assistant[data-recording] [data-overview-voice-stop]{border-color:#a72f25;background:#fff;color:#8c251e;box-shadow:0 0 0 2px #a72f2520}.overview-voice-assistant[data-recording] .overview-voice-status{color:#8c251e}@keyframes overview-voice-pulse{70%,100%{box-shadow:0 0 0 12px #c9342900}}@keyframes overview-voice-level{to{height:22px}}
.overview-voice-button-spinner{display:none;width:17px;height:17px;box-sizing:border-box;border:3px solid #7b8176;border-right-color:transparent;border-radius:50%}.overview-voice-assistant[data-processing] [data-overview-voice-stop]{display:inline-flex;align-items:center;gap:9px;border-color:#b8bdb3!important;background:#e5e7e2!important;color:#5f655b!important;opacity:1!important;cursor:wait}.overview-voice-assistant[data-processing] .overview-voice-button-spinner{display:inline-block;animation:overview-voice-spin .75s linear infinite}.overview-voice-processing{display:flex;align-items:center;gap:13px;margin:10px 0 12px;padding:15px;border:2px solid var(--olive);border-radius:10px;background:#f1f5ed;color:var(--olive);box-shadow:0 0 0 4px #2f491518}.overview-voice-processing>span:nth-child(2){display:grid;gap:3px}.overview-voice-processing strong{font-size:15px;letter-spacing:.04em}.overview-voice-processing small{color:var(--ink);font-weight:600}.overview-voice-spinner{width:27px;height:27px;flex:0 0 auto;box-sizing:border-box;border:4px solid #b8c4ad;border-top-color:var(--olive);border-radius:50%;animation:overview-voice-spin .85s linear infinite}.overview-voice-processing-dots{display:flex;gap:4px;margin-left:auto}.overview-voice-processing-dots i{width:6px;height:6px;border-radius:50%;background:var(--olive);animation:overview-voice-dot 1s ease-in-out infinite}.overview-voice-processing-dots i:nth-child(2){animation-delay:.16s}.overview-voice-processing-dots i:nth-child(3){animation-delay:.32s}@keyframes overview-voice-spin{to{transform:rotate(360deg)}}@keyframes overview-voice-dot{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-4px)}}
.overview-voice-text{margin:13px 0;padding:11px 13px;border:1px solid var(--line);border-radius:8px;background:var(--paper)}.overview-voice-text>summary{cursor:pointer;color:var(--olive);font-weight:750}.overview-voice-text label{display:grid;gap:6px;margin:12px 0}.overview-voice-text textarea{width:100%;box-sizing:border-box}
.overview-voice-result{display:grid;gap:13px;margin-top:18px;padding-top:18px;border-top:3px solid var(--olive)}.overview-voice-result>.eyebrow,.overview-voice-result>h3,.overview-voice-result>p{margin:0}.overview-voice-result details>p{white-space:pre-wrap}
.overview-voice-task-list{display:grid;gap:8px;padding:12px;border:1px solid var(--line);border-radius:10px;background:var(--soft)}.overview-voice-task{display:flex;width:100%;align-items:center;padding:11px 13px;border:1px solid #bfc9b6;border-radius:8px;background:#fff;color:var(--olive);font:750 14px/1.35 system-ui,sans-serif;text-align:left;cursor:pointer}.overview-voice-task:hover,.overview-voice-task:focus-visible{border-color:var(--copper);outline:2px solid var(--copper);outline-offset:1px}.overview-voice-task.is-active{border-color:var(--olive);background:var(--olive);color:#fff}.overview-voice-task-list+.hint{margin-top:-7px}
.overview-voice-result>[data-overview-voice-job-route]{display:grid;gap:10px;padding:14px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}.overview-voice-result>[data-overview-voice-job-route]>label{display:grid;gap:6px;font-weight:750}.overview-voice-result>[data-overview-voice-job-route] select{width:100%}.overview-voice-result>[data-overview-voice-job-route] .button{justify-self:start;margin:0}
.overview-voice-prepare{display:grid;gap:13px;padding:14px;border:1px solid var(--line);border-radius:9px;background:#fbfcf9}.overview-voice-prepare>.button{justify-self:start;margin:0}.overview-voice-customer-wait{grid-column:1/-1;margin:0}.overview-voice-completion-review{margin-top:4px}.overview-voice-reset{justify-self:start;margin:4px 0 0}
@media(max-width:680px){
  .overview-voice-dialog{place-items:end center;padding:0;background:#16200eb8}.overview-voice-sheet{width:100%;max-height:94dvh;border-radius:16px 16px 0 0;padding:18px 16px calc(20px + env(safe-area-inset-bottom))}
  .overview-voice-controls{display:grid;grid-template-columns:1fr}.overview-voice-controls .button,.overview-voice-result>[data-overview-voice-job-route] .button,.overview-voice-prepare>.button,.overview-voice-result>[data-overview-voice-link]{width:100%;min-height:50px;justify-content:center}
}
@media(prefers-reduced-motion:reduce){.overview-voice-listening-dot,.overview-voice-level i,.overview-voice-button-spinner,.overview-voice-spinner,.overview-voice-processing-dots i{animation:none}}

/* Article workspace: one page, no secondary navigation. */
.product-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;margin-left:auto}.product-list-toolbar .product-page-actions .button{min-height:38px;margin:0;border:1px solid var(--olive);padding:7px 12px;background:#fff;color:var(--olive);font-size:13px}.product-list-toolbar .product-page-actions .button:hover,.product-list-toolbar .product-page-actions .button:focus-visible{background:#fff;box-shadow:inset 0 -2px 0 var(--olive)}
.product-tool-dialog{width:min(820px,calc(100% - 32px));max-width:none;max-height:calc(100vh - 32px);margin:auto;padding:0;border:1px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);box-shadow:0 24px 70px #17201940}.product-tool-dialog-wide{width:min(1500px,calc(100% - 32px))}.product-tool-dialog::backdrop{background:#1720198c;backdrop-filter:blur(2px)}.product-tool-dialog-shell{display:grid;grid-template-rows:auto minmax(0,1fr);max-height:calc(100vh - 34px)}.product-tool-dialog-shell>header{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 20px;border-bottom:1px solid var(--line);background:#fff}.product-tool-dialog-shell>header .eyebrow{margin:0 0 2px}.product-tool-dialog-shell>header h2{margin:0;color:var(--olive);font-size:22px}.product-tool-dialog-shell>header .button{min-height:38px;margin:0;padding:7px 13px}.product-tool-dialog-body{min-height:0;padding:18px;overflow:auto;overscroll-behavior:contain}.product-tool-dialog-body>.admin-card{margin:0 0 16px;padding:18px;border-radius:9px;box-shadow:none}.product-tool-dialog-body>.admin-card:last-child{margin-bottom:0}.product-add-dialog .product-tool-dialog-body>section>h2:first-child{display:none}.product-compare-dialog .product-tool-dialog-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.product-compare-dialog .product-tool-dialog-body>.admin-card{margin:0}.product-tool-dialog .billing-table{max-width:100%}
@media(min-width:901px){.product-compare-dialog .product-tool-dialog-body>.admin-card:first-child .billing-table table{min-width:0;table-layout:fixed}.product-compare-dialog .product-tool-dialog-body>.admin-card:first-child .billing-table th:first-child{width:60%}.product-compare-dialog .product-tool-dialog-body>.admin-card:first-child .billing-table input{min-width:0}}
@media(max-width:900px){.product-compare-dialog .product-tool-dialog-body{grid-template-columns:minmax(0,1fr)}}
@media(max-width:680px){.product-page-actions{width:100%;margin-left:0}.product-page-actions .button{flex:1 1 140px}.product-tool-dialog,.product-tool-dialog-wide{width:calc(100% - 12px);max-height:calc(100vh - 12px)}.product-tool-dialog-shell{max-height:calc(100vh - 14px)}.product-tool-dialog-shell>header{padding:12px 14px}.product-tool-dialog-shell>header h2{font-size:20px}.product-tool-dialog-body{padding:10px}.product-tool-dialog-body>.admin-card{padding:13px}}

/* Review-first article creation from an order-confirmation photo. */
.product-image-dialog .product-tool-dialog-body>section>h2:first-child{display:none}.product-image-import{display:grid;gap:16px}.product-image-import>p,.product-image-upload p,.product-image-review>p{margin:0}.product-image-upload{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:12px;padding:16px;border:1px solid var(--line);border-radius:9px;background:var(--soft)}.product-image-picker{position:relative;display:grid;gap:8px;min-width:0;margin:0;padding:0;border:0}.product-image-picker legend{padding:0;font-weight:750}.product-image-file-input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0}.product-image-picker-actions{display:flex;flex-wrap:wrap;gap:8px}.product-image-picker-actions .button{min-height:42px;margin:0}.product-image-file-status{font-size:.9rem;color:var(--muted)}.product-image-file-status.is-selected{font-weight:700;color:var(--olive)}.product-image-upload>.hint,.product-image-upload>[data-product-image-status]{grid-column:1/-1}.product-image-upload>.button{min-height:46px;margin:0}.product-image-review{display:grid;gap:13px;padding-top:2px}.product-image-review h3{margin:0;color:var(--olive)}.product-image-review form{margin:0}.product-image-review-table{width:100%;min-width:1120px;table-layout:fixed}.product-image-review-table th:nth-child(1){width:48px}.product-image-review-table th:nth-child(2){width:20%}.product-image-review-table th:nth-child(3){width:22%}.product-image-review-table th:nth-child(4){width:115px}.product-image-review-table th:nth-child(5){width:132px}.product-image-review-table th:nth-child(6){width:125px}.product-image-review-table td{vertical-align:top;overflow-wrap:anywhere}.product-image-review-table td>span,.product-image-review-table td>small,.product-image-review-table td>a,.product-image-review-table td>strong{display:block;margin-top:3px}.product-image-review-table td>strong:first-child,.product-image-review-table td>span:first-child{margin-top:0}.product-image-review-table input[type=number]{box-sizing:border-box;width:100%;min-width:0}.product-image-review-table input[type=checkbox]{width:18px;height:18px;accent-color:var(--olive)}.product-image-review-table output{font-weight:750;color:var(--olive)}.product-image-clear{justify-self:start}.product-image-clear .button{margin:0}.product-image-review>form>[type=submit]{margin-top:12px}
@media(max-width:760px){.product-image-upload{grid-template-columns:minmax(0,1fr);padding:13px}.product-image-picker-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.product-image-picker-actions .button,.product-image-upload>.button{width:100%;padding-inline:8px}.product-image-review-table{min-width:0}.product-image-review-table td[data-mobile-label="Välj"]{align-items:center}.product-image-review-table input[type=number]{max-width:180px}.product-image-review>form>[type=submit],.product-image-clear,.product-image-clear .button{width:100%}}

/* Shared compact workspaces: leads, self-checks, offers, marketing and jobs. */
.work-page-shell{padding:clamp(18px,2.3vw,28px)}
.work-page-header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:16px;margin:0 0 16px}
.work-page-heading{min-width:0}.work-page-heading .eyebrow{margin:0 0 4px}.work-page-heading h1{margin:0;color:var(--olive);font-size:clamp(27px,3vw,35px);line-height:1.12}.work-page-heading>p:last-child{max-width:78ch;margin:5px 0 0;color:var(--muted);font-size:14px;line-height:1.45}
.work-page-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap}.work-page-actions .button{min-height:39px;margin:0;padding:7px 12px;font-size:13px;white-space:nowrap}
.work-section-header{display:flex;align-items:end;justify-content:space-between;gap:14px;margin:0 0 12px}.work-section-header .eyebrow{margin:0 0 3px}.work-section-header h2{margin:0}.work-count{display:inline-flex;align-items:center;min-height:30px;padding:4px 9px;border:1px solid var(--line);border-radius:999px;background:var(--soft);color:var(--olive);font-size:12px;font-weight:750;white-space:nowrap}
.work-section-disclosure{margin:12px 0 15px;padding:0!important;border:1px solid var(--line);border-radius:9px;background:#fbfcf9;overflow:hidden}.work-section-disclosure>summary{display:flex;align-items:center;gap:9px;padding:11px 13px;color:var(--olive);font-weight:750;cursor:pointer;list-style:none}.work-section-disclosure>summary::-webkit-details-marker{display:none}.work-section-disclosure>summary:before{content:"▸";flex:0 0 auto}.work-section-disclosure[open]>summary:before{content:"▾"}.work-section-disclosure>summary>span{display:grid;gap:1px;min-width:0}.work-section-disclosure>summary small{color:var(--muted);font-weight:450;line-height:1.35}.work-section-body{padding:14px;border-top:1px solid var(--line)}.work-section-body>.operations-form{margin:0;padding:0;border:0;background:transparent}.work-section-body>.operations-form>.button:last-child{margin-top:14px}
.work-info-disclosure{margin-top:11px;border-top:1px solid var(--line)}.work-info-disclosure>summary{padding:10px 0 0;color:var(--olive);font-size:13px;font-weight:700;cursor:pointer}.work-info-disclosure>div{max-width:95ch;padding-top:2px}.work-info-disclosure p{margin:8px 0}
.work-filter-panel{margin:12px 0 16px!important;padding:11px 12px!important;border:1px solid var(--line)!important;border-radius:9px!important;background:var(--soft)!important}

/* Förfrågningar: scan-friendly cards with secondary work kept out of the first view. */
.lead-list-toolbar{align-items:end}.lead-list-toolbar #lead-list-count{margin-left:auto;align-self:center;color:var(--muted);font-size:12px;white-space:nowrap}.admin-lead-card{margin:10px 0;padding:14px 15px;box-shadow:0 3px 14px #23321908}.admin-lead-card>header{padding-bottom:8px;border-bottom:1px solid #edf0e9}.admin-lead-card h3{font-size:17px}.lead-kind{display:block;margin-bottom:2px;color:var(--copper);font-size:10px;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.lead-source-note{margin:9px 0 3px!important;color:var(--muted);font-size:12px}.admin-lead-card>p{margin:5px 0;font-size:14px}.admin-lead-card>.admin-lead-edit,.admin-lead-card>details:not(.lead-work-panel){margin:8px 0}.admin-lead-card .lead-work-panel{margin:8px 0;padding:0;border-color:var(--line);overflow:hidden}.lead-work-panel>summary{display:flex;align-items:center;gap:8px;padding:9px 11px;list-style:none}.lead-work-panel>summary::-webkit-details-marker{display:none}.lead-work-panel>summary:before{content:"▸"}.lead-work-panel[open]>summary:before{content:"▾"}.lead-work-panel>summary>span{display:grid;gap:1px}.lead-work-panel>summary small{color:var(--muted);font-size:11px;font-weight:450}.lead-work-panel-body{padding:2px 11px 12px;border-top:1px solid var(--line)}.lead-work-panel-body>.hint{margin:9px 0}.lead-work-panel-body textarea{min-height:145px}.lead-admin-panel .lead-delete-form{margin-top:13px;padding-top:11px;border-top:1px solid var(--line)}

/* Egenkontroller: compact programme and record overview. */
.self-check-programme{margin:12px 0;padding:0;box-shadow:0 4px 18px #23321908}.self-check-programme>summary{padding:13px 15px}.self-check-programme-body{padding:0 15px 15px}.self-check-programme-body>.operations-form,.self-check-programme-body>form{margin-top:12px}.self-check-list{padding:clamp(16px,2.2vw,24px)}.self-check-record{margin-top:7px}.self-check-record>summary{padding:12px 14px}.self-check-record>div{padding:0 14px 13px}.self-check-record>div p{margin:7px 0}.self-check-record>div .button{min-height:37px;margin:4px 4px 0 0;padding:6px 10px;font-size:12px}.self-check-editor{padding:clamp(18px,2.4vw,28px)}

/* Offers and jobs: same header, filter and disclosure rhythm. */
.standalone-offers{margin:14px 0;padding:clamp(16px,2.2vw,24px);border-radius:11px}.standalone-offers>.hint{margin:0 0 10px}.offer-list-tools{margin:10px 0 6px;padding:11px 12px}.offer-list-tools label{margin:0;font-size:12px}.offer-list-tools input,.offer-list-tools select{min-height:40px}.standalone-offer{margin:7px 0}.standalone-offer-summary{padding:11px 13px;font-size:13px}.standalone-offer-summary>strong:first-of-type{font-size:14px}.standalone-offer-content{padding:13px}
.jobs-page>.work-page-header{margin-bottom:12px}.work-admin-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 10px}.work-admin-tools>.job-assignment-diagnostics,.work-admin-tools>.job-ai-settings{margin:0;padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:#fbfcf9}.work-admin-tools summary{font-size:12px}.job-list-filter{display:grid;grid-template-columns:minmax(140px,.7fr) minmax(250px,1.8fr) minmax(180px,1fr) auto;align-items:end;gap:9px}.job-list-filter label{display:grid;gap:4px;margin:0;color:var(--olive);font-size:12px;font-weight:700}.job-list-filter select,.job-list-filter input[type=search]{box-sizing:border-box;width:100%;min-width:0;min-height:40px;padding:8px 10px}.job-list-filter .button{min-height:40px;padding:7px 13px}.job-create-details{margin:10px 0 14px}.job-create-details .job-customer-add{display:flex;align-items:center;gap:10px;margin-bottom:10px}.job-create-details .job-customer-add .button{min-height:38px;margin:0;padding:6px 11px;font-size:12px}.job-create-details .job-customer-add p{margin:0}.job-create-from-offer-menu{margin:8px 0 14px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#fbfcf9}.job-create-from-offer-menu>summary{color:var(--olive);font-size:13px;font-weight:750;cursor:pointer}.operations-item{margin:8px 0;padding:13px 14px;box-shadow:0 3px 14px #23321908}.job-card-summary header{align-items:center}.job-card-summary h3{font-size:16px}.job-card-summary header>div>p:last-child{color:var(--muted);font-size:13px}.job-card-summary header>span{display:inline-flex;align-items:center;padding:5px 9px;border:1px solid var(--line);border-radius:999px;background:var(--soft);color:var(--olive);font-size:11px;font-weight:750;white-space:nowrap}

/* Marketing: align the period control and keep results readable on all widths. */
.marketing-heading{align-items:end}.marketing-period-form{display:grid;grid-template-columns:minmax(190px,1fr) auto;align-items:end;gap:7px;min-width:285px!important}.marketing-period-form label{display:grid;gap:4px;margin:0;font-size:12px}.marketing-period-form select{min-height:39px;margin:0!important;padding:7px 10px!important}.marketing-period-form .button{min-height:39px;margin:0;padding:7px 11px}.marketing-stats{gap:8px;margin:14px 0}.marketing-stats div{padding:11px 12px}.marketing-stats strong{font-size:20px}.marketing-results-table{min-width:1050px!important}.marketing-results-table th,.marketing-results-table td{padding:8px 9px}.marketing-results-table td:not(:first-child){white-space:nowrap;font-variant-numeric:tabular-nums}

@media(max-width:800px){
  .work-page-header{grid-template-columns:minmax(0,1fr);align-items:stretch}.work-page-actions{justify-content:flex-start}.work-admin-tools{grid-template-columns:minmax(0,1fr)}.job-list-filter{grid-template-columns:repeat(2,minmax(0,1fr))}.job-list-filter label:has(input[type=search]){grid-column:1/-1}.job-list-filter .button{width:100%}.marketing-period-form{width:100%;min-width:0!important}.marketing-results-table{min-width:0!important}
}
@media(max-width:560px){
  .work-page-shell{padding:15px}.work-page-header{margin-bottom:12px}.work-page-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.work-page-actions .button{width:100%;white-space:normal}.work-section-header{align-items:flex-start}.work-section-disclosure>summary{align-items:flex-start}.work-section-body{padding:12px}.lead-list-toolbar #lead-list-count{margin-left:0}.admin-lead-card{padding:12px}.admin-lead-card>header{align-items:flex-start}.lead-work-panel>summary{align-items:flex-start}.self-check-programme>summary,.self-check-record>summary{padding:11px 12px}.self-check-programme-body,.self-check-record>div{padding-right:12px;padding-left:12px}.job-list-filter{grid-template-columns:minmax(0,1fr)}.job-list-filter label:has(input[type=search]){grid-column:auto}.job-create-details .job-customer-add{align-items:stretch;flex-direction:column}.marketing-period-form{grid-template-columns:minmax(0,1fr)}.marketing-period-form .button{width:100%}.marketing-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.marketing-stats div{padding:10px}.standalone-offer-summary>strong:last-of-type{width:100%;margin-left:1.5em}
}

.self-check-grid label{margin:0}
.operations-item{padding:0;overflow:hidden}
.job-card-summary{display:grid;grid-template-columns:16px minmax(0,1fr);align-items:start;gap:0 7px;padding:11px 13px;list-style:none}
.job-card-summary::-webkit-details-marker{display:none}.job-card-summary:before{content:"▸";grid-column:1;color:var(--olive);font-weight:800}.job-card-details[open]>.job-card-summary:before{content:"▾"}
.job-card-summary header{grid-column:2}.job-card-details[open]>.job-card-summary{border-bottom:1px solid var(--line);background:#fbfcf9}.job-card-details[open]>:not(summary){margin-right:14px;margin-left:14px}.job-card-details[open]>:last-child{margin-bottom:14px}
@media(max-width:560px){.self-check-programme>summary{flex-wrap:wrap}.self-check-programme>summary>span:first-of-type{flex:1 1 calc(100% - 28px)}.self-check-programme>summary>.status-badge{margin-left:24px}}

/* Keep authenticated portal actions together on desktop and mobile. */
.portal-session-actions{display:flex;flex-direction:column;align-items:stretch;gap:8px}
.portal-session-actions form{margin:0}
.portal-session-actions .button{width:100%;justify-content:center;margin:0}
.portal-session-actions .portal-switch-link{min-height:36px;padding:7px 10px;font-size:13px;white-space:nowrap}
@media(min-width:681px){.admin-heading:has(.portal-switch-link){padding-right:215px}}

/* Keyword planning uses existing admin cards, with no live advertising actions. */
.kw-entry,.kw-section-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap}
.kw-entry h2,.kw-entry p{margin:0 0 8px}.kw-entry .button{flex-shrink:0}
.kw-planner{min-width:0}.kw-planner h1{font-size:clamp(25px,3vw,36px)}
.kw-planner .work-page-header{align-items:flex-start}.kw-planner .work-page-header>div{min-width:0}
.kw-toolbar,.kw-actions{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px;margin:16px 0}
.kw-toolbar>label{flex:1 1 240px;margin:0}.kw-toolbar>button{flex:0 0 auto}
.kw-toolbar label{display:block}.kw-toolbar select,.kw-toolbar input{display:block;width:100%;font:inherit;color:inherit;background:#fff;border:1px solid #bbc6af;border-radius:6px;padding:10px 12px;min-height:44px;margin-top:6px}
.kw-actions form,.kw-section-heading form,.kw-inline{margin:0}.kw-actions button{margin:0}
.kw-notice{padding:14px 16px;background:#fff6e7;border-left:3px solid var(--rust);border-radius:6px}
.kw-step,.kw-service{border:1px solid var(--line);border-radius:10px;padding:14px 16px;margin:18px 0;background:#fff}
.kw-step>summary,.kw-service>summary{font-size:16px;font-weight:750;cursor:pointer;color:var(--olive)}
.kw-step[open]>summary,.kw-service[open]>summary{margin-bottom:16px}
.kw-planner fieldset{border:1px solid var(--line);border-radius:8px;padding:14px;min-width:0}
.kw-planner legend{font-weight:700;padding:0 6px}.kw-planner input,.kw-planner select{max-width:100%;min-width:0}
.kw-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.kw-input-grid label{display:block;margin:10px 0}.kw-input-grid input{display:block;width:100%}
.kw-geo-form{margin:16px 0}.kw-check{display:flex;align-items:flex-start;gap:10px;margin:10px 0}.kw-check input[type=checkbox]{width:18px;height:18px;flex:0 0 auto;margin:3px 0 0}
.kw-creative-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.kw-creative-grid h3{font-size:16px}.kw-creative-grid ul{padding-left:20px}.kw-creative-grid li{margin:7px 0}
.kw-planner td{vertical-align:top}.kw-planner td:first-child{min-width:170px}.kw-planner .billing-table{margin-top:14px}
.kw-ideas{display:flex;flex-wrap:wrap;gap:8px}.kw-ideas>span{padding:6px 10px;background:var(--pale);border-radius:6px}
.kw-service a{overflow-wrap:anywhere}.kw-planner button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:720px){.kw-input-grid,.kw-creative-grid{grid-template-columns:1fr}.kw-step,.kw-service{padding:12px}.kw-planner .work-page-header{gap:10px}.kw-toolbar{align-items:stretch}.kw-toolbar>label,.kw-toolbar>button{flex:1 1 100%}.kw-actions,.kw-actions form,.kw-actions button{width:100%}.kw-planner td:first-child{min-width:0}.kw-entry .button{width:100%;text-align:center}}
