/* Operations theme: readable contrast, compact tables and responsive forms. */
:root{--primary:#176b54;--text:#172b3a;--secondary:#4e6374;--border:#dfe7ec;--muted:#f3f6f9}
body{background:#f2f5f8;color:var(--text);font-size:14px}
button,.file-button{border-radius:6px;min-height:34px;border-color:#cbd7df;transition:background .15s,border-color .15s}
button:hover,.file-button:hover{background:#f0f6f4;border-color:#8cafa3}
.primary{background:var(--primary);border-color:var(--primary);box-shadow:0 1px 2px #102f2314}
.primary:hover{background:#10543f;border-color:#10543f}
.text{min-height:28px;color:#176b54;box-shadow:none}.text:hover{background:#e9f4ef}
button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #67a991;outline-offset:2px}
input,select,textarea{border-radius:6px;border-color:#bdcbd5}
input:focus,select:focus,textarea:focus{border-color:#389477;box-shadow:0 0 0 3px #176b5414}
input::placeholder,textarea::placeholder{color:#617585}label{font-size:13px;color:#314857}
.hint,.breadcrumb{color:#526879;font-size:12px}
.sidebar{width:224px;background:#142f36;border:0;box-shadow:3px 0 16px #18333a08}
.brand{height:84px;padding:18px;color:#fff;border-color:#ffffff14;letter-spacing:.5px}
.brand img{width:38px;height:38px;border-radius:10px;background:#fff;padding:3px}
.brand small{color:#bacdd0;font-size:12px;margin-top:2px;letter-spacing:1px}
.nav{padding:8px 10px 14px;scrollbar-width:thin;scrollbar-color:#4b656b transparent}
.nav-title{color:#a3bcc1;font-size:12px;padding:13px 12px 6px;letter-spacing:1px}
.nav button{color:#d7e4e6;min-height:37px;border-radius:6px;padding:8px 12px;margin:1px 0;position:relative}
.nav button:hover{background:#ffffff0d;color:#fff}
.nav button.active{background:#28564f;color:#fff;font-weight:600}
.nav button.active::before{content:'';position:absolute;width:3px;height:16px;left:0;border-radius:3px;background:#8cd1b2}
.nav .icon{color:#abc8c8;width:18px;height:18px}.nav button.active .icon{color:#a8e0c3}
.content-nav{padding:2px 0 3px 29px;column-gap:3px}
.content-nav button{font-size:12px;min-height:29px;padding:5px 6px;color:#c0d2d5}
.content-nav button.active{background:#28564f}.content-nav button.active::before{display:none}
.logout{border-color:#ffffff18;color:#dce8e9;background:#142f36;padding:14px 21px;border-radius:0}
.logout:hover{background:#203f46;color:#fff;border-color:#ffffff18}
.main{margin-left:224px;width:calc(100% - 224px);padding:0 24px 24px}
.page-header{height:84px;margin-bottom:18px;border-color:#dce5eb;gap:12px}
h1{font-size:23px;color:#142f3d;letter-spacing:.3px}h2{font-size:16px;color:#1e3949}h3{color:#284654;border-color:#e2e9ee}
.page-header>button{background:#fff;padding:7px 13px}
.toolbar{gap:9px;margin:12px 0}.toolbar .search{width:280px}.search>.icon{color:#526b7a}.toolbar>select{min-width:125px}
.overview-toolbar{justify-content:flex-end;margin-top:-4px}.overview-toolbar label{font-size:12px;color:#526879}
.stats{gap:14px;margin:12px 0 22px}
.stat{border:1px solid #dfe7ec;border-radius:9px;padding:17px 18px;min-height:96px;gap:14px;justify-content:flex-start;box-shadow:0 2px 4px #22394904}
.stat-icon{width:43px;height:43px;border-radius:11px;background:#e6f2ec;color:#216f54;display:grid;place-items:center;flex-shrink:0}
.stat-icon .icon{width:23px;height:23px}.stat:nth-child(2) .stat-icon{background:#fff2dd;color:#a46b19}
.stat:nth-child(3) .stat-icon{background:#e8effb;color:#3e68a5}.stat:nth-child(4) .stat-icon{background:#f0ebf8;color:#77559b}
.stat-copy{display:flex;flex-direction:column;gap:3px;min-width:0}.stat-copy>span{font-size:13px;color:#526675}
.stat b{font-size:28px;line-height:1.2;font-variant-numeric:tabular-nums;color:#172f3e}
.overview-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.charts{gap:14px}.panel{border-radius:9px;border-color:#dfe7ec;padding:17px 18px;box-shadow:0 2px 4px #22394903}
.charts .panel{margin-bottom:16px;min-height:192px}.charts h2{padding-bottom:12px;border-bottom:1px solid #edf1f5;margin-bottom:12px;font-size:14px}
.bar-item{margin:12px 0}.bar-label{font-size:13px;color:#364f5f;margin-bottom:6px}.bar-label b{color:#233e4d;font-variant-numeric:tabular-nums}
.bar-track{height:7px;background:#edf3f4;border-radius:5px;overflow:hidden}.bar-fill{height:100%;background:#519b7f;border-radius:5px}
.charts>.panel:nth-child(2) .bar-fill{background:#5b88b5}
.recent-panel{padding:0;overflow:hidden}.recent-panel .section-heading{padding:15px 18px 12px;margin:0}.recent-panel table{min-width:630px}
.table-wrap{border-radius:8px;border-color:#dce5eb;box-shadow:0 2px 4px #22394903}table{font-size:13px}
th{color:#365061;background:#edf3f6;border-color:#dce5eb;font-size:12px;padding:11px 12px}
td{color:#263d4c;border-color:#e9eef2;padding:11px 12px}td small{color:#536b7b;font-size:12px;margin-top:3px}tbody tr:hover{background:#f3f8f6}
.title-cell{font-weight:550}.row-actions button,.row-actions a{font-size:12px}
.badge{border-radius:5px;font-size:12px;padding:3px 8px;background:#e5f2eb;color:#1f6548;font-weight:500}
.badge.MATCHED,.badge.PENDING_SERVICE,.badge.provided{background:#e8f0fb;color:#315f9b}
.badge.PENDING,.badge.DRAFT,.badge.SUBMITTED,.badge.CONFIRMING,.badge.demo{background:#fff0d8;color:#835315}.demo-label{color:#795820}
.pagination{margin-top:14px;font-size:13px;gap:10px}.batchbar{border-radius:6px;border-color:#bcd5c9;background:#eaf5ee;color:#244c39}
.notice{background:#eef5fa;border-color:#d4e3ed;color:#34566c;border-radius:6px;font-size:13px}.success-note,.error{border-radius:6px}
.modal{background:#102b3a73;backdrop-filter:blur(2px)}.dialog{border:0;border-radius:11px;box-shadow:0 24px 80px #122e3d33}
.dialog-header{padding:16px 20px;border-color:#e0e8ed;background:#fff}.dialog-header h2{display:flex;align-items:center;gap:9px}
.dialog-header h2::before{content:'';width:4px;height:16px;background:#298268;border-radius:3px}.dialog-body{padding:18px 22px}
.dialog-footer{background:#f5f8fa;border-color:#e0e8ed;padding:12px 22px}.dialog-footer .primary{min-width:76px}
.repeat-row{border-radius:7px;background:#f8fafb;border-color:#dfe7ec}.detail-grid{background:#f2f6f8;border-radius:7px}
.detail-grid label{color:#4d6575;font-size:12px}.provenance summary{color:#355465}
.settings-tabs{gap:4px;border-color:#dce5eb}.settings-tabs button{min-height:42px;padding:9px 13px;color:#405d6f}
.settings-tabs button:hover{background:#e7f1ec}.settings-tabs button.active{color:#176b54;border-color:#176b54;background:#e9f4ee;border-radius:6px 6px 0 0}
.settings-page .panel{padding:20px}.settings-page .form-grid{max-width:none}.settings-counts{flex-wrap:wrap;gap:12px;margin-top:14px}
.settings-counts>span{background:#f1f6f8;border:1px solid #dfe8ed;border-radius:7px;padding:10px 16px;color:#405d6e}
.settings-counts b{color:#1c503f;font-size:22px}.settings-actions{border-top:1px solid #e4ebef;margin-top:20px;padding:16px 0 0}
.login{background:#edf3f2;background-image:radial-gradient(ellipse at 18% 20%,#cfe5db80,transparent 52%),radial-gradient(ellipse at 90% 85%,#d7e3ef80,transparent 48%);padding:24px}
.login-card{width:400px;max-width:100%;padding:32px;border:1px solid #fff;border-radius:14px;box-shadow:0 16px 60px #20453514,0 2px 8px #20453505}
.login-brand{padding-bottom:20px;gap:13px;border-bottom:1px solid #e9eff0;margin-bottom:22px}.login-brand img{width:50px;height:50px}
.login-brand h1{color:#173b36;font-size:24px}.login-brand p{font-size:13px;color:#526d74}
.login-card>label{margin-top:18px}.login-card>input{min-height:41px}.login-card>button{min-height:42px;margin-top:25px}
@media(min-width:1600px){.main{padding-left:30px;padding-right:30px}}
@media(max-width:1200px){
 .sidebar{width:206px}.main{margin-left:206px;width:calc(100% - 206px);padding:0 16px 22px}.brand{padding:16px}
 .stat{padding:15px 12px;gap:10px}.stats{gap:10px}.stat-icon{width:36px;height:36px;border-radius:9px}.stat b{font-size:25px}
 .content-nav{padding-left:21px}.toolbar .search{width:230px}
}
@media(max-width:900px){.stats{grid-template-columns:repeat(2,1fr)}.stat{min-height:85px}}
@media(max-width:760px){
 .sidebar{position:static;width:100%;box-shadow:none}.brand{height:68px;padding:12px 15px}.brand img{width:34px;height:34px}
 .brand small{font-size:11px}.brand>div{font-size:17px}.nav{padding:8px 10px 10px;gap:4px}
 .nav>button{font-size:13px;padding:7px 10px;margin:0;min-height:34px}.nav .icon{width:16px;height:16px}
 .nav button.active::before{display:none}.nav-title{display:none}
 .content-nav{display:grid;width:100%;padding:8px 0 0;border-top:1px solid #ffffff14;grid-template-columns:repeat(4,minmax(0,1fr));order:20;gap:4px}
 .content-nav button{justify-content:center;font-size:12px;padding:7px 3px;min-height:32px;margin:0}
 .logout{top:19px;right:12px;border:1px solid #ffffff35;border-radius:5px;padding:5px 8px;font-size:12px}.logout .icon{width:15px;height:15px}
 .main{margin:0;width:100%;padding:0 12px 22px}.page-header{height:76px;margin-bottom:14px}h1{font-size:21px}
 .stats{margin-bottom:18px;gap:10px}.stat{padding:13px 12px;min-height:88px}.stat-copy>span{font-size:12px}.stat b{font-size:25px}
 .overview-toolbar{margin-top:0}.charts{grid-template-columns:1fr;gap:0}.charts .panel{min-height:0}.recent-panel{overflow:auto}
 .toolbar .search{width:100%}.toolbar>select{flex:1;min-width:120px}.toolbar>.grow{flex:1;min-width:60px}.toolbar{gap:8px}
 .settings-tabs{gap:2px}.settings-tabs button{padding:8px 10px;min-height:38px;font-size:13px}.settings-page .panel{padding:15px}
 .settings-counts>span{flex:1;padding:8px 10px;white-space:nowrap}.settings-counts{gap:8px;font-size:12px}.settings-counts b{font-size:19px}
 .dialog-body{padding:14px}.dialog-header,.dialog-footer{padding:12px 14px}.form-grid,.field-editor,.detail-grid,.metadata{grid-template-columns:1fr}
 .settings-actions{flex-wrap:wrap}.login-card{padding:26px}
}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
