/* Nexus System · Interface v12. Mantém os módulos originais e seus IDs. */
:root { --nx-red:#ed2436; --nx-red-soft:rgba(237,36,54,.13); --nx-radius:16px; }
body {
  background-color:var(--bg,#080a0d);
  background-image:radial-gradient(ellipse 850px 600px at 88% 3%,rgba(169,14,31,.042),transparent 70%);
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}
.system-sidebar {
  background:linear-gradient(176deg,#0b0d12,#07090c 75%)!important;
  border-right:1px solid #252932!important;
  box-shadow:6px 0 30px rgba(0,0,0,.08);
  width:250px;
  flex:0 0 250px;
  padding:23px 14px 18px;
  min-height:100vh;
  position:sticky;
  top:0;
  height:100vh;
  overflow-y:auto;
}
.system-brand {
  flex:0 0 auto;
  padding:7px 9px 19px!important;
  margin:0 0 18px!important;
  align-items:flex-start!important;
  gap:5px!important;
  border-bottom:1px solid #282d35;
}
.system-brand::after { display:none!important; }
.system-brand img {
  max-width:201px!important;
  width:100%;
  max-height:74px!important;
  object-fit:contain;
  object-position:left center;
}
.system-brand span {font-size:8px!important;letter-spacing:2.65px!important;color:#fb5e6c!important;padding:1px 3px;}
.side-menu-groups {flex:1;display:flex;flex-direction:column;gap:16px;}
.side-menu-group {display:flex;flex-direction:column;gap:3px;}
.side-label {font-size:9px!important;letter-spacing:1.8px!important;color:#777f90!important;margin:0 0 6px!important;padding:0 13px!important;}
.side-link {
  display:flex;align-items:center;
  gap:10px!important;min-height:42px;padding:10px 11px!important;
  color:#a3acbb!important;border:1px solid transparent!important;
  border-radius:10px!important;font-size:13px!important;
  text-decoration:none!important;
  box-shadow:none!important;
  transition:background .15s,color .15s, border-color .15s;
}
.side-link>span:last-child {font-size:12.5px!important;font-weight:650;line-height:1.3;}
.nav-glyph {font-size:16px;min-width:28px;height:28px;display:grid;place-items:center;border-radius:7px;background:#141821;color:#bdc4d0;line-height:1;}
.side-link:hover {background:#191d27!important;color:#fff!important;}
.side-link.active {background:linear-gradient(92deg,rgba(234,35,53,.23),rgba(225,26,47,.04))!important;border-color:rgba(238,54,71,.22)!important;color:white!important;box-shadow:inset 3px 0 #ff3149!important;}
.side-link.active .nav-glyph {background:rgba(238,37,56,.22);color:#ff596d;}
.side-link[hidden], .side-menu-group[hidden], .quick-actions a[hidden] {display:none!important;}
.side-bottom {margin-top:12px!important;border-top:1px solid #262c36!important;padding:17px 12px 10px!important;color:#818a9a!important;flex:none;}
.role-demo-hint {padding:0 12px 12px;color:#f15a69;letter-spacing:.25px;font-size:10px;line-height:1.4;}
.side-user {display:flex;gap:7px;align-items:center;padding:11px 9px;border:1px solid #2a2f38;background:#11151b;border-radius:12px;flex:none;}
.side-user-meta {display:flex;align-items:center;gap:9px;min-width:0;flex:1;}
.user-avatar {display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:9px;color:white;background:linear-gradient(135deg,#ee1a32,#7d1421);font-size:14px;font-weight:800;}
.side-user-names {display:flex;flex-direction:column;gap:3px;min-width:0;}
.side-user-names strong {font-size:11px;color:#f5f6f8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:103px;}
.side-user-names small {font-size:9px;color:#98a0b1;white-space:nowrap;}
.side-signout {border:1px solid #373b43;background:#1b2029;color:#e4e7ee;border-radius:8px;padding:9px 8px;font-size:10px;font-weight:750;white-space:nowrap;cursor:pointer;}
.side-signout:hover {border-color:#ef3851;color:white;}
/* Content canvas and section typography */
body > .main {padding:0 clamp(17px,2.5vw,40px);max-width:1900px;}
body > .system-page {min-width:0;}
body > .main .topbar {padding:30px 0 25px;}
body > .system-page > .topbar {padding:22px clamp(20px,2.3vw,38px);min-height:98px;}
.topbar::after {width:110px!important;}
.topbar h1 {font-size:clamp(23px,2.25vw,31px);letter-spacing:-.8px;font-weight:800;}
.eyebrow {font-size:10px!important;letter-spacing:2px!important;}
body > .system-page > .topbar .header-title {max-width:650px;}
body > .system-page > .topbar .header-title .subtitle {font-size:12px;}
body > .system-page > .layout {max-width:1590px;margin:24px auto;padding:0 clamp(17px,2.3vw,38px);}
.panel,.stat-card,.client-metric,.order-kpi,.chat-metric {border-radius:14px!important;box-shadow:0 10px 30px rgba(0,0,0,.095);}
.panel,.stat-card {border-color:var(--line,#282e38)!important;}
.welcome {border-radius:17px!important;background:linear-gradient(110deg,#240f16,#11141b 68%,#11141b)!important;}
.welcome h2 {font-weight:800;letter-spacing:-.5px;}
.welcome-mark {font-size:70px!important;letter-spacing:-5px;opacity:.58;}
.btn,.login-submit {border-radius:9px!important;}
.btn:focus-visible, button:focus-visible,a:focus-visible {outline:2px solid #fb4257;outline-offset:3px;}
.btn.primary {background:linear-gradient(120deg,#f3283e,#c4102b)!important;border-color:#e9223c!important;}
.btn.primary:hover {filter:brightness(1.08);}
.search,input,select,textarea {accent-color:#f3283e;}
.quick-actions a {transition:padding .16s,background .16s;padding-inline:5px;}
.quick-actions a:hover {padding-inline:12px;background:rgba(235,34,52,.04);border-radius:9px;}
footer {font-size:11px!important;line-height:1.5;color:var(--muted,#8992a4);}
footer b,footer .footer-mark {color:#e94a5d;letter-spacing:1.65px!important;}
.demo-alert {background:rgba(242,46,65,.09);color:var(--text,#f0f2f6);border:1px solid rgba(242,46,65,.35);border-radius:10px;padding:14px 18px;margin:16px 0;font-size:12px;line-height:1.6;}
@media (max-width:1200px) and (min-width:1025px){.system-sidebar{width:226px;flex-basis:226px;padding-inline:10px;}}
@media (max-width:1024px) {
 .system-sidebar {position:fixed!important;width:min(320px,88vw)!important;max-width:88vw!important;height:100dvh!important;padding:20px 13px!important;overflow:auto!important;}
 .system-brand img{max-width:196px!important;max-height:68px!important;}
 .system-brand{padding:6px 9px 16px!important;}
 .side-menu-groups{gap:13px;flex:1;}
 .side-menu-group{gap:2px;}
 .side-link{min-height:41px!important;}
 .nav-mobile-bar{min-height:66px;box-shadow:0 4px 22px rgba(0,0,0,.16);}
 .nav-mobile-brand img{width:132px!important;max-height:45px!important;}
 .nav-mobile-brand span {font-size:8px;letter-spacing:2px;color:#f16374;}
 body > .main {padding:0 clamp(14px,3vw,25px);}
 body > .system-page>.topbar{padding:18px clamp(15px,3vw,25px);}
 body > .system-page>.layout{padding:0 clamp(14px,3vw,25px);}
}
@media (max-width:620px){
 .topbar h1{font-size:23px;}
 .topbar .top-actions,.topbar .header-actions{row-gap:8px;}
 .welcome-mark{font-size:44px!important;letter-spacing:-4px;}
 .panel{border-radius:12px!important;}
 .side-user-names strong{max-width:140px;}
}
