:root{--ink:#0E3755;--blue:#286599;--sky:#2C95DA;--taupe:#C2B2A3;--muted:#657789;--line:#dfe6eb;--paper:#f4f7f9;--white:#fff;--mint:#dceffa;--green:#16715a;--sand:#eadfd5;--lilac:#dbe7f1;--alert:#b8453c;--warning:#9a631d;--navy:#286599;--radius:18px;--shadow:0 12px 35px rgba(14,55,85,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px}.shell{display:grid;grid-template-columns:240px minmax(0,1fr);min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;padding:30px 22px;background:#102137;color:#fff;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:800;letter-spacing:-.02em;margin:0 8px 40px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:var(--mint);color:#102137}.sidebar nav{display:grid;gap:6px}.nav-item{display:flex;justify-content:space-between;align-items:center;padding:13px 14px;border-radius:12px;color:#aeb9c7;text-decoration:none;font-weight:650}.nav-item b{font-size:11px;min-width:22px;height:22px;display:grid;place-items:center;background:rgba(255,255,255,.08);border-radius:7px}.nav-item:hover,.nav-item.is-active{background:#fff;color:#12243a}.nav-item.is-active b{background:var(--mint);color:#173d34}.badge-dot{color:#fff!important;background:#b8453c!important}.sidebar-foot{margin-top:auto;padding:16px 14px;border-top:1px solid rgba(255,255,255,.12);display:grid;gap:5px}.sidebar-foot small{color:#8291a3}.eyebrow{margin:0 0 7px;text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:800;color:#7f8a95}.sidebar .eyebrow{color:#7990aa}main{padding:34px clamp(24px,4vw,58px) 60px;max-width:1640px;width:100%;margin:0 auto}.topbar{display:flex;justify-content:space-between;align-items:center;gap:30px;margin-bottom:28px}.topbar h1{font-size:clamp(27px,3vw,40px);line-height:1.05;margin:0;letter-spacing:-.04em}.top-actions{display:flex;gap:10px}.button{border:0;border-radius:11px;padding:12px 16px;font:inherit;font-weight:750;cursor:pointer}.button-primary{background:var(--mint);color:#124333}.button-ghost{background:#fff;color:var(--ink);border:1px solid var(--line)}.button-dark{background:var(--ink);color:#fff;width:100%;margin-top:12px}.notice{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:15px 18px;margin-bottom:18px;border:1px solid #e9c9c5;border-radius:14px;background:#fff9f8}.notice-icon{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#f0d4d0;color:var(--alert);font-weight:900}.notice p{margin:3px 0 0;color:var(--muted);font-size:13px}.notice a{color:var(--alert);font-weight:750;text-decoration:none}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.kpi-card{min-height:162px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);position:relative;overflow:hidden}.kpi-highlight{background:var(--ink);color:#fff;border-color:var(--ink)}.kpi-label{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px;font-weight:700}.kpi-highlight .kpi-label,.kpi-highlight small{color:#aeb9c7}.kpi-card>strong{display:block;font-size:29px;letter-spacing:-.04em;margin:22px 0 3px}.kpi-card small{color:var(--muted)}.trend{font-size:11px}.positive{color:#57c6a1}.meter,.split{position:absolute;left:20px;right:20px;bottom:18px;height:6px;background:#edf0f1;border-radius:20px;overflow:hidden}.meter span{display:block;height:100%;background:var(--navy);border-radius:20px}.meter.profit span{background:var(--mint)}.split{display:flex}.split span{display:block;background:var(--navy)}.split i{display:block;background:var(--mint)}.spark{position:absolute;right:18px;bottom:17px;height:37px;display:flex;align-items:end;gap:4px}.spark i{display:block;width:5px;border-radius:4px;background:#74cdb0}.content-grid,.bottom-grid{display:grid;grid-template-columns:1.25fr .75fr;gap:15px;margin-top:15px}.panel{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.panel h2{font-size:18px;margin:0;letter-spacing:-.025em}.panel select,.icon-button{border:1px solid var(--line);background:#fff;border-radius:9px;padding:8px 10px;color:var(--ink)}.forecast{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:28px}.forecast-copy strong{display:block;font-size:32px;margin:6px 0}.forecast-copy span,.forecast-copy small{display:block;color:var(--muted)}.donut{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--mint) 0 48.3%,#e9eceb 48.3% 100%);position:relative}.donut:after{content:"";position:absolute;inset:16px;background:#fff;border-radius:50%}.donut div{z-index:1;text-align:center}.donut strong,.donut span{display:block}.donut span{font-size:11px;color:var(--muted)}.forecast dl{margin:0;display:grid;gap:12px}.forecast dl div{display:flex;justify-content:space-between;gap:28px}.forecast dt{color:var(--muted)}.forecast dd{font-weight:750;margin:0}.forecast-note{margin:22px -22px -22px;padding:14px 22px;border-top:1px solid var(--line);color:var(--muted);font-size:12px}.resource-list{display:grid;gap:8px}.resource-list>div{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.resource-list>div:last-child{border:0}.resource-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;font-weight:850}.resource-icon.navy{background:#dfe8f2;color:var(--navy)}.resource-icon.mint{background:var(--mint);color:#14513e}.resource-icon.sand{background:var(--sand);color:#705228}.resource-icon.lilac{background:var(--lilac);color:#514e7d}.resource-list p{display:flex;align-items:baseline;gap:8px;margin:0}.resource-list p strong{font-size:22px}.resource-list small,.resource-list em{color:var(--muted);font-size:11px;font-style:normal}.table-panel{margin-top:15px;padding-bottom:0}.filters{display:flex;gap:6px;flex-wrap:wrap}.filter{border:1px solid var(--line);background:#fff;border-radius:100px;padding:7px 11px;color:var(--muted);font-size:11px;font-weight:750}.filter.is-active{background:var(--ink);color:#fff;border-color:var(--ink)}.table-wrap{overflow:auto;margin:0 -22px}table{border-collapse:collapse;width:100%;min-width:920px}th,td{text-align:left;padding:13px 18px;border-bottom:1px solid var(--line)}th{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);background:#f9faf8}td{font-size:13px}td strong,td small{display:block}td small{color:var(--muted);margin-top:3px}.pill,.status{display:inline-block;padding:5px 8px;border-radius:7px;font-size:10px;font-weight:750}.pill{background:#edf1f5;color:#38506b}.status.ok{background:#e0f2eb;color:#1f6e56}.status.warn{background:#fff0d9;color:var(--warning)}.status.alert{background:#f6dfdc;color:var(--alert)}.positive-text{color:var(--green);font-weight:750}.table-foot{display:flex;justify-content:space-between;padding:14px 0;color:var(--muted);font-size:12px}.table-foot a{color:var(--ink);text-decoration:none;font-weight:750}.source-list{list-style:none;margin:0;padding:0;display:grid;gap:8px}.source-list li{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid var(--line)}.source-list li:last-child{border:0}.source-logo{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#edf1f5;color:#334d69;font-weight:850}.source-list strong,.source-list small{display:block}.source-list small{color:var(--muted);margin-top:3px}.action-panel{background:var(--mint);border-color:var(--mint)}.action-panel .eyebrow{color:#3b7a65}.action-panel ol{list-style:none;margin:18px 0 8px;padding:0;display:grid;gap:14px}.action-panel li{display:grid;grid-template-columns:auto 1fr;gap:10px}.action-panel li>span{font-size:11px;font-weight:850;color:#477966}.action-panel p{margin:0}.action-panel strong,.action-panel small{display:block}.action-panel small{margin-top:2px;color:#537466}.action-panel .button-dark{background:#123d32}
@media(max-width:1120px){.kpi-grid{grid-template-columns:repeat(2,1fr)}.content-grid,.bottom-grid{grid-template-columns:1fr}.stock-panel .resource-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.shell{display:block}.sidebar{position:relative;height:auto;padding:16px}.brand{margin:0 0 14px}.sidebar nav{display:flex;overflow:auto}.nav-item{flex:0 0 auto}.sidebar-foot{display:none}main{padding:24px 16px}.topbar{align-items:flex-start}.top-actions{display:none}.notice{grid-template-columns:auto 1fr}.notice a{display:none}.kpi-grid{grid-template-columns:1fr}.forecast{grid-template-columns:1fr}.donut{margin:auto}.stock-panel .resource-list{grid-template-columns:1fr}.panel-head{align-items:flex-start;flex-direction:column}.filters{max-width:100%;overflow:auto}.table-foot{gap:20px}.kpi-card{min-height:150px}}

/* DG Media brand palette */
.sidebar{background:var(--ink)}
.brand-mark{background:var(--sky);color:var(--ink)}
.nav-item:hover,.nav-item.is-active{color:var(--ink)}
.nav-item.is-active b{background:var(--sky);color:var(--ink)}
.button-primary{background:var(--blue);color:#fff}
.meter span,.split span{background:var(--blue)}
.meter.profit span,.spark i{background:var(--sky)}
.split i{background:var(--taupe)}
.donut{background:conic-gradient(var(--sky) 0 48.3%,#e9eceb 48.3% 100%)}
.action-panel{background:#eee8e2;border-color:var(--taupe)}
.action-panel .eyebrow,.action-panel small{color:#75695f}
.action-panel .button-dark{background:var(--ink)}
.gate,.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#edf4f8,#f4f1ee)}
.gate-card,.login-card{width:min(100%,480px);background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:36px}.gate-card h1,.login-card h1{font-size:32px;letter-spacing:-.04em;margin:10px 0}.gate-card p,.login-copy,.body-copy{color:var(--muted);line-height:1.6}.login-brand{color:var(--ink);margin:0 0 28px}.login-card form{display:grid;gap:15px;margin-top:24px}.login-card label{display:grid;gap:7px;font-weight:750;font-size:12px}.login-card input,.searchbar input,.searchbar select{width:100%;border:1px solid var(--line);border-radius:11px;padding:12px 13px;font:inherit;color:var(--ink);background:#fff}.login-card input:focus,.searchbar input:focus{outline:3px solid rgba(44,149,218,.18);border-color:var(--sky)}.login-card>small{display:block;color:var(--muted);margin-top:22px}.form-error{padding:12px;border-radius:10px;background:#f6dfdc;color:var(--alert);font-size:13px}.logout{background:none;border:0;color:#9fb1c0;padding:0;font:inherit;font-size:12px;cursor:pointer;text-align:left}.searchbar{display:grid;grid-template-columns:minmax(240px,1fr) 200px auto;gap:10px;margin-bottom:15px}.panel a,.table-panel a{color:var(--blue);font-weight:750;text-decoration:none}.detail-grid,.provider-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.provider-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.provider-grid .panel{min-height:180px}.provider-grid .source-logo{margin-bottom:24px}.detail-row{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:14px 0;border-bottom:1px solid var(--line)}.detail-row:last-child{border:0}.detail-row strong,.detail-row small{display:block}.detail-row small{color:var(--muted);margin-top:4px}.negative-text{color:var(--alert);font-weight:750}.empty-state{text-align:center;padding:60px 24px}.empty-state .resource-icon{margin:0 auto 20px}.empty-state p{max-width:620px;margin:12px auto 24px;color:var(--muted);line-height:1.6}
.button:focus-visible,.nav-item:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid rgba(44,149,218,.35);outline-offset:3px}
.notice-success{border-color:#b9dece;background:#f5fbf8}.notice-success .notice-icon{background:#dcefe7;color:var(--green)}.review-list{display:grid}.review-row{display:grid;grid-template-columns:minmax(260px,1fr) minmax(260px,.8fr) auto;align-items:end;gap:18px;padding:18px 0;border-top:1px solid var(--line)}.review-row:first-child{border-top:0}.review-row strong,.review-row small{display:block}.review-row strong{margin-top:8px}.review-row small{margin-top:4px;color:var(--muted)}.review-row label{display:grid;gap:7px;font-size:11px;font-weight:750;color:var(--muted)}.review-row select{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px;background:#fff;color:var(--ink);font:inherit}
.account-link{color:#9fb1c0;text-decoration:none;font-size:12px}.account-link:hover{color:#fff}.account-panel{max-width:620px}.account-form{display:grid;gap:16px;margin-top:28px}.account-form label{display:grid;gap:7px;font-size:12px;font-weight:750}.account-form input{width:100%;border:1px solid var(--line);border-radius:11px;padding:12px 13px;font:inherit}.account-form .button{justify-self:start}
.master-form{padding:0;overflow:hidden}.form-section{display:grid;grid-template-columns:minmax(220px,.55fr) minmax(0,1.45fr);gap:38px;padding:28px;border-bottom:1px solid var(--line)}.form-section:last-of-type{border-bottom:0}.form-section .body-copy{margin:9px 0 0;font-size:13px}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.form-grid label{display:grid;gap:7px;align-content:start;color:var(--muted);font-size:11px;font-weight:800}.form-grid input,.form-grid select,.form-grid textarea{width:100%;border:1px solid var(--line);border-radius:11px;padding:11px 12px;background:#fff;color:var(--ink);font:inherit}.form-grid textarea{resize:vertical;line-height:1.5}.form-grid input:focus,.form-grid select:focus,.form-grid textarea:focus{outline:3px solid rgba(44,149,218,.18);border-color:var(--sky)}.span-2{grid-column:span 2}.form-actions{display:flex;justify-content:flex-end;gap:10px;padding:20px 28px;background:#f8fafb}.contract-price{text-align:right}.contract-price a{display:inline-block;margin-top:7px;font-size:11px}.provider-card p{color:var(--muted)}.provider-cost-list{display:grid;gap:10px;margin-top:18px}.provider-cost-list>div{padding:12px;border:1px solid var(--line);border-radius:11px;background:#f8fafb}.provider-cost-list strong,.provider-cost-list span,.provider-cost-list small{display:block}.provider-cost-list span{margin-top:4px;font-weight:750}.provider-cost-list small{margin-top:3px;color:var(--muted)}.provider-cost-form{margin-top:15px}.alert-list{display:grid;gap:12px}.alert-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:18px}.alert-card .body-copy{margin:7px 0 0}.alert-count{display:grid;place-items:center;min-width:52px;height:52px;padding:0 10px;border-radius:14px;background:#edf1f5;font-size:20px;font-weight:900}.severity-high{border-left:5px solid var(--alert)}.severity-high .alert-count{background:#f6dfdc;color:var(--alert)}.severity-medium{border-left:5px solid #d89b43}.severity-medium .alert-count{background:#fff0d9;color:var(--warning)}.severity-low{border-left:5px solid var(--sky)}.severity-low .alert-count{background:#dceffa;color:var(--blue)}
.sync-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}.sync-actions form{margin:0}
.searchbar{grid-template-columns:minmax(240px,1fr) 210px 180px auto}
.contract-row{border-bottom:1px solid var(--line);padding-bottom:14px}.contract-row:last-child{border-bottom:0}.contract-row .detail-row{border:0;padding-bottom:10px}.project-link-form{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:10px 12px;border-radius:12px;background:#f7f9fa}.project-link-form label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:750}.project-link-form select{width:100%;font:inherit}.button-small{padding:9px 12px;font-size:12px}.panel-link{display:inline-block;margin-top:16px}.projects-panel{margin-top:15px}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.project-grid article{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px;border:1px solid var(--line);border-radius:12px}.project-grid strong,.project-grid small{display:block}.project-grid small{color:var(--muted);margin-top:4px}.project-grid a{white-space:nowrap;font-size:12px}.inventory-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:15px}.inventory-tabs a{display:flex;justify-content:space-between;align-items:center;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);font-weight:800;text-decoration:none;box-shadow:var(--shadow)}.inventory-tabs a b{display:grid;place-items:center;min-width:30px;height:26px;padding:0 8px;border-radius:8px;background:#edf1f5;font-size:11px}.inventory-tabs a.is-active{background:var(--ink);border-color:var(--ink);color:#fff}.inventory-tabs a.is-active b{background:var(--sky);color:var(--ink)}.inventory-search{grid-template-columns:minmax(260px,1fr) 220px auto}.inventory-table{margin-top:0}.inventory-table table{min-width:850px}
.year-filter label{display:grid;gap:6px;color:var(--muted);font-size:11px;font-weight:750}.year-filter select{min-width:130px;border:1px solid var(--line);border-radius:11px;padding:11px 13px;background:#fff;color:var(--ink);font:inherit}.control-actions{align-items:end}.control-kpis{margin-bottom:15px}.control-kpis .kpi-card{min-height:145px}.control-kpis .kpi-card>strong{margin-top:18px}.control-table{margin-top:15px}.control-table table{min-width:1180px}.control-legend{display:flex;gap:6px}.control-note{margin-top:15px}.control-note .body-copy{max-width:920px;margin-bottom:0}.control-table td:nth-child(3),.control-table td:nth-child(4),.control-table td:nth-child(5),.control-table td:nth-child(6),.control-table td:nth-child(7){white-space:nowrap}.mapping-panel{padding-bottom:0}.mapping-list{margin:0 -22px}.mapping-row{position:relative;display:grid;grid-template-columns:auto minmax(220px,1fr) auto minmax(260px,1.2fr) auto;align-items:center;gap:16px;padding:15px 22px;border-top:1px solid var(--line);cursor:pointer}.mapping-row>input{position:absolute;opacity:0;pointer-events:none}.mapping-check{width:22px;height:22px;border:2px solid #b8c4ce;border-radius:7px;background:#fff}.mapping-row>input:checked+.mapping-check{border-color:var(--blue);background:var(--blue);box-shadow:inset 0 0 0 4px #fff}.mapping-row strong,.mapping-row small{display:block}.mapping-row small{color:var(--muted);margin-top:4px}.mapping-arrow{color:var(--sky);font-size:20px;font-weight:800}.mapping-row:has(input:not(:checked)){opacity:.5}.mapping-unresolved{margin-top:15px}.mapping-unresolved table{min-width:880px}
@media(max-width:760px){.searchbar{grid-template-columns:1fr}.detail-grid,.provider-grid{grid-template-columns:1fr}.year-filter{display:none}}
@media(max-width:900px){.review-row{grid-template-columns:1fr}.review-row .button{width:100%}}
@media(max-width:900px){.project-grid{grid-template-columns:1fr}.project-link-form{grid-template-columns:1fr}.inventory-tabs{grid-template-columns:1fr}.inventory-search{grid-template-columns:1fr}}
@media(max-width:900px){.form-section{grid-template-columns:1fr;gap:18px}.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}}
@media(max-width:760px){.alert-card{grid-template-columns:auto 1fr}.alert-card .button{grid-column:1/-1}}
.confirm-check{display:grid!important;grid-template-columns:auto 1fr;align-items:center!important;padding:14px;border:1px solid var(--line);border-radius:11px;background:#f8fafb}.confirm-check input{width:auto}.merge-form{max-width:1080px}.form-grid input[readonly]{background:#edf1f5;color:var(--muted)}

/* Logo assets */
.brand{justify-content:center;margin:0 8px 32px}
.brand-logo{display:block;width:112px;max-width:100%;height:auto}
.gate-card>.brand-logo{width:124px;margin-bottom:24px}
.login-brand{justify-content:flex-start;margin:0 0 28px}
.login-brand .brand-logo{width:132px}
@media(max-width:760px){.brand{justify-content:flex-start;margin:0 0 14px}.sidebar .brand-logo{width:78px}}

.sidebar{background:#205078}
.sidebar .eyebrow,.sidebar-foot small,.logout,.account-link{color:rgba(255,255,255,.76)}
.nav-item{color:rgba(255,255,255,.82)}
.source-list li{padding:0}
.source-panel-help{max-width:760px;margin:-8px 0 12px;color:var(--muted);font-size:12px;line-height:1.5}
.source-trigger{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;align-items:center;gap:12px;padding:11px 0;border:0;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer;border-radius:10px}
.source-trigger:hover,.source-trigger:focus-visible{background:#f4f7f9;outline:none;box-shadow:0 0 0 4px #f4f7f9}
.ctl-guest-notice{margin-bottom:18px}.ctl-guest-filter{grid-template-columns:minmax(240px,1fr) 170px 210px auto}.ctl-guest-table table{width:100%;min-width:0;table-layout:fixed}.ctl-guest-table th,.ctl-guest-table td{padding:9px 7px}.ctl-guest-table th:nth-child(1){width:19%}.ctl-guest-table th:nth-child(2){width:6%}.ctl-guest-table th:nth-child(3),.ctl-guest-table th:nth-child(4),.ctl-guest-table th:nth-child(5){width:6%}.ctl-guest-table th:nth-child(6){width:5%}.ctl-guest-table th:nth-child(7),.ctl-guest-table th:nth-child(8){width:6%}.ctl-guest-table th:nth-child(9),.ctl-guest-table th:nth-child(10){width:10%}.ctl-guest-table th:nth-child(11){width:20%}.ctl-guest-table th>small{display:block;margin-top:3px;font-size:9px;letter-spacing:0;text-transform:none}.ctl-guest-table td{height:auto;vertical-align:top;overflow-wrap:anywhere}.ctl-guest-table td>small,.ctl-guest-table tfoot small{display:block;margin-top:2px;color:var(--muted)}.ctl-contract-dates{display:table-cell;white-space:nowrap}.ctl-contract-dates small{display:block;margin:0!important;line-height:1.35}.ctl-contract-dates strong{display:inline;color:var(--ink)}
@media(max-width:1000px){.ctl-guest-table table{min-width:1150px;table-layout:auto}.ctl-guest-filter{grid-template-columns:1fr}}
.source-summary{min-width:0}.source-summary strong,.source-summary small{display:block}.source-summary small{white-space:normal}
.source-chevron{color:var(--blue);font-size:24px;line-height:1}
.source-dialog{width:min(680px,calc(100vw - 32px));max-height:calc(100vh - 40px);padding:0;border:0;border-radius:20px;color:var(--ink);box-shadow:0 28px 90px rgba(14,55,85,.28)}
.source-dialog::backdrop{background:rgba(14,55,85,.62);backdrop-filter:blur(3px)}
.dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:24px 26px;border-bottom:1px solid var(--line)}
.dialog-head h2{margin:0;font-size:24px}.dialog-close{width:38px;height:38px;border:1px solid var(--line);border-radius:11px;background:#fff;color:var(--ink);font-size:25px;line-height:1;cursor:pointer}
.source-detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:22px 26px}.source-detail-grid>div{padding:14px;border:1px solid var(--line);border-radius:12px;background:#f8fafb}.source-detail-grid span,.source-detail-grid strong{display:block}.source-detail-grid span{margin-bottom:6px;color:var(--muted);font-size:11px;font-weight:700}.source-detail-grid .span-2{grid-column:span 2}.source-detail-grid .source-error{background:#fff7f5;border-color:#edcbc5}.source-detail-grid .status{display:inline-block}
.run-history{padding:0 26px 26px}.run-history h3{margin:0 0 10px;font-size:14px}.run-history>div{display:grid;grid-template-columns:130px 80px 1fr;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}.run-history small{color:var(--muted)}
@media(max-width:600px){.source-detail-grid{grid-template-columns:1fr}.source-detail-grid .span-2{grid-column:auto}.run-history>div{grid-template-columns:1fr auto}.run-history small{grid-column:1/-1}}

/* Auf das Spreadsheet-Kernmodell reduzierte Verwaltung */
.core-table table{min-width:1680px}.calculation-table table{min-width:0;table-layout:fixed}
.core-table th,.core-table td,.calculation-table th,.calculation-table td{white-space:nowrap}
.core-table .table-wrap{max-height:calc(100vh - 210px);overflow:auto}
.core-table thead th{position:sticky;top:0;z-index:3;box-shadow:0 1px 0 var(--line)}
.calculation-table .table-wrap{max-height:calc(100vh - 210px);overflow:auto}.calculation-table thead th{position:sticky;top:0;z-index:3;box-shadow:0 1px 0 var(--line)}.calculation-table th,.calculation-table td{padding:11px 8px}.calculation-table th:nth-child(1){width:18%}.calculation-table th:nth-child(2){width:8%}.calculation-table th:nth-child(3){width:11%}.calculation-table th:nth-child(4){width:12%}.calculation-table th:nth-child(5){width:10%}.calculation-table th:nth-child(6){width:11%}.calculation-table th:nth-child(7){width:12%}.calculation-table th:nth-child(8){width:11%}.calculation-table th:nth-child(9){width:7%}.calc-heading-help{display:inline-flex;align-items:center;gap:4px;cursor:help}.calc-heading-help>span{display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;background:#dcecf8;color:#205078;font-size:9px;font-weight:900}.cost-tooltip{cursor:help;text-decoration:underline dotted #8aa0b4;text-underline-offset:3px}
.core-table tfoot th,.core-table tfoot td{background:#eef4f7;border-top:2px solid var(--navy);border-bottom:0;font-weight:850;white-space:nowrap}
.customer-name-link{display:inline-block;color:var(--ink)!important;text-decoration:none!important}
.customer-name-link:hover,.customer-name-link:focus-visible{color:var(--blue)!important;text-decoration:none!important}
.service-badges{display:flex;flex-wrap:wrap;gap:5px}
.customer-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;padding:0;overflow:hidden}
.customer-summary>div{position:relative;display:grid;gap:7px;padding:20px 58px 20px 20px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
.customer-summary>div:nth-child(3n){border-right:0}.customer-summary>div:nth-last-child(-n+3){border-bottom:0}
.customer-summary span{color:var(--muted);font-size:11px;font-weight:750}.customer-summary strong{font-size:16px;overflow-wrap:anywhere}
.summary-edit{position:absolute;top:14px;right:14px;display:grid!important;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--blue)!important;text-decoration:none!important;font-size:17px;line-height:1}
.summary-edit:hover,.summary-edit:focus-visible{border-color:var(--sky);background:#edf5fb;outline:none}
.form-section[id]{scroll-margin-top:24px}
.stock-panel{margin-top:15px}.stock-panel .resource-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.compact-filter{grid-template-columns:minmax(240px,360px) auto;justify-content:start}
.sale-tariffs{margin-bottom:15px}.tariff-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:900px){.customer-summary{grid-template-columns:1fr 1fr}.customer-summary>div,.customer-summary>div:nth-child(3n){border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.customer-summary>div:nth-child(2n){border-right:0}.stock-panel .resource-list,.tariff-grid{grid-template-columns:1fr}.compact-filter{grid-template-columns:1fr}}
@media(max-width:600px){.customer-summary{grid-template-columns:1fr}.customer-summary>div{border-right:0!important}.customer-summary>div:last-child{border-bottom:0}}

/* Interaktions- und Dashboard-Korrekturen */
.button{text-decoration:none!important}
.service-badges{flex-wrap:nowrap;align-items:center}.service-badges .status{white-space:nowrap}
.quality-panel{margin-top:15px}.quality-panel+.sync-status-panel{margin-top:18px}.quality-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.quality-grid>a{display:grid;gap:7px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#f8fafb;color:var(--ink);text-decoration:none!important}.quality-grid>a:hover{border-color:var(--sky);box-shadow:0 8px 22px rgba(14,55,85,.08)}.quality-grid span,.quality-grid small{color:var(--muted)}.quality-grid span{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.06em}.quality-grid strong{font-size:28px}.quality-grid small{font-size:11px}
.editable-price{position:relative;padding-right:48px!important}.edit-icon{position:absolute;top:10px;right:10px;display:grid!important;place-items:center;width:32px;height:32px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--blue)!important;text-decoration:none!important;font-size:18px;line-height:1}.edit-icon:hover{border-color:var(--sky);background:#edf5fb}.price-edit-form{max-width:1050px}
.button-danger{background:#fff;color:var(--alert);border:1px solid #e8b8b1}.button-danger:hover{background:#fff3f1}.danger-push{margin-right:auto}
.tariff-sort-help{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px;font-weight:700}.drag-symbol{font-size:18px;color:var(--blue)}
.tariff-card{padding-left:48px!important;cursor:grab;transition:transform .15s ease,opacity .15s ease,border-color .15s ease,box-shadow .15s ease}.tariff-card:active{cursor:grabbing}.tariff-card.is-dragging{opacity:.4}.tariff-card.is-drop-target{border-color:var(--sky);box-shadow:0 0 0 3px rgba(44,149,218,.14)}
.tariff-drag-handle{position:absolute;top:10px;left:10px;display:grid!important;place-items:center;width:30px;height:32px;color:var(--blue);font-size:21px;line-height:1;user-select:none}
.tariff-card.is-inactive{border-style:dashed;background:#eef1f3;opacity:.62;filter:grayscale(.65)}.tariff-card.is-inactive:hover{opacity:.82}.tariff-status{display:inline-flex!important;width:max-content;margin-top:8px;padding:4px 7px;border-radius:6px;background:#dfe5e9;color:#536779;font-size:10px;font-style:normal;font-weight:800}.tariff-card:not(.is-inactive) .tariff-status{background:#e0f2eb;color:#1f6e56}.tariff-card.is-inactive .tariff-drag-handle{color:#7f8a95}
.tariff-list .editable-price.is-legacy-price{background:#e5e9ed;border-color:#cbd3da;color:#526272}.tariff-list .editable-price.is-legacy-price strong,.tariff-list .editable-price.is-legacy-price span{color:#526272}.tariff-list .editable-price.is-legacy-price small{color:#7a8894}.tariff-list .editable-price.is-legacy-price .edit-icon{background:#f3f5f6;color:#617487}
.section-tabs{display:flex;gap:8px;margin:-8px 0 18px;padding:5px;border:1px solid var(--line);border-radius:14px;background:#fff;width:max-content;box-shadow:var(--shadow)}.section-tabs a{padding:10px 18px;border-radius:10px;color:var(--muted);font-size:13px;font-weight:800;text-decoration:none}.section-tabs a:hover{background:#eef4f8;color:#205078}.section-tabs a.is-active{background:#205078;color:#fff}.webservice-filter{grid-template-columns:minmax(260px,1fr) 210px auto}.webservice-table table{min-width:1100px}.hosting-table table{min-width:1700px}.table-summary{display:flex;flex-wrap:wrap;gap:7px}.table-summary span{padding:5px 8px;border-radius:7px;background:#e0f2eb;color:#1f6e56;font-size:10px;font-weight:800}.table-summary .free-summary{background:#e2eef8;color:#205078}.table-summary .warning-text{background:#fff0d9;color:var(--warning)}
.price-guide{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.3fr);gap:28px;margin-bottom:15px}.price-guide h2{margin:0 0 8px}.price-guide p{margin:0;color:var(--muted);line-height:1.55}.price-guide ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}.price-guide li{display:grid;grid-template-columns:auto 1fr;align-items:start;gap:9px;padding:13px;border:1px solid var(--line);border-radius:12px;background:#f8fafb;color:var(--muted);font-size:12px;line-height:1.45}.price-guide li b{display:grid;place-items:center;width:24px;height:24px;border-radius:7px;background:var(--blue);color:#fff}.missing-price-cell .status{display:block;width:max-content;margin-bottom:5px}.missing-price-cell small{max-width:220px;white-space:normal}.price-action{display:inline-block!important;white-space:nowrap;color:#fff!important}.core-table:has(.price-action) table{min-width:2050px}
.form-grid label.missing-price-field{padding:10px;border:1px solid #e9b8b0;border-radius:12px;background:#fff7f5;color:var(--alert)}.missing-price-field input{border-color:#df8d82!important;background:#fff!important}.missing-price-field small{color:#8d4a42;font-weight:600;line-height:1.4}
.status.info,.status.free{background:#e2eef8;color:#205078}.muted-price{color:#9aa7b2}.pool-notice{border-color:#b8d5ea;background:#f6fbff}.pool-notice .notice-icon{background:#dcecf8;color:#205078}.pool-notice a{color:#205078}.pool-summary{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1.25fr);align-items:center;gap:9px;margin:16px 0;padding:14px;border:1px solid #b8d5ea;border-radius:12px;background:#f5faff}.pool-summary span:not(.pool-operator){display:block;min-width:0}.pool-summary small,.pool-summary strong{display:block}.pool-summary small{margin-bottom:4px;color:var(--muted);font-size:10px;text-transform:uppercase;letter-spacing:.05em}.pool-summary strong{color:#205078;font-size:13px}.pool-operator{color:var(--blue);font-size:18px;font-weight:900}.pool-explanation{display:grid;gap:5px;padding:13px 14px;border:1px solid #b8d5ea;border-radius:12px;background:#f5faff;color:#205078}.pool-explanation span{color:var(--muted);font-size:12px;line-height:1.5}.customer-summary .summary-field:last-child{background:#f5faff}
.purchase-preview{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 16px;align-items:center;padding:14px 16px;border:1px solid #b8d5ea;border-radius:12px;background:#f5faff}.purchase-preview span{color:var(--muted);font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.05em}.purchase-preview strong{color:#205078;text-align:right}.purchase-preview small{grid-column:1/-1;color:var(--muted);font-size:12px;line-height:1.5}
@media(max-width:900px){.quality-grid{grid-template-columns:1fr 1fr}.core-table .table-wrap,.calculation-table .table-wrap{max-height:none}.calculation-table table{min-width:1040px;table-layout:auto}.price-guide{grid-template-columns:1fr}.price-guide ol{grid-template-columns:1fr}}
@media(max-width:540px){.pool-summary{grid-template-columns:1fr}.pool-operator{display:none}.pool-summary span:not(.pool-operator){padding-bottom:8px;border-bottom:1px solid var(--line)}.pool-summary span:last-child{padding-bottom:0;border-bottom:0}}
@media(max-width:600px){.quality-grid{grid-template-columns:1fr}}
@media(max-width:760px){.section-tabs{width:100%}.section-tabs a{flex:1;text-align:center}.webservice-filter{grid-template-columns:1fr}}
.customer-summary+.table-panel td:nth-child(3) .status.warn{background:#e2eef8;color:#205078}
.customer-name-editor{margin-bottom:16px}
.hosting-table th,.hosting-table td{padding-left:11px;padding-right:11px}
@media(min-width:901px){
  .hosting-table:not(:has(.price-action)) table{width:100%;min-width:0;table-layout:fixed}
  .hosting-table:not(:has(.price-action)) th,.hosting-table:not(:has(.price-action)) td{padding:10px 6px;overflow:hidden;text-overflow:ellipsis;font-size:12px}
  .hosting-table:not(:has(.price-action)) th{font-size:9px;letter-spacing:.045em}
  .hosting-table:not(:has(.price-action)) th:nth-child(1),.hosting-table:not(:has(.price-action)) td:nth-child(1){width:19%}
  .hosting-table:not(:has(.price-action)) th:nth-child(2),.hosting-table:not(:has(.price-action)) td:nth-child(2){width:6%}
  .hosting-table:not(:has(.price-action)) th:nth-child(3),.hosting-table:not(:has(.price-action)) td:nth-child(3){width:7%}
  .hosting-table:not(:has(.price-action)) th:nth-child(4),.hosting-table:not(:has(.price-action)) td:nth-child(4){width:6.5%}
  .hosting-table:not(:has(.price-action)) th:nth-child(5),.hosting-table:not(:has(.price-action)) td:nth-child(5){width:5.5%}
  .hosting-table:not(:has(.price-action)) th:nth-child(6),.hosting-table:not(:has(.price-action)) td:nth-child(6){width:6%}
  .hosting-table:not(:has(.price-action)) th:nth-child(7),.hosting-table:not(:has(.price-action)) td:nth-child(7){width:5.5%}
  .hosting-table:not(:has(.price-action)) th:nth-child(8),.hosting-table:not(:has(.price-action)) td:nth-child(8){width:5.5%}
  .hosting-table:not(:has(.price-action)) th:nth-child(9),.hosting-table:not(:has(.price-action)) td:nth-child(9){width:6%}
  .hosting-table:not(:has(.price-action)) th:nth-child(10),.hosting-table:not(:has(.price-action)) td:nth-child(10){width:8%}
  .hosting-table:not(:has(.price-action)) th:nth-child(11),.hosting-table:not(:has(.price-action)) td:nth-child(11),
  .hosting-table:not(:has(.price-action)) th:nth-child(12),.hosting-table:not(:has(.price-action)) td:nth-child(12),
  .hosting-table:not(:has(.price-action)) th:nth-child(13),.hosting-table:not(:has(.price-action)) td:nth-child(13){width:8.5%}
  .hosting-table:not(:has(.price-action)) .customer-name-link{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
}
.table-sort{display:inline-flex;align-items:center;gap:4px;color:inherit!important;text-decoration:none!important;white-space:nowrap}.table-sort:hover{color:var(--blue)!important}.table-sort.is-active{color:var(--blue)!important}.table-sort span{font-size:13px;line-height:1}
.page-actions{align-items:flex-start}.page-actions form{margin:0}.sync-action-hint{display:grid;justify-items:start;gap:6px;max-width:390px}.sync-action-hint small{color:var(--muted);font-size:12px;line-height:1.4;text-align:left}.new-entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.new-entry-form{display:flex;flex-direction:column;min-width:0}.new-entry-form h2{margin:0 0 20px}.new-entry-form>label{display:grid;gap:8px;font-weight:800}.new-entry-form input,.new-entry-form select{width:100%;margin-top:4px;border:1px solid var(--line);border-radius:11px;padding:12px 13px;background:#fff;color:var(--ink);font:inherit}.new-entry-form>.body-copy{margin:14px 0 0}.new-entry-form>.form-actions{margin:auto -22px -22px;padding-top:22px;margin-top:22px}
@media(max-width:900px){.new-entry-grid{grid-template-columns:1fr}.sync-action-hint{justify-items:start;max-width:none}.sync-action-hint small{text-align:left}}
@media(max-width:760px){.page-new-button{display:inline-flex}.topbar>.page-new-button{flex:0 0 auto}.page-actions{display:flex}.page-actions form{display:none}}
.new-website-fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px;border:1px solid #b8d5ea;border-radius:12px;background:#f6fbff}.new-website-fields:not([hidden]){display:grid}.new-website-fields .body-copy{margin:0;font-size:12px}
@media(max-width:760px){.new-website-fields{grid-template-columns:1fr}.new-website-fields .span-2{grid-column:auto}}
.title-line{display:flex;align-items:center;gap:10px}.title-edit{display:grid;place-items:center;width:38px;height:38px;padding:0;text-decoration:none!important;font-size:18px;flex:0 0 auto}
.customer-name-editor form{display:grid;grid-template-columns:minmax(280px,1fr) auto;gap:16px;align-items:end}
.customer-name-editor label{display:grid;gap:8px;font-weight:700;color:var(--ink)}
.customer-name-editor .form-actions{padding:0;background:transparent;border:0}
.customer-name-editor .body-copy{margin:12px 0 0}
@media(max-width:760px){.customer-name-editor form{grid-template-columns:1fr}.customer-name-editor .form-actions{justify-content:flex-start}}
.tariff-list .editable-price.is-legacy-price{border-style:dashed;background:#eef1f3;color:var(--ink);opacity:.62;filter:grayscale(.65)}
.tariff-list .editable-price.is-legacy-price strong,.tariff-list .editable-price.is-legacy-price span{color:inherit}.tariff-list .editable-price.is-legacy-price small{color:var(--muted)}.tariff-list .editable-price.is-legacy-price:hover{opacity:.82}
.address-lists{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.address-list{display:grid;align-content:start;gap:5px;padding:16px;border:1px solid #b8d5ea;border-radius:12px;background:#f6fbff}.address-list>small{color:var(--muted);margin-bottom:5px}.address-list [data-address-inputs]{display:grid;gap:10px}.address-list label{display:grid;gap:5px;font-size:12px}.address-list input{width:100%}.ctl-readonly-badge{display:inline-flex;white-space:nowrap;min-width:max-content;padding-inline:12px}
@media(max-width:760px){.address-lists{grid-template-columns:1fr}}
.nav-item b{width:auto;height:auto;min-width:22px;min-height:22px;padding:4px 7px;line-height:1;white-space:nowrap}
.ctl-guest-sidebar nav{display:block}.ctl-guest-sidebar .nav-item{position:relative;display:grid;grid-template-columns:38px minmax(0,1fr);grid-template-rows:auto auto;column-gap:11px;row-gap:5px;padding:13px 12px;border:1px solid rgba(255,255,255,.2);border-radius:15px;background:rgba(255,255,255,.08);color:#fff;box-shadow:0 10px 28px rgba(4,27,45,.16);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.ctl-guest-sidebar .nav-item::before{content:"C";grid-column:1;grid-row:1/3;display:grid;place-items:center;width:38px;height:38px;align-self:center;border-radius:11px;background:rgba(255,255,255,.14);color:#fff;font-size:15px;font-weight:850}.ctl-guest-sidebar .nav-item span{grid-column:2;align-self:end;min-width:0;color:inherit;font-size:13px;font-weight:800;line-height:1.15;white-space:nowrap}.ctl-guest-sidebar .nav-item b{grid-column:2;justify-self:start;min-width:0;min-height:0;padding:3px 8px;border-radius:999px;background:#dcecf8;color:#205078;font-size:9px;font-weight:850;letter-spacing:.035em;text-transform:uppercase}.ctl-guest-sidebar .nav-item:hover,.ctl-guest-sidebar .nav-item:focus-visible,.ctl-guest-sidebar .nav-item.is-active{transform:translateY(-1px);border-color:#fff;background:#fff;color:#0e3755;box-shadow:0 14px 34px rgba(4,27,45,.24)}.ctl-guest-sidebar .nav-item.is-active::before{background:#205078;color:#fff}.ctl-guest-sidebar .nav-item:focus-visible{outline:3px solid rgba(44,149,218,.45);outline-offset:3px}
