:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#163447;background:#f3f7f8;font-size:16px}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100vh}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{cursor:wait;opacity:.6}
:focus-visible{outline:3px solid #36a9bd;outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.overline{color:#327687;font-weight:750;font-size:.8rem;letter-spacing:.13em;margin:0 0 .6rem}
.brand-mark{width:43px;height:43px;border-radius:11px;display:inline-grid;place-items:center;background:#1ea9af;color:#fff;font-weight:800;font-size:1.45rem;letter-spacing:-.12em;flex:none}
.brand-mark span{color:#b3f2e8;font-weight:500;margin-left:3px}
.button{border:1px solid #cbd9dd;background:white;color:#1d4857;border-radius:9px;padding:.7rem 1.1rem;font-weight:700;min-height:44px}
.button:hover{background:#edf4f5}
.button.primary{background:#007b87;border-color:#007b87;color:#fff}
.button.primary:hover{background:#006873}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:1.4rem;background:radial-gradient(circle at 84% 8%,#276176 0,transparent 33%),linear-gradient(140deg,#092736,#134459)}
.login-card{width:min(100%,420px);display:grid;gap:1rem;background:#fff;padding:2.4rem;border-radius:18px;box-shadow:0 24px 70px #021f3080}
.login-card .brand-mark{margin-bottom:.2rem}
.login-card .overline{margin:0}
.login-card h1{font-size:2rem;letter-spacing:-.04em;margin:-.6rem 0 0}
.login-card p:not(.overline):not(.form-error){margin:-.4rem 0 .3rem;color:#5c737e}
.login-card label{font-weight:700;margin-bottom:-.65rem}
.login-card input{width:100%;padding:.75rem;border:1px solid #b8cbd1;border-radius:8px}
.login-card small{line-height:1.5;color:#607783}
.workspace{display:grid;grid-template-columns:242px minmax(0,1fr);min-height:100vh}
.sidebar{background:#0c3042;color:#eff8f8;display:flex;flex-direction:column;padding:1.65rem 1rem;gap:1.4rem}
.brand{display:flex;align-items:center;gap:.7rem;padding:0 .6rem;font-weight:750;line-height:1.15}
.brand small{display:block;font-size:.64rem;letter-spacing:.14em;color:#8db2bf;margin-top:.32rem}
.side-label{font-size:.7rem;letter-spacing:.14em;color:#78a4b1;padding:0 .8rem;margin:1.7rem 0 -.7rem}
.sidebar nav{display:grid;gap:.3rem}
.sidebar nav button{background:transparent;color:#d1e0e4;border:0;text-align:left;padding:.85rem .85rem;border-radius:8px;min-height:44px;font-weight:650}
.sidebar nav button:hover{background:#214657}
.sidebar nav button.active{background:#1b6070;color:#fff;box-shadow:inset 3px 0 #3cd2cb}
.side-footer{margin-top:auto;border-top:1px solid #335365;padding:1rem .7rem;color:#9fbac4;line-height:1.45;font-size:.88rem}
.side-footer p{margin:.55rem 0 1.3rem}
.side-footer button{border:0;background:transparent;padding:0;color:#def5f4;font-weight:700;text-decoration:underline}
.demo-label{font-size:.69rem;letter-spacing:.12em;color:#66d4cd;font-weight:750}
.main{min-width:0}
.topbar{height:70px;background:#fff;border-bottom:1px solid #dce7e9;padding:0 clamp(1rem,3vw,3rem);display:flex;align-items:center;justify-content:space-between;color:#5d7884}
.topbar strong{color:#173d4b}
.slash{margin:0 .55rem;color:#b3c4c9}
.private-pill{border:1px solid #bde2db;border-radius:99px;padding:.35rem .7rem;color:#0b6c68;background:#edfaf6;font-weight:750;font-size:.78rem}
.content{max-width:1400px;margin:0 auto;padding:clamp(1rem,3vw,3rem)}
.heading{display:flex;align-items:end;justify-content:space-between;gap:1rem;margin-bottom:1.5rem}
.heading h1{font-size:clamp(1.8rem,3vw,2.5rem);letter-spacing:-.045em;margin:0;color:#0b2c3a}
.heading p:last-child{margin:.45rem 0 0;color:#5c7680}
.notice{background:#e8f5f3;border:1px solid #addbd6;border-left:4px solid #148b85;border-radius:8px;padding:.85rem 1rem;margin-bottom:1.3rem;line-height:1.5;color:#174b51}
.panel{background:#fff;border:1px solid #dae6e9;border-radius:12px;box-shadow:0 8px 26px #214b5b0a;overflow:hidden}
.toolbar{display:flex;gap:1rem;justify-content:space-between;align-items:center;padding:1rem 1.25rem;flex-wrap:wrap}
.search-field{width:min(100%,440px);position:relative}
.search-field input{width:100%;border:1px solid #c8d9de;background:#fff;border-radius:8px;padding:.7rem 2.3rem .7rem .85rem;min-height:44px}
.search-field span:last-child{position:absolute;right:1rem;top:.4rem;color:#688892;font-size:1.5rem}
.filters{display:flex;align-items:center;gap:.7rem;flex-wrap:wrap}
.filters label{display:flex;align-items:center;gap:.4rem;font-size:.85rem;color:#4b6a76;font-weight:650}
.filters input,.filters select{border:1px solid #c8d9de;border-radius:8px;padding:.55rem;background:#fff;min-height:42px;color:#163447}
.filters input{width:6rem}
.list-count{padding:0 1.25rem;margin:0 0 .8rem;color:#58737f;font-size:.88rem}
.table-scroll{overflow:auto}
table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap}
th{background:#f4f8f9;color:#5c7883;font-weight:750;font-size:.76rem;letter-spacing:.045em;text-transform:uppercase;padding:.85rem 1.25rem;border-top:1px solid #e1e9ec;border-bottom:1px solid #e1e9ec}
td{padding:1rem 1.25rem;border-bottom:1px solid #ebf0f1;color:#3b5a67;font-size:.92rem}
tbody tr:last-child td{border-bottom:0}
tbody tr:hover{background:#f8fbfc}
td.strong{color:#123845;font-weight:700}
td.status{font-weight:700;color:#06747a}
.empty{padding:3rem;text-align:center;color:#647d87}
dialog{width:min(620px,calc(100vw - 1.5rem));max-height:min(90vh,900px);overflow:auto;border:1px solid #d6e5e8;border-radius:14px;padding:0;color:#163447;box-shadow:0 25px 90px #092c3d73}
dialog::backdrop{background:#092c3db3}
.electric-panel{padding:1.5rem;margin:0 0 1.2rem}.electric-panel h2{margin-top:0}.electric-panel h3{margin-top:1.7rem}.electric-panel .record-fields{margin:1rem 0}.electric-panel .table-scroll{margin:1.2rem 0}
.electric-selector{display:grid;gap:.4rem;font-weight:700;max-width:650px;margin:1rem 0}.electric-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1.3rem 0}.electric-form label{display:grid;gap:.4rem;font-size:.9rem;font-weight:700}.electric-form button{justify-self:start;align-self:end;min-height:44px}.electric-form input,.electric-form select,.electric-selector select{border:1px solid #bfd2d8;border-radius:8px;padding:.7rem;min-height:44px;width:100%;min-width:0;background:#fff;color:#163447}
.electric-confirm{display:flex;align-items:flex-start;gap:.7rem;margin:1.2rem 0;line-height:1.5;font-weight:700}.electric-confirm input{width:20px;height:20px;flex:none;margin-top:.15rem}.electric-total{font-size:1.15rem;font-weight:750;color:#0a5260}.electric-production{border-left-color:#a66d10;background:#fff8e6}#electric-error{margin-bottom:1rem}
@media(max-width:650px){.electric-form{grid-template-columns:1fr}.electric-panel{padding:1rem}}
.editor-form header{padding:1.5rem 1.7rem;border-bottom:1px solid #e0eaec;display:flex;align-items:start;justify-content:space-between}
.editor-form h2{font-size:1.55rem;letter-spacing:-.03em;margin:0}
.editor-form .overline{margin-bottom:.3rem}
.close{border:0;background:#edf4f5;border-radius:7px;width:36px;height:36px;font-size:1.5rem;color:#456673}
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;padding:1.5rem 1.7rem}
.field-grid label{display:grid;gap:.4rem;font-weight:680;font-size:.9rem}
.field-grid label.wide{grid-column:1/-1}
.field-grid input,.field-grid select,.field-grid textarea{width:100%;min-width:0;min-height:44px;border:1px solid #bfd2d8;border-radius:8px;padding:.65rem .75rem;background:#fff;color:#163447}
.field-grid textarea{resize:vertical;min-height:80px}
.form-note{padding:0 1.7rem;color:#5e7881;line-height:1.5;font-size:.9rem;margin:0 0 1.3rem}
.editor-form footer{padding:1rem 1.7rem;border-top:1px solid #e0eaec;display:flex;justify-content:end;gap:.6rem}
.form-error{color:#a41e26;background:#fff0f0;border:1px solid #ffd0d0;border-radius:7px;padding:.65rem .8rem;margin:0;line-height:1.4}
.modal-error{margin:0 1.7rem 1rem}
.toast{position:fixed;right:1.2rem;bottom:1.2rem;background:#103d4b;color:#fff;padding:.9rem 1.2rem;border-radius:9px;box-shadow:0 8px 28px #0e344d45;z-index:10;max-width:min(400px,calc(100vw - 2.4rem))}
.prices-panel{padding:1.5rem;margin:0 0 1.2rem}.prices-panel h2{margin:0 0 .6rem;color:#173e4b;font-size:1.25rem}.prices-panel>p{line-height:1.55}.prices-header{display:flex;justify-content:space-between;align-items:start;gap:1rem;flex-wrap:wrap}.prices-state{font-weight:750;color:#157579;margin:.3rem 0 1rem}.prices-year{display:flex;align-items:end;gap:.7rem}.prices-year label,.prices-filters label,.prices-form label{display:grid;gap:.4rem;font-weight:700;font-size:.9rem}.prices-year input{width:8rem}.prices-year input,.prices-filters input,.prices-filters select,.prices-form input,.prices-form select,.prices-form textarea,.agreement-catalog-pricing>label select{border:1px solid #bfd2d8;border-radius:8px;padding:.7rem;min-height:44px;width:100%;min-width:0;background:#fff;color:#163447}.prices-filters{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;margin:1rem 0}.prices-filters label:first-child{flex:1;min-width:220px}.prices-table{margin-top:.6rem}.prices-table td{vertical-align:top}.prices-table strong,.prices-table small{display:block;white-space:normal;max-width:360px}.prices-table small{font-size:.78rem;color:#657e88;margin-top:.35rem;line-height:1.45}.prices-table .prices-amount{font-weight:750;white-space:nowrap}.prices-table .prices-missing{color:#9a5511}.prices-pagination,.prices-actions{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-top:1rem}.prices-pagination{justify-content:space-between}.prices-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}.prices-form .wide{grid-column:1/-1}.prices-form button{align-self:end;justify-self:start}.prices-confirm{display:flex;align-items:start;gap:.7rem;line-height:1.5;font-weight:700;margin:1rem 0}.prices-confirm input{flex:none;width:20px;height:20px;margin-top:.15rem}.agreement-catalog-pricing{grid-column:1/-1;padding:1rem;border:1px solid #c7dedf;border-radius:9px;background:#f4faf9}.agreement-catalog-pricing h3{margin:0 0 .8rem;font-size:1rem}.agreement-catalog-pricing>label{display:grid;gap:.4rem}.agreement-catalog-pricing>p{line-height:1.5;margin:.8rem 0 0}.agreement-catalog-pricing .prices-form{margin-bottom:.4rem}.prices-editor{border-left:4px solid #148b85}
@media(max-width:650px){.prices-panel{padding:1rem}.prices-form{grid-template-columns:1fr}.prices-form .wide{grid-column:auto}.prices-filters label,.prices-filters button{width:100%}.prices-header{display:block}.prices-year{margin:1rem 0}.prices-table td{padding:.8rem}.agreement-catalog-pricing{padding:.8rem}}
@media(max-width:800px){.workspace{display:block}.sidebar{padding:.8rem 1rem;gap:.5rem}.sidebar .brand{padding:.15rem .35rem .65rem}.side-label,.side-footer{display:none}.sidebar nav{display:flex;overflow-x:auto;gap:.35rem}.sidebar nav button{white-space:nowrap}.topbar{height:58px}.content{padding:1rem}.heading{align-items:start}.heading .button{flex:none}.toolbar{display:block}.search-field{display:block;width:100%}.filters{margin-top:.8rem}}
@media(max-width:510px){.heading{display:block}.heading .button{margin-top:1rem}.field-grid{grid-template-columns:1fr}.field-grid label.wide{grid-column:auto}.editor-form header,.field-grid,.editor-form footer{padding:1rem}.form-note{padding:0 1rem}.topbar{font-size:.82rem}.private-pill{font-size:.68rem}.login-card{padding:1.5rem}}
.customer-link{border:0;background:transparent;padding:0;color:#006f7d;font-weight:750;text-decoration:underline;text-decoration-color:#a5cbd2;text-underline-offset:3px}
.customer-link:hover{color:#004c5c;text-decoration-color:currentColor}
.customer-detail,.record-detail{margin-bottom:1.4rem;scroll-margin-top:1rem}
.detail-header{display:flex;justify-content:space-between;align-items:start;gap:1rem;padding:1.5rem 1.6rem 1.1rem;border-bottom:1px solid #e6eef0}
.detail-header h2{font-size:1.55rem;letter-spacing:-.03em;margin:0}
.detail-header p:last-child{color:#597480;margin:.45rem 0 0}
.detail-header-actions{display:flex;align-items:start;justify-content:flex-end;gap:.7rem;flex-wrap:wrap}
.detail-header .detail-identifier{font-size:.78rem;color:#728c94;overflow-wrap:anywhere;margin:.35rem 0 0}
.payment-badge{display:inline-block;background:#e9f8f2;color:#086c5a;border:1px solid #bce3d3;border-radius:99px;padding:.58rem .75rem;font-size:.8rem;font-weight:750;line-height:1.3}
.payment-badge.has-balance{background:#fff5e9;color:#90540d;border-color:#f3d8ae}
.detail-actions{display:flex;gap:.55rem;flex-wrap:wrap;padding:1.1rem 1.6rem;border-bottom:1px solid #e6eef0}
.detail-grid{display:grid;grid-template-columns:minmax(0,.8fr) repeat(2,minmax(0,1.2fr));gap:1.5rem;padding:1.35rem 1.6rem 1.7rem}
.detail-grid h3{font-size:1.02rem;color:#173e4b;margin:0 0 .85rem}
.detail-item{padding:.8rem .9rem;border:1px solid #dce8eb;border-radius:8px;margin-bottom:.55rem}
.detail-item strong{display:block;color:#183c49}
.detail-item p{font-size:.86rem;line-height:1.4;color:#54717c;margin:.33rem 0 0}
.detail-item .detail-link{display:inline-block;margin:.65rem .65rem 0 0;color:#006f7d;font-weight:750;font-size:.86rem}
.detail-item .table-action{margin:.7rem .65rem 0 0;font-size:.86rem}
.detail-notes{border-top:1px solid #e6eef0;padding:1rem 1.6rem 1.4rem;white-space:pre-wrap;overflow-wrap:anywhere}
.detail-notes h3{font-size:1rem;margin:0 0 .5rem}
.detail-notes p{margin:0;color:#54717c}
.record-content{padding:1.2rem 1.6rem 1.5rem}
.record-links{display:flex;flex-wrap:wrap;gap:.7rem 1.4rem;margin-bottom:1.2rem}
.record-links a{color:#006f7d;font-weight:750}
.record-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:0}
.record-fields div{border:1px solid #e0eaec;background:#f8fbfc;border-radius:8px;padding:.8rem .9rem;min-width:0}
.record-fields dt{font-size:.8rem;color:#67818a;font-weight:650;margin-bottom:.3rem}
.record-fields dd{font-weight:750;color:#173e4b;margin:0;overflow-wrap:anywhere}
.record-actions{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.2rem}
.record-actions:empty{display:none}
.record-actions a.button{text-decoration:none;display:inline-flex;align-items:center}
.selected-record,.selected-record:hover{background:#e7f5f3}
.muted{color:#718b94;font-size:.9rem}
@media(max-width:1000px){.detail-grid{grid-template-columns:1fr}}
@media(max-width:650px){.detail-header{display:block}.detail-header-actions{justify-content:start;margin-top:1rem}.record-fields{grid-template-columns:1fr}}
.tripletex-panel{display:flex;justify-content:space-between;align-items:center;gap:1.4rem;padding:1.2rem 1.5rem;margin-bottom:1.25rem}
.tripletex-panel h2{margin:0 0 .4rem;font-size:1.2rem}
.tripletex-panel p:not(.overline){margin:.3rem 0;color:#2f6671}
.tripletex-panel small{color:#5a7781;line-height:1.5}
.table-action{border:0;background:transparent;color:#006f7d;font-weight:750;text-decoration:underline;text-underline-offset:3px;margin-left:.4rem;padding:.2rem}
.table-action:hover{color:#004c5c}
.agreement-dialog-body{padding:1.2rem 1.7rem 1.7rem}
.agreement-dialog-body>p:first-child{font-weight:700;color:#163e4a}
.agreement-dialog-body .form-note{padding:0;margin:.65rem 0 1rem}
.agreement-dialog-body h3{margin:1.6rem 0 .45rem;font-size:1.1rem}
.agreement-dialog-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.55rem;margin-top:1rem}
.agreement-dialog-body a.button{text-decoration:none;display:inline-flex;align-items:center}
.test-dialog-content header{display:flex;align-items:start;justify-content:space-between;padding:1.5rem 1.7rem;border-bottom:1px solid #e0eaec}
.test-dialog-content h2{margin:0;font-size:1.55rem}
.test-summary{display:grid;grid-template-columns:12rem minmax(0,1fr);gap:.55rem 1rem;padding:1.3rem 1.7rem;margin:0;line-height:1.4}
.test-summary dt{color:#5a7781}.test-summary dd{margin:0;font-weight:700;overflow-wrap:anywhere}
#test-link-form{padding:1.2rem 1.7rem;border-top:1px solid #e0eaec}
#test-link-form label{display:grid;gap:.4rem;font-weight:700}
#test-link-form input{width:100%;min-height:44px;border:1px solid #bfd2d8;border-radius:8px;padding:.65rem}
#test-link-form .form-note{padding:0;margin:1rem 0}
.test-confirm{display:flex!important;align-items:start;flex-direction:row;line-height:1.5}
.test-confirm input{width:auto!important;min-width:20px!important;min-height:20px!important;margin:.05rem .55rem 0 0}
#test-invoice-form footer{display:flex;justify-content:end;gap:.6rem;padding:1rem 1.7rem;border-top:1px solid #e0eaec}
@media(max-width:650px){.tripletex-panel{display:block}.tripletex-panel button{margin-top:1rem}.test-summary{grid-template-columns:1fr}.test-summary dt{margin-top:.4rem}}
.storage-tabs{display:flex;gap:.4rem;overflow-x:auto;margin-bottom:1.2rem;border-bottom:1px solid #cbdfe3;padding-bottom:.5rem}
.storage-tabs a{color:#385d69;text-decoration:none;font-weight:750;padding:.7rem .95rem;border-radius:8px;white-space:nowrap}
.storage-tabs a.active,.storage-tabs a:hover{background:#dcefee;color:#075f67}
.storage-section{margin-bottom:1.4rem;scroll-margin-top:1rem}
.storage-head{display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:1.25rem 1.5rem;flex-wrap:wrap}
.storage-head h2{margin:0;color:#173e4b;font-size:1.25rem}
.storage-head p:not(.overline){margin:.4rem 0 0;color:#5c7883}
.storage-head .overline{margin:0 0 .25rem}
.storage-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.7rem;padding:0 1.5rem 1.2rem}
.storage-summary div{background:#eff7f7;border:1px solid #d4e8e9;padding:.85rem 1rem;border-radius:9px;display:grid;gap:.3rem}
.storage-summary strong{font-size:1.5rem;color:#0c5964}
.storage-summary span{font-size:.83rem;color:#52717b}
.storage-filters{display:flex;align-items:end;gap:.7rem;flex-wrap:wrap;padding:0 1.5rem 1rem}
.storage-filters label,.storage-map-controls label{display:grid;gap:.3rem;font-size:.82rem;color:#496b76;font-weight:700}
.storage-filters input,.storage-filters select,.storage-map-controls input,.storage-map-controls select{border:1px solid #c8d9de;border-radius:8px;padding:.6rem;min-height:42px;background:#fff;color:#163447}
.storage-filters label:first-child{flex:1;min-width:220px}
.storage-minor{display:block;color:#728a94;font-size:.8rem;margin-top:.32rem;white-space:normal}
.storage-map-controls{display:flex;gap:.8rem;align-items:end;flex-wrap:wrap;margin-bottom:1rem}
.storage-map-controls label:last-child{flex:1;min-width:230px}
.storage-layout{display:grid;grid-template-columns:minmax(210px,275px) minmax(0,1fr);gap:1rem;align-items:start}
.storage-field-list{display:grid;gap:.3rem;padding:.55rem;max-height:75vh;overflow:auto}
.storage-field-option{display:grid;gap:.3rem;text-align:left;border:1px solid transparent;border-radius:8px;background:#fff;padding:.75rem;color:#294d59}
.storage-field-option:hover,.storage-field-option.selected{background:#e8f5f3;border-color:#b9dddd}
.storage-field-option strong{font-size:.89rem}
.storage-field-option small{color:#67848d}
.storage-map-main{min-width:0}
.storage-map-viewport{margin:0 1.5rem;background:#e8f1f2;max-height:65vh;overflow:auto;border:1px solid #c5d9de;border-radius:8px}
.storage-map-canvas{position:relative;width:100%;min-width:520px;background:#edf3f5}
.storage-map-canvas img,.storage-schematic{position:absolute;inset:0;width:100%;height:100%}
.storage-map-canvas img{object-fit:fill;user-select:none}
.storage-schematic{display:grid;place-items:center;text-align:center;background:repeating-linear-gradient(0deg,#d9e9ed 0 1px,transparent 1px 26px),repeating-linear-gradient(90deg,#d9e9ed 0 1px,#f2f8fa 1px 26px);color:#38606d;font-weight:700}
.storage-map-canvas svg{display:block;position:relative;width:100%;height:auto;min-width:520px;cursor:crosshair}
.storage-boat-shape{cursor:pointer;fill:#07798a;stroke:#fff;stroke-width:.15;filter:drop-shadow(0 1px 2px #17405280)}
.storage-boat-shape:hover{fill:#084f5b}
.storage-boat-shape:focus-visible{outline:none;fill:#003e4b;stroke:#fff;stroke-width:.6}
.storage-boat-preview{fill:#6cacc1;fill-opacity:.65;stroke:#fff;stroke-width:.25;stroke-dasharray:.5 .4;pointer-events:none}
.storage-map-note{margin:.85rem 1.5rem 1.2rem;color:#617b85;font-size:.83rem;line-height:1.5}
.storage-place-controls{background:#e7f5f2;border-top:1px solid #c8e5e1;border-bottom:1px solid #c8e5e1;padding:.9rem 1.5rem;margin-bottom:1rem}
.storage-place-controls p{margin:0 0 .6rem;font-size:.9rem}
.storage-place-controls>div{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap}
.storage-place-controls span{font-weight:700;font-variant-numeric:tabular-nums}
.storage-assigned{border-top:1px solid #dce7e9;padding:1.2rem 1.5rem}
.storage-assigned h3{font-size:1.05rem;margin:0 0 .6rem}
.storage-assigned-row{display:flex;justify-content:space-between;gap:.7rem;align-items:center;border-bottom:1px solid #e4ecee;padding:.75rem 0}
.storage-assigned-row:last-child{border:0}
.storage-assigned-row a{font-weight:700;color:#087081}
.storage-assigned-row small{display:block;color:#607d87;margin-top:.3rem}
.storage-assigned-row>div:last-child{display:flex;gap:.4rem;flex-wrap:wrap}
.storage-assigned-row .button{padding:.45rem .6rem;min-height:38px;font-size:.8rem}
#storage-editor{width:min(760px,calc(100vw - 1.5rem))}
.agreement-conditions,.agreement-first-year{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.field-grid>.agreement-conditions,.field-grid>#invoice-agreement-conditions{grid-column:1/-1}
.agreement-conditions{border-top:1px solid #d5e4e7;padding-top:1rem}.agreement-conditions .wide,.agreement-first-year .wide{grid-column:1/-1}.agreement-conditions .muted{margin:0;line-height:1.5;align-self:center}
.agreement-conditions .agreement-conditions-toggle{display:flex;align-items:center;gap:.65rem}.agreement-conditions-toggle input{width:20px;min-height:20px;height:20px;flex:none}.agreement-first-year{background:#f0f8f7;border:1px solid #cfdfde;border-radius:8px;padding:1rem}
@media(max-width:510px){.agreement-conditions,.agreement-first-year{grid-template-columns:1fr}}
.storage-new-boat{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;border:1px solid #cfe4e4;border-radius:8px;padding:.8rem;background:#f4fafa}
.storage-new-boat label{display:grid;gap:.3rem;font-size:.85rem;font-weight:700}
.storage-new-boat input{width:100%;border:1px solid #bfd2d8;border-radius:8px;padding:.6rem;min-height:42px}
.storage-detail-fields{margin-top:1rem}
.storage-detail-notes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin:1.3rem 0}
.storage-detail-notes>div,.storage-comment{border:1px solid #dce8eb;border-radius:8px;padding:.8rem;overflow-wrap:anywhere}
.storage-detail-notes h3,#storage-detail-content>h3{margin:.1rem 0 .5rem;font-size:1rem}
.storage-detail-notes p{white-space:pre-wrap;margin:0;color:#4e6873}
.storage-comment{margin:.5rem 0}.storage-comment time{font-size:.75rem;color:#718a94;margin-left:.5rem}.storage-comment p{white-space:pre-wrap;margin:.4rem 0 0}
#storage-comment-form{display:grid;gap:.6rem;margin-top:.9rem;max-width:630px}
#storage-comment-form textarea{border:1px solid #bfd2d8;border-radius:8px;padding:.6rem;resize:vertical}
#storage-comment-form .button{justify-self:start}
@media(max-width:1000px){.storage-layout{grid-template-columns:1fr}.storage-field-list{display:flex;overflow:auto;max-height:none}.storage-field-option{min-width:180px}}
@media(max-width:650px){.storage-summary{grid-template-columns:1fr}.storage-filters label,.storage-map-controls label{width:100%}.storage-head,.storage-filters,.storage-summary,.storage-assigned{padding-left:1rem;padding-right:1rem}.storage-map-viewport{margin:0 1rem}.storage-map-note{margin:1rem}.storage-detail-notes,.storage-new-boat{grid-template-columns:1fr}.storage-assigned-row{display:block}.storage-assigned-row>div:last-child{margin-top:.6rem}}

#customer-portal-access .detail-actions{margin:.75rem 0}#customer-portal-access label{display:block;font-weight:700;margin:1rem 0 .5rem;font-size:.85rem}#portal-activation-link{display:block;width:100%;padding:.8rem;border:1px solid #b8cbd1;border-radius:8px;margin:0 0 .7rem}#customer-portal-access .muted{font-size:.82rem;line-height:1.6}

.customer-management-controls{display:flex;align-items:center;flex-wrap:wrap;gap:.65rem;margin:1.2rem 0}.customer-management-controls .danger,.customer-management-form .danger{border-color:#d8a7a7;color:#8c2929;background:#fff7f7}
.customer-management-filter{display:flex;align-items:center;flex-wrap:wrap;gap:.8rem;margin:0 0 1rem}.customer-management-filter label{display:flex;align-items:center;gap:.6rem;font-weight:700}.customer-management-filter select{min-height:42px;border:1px solid #bfd2d8;border-radius:8px;padding:.55rem .8rem;background:#fff;color:#163447}
.customer-management-form .wide{grid-column:1/-1}.customer-management-form p{margin:.2rem 0;line-height:1.5}.customer-management-name{font-weight:750}.customer-management-confirm{display:flex;align-items:flex-start;gap:.7rem}.customer-management-confirm input{width:20px;height:20px;flex:none;margin:.15rem 0 0}

.customer-create-recovery{display:flex;flex-wrap:wrap;gap:.6rem;padding:.5rem 1.7rem}#customer-form .wide{grid-column:1/-1}#customer-form .muted{line-height:1.5;margin:.2rem 0}#customer-create-sync-feedback{line-height:1.5}#customer-tripletex-sync[aria-busy="true"]{border-left:3px solid #36a9bd;padding-left:1rem}
#customer-tripletex-update{border-top:1px solid #dce7e9;margin-top:1rem;padding-top:1rem}#customer-tripletex-update h4{margin:0 0 .6rem;font-size:1rem}#customer-tripletex-update p{line-height:1.5}#customer-tripletex-update-time{font-size:.82rem}#customer-tripletex-update[aria-busy="true"]{border-left:3px solid #36a9bd;padding-left:1rem}

/* Havnepunkt identity */
.brand-mark{background:transparent;border:0;border-radius:0;padding:0;object-fit:contain}.brand-name{font-size:1.05rem;letter-spacing:-.035em}.brand-logo-frame{display:block;width:min(100%,280px);aspect-ratio:4.5;overflow:hidden;margin:0 0 .3rem}.brand-logo{display:block;width:100%;height:100%;object-fit:cover;object-position:center 47%}.login-card .brand-logo-frame{justify-self:start}.sidebar .brand small{letter-spacing:.11em;font-size:.62rem}

/* Focused price workspace: one selected product, existing financial controls. */
.prices-overview .prices-intro{margin:.35rem 0 .9rem;color:#526d77;max-width:58rem}
.prices-eyebrow{font-size:.72rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:#56808b;margin:0 0 .4rem}
.prices-overview h2{font-size:1.5rem;margin-bottom:.25rem}.prices-overview .prices-state{margin:.25rem 0 .3rem}
.prices-overview-footer{display:flex;justify-content:space-between;align-items:center;gap:.8rem;flex-wrap:wrap;border-top:1px solid #e2ebee;padding-top:.9rem;color:#657e88;font-size:.88rem}
.prices-pick-fields{display:grid;grid-template-columns:minmax(160px,.7fr) minmax(240px,1.7fr) auto;gap:1rem;align-items:end}
.prices-pick-fields label{display:grid;gap:.45rem;font-size:.9rem;font-weight:750;color:#244957}
.prices-pick-fields select{width:100%;min-width:0;min-height:46px;padding:.75rem;border:1px solid #bdd0d7;border-radius:8px;background:#fff;color:#163447;font:inherit}
.prices-product-choice select{border-color:#65a5ab;background:#f6fbfb;font-weight:700}
.prices-selected-header{display:flex;justify-content:space-between;gap:1rem;align-items:center;margin:0 0 1rem}
.prices-selected-header h2{font-size:1.4rem;margin:0}.prices-year-tag{padding:.35rem .75rem;border-radius:6px;background:#eaf4f4;color:#0a737b;font-size:.85rem;font-weight:750}
.prices-focused-table{margin:0;width:100%}.prices-focused-table th{font-size:.75rem}.prices-focused-table td{padding:1.05rem .8rem}
.prices-focused-table td:first-child{width:44%}.prices-focused-table td:nth-child(2){font-size:1.12rem;color:#123e4d}.prices-focused-table td:last-child{text-align:right}
.prices-oneoff{margin-top:1.4rem;padding-top:1.25rem;border-top:1px solid #dbe7eb}.prices-oneoff h3{font-size:1rem;margin:0 0 .3rem}
.prices-oneoff>p{margin:.3rem 0 .8rem}.prices-reference-summary{padding:.9rem 1rem;margin-top:1.2rem;background:#f6f8fa;border:1px solid #e3ebee;border-radius:8px}
.prices-reference-summary p{display:flex;align-items:center;gap:.65rem 1rem;flex-wrap:wrap;margin:0;font-size:.85rem;color:#5b727c}
.prices-reference-summary strong{font-size:.95rem;color:#365865}.prices-reference-summary small{font-size:.78rem}.prices-reference-summary button{margin-left:auto}
.prices-source{margin-top:1rem;padding-top:.8rem;border-top:1px solid #e3ebee}.prices-source summary,.prices-terms summary{cursor:pointer;font-size:.9rem;font-weight:700;color:#3c6675;padding:.35rem 0}
.prices-source .prices-table{margin-top:1rem}.prices-source .prices-table td{font-size:.84rem}.prices-source>p{margin-top:.7rem}
.prices-approval{background:#f8fbfc}.prices-approval>p{max-width:66rem}.prices-approval .prices-confirm{font-size:.9rem}
@media(max-width:800px){.prices-pick-fields{grid-template-columns:1fr 1.6fr}.prices-pick-fields>button{grid-column:1/-1;justify-self:start}.prices-focused-table td:first-child{width:auto}}
@media(max-width:550px){.prices-pick-fields{grid-template-columns:1fr}.prices-selected-header h2{font-size:1.2rem}.prices-focused-table{min-width:480px}.prices-reference-summary p{display:grid;gap:.35rem}.prices-reference-summary button{margin-left:0;justify-self:start}.prices-year{flex-wrap:wrap}.prices-overview .prices-intro{font-size:.9rem}}
/* Administration inbox and customer-owned document picker. */
.customer-chat-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:1.25rem;align-items:start}.customer-chat-inbox{min-width:0}.customer-chat-inbox-heading{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:1.2rem 1.1rem .9rem}.customer-chat-inbox-heading h2{margin:0;font-size:1.05rem}.customer-chat-total{font-size:.65rem;font-weight:700;color:#0a7c84;background:#e3f3f0;border-radius:20px;padding:.3rem .55rem;white-space:nowrap}.customer-chat-tabs{display:flex;border-bottom:1px solid #e1e9ec;padding:0 1.1rem;gap:1.15rem}.customer-chat-tabs button{border:0;background:none;color:#7c929a;padding:.6rem 0 .7rem;font-size:.77rem;font-weight:700;min-height:42px;cursor:pointer;border-bottom:2px solid transparent}.customer-chat-tabs button[aria-pressed=true]{color:#087b85;border-bottom-color:#087b85}.customer-chat-search{padding:1rem 1rem .6rem}.customer-chat-search label{display:block;font-size:.7rem;font-weight:700;color:#567580;margin-bottom:.4rem}.customer-chat-search>div{display:flex;gap:.35rem}.customer-chat-search input{min-width:0;width:100%;border:1px solid #d0dfe2;border-radius:6px;padding:.6rem;font-size:.77rem}.customer-chat-search button{font-size:.72rem;padding:.45rem .6rem;min-height:39px}.customer-chat-unread{display:flex;gap:.45rem;align-items:center;padding:0 1rem;font-size:.72rem;color:#6a838e}.customer-chat-unread input{accent-color:#087b85;width:14px;height:14px}.customer-chat-list-status{font-size:.67rem;line-height:1.6;color:#8a9ca3;padding:0 1rem;min-height:1rem}.customer-chat-list{max-height:520px;overflow:auto;border-top:1px solid #edf1f2}.customer-chat-person{display:block;padding:.95rem 1.1rem;text-decoration:none;color:#294e5c;border-bottom:1px solid #edf1f2;border-left:3px solid transparent}.customer-chat-person:hover{background:#f4f9f9}.customer-chat-person.selected{background:#edf7f5;border-left-color:#0e878b}.customer-chat-person-heading{display:flex;align-items:center;gap:.5rem;justify-content:space-between}.customer-chat-person-heading strong{font-size:.82rem;font-weight:700;line-height:1.5}.customer-chat-person-number{display:block;font-size:.64rem;color:#8a9ba1;margin:.2rem 0}.customer-chat-snippet{display:block;font-size:.72rem;color:#6f8992;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-chat-unread-count{background:#0c858a;border-radius:12px;font-size:.64rem;min-width:21px;padding:.15rem .35rem;text-align:center;color:#fff}.customer-chat-list-empty{padding:1.5rem 1.1rem;color:#738b94;line-height:1.6}.customer-chat-list-empty strong{font-size:.8rem}.customer-chat-list-empty p{font-size:.75rem}.customer-chat-pagination{display:flex;justify-content:space-between;padding:.7rem 1rem;gap:.4rem}.customer-chat-pagination .button{font-size:.67rem;padding:.4rem .7rem;min-height:34px}.customer-chat-main{min-width:0}.customer-chat-context{display:flex;justify-content:flex-end;gap:.8rem;margin:0 0 .65rem;min-height:25px}.customer-chat-context a{color:#56828d;font-size:.73rem;text-underline-offset:3px}.chat-mobile-back{display:none}.customer-chat-welcome{background:#fff;border:1px dashed #c9dee1;border-radius:13px;min-height:470px;display:grid;place-items:center;text-align:center;line-height:1.8;padding:3rem;color:#6e8c96;font-size:.9rem}
.chat-document-picker{width:min(620px,calc(100% - 2rem));border:1px solid #d5e4e8;border-radius:14px;padding:1.5rem;color:#355b69;box-shadow:0 20px 80px #153f4b30}.chat-document-picker::backdrop{background:#143d4c66;backdrop-filter:blur(2px)}.chat-document-picker>header{display:flex;align-items:start;justify-content:space-between;gap:1rem}.chat-document-picker h2{margin:0;font-size:1.2rem}.chat-eyebrow{font-size:.6rem;letter-spacing:.13em;font-weight:700;color:#08818b;margin:0 0 .5rem}.chat-document-picker>p{font-size:.8rem;line-height:1.65;color:#7b919a}.chat-document-search{margin:1.1rem 0}.chat-document-search label{display:block;font-size:.74rem;font-weight:700;margin-bottom:.45rem}.chat-document-search>div{display:flex;gap:.5rem}.chat-document-search input{width:100%;min-width:0;padding:.7rem;border-radius:7px;border:1px solid #cedee2;font:inherit;font-size:.8rem}.chat-document-status{font-size:.72rem}.chat-document-options{max-height:300px;overflow:auto;border-top:1px solid #e3ecee}.chat-document-option{padding:.9rem .6rem;border-bottom:1px solid #e7eef0;display:flex;gap:.8rem;align-items:center;cursor:pointer}.chat-document-option:hover{background:#f4f9f8}.chat-document-option input{accent-color:#087d86;width:17px;height:17px}.chat-document-option strong{display:block;font-size:.8rem;line-height:1.5}.chat-document-option small{display:block;font-size:.68rem;color:#7b929b;line-height:1.5;margin-top:.2rem}.chat-document-pages{display:flex;justify-content:space-between;gap:.5rem;margin:.7rem 0 1.2rem}.chat-document-pages button{font-size:.7rem;min-height:34px;padding:.4rem .65rem}.chat-document-empty{padding:1rem;font-size:.8rem;line-height:1.7;color:#7e929a}.chat-document-picker footer{display:flex;justify-content:space-between;gap:1rem;align-items:center;border-top:1px solid #e4ebed;padding-top:1rem;font-size:.76rem}.chat-document-picker footer button{font-size:.8rem}
@media(max-width:1150px){.customer-chat-layout{grid-template-columns:245px minmax(0,1fr);gap:.8rem}.customer-chat-person{padding:.85rem .8rem}.customer-chat-inbox-heading{padding:1rem .8rem}.customer-chat-total{font-size:.58rem}.customer-chat-layout .chat-message{max-width:95%}.customer-chat-layout .chat-composer-actions{flex-wrap:wrap;justify-content:flex-end}}
@media(max-width:700px){.customer-chat-layout{display:block}.customer-chat-inbox{margin-bottom:1rem}.customer-chat-list{max-height:390px}.customer-chat-has-selection .customer-chat-inbox{display:none}.customer-chat-context{justify-content:space-between;align-items:center}.chat-mobile-back{display:block;border:0;background:none;color:#0b7e87;font-size:.77rem;min-height:36px;order:-1;padding:0}.customer-chat-welcome{display:none}.chat-document-picker{padding:1.1rem}.chat-document-picker footer{flex-wrap:wrap}.chat-document-picker footer button{width:100%}}
/* Customer conversations: shared visual language in administration and Min side. */
.chat-thread{background:#fff;border:1px solid #d9e6e8;border-radius:13px;overflow:hidden;min-width:0;color:#254c58}
.chat-thread-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.3rem 1.45rem;border-bottom:1px solid #e3ecee;background:#fff}
.chat-thread-heading h2{margin:0;font-size:1.2rem;letter-spacing:-.025em;line-height:1.3;color:#153e4d}
.chat-thread-heading p{margin:.35rem 0 0;font-size:.8rem;color:#6b818b;line-height:1.5}
.chat-refresh{font-size:.78rem;padding:.5rem .8rem;min-height:39px}
.chat-access,.chat-preview{padding:.8rem 1.3rem;margin:0;background:#fff4dc;color:#6d5528;line-height:1.6;font-size:.8rem;border-bottom:1px solid #eee2c6}
.chat-preview{background:#eaf5f5;color:#285f68;border-top:1px solid #d4e6e7;border-bottom:0}
.chat-connection{margin:.7rem 1.4rem 0;color:#78909a;font-size:.7rem;line-height:1.5}
.chat-notice{padding:.75rem 1rem;margin:.8rem 1.3rem 0;border-radius:7px;background:#f9eeee;color:#8d3636;font-size:.82rem;line-height:1.5}
.chat-log{height:clamp(270px,43vh,530px);overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:1.4rem;background:linear-gradient(180deg,#fafcfc,#f3f8f8);display:flex;flex-direction:column;gap:1.15rem}
.chat-message{flex:none;max-width:min(87%,600px);padding:.85rem 1rem;background:#fff;border:1px solid #e0e9eb;border-radius:0 12px 12px 12px;box-shadow:0 2px 5px #183a4b04;align-self:flex-start;overflow-wrap:anywhere}
.chat-message.outgoing{align-self:flex-end;border-color:#c9e4e1;background:#e8f5f2;border-radius:12px 0 12px 12px}
.chat-message-meta{display:flex;align-items:baseline;justify-content:space-between;gap:1rem;font-size:.67rem;color:#738a92;line-height:1.5}
.chat-message-meta strong{color:#456471;font-size:.7rem}.chat-message-meta time{white-space:nowrap}
.chat-message-body{font-size:.88rem;line-height:1.65;white-space:pre-wrap;margin:.5rem 0 .1rem}
.chat-read-status{display:block;font-size:.65rem;color:#698e88;margin:.55rem 0 0;text-align:right;line-height:1.5}
.chat-document{display:grid;grid-template-columns:27px minmax(0,1fr);column-gap:.55rem;row-gap:.2rem;align-items:center;padding:.75rem .85rem;border:1px solid #cee1e2;border-radius:8px;background:#fff;margin:.65rem 0 0;text-decoration:none;color:#1b5f6b;min-width:0}
.chat-document:hover{border-color:#258c91;background:#f7fcfb}.chat-document-symbol{grid-row:1/3;font-size:1.4rem;color:#258c91}.chat-document strong{font-size:.8rem;font-weight:650}.chat-document small{font-size:.67rem;color:#7c9097;line-height:1.5}
.chat-empty{margin:auto;text-align:center;padding:1.5rem;max-width:340px;color:#69858e}.chat-empty-symbol{display:block;font-size:2.8rem;color:#93bcbf;margin-bottom:.5rem}.chat-empty strong{color:#446a75;font-size:.95rem}.chat-empty p{font-size:.83rem;line-height:1.7}
.chat-older{align-self:center;display:block;margin:.6rem auto 0;background:none;border:0;color:#14727e;font-size:.75rem;padding:.55rem 1rem;min-height:40px;cursor:pointer}
.chat-new-messages{display:block;border:0;background:#d8eeeb;color:#1d686e;padding:.6rem 1.3rem;border-radius:20px;margin:-2.8rem auto .6rem;position:relative;font-weight:650;cursor:pointer}
.chat-composer{margin:0;padding:1.2rem 1.4rem;border-top:1px solid #dfe9eb;background:#fff}.chat-composer>label{font-size:.78rem;color:#365866;font-weight:650;display:block;margin:0 0 .5rem}
.chat-input{display:block;width:100%;resize:vertical;min-height:83px;max-height:240px;border:1px solid #cddde0;border-radius:8px;padding:.8rem;font:inherit;font-size:.88rem;line-height:1.6;background:#fff;color:#193f4c}.chat-input:focus{outline:2px solid #0a85884d;outline-offset:1px;border-color:#087c83}.chat-input:disabled{background:#f6f8f8;color:#6c848d}
.chat-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:.7rem;margin-top:.65rem}.chat-character-count{font-size:.66rem;color:#86999f;white-space:nowrap}.chat-composer-actions{display:flex;gap:.5rem;align-items:center}.chat-composer-actions .button{font-size:.77rem;min-height:40px;padding:.55rem .9rem}.chat-composer-hint{font-size:.67rem;color:#7d9198;line-height:1.6;margin:.7rem 0 0}.chat-send-error{color:#9a3d35;line-height:1.6;font-size:.8rem;margin:.8rem 0 0}
.chat-selected-documents{display:flex;gap:.5rem;flex-wrap:wrap}.chat-selected-document{display:grid;grid-template-columns:minmax(0,1fr) 25px;gap:.2rem .4rem;position:relative;margin-top:.65rem;padding:.6rem .65rem;border:1px solid #d4e5e7;border-radius:7px;max-width:100%;background:#f7fafb}.chat-selected-document span{font-size:.75rem;overflow-wrap:anywhere}.chat-selected-document small{grid-column:1;font-size:.63rem;color:#7c9299}.chat-remove-document{grid-column:2;grid-row:1/3;border:0;background:transparent;font-size:1.15rem;color:#4d7d86;cursor:pointer}
@media(max-width:620px){.chat-thread-heading{padding:1rem;gap:.6rem}.chat-thread-heading h2{font-size:1.07rem}.chat-log{padding:1rem;height:clamp(270px,46vh,480px)}.chat-message{max-width:94%;padding:.75rem .85rem}.chat-message-meta{gap:.6rem;font-size:.6rem}.chat-message-meta strong{font-size:.65rem}.chat-composer{padding:1rem}.chat-composer-footer{align-items:flex-end}.chat-composer-actions{flex-wrap:wrap;justify-content:flex-end}.chat-composer-actions .button{font-size:.72rem;padding:.55rem .65rem}.chat-connection{margin-left:1rem}.chat-access{padding:.8rem 1rem}}

