/* v1.0.78 — command interface unification.
   A restrained operations-console frame around clear, light working surfaces. */
:root{
  --v178-void:#04111f;
  --v178-navy:#071c2e;
  --v178-panel:#0a2438;
  --v178-panel-2:#0d2c42;
  --v178-cyan:#25e3d1;
  --v178-blue:#55bff4;
  --v178-amber:#ffb454;
  --v178-red:#ff746c;
  --v178-violet:#a991ff;
  --v178-work:#f3f7f9;
  --v178-line:#d5e0e6;
  --v178-module:var(--v178-cyan);
}

body[data-module="roster"]{--v178-module:#25e3d1}
body[data-module="attendance"]{--v178-module:#a991ff}
body[data-module="work"]{--v178-module:#55bff4}
body[data-module="issues"],body[data-module="feedback"]{--v178-module:#ff746c}
body[data-module="people"],body[data-module="clients"]{--v178-module:#25e3d1}
body[data-module="learning"],body[data-module="workflows"]{--v178-module:#a991ff}
body[data-module="sites"],body[data-module="agreements"]{--v178-module:#55bff4}
body[data-module="assurance"]{--v178-module:#ffb454}
body[data-module="controlled"],body[data-module="compliance"],body[data-module="ims"]{--v178-module:#55bff4}
body[data-module="quotes"],body[data-module="reports"],body[data-module="procurement"]{--v178-module:#ffb454}

body{background:var(--v178-work)}
.shell{background:var(--v178-work)}
.shell>aside{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(rgba(37,227,209,.026) 1px,transparent 1px),
    linear-gradient(90deg,rgba(37,227,209,.026) 1px,transparent 1px),
    linear-gradient(180deg,#061728 0%,#04111f 100%);
  background-size:28px 28px,28px 28px,auto;
  border-right:1px solid #12364b;
  box-shadow:12px 0 34px rgba(4,17,31,.11);
}
.shell>aside:after{content:"";position:absolute;right:-72px;bottom:10%;width:130px;height:130px;border:1px solid rgba(37,227,209,.12);border-radius:50%;box-shadow:0 0 0 22px rgba(37,227,209,.025),0 0 0 44px rgba(37,227,209,.018);pointer-events:none}
.shell>aside .brand{position:relative;padding:2px 2px 21px;border-bottom:1px solid rgba(110,188,207,.13)}
.shell>aside .brand:after{content:"LIVE";position:absolute;right:2px;bottom:8px;color:#56dccc;font-size:6px;font-weight:800;letter-spacing:.16em}
.shell>aside .brand:before{content:"";position:absolute;right:30px;bottom:10px;width:5px;height:5px;border-radius:50%;background:var(--v178-cyan);box-shadow:0 0 9px var(--v178-cyan)}
.shell>aside nav{position:relative;z-index:1;margin-top:17px}
.shell>aside nav>a,.shell>aside .nav-section>a{position:relative;border:1px solid transparent;color:#a9bdca;background:transparent}
.shell>aside nav>a:hover,.shell>aside .nav-section>a:hover{border-color:#1a4055;background:rgba(15,47,66,.72);color:#fff}
.shell>aside nav>a.active,.shell>aside .nav-section>a.active{border-color:color-mix(in srgb,var(--v178-module) 38%,#15384d);background:linear-gradient(90deg,color-mix(in srgb,var(--v178-module) 12%,#0a2537),#091c2c);color:#fff;box-shadow:inset 3px 0 var(--v178-module),0 0 20px color-mix(in srgb,var(--v178-module) 7%,transparent)}
.shell>aside nav>a.active:after,.shell>aside .nav-section>a.active:after{content:"";position:absolute;right:10px;width:5px;height:5px;border-radius:50%;background:var(--v178-module);box-shadow:0 0 8px var(--v178-module)}
.shell>aside .nav-section{border-color:rgba(110,188,207,.09)}
.shell>aside .nav-section summary{color:#628194;font-size:7px;letter-spacing:.17em}
.shell>aside .nav-section[open] summary{color:#89a7b7}
.shell>aside .secure{position:relative;z-index:1;border-color:#174054;background:rgba(6,25,40,.86)}
.shell>aside .secure:before{content:"";display:inline-block;width:6px;height:6px;margin-right:7px;border-radius:50%;background:var(--v178-cyan);box-shadow:0 0 8px rgba(37,227,209,.7)}

/* Every module starts with the same command header. */
.shell:not(.command-shell)>main{background:radial-gradient(circle at 91% 0,rgba(37,227,209,.08),transparent 30rem),var(--v178-work)}
.shell:not(.command-shell)>main>header{
  position:relative;
  overflow:hidden;
  min-height:126px;
  align-items:center;
  margin-top:0;
  padding:23px 28px;
  border:1px solid #173e53;
  border-radius:11px;
  background:
    linear-gradient(rgba(85,191,244,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(85,191,244,.035) 1px,transparent 1px),
    radial-gradient(circle at 72% 30%,color-mix(in srgb,var(--v178-module) 12%,transparent),transparent 18rem),
    linear-gradient(112deg,#061727,#0a2a40 64%,#073943);
  background-size:32px 32px,32px 32px,auto,auto;
  box-shadow:0 16px 35px rgba(5,23,39,.16);
}
.shell:not(.command-shell)>main>header:after{content:"OPS / LIVE";position:absolute;right:27px;bottom:14px;color:color-mix(in srgb,var(--v178-module) 70%,#7896a7);font-size:7px;font-weight:800;letter-spacing:.18em}
.shell:not(.command-shell)>main>header:before{content:"";position:absolute;right:92px;bottom:16px;width:5px;height:5px;border-radius:50%;background:var(--v178-module);box-shadow:0 0 9px var(--v178-module)}
.shell:not(.command-shell)>main>header .eyebrow{color:var(--v178-module);font-size:8px;letter-spacing:.2em}
.shell:not(.command-shell)>main>header h1{color:#fff;font-size:29px;letter-spacing:-.035em}
.shell:not(.command-shell)>main>header .sub{color:#9fbdcb;font-size:11px}
.shell:not(.command-shell)>main>header .identity{position:relative;z-index:1;border-color:#255064;background:rgba(7,29,45,.84);color:#ddecf2;box-shadow:inset 0 1px rgba(255,255,255,.04)}

/* Scope is a compact command bar instead of a floating form. */
.scope-control{margin-top:10px}
.scope-toggle{position:relative;overflow:hidden;min-height:54px;border:1px solid #163b50;border-radius:8px;background:linear-gradient(100deg,#081d2f,#0b2b40);color:#dceaf0;box-shadow:0 7px 18px rgba(5,23,39,.1)}
.scope-toggle:before{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--v178-module);box-shadow:0 0 11px var(--v178-module)}
.scope-toggle:hover{border-color:color-mix(in srgb,var(--v178-module) 46%,#1a3f52);background:linear-gradient(100deg,#0a2235,#0d3147)}
.scope-toggle small{color:#6d93a4;letter-spacing:.16em}.scope-toggle b{color:#fff}.scope-toggle>i{color:var(--v178-module);font-size:8px;letter-spacing:.12em;text-transform:uppercase}
.scope-menu{border-color:#183e53;border-radius:9px;box-shadow:0 24px 65px rgba(5,23,39,.28)}
.scope-menu>header{background:linear-gradient(110deg,#071b2d,#0b3044);color:#fff}

/* Instrument tiles. */
.stats{gap:10px;margin:10px 0}
.stats article{position:relative;overflow:hidden;min-height:92px;padding:17px 19px;border:1px solid #173c50;border-radius:8px;background:linear-gradient(135deg,#0a2235,#081a2a);box-shadow:0 7px 19px rgba(5,23,39,.1)}
.stats article:before{inset:0 auto 0 0;width:3px;background:var(--v178-module);box-shadow:0 0 12px var(--v178-module)}
.stats article:after{content:"";position:absolute;right:14px;bottom:13px;width:48px;height:18px;border-right:1px solid color-mix(in srgb,var(--v178-module) 48%,transparent);border-bottom:1px solid color-mix(in srgb,var(--v178-module) 48%,transparent);transform:skewX(-38deg);opacity:.55}
.stats article small{color:#7798a8;font-size:7px;letter-spacing:.16em;text-transform:uppercase}
.stats article b{color:#fff;font-size:27px;line-height:1}

/* One console workstation with a dark control rail and a light data plane. */
.workspace{position:relative;overflow:hidden;border:1px solid #cddbe2;border-radius:9px;background:#fff;box-shadow:0 12px 34px rgba(6,28,45,.09)}
.workspace>.panel-head{position:relative;min-height:70px;align-items:center;padding:14px 18px;border-bottom:1px solid #183e53;background:linear-gradient(105deg,#071c2e,#0a2d43);color:#fff}
.workspace>.panel-head:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--v178-module);box-shadow:0 0 12px var(--v178-module)}
.workspace>.panel-head:after{content:"CONTROL SURFACE";position:absolute;right:18px;bottom:7px;color:#557a8b;font-size:6px;font-weight:800;letter-spacing:.16em}
.workspace>.panel-head h2{color:#fff;font-size:16px}.workspace>.panel-head p{color:#7fa0af;font-size:9px}
.workspace>.panel-head .panel-actions{position:relative;z-index:1;margin-bottom:7px}
.workspace>.panel-head button,.workspace>.panel-head summary{border:1px solid #285267!important;border-radius:6px!important;background:#0b2a3e!important;color:#d9e8ee!important;font-size:9px!important;box-shadow:inset 0 1px rgba(255,255,255,.035)}
.workspace>.panel-head #new-record{border-color:color-mix(in srgb,var(--v178-module) 55%,#285267)!important;background:color-mix(in srgb,var(--v178-module) 14%,#0b2a3e)!important;color:#fff!important}
.module-content{background:#fff}

/* Dense, readable operational tables. */
.table-wrap{margin:0;padding:10px 12px 16px;background:#fff}
.table-wrap table{border-spacing:0 4px}
.table-wrap th{padding:9px 12px;border:0;background:#edf3f6;color:#557284;font-size:7px;letter-spacing:.16em}
.table-wrap th:first-child{border-radius:5px 0 0 5px}.table-wrap th:last-child{border-radius:0 5px 5px 0}
.table-wrap td{padding:12px;border-top:1px solid #e1e9ed;border-bottom:1px solid #e1e9ed;background:#fff;font-size:10px;color:#17344a}
.table-wrap td:first-child{border-left:2px solid #b8cbd5;border-radius:5px 0 0 5px}.table-wrap td:last-child{border-right:1px solid #e1e9ed;border-radius:0 5px 5px 0}
.table-wrap tbody tr{cursor:pointer}.table-wrap tbody tr:hover td{border-color:color-mix(in srgb,var(--v178-module) 42%,#d5e0e6);background:color-mix(in srgb,var(--v178-module) 5%,#fff)}
.table-wrap tbody tr:hover td:first-child{border-left-color:var(--v178-module)}
.record-preview-active td{background:color-mix(in srgb,var(--v178-module) 8%,#fff)!important}

/* Module-specific work surfaces inherit the console treatment. */
.calendar-mode>.panel-head,.client-mode>.panel-head,.site-mode>.panel-head,.contract-mode>.panel-head{padding:14px 18px}
.calendar-toolbar,.client-overview-intro{border-bottom:1px solid #e1e9ed}
.calendar-grid{border-radius:8px;box-shadow:0 6px 20px rgba(7,28,46,.06)}
.calendar-day>header{background:#edf3f6}.calendar-day.today>header{background:color-mix(in srgb,var(--v178-module) 12%,#edf3f6);box-shadow:inset 0 3px var(--v178-module)}
.calendar-shift{border-radius:6px;box-shadow:0 3px 10px rgba(7,28,46,.07)}
.client-overview-card,.site-command-card,.contract-card,.record-group{border-radius:8px}
.client-overview-card:hover,.site-command-card:hover,.contract-card:hover{border-color:color-mix(in srgb,var(--v178-module) 45%,#d5e0e6);box-shadow:0 9px 23px rgba(7,28,46,.09)}
.client-hero,.site-command-hero,.contract-hero{border:1px solid #1a485c;border-radius:9px;background:radial-gradient(circle at 72% 30%,rgba(37,227,209,.1),transparent 18rem),linear-gradient(112deg,#061727,#0a2a40 64%,#073943)}
.record-group>summary{background:#edf3f6;color:#17344a}
.operational-filter-bar{border-radius:7px;background:linear-gradient(110deg,#071c2e,#0a3547)}

.empty{min-height:180px;display:grid;place-items:center;color:#6e8795;background:radial-gradient(circle,rgba(37,227,209,.05),transparent 11rem)}
.permission{border-radius:8px}
.visual-record-panel,.issue-dialog{border-left-color:#1b5265;box-shadow:-24px 0 55px rgba(4,17,31,.22)}
.visual-panel-shell>header,.issue-shell>header{background:linear-gradient(110deg,#061727,#0a3045)}

@media(min-width:1900px){
  .shell:not(.command-shell)>main>header{min-height:146px;padding:28px 34px}
  .shell:not(.command-shell)>main>header h1{font-size:34px}
  .scope-toggle{min-height:61px}
  .stats article{min-height:108px;padding:21px 23px}.stats article b{font-size:32px}
  .workspace>.panel-head{min-height:80px;padding:17px 23px}.workspace>.panel-head h2{font-size:19px}
  .table-wrap td{padding:15px 14px;font-size:12px}.table-wrap th{padding:11px 14px;font-size:8px}
}

@media(max-width:850px){
  .shell:not(.command-shell)>main>header{min-height:112px;padding:20px;border-radius:8px}
  .shell:not(.command-shell)>main>header:after,.shell:not(.command-shell)>main>header:before{display:none}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workspace>.panel-head:after{display:none}
}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
