/* PALATIUS 1.6 — ATELIER: a deliberate, fully local enterprise design system.
   Presentation-only; existing forms, data IDs and permission gates are preserved. */
:root{
  --deep:#101d1c;--deep2:#1b3130;--green:#177b56;--mint:#e9f4eb;
  --bg:#f3f6f4;--white:#fff;--ink:#182923;--muted:#6e8076;
  --line:#e1e9e2;--purple:#7055a3;
  --shadow:0 6px 30px rgba(21,47,36,.055);
  --atelier-ink:#142721;--atelier-forest:#092f2a;--atelier-leaf:#277e57;
  --atelier-lime:#b5e39b;--atelier-lavender:#a98dd7;--atelier-canvas:#f3f6f2;
  --atelier-stroke:#e4eae5;--atelier-shadow:0 12px 40px rgba(19,38,28,.055);
}
html{scroll-behavior:smooth}
body{background:var(--atelier-canvas);color:var(--atelier-ink);font-family:'Segoe UI Variable','Segoe UI',Arial,sans-serif;font-size:14px;letter-spacing:.02px}
body::before{content:"";position:fixed;inset:0;pointer-events:none;z-index:-1;background:radial-gradient(circle at 90% 8%,rgba(212,235,215,.48),transparent 43%),radial-gradient(circle at 28% 90%,rgba(231,224,241,.32),transparent 40%)}
button,a,input,select,textarea{font-family:inherit}
button,.btn,a,.nav-item{ -webkit-tap-highlight-color:transparent}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid rgba(68,162,105,.45)!important;outline-offset:3px}
.app{align-items:stretch}
/* The new navigation is a full brand surface, not a colored column. */
.sidebar{width:278px!important;padding:24px 15px 20px!important;background:linear-gradient(164deg,#102d2b 0%,#112421 42%,#171d27 100%)!important;border-right:1px solid rgba(255,255,255,.08);box-shadow:8px 0 40px rgba(13,37,26,.075)!important;z-index:5}
.sidebar::before{height:3px!important;background:linear-gradient(90deg,#b5e39b 0%,#37ab74 52%,#9575ce 100%)!important}
.brand{margin:2px 10px 28px!important;gap:13px!important;align-items:center;padding:6px 0 18px;border-bottom:1px solid rgba(239,254,246,.10)}
.brand-icon{width:49px!important;height:49px!important;border:1px solid rgba(255,255,255,.14)!important;border-radius:15px!important;padding:5px!important;background:#fff!important;box-shadow:0 8px 26px rgba(0,0,0,.17)!important;flex:0 0 49px}
.brand-icon img{width:100%;height:100%;object-fit:contain}
.brand strong{color:#f6fcf8;font-size:12.6px!important;line-height:1.3;letter-spacing:.25px;font-weight:770}
.brand .brand-light{color:#c9e0d4}
.brand small{color:#95b7a8!important;font-size:10px!important;line-height:1.45}
#navigation{display:flex;flex-direction:column;gap:0!important;padding:0 3px}
.nav-group{display:flex;flex-direction:column;gap:2px;margin:0 0 16px}
.nav-group-title{color:#718f84;font-size:9px;font-weight:800;letter-spacing:1.75px;padding:0 12px;margin:9px 0 10px;white-space:nowrap}
.nav-item{position:relative;display:flex;align-items:center;gap:11px;border-radius:11px!important;border:1px solid transparent!important;padding:11px 12px!important;min-height:43px;font-weight:560!important;color:#bdd0c6!important;margin:0!important;font-size:12.5px!important;transition:background .19s,color .19s,transform .19s,border-color .19s;line-height:1.35}
.nav-item:hover{background:rgba(255,255,255,.075)!important;color:#fff!important;transform:none!important}
.nav-item.active{color:#fff!important;background:linear-gradient(90deg,rgba(104,186,127,.21),rgba(108,83,148,.13))!important;border:1px solid rgba(173,221,175,.18)!important;border-left:1px solid rgba(173,221,175,.18)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 5px 16px rgba(0,0,0,.08)!important}
.nav-item.active::after{content:"";position:absolute;left:-3px;top:10px;bottom:10px;width:3px;background:#93d8a6;border-radius:3px}
.nav-item .nav-ico{display:grid;place-items:center;flex:0 0 29px;width:29px;min-width:29px;height:29px;border-radius:8px;background:rgba(255,255,255,.035);color:#99b6a8!important;font-size:13px}
.nav-item.active .nav-ico{color:#c6f6c7!important;background:rgba(154,218,162,.13)}
.nav-ico svg{width:17px;height:17px;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;fill:none}
.side-label{display:none}
.side-foot{border:1px solid rgba(219,246,222,.13)!important;background:rgba(236,255,247,.045);border-radius:14px;padding:15px 14px!important;margin:8px 3px 0!important;position:relative;color:#f1faf4!important}
.side-foot .online-dot{display:inline-block;height:8px;width:8px;margin-right:6px;background:#76d7a4;box-shadow:0 0 0 4px rgba(103,217,152,.10)}
.side-foot #currentUserLabel{font-size:11px;font-weight:690;line-height:1.5}
.side-foot #userRoleLabel{padding-left:0;color:#9fb8aa;font-size:10px;margin:6px 0 10px}
.side-foot small{padding-left:0!important}.side-foot .side-version{padding:10px 0 9px;border-top:1px solid rgba(239,255,242,.10);font-size:10px;color:#9cb5a4}
.side-foot .btn{flex:1;background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.14)!important;color:#e9f7ed!important;font-size:11px;padding:8px 7px}
.side-foot .btn:hover{background:rgba(255,255,255,.13)!important}
/* Editorial command header; dark finish with subtle geometric ornamentation. */
.main{width:calc(100% - 278px)!important;max-width:none!important;padding:29px clamp(22px,2.5vw,52px) 58px!important;margin:0 auto!important}
.topbar{position:relative;overflow:hidden;background:linear-gradient(115deg,#0c382f,#164638 56%,#122e31 100%)!important;border:1px solid rgba(20,69,55,.23)!important;border-radius:22px!important;min-height:188px;display:flex;align-items:center;justify-content:space-between;padding:30px 34px!important;margin:0 0 24px!important;box-shadow:0 18px 40px rgba(16,69,45,.135)!important}
.topbar::before{content:"";position:absolute;pointer-events:none;right:-110px;top:-160px;height:420px;width:420px;border:1px solid rgba(202,247,202,.16);border-radius:50%;box-shadow:0 0 0 37px rgba(202,247,202,.027),0 0 0 87px rgba(202,247,202,.022),0 0 0 142px rgba(202,247,202,.015)}
.topbar::after{content:"";position:absolute;pointer-events:none;width:210px;height:240px;right:95px;bottom:-205px;transform:rotate(-21deg);background:radial-gradient(circle,rgba(135,210,151,.20),transparent 72%)}
.topbar>*{position:relative;z-index:1}
.topbar>.topbar-copy{max-width:720px;min-width:0}
.breadcrumb{color:#a2d4b8!important;font-size:10px!important;font-weight:810!important;letter-spacing:2.1px!important}
.breadcrumb span{color:#d4efc8!important}
.topbar h1{color:#fff!important;font-size:clamp(27px,2.7vw,38px)!important;line-height:1.16!important;letter-spacing:-1.25px!important;margin:12px 0 11px!important;font-weight:760!important}
.topbar #subtitle{color:#c9dfd2!important;font-size:13px!important;line-height:1.62;max-width:540px}
.top-actions{gap:9px;align-self:flex-start;white-space:normal;justify-content:flex-end}
.top-actions .pill{color:#d8f6db!important;background:rgba(134,226,161,.12)!important;border:1px solid rgba(187,241,192,.25)!important;padding:9px 14px!important;font-size:11px!important;backdrop-filter:blur(10px)}
.top-actions .btn.secondary{background:rgba(255,255,255,.10)!important;color:#fff!important;border:1px solid rgba(255,255,255,.23)!important;box-shadow:none!important;padding:10px 14px!important}
.top-actions .btn.secondary:hover{background:rgba(255,255,255,.18)!important}
.workbench-kicker{display:flex;align-items:center;gap:12px;margin-bottom:17px;color:#87978c;font-weight:770;letter-spacing:1.8px;font-size:10px;text-transform:uppercase}
.workbench-kicker:after{content:"";height:1px;background:#dfe7e0;flex:1}
/* Distinct metric cards — typography and color are semantic, never invented trends. */
.stats-grid{gap:17px;margin-bottom:22px!important}
.stat{padding:24px!important;min-height:175px!important;border-radius:18px!important;background:#fff!important;border:1px solid #e4ebe4!important;box-shadow:var(--atelier-shadow)!important;transition:transform .18s,box-shadow .18s!important}
.stat:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(27,62,36,.095)!important}
.stat::before{display:none!important}
.stat::after{content:"";position:absolute;right:-25px;bottom:-42px;width:125px;height:125px;border-radius:40px;transform:rotate(27deg);background:linear-gradient(150deg,rgba(48,144,95,.045),transparent);pointer-events:none}
.stat:nth-child(2){background:linear-gradient(130deg,#164d3d,#0e3a34)!important;border-color:#195641!important}
.stat:nth-child(2)::after{background:linear-gradient(135deg,rgba(165,226,157,.16),transparent)}
.stat:nth-child(3)::after{background:linear-gradient(135deg,rgba(194,144,75,.10),transparent)}
.stat:nth-child(4)::after{background:linear-gradient(135deg,rgba(122,102,177,.12),transparent)}
.stat-top{font-size:12px!important;line-height:1.45!important;letter-spacing:.07px;color:#62766c!important;font-weight:690!important;display:flex;align-items:flex-start;gap:8px}
.stat-top span{color:#477b60!important;display:grid;place-items:center;width:33px;height:33px;flex:0 0 33px;margin-left:auto;border-radius:11px;background:#eef6ed;font-size:0!important}
.stat-top span svg{width:18px;height:18px;stroke:currentColor;stroke-width:1.9;fill:none;stroke-linecap:round;stroke-linejoin:round}
.stat:nth-child(2) .stat-top{color:#c6e9cf!important}.stat:nth-child(2) .stat-top span{color:#c8efc8!important;background:rgba(242,255,242,.10)}
.stat-val{font-size:clamp(26px,2.4vw,37px)!important;letter-spacing:-1.55px!important;color:#132d20!important;margin-top:18px!important;line-height:1.1!important;font-variant-numeric:tabular-nums}
.stat:nth-child(2) .stat-val{color:#fff!important}
.stat-detail{font-size:11px!important;line-height:1.5!important;margin-top:12px!important;color:#829188!important}
.stat:nth-child(2) .stat-detail{color:#b7d9c4!important}
/* Signal board adds real operational meaning computed from the product data. */
.executive-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(280px,.86fr);gap:18px;margin:0 0 20px}
.executive-panel{min-width:0;background:#fff;border:1px solid var(--atelier-stroke);border-radius:20px;padding:25px 27px;box-shadow:var(--atelier-shadow)}
.executive-panel h2{font-size:18px;letter-spacing:-.48px;color:#16372b;font-weight:755;margin-bottom:5px}
.executive-panel>p{font-size:12px;color:#84938a;line-height:1.5;margin-bottom:22px}
.health-body{display:flex;align-items:center;justify-content:space-between;gap:25px}
.health-ring{position:relative;width:155px;height:155px;flex:0 0 155px;border-radius:50%;background:conic-gradient(#288c64 0 100%,#e4ede5 0);transition:background .2s ease}
.health-ring::before{content:"";position:absolute;inset:15px;border-radius:50%;background:#fff;box-shadow:inset 0 2px 14px rgba(21,57,41,.025)}
.health-ring-content{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;z-index:1}
.health-ring-content strong{font-size:33px;letter-spacing:-1.3px;color:#1f6c4f;line-height:1;font-weight:780}
.health-ring-content span{font-size:10px;color:#8b9a90;margin-top:7px;text-align:center}
.health-legend{flex:1;min-width:0;max-width:260px}.health-legend-item{display:flex;align-items:center;gap:9px;padding:11px 0;border-bottom:1px solid #eef2ee;font-size:12px;color:#587063}
.health-legend-item:last-child{border-bottom:0}.health-legend-item b{margin-left:auto;color:#24392d;font-size:13px;font-variant-numeric:tabular-nums}
.health-legend-dot{width:9px;height:9px;border-radius:4px;flex:0 0 9px;background:#228760}.health-legend-dot.low{background:#e6a95f}.health-legend-dot.zero{background:#9e81c8}
.health-action{display:flex;gap:9px;margin-top:18px;flex-wrap:wrap}
.health-action button,.executive-link{background:#f0f7f1;border:1px solid #d9ebdc;border-radius:10px;padding:10px 12px;color:#207650;font-size:11px;font-weight:740;cursor:pointer}
.health-action button:hover{background:#e3f1e6}
.executive-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;margin-top:20px}
.executive-shortcut{background:linear-gradient(140deg,#f8fbf8,#f2f8f2);border:1px solid #e1ece3;border-radius:13px;padding:16px;display:flex;flex-direction:column;align-items:flex-start;gap:8px;text-align:left;min-height:105px;cursor:pointer;transition:transform .17s,border-color .17s}
.executive-shortcut:hover{border-color:#a0d3ab;transform:translateY(-2px)}
.executive-shortcut svg{width:20px;height:20px;stroke:#29885b;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.executive-shortcut strong{color:#244e38;font-size:12px;font-weight:745}
.executive-shortcut small{font-size:10.5px;color:#81978a;line-height:1.4}
/* All pages — stronger surfaces, legible dense data, careful dialogs. */
.panel{background:#fff;border:1px solid var(--atelier-stroke)!important;border-radius:19px!important;box-shadow:var(--atelier-shadow)!important;padding:26px!important}
.panel-head{align-items:flex-start!important;gap:14px;margin-bottom:24px!important}
.panel-head h2{font-size:18px!important;letter-spacing:-.45px;color:#1d392b!important;font-weight:760!important}
.panel-head p{font-size:12px!important;color:#89958b!important;line-height:1.62!important}
.two-col{gap:18px!important}.two-col .panel{min-width:0}
.quick-item{padding:15px 6px!important;min-height:58px}.quick-number{font-variant-numeric:tabular-nums}
.quick-rows{max-height:510px;overflow:auto;scrollbar-width:thin}
.panel-head .linkbtn{border:1px solid #e0ebe4;padding:9px 12px;border-radius:9px;text-decoration:none;color:#237a50;background:#f7faf7}
.panel-head .linkbtn:hover{background:#eaf6ec;text-decoration:none}
.btn{min-height:39px;border-radius:10px!important;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;line-height:1.3}
.btn.primary{background:#168050!important;border-color:#168050!important;box-shadow:0 5px 14px rgba(26,127,76,.12)}.btn.primary:hover{background:#0e6b43!important}
.btn.secondary{background:#fff!important;color:#294b37!important;border:1px solid #dee9e1!important}
.btn:hover:not(:disabled){transform:translateY(-1px)}.btn:disabled{opacity:.48}
.search,input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea{min-height:42px;border:1px solid #dbe6dd!important;border-radius:10px!important;background:#fbfdfb!important;color:#23392b!important;padding:10px 12px}
.search:focus,input:focus,select:focus,textarea:focus{border-color:#77c59a!important;box-shadow:0 0 0 3px rgba(71,158,106,.12)!important;outline:0!important}
.toolbar,.filters{gap:12px!important}.toolbar>.search,.filters>.search{min-width:0}
.table-wrap{border:1px solid #e8eee8!important;border-radius:13px!important;background:#fff;overflow:auto;scrollbar-width:thin}
.table-wrap table{width:100%;border-collapse:separate;border-spacing:0}
.table-wrap thead{position:sticky;top:0;z-index:1}
.table-wrap th{color:#71877a!important;background:#f5f9f5!important;border-bottom:1px solid #e2ebe4!important;font-size:10px!important;font-weight:810!important;text-transform:uppercase;letter-spacing:.8px!important;white-space:nowrap;padding:14px 13px!important}
.table-wrap td{color:#314438;padding:13px!important;border-bottom:1px solid #eef2ee!important;vertical-align:middle}
.table-wrap tbody tr:hover td{background:#f6fbf6!important}
.table-wrap tbody tr:last-child td{border-bottom:0!important}
.table-wrap td strong{font-weight:730;color:#203b2d}
.feature-cards{gap:13px!important}.feature-card{border-radius:17px!important;padding:21px!important;box-shadow:var(--atelier-shadow)!important;border:1px solid #e4ebe5!important;transition:transform .17s,box-shadow .17s!important}
.feature-card:hover{transform:translateY(-2px);box-shadow:0 15px 32px rgba(32,64,44,.09)!important}
.feature-card strong{font-variant-numeric:tabular-nums;letter-spacing:-.7px}
.report-grid{gap:14px}.report{border-radius:16px!important;border:1px solid #e2eae4!important;padding:23px!important;box-shadow:var(--atelier-shadow)}
.daily-quote{margin:0 0 20px!important;border-radius:15px!important;background:linear-gradient(100deg,#eef7ef 0%,#f8faf7 66%,#f2eef9 100%)!important;border:1px solid #dfeae2!important;padding:17px 24px!important;min-height:78px}
.daily-quote .daily-quote-glyph{font-size:50px;color:#438c61}.daily-quote p{color:#405f4d;font-size:13px;font-weight:570;line-height:1.5}.daily-quote-eyebrow{color:#518665!important}
.notice,.insight,.help{line-height:1.65}.notice{border-radius:13px!important;background:#f7fbf7!important;border-left:3px solid #80bd90}.insight{border-radius:13px!important}
.step>b{border-radius:11px!important;background:#e6f4e9!important;color:#167547!important}
.dialog-backdrop{background:rgba(10,23,18,.64)!important;backdrop-filter:blur(6px)}
.dialog{border-radius:21px!important;box-shadow:0 28px 100px rgba(11,32,19,.27)!important;background:#fff!important;max-height:calc(100vh - 50px);overflow:auto}
.dialog-head{position:sticky;top:0;background:#fff;z-index:1;padding-top:4px}
.auth-screen{background:radial-gradient(ellipse at 14% 10%,rgba(137,211,156,.25),transparent 40%),radial-gradient(ellipse at 90% 80%,rgba(153,130,190,.18),transparent 40%),#f0f4f0!important}
.auth-card{border-radius:24px!important;border:1px solid #e0e9df!important;box-shadow:0 30px 90px rgba(23,65,33,.13)!important;padding:37px!important}
.auth-logo{border:1px solid #e7ebe5;background:#fff!important}
/* Improved responsive behavior beyond mere shrinking. */
@media(max-width:1350px){.sidebar{width:246px!important}.main{width:calc(100% - 246px)!important;padding:22px 24px 40px!important}.topbar{min-height:172px!important;padding:25px!important}.stats-grid{gap:12px}.stat{padding:19px!important}.stat-val{font-size:29px!important}.executive-grid{grid-template-columns:minmax(0,1fr) minmax(230px,.85fr)}.health-ring{width:126px;height:126px;flex-basis:126px}.health-ring::before{inset:13px}.health-ring-content strong{font-size:27px}}
@media(max-width:1100px){.sidebar{width:218px!important}.main{width:calc(100% - 218px)!important;padding:18px!important}.nav-item{font-size:11.5px!important;padding:9px 7px!important}.topbar{display:block;min-height:0!important}.top-actions{justify-content:flex-start;margin-top:17px}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stat{min-height:145px!important}.executive-grid{grid-template-columns:1fr}.executive-panel{padding:22px}.health-body{justify-content:flex-start}}
@media(max-width:760px){
  .app{display:block!important}.sidebar{width:100%!important;height:auto!important;position:relative!important;top:auto;padding:13px 13px 10px!important;box-shadow:none!important;border-radius:0!important}
  .sidebar::before{height:3px!important}.brand{border:none;margin:0 0 9px!important;padding:0 2px!important}.brand-icon{height:37px!important;width:37px!important;flex-basis:37px;padding:4px!important;border-radius:11px!important}.brand strong{font-size:11px!important}.brand small{font-size:9px!important}
  #navigation{display:flex!important;flex-flow:row nowrap!important;gap:7px!important;overflow-x:auto!important;scrollbar-width:thin;padding:4px 0 7px;margin:0 -1px}
  .nav-group{display:flex!important;flex-flow:row nowrap!important;gap:7px!important;margin:0!important;flex:0 0 auto}
  .nav-group-title{display:none!important}.nav-item{white-space:nowrap;min-height:37px;padding:6px 12px!important;width:auto!important;flex:0 0 auto;border-radius:9px!important;font-size:11px!important}.nav-item .nav-ico{height:21px;width:20px;flex-basis:20px;background:transparent!important}.nav-ico svg{width:14px;height:14px}.nav-item.active::after{left:13px;right:13px;top:auto;bottom:-2px;height:2px;width:auto}
  .side-foot{display:none!important}.main{width:100%!important;padding:14px 13px 34px!important}.topbar{border-radius:17px!important;padding:22px 20px!important;margin:0 0 17px!important}.topbar h1{font-size:27px!important}.topbar::before{right:-210px}.topbar #subtitle{font-size:12px!important}.top-actions{gap:8px}.top-actions .pill{font-size:10px!important}
  .stats-grid{gap:10px!important;margin-bottom:15px!important}.stat{border-radius:14px!important;min-height:137px!important;padding:16px!important}.stat-top{font-size:11px!important}.stat-top span{width:27px;height:27px;flex-basis:27px}.stat-top span svg{width:15px;height:15px}.stat-val{font-size:clamp(21px,6vw,26px)!important;letter-spacing:-.8px!important;margin-top:10px!important;white-space:normal!important;overflow-wrap:anywhere}.stat-detail{font-size:10px!important;margin-top:8px!important}
  .executive-grid{gap:12px}.executive-panel{padding:19px!important;border-radius:15px!important}.executive-shortcuts{gap:8px}.executive-shortcut{padding:13px;min-height:96px}.health-body{gap:15px}.health-ring{width:112px;height:112px;flex-basis:112px}.health-ring::before{inset:12px}.health-ring-content strong{font-size:23px}.health-legend-item{font-size:10px;padding:8px 0}.health-legend-item b{font-size:11px}
  .panel{padding:18px!important;border-radius:15px!important}.panel-head{gap:9px;flex-wrap:wrap}.panel-head h2{font-size:16px!important}.panel-head p{font-size:11px!important}.table-wrap{max-width:100%}.feature-cards{gap:9px!important}.feature-card{padding:15px!important}.daily-quote{padding:15px!important}.daily-quote p{font-size:12px}
  .auth-card{padding:26px!important}
}
@media(max-width:390px){.stats-grid{grid-template-columns:1fr!important}.stat{min-height:114px!important}.stat-val{font-size:27px!important}.executive-shortcuts{grid-template-columns:1fr}.health-body{flex-wrap:wrap}.health-legend{max-width:none;width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:0.01ms!important;transition-duration:0.01ms!important}}
