:root{
  --navy:#17324d;
  --navy-dark:#10283f;
  --navy-deep:#0a1d2f;
  --blue:#2f68a7;
  --gold:#d7a536;
  --green:#27845d;
  --green-bg:#edf7f2;
  --red:#b74444;
  --red-bg:#faeeee;
  --amber:#986d12;
  --amber-bg:#fbf5e6;
  --ink:#1d2b38;
  --text:#3f5364;
  --muted:#718290;
  --line:#d8e0e6;
  --line-soft:#e8edf1;
  --surface:#ffffff;
  --page:#eef2f5;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Arial,"Helvetica Neue",sans-serif;color:var(--ink);background:var(--page)}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
.hidden{display:none!important}
.icon{width:18px;height:18px;display:inline-flex;align-items:center;justify-content:center}
.icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

/* BRAND */
.brand{display:flex;align-items:center;gap:12px;min-width:0}
.brand-logo{width:48px;height:48px;object-fit:contain;display:block;flex:0 0 auto}
.brand-copy{min-width:0}
.brand-title{font-size:19px;font-weight:700;line-height:1.05;letter-spacing:-.2px}
.brand-sub{font-size:11px;line-height:1.25;margin-top:4px;opacity:.72}
.brand-compact .brand-logo{width:52px;height:52px}
.brand-compact .brand-title{font-size:21px}

/* AUTH - corporate portal, not landing page */
body.auth{background:#f4f6f8}
.auth-shell{min-height:100vh;display:grid;grid-template-columns:minmax(520px,58%) minmax(460px,42%);background:#fff}
.auth-visual{position:relative;min-height:100vh;padding:42px 48px;background:url('/assets/login-bg.webp') center center/cover no-repeat;color:#fff;overflow:hidden}
.auth-visual-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,29,47,.82) 0%,rgba(8,29,47,.58) 58%,rgba(8,29,47,.35) 100%)}
.visual-top,.auth-photo-note,.visual-foot{position:relative;z-index:1}
.visual-top .brand-title{color:#fff}.visual-top .brand-sub{color:#d7e2ea;opacity:1}
.auth-photo-note{position:absolute;left:48px;bottom:112px;max-width:500px;padding-left:18px;border-left:4px solid var(--gold)}
.region-label{display:block;font-size:12px;font-weight:700;letter-spacing:1.5px;color:#f3c552;margin-bottom:12px}
.auth-photo-note h1{font-size:38px;line-height:1.05;margin:0 0 10px;font-weight:700;letter-spacing:-.7px}
.auth-photo-note p{font-size:15px;line-height:1.6;color:#e8eff4;max-width:530px;margin:0}
.visual-foot{position:absolute;left:48px;bottom:38px;font-size:11px;letter-spacing:.5px;color:#d6e0e7}
.auth-panel{display:flex;align-items:center;justify-content:center;padding:48px;background:#f7f8fa;border-left:1px solid #e5e9ed}
.auth-wrap{width:min(430px,100%)}
.auth-mobile-brand{display:none;margin-bottom:28px}
.auth-card{background:#fff;border:1px solid #d9e0e5;border-radius:4px;padding:34px 34px 30px;box-shadow:0 8px 26px rgba(17,42,62,.07)}
.auth-heading{margin-bottom:24px}
.auth-heading h2{margin:0 0 8px;color:var(--navy-dark);font-size:27px;line-height:1.15;font-weight:700;letter-spacing:-.4px}
.auth-heading p{margin:0;color:var(--muted);font-size:13px;line-height:1.55}
.auth-form{display:grid;gap:16px}
.field{display:grid;gap:7px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.field label{font-size:11px;font-weight:700;color:#344c60}
.field input,.field select,.field textarea{width:100%;height:44px;border:1px solid #cbd5dd;border-radius:3px;background:#fff;padding:0 12px;color:#243847;outline:none;font-size:13px;transition:.15s}
.field textarea{height:86px;padding-top:10px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:#537fa8;box-shadow:0 0 0 2px rgba(83,127,168,.10)}
.input-action-wrap{position:relative}.input-action-wrap input{padding-right:62px}.input-action{position:absolute;right:9px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#405e76;font-size:10px;font-weight:700;padding:6px}
.btn{height:42px;border-radius:3px;border:1px solid transparent;padding:0 15px;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:12px;font-weight:700;background:#fff;color:var(--navy);transition:.15s}
.btn:hover{filter:brightness(.98)}
.btn-primary{background:var(--navy);border-color:var(--navy);color:#fff}.btn-outline{border-color:#cbd5dd;color:var(--navy);background:#fff}.btn-block{width:100%}.btn-small{height:34px;font-size:10.5px;padding:0 11px}
.btn-login{margin-top:2px}.face-symbol{font-size:16px}
.auth-divider{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:10px;margin:22px 0 14px;color:#8a98a4}.auth-divider span{height:1px;background:#dce3e8}.auth-divider em{font-style:normal;font-size:10px}
.auth-switch{text-align:center;color:#778793;font-size:11px}.text-link{border:0;background:transparent;padding:0;color:#244e76;font-weight:700;font-size:inherit}.text-link:hover{text-decoration:underline}
.auth-footer{text-align:center;color:#97a3ad;font-size:10px;margin-top:16px}.back-link{margin-top:16px;border:0;background:transparent;color:#49667d;font-size:11px;padding:0}.identity-summary{height:42px;border:1px solid #dce3e8;background:#f7f9fa;display:flex;align-items:center;justify-content:space-between;padding:0 12px;margin-bottom:16px;font-size:11px}.identity-summary span{color:#7c8c98}.identity-summary strong{color:#233c50}
.info-strip{background:#f8f4e8;border-left:3px solid var(--gold);padding:10px 12px;margin-bottom:16px;display:grid;gap:2px}.info-strip strong{font-size:10.5px;color:#65511e}.info-strip span{font-size:10px;color:#7f7048}
.face-panel{margin-top:16px;border-top:1px solid #e2e8ec;padding-top:16px}.face-panel.compact{margin-top:4px}.camera-box{height:220px;background:#132536;position:relative;overflow:hidden;border-radius:3px}.camera-box video{width:100%;height:100%;object-fit:cover}.camera-placeholder{position:absolute;inset:0;display:grid;place-items:center;color:#9eb0bd;font-size:11px;background:#132536}.camera-actions,.auth-actions.two{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:10px}

/* APP LAYOUT */
.app-shell{min-height:100vh;display:grid;grid-template-columns:238px minmax(0,1fr);background:var(--page)}
.sidebar{position:sticky;top:0;height:100vh;background:var(--navy-deep);color:#fff;padding:24px 16px 18px;display:flex;flex-direction:column;border-right:1px solid rgba(255,255,255,.07)}
.sidebar-head{padding:0 6px 24px;border-bottom:1px solid rgba(255,255,255,.12)}
.sidebar-head .brand-logo{width:42px;height:42px}.sidebar-head .brand-title{font-size:17px}.sidebar-head .brand-sub{font-size:9.5px;color:#b5c6d2;opacity:1}
.sidebar-section-label{font-size:9px;letter-spacing:1.2px;color:#7891a3;font-weight:700;padding:19px 10px 8px}
.nav{display:grid;gap:3px}.nav button{height:43px;border:0;border-left:3px solid transparent;border-radius:2px;background:transparent;color:#b9c8d3;padding:0 11px;display:flex;align-items:center;gap:11px;text-align:left;font-size:12px;font-weight:600}.nav button:hover{background:rgba(255,255,255,.05);color:#fff}.nav button.active{background:#173650;border-left-color:var(--gold);color:#fff}.nav button .icon{width:16px;height:16px}.nav-label{white-space:nowrap}
.sidebar-account{margin-top:auto;padding-top:16px;border-top:1px solid rgba(255,255,255,.12)}.sidebar-user{display:flex;align-items:center;gap:10px;padding:0 8px 12px}.user-avatar,.top-user-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#254762;color:#fff;font-size:10px;font-weight:700}.sidebar-user>div:last-child{display:grid;gap:2px}.sidebar-user strong{font-size:11px}.sidebar-user span{font-size:9px;color:#8fa7b8}.logout-btn{width:100%;height:38px;border:0;background:transparent;color:#9fb2c0;display:flex;align-items:center;gap:10px;padding:0 10px;font-size:11px}.logout-btn:hover{color:#fff;background:rgba(255,255,255,.04)}
.main{min-width:0}.topbar{height:72px;background:#fff;border-bottom:1px solid #dce3e8;display:flex;align-items:center;justify-content:space-between;padding:0 26px;position:sticky;top:0;z-index:20}.page-heading h1{font-size:19px;margin:0;color:#1b3347}.page-heading p{font-size:10.5px;margin:4px 0 0;color:#7b8b96}.top-actions{display:flex;align-items:center;gap:20px}.system-clock{text-align:right;padding-right:18px;border-right:1px solid #dfe5e9;display:grid;gap:2px}.system-clock span{font-size:9px;color:#80909b}.system-clock strong{font-size:11px;color:#294257;font-variant-numeric:tabular-nums}.top-user{display:flex;align-items:center;gap:9px}.top-user>div:last-child{display:grid;gap:1px}.top-user strong{font-size:10.5px}.top-user span{font-size:9px;color:#7d8d99}.content{padding:22px 26px 36px;max-width:1550px;margin:0 auto;width:100%}

/* DASHBOARD */
.ops-strip{background:#fff;border:1px solid #d7e0e6;border-left:4px solid var(--gold);padding:17px 18px;display:flex;align-items:center;justify-content:space-between;gap:18px}.section-overline{font-size:8.5px;letter-spacing:1px;color:#708391;font-weight:700}.ops-strip h2,.toolbar-info h2{margin:5px 0 4px;font-size:20px;color:#18344c}.ops-strip p,.toolbar-info p{margin:0;font-size:10.5px;color:#7b8b96}.ops-status{display:flex;align-items:center;gap:12px}.ops-date{font-size:10px;color:#768793;white-space:nowrap}.status-chip{display:inline-flex;align-items:center;gap:6px;padding:5px 8px;border-radius:2px;font-size:9px;font-weight:700;background:var(--green-bg);color:var(--green)}.status-chip i{width:6px;height:6px;border-radius:50%;background:currentColor}.status-chip.warn{background:var(--amber-bg);color:var(--amber)}.status-chip.danger{background:var(--red-bg);color:var(--red)}.status-chip.neutral{background:#eef3f7;color:#45657f}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}.metric-card{background:#fff;border:1px solid #d8e0e6;padding:14px 15px;min-height:112px}.metric-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:10px}.metric-icon{width:27px;height:27px;display:grid;place-items:center;color:#3c607b;background:#eef3f6;border-radius:2px}.metric-icon .icon{width:14px;height:14px}.metric-state{font-size:7.5px;letter-spacing:.5px;color:#95a3ad;text-transform:uppercase}.metric-value{font-size:25px;line-height:1;font-weight:700;color:#17324a;font-variant-numeric:tabular-nums}.metric-label{margin-top:7px;font-size:10.5px;font-weight:700;color:#3b5365}.metric-note{margin-top:3px;font-size:9px;color:#8b99a3}.dashboard-grid{display:grid;grid-template-columns:minmax(320px,.78fr) minmax(500px,1.22fr);gap:12px;margin-top:12px}.panel{background:#fff;border:1px solid #d8e0e6}.panel-head{min-height:58px;border-bottom:1px solid #e5eaee;padding:12px 14px;display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-head h3{margin:4px 0 0;font-size:13px;color:#213c50}.camera-status-list,.activity-list{padding:2px 14px 8px}.camera-status-row,.activity-row{min-height:50px;border-bottom:1px solid #edf1f3;display:flex;align-items:center;gap:10px}.camera-status-row:last-child,.activity-row:last-child{border-bottom:0}.camera-status-row{justify-content:space-between}.camera-status-main{display:flex;align-items:center;gap:9px;min-width:0}.camera-dot{width:7px;height:7px;border-radius:50%;background:#348662}.camera-status-main>div{display:grid;gap:2px}.camera-status-main strong,.activity-main strong{font-size:10.5px;color:#334c5f}.camera-status-main span,.activity-main span{font-size:9px;color:#8b9aa5}.activity-type{width:26px;height:26px;border:1px solid #d9e2e7;display:grid;place-items:center;font-size:9px;font-weight:700;color:#385a73;background:#f7f9fa}.activity-type.ship{color:#8a691f;background:#fbf7ed}.activity-main{display:grid;gap:2px;min-width:0;flex:1}.activity-time{font-size:9px;color:#7e8f9a;white-space:nowrap}

/* PAGES */
.page-toolbar{background:#fff;border:1px solid #d8e0e6;padding:16px 18px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:12px}.toolbar-info h2{font-size:19px}.toolbar-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.search-box{height:38px;display:flex;align-items:center;gap:7px;border:1px solid #cbd5dd;border-radius:3px;padding:0 10px;background:#fff;color:#768b9a}.search-box input{border:0;outline:0;background:transparent;width:220px;font-size:10.5px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse;min-width:760px}.table th{background:#f3f6f8;color:#667b8b;font-size:8.5px;text-transform:uppercase;letter-spacing:.6px;font-weight:700;padding:10px 13px;text-align:left;border-bottom:1px solid #dce4e9}.table td{padding:11px 13px;border-bottom:1px solid #edf1f3;font-size:10.5px;color:#526778}.table tbody tr:hover{background:#fafcfd}.table tbody tr:last-child td{border-bottom:0}.table td strong{color:#294257}
.live-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.camera-card{background:#fff;border:1px solid #d8e0e6;overflow:hidden}.camera-head{height:52px;padding:0 13px;border-bottom:1px solid #e1e7eb;display:flex;align-items:center;justify-content:space-between}.camera-head>div:first-child{display:grid;gap:2px}.camera-head strong{font-size:10.5px}.camera-head span:not(.status-chip){font-size:9px;color:#82929d}.camera-view{aspect-ratio:16/9;background:#101b23;display:grid;place-items:center;position:relative}.camera-view img{width:100%;height:100%;object-fit:contain}.stream-fallback{position:absolute;inset:0;display:grid;place-content:center;text-align:center;color:#82919b;gap:4px;font-size:10px;background:#111f29}.stream-fallback strong{color:#bdc8cf}.health-panel{margin-bottom:12px}.health-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding:16px 14px 4px}.form-actions{padding:10px 14px 16px}.empty-state{min-height:190px;display:grid;place-content:center;text-align:center;gap:5px;padding:24px;color:#8696a1}.empty-state.small{min-height:135px}.empty-state strong{font-size:11.5px;color:#536979}.empty-state span{font-size:9.5px;max-width:360px}.empty-symbol{font-size:22px;color:#c0cbd2}.loading-line{height:10px;margin:14px 0;background:#edf1f3}.loading-line.short{width:65%}
.toast{position:fixed;right:18px;bottom:18px;z-index:100;background:#17324a;color:#fff;min-width:250px;max-width:380px;border-left:3px solid var(--gold);padding:11px 13px;font-size:10.5px;box-shadow:0 8px 24px rgba(10,29,47,.20);opacity:0;transform:translateY(7px);pointer-events:none;transition:.18s}.toast.show{opacity:1;transform:translateY(0)}

@media(max-width:1100px){.auth-shell{grid-template-columns:1fr 470px}.app-shell{grid-template-columns:210px 1fr}.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.health-form{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.auth-shell{display:block}.auth-visual{display:none}.auth-panel{min-height:100vh;padding:28px 18px}.auth-mobile-brand{display:block}.app-shell{grid-template-columns:70px 1fr}.sidebar{padding:16px 8px}.sidebar .brand-copy,.sidebar-section-label,.nav-label,.sidebar-user>div:last-child,.logout-btn span{display:none}.sidebar-head{display:flex;justify-content:center;padding-bottom:16px}.sidebar-head .brand-logo{width:40px;height:40px}.nav button,.logout-btn{justify-content:center;padding:0}.top-user>div:last-child,.system-clock{display:none}.live-grid{grid-template-columns:1fr}}
@media(max-width:620px){.auth-card{padding:26px 20px}.field-row{grid-template-columns:1fr}.app-shell{display:block}.sidebar{height:58px;position:fixed;z-index:50;left:0;right:0;bottom:0;top:auto;display:block;padding:5px 7px;border-top:1px solid rgba(255,255,255,.12)}.sidebar-head,.sidebar-section-label,.sidebar-account{display:none}.nav{display:grid;grid-template-columns:repeat(5,1fr);gap:2px}.nav button{height:48px;display:grid;place-items:center;padding:3px}.nav-label{display:block!important;font-size:7.5px;line-height:1}.main{padding-bottom:62px}.topbar{height:64px;padding:0 14px}.page-heading p{display:none}.content{padding:13px}.metric-grid{grid-template-columns:1fr 1fr;gap:8px}.metric-card{min-height:108px;padding:12px}.ops-strip,.page-toolbar{align-items:flex-start;flex-direction:column}.ops-status{width:100%;justify-content:space-between}.toolbar-actions{width:100%;justify-content:flex-start}.search-box{width:100%}.search-box input{width:100%}.health-form{grid-template-columns:1fr}.camera-actions,.auth-actions.two{grid-template-columns:1fr}}

/* =========================================================
   S-WATCH V6 — DEEP OCEAN + WARM SAND
   Dashboard / internal pages redesign
   ========================================================= */
:root{
  --navy:#183042;
  --navy-dark:#13283a;
  --navy-deep:#102331;
  --blue:#287c8e;
  --gold:#dfa84a;
  --green:#4b956d;
  --green-bg:#edf6f0;
  --red:#c95f55;
  --red-bg:#f9ece9;
  --amber:#b47a24;
  --amber-bg:#fbf1df;
  --ink:#183042;
  --text:#435966;
  --muted:#71808a;
  --line:#e4ded4;
  --line-soft:#eee9e1;
  --surface:#fffdf9;
  --page:#f7f4ee;
}

html,body{background:var(--page);color:var(--ink)}

/* Brand tanpa file logo eksternal: tidak akan broken lagi */
.brand-mark{
  width:38px;height:38px;border-radius:10px;display:grid;place-items:center;
  flex:0 0 auto;background:#fffdf9;color:var(--navy-dark);font-size:16px;font-weight:900;
  box-shadow:0 3px 12px rgba(20,47,65,.14);border:1px solid rgba(255,255,255,.42)
}
.brand-compact .brand-mark{width:44px;height:44px}
.sidebar-head .brand-mark{width:38px;height:38px;background:#fffdf9;color:#173144}

/* APP SHELL */
.app-shell{grid-template-columns:220px minmax(0,1fr);background:var(--page)}
.sidebar{background:#13283a;padding:22px 14px 17px;border-right:0;box-shadow:6px 0 24px rgba(16,35,49,.06)}
.sidebar-head{padding:0 5px 22px;border-bottom:1px solid rgba(255,255,255,.09)}
.sidebar-head .brand-title{font-size:16px;color:#fffdf9}.sidebar-head .brand-sub{color:#94aab5;font-size:9.5px}
.sidebar-section-label{color:#6f8a98;padding:18px 9px 8px;font-size:8px;letter-spacing:1.3px}
.nav{gap:4px}.nav button{height:44px;border-left:3px solid transparent;border-radius:7px;color:#afc0c9;padding:0 11px;font-size:12px;transition:.16s ease}
.nav button:hover{background:#183247;color:#fff}
.nav button.active{background:#1d3a4f;border-left-color:#e5b458;color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.025)}
.sidebar-account{padding-top:14px;border-top:1px solid rgba(255,255,255,.09)}
.side-system{display:flex;align-items:center;gap:7px;color:#8fa7b2;font-size:9.5px;padding:0 10px 10px}
.side-system-dot{width:6px;height:6px;border-radius:50%;background:#62bb87;box-shadow:0 0 0 4px rgba(98,187,135,.08)}
.logout-btn{border-radius:7px;color:#9db0ba}.logout-btn:hover{background:#183247;color:#fff}

/* TOPBAR */
.topbar{height:70px;background:rgba(255,253,249,.96);border-bottom:1px solid #e8e3da;padding:0 25px;backdrop-filter:blur(8px)}
.page-heading h1{font-size:20px;color:#183042;letter-spacing:-.2px}.page-heading p{color:#8a918f;font-size:10px}
.system-clock{border-right:1px solid #e5dfd6}.system-clock span{color:#8a918f}.system-clock strong{color:#38515e}
.top-user-avatar{background:#173548;color:#fffdf9;width:36px;height:36px}
.top-user strong{color:#243c49}.top-user span{color:#8a918f}
.content{padding:24px 26px 38px;max-width:1500px}

/* WELCOME */
.welcome-strip{
  min-height:126px;background:linear-gradient(112deg,#fffdf9 0%,#fffaf2 100%);
  border:1px solid #e6dfd5;border-radius:18px;padding:23px 25px;
  display:flex;align-items:center;justify-content:space-between;gap:20px;
  position:relative;overflow:hidden;box-shadow:0 8px 24px rgba(31,54,64,.045)
}
.welcome-strip::after{content:"";position:absolute;right:-45px;top:-80px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle,rgba(223,168,74,.13),rgba(223,168,74,0) 70%)}
.welcome-copy{position:relative;z-index:1}.section-overline{color:#96733a;font-size:8px;letter-spacing:1.15px}
.welcome-copy h2{margin:6px 0 5px;font-size:27px;letter-spacing:-.45px;color:#183042}.welcome-copy h2 span{color:#287c8e}
.welcome-copy p{margin:0;color:#75838a;font-size:11px}.welcome-status{position:relative;z-index:1;display:flex;align-items:center;gap:14px}
.ops-date{color:#858d8d;font-size:9.5px}.status-chip{border-radius:999px;padding:6px 10px;background:#edf6f0;color:#4b956d}.status-chip i{width:6px;height:6px}

/* KPI */
.metric-grid{gap:12px;margin-top:14px}.metric-card{border:1px solid #e7e1d8;border-radius:15px;background:#fffdf9;padding:16px 17px;min-height:126px;box-shadow:0 5px 18px rgba(31,54,64,.035);transition:transform .16s ease,box-shadow .16s ease}
.metric-card:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(31,54,64,.075)}
.metric-top{margin-bottom:12px}.metric-icon{width:32px;height:32px;border-radius:9px}.metric-icon .icon{width:15px;height:15px}.metric-state{color:#a19b92;font-size:7px;letter-spacing:.7px}
.metric-value{font-size:29px;color:#183042}.metric-label{font-size:11px;color:#314a57}.metric-note{font-size:9px;color:#8e9695}
.tone-ocean .metric-icon{background:#e8f1f4;color:#2b7080}.tone-teal .metric-icon{background:#e6f2ef;color:#3b8377}.tone-sand .metric-icon{background:#fbf0db;color:#b77b22}.tone-coral .metric-icon{background:#f8ebe8;color:#bd5b52}

/* PANELS */
.dashboard-grid{grid-template-columns:minmax(330px,.8fr) minmax(520px,1.2fr);gap:14px;margin-top:14px}
.panel{border:1px solid #e6e0d7;border-radius:15px;background:#fffdf9;overflow:hidden;box-shadow:0 5px 18px rgba(31,54,64,.03)}
.panel-head{min-height:62px;border-bottom:1px solid #eee8df;padding:13px 16px}.panel-head h3{font-size:14px;color:#223d4b}.btn{border-radius:8px}.btn-outline{border-color:#dcd5cb;background:#fffdf9;color:#244653}.btn-outline:hover{background:#f5f0e8}.btn-primary{background:#287c8e;border-color:#287c8e}.btn-primary:hover{background:#236f7f}
.camera-status-list,.activity-list{padding:4px 16px 10px}.camera-status-row,.activity-row{min-height:54px;border-bottom:1px solid #f0ebe4}.camera-dot{background:#4b956d}.activity-type{border:0;border-radius:8px;background:#e8f1f4;color:#2b7080}.activity-type.ship{background:#fbf0db;color:#a86f20}.activity-main strong,.camera-status-main strong{color:#314a57}.activity-main span,.camera-status-main span,.activity-time{color:#909795}
.empty-state{color:#8e9695;background:linear-gradient(180deg,#fffdf9,#fbf8f2)}.empty-state strong{color:#5a6c74}

/* SUMMARY */
.ops-summary-panel{margin-top:14px;border:1px solid #e6e0d7;border-radius:15px;background:#fffdf9;padding:17px 18px;box-shadow:0 5px 18px rgba(31,54,64,.03)}
.ops-summary-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px}.ops-summary-head h3{margin:4px 0 0;font-size:14px;color:#223d4b}.summary-caption{font-size:9px;color:#989993}
.summary-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.summary-item{display:flex;align-items:center;gap:10px;padding:12px 13px;border:1px solid #eee8df;border-radius:11px;background:#fcfaf6}.summary-dot{width:9px;height:9px;border-radius:50%;flex:0 0 auto}.summary-dot.ocean{background:#39798a}.summary-dot.teal{background:#4e9486}.summary-dot.sand{background:#d9a143}.summary-dot.coral{background:#c9685e}.summary-item>div{display:grid;gap:2px}.summary-item strong{font-size:17px;color:#213d4a}.summary-item span:last-child{font-size:8.5px;color:#8b9291}.loading-summary{min-height:82px}

/* OTHER INTERNAL PAGES USE SAME PALETTE */
.page-toolbar,.camera-card{background:#fffdf9;border-color:#e6e0d7;border-radius:14px}.table th{background:#f4f0e9;color:#6f7c7d}.table td{border-bottom-color:#eee8df}.table tbody tr:hover{background:#fbf8f2}.field input,.field select,.field textarea,.search-box{border-color:#ddd7ce;background:#fffdf9}.field input:focus,.field select:focus,.field textarea:focus{border-color:#4d929f;box-shadow:0 0 0 3px rgba(40,124,142,.08)}
.toast{background:#183042;border-left-color:#dfa84a}

@media(max-width:1100px){.app-shell{grid-template-columns:200px 1fr}.dashboard-grid{grid-template-columns:1fr}.summary-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.app-shell{grid-template-columns:70px 1fr}.sidebar{padding:16px 8px}.brand-mark{width:38px;height:38px}.side-system{display:none}}
@media(max-width:620px){.welcome-strip{align-items:flex-start;flex-direction:column}.welcome-copy h2{font-size:23px}.welcome-status{width:100%;justify-content:space-between}.summary-grid{grid-template-columns:1fr 1fr}.content{padding:13px}.metric-grid{gap:8px}.metric-card{min-height:114px;padding:13px}}

/* =========================================================
   V6.1 — S-WATCH EDITORIAL MARITIME
   Flat, muted, warm. Intentionally avoids generic blue-admin UI.
   ========================================================= */
:root{
  --page:#f1eee7;
  --surface:#fbfaf6;
  --ink:#25363a;
  --text:#52656a;
  --muted:#889392;
  --line:#ddd9cf;
  --ocean:#356a6f;
  --ocean-dark:#284e53;
  --sidebar:#1f3036;
  --sand:#c89b55;
  --sage:#718b79;
  --clay:#b96f59;
}
html,body{background:var(--page)!important;color:var(--ink)!important}
.app-shell{background:var(--page)!important;grid-template-columns:212px minmax(0,1fr)!important}
.sidebar{background:var(--sidebar)!important;box-shadow:none!important;padding:21px 13px 16px!important}
.sidebar-head{border-color:rgba(255,255,255,.08)!important}
.sidebar-head .brand-mark{background:#efe7d7!important;color:#29464b!important;border:0!important;box-shadow:none!important;border-radius:8px!important}
.sidebar-head .brand-title{color:#f3efe7!important;font-weight:750!important}
.sidebar-head .brand-sub{color:#9cafaf!important}
.sidebar-section-label{color:#70868a!important;letter-spacing:1.45px!important}
.nav button{border:0!important;border-radius:8px!important;color:#b9c5c3!important;height:43px!important;font-weight:600!important}
.nav button:hover{background:#293f45!important;color:#fff!important}
.nav button.active{background:#e6dcc7!important;color:#233b40!important;box-shadow:none!important;border:0!important}
.nav button.active .icon{color:#9a6d2f!important}
.side-system{color:#91a7a4!important}.side-system-dot{background:#77a686!important}
.logout-btn{color:#9dafad!important}.logout-btn:hover{background:#293f45!important}

.topbar{height:68px!important;background:#f8f6f0!important;border-bottom:1px solid #ded9cf!important;box-shadow:none!important;backdrop-filter:none!important}
.page-heading h1{color:#283c40!important;font-size:19px!important;font-weight:750!important}
.page-heading p{color:#89928f!important}
.system-clock{border-color:#ddd7cc!important}.system-clock strong{color:#3f565a!important}
.top-user-avatar{background:#385a60!important;color:#f7f0e2!important;border-radius:10px!important}
.top-user strong{color:#2d4246!important}.top-user span{color:#8b9491!important}
.content{max-width:1480px!important;padding:22px 25px 40px!important}

.welcome-strip{min-height:136px!important;border:0!important;border-radius:12px!important;background:#315c62!important;box-shadow:none!important;padding:24px 26px!important}
.welcome-strip::after{display:none!important}
.welcome-copy .section-overline{color:#e4c386!important}
.welcome-copy h2{font-size:29px!important;color:#f8f3e8!important;font-weight:760!important;letter-spacing:-.55px!important}
.welcome-copy h2 span{color:#f0c877!important}
.welcome-copy p{color:#d5dfdc!important;font-size:11px!important}
.welcome-status .status-chip{background:#f4ead7!important;color:#56715e!important;border-radius:6px!important;padding:7px 10px!important}
.welcome-status .ops-date{color:#d5dedb!important}

.metric-grid{gap:12px!important;margin-top:13px!important}
.metric-card{border:0!important;border-radius:10px!important;box-shadow:none!important;min-height:130px!important;padding:17px 18px!important;position:relative!important;overflow:hidden!important}
.metric-card:hover{transform:none!important;box-shadow:none!important}
.metric-card.tone-ocean{background:#e8f0ee!important}
.metric-card.tone-teal{background:#edf1e9!important}
.metric-card.tone-sand{background:#f4ecdc!important}
.metric-card.tone-coral{background:#f2e7e1!important}
.metric-card::after{content:"";position:absolute;right:0;top:0;bottom:0;width:4px;background:rgba(0,0,0,.06)}
.metric-card.tone-ocean::after{background:#4c7d7f}.metric-card.tone-teal::after{background:#7a9278}.metric-card.tone-sand::after{background:#c89b55}.metric-card.tone-coral::after{background:#b96f59}
.metric-icon{width:34px!important;height:34px!important;border-radius:8px!important;background:rgba(255,255,255,.58)!important;color:#395d61!important}
.metric-state{color:#7d8986!important;font-size:7px!important}
.metric-value{color:#253b3f!important;font-size:31px!important;font-weight:760!important}
.metric-label{color:#324b4f!important;font-size:11px!important}.metric-note{color:#788784!important}

.dashboard-grid{gap:13px!important;margin-top:13px!important}
.panel{border:1px solid #ded9cf!important;border-radius:10px!important;background:#fbfaf6!important;box-shadow:none!important}
.panel-head{border-bottom:1px solid #e5e0d7!important;min-height:60px!important;padding:13px 15px!important}
.panel-head .section-overline{color:#9b7740!important}.panel-head h3{color:#2f464a!important;font-size:14px!important}
.btn{border-radius:7px!important}.btn-outline{background:#f8f5ee!important;border-color:#d7d0c3!important;color:#3d5659!important}.btn-outline:hover{background:#efe9dd!important}
.btn-primary{background:#356a6f!important;border-color:#356a6f!important;color:#fffaf1!important}.btn-primary:hover{background:#2d5d62!important}
.camera-status-list,.activity-list{background:#fbfaf6!important}
.camera-status-row,.activity-row{border-bottom-color:#ece7de!important}
.empty-state{background:#f8f5ef!important;color:#85908d!important}.empty-state strong{color:#53676a!important}
.activity-type{background:#e6eeec!important;color:#426d70!important;border-radius:7px!important}.activity-type.ship{background:#f2e9d8!important;color:#99713a!important}

.ops-summary-panel{border:1px solid #ded9cf!important;border-radius:10px!important;background:#fbfaf6!important;box-shadow:none!important}
.summary-item{background:#f6f3ec!important;border:1px solid #e6e0d6!important;border-radius:8px!important}
.summary-item strong{color:#2e4549!important}.summary-item span:last-child{color:#838d89!important}
.summary-dot.ocean{background:#4c7d7f!important}.summary-dot.teal{background:#718b79!important}.summary-dot.sand{background:#c89b55!important}.summary-dot.coral{background:#b96f59!important}

/* Internal pages */
.page-toolbar,.camera-card,.health-panel{background:#fbfaf6!important;border-color:#ded9cf!important;border-radius:10px!important;box-shadow:none!important}
.table th{background:#ece7dd!important;color:#586a6a!important}.table td{border-bottom-color:#e9e3d9!important}.table tbody tr:hover{background:#f5f1e8!important}
.search-box,.field input,.field select,.field textarea{background:#fbfaf6!important;border-color:#d8d2c7!important}.field input:focus,.field select:focus,.field textarea:focus{border-color:#6f989a!important;box-shadow:0 0 0 3px rgba(53,106,111,.08)!important}
.status-chip{border-radius:6px!important}.toast{background:#2b4145!important;border-left-color:#c89b55!important}

@media(max-width:1100px){.app-shell{grid-template-columns:194px 1fr!important}}

/* =========================================================
   V6.2 — EDITORIAL OPERATIONS
   Deliberately flat, warm and data-dense. No gradients,
   no floating-card admin-template look.
   ========================================================= */
:root{
  --v62-page:#efede7;
  --v62-paper:#fbfaf6;
  --v62-ink:#223238;
  --v62-text:#506066;
  --v62-muted:#87908e;
  --v62-line:#d8d3c9;
  --v62-side:#22363a;
  --v62-sea:#426f72;
  --v62-sea-deep:#31575b;
  --v62-sand:#c49245;
  --v62-sage:#6e8973;
  --v62-rust:#b86653;
}
html,body{background:var(--v62-page)!important;color:var(--v62-ink)!important}
.app-shell{grid-template-columns:204px minmax(0,1fr)!important;background:var(--v62-page)!important}
.sidebar{background:var(--v62-side)!important;padding:18px 12px 14px!important;box-shadow:none!important}
.sidebar-head{padding:0 5px 18px!important;border-bottom:1px solid rgba(255,255,255,.09)!important}
.sidebar-head .brand-mark{width:34px!important;height:34px!important;border-radius:6px!important;background:#e8dfcd!important;color:#27464a!important;box-shadow:none!important;border:0!important}
.sidebar-head .brand-title{font-size:15px!important;color:#f4f0e7!important}.sidebar-head .brand-sub{color:#9aacab!important;font-size:9px!important}
.sidebar-section-label{padding:16px 8px 7px!important;color:#71878a!important;font-size:7.5px!important;letter-spacing:1.35px!important}
.nav{gap:3px!important}.nav button{height:42px!important;border-radius:5px!important;border:0!important;padding:0 10px!important;color:#b6c3c1!important;font-size:11px!important;font-weight:650!important}
.nav button:hover{background:#2b4348!important;color:#fff!important}
.nav button.active{background:#e7decc!important;color:#233b3f!important;box-shadow:none!important;position:relative!important}
.nav button.active::before{content:"";position:absolute;left:0;top:8px;bottom:8px;width:3px;background:var(--v62-sand);border-radius:0 2px 2px 0}
.nav button.active .icon{color:#91692e!important}.sidebar-account{border-top:1px solid rgba(255,255,255,.09)!important}.side-system{color:#98aaa7!important}
.topbar{height:66px!important;background:#f7f5ef!important;border-bottom:1px solid var(--v62-line)!important;padding:0 24px!important;box-shadow:none!important;backdrop-filter:none!important}
.page-heading h1{font-size:18px!important;font-weight:760!important;color:#273a3f!important}.page-heading p{font-size:9.5px!important;color:#8a9290!important}
.system-clock{border-color:#d9d4ca!important}.system-clock strong{color:#40565a!important}.top-user-avatar{width:34px!important;height:34px!important;border-radius:6px!important;background:#385f63!important}.top-user strong{color:#2b4044!important}.top-user span{color:#8c9390!important}
.content{padding:20px 24px 38px!important;max-width:1450px!important}

/* Editorial briefing instead of a glossy hero card */
.welcome-strip{min-height:108px!important;border:1px solid var(--v62-line)!important;border-left:4px solid var(--v62-sand)!important;border-radius:6px!important;background:var(--v62-paper)!important;box-shadow:none!important;padding:20px 22px!important}
.welcome-strip::after{display:none!important}.welcome-copy .section-overline{color:#98713a!important}.welcome-copy h2{margin:5px 0 4px!important;font-size:25px!important;letter-spacing:-.45px!important;color:#253a3e!important}.welcome-copy h2 span{color:var(--v62-sea)!important}.welcome-copy p{color:#74807d!important;font-size:10.5px!important}.welcome-status .status-chip{border-radius:4px!important;background:#e9efe9!important;color:#58705d!important;padding:6px 9px!important}.welcome-status .ops-date{color:#858c89!important}

/* One continuous KPI rail, not four floating AI cards */
.metric-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:0!important;margin-top:12px!important;border:1px solid var(--v62-line)!important;border-radius:6px!important;overflow:hidden!important;background:var(--v62-paper)!important}
.metric-card,.metric-card.tone-ocean,.metric-card.tone-teal,.metric-card.tone-sand,.metric-card.tone-coral{min-height:112px!important;padding:14px 16px!important;border:0!important;border-right:1px solid #e2ddd4!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;transform:none!important}
.metric-card:last-child{border-right:0!important}.metric-card::after{display:none!important}.metric-top{margin-bottom:8px!important}.metric-icon{width:26px!important;height:26px!important;border-radius:4px!important;background:transparent!important;border:1px solid #d9d4ca!important}.tone-ocean .metric-icon{color:#47777a!important}.tone-teal .metric-icon{color:#6d8872!important}.tone-sand .metric-icon{color:#a97a35!important}.tone-coral .metric-icon{color:#ad6252!important}.metric-state{font-size:6.8px!important;color:#a09f99!important}.metric-value{font-size:27px!important;color:#263b3f!important}.metric-label{font-size:10.5px!important;color:#3f5559!important}.metric-note{font-size:8.7px!important;color:#8b928f!important}

.dashboard-grid{grid-template-columns:minmax(330px,.85fr) minmax(520px,1.15fr)!important;gap:12px!important;margin-top:12px!important}.panel{border:1px solid var(--v62-line)!important;border-radius:6px!important;background:var(--v62-paper)!important;box-shadow:none!important}.panel-head{min-height:56px!important;padding:11px 14px!important;border-bottom:1px solid #e4dfd6!important}.panel-head .section-overline{color:#977039!important}.panel-head h3{font-size:13px!important;color:#30484c!important}.btn{border-radius:5px!important}.btn-outline{background:#f7f4ed!important;border-color:#d5cfc4!important;color:#40595c!important}.btn-outline:hover{background:#eee8dc!important}.btn-primary{background:var(--v62-sea)!important;border-color:var(--v62-sea)!important;color:#fff!important}.btn-primary:hover{background:var(--v62-sea-deep)!important}
.camera-status-list,.activity-list{padding:3px 14px 9px!important;background:var(--v62-paper)!important}.camera-status-row,.activity-row{min-height:50px!important;border-bottom:1px solid #ebe6dd!important}.camera-dot{background:var(--v62-sage)!important}.activity-type{width:24px!important;height:24px!important;border-radius:4px!important;background:#e7eeeb!important;color:#4c7777!important;border:0!important}.activity-type.ship{background:#f0e8d7!important;color:#956d35!important}.empty-state{background:#f7f4ed!important;color:#878f8c!important;min-height:142px!important}.empty-state strong{color:#526669!important}
.ops-summary-panel{margin-top:12px!important;border:1px solid var(--v62-line)!important;border-radius:6px!important;background:var(--v62-paper)!important;box-shadow:none!important;padding:14px 15px!important}.ops-summary-head{margin-bottom:11px!important}.ops-summary-head h3{font-size:13px!important;color:#30484c!important}.summary-grid{gap:0!important;border:1px solid #e3ded5!important;border-radius:5px!important;overflow:hidden!important}.summary-item{border:0!important;border-right:1px solid #e6e1d8!important;border-radius:0!important;background:#f7f4ed!important;padding:10px 12px!important}.summary-item:last-child{border-right:0!important}.summary-item strong{font-size:16px!important;color:#2f474b!important}
.page-toolbar,.camera-card,.health-panel{background:var(--v62-paper)!important;border:1px solid var(--v62-line)!important;border-radius:6px!important;box-shadow:none!important}.table th{background:#e9e5dc!important;color:#5b6968!important}.table td{border-bottom-color:#e8e3da!important}.table tbody tr:hover{background:#f5f1e8!important}.field input,.field select,.field textarea,.search-box{background:#fdfcf8!important;border-color:#d5d0c7!important;border-radius:5px!important}.field input:focus,.field select:focus,.field textarea:focus{border-color:#739497!important;box-shadow:0 0 0 2px rgba(66,111,114,.08)!important}.status-chip{border-radius:4px!important}.toast{background:#2d4347!important;border-left-color:var(--v62-sand)!important}

@media(max-width:1100px){.app-shell{grid-template-columns:190px 1fr!important}.dashboard-grid{grid-template-columns:1fr!important}.metric-grid{grid-template-columns:repeat(2,1fr)!important}.metric-card:nth-child(2){border-right:0!important}.metric-card:nth-child(-n+2){border-bottom:1px solid #e2ddd4!important}.summary-grid{grid-template-columns:repeat(2,1fr)!important}.summary-item:nth-child(2){border-right:0!important}.summary-item:nth-child(-n+2){border-bottom:1px solid #e6e1d8!important}}


/* =========================================================
   V6.3 — LIGHT BLUE OPERATIONS CONSOLE
   Inspired by classic control-panel dashboards: crisp,
   square, structured, light-blue — but keeps S-Watch content.
   ========================================================= */
:root{
  --lb-page:#eef5fa;
  --lb-paper:#ffffff;
  --lb-ink:#153451;
  --lb-text:#4f6a80;
  --lb-muted:#8095a7;
  --lb-line:#cfdee9;
  --lb-line-soft:#e3edf4;
  --lb-sidebar:#102a43;
  --lb-sidebar-2:#0d2237;
  --lb-primary:#2f80c9;
  --lb-primary-deep:#1f619f;
  --lb-cyan:#46a4dd;
  --lb-head:#c7d9e7;
  --lb-soft:#e7f2f9;
  --lb-soft2:#f5f9fc;
  --lb-green:#2d9a68;
  --lb-amber:#dca842;
  --lb-red:#c85f59;
}

html,body{background:var(--lb-page)!important;color:var(--lb-ink)!important}
.app-shell{grid-template-columns:214px minmax(0,1fr)!important;background:var(--lb-page)!important}
.sidebar{
  background:linear-gradient(180deg,var(--lb-sidebar) 0%,var(--lb-sidebar-2) 100%)!important;
  padding:0 0 16px!important;
  border-right:0!important;
  box-shadow:none!important;
}
.sidebar-head{
  min-height:82px!important;
  padding:17px 16px!important;
  border:0!important;
  background:#176ba8!important;
  display:flex!important;
  align-items:center!important;
}
.sidebar-head .brand{gap:10px!important}
.sidebar-head .brand-mark{
  width:34px!important;height:34px!important;border-radius:50%!important;
  display:grid!important;place-items:center!important;
  background:#fff!important;color:#176ba8!important;
  font-size:14px!important;font-weight:800!important;
  border:0!important;box-shadow:none!important;
}
.sidebar-head .brand-title{font-size:15px!important;color:#fff!important;font-weight:800!important}
.sidebar-head .brand-sub{font-size:8.5px!important;color:#d9efff!important;opacity:1!important}
.sidebar-section-label{padding:18px 16px 7px!important;font-size:8px!important;letter-spacing:1.35px!important;color:#6f94ae!important}
.nav{gap:0!important}
.nav button{
  height:44px!important;border:0!important;border-radius:0!important;
  padding:0 16px!important;color:#c2d3df!important;font-size:11px!important;font-weight:700!important;
  position:relative!important;background:transparent!important;
}
.nav button:hover{background:#153853!important;color:#fff!important}
.nav button.active{background:#2387c7!important;color:#fff!important;box-shadow:none!important}
.nav button.active::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#78c8f2}
.nav button.active .icon{color:#fff!important}
.sidebar-account{border-top:1px solid rgba(255,255,255,.10)!important;margin:0 14px!important;padding-top:14px!important}
.sidebar-user{padding-left:2px!important;padding-right:2px!important}.sidebar-user strong{color:#fff!important}.sidebar-user span{color:#7fa1b8!important}
.user-avatar{background:#2d74a8!important;color:#fff!important;border-radius:50%!important}
.logout-btn{color:#8eacbf!important;padding-left:2px!important}.logout-btn:hover{background:transparent!important;color:#fff!important}

.topbar{
  height:72px!important;background:#d6e4ef!important;border:0!important;
  border-bottom:1px solid #bfd2e0!important;padding:0 24px!important;box-shadow:none!important;
}
.page-heading h1{font-size:19px!important;color:#163957!important;font-weight:800!important}
.page-heading p{font-size:9.5px!important;color:#6e879a!important}
.system-clock{border-color:#b8cbd9!important}.system-clock span{color:#7890a1!important}.system-clock strong{color:#21445e!important}
.top-user-avatar{background:#1e639b!important;color:#fff!important;border-radius:50%!important}.top-user strong{color:#163b59!important}.top-user span{color:#738a9a!important}
.content{max-width:1460px!important;padding:20px 24px 36px!important}

/* Dashboard intro resembles a structured control-panel header */
.welcome-strip{
  min-height:96px!important;background:var(--lb-paper)!important;border:1px solid var(--lb-line)!important;
  border-radius:2px!important;box-shadow:none!important;padding:0!important;overflow:hidden!important;
  display:grid!important;grid-template-columns:1fr auto!important;align-items:stretch!important;
}
.welcome-strip::before{content:"RINGKASAN OPERASIONAL";grid-column:1/-1;height:27px;background:#2a78b8;color:#fff;display:flex;align-items:center;padding:0 16px;font-size:8px;letter-spacing:1.15px;font-weight:800}
.welcome-copy{padding:13px 16px!important}.welcome-copy .section-overline{display:none!important}
.welcome-copy h2{margin:0 0 4px!important;font-size:22px!important;color:#173a56!important;font-weight:800!important;letter-spacing:-.3px!important}
.welcome-copy h2 span{color:#237ab7!important}.welcome-copy p{margin:0!important;color:#71899b!important;font-size:10px!important}
.welcome-status{padding:13px 16px!important;align-self:center!important}.welcome-status .ops-date{color:#71899b!important}
.status-chip{border-radius:2px!important;background:#eaf6f0!important;color:#2d8e64!important;border:1px solid #cfe8da!important}

.metric-grid{gap:16px!important;margin-top:16px!important;grid-template-columns:repeat(4,minmax(0,1fr))!important}
.metric-card{
  min-height:126px!important;background:#fff!important;border:1px solid var(--lb-line)!important;
  border-radius:2px!important;box-shadow:none!important;padding:0 14px 14px!important;overflow:hidden!important;
}
.metric-card::before{content:"";display:block;height:27px;margin:0 -14px 12px;background:#e5f0f7;border-bottom:1px solid #cfdee9}
.metric-card::after{display:none!important}
.metric-card:hover{transform:none!important;box-shadow:0 3px 10px rgba(24,75,111,.08)!important}
.metric-top{margin-top:-39px!important;height:27px!important;position:relative!important;z-index:1!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
.metric-icon{width:25px!important;height:25px!important;border-radius:2px!important;background:#2d7fbd!important;color:#fff!important;padding:5px!important}
.metric-state{font-size:7px!important;color:#6f8aa0!important;letter-spacing:.8px!important}
.metric-value{font-size:30px!important;color:#164e83!important;font-weight:800!important;margin-top:13px!important}
.metric-label{font-size:11px!important;color:#1c405e!important;font-weight:800!important}.metric-note{font-size:8.5px!important;color:#8094a4!important}
.metric-card.tone-ocean,.metric-card.tone-teal,.metric-card.tone-sand,.metric-card.tone-coral{background:#fff!important}
.metric-card.tone-ocean .metric-icon{background:#2f80c9!important}.metric-card.tone-teal .metric-icon{background:#3797bf!important}.metric-card.tone-sand .metric-icon{background:#5f96c7!important}.metric-card.tone-coral .metric-icon{background:#3977ad!important}

.dashboard-grid{gap:16px!important;margin-top:16px!important;grid-template-columns:minmax(0,.9fr) minmax(0,1.4fr)!important}
.panel,.ops-summary-panel{
  background:#fff!important;border:1px solid var(--lb-line)!important;border-radius:2px!important;box-shadow:none!important;
}
.panel-head,.ops-summary-head{
  min-height:48px!important;padding:0 14px!important;background:#2478b7!important;border-bottom:1px solid #1d699f!important;color:#fff!important;
  display:flex!important;align-items:center!important;
}
.panel-head .section-overline,.ops-summary-head .section-overline{color:#cce9fb!important;font-size:7px!important}
.panel-head h3,.ops-summary-head h3{color:#fff!important;font-size:13px!important;margin-top:2px!important}
.panel-head .btn-outline{background:#fff!important;border-color:#fff!important;color:#1e659c!important}
.camera-status-list,.activity-list{background:#fff!important;min-height:210px!important}
.empty-state{background:#f8fbfd!important;color:#7890a1!important;border:0!important}.empty-state strong{color:#426078!important}
.camera-status-row,.activity-row{border-bottom-color:#e4edf3!important}.camera-dot{background:#49a2d9!important}.activity-type{border-radius:2px!important;background:#e2f0f8!important;color:#236d9d!important}.activity-type.ship{background:#e7edf7!important;color:#385e91!important}

.ops-summary-panel{margin-top:16px!important;overflow:hidden!important}
.ops-summary-head{border-radius:0!important}.summary-caption{color:#d4eaf8!important}
.summary-grid{gap:12px!important;padding:14px!important;background:#fff!important}
.summary-item{background:#f5f9fc!important;border:1px solid #dce8f0!important;border-radius:2px!important;min-height:64px!important}
.summary-item strong{color:#174d7d!important}.summary-item span:last-child{color:#758a9a!important}
.summary-dot.ocean,.summary-dot.teal,.summary-dot.sand,.summary-dot.coral{background:#3b87bf!important}

/* Internal pages inherit the same light-blue console language */
.page-toolbar,.camera-card,.health-panel{background:#fff!important;border:1px solid var(--lb-line)!important;border-radius:2px!important;box-shadow:none!important}
.toolbar-info h2{color:#174263!important}.toolbar-info p{color:#7890a1!important}
.btn{border-radius:2px!important}.btn-primary{background:#2c7fbe!important;border-color:#2c7fbe!important;color:#fff!important}.btn-primary:hover{background:#216da8!important}.btn-outline{background:#fff!important;border-color:#bfd2df!important;color:#245f8a!important}.btn-outline:hover{background:#edf6fb!important}
.table{background:#fff!important}.table th{background:#dbe9f3!important;color:#214e70!important;border-bottom:1px solid #c4d7e4!important}.table td{border-bottom-color:#e3edf3!important}.table tbody tr:hover{background:#f4f9fc!important}
.search-box,.field input,.field select,.field textarea{background:#fff!important;border-color:#c7d9e5!important}.field input:focus,.field select:focus,.field textarea:focus{border-color:#4a98cf!important;box-shadow:0 0 0 3px rgba(54,139,198,.10)!important}
.camera-card-head{background:#e4f0f7!important}.camera-card-title{color:#1f5277!important}.toast{background:#163d5b!important;border-left-color:#49a7df!important}

@media(max-width:1100px){.app-shell{grid-template-columns:190px 1fr!important}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.dashboard-grid{grid-template-columns:1fr!important}}
@media(max-width:720px){.app-shell{display:block!important}.sidebar{position:relative!important;height:auto!important}.metric-grid{grid-template-columns:1fr!important}.content{padding:14px!important}.welcome-strip{grid-template-columns:1fr!important}.welcome-status{padding-top:0!important}}

/* =========================================================
   V6.4 — MARITIME CLEAN DASHBOARD
   Approved direction: light-blue operational dashboard,
   maritime character, restrained shadows, clearer hierarchy.
   ========================================================= */
:root{
  --v64-navy:#10365c;
  --v64-navy-2:#164a78;
  --v64-blue:#2f7fd3;
  --v64-blue-2:#5aa8e8;
  --v64-cyan:#78c7e8;
  --v64-page:#edf6fc;
  --v64-panel:#ffffff;
  --v64-line:#d9e8f3;
  --v64-ink:#14345b;
  --v64-muted:#6c86a0;
  --v64-green:#2dbb7f;
  --v64-orange:#f5a63e;
  --v64-purple:#8c67e8;
}
html,body{background:var(--v64-page)!important;color:var(--v64-ink)!important}
.app-shell{grid-template-columns:226px minmax(0,1fr)!important;background:var(--v64-page)!important}

/* SIDEBAR */
.sidebar{
  position:relative!important;
  background:linear-gradient(180deg,#0d3c69 0%,#0d3155 58%,#0a2745 100%)!important;
  padding:0 12px 18px!important;
  box-shadow:8px 0 28px rgba(24,72,112,.12)!important;
  overflow:hidden!important;
}
.sidebar::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:250px;pointer-events:none;opacity:.30;
  background:
    linear-gradient(180deg,transparent 0%,rgba(0,21,42,.52) 60%,rgba(0,18,36,.8) 100%),
    radial-gradient(ellipse at 45% 100%,rgba(77,156,208,.42) 0 20%,transparent 21%),
    repeating-linear-gradient(176deg,transparent 0 23px,rgba(115,188,228,.14) 24px 25px);
}
.sidebar-head{
  position:relative;z-index:2;margin:0 -12px 8px;padding:20px 20px 18px!important;
  border:0!important;background:linear-gradient(135deg,#1c5f9d,#124779)!important;
  border-radius:0 0 16px 0!important;
}
.brand-mark{border:0!important;box-shadow:none!important;background:#f7fbff!important;color:#1d72bd!important;border-radius:50%!important;width:43px!important;height:43px!important}
.brand-ship{width:30px;height:30px;display:block}
.sidebar-head .brand-title{font-size:18px!important;color:#fff!important;font-weight:800!important}
.sidebar-head .brand-sub{font-size:10px!important;color:#c5e3f8!important;opacity:1!important}
.sidebar-section-label{position:relative;z-index:2;color:#78a7c8!important;padding:13px 12px 8px!important;font-size:8px!important;letter-spacing:1.5px!important}
.nav{position:relative;z-index:2;gap:5px!important}
.nav button{height:46px!important;border:0!important;border-radius:9px!important;color:#c5d9e9!important;padding:0 12px!important;font-weight:650!important;font-size:12px!important}
.nav button:hover{background:rgba(75,142,200,.17)!important;color:#fff!important}
.nav button.active{background:linear-gradient(90deg,#2c82d4,#2873c0)!important;color:#fff!important;box-shadow:0 7px 18px rgba(0,32,68,.20)!important}
.nav button.active::before{content:"";position:absolute;left:0;width:4px;height:24px;border-radius:0 4px 4px 0;background:#7ed4ff}
.sidebar-account{position:relative;z-index:2;border-top:1px solid rgba(255,255,255,.10)!important;padding-top:14px!important;margin-top:auto!important}
.side-system{color:#9fc1d8!important}.side-system-dot{background:#6be09e!important;box-shadow:0 0 0 5px rgba(107,224,158,.12)!important}
.logout-btn{color:#adc9dc!important;border-radius:9px!important}.logout-btn:hover{background:rgba(75,142,200,.16)!important;color:#fff!important}

/* TOPBAR */
.topbar{height:76px!important;background:rgba(250,253,255,.96)!important;border-bottom:1px solid #dceaf4!important;padding:0 30px!important;box-shadow:0 3px 14px rgba(33,80,120,.035)!important;backdrop-filter:blur(8px)!important}
.page-heading h1{color:#14345b!important;font-size:25px!important;font-weight:800!important;letter-spacing:-.6px!important}
.page-heading p{color:#7891a8!important;font-size:10.5px!important;margin-top:4px!important}
.system-clock{border-right:1px solid #dce8f1!important}.system-clock span{color:#7590a8!important}.system-clock strong{color:#164a78!important;font-size:13px!important}
.top-user-avatar{background:linear-gradient(135deg,#1f75c5,#174f8d)!important;color:#fff!important;width:42px!important;height:42px!important;border-radius:50%!important;box-shadow:0 4px 12px rgba(27,88,142,.18)!important}
.top-user strong{color:#17395f!important}.top-user span{color:#7891a8!important}
.content{max-width:1520px!important;padding:22px 26px 40px!important}

/* HERO */
.welcome-strip{
  position:relative!important;min-height:138px!important;border:1px solid #d6e8f4!important;border-radius:14px!important;
  padding:23px 28px!important;overflow:hidden!important;background:linear-gradient(100deg,#ffffff 0%,#f4fbff 51%,#e4f2fb 100%)!important;
  box-shadow:0 8px 24px rgba(33,88,132,.06)!important;display:flex!important;align-items:center!important;
}
.welcome-strip::before{content:"";position:absolute;left:0;top:27px;width:34px;height:3px;background:#2f80d4;border-radius:0 3px 3px 0}
.welcome-strip::after{content:"";display:block!important;position:absolute!important;right:0!important;bottom:0!important;width:56%!important;height:100%!important;background:linear-gradient(90deg,rgba(239,248,253,0),rgba(178,216,239,.18))!important;border-radius:0!important}
.welcome-copy{position:relative;z-index:3;max-width:52%}
.welcome-copy .section-overline{display:flex;align-items:center;gap:8px;color:#6485a3!important;font-size:8.5px!important;font-weight:800!important;letter-spacing:1.3px!important}
.welcome-copy .section-overline span{display:block;width:22px;height:2px;background:#2e7fd0;border-radius:2px}
.welcome-copy h2{margin:11px 0 6px!important;font-size:31px!important;letter-spacing:-.7px!important;color:#113663!important;font-weight:830!important}
.welcome-copy h2 span{color:#2b73bb!important}.welcome-copy p{color:#66839e!important;font-size:12px!important}
.welcome-art{position:absolute;z-index:1;right:0;bottom:0;width:58%;height:100%;opacity:.95;pointer-events:none}
.welcome-art svg{width:100%;height:100%;display:block}
.welcome-status{position:absolute!important;z-index:4;right:21px;top:17px!important;display:flex!important;align-items:center!important;gap:15px!important}
.ops-date{color:#66849e!important;font-size:9.5px!important}.status-chip{background:#e9f8f1!important;color:#267b56!important;border:1px solid #d4f1e3!important;border-radius:10px!important;padding:6px 10px!important;font-weight:700!important}.status-chip i{background:#32bd7e!important}

/* KPI */
.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin-top:15px!important}
.metric-card{position:relative!important;overflow:hidden!important;min-height:165px!important;padding:16px 18px 15px!important;border:1px solid #dbe9f3!important;border-radius:13px!important;background:#fff!important;box-shadow:0 8px 22px rgba(31,80,119,.06)!important;transition:transform .18s ease,box-shadow .18s ease!important}
.metric-card:hover{transform:translateY(-3px)!important;box-shadow:0 12px 28px rgba(31,80,119,.11)!important}
.metric-top{position:relative;z-index:3;margin-bottom:8px!important;display:flex;align-items:center;justify-content:space-between}
.metric-icon{width:42px!important;height:42px!important;border-radius:9px!important;display:flex;align-items:center;justify-content:center}.metric-icon .icon{width:20px!important;height:20px!important}
.metric-state{display:flex!important;align-items:center!important;gap:6px!important;background:#f4f9fc!important;border-radius:999px!important;padding:6px 9px!important;color:#708aa1!important;font-size:7px!important;letter-spacing:.65px!important;font-weight:800!important}.metric-state i{width:7px;height:7px;border-radius:50%;background:#34bf7e;box-shadow:0 0 0 4px rgba(52,191,126,.1)}
.metric-main{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) 46%;align-items:end;gap:8px;margin-top:2px}
.metric-value{font-size:34px!important;line-height:.95!important;color:#113660!important;font-weight:820!important}.metric-label{margin-top:8px;font-size:12px!important;color:#143d67!important;font-weight:800!important}.metric-note{margin-top:4px;font-size:9.5px!important;color:#7892a8!important}
.metric-spark{align-self:center;width:100%;height:60px;overflow:visible}.spark-line{fill:none;stroke-width:2;vector-effect:non-scaling-stroke}.spark-fill{opacity:.13}.metric-watermark{position:absolute;right:13px;bottom:6px;opacity:.08;color:#3b7db8}.metric-watermark .icon{width:54px;height:54px}
.tone-ocean .metric-icon{background:#e3f0ff!important;color:#287ed2!important}.tone-ocean .spark-line{stroke:#65a8ec}.tone-ocean .spark-fill{fill:#65a8ec}
.tone-teal .metric-icon{background:#dcf3ef!important;color:#2da58d!important}.tone-teal .spark-line{stroke:#64c7b7}.tone-teal .spark-fill{fill:#64c7b7}
.tone-sand .metric-icon{background:#fff0db!important;color:#ed9a31!important}.tone-sand .spark-line{stroke:#f4b65e}.tone-sand .spark-fill{fill:#f4b65e}
.tone-coral .metric-icon{background:#eee9ff!important;color:#7655d7!important}.tone-coral .spark-line{stroke:#9f85ec}.tone-coral .spark-fill{fill:#9f85ec}

/* MAIN PANELS */
.dashboard-grid{grid-template-columns:minmax(360px,.9fr) minmax(500px,1.1fr)!important;gap:16px!important;margin-top:16px!important}
.panel{border:1px solid #d8e7f2!important;border-radius:14px!important;background:#fff!important;box-shadow:0 8px 22px rgba(31,80,119,.055)!important;overflow:hidden!important}
.panel-head{min-height:68px!important;padding:12px 15px 12px 18px!important;border:0!important;background:linear-gradient(100deg,#174f82,#2269a4)!important;color:#fff!important;display:flex!important;align-items:center!important;justify-content:space-between!important}
.panel-title-wrap{display:flex;align-items:center;gap:11px}.panel-head-icon{width:32px;height:32px;border-radius:8px;background:rgba(255,255,255,.12);display:flex;align-items:center;justify-content:center;color:#bfe5ff}.panel-head-icon .icon{width:17px;height:17px}
.panel-head .section-overline{color:#b8d8ef!important;font-size:7.5px!important}.panel-head h3{margin:4px 0 0!important;color:#fff!important;font-size:15px!important;font-weight:800!important}
.panel-head .btn-outline{height:38px!important;border:0!important;background:#fff!important;color:#2166a2!important;border-radius:8px!important;box-shadow:0 3px 10px rgba(1,29,54,.12)!important;padding:0 13px!important}.btn-arrow{font-size:20px;line-height:1;margin-left:5px}
.camera-status-list,.activity-list{padding:0!important;min-height:188px!important}.empty-state.small{min-height:188px!important;padding:28px 20px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;background:linear-gradient(180deg,#fff,#fbfdff)!important}
.empty-icon{width:64px;height:64px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#eaf5fd,#dcecf8);color:#6ca3cd;margin-bottom:12px}.empty-icon .icon{width:30px;height:30px}.empty-state strong{color:#173f66!important;font-size:12px!important}.empty-state span{color:#7690a6!important;font-size:10px!important;margin-top:5px!important}
.camera-status-row,.activity-row{min-height:58px!important;padding:0 16px!important;border-bottom:1px solid #edf3f7!important}.camera-status-row:last-child,.activity-row:last-child{border-bottom:0!important}

/* SUMMARY */
.ops-summary-panel{margin-top:16px!important;border:1px solid #d8e7f2!important;border-radius:14px!important;background:linear-gradient(180deg,#fff,#fbfdff)!important;padding:0!important;box-shadow:0 8px 22px rgba(31,80,119,.05)!important;overflow:hidden!important}
.ops-summary-head{min-height:64px;margin:0!important;padding:13px 18px!important;border-bottom:1px solid #e4eef5!important;background:linear-gradient(90deg,#f8fcff,#f2f8fc)!important}.ops-summary-head .section-overline{color:#6d8ba4!important}.ops-summary-head h3{color:#153c62!important;font-size:15px!important}.summary-caption{color:#7890a3!important;font-size:9px!important}.summary-grid{grid-template-columns:repeat(4,1fr)!important;gap:10px!important;padding:13px!important}.summary-item{padding:13px!important;border:1px solid #e3edf4!important;border-radius:10px!important;background:#fff!important}.summary-item strong{color:#12395f!important;font-size:18px!important}.summary-item span:last-child{color:#7890a3!important;font-size:8.5px!important}.summary-dot.ocean{background:#378be0!important}.summary-dot.teal{background:#2fba98!important}.summary-dot.sand{background:#f2a138!important}.summary-dot.coral{background:#8d68e6!important}

/* OTHER PAGES */
.page-toolbar,.camera-card,.health-panel,.report-panel,.section-panel{background:#fff!important;border:1px solid #d8e7f2!important;border-radius:13px!important;box-shadow:0 7px 20px rgba(31,80,119,.045)!important}.btn-primary{background:#2b78c1!important;border-color:#2b78c1!important}.btn-primary:hover{background:#2269aa!important}.btn-outline{border-color:#cbddea!important;color:#1f5d93!important;background:#fff!important}.table th{background:#edf6fc!important;color:#52718c!important}.table td{border-bottom-color:#e8f0f6!important}.table tbody tr:hover{background:#f6fbff!important}.search-box,.field input,.field select,.field textarea{border-color:#cfdfeb!important;background:#fff!important}.toast{background:#123c62!important;border-left-color:#78c7e8!important}

@media(max-width:1100px){.metric-grid{grid-template-columns:repeat(2,1fr)!important}.dashboard-grid{grid-template-columns:1fr!important}.welcome-art{opacity:.45;width:70%}.welcome-copy{max-width:70%}}
@media(max-width:820px){.app-shell{grid-template-columns:72px minmax(0,1fr)!important}.sidebar{padding:0 8px 14px!important}.sidebar-head{margin:0 -8px 8px!important;padding:16px 10px!important}.sidebar-head .brand-copy,.sidebar-section-label,.side-system{display:none!important}.brand-mark{margin:auto}.nav button{justify-content:center!important;padding:0!important}.nav-label,.logout-btn span{display:none!important}.logout-btn{justify-content:center!important}.content{padding:14px!important}}
@media(max-width:620px){.metric-grid{grid-template-columns:1fr!important}.welcome-strip{min-height:150px!important}.welcome-copy{max-width:100%!important}.welcome-art{opacity:.18;width:100%}.welcome-status{right:12px;top:10px}.summary-grid{grid-template-columns:1fr 1fr!important}.metric-card{min-height:150px!important}}

/* ============================================================
   V6.5 REALISTIC OPERATIONS UI
   Clean HTML/CSS/JS dashboard. No decorative ship/wave artwork.
   ============================================================ */
:root{
  --v65-navy:#173451;
  --v65-navy-2:#214c73;
  --v65-blue:#4f8fc7;
  --v65-blue-soft:#e9f3fb;
  --v65-page:#f3f7fa;
  --v65-surface:#ffffff;
  --v65-line:#dce6ed;
  --v65-text:#18324a;
  --v65-muted:#758998;
  --v65-green:#3c8d68;
  --v65-amber:#d79a3b;
  --v65-violet:#7867b8;
}

html,body{background:var(--v65-page);color:var(--v65-text)}
.app-shell{grid-template-columns:224px minmax(0,1fr);background:var(--v65-page)}
.sidebar{background:linear-gradient(180deg,#193a5b 0%,#132e48 100%);padding:20px 14px 16px;border-right:0}
.sidebar-head{padding:0 6px 20px;border-bottom:1px solid rgba(255,255,255,.11)}
.sidebar-section-label{color:#8fb0c8;padding:18px 10px 7px;font-size:8.5px;letter-spacing:1.35px}
.nav{gap:4px}
.nav button{height:42px;border-left:0;border-radius:7px;color:#c6d6e2;padding:0 12px;font-size:11.5px;gap:10px}
.nav button:hover{background:rgba(255,255,255,.07)}
.nav button.active{background:#4f88bf;color:#fff;border-left:0;box-shadow:inset 3px 0 0 #a8d5f4}
.sidebar-account{border-top:1px solid rgba(255,255,255,.11)}
.logout-btn{border-radius:6px}

.topbar{height:74px;background:#fff;border-bottom:1px solid var(--v65-line);padding:0 28px;box-shadow:none}
.page-heading h1{font-size:22px;color:#16314b;letter-spacing:-.35px}
.page-heading p{font-size:10px;color:#8495a2}
.system-clock{border-right:1px solid #e1e9ef}
.top-user-avatar{background:#356da3}
.content{padding:24px 28px 38px;max-width:1480px}

/* Welcome / daily context */
.welcome-strip{position:relative;min-height:118px;background:#fff;border:1px solid var(--v65-line);border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:24px 28px;overflow:hidden;box-shadow:0 5px 18px rgba(31,65,94,.035)}
.welcome-strip::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:#5797ce}
.welcome-copy{position:relative;z-index:2}
.welcome-copy .section-overline{font-size:8.5px;letter-spacing:1.4px;color:#7190a8;font-weight:800}
.welcome-copy h2{margin:8px 0 5px;font-size:28px;line-height:1.05;letter-spacing:-.7px;color:#16324d;font-weight:750}
.welcome-copy h2 span{color:#4d82b5}
.welcome-copy p{margin:0;color:#7c8f9d;font-size:11.5px}
.welcome-status{display:flex;align-items:center;gap:14px;position:relative;z-index:2;padding-left:18px;border-left:1px solid #e5edf2}
.ops-date{font-size:10px;color:#7890a1;white-space:nowrap}
.status-chip{border-radius:999px;padding:5px 10px;font-size:8.5px}

/* Metrics: plain operational cards, no fake graphs or illustrations */
.metric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px}
.metric-card{position:relative;min-height:128px;background:#fff;border:1px solid var(--v65-line);border-radius:10px;padding:16px 17px 15px;overflow:hidden;box-shadow:0 4px 14px rgba(31,65,94,.025)}
.metric-card::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:#5c94c8}
.metric-card.tone-teal::after{background:#58aa98}
.metric-card.tone-sand::after{background:#dfa34e}
.metric-card.tone-coral::after{background:#7566b5}
.metric-card-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}
.metric-icon{width:34px;height:34px;border-radius:8px;background:#e7f1fa;color:#4d85bb;display:grid;place-items:center}
.metric-card.tone-teal .metric-icon{background:#e6f4f1;color:#4a9b89}
.metric-card.tone-sand .metric-icon{background:#fff3df;color:#c9862e}
.metric-card.tone-coral .metric-icon{background:#f0edfb;color:#7060ad}
.metric-icon .icon{width:17px;height:17px}
.metric-state{display:flex;align-items:center;gap:5px;color:#7f929f;text-transform:uppercase;font-size:7.5px;font-weight:800;letter-spacing:.45px}
.metric-state i{width:6px;height:6px;border-radius:50%;background:#58b982;box-shadow:0 0 0 3px #eaf7ef}
.metric-value{font-size:29px;line-height:1;font-weight:750;color:#18334d;letter-spacing:-.5px;margin-bottom:8px}
.metric-label{font-size:11.5px;color:#1d3953;font-weight:750;margin-bottom:4px}
.metric-note{font-size:8.8px;color:#8797a3}
.metric-main,.metric-top,.metric-watermark,.metric-spark{display:contents}

/* Main operational panels */
.dashboard-grid{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:14px;margin-top:14px}
.panel{background:#fff;border:1px solid var(--v65-line);border-radius:10px;box-shadow:0 4px 16px rgba(31,65,94,.025);overflow:hidden}
.dashboard-grid .panel{min-height:286px}
.panel-head{min-height:62px;background:#fff;border-bottom:1px solid #e5edf2;padding:0 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
.panel-title-wrap{display:flex;align-items:center;gap:11px}
.panel-head-icon{width:32px;height:32px;border-radius:7px;background:#eaf3fa;color:#4d82b2;display:grid;place-items:center}
.panel-head-icon .icon{width:16px;height:16px}
.panel-head .section-overline{font-size:7.5px;color:#8da0ae;letter-spacing:1px;font-weight:800}
.panel-head h3{font-size:14px;color:#18344d;margin:3px 0 0}
.btn{border-radius:7px}
.btn-outline{background:#fff;border-color:#cad9e4;color:#315f87}
.btn-primary{background:#356f9f;border-color:#356f9f}
.btn-small{height:32px;font-size:9.5px}
.btn-arrow{font-size:15px;line-height:1}
.camera-status-list,.activity-list{padding:12px 16px 16px}
.empty-state.small{min-height:190px;border:0;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px}
.empty-state.small .empty-icon{width:48px;height:48px;border-radius:50%;background:#eef5fa;color:#6789a4;display:grid;place-items:center;margin-bottom:5px}
.empty-state.small strong{font-size:11px;color:#29465e}
.empty-state.small span{font-size:9px;color:#8a99a5}
.camera-status-row,.activity-row{border-bottom:1px solid #edf2f5;padding:10px 2px}
.camera-status-row:last-child,.activity-row:last-child{border-bottom:0}

/* Bottom: one information bar, not duplicate dashboard cards */
.system-info-bar{margin-top:14px;background:#fff;border:1px solid var(--v65-line);border-radius:10px;min-height:72px;padding:14px 17px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 4px 14px rgba(31,65,94,.02)}
.system-info-main{display:flex;align-items:center;gap:11px}
.system-info-dot{width:9px;height:9px;border-radius:50%;background:#47a875;box-shadow:0 0 0 4px #ebf6f0}
.system-info-main>div{display:grid;gap:3px}
.system-info-main strong{font-size:10.5px;color:#24435c}
.system-info-main span{font-size:8.8px;color:#8a99a5}
.system-info-meta{display:flex;align-items:center;gap:0;border:1px solid #e5edf2;border-radius:7px;overflow:hidden;background:#f9fbfc}
.system-info-meta span{font-size:8.5px;color:#6f8494;padding:8px 11px;border-left:1px solid #e5edf2;white-space:nowrap}
.system-info-meta span:first-child{border-left:0}
.ops-summary-panel{display:none!important}

/* Other pages inherit the same practical system UI */
.page-toolbar{border:1px solid var(--v65-line);border-radius:10px;background:#fff;box-shadow:0 4px 14px rgba(31,65,94,.02)}
.toolbar-info h2{color:#18344d}
.camera-card,.report-panel,.health-panel,.section-panel{border-radius:10px;border-color:var(--v65-line);box-shadow:0 4px 14px rgba(31,65,94,.02)}
.table th{background:#f4f8fb;color:#637d91}
.table td{border-color:#e6edf2}
.search-box{border-radius:7px;border-color:#d7e2ea;background:#fff}

/* Remove all V6.4 decorative art leftovers */
.welcome-art,.metric-spark,.metric-watermark{display:none!important}

@media (max-width:1100px){
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .dashboard-grid{grid-template-columns:1fr}
  .system-info-bar{align-items:flex-start;flex-direction:column}
}
@media (max-width:760px){
  .app-shell{grid-template-columns:1fr}
  .sidebar{position:relative;height:auto}
  .topbar{position:relative;padding:0 16px}
  .content{padding:16px}
  .metric-grid{grid-template-columns:1fr}
  .welcome-strip{align-items:flex-start;flex-direction:column;padding:20px}
  .welcome-status{border-left:0;padding-left:0}
  .system-info-meta{flex-wrap:wrap}
}

/* ============================================================
   V6.6 — S-WATCH REAL SAAS DASHBOARD
   Clean production-style dashboard based on the approved layout.
   No ship silhouettes, fake waves, decorative illustrations, or
   oversized gradients. Maritime identity comes from content + palette.
   ============================================================ */
:root{
  --v66-sidebar:#103454;
  --v66-sidebar-deep:#0b2944;
  --v66-sidebar-active:#1f7ed0;
  --v66-bg:#eef6fb;
  --v66-surface:#ffffff;
  --v66-line:#d8e6f0;
  --v66-line-soft:#e7eff5;
  --v66-text:#102947;
  --v66-muted:#6f87a0;
  --v66-blue:#1887e8;
  --v66-blue-soft:#e3f2ff;
  --v66-green:#16a66a;
  --v66-green-soft:#ddf5eb;
  --v66-orange:#f08b16;
  --v66-orange-soft:#fff0dc;
  --v66-violet:#7449e8;
  --v66-violet-soft:#eee7ff;
  --v66-danger:#dc4d59;
  --v66-danger-soft:#fde8eb;
  --v66-shadow:0 5px 16px rgba(29,72,108,.055);
}

html,body{background:var(--v66-bg)!important;color:var(--v66-text)!important;scrollbar-width:none!important}
body::-webkit-scrollbar,.main::-webkit-scrollbar,.content::-webkit-scrollbar,.table-wrap::-webkit-scrollbar,.dash-table-wrap::-webkit-scrollbar{width:0!important;height:0!important;display:none!important}
body{overflow:hidden!important}
.app-shell{grid-template-columns:246px minmax(0,1fr)!important;background:var(--v66-bg)!important;height:100dvh!important;overflow:hidden!important}
.main{height:100dvh!important;overflow:auto!important;scrollbar-width:none!important}

/* sidebar */
.sidebar{position:relative!important;height:100dvh!important;background:linear-gradient(180deg,var(--v66-sidebar) 0%,var(--v66-sidebar-deep) 100%)!important;padding:0 13px 17px!important;border:0!important;box-shadow:none!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.sidebar::after{display:none!important}
.sidebar-head{margin:0 -13px 8px!important;padding:18px 19px 16px!important;background:transparent!important;border:0!important;border-bottom:1px solid rgba(255,255,255,.10)!important;border-radius:0!important}
.brand{display:flex!important;align-items:center!important;gap:11px!important}
.sidebar .brand-mark{width:53px!important;height:53px!important;border-radius:50%!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:hidden!important;display:grid!important;place-items:center!important;flex:0 0 53px!important}
.sidebar .brand-mark img{width:53px!important;height:53px!important;display:block!important;object-fit:contain!important}
.sidebar .brand-title{font-size:19px!important;line-height:1.1!important;color:#fff!important;font-weight:800!important;letter-spacing:-.25px!important}
.sidebar .brand-sub{font-size:10.5px!important;color:#b9d2e5!important;margin-top:4px!important}
.sidebar-section-label{padding:14px 12px 8px!important;color:#90b0c8!important;font-size:8px!important;font-weight:800!important;letter-spacing:1.45px!important}
.nav{display:grid!important;gap:4px!important}
.nav button{position:relative!important;height:48px!important;padding:0 13px!important;border:0!important;border-radius:8px!important;background:transparent!important;color:#d3e2ec!important;font-size:12px!important;font-weight:650!important;gap:11px!important;box-shadow:none!important}
.nav button .icon{width:20px!important;height:20px!important;color:#c8dbe8!important}
.nav button:hover{background:rgba(255,255,255,.07)!important;color:#fff!important}
.nav button.active{background:linear-gradient(90deg,#1e84d8,#2579c4)!important;color:#fff!important;box-shadow:none!important}
.nav button.active::before{content:""!important;position:absolute!important;left:-1px!important;top:10px!important;bottom:10px!important;width:3px!important;background:#bfe7ff!important;border-radius:0 3px 3px 0!important}
.nav button.active .icon{color:#fff!important}
.sidebar-bottom{margin-top:auto!important;border-top:1px solid rgba(255,255,255,.10)!important;padding-top:15px!important;position:relative!important;z-index:2!important}
.side-system{display:flex!important;align-items:flex-start!important;gap:9px!important;padding:0 10px 13px!important;color:#d4e3ec!important}
.side-system-dot{width:9px!important;height:9px!important;flex:0 0 9px!important;margin-top:3px!important;background:#24c784!important;box-shadow:0 0 0 4px rgba(36,199,132,.12)!important;border-radius:50%!important}
.side-system>span:last-child{display:grid!important;gap:3px!important}.side-system strong{font-size:10px!important;color:#f4f8fb!important}.side-system small{font-size:8.7px!important;color:#8fb0c8!important;font-weight:500!important}
.sidebar-account{display:none!important}
.logout-btn{height:42px!important;padding:0 10px!important;border-radius:7px!important;color:#b8cede!important;gap:10px!important}.logout-btn:hover{background:rgba(255,255,255,.06)!important;color:#fff!important}
.sidebar-version{padding:11px 10px 0!important;margin-top:6px!important;border-top:1px solid rgba(255,255,255,.08)!important;color:#6f92ab!important;font-size:8.5px!important}

/* white header card */
.topbar{position:relative!important;height:116px!important;margin:16px 18px 0!important;padding:18px 22px!important;background:#fff!important;border:1px solid var(--v66-line)!important;border-radius:14px!important;box-shadow:var(--v66-shadow)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:24px!important;backdrop-filter:none!important}
.page-heading{display:grid!important;align-content:center!important}
.top-kicker{font-size:8.5px!important;font-weight:800!important;letter-spacing:1.35px!important;color:#718dab!important;margin-bottom:5px!important}
.page-heading h1{font-size:31px!important;line-height:1!important;font-weight:820!important;letter-spacing:-.85px!important;color:var(--v66-text)!important;margin:0!important}
.page-heading p{font-size:12px!important;color:#66819d!important;margin:7px 0 0!important}
.top-actions{display:flex!important;align-items:center!important;gap:17px!important}
.system-clock{min-width:212px!important;padding:0 21px!important;border-left:1px solid #dfe9f0!important;border-right:1px solid #dfe9f0!important;display:grid!important;grid-template-columns:25px 1fr!important;column-gap:12px!important;align-items:center!important}
.system-clock::before{content:"";grid-row:1/4;width:22px;height:22px;background:no-repeat center/22px 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23487398' stroke-width='1.8' viewBox='0 0 24 24'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M16 3v4M8 3v4M3 10h18'/%3E%3C/svg%3E")}
.system-clock span{font-size:10px!important;color:#607d99!important;line-height:1.2!important;white-space:nowrap!important}
.system-clock strong{font-size:18px!important;line-height:1.1!important;color:#173b63!important;font-weight:800!important;letter-spacing:.15px!important}
.system-clock small{font-size:8.5px!important;color:#6e88a1!important;margin-top:2px!important}
.notification-btn{position:relative;width:40px;height:40px;border:0;background:transparent;color:#173b63;border-radius:9px;display:grid;place-items:center;cursor:pointer}
.notification-btn:hover{background:#f2f7fb}.notification-btn svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.notification-btn i{position:absolute;right:8px;top:7px;width:7px;height:7px;border-radius:50%;background:#ff2b32;border:2px solid #fff}
.top-user{gap:10px!important;min-width:150px!important}.top-user-avatar{width:43px!important;height:43px!important;border-radius:50%!important;background:#1c5b9f!important;color:#fff!important;box-shadow:none!important;font-size:11px!important}.top-user strong{color:#163855!important;font-size:11px!important}.top-user span{color:#758ca0!important;font-size:9px!important}

/* content */
.content{max-width:none!important;padding:18px 18px 28px!important;background:transparent!important}
.welcome-strip,.system-info-bar,.ops-summary-panel{display:none!important}

/* KPI */
.metric-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px!important;margin:0!important}
.metric-card{min-height:116px!important;padding:17px 18px!important;border:1px solid var(--v66-line)!important;border-radius:12px!important;background:#fff!important;box-shadow:var(--v66-shadow)!important;display:grid!important;grid-template-columns:48px minmax(0,1fr) 18px!important;align-items:center!important;gap:14px!important;overflow:hidden!important;transition:none!important}
.metric-card:hover{transform:none!important;box-shadow:var(--v66-shadow)!important}
.metric-card::after{display:none!important}
.metric-icon{width:48px!important;height:48px!important;border-radius:10px!important;display:grid!important;place-items:center!important}.metric-icon .icon{width:23px!important;height:23px!important}
.metric-copy{min-width:0!important}.metric-label{font-size:11px!important;color:#1a3b5b!important;font-weight:760!important;margin:0 0 5px!important}.metric-value{font-size:28px!important;color:#0e2b4c!important;font-weight:820!important;line-height:1!important;margin:0 0 7px!important;letter-spacing:-.5px!important}.metric-note{font-size:9.3px!important;color:#738aa0!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.metric-chevron{font-size:29px!important;line-height:1!important;color:#4d76a0!important;font-weight:300!important;justify-self:end!important}
.tone-ocean .metric-icon{background:var(--v66-blue-soft)!important;color:var(--v66-blue)!important}.tone-teal .metric-icon{background:var(--v66-green-soft)!important;color:var(--v66-green)!important}.tone-sand .metric-icon{background:var(--v66-orange-soft)!important;color:var(--v66-orange)!important}.tone-violet .metric-icon{background:var(--v66-violet-soft)!important;color:var(--v66-violet)!important}
.metric-state,.metric-card-head,.metric-main,.metric-top,.metric-spark,.metric-watermark{display:none!important}

/* cards and grids */
.dashboard-primary-grid{display:grid!important;grid-template-columns:minmax(0,1.7fr) minmax(330px,.9fr)!important;gap:14px!important;margin-top:14px!important}
.dashboard-secondary-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:14px!important;margin-top:14px!important}
.dashboard-card{background:#fff!important;border:1px solid var(--v66-line)!important;border-radius:12px!important;box-shadow:var(--v66-shadow)!important;overflow:hidden!important}
.trend-card,.system-card{min-height:334px!important}.table-card{min-height:254px!important}
.dash-card-head{min-height:70px!important;padding:14px 16px!important;border-bottom:1px solid var(--v66-line-soft)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;background:#fff!important}
.dash-card-head.compact{min-height:58px!important;padding:12px 14px!important}
.dash-card-title{display:flex!important;align-items:center!important;gap:11px!important}.dash-title-icon{width:36px!important;height:36px!important;border-radius:8px!important;background:#e6f3fd!important;color:#1887e8!important;display:grid!important;place-items:center!important;flex:0 0 36px!important}.dash-title-icon .icon{width:18px!important;height:18px!important}
.dash-card-title h3{margin:0!important;font-size:16px!important;color:#102947!important;font-weight:800!important;letter-spacing:-.2px!important}.dash-card-title p{margin:4px 0 0!important;font-size:10px!important;color:#728aa1!important}
.trend-actions{display:flex!important;align-items:center!important;gap:15px!important}.chart-legend{display:flex!important;gap:13px!important;color:#6f87a0!important;font-size:9px!important}.chart-legend span{display:flex!important;align-items:center!important;gap:6px!important}.chart-legend i{width:8px;height:8px;border-radius:50%}.legend-apd{background:var(--v66-blue)!important}.legend-ship{background:var(--v66-orange)!important}.range-btn{height:34px!important;padding:0 11px!important;border:1px solid #d3e0e9!important;border-radius:8px!important;background:#fff!important;color:#3d5d7d!important;font-size:9px!important;font-weight:700!important}
.trend-chart-box{padding:8px 14px 10px!important;height:250px!important}.trend-chart{width:100%!important;height:100%!important;display:block!important;overflow:visible!important}.chart-grid-line{stroke:#e2ebf2;stroke-width:1}.chart-y-label,.chart-x-label{fill:#70879d;font-size:10px;font-family:Inter,Segoe UI,Arial,sans-serif}.chart-line{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.chart-line-apd{stroke:var(--v66-blue)}.chart-line-ship{stroke:var(--v66-orange)}.chart-area{opacity:.09}.chart-area-apd{fill:var(--v66-blue)}.chart-area-ship{fill:var(--v66-orange)}.chart-dot{stroke:#fff;stroke-width:2}.apd-dot{fill:var(--v66-blue)}.ship-dot{fill:var(--v66-orange)}

/* system status */
.system-list{padding:0 16px!important}.system-row{min-height:51px!important;border-bottom:1px solid #e8eff4!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important}.system-row:last-child{border-bottom:0!important}.system-row-main{display:flex!important;align-items:center!important;gap:10px!important;min-width:0!important}.sys-icon{width:34px!important;height:34px!important;border-radius:8px!important;background:#e3f5ed!important;color:var(--v66-green)!important;display:grid!important;place-items:center!important;flex:0 0 34px!important}.sys-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.system-row:nth-child(4) .sys-icon,.system-row:nth-child(5) .sys-icon{background:#fff0dc!important;color:var(--v66-orange)!important}.system-row-main strong{display:block!important;font-size:11px!important;color:#173653!important}.system-row-main span{display:block!important;font-size:9px!important;color:#758ca1!important;margin-top:3px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;max-width:190px!important}.system-badge{display:flex!important;align-items:center!important;gap:6px!important;border-radius:8px!important;padding:7px 9px!important;font-size:8.5px!important;font-weight:750!important;white-space:nowrap!important}.system-badge i{width:6px;height:6px;border-radius:50%}.system-badge.ok{background:#e6f7ef;color:#138655}.system-badge.ok i{background:#18a96c}.system-badge.warn{background:#fff4df;color:#b76c0c}.system-badge.warn i{background:#f19a22}.system-badge.danger{background:#fde8eb;color:#c6414d}.system-badge.danger i{background:#dc4d59}

/* dashboard tables */
.dashboard-table-area{min-height:190px!important}.dash-table-wrap{width:100%!important;overflow:auto!important}.dash-table{width:100%!important;border-collapse:collapse!important;font-size:9px!important}.dash-table th{height:36px!important;text-align:left!important;padding:0 12px!important;background:#f4f8fb!important;color:#58728b!important;font-weight:750!important;border-bottom:1px solid #e1eaf0!important;white-space:nowrap!important}.dash-table td{height:39px!important;padding:0 12px!important;border-bottom:1px solid #edf2f6!important;color:#557087!important}.dash-table tbody tr:last-child td{border-bottom:0!important}.dash-table strong{color:#173653!important}.table-link{border:0;background:transparent;color:#157bd1;font-size:8.5px;font-weight:750;cursor:pointer}.event-kind{display:inline-flex;align-items:center;border-radius:6px;padding:5px 7px;font-size:8px;font-weight:750}.event-kind.apd{background:#fff0dc;color:#b96d0f}.event-kind.ship{background:#e6f3fd;color:#1a77bf}
.table-empty{min-height:190px!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;text-align:center!important;padding:18px!important;gap:6px!important}.table-empty-icon{width:52px!important;height:52px!important;border-radius:50%!important;background:#edf3f8!important;color:#6887a3!important;display:grid!important;place-items:center!important;margin-bottom:2px!important}.table-empty-icon .icon{width:24px!important;height:24px!important}.table-empty strong{font-size:11px!important;color:#173653!important}.table-empty span{font-size:9px!important;color:#788ea2!important}.table-empty .btn{margin-top:8px!important}

/* Buttons and shared internals */
.btn{border-radius:7px!important;box-shadow:none!important}.btn-small{height:34px!important;padding:0 12px!important;font-size:9px!important}.btn-primary{background:var(--v66-blue)!important;border-color:var(--v66-blue)!important;color:#fff!important}.btn-primary:hover{background:#1076cc!important}.btn-outline{background:#fff!important;border-color:#a9d1f1!important;color:#137bd2!important}.btn-outline:hover{background:#f4f9fd!important}.status-chip{border-radius:7px!important}
.page-toolbar,.panel,.camera-card,.health-panel,.section-panel{border-radius:12px!important;border-color:var(--v66-line)!important;box-shadow:var(--v66-shadow)!important;background:#fff!important}
.table th{background:#f4f8fb!important}.table td{border-color:#e8eff4!important}

@media(max-width:1250px){
  .app-shell{grid-template-columns:215px minmax(0,1fr)!important}
  .dashboard-primary-grid{grid-template-columns:1fr!important}
  .system-card{min-height:auto!important}
  .system-row-main span{max-width:none!important}
}
@media(max-width:980px){
  .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .dashboard-secondary-grid{grid-template-columns:1fr!important}
  .topbar{height:auto!important;min-height:110px!important;align-items:flex-start!important;flex-direction:column!important}
  .top-actions{width:100%!important;justify-content:flex-end!important}
}
@media(max-width:760px){
  body{overflow:auto!important}
  .app-shell{display:block!important;height:auto!important}
  .sidebar{position:relative!important;height:auto!important;min-height:0!important}
  .sidebar-bottom{display:none!important}
  .main{height:auto!important;overflow:visible!important}
  .topbar{margin:10px!important;padding:16px!important;border-radius:10px!important}
  .top-actions{justify-content:flex-start!important;flex-wrap:wrap!important}
  .system-clock{border-left:0!important;padding-left:0!important}
  .content{padding:0 10px 18px!important}
  .metric-grid{grid-template-columns:1fr!important}
  .dashboard-primary-grid,.dashboard-secondary-grid{grid-template-columns:1fr!important}
  .trend-actions{display:none!important}
}

/* ==========================================================
   V6.6.1 HOTFIX — remove legacy KPI pseudo element
   Legacy V6.3/V6.4 CSS left .metric-card::before active.
   Because V6.6 metric cards use CSS Grid, that pseudo element
   became an extra grid item and pushed icon/text into wrong cols.
   ========================================================== */
.metric-card::before{
  content:none!important;
  display:none!important;
  width:0!important;
  height:0!important;
  margin:0!important;
  padding:0!important;
  background:none!important;
  border:0!important;
}
.metric-card{
  grid-template-columns:48px minmax(0,1fr) 18px!important;
}
.metric-icon{grid-column:1!important}
.metric-copy{grid-column:2!important;min-width:0!important;display:block!important}
.metric-chevron{grid-column:3!important}
.metric-label,.metric-value,.metric-note{white-space:normal!important;max-width:none!important}
.metric-note{white-space:nowrap!important}


/* V6.6.2 — clearer operational icons */
.metric-icon .icon{width:22px!important;height:22px!important}
.metric-icon{display:grid!important;place-items:center!important}
.dash-title-icon .icon{width:20px!important;height:20px!important}
.table-empty-icon .icon{width:25px!important;height:25px!important}
.sidebar .nav .icon{width:19px!important;height:19px!important}
.icon svg{stroke-width:1.85!important}


/* ==========================================================
   V6.6.3 — UNIFIED ICON SYSTEM
   One visual language for dashboard/nav/KPI/system icons.
   ========================================================== */
.icon,
.sys-icon{
  line-height:0!important;
}
.icon svg,
.sys-icon svg{
  display:block!important;
  width:100%!important;
  height:100%!important;
  fill:none!important;
  stroke:currentColor!important;
  stroke-width:1.9!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke!important;
}

/* sidebar icons — same size/stroke, no random coloring */
.sidebar .nav .icon{
  width:18px!important;
  height:18px!important;
  flex:0 0 18px!important;
  color:#b9cde0!important;
}
.sidebar .nav button.active .icon,
.sidebar .nav button:hover .icon{
  color:#fff!important;
}
.logout-btn .icon{
  width:18px!important;
  height:18px!important;
  color:#b9cde0!important;
}

/* KPI icons — same container geometry, only controlled semantic tint */
.metric-icon{
  width:44px!important;
  height:44px!important;
  min-width:44px!important;
  border-radius:10px!important;
  border:1px solid transparent!important;
  box-shadow:none!important;
}
.metric-icon .icon{
  width:21px!important;
  height:21px!important;
}
.tone-ocean .metric-icon{
  background:#eaf4fd!important;
  color:#1b78c5!important;
  border-color:#d8eaf8!important;
}
.tone-teal .metric-icon{
  background:#e9f6f2!important;
  color:#258c73!important;
  border-color:#d8ede7!important;
}
.tone-sand .metric-icon{
  background:#fff4e5!important;
  color:#d77a13!important;
  border-color:#f7e4c8!important;
}
.tone-violet .metric-icon{
  background:#eef0fb!important;
  color:#5467b9!important;
  border-color:#dfe3f5!important;
}

/* Card header icons — no mismatched icon box */
.dash-title-icon{
  width:34px!important;
  height:34px!important;
  flex:0 0 34px!important;
  border-radius:9px!important;
  background:#edf5fb!important;
  color:#3378ad!important;
  box-shadow:none!important;
}
.dash-title-icon .icon{
  width:18px!important;
  height:18px!important;
}

/* Empty-state icons — neutral and consistent */
.table-empty-icon{
  width:48px!important;
  height:48px!important;
  border-radius:50%!important;
  background:#f0f5f9!important;
  color:#718ba2!important;
  border:1px solid #e3ebf1!important;
}
.table-empty-icon .icon{
  width:22px!important;
  height:22px!important;
}

/* System icons — status semantics, same geometry */
.sys-icon{
  width:32px!important;
  height:32px!important;
  flex:0 0 32px!important;
  border-radius:8px!important;
  display:grid!important;
  place-items:center!important;
  padding:7px!important;
  background:#e9f6f0!important;
  color:#2c8a68!important;
}
.sys-icon-cctv,
.sys-icon-apd{
  background:#fff4e5!important;
  color:#d77a13!important;
}
.sys-icon svg{
  width:18px!important;
  height:18px!important;
}

/* Remove any icon pseudo-content from older revisions */
.metric-icon::before,
.metric-icon::after,
.dash-title-icon::before,
.dash-title-icon::after,
.sys-icon::before,
.sys-icon::after{
  content:none!important;
  display:none!important;
}


/* ==========================================================
   V6.6.4 — KPI ICON CONTRAST FIX
   Make the first three KPI icons as visible as Event Kapal.
   ========================================================== */
.metric-icon{
  width:48px!important;
  height:48px!important;
  min-width:48px!important;
  border-radius:11px!important;
  opacity:1!important;
}
.metric-icon .icon{
  width:25px!important;
  height:25px!important;
  opacity:1!important;
}
.metric-icon .icon svg{
  width:100%!important;
  height:100%!important;
  stroke:currentColor!important;
  stroke-width:2.35!important;
  opacity:1!important;
}
.tone-ocean .metric-icon{
  background:#e6f2ff!important;
  color:#0b67bd!important;
  border-color:#cfe5f8!important;
}
.tone-teal .metric-icon{
  background:#e5f5ef!important;
  color:#087b64!important;
  border-color:#cae9df!important;
}
.tone-sand .metric-icon{
  background:#fff0da!important;
  color:#c76500!important;
  border-color:#f2d9b4!important;
}
.tone-violet .metric-icon{
  background:#ecebfb!important;
  color:#5544bd!important;
  border-color:#d9d5f4!important;
}


/* ==========================================================
   V6.6.5 — CLEAN KPI / REAL SAAS VISUAL HOTFIX
   - remove legacy tinted strip/background behind KPI cards
   - make camera KPI icon unmistakably visible
   - preserve the approved white-card / light-blue dashboard
   ========================================================== */
:root{
  --v665-page:#eef6fb;
  --v665-card:#ffffff;
  --v665-border:#d8e6f0;
  --v665-blue:#176fc1;
}

/* no hidden beige/tinted band behind the KPI row */
#metricGrid.metric-grid,
.metric-grid{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  overflow:visible!important;
  padding:0!important;
  gap:14px!important;
}
#metricGrid .metric-card,
.metric-grid > .metric-card{
  background:var(--v665-card)!important;
  border:1px solid var(--v665-border)!important;
  border-radius:12px!important;
  box-shadow:0 4px 14px rgba(29,72,108,.045)!important;
  min-height:116px!important;
}
#metricGrid .metric-card::before,
#metricGrid .metric-card::after{
  content:none!important;
  display:none!important;
}

/* camera KPI — high contrast like Event Kapal */
.metric-card.tone-ocean > .metric-icon{
  background:#e3efff!important;
  color:#0a60bd!important;
  border:1px solid #c8ddf7!important;
  width:52px!important;
  height:52px!important;
  min-width:52px!important;
  border-radius:12px!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)!important;
}
.metric-card.tone-ocean > .metric-icon .icon-cameraKpi{
  width:29px!important;
  height:29px!important;
  color:#0a60bd!important;
  opacity:1!important;
}
.metric-card.tone-ocean > .metric-icon .icon-cameraKpi svg{
  width:100%!important;
  height:100%!important;
  stroke:#0a60bd!important;
  stroke-width:2.5!important;
  opacity:1!important;
}

/* keep all KPI icon containers equally readable */
.metric-card.tone-teal > .metric-icon{
  background:#e5f5ef!important;color:#087b64!important;border-color:#c9e8df!important;
}
.metric-card.tone-sand > .metric-icon{
  background:#fff0da!important;color:#c76500!important;border-color:#f1d8b2!important;
}
.metric-card.tone-violet > .metric-icon{
  background:#eeedff!important;color:#5544bd!important;border-color:#d9d5f4!important;
}

/* clean page background: only soft marine blue, no decorative/tinted patches */
html,body,.app-shell,.main{
  background:var(--v665-page)!important;
}
.content{
  background:transparent!important;
}
.dashboard-card,
.topbar{
  background:#fff!important;
}

/* card headers remain flat/white, not presentation-like */
.dash-card-head,
.dash-card-head.compact{
  background:#fff!important;
}

/* unified card title icon — visibly blue but not saturated */
.dash-title-icon{
  background:#edf5fc!important;
  color:#2f78bc!important;
  border:1px solid #e1edf6!important;
}

/* keep scroll functional but visually hidden */
html,body,.main,.dash-table-wrap{
  scrollbar-width:none!important;
  -ms-overflow-style:none!important;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.main::-webkit-scrollbar,
.dash-table-wrap::-webkit-scrollbar{
  width:0!important;
  height:0!important;
  display:none!important;
}


/* =========================================================
   S-WATCH V6.6.6
   LIVE VIEW 4 CAMERA GRID
========================================================= */

.live-grid-v666{
  display:grid;
  grid-template-columns:
    repeat(2,minmax(0,1fr));

  gap:16px;
  margin-top:14px;
}


/* CAMERA CARD */

.live-camera-card-v666{
  min-width:0;

  background:#ffffff;

  border:
    1px solid #dbe6ef;

  border-radius:14px;

  padding:14px;

  box-shadow:
    0 5px 18px
    rgba(32,68,102,.045);
}


/* HEADER CAMERA */

.live-camera-head-v666{
  display:flex;

  align-items:center;

  justify-content:
    space-between;

  gap:12px;

  min-height:34px;

  margin-bottom:10px;
}


.live-camera-title-v666{
  display:flex;

  align-items:center;

  gap:12px;

  min-width:0;

  flex-wrap:wrap;
}


.live-camera-head-v666 strong{
  color:#17324f;

  font-size:16px;

  line-height:1.2;

  font-weight:700;
}


/* STATUS */

.live-camera-state-v666{
  display:inline-flex;

  align-items:center;

  gap:7px;

  font-size:12px;

  font-weight:600;

  color:#71869a;
}


.live-camera-state-v666 i{
  width:8px;

  height:8px;

  border-radius:50%;

  background:#95a6b6;
}


.live-camera-state-v666.online{
  color:#279761;
}


.live-camera-state-v666.online i{
  background:#2caf6f;
}


.live-camera-state-v666.offline{
  color:#8b98a4;
}


.live-camera-state-v666.offline i{
  background:#aab5be;
}


/* FULLSCREEN BUTTON */

.live-expand-v666{
  width:32px;

  height:32px;

  border:0;

  background:transparent;

  color:#356da5;

  border-radius:7px;

  font-size:20px;

  line-height:1;

  cursor:pointer;
}


.live-expand-v666:hover{
  background:#edf5fc;
}


.live-expand-v666:disabled{
  opacity:.3;

  cursor:default;

  background:transparent;
}


/* VIDEO FRAME */

.live-camera-frame-v666{
  position:relative;

  width:100%;

  aspect-ratio:16 / 7.4;

  overflow:hidden;

  border-radius:10px;

  background:#eaf1f6;

  border:
    1px solid #d7e3ec;
}


.live-camera-frame-v666 > img{
  display:block;

  width:100%;

  height:100%;

  object-fit:cover;

  background:#101820;
}


/* EMPTY CAMERA */

.live-camera-empty-v666{
  position:absolute;

  inset:0;

  display:flex;

  flex-direction:column;

  align-items:center;

  justify-content:center;

  gap:7px;

  text-align:center;

  padding:24px;

  color:#7b8e9f;

  background:#f4f8fb;
}


.live-camera-empty-v666 .icon{
  width:38px;

  height:38px;

  padding:8px;

  color:#567794;

  background:#e6eef5;

  border-radius:50%;
}


.live-camera-empty-v666
.icon svg{
  width:100%;

  height:100%;

  stroke-width:1.8;
}


.live-camera-empty-v666 strong{
  font-size:13px;

  color:#435d74;
}


.live-camera-empty-v666 span{
  font-size:11px;

  max-width:330px;
}


/* CCTV OVERLAY */

.live-camera-time-v666,
.live-camera-label-v666{
  position:absolute;

  z-index:3;

  left:10px;

  color:#fff;

  background:
    rgba(15,27,39,.72);

  border-radius:5px;

  padding:5px 8px;

  font-size:11px;

  line-height:1;

  backdrop-filter:
    blur(2px);
}


.live-camera-time-v666{
  top:10px;

  font-variant-numeric:
    tabular-nums;
}


.live-camera-label-v666{
  bottom:10px;
}


.live-camera-empty-v666.hidden{
  display:none !important;
}


/* EMPTY SLOT */

.live-camera-card-v666.is-empty
.live-camera-time-v666,

.live-camera-card-v666.is-empty
.live-camera-label-v666{
  display:none;
}


/* TABLET */

@media(max-width:980px){

  .live-grid-v666{
    grid-template-columns:1fr;
  }

  .live-camera-frame-v666{
    aspect-ratio:16 / 9;
  }

}


/* MOBILE */

@media(max-width:620px){

  .live-grid-v666{
    gap:10px;

    margin-top:10px;
  }


  .live-camera-card-v666{
    padding:10px;

    border-radius:10px;
  }


  .live-camera-head-v666 strong{
    font-size:14px;
  }

}

