:root{--bg:#0b1e32;--panel:#102a46;--panel2:#143652;--line:#234764;--text:#f4f8ff;--muted:#9fb2c8;--cyan:#3fd2ff;--blue:#5e9dff;--green:#32d296;--orange:#ffb648;--red:#ff5f6d;--purple:#a98bff;--shadow:0 12px 32px rgba(0,0,0,.24);--r:16px}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}a{color:inherit;text-decoration:none}body{background:radial-gradient(1100px 600px at 70% -15%,#153f67 0,#0b1e32 58%) fixed}.topbar{height:66px;position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;padding:0 24px;background:rgba(7,25,42,.94);border-bottom:1px solid var(--line)}.brand{font-size:22px;font-weight:800;cursor:pointer}.brand small{font-size:11px;font-weight:500;color:var(--muted);display:block}.top-actions{display:flex;gap:8px}.pill,.btn,.select,.input{background:var(--panel);border:1px solid var(--line);color:var(--text);border-radius:10px;padding:9px 11px;font-size:13px}.btn{cursor:pointer;display:inline-flex;align-items:center;gap:7px}.btn.primary{background:#00b8dc;color:#fff;font-weight:600}.btn.primary:hover{background:#00d8f8;color:#fff}.layout{display:grid;grid-template-columns:220px 1fr;min-height:calc(100vh - 66px)}.sidebar{border-right:1px solid var(--line);background:rgba(8,27,45,.8);padding:18px 12px;position:sticky;top:66px;height:calc(100vh - 66px);overflow:auto}.nav-title{font-size:11px;color:#6f89a4;text-transform:uppercase;letter-spacing:1px;padding:10px}.nav a{display:flex;gap:10px;padding:10px;border-radius:10px;color:#c9d7e7;font-size:13px}.nav a:hover,.nav a.active{background:var(--panel);color:white}.content{padding:20px 22px 40px;min-width:0}.page-head{display:flex;justify-content:space-between;gap:12px;margin-bottom:16px}.page-head h1{font-size:23px;margin:0 0 4px}.sub{color:var(--muted);font-size:12px}.grid{display:grid;gap:14px}.kpi-grid{grid-template-columns:repeat(6,minmax(0,1fr));margin-bottom:14px}.kpi{background:linear-gradient(180deg,#102c49,#0e2741);border:1px solid var(--line);border-radius:var(--r);padding:14px;box-shadow:var(--shadow);min-height:96px}.kpi .label{color:var(--muted);font-size:11px}.kpi .value{font-size:28px;font-weight:800;margin:8px 0 2px}.kpi .note{font-size:10px;color:#7390aa}.kpi.green .value{color:var(--green)}.kpi.red .value{color:var(--red)}.kpi.orange .value{color:var(--orange)}.kpi.cyan .value{color:var(--cyan)}.panel{background:linear-gradient(180deg,#102a46,#0d233b);border:1px solid var(--line);border-radius:var(--r);box-shadow:var(--shadow)}.panel-head{display:flex;justify-content:space-between;padding:14px 16px 6px}.panel h3{font-size:14px;margin:0}.panel-body{padding:12px 16px 16px}.main-row{grid-template-columns:1fr 1fr}.two-col{grid-template-columns:repeat(2,minmax(0,1fr))}.three-col{grid-template-columns:repeat(3,minmax(0,1fr))}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:14px}.category-card{min-height:168px;position:relative;overflow:hidden;padding:16px;border-radius:var(--r);border:1px solid var(--line);background:linear-gradient(135deg,#143652,#0b253d);box-shadow:var(--shadow)}.category-card:hover{transform:translateY(-2px)}.category-card .device-art{position:absolute;right:-6px;bottom:-18px;width:120px;height:120px;border-radius:26px;background:radial-gradient(circle at 40% 35%,rgba(63,210,255,.35),rgba(63,210,255,.05) 55%,transparent 60%);border:1px solid rgba(63,210,255,.18);transform:rotate(-10deg)}.category-card h3{margin:0 0 8px}.cat-count{font-size:30px;font-weight:800}.cat-stats{display:flex;gap:12px;margin-top:10px;font-size:11px;color:#b6c9da}.dot{width:8px;height:8px;border-radius:50%;display:inline-block;margin-right:4px}.dot.green{background:var(--green)}.dot.red{background:var(--red)}.dot.orange{background:var(--orange)}.dot.blue{background:var(--blue)}.donut-wrap{display:flex;gap:24px;align-items:center;justify-content:center;min-height:250px}.donut{width:185px;height:185px;border-radius:50%;background:conic-gradient(var(--green) 0 64%,var(--orange) 64% 82%,#607089 82% 100%);position:relative}.donut:after{content:'Fleet';position:absolute;inset:28px;border-radius:50%;background:#0e2944;display:grid;place-items:center;font-weight:800}.legend{display:grid;gap:9px;font-size:12px}.legend-row{display:flex;justify-content:space-between;gap:22px;color:#bed0e0}.bar-row{display:grid;grid-template-columns:110px 1fr 44px;gap:10px;align-items:center;margin:11px 0;font-size:12px}.bar{height:8px;background:#173652;border-radius:10px;overflow:hidden}.bar i{display:block;height:100%;border-radius:10px;background:var(--cyan)}.alert-list{display:grid;gap:8px}.alert{display:grid;grid-template-columns:10px 1fr auto;gap:10px;padding:10px 0;border-bottom:1px solid rgba(35,71,100,.7);font-size:12px}.section-title{font-size:13px;font-weight:700;margin:18px 0 10px}.stats-groups{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:14px}.stat-card{padding:14px}.stat-row{display:grid;grid-template-columns:1fr auto;gap:10px;padding:9px 0;border-bottom:1px solid rgba(35,71,100,.6);font-size:12px}.stat-value{font-weight:700}.source{display:inline-flex;padding:3px 7px;border-radius:999px;font-size:9px;border:1px solid var(--line);color:#b9cad9;margin-left:6px}.source.live{border-color:#266f63;color:#63e5ba}.source.manual{border-color:#82602c;color:#ffc266}.source.imported{border-color:#4d6286;color:#8eb8ff}.source.derived{border-color:#654d87;color:#c6a7ff}.datatable-card{margin-top:14px}.table-tools{display:flex;justify-content:space-between;gap:10px;padding:0 16px 12px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:11px}.data-table th{background:#102a46;color:#98adc2;text-align:left;padding:11px;border-bottom:1px solid var(--line);white-space:nowrap}.data-table td{padding:10px 11px;border-bottom:1px solid rgba(35,71,100,.55);white-space:nowrap}.data-table tbody tr:hover{background:#12324f}.status{display:inline-flex;gap:6px}.status i{width:7px;height:7px;border-radius:50%}.status.ok i{background:var(--green)}.status.warn i{background:var(--orange)}.status.err i{background:var(--red)}.pager{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:12px 16px;font-size:11px;color:var(--muted)}.tabs{display:flex;gap:7px;border-bottom:1px solid var(--line);margin-bottom:14px}.tab{padding:10px 12px;font-size:12px;color:var(--muted);cursor:pointer}.tab.active{color:white;border-bottom:2px solid var(--cyan)}.tab-pane{display:none}.tab-pane.active{display:block}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.field label{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.field input,.field select,.field textarea{width:100%;background:#0b2239;border:1px solid var(--line);border-radius:9px;color:#fff;padding:9px 10px;font-size:12px}.field textarea{min-height:80px}.field.span2{grid-column:span 2}.field.span3{grid-column:span 3}.readonly{background:#112a43!important;color:#90a5ba!important}.badge{display:inline-flex;padding:3px 7px;border:1px solid var(--line);border-radius:999px;font-size:10px}.badge.keep{color:#63e5ba;border-color:#266f63}.badge.optional{color:#ffc266;border-color:#82602c}.badge.remove{color:#ff8a95;border-color:#7b3941}.cap-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.cap{padding:11px;background:#0b2239;border:1px solid var(--line);border-radius:10px;font-size:11px;display:flex;justify-content:space-between}.yes{color:var(--green)}.no{color:#6e8298}.conditional{color:var(--orange)}.map-screen{height:calc(100vh - 190px);position:relative;border-radius:16px;overflow:hidden;border:1px solid var(--line);background:linear-gradient(24deg,transparent 48%,rgba(89,122,151,.22) 49%,rgba(89,122,151,.22) 51%,transparent 52%) 0 0/190px 130px,linear-gradient(-18deg,transparent 48%,rgba(89,122,151,.18) 49%,rgba(89,122,151,.18) 51%,transparent 52%) 0 0/240px 150px,radial-gradient(circle at 50% 45%,#163c5f,#0a1c2f 68%)}.map-road{position:absolute;height:4px;background:#a87d35;opacity:.75;border-radius:10px}.facility{position:absolute}.facility-icon{width:34px;height:34px;border-radius:9px;background:#e8f1fa;color:#17334d;display:grid;place-items:center;font-weight:900}.facility-card{position:absolute;left:42px;top:-10px;min-width:210px;background:rgba(9,31,51,.94);border:1px solid var(--line);border-radius:12px;padding:10px}.facility-card h4{margin:0 0 8px;font-size:12px}.facility-stats{display:flex;gap:10px;font-size:10px;color:#b9cad9}.notice{padding:10px 12px;border:1px solid #3a5671;background:#102b45;border-radius:10px;font-size:11px;color:#b9cad9}@media(max-width:1250px){.kpi-grid{grid-template-columns:repeat(3,1fr)}.category-grid{grid-template-columns:repeat(2,1fr)}.form-grid{grid-template-columns:repeat(2,1fr)}.cap-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:900px){.layout{grid-template-columns:1fr}.sidebar{display:none}.main-row,.two-col,.stats-groups{grid-template-columns:1fr}.category-grid{grid-template-columns:1fr}}

/* Modal / Popup */
.modal-backdrop{
  position:fixed; inset:0; z-index:1000;
  display:none; align-items:center; justify-content:center;
  padding:28px; background:rgba(2,12,22,.76); backdrop-filter:blur(4px);
}
.modal-backdrop.open{display:flex}
.modal{
  width:min(920px,96vw); max-height:88vh; overflow:auto;
  background:linear-gradient(180deg,#102a46,#0d233b);
  border:1px solid var(--line); border-radius:18px;
  box-shadow:0 24px 80px rgba(0,0,0,.55);
}
.modal-lg{width:min(1100px,96vw)}
.modal-head{
  position:sticky; top:0; z-index:2;
  display:flex; align-items:center; justify-content:space-between;
  padding:15px 18px; background:#102a46; border-bottom:1px solid var(--line)
}
.modal-head h3{margin:0;font-size:15px}
.modal-body{padding:18px}
.modal-actions{
  display:flex; justify-content:flex-end; gap:8px;
  padding:14px 18px; border-top:1px solid var(--line)
}
.icon-btn{
  width:34px;height:34px;border-radius:9px;display:grid;place-items:center;
  border:1px solid var(--line);background:var(--panel);color:var(--text);cursor:pointer
}
.icon-btn:hover{background:var(--panel2)}
body.modal-open{overflow:hidden}


/* v5 approved category artwork + green navigation language */
.category-card{
  padding-right:165px;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease;
}
.category-card:hover{
  transform:translateY(-2px);
  border-color:rgba(25,185,214,.56);
  box-shadow:0 16px 42px rgba(0,0,0,.30),0 0 0 1px rgba(25,185,214,.10) inset;
}
.category-card .device-art{display:none!important}
.category-device-icon{
  position:absolute;
  right:8px;
  bottom:4px;
  width:150px;
  height:125px;
  object-fit:contain;
  object-position:center;
  pointer-events:none;
  filter:drop-shadow(0 0 12px rgba(63,210,255,.18));
  opacity:.98;
}
.nav a{
  position:relative;
  align-items:center;
  border-left:3px solid transparent;
}
.nav a i{
  width:17px;
  min-width:17px;
  text-align:center;
}
.nav a.active{
  color:var(--green);
  background:linear-gradient(90deg,rgba(50,210,150,.14),rgba(16,42,70,.82));
  border-left-color:var(--green);
}
.nav a.active i{color:var(--green)}
.nav a:hover{
  color:#fff;
  background:linear-gradient(90deg,rgba(63,210,255,.08),rgba(16,42,70,.72));
}
.category-page-head{
  align-items:center;
  padding:14px 16px;
  background:linear-gradient(135deg,rgba(20,54,82,.88),rgba(11,37,61,.70));
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
}
.category-title-wrap{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}
.detail-device-icon{
  width:116px;
  height:96px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:14px;
  background:radial-gradient(circle at 45% 45%,rgba(63,210,255,.11),rgba(11,37,61,.30) 62%);
  border:1px solid rgba(63,210,255,.22);
}
.detail-device-icon img{
  width:108px;
  height:88px;
  object-fit:contain;
  filter:drop-shadow(0 0 10px rgba(63,210,255,.20));
}
.category-page-head h1{margin-bottom:6px}
.category-page-head .sub{max-width:720px;line-height:1.45}
.topbar .brand{letter-spacing:-.15px}
.panel,.kpi,.category-card{
  border-color:#28506e;
}
.kpi.green{
  border-color:rgba(50,210,150,.28);
}


/* ===== v6 approved Arc BioMed visual language ===== */
:root{--green2:#37d37f;--topbar-h:68px;--sidebar-w:246px}
.topbar{height:var(--topbar-h);padding:0 26px;background:linear-gradient(180deg,#061a2c,#071d30);border-bottom:1px solid #183a57}
.topbar-brand-wrap{display:flex;align-items:center;gap:20px}.hamburger{font-size:22px;color:#d8e6f1}
.brand-lockup{display:flex;align-items:center;gap:18px}.brand-name{font-size:24px;font-weight:800}.brand-name .arc{color:#3797ff}.brand-name .bio{color:#36cf7a}.brand-sep{height:30px;width:1px;background:#607589}.brand-subtitle{font-size:15px;color:#f3f7fb}
.top-user{display:flex;align-items:center;gap:15px}.top-icon{font-size:18px;color:#d2deea;position:relative}.notify-dot{position:absolute;right:-7px;top:-7px;background:#ff3e47;color:white;font-size:8px;width:15px;height:15px;border-radius:50%;display:grid;place-items:center}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#176ac7}.user-meta{font-size:11px;color:#edf4fa;line-height:1.3}.user-meta small{display:block;color:#9fb2c4}
.layout{grid-template-columns:var(--sidebar-w) 1fr;min-height:calc(100vh - var(--topbar-h))}.sidebar{top:var(--topbar-h);height:calc(100vh - var(--topbar-h));padding:8px 0 22px;background:linear-gradient(180deg,#071b2e,#071929);border-right:1px solid #173a57;position:sticky}.nav-title{display:none}.nav{padding:7px 8px}.nav a{height:48px;padding:0 16px;margin:1px 0;border-radius:0 9px 9px 0;border-left:3px solid transparent;color:#dfe8f1;align-items:center}.nav a i{font-size:17px;width:18px;text-align:center}.nav a.active{color:var(--green2);background:linear-gradient(90deg,rgba(55,211,127,.16),rgba(22,51,75,.35));border-left-color:var(--green2)}.nav a.active i{color:var(--green2)}.sidebar-footer{position:absolute;bottom:20px;left:24px;font-size:10px;color:#8fa3b5;line-height:1.5}.sidebar-footer strong{display:block;color:#dce7ef}
.content{padding:18px 24px 34px}
.breadcrumb{display:flex;align-items:center;gap:8px;color:#98acbf;font-size:10px;margin-bottom:14px}
.category-hero{display:grid;grid-template-columns:minmax(0,1.08fr) minmax(570px,.92fr);gap:22px;align-items:center;margin-bottom:14px}
.category-identity{display:grid;grid-template-columns:178px 1fr;gap:22px;align-items:center}.hero-icon{height:160px;border-radius:17px;border:1px solid #1c5e89;background:radial-gradient(circle at 50% 50%,rgba(44,181,242,.17),rgba(7,37,61,.63) 65%);display:grid;place-items:center}.hero-icon img{width:150px;height:138px;object-fit:contain;filter:drop-shadow(0 0 13px rgba(43,211,255,.26))}
.hero-title-line{display:flex;align-items:center;gap:10px}.hero-title-line h1{font-size:27px;margin:0}.active-badge{font-size:11px;color:#48df83;background:#093a2a;border:1px solid #166343;border-radius:7px;padding:6px 10px}.hero-desc{font-size:12px;line-height:1.55;color:#c3d0dc;margin:10px 0 22px;max-width:610px}.hero-stats{display:flex}.hero-stat{padding:0 18px;min-width:110px;border-right:1px solid #183a56}.hero-stat:first-child{padding-left:0}.hero-stat:last-child{border-right:0}.hero-stat label{display:block;font-size:10px;color:#91a5b8;margin-bottom:7px}.hero-stat strong{font-size:20px}.hero-stat .good{color:#35d67e}.hero-stat .bad{color:#ff4f58}
.hero-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.hero-kpi{border:1px solid #214762;border-radius:11px;background:linear-gradient(160deg,#0d2944,#0a2137);min-height:87px;padding:13px;display:grid;grid-template-columns:38px 1fr;gap:10px}.hero-kpi-icon{width:36px;height:36px;border-radius:8px;display:grid;place-items:center;font-size:20px}.hero-kpi-icon.green{background:#0b3a2b;color:#48df83}.hero-kpi-icon.orange{background:#3b311b;color:#ffae22}.hero-kpi-icon.red{background:#3a1f27;color:#ff505c}.hero-kpi-icon.blue{background:#0a365c;color:#2f9cff}.hero-kpi-icon.purple{background:#2a2145;color:#a877ff}.hero-kpi-icon.cyan{background:#0b3740;color:#31d8e6}.hero-kpi label{font-size:10px;color:#c4d1dc}.hero-kpi strong{font-size:20px;display:block}.hero-kpi small{font-size:9px}.hero-kpi small.green{color:#48df83}.hero-kpi small.orange{color:#ffae22}.hero-kpi small.red{color:#ff505c}.hero-kpi small.blue{color:#2f9cff}.hero-kpi small.purple{color:#a877ff}.hero-kpi small.cyan{color:#31d8e6}
.category-tabs{display:flex;align-items:center;border:1px solid #193e5c;background:#0a2238;border-radius:9px;overflow:hidden;margin-bottom:16px;padding:0 6px}.category-tab{font-size:11px;color:#c8d4df;padding:13px 17px;border-bottom:2px solid transparent;display:flex;gap:8px;align-items:center;cursor:pointer}.category-tab.active{color:#39d27e;border-bottom-color:#39d27e;background:rgba(57,210,126,.035)}.category-pane{display:none}.category-pane.active{display:block}
.dashboard-grid-top{display:grid;grid-template-columns:1.05fr .82fr .58fr;gap:14px}.dashboard-grid-bottom{display:grid;grid-template-columns:.86fr .75fr 1.13fr;gap:14px;margin-top:14px}.chart-card{background:linear-gradient(180deg,#0c263f,#0a2035);border:1px solid #1e4665;border-radius:10px;min-height:230px}.card-title{padding:13px 14px 3px;font-size:12px;font-weight:700}.card-title span{font-weight:400;color:#a7b6c5}.chart-body{padding:10px 14px 14px}.svg-chart{width:100%;height:165px}.svg-chart text{fill:#9baec0;font-size:9px}.grid-line{stroke:#1d405c}.health-line{fill:none;stroke:#36d071;stroke-width:2}.error-line{fill:none;stroke:#ff564c;stroke-width:2}.chart-legend{display:flex;justify-content:center;gap:28px;font-size:9px;color:#bdcbd7}
.facility-donut-wrap{display:flex;gap:20px;align-items:center}.facility-donut{width:155px;height:155px;border-radius:50%;background:conic-gradient(#348dec 0 30%,#48ae63 30% 55%,#825fd3 55% 70%,#a26cdf 70% 85%,#f49a12 85% 95%,#28c2d2 95% 100%);position:relative;flex:0 0 auto}.facility-donut:after{content:"";position:absolute;inset:40px;border-radius:50%;background:#0b2238}.donut-center{position:absolute;inset:0;z-index:2;display:grid;place-items:center;text-align:center;font-size:11px}.donut-center strong{font-size:22px;display:block}.facility-legend{display:grid;gap:9px;font-size:10px;flex:1}.facility-legend-row{display:grid;grid-template-columns:12px 1fr auto;gap:7px}.legend-square{width:9px;height:9px;border-radius:2px}
.category-info-card{display:grid;grid-template-columns:108px 1fr;gap:12px;align-items:center;padding:16px}.category-info-icon{height:104px;border:1px solid #165982;border-radius:10px;background:#0b3150;display:grid;place-items:center}.category-info-icon img{width:98px;height:90px;object-fit:contain}.category-info-card p{font-size:10px;line-height:1.45;color:#a9bac9}.category-info-card .total{font-size:24px;margin:7px 0}
.alarm-table{width:100%;border-collapse:collapse;font-size:10px}.alarm-table th,.alarm-table td{padding:9px 8px;border-bottom:1px solid #173952;text-align:left}.alarm-table th{color:#aebdca}.recent-link{color:#2ca7ff;font-size:10px;margin-top:12px;display:inline-block}
.pm-ring-wrap{display:flex;gap:20px;align-items:center;justify-content:center;padding:16px}.pm-ring{width:110px;height:110px;border-radius:50%;background:conic-gradient(#45bd63 0 92%,#f3a11a 92% 97%,#f04b51 97% 100%);position:relative}.pm-ring:after{content:attr(data-pct);position:absolute;inset:21px;border-radius:50%;background:#0b2238;display:grid;place-items:center;font-weight:800;font-size:20px}.pm-list{display:grid;gap:12px;font-size:10px}.pm-row{display:grid;grid-template-columns:10px 1fr auto;gap:8px}
.detail-section-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.detail-section-panel{background:linear-gradient(180deg,#0c263f,#0a2035);border:1px solid #1e4665;border-radius:10px;padding:15px}.detail-stat-row{display:grid;grid-template-columns:1fr auto;gap:12px;padding:10px 0;border-bottom:1px solid #173952;font-size:11px}.detail-stat-row:last-child{border-bottom:0}
@media(max-width:1350px){.category-hero{grid-template-columns:1fr}.dashboard-grid-top{grid-template-columns:1fr 1fr}.dashboard-grid-top .category-side-info{grid-column:1/-1}}@media(max-width:980px){.hero-kpis{grid-template-columns:repeat(2,1fr)}.dashboard-grid-top,.dashboard-grid-bottom,.detail-section-grid{grid-template-columns:1fr}}


/* v7 icon clipping fix — preserve approved artwork but keep it inside rounded card geometry */
.category-device-icon{
  border-radius:28px !important;
  clip-path:inset(0 round 28px);
  overflow:hidden;
  mix-blend-mode:screen;
}
.hero-icon{
  overflow:hidden;
}
.hero-icon img{
  border-radius:22px;
  clip-path:inset(0 round 22px);
  mix-blend-mode:screen;
}
.category-info-icon{
  overflow:hidden;
}
.category-info-icon img{
  border-radius:16px;
  clip-path:inset(0 round 16px);
  mix-blend-mode:screen;
}


/* v8 unified dark form controls — modals, capability editor, KPI config, P M/C templates */
select,
.modal select,
.cap select,
.field select,
.select{
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;
  background-color:#0b2943 !important;
  color:#eef6ff !important;
  border:1px solid #2a5574 !important;
  border-radius:8px !important;
  min-height:34px;
  padding:7px 34px 7px 10px !important;
  font:inherit;
  font-size:11px !important;
  line-height:1.2;
  cursor:pointer;
  outline:none;
  box-shadow:none !important;
  background-image:
    linear-gradient(45deg,transparent 50%,#9bb0c3 50%),
    linear-gradient(135deg,#9bb0c3 50%,transparent 50%),
    linear-gradient(to right,#244762,#244762) !important;
  background-position:
    calc(100% - 15px) 50%,
    calc(100% - 10px) 50%,
    calc(100% - 30px) 50% !important;
  background-size:5px 5px,5px 5px,1px 18px !important;
  background-repeat:no-repeat !important;
}
select:hover,
.modal select:hover,
.cap select:hover,
.field select:hover,
.select:hover{
  border-color:#3c7397 !important;
  background-color:#0d304d !important;
}
select:focus,
.modal select:focus,
.cap select:focus,
.field select:focus,
.select:focus{
  border-color:#2f9cff !important;
  box-shadow:0 0 0 2px rgba(47,156,255,.12) !important;
}
select option{
  background:#0b2943;
  color:#eef6ff;
}

/* Keep all editor fields visually consistent */
.modal input,
.modal textarea,
.modal .input,
.cap input,
.field input,
.field textarea{
  background:#0b2943 !important;
  color:#eef6ff !important;
  border:1px solid #2a5574 !important;
  border-radius:8px !important;
}
.modal input:focus,
.modal textarea:focus,
.cap input:focus,
.field input:focus,
.field textarea:focus{
  border-color:#2f9cff !important;
  outline:none;
  box-shadow:0 0 0 2px rgba(47,156,255,.12) !important;
}
.readonly{
  background:#10283e !important;
  color:#91a8ba !important;
  border-color:#25445d !important;
}
.cap{
  align-items:center;
}
.cap select{
  width:128px;
  flex:0 0 128px;
}


/* v10 management CRUD modal helpers */
.modal-backdrop{position:fixed;inset:0;z-index:1000;display:none;align-items:center;justify-content:center;padding:28px;background:rgba(2,12,22,.76);backdrop-filter:blur(4px)}
.modal-backdrop.open{display:flex}
.modal{width:min(920px,96vw);max-height:88vh;overflow:auto;background:linear-gradient(180deg,#102a46,#0d233b);border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 80px rgba(0,0,0,.55)}
.modal-lg{width:min(1100px,96vw)}
.modal-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;padding:15px 18px;background:#102a46;border-bottom:1px solid var(--line)}
.modal-head h3{margin:0;font-size:15px}.modal-body{padding:18px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding:14px 18px;border-top:1px solid var(--line)}
.icon-btn{width:34px;height:34px;border-radius:9px;display:grid;place-items:center;border:1px solid var(--line);background:var(--panel);color:var(--text);cursor:pointer}
.icon-btn:hover{background:var(--panel2)}body.modal-open{overflow:hidden}
.action-cell{display:flex;gap:6px}


/* ===== v11 exact approved artwork + main dashboard composition ===== */
.brand-name .arc{color:#f5f8fc !important}
.brand-name .bio{color:#35c9ec !important}

/* exact approved icon artwork: do not recolor, screen-blend, clip, or add CSS glow */
.category-device-icon,
.hero-icon img,
.category-info-icon img{
  mix-blend-mode:normal !important;
  filter:none !important;
  clip-path:none !important;
  border-radius:0 !important;
}
.category-device-icon{
  position:absolute;
  right:3px;
  bottom:0;
  width:168px;
  height:142px;
  object-fit:contain;
  opacity:1;
  pointer-events:none;
}
.hero-icon{
  overflow:hidden;
  background:#0b2b47 !important;
}
.hero-icon img{
  width:164px;
  height:150px;
  object-fit:contain;
}
.category-info-icon{
  overflow:hidden;
  background:#0b2b47 !important;
}
.category-info-icon img{
  width:112px;
  height:102px;
  object-fit:contain;
}

/* Main dashboard: 3x3 categories + 50/50 lower panels + fixed KPI rail */
.dashboard-main-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 220px;
  gap:12px;
  align-items:start;
}
.dashboard-main-left{min-width:0}
.dashboard-kpi-rail{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
}
.dashboard-kpi-rail .kpi{
  min-height:80px;
  padding:12px 13px;
  box-shadow:none;
}
.dashboard-kpi-rail .kpi .value{font-size:25px;margin:5px 0 1px}
.dashboard-kpi-rail .kpi .label{font-size:10px}
.dashboard-kpi-rail .kpi .note{font-size:9px}
.dashboard-main-left .category-grid{margin-top:0}
.dashboard-main-left .category-card{
  min-height:122px;
  padding:14px 160px 12px 14px;
}
.dashboard-main-left .category-card h3{font-size:15px;margin:0 0 7px}
.dashboard-main-left .cat-count{font-size:28px}
.dashboard-main-left .cat-stats{font-size:9px;margin-top:7px}
.dashboard-main-left .main-row{
  grid-template-columns:1fr 1fr !important;
  margin-top:12px;
}
.dashboard-main-left .main-row .panel{
  min-height:188px;
}
.dashboard-main-left .donut-wrap{min-height:160px}
.dashboard-main-left .donut{width:125px;height:125px}
.dashboard-main-left .donut:after{inset:28px}
.dashboard-main-left .panel-body{padding-top:7px}
.dashboard-main-left .bar-row{margin:7px 0;font-size:10px}
.dashboard-main-left .section-title{margin:10px 0 6px;font-size:11px}
.dashboard-main-left .alert{padding:6px 0;font-size:10px}

@media(max-width:1200px){
  .dashboard-main-layout{grid-template-columns:1fr}
  .dashboard-kpi-rail{grid-template-columns:repeat(3,1fr)}
}


/* ===== v13 main dashboard layout tuning ===== */
.dashboard-content{
  width:100%;
  min-width:0;
}
.dashboard-page-head{
  margin-bottom:12px;
}
.dashboard-main-layout{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 220px !important;
  gap:12px !important;
  align-items:start !important;
  width:100% !important;
}
.dashboard-main-left{
  min-width:0 !important;
  width:100% !important;
}
.dashboard-main-left .category-grid{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
  width:100% !important;
  margin:0 !important;
}
.dashboard-main-left .category-card{
  min-width:0 !important;
  min-height:140px !important;
  height:140px !important;
  padding:14px 164px 13px 14px !important;
}
.dashboard-main-left .category-card h3{
  font-size:15px !important;
  margin:0 0 8px !important;
}
.dashboard-main-left .cat-count{
  font-size:28px !important;
  line-height:1.05 !important;
}
.dashboard-main-left .cat-stats{
  font-size:10px !important;
  margin-top:8px !important;
}
.dashboard-main-left .category-device-icon{
  right:4px !important;
  bottom:0 !important;
  width:164px !important;
  height:132px !important;
}
.dashboard-bottom-row{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
  gap:10px !important;
  margin-top:10px !important;
}
.dashboard-bottom-row > .panel{
  min-width:0 !important;
  width:100% !important;
  min-height:214px !important;
  height:214px !important;
}
.compact-donut-wrap{
  min-height:164px !important;
  height:164px !important;
}
.dashboard-donut{
  width:122px !important;
  height:122px !important;
}
.dashboard-donut:after{
  inset:28px !important;
}
.dashboard-kpi-rail{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:8px !important;
  width:220px !important;
}
.dashboard-kpi-rail .kpi{
  min-height:104px !important;
  height:104px !important;
  padding:12px !important;
}
.dashboard-kpi-rail .kpi .value{
  font-size:24px !important;
  margin:5px 0 2px !important;
}
.dashboard-kpi-rail .kpi .label{font-size:10px !important}
.dashboard-kpi-rail .kpi .note{font-size:9px !important}
#backView{
  width:100%;
}
@media(max-width:1350px){
  .dashboard-main-layout{
    grid-template-columns:1fr !important;
  }
  .dashboard-kpi-rail{
    width:100% !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
@media(max-width:900px){
  .dashboard-main-left .category-grid{
    grid-template-columns:1fr !important;
  }
  .dashboard-bottom-row{
    grid-template-columns:1fr !important;
  }
  .dashboard-kpi-rail{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}


/* ===== v14 approved Arc BioMed logo + menu accent ===== */
.app-logo{
  display:block;
  width:152px;
  height:42px;
  object-fit:contain;
  object-position:left center;
}

/* Approved cyan/teal logo accent, intentionally darker and calmer for navigation */
:root{
  --brand-cyan:#19b9d6;
  --brand-cyan-dark:#118ca4;
  --brand-cyan-soft:rgba(17,140,164,.15);
}

.nav a.active{
  color:var(--brand-cyan) !important;
  background:linear-gradient(90deg,var(--brand-cyan-soft),rgba(22,51,75,.34)) !important;
  border-left-color:var(--brand-cyan-dark) !important;
}
.nav a.active i{
  color:var(--brand-cyan) !important;
}
.nav a:hover{
  background:linear-gradient(90deg,rgba(17,140,164,.08),rgba(22,51,75,.32)) !important;
}

.active-badge{
  color:#55d9e8 !important;
  background:#0a3440 !important;
  border-color:#176171 !important;
}

/* Preserve sufficient spacing around the new wordmark */
.brand-lockup{
  gap:16px !important;
}
.brand-sep{
  margin-left:1px;
}


/* ===== v15 transparent enlarged Arc BioMed logo ===== */
.app-logo{
  display:block !important;
  width:205px !important;
  height:52px !important;
  max-width:none !important;
  object-fit:contain !important;
  object-position:left center !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  filter:none !important;
}
.brand-lockup{
  display:flex !important;
  align-items:center !important;
  gap:18px !important;
  min-height:56px;
}
.topbar{
  min-height:72px !important;
}
.brand-sep{
  height:34px !important;
  opacity:.8;
}
.brand-subtitle{
  font-size:15px !important;
  white-space:nowrap;
}


/* ===== v16 category card icon sizing ===== */
.dashboard-main-left .category-device-icon{
  width:131px !important;   /* ~20% smaller than 164px */
  height:106px !important;  /* ~20% smaller than 132px */
  right:10px !important;
  bottom:6px !important;
}


/* ===== v17 header alignment ===== */
.topbar{
  padding-left:0 !important;
}
.topbar-brand-wrap{
  gap:0 !important;
  width:auto;
  min-width:0;
}
.brand-lockup{
  gap:0 !important;
  min-height:56px;
}
.app-logo{
  width:205px !important;
  height:52px !important;
  margin-left:20px !important;
  margin-right:0 !important;
}
.brand-sep{
  height:34px !important;
  margin-left:20px !important;
  margin-right:18px !important;
  flex:0 0 1px;
}
/* Align the separator with the right edge of the 246px sidebar */
.topbar-brand-wrap{
  position:relative;
}
.brand-lockup{
  display:grid !important;
  grid-template-columns:246px 1px auto;
  align-items:center;
}
.app-logo{
  grid-column:1;
  justify-self:start;
}
.brand-sep{
  grid-column:2;
  margin:0 !important;
}
.brand-subtitle{
  grid-column:3;
  padding-left:18px;
}


/* ===== v18 unified Arc BioMed brand accent ===== */
:root{
  --brand-accent:#19b9d6;
  --brand-accent-dark:#118ca4;
  --brand-accent-darker:#0d7185;
  --brand-accent-soft:rgba(17,140,164,.14);
  --brand-accent-faint:rgba(17,140,164,.07);
}

/* Navigation / selection */
.nav a.active{
  color:var(--brand-accent) !important;
  background:linear-gradient(90deg,var(--brand-accent-soft),rgba(22,51,75,.34)) !important;
  border-left-color:var(--brand-accent-dark) !important;
}
.nav a.active i{color:var(--brand-accent) !important}
.nav a:hover{
  background:linear-gradient(90deg,var(--brand-accent-faint),rgba(22,51,75,.30)) !important;
}

/* Main Dashboard category-card interaction */
.category-card:hover{
  border-color:rgba(25,185,214,.56) !important;
  box-shadow:
    0 16px 42px rgba(0,0,0,.30),
    0 0 0 1px rgba(25,185,214,.10) inset !important;
}

/* Active tabs / UI selection */
.category-tab.active,
.tab.active{
  color:var(--brand-accent) !important;
  border-bottom-color:var(--brand-accent-dark) !important;
  background:rgba(17,140,164,.045) !important;
}

/* Active state badge is a UI accent, not a clinical health indicator */
.active-badge{
  color:#55d9e8 !important;
  background:#0a3440 !important;
  border-color:#176171 !important;
}

/* Interactive primary emphasis */
.btn.primary{
  background:#126f88 !important;
  border-color:#198ca7 !important;
}
.btn.primary:hover{
  background:#16829d !important;
  border-color:#23a3bf !important;
}

/* Focus accents */
select:focus,
.modal select:focus,
.cap select:focus,
.field select:focus,
.select:focus,
.modal input:focus,
.modal textarea:focus,
.cap input:focus,
.field input:focus,
.field textarea:focus{
  border-color:var(--brand-accent) !important;
  box-shadow:0 0 0 2px rgba(25,185,214,.12) !important;
}

/* Links and small non-semantic accents */
.recent-link{
  color:#28b9d9 !important;
}

/* Placeholder metinleri: beyaza yakin gri (koyu varsayilan tema ile uyumsuzdu) */
input::placeholder,textarea::placeholder{color:#c9d7e7;opacity:.85}

/* Secili sol menu ogesinin arkaplani acildi (primary buton acilmasiyla uyumlu) */


/* Marka rengi (logo kalbi #00d8f8): secili menu */
.nav a.active{background:linear-gradient(90deg,rgba(0,216,248,.30),rgba(0,90,120,.45)) !important;color:#eafcff !important;border-left-color:#00d8f8 !important}
.nav a.active i{color:#00d8f8 !important}

/* Topbar ayraci: sidebar sinirindan (220px) en tepeye tek kesintisiz cizgi */
.topbar-brand-wrap{margin-left:0;height:100%;align-self:stretch}
.brand-lockup{gap:0;height:100%;align-items:stretch}
.brand-sep{display:none}
.brand-logo-box{width:var(--sidebar-w);flex:0 0 var(--sidebar-w);display:flex;align-items:center;justify-content:center;padding:0;height:100%}
.brand-logo-box .app-logo{margin:0 !important;object-position:center center !important}
.topbar:after{content:"";position:absolute;left:calc(var(--sidebar-w) - 1px);top:0;bottom:0;width:1px;background:#173a57}
.brand-subtitle{display:flex;align-items:center;padding-left:24px;font-size:14px;letter-spacing:.05em;text-transform:none;font-weight:400;color:#e6eef6}

.dashboard-main-left .category-card h3{font-weight:300}

/* Kategori yan bilgi karti: Total Devices + sayi ikonun altinda */
.category-info-left{display:flex;flex-direction:column;align-items:center;gap:2px}
.total-label{font-size:10px;color:#a9bac9;margin-top:8px}
.category-info-left .total{margin:0;font-size:26px;font-weight:800}
.category-info-card{align-items:start}
.category-info-card>div:last-child{padding:4px 10px 0 14px}
.category-info-card>div:last-child .btn{font-size:11px;padding:8px 12px;margin-top:8px;white-space:nowrap}

/* Alt sira kartlari: View... linkleri ayni tabana hizali */
.dashboard-grid-bottom .chart-card{display:flex;flex-direction:column}
.dashboard-grid-bottom .chart-card>.chart-body{display:flex;flex-direction:column;flex:1}
.dashboard-grid-bottom .chart-card>.chart-body>.recent-link{margin-top:auto;padding-top:10px}
.dashboard-grid-bottom .chart-card>.recent-link{margin-top:auto;padding-bottom:14px}
.dashboard-grid-bottom .pm-ring-wrap{flex:1}

/* danger button (Faz 2 CRUD delete) */
.btn.danger{border-color:#7b3941;color:#ff8a95}
.btn.danger:hover{background:#3a1620}

/* liste ekranlari: panel kose yuvarlaklari tabloya da islesin; ust arac cubugu bosluklu */
.panel>.table-wrap:first-child{border-top-left-radius:var(--r);border-top-right-radius:var(--r)}
.panel>.table-wrap:last-child{border-bottom-left-radius:var(--r);border-bottom-right-radius:var(--r)}
.panel>.table-tools:first-child{padding-top:14px}
.table-tools .select{min-width:120px}

/* dashboard alt sira 3 kutulu varyant (Fleet Overview | Distribution | Alerts) */
.dashboard-bottom-row.three{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
.dashboard-bottom-row.three > .panel{height:214px !important;min-height:0 !important;overflow:hidden}
@media(max-width:900px){.dashboard-bottom-row.three{grid-template-columns:1fr !important}}

/* Faz 5A: temalı dosya seçici (native file input gizli; .btn tetikler) */
.file-pick{display:inline-flex;align-items:center;gap:10px}
.file-pick input[type=file]{display:none}
.file-pick .file-name{font-size:11px;color:var(--muted);max-width:280px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-pick .btn{height:36px;padding-top:0;padding-bottom:0;align-items:center}
