:root{
  --nx-bg:#eef6ff;
  --nx-card:#ffffff;
  --nx-text:#0f172a;
  --nx-muted:#64748b;
  --nx-line:#dbeafe;
  --nx-primary:#1155cc;
  --nx-primary-2:#06b6d4;
  --nx-danger:#dc2626;
  --nx-ok:#16a34a;
  --nx-warn:#f59e0b;
  --nx-shadow:0 18px 50px rgba(15,23,42,.11);
  --nx-radius:24px;
}

*{box-sizing:border-box}
body.nexus-admin-modern{
  margin:0!important;
  padding:24px 24px 24px 304px!important;
  min-height:100vh;
  background:radial-gradient(circle at top right,rgba(6,182,212,.15),transparent 32rem),var(--nx-bg)!important;
  color:var(--nx-text)!important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif!important;
}
body.nexus-admin-modern a{color:inherit;text-decoration:none}
body.nexus-admin-modern .nexus-admin-sidebar{
  position:fixed;
  inset:0 auto 0 0;
  width:280px;
  background:linear-gradient(180deg,#071d49,#0a3c7d 58%,#08204d);
  color:#fff;
  padding:18px;
  z-index:10000;
  overflow:auto;
  box-shadow:18px 0 55px rgba(15,23,42,.18);
}
.nexus-admin-brand{display:flex;gap:12px;align-items:center;margin:0 0 20px;padding:8px 6px;color:#fff!important}
.nexus-admin-brand-mark{width:48px;height:48px;border-radius:17px;background:linear-gradient(135deg,#38bdf8,#fff);color:#09245a;font-weight:900;display:grid;place-items:center;box-shadow:0 12px 30px rgba(14,165,233,.25)}
.nexus-admin-brand b{display:block;font-size:16px;line-height:1.1}.nexus-admin-brand small{display:block;color:#bdeaff;margin-top:3px;font-size:12px}
.nexus-admin-user{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14);border-radius:18px;padding:12px;margin-bottom:14px;color:#dbeafe;font-size:13px}
.nexus-admin-user b{display:block;color:#fff;font-size:14px;margin-bottom:2px}.nexus-admin-user span{display:block;opacity:.9}
.nexus-admin-nav{display:grid;gap:6px;padding-bottom:20px}.nexus-admin-group{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:#9ddcff;font-weight:900;margin:14px 8px 6px}.nexus-admin-nav a{display:flex;gap:10px;align-items:center;padding:12px;border-radius:15px;color:#dbeafe!important;font-weight:750;line-height:1.2;transition:.18s ease;background:transparent}.nexus-admin-nav a:hover,.nexus-admin-nav a.active{background:rgba(255,255,255,.14);color:#fff!important;transform:translateX(2px)}.nexus-admin-nav a .ico{width:24px;text-align:center;font-size:17px}.nexus-admin-nav a .txt{min-width:0}.nexus-admin-nav a small{display:block;color:#bdeaff;font-weight:500;font-size:11px;margin-top:2px;white-space:normal}.nexus-admin-logout{margin-top:8px!important;background:rgba(220,38,38,.18)!important;color:#fff!important}
.nexus-admin-mobilebar{display:none;position:fixed;top:0;left:0;right:0;height:64px;background:linear-gradient(135deg,#0b4aad,#06b6d4);color:#fff;z-index:10002;align-items:center;justify-content:space-between;padding:10px 12px;box-shadow:0 12px 35px rgba(15,23,42,.18)}.nexus-admin-hamb{border:0;background:rgba(255,255,255,.18);color:#fff;border-radius:14px;width:44px;height:44px;display:grid;place-items:center;font-size:24px;font-weight:900}.nexus-admin-mobile-title{display:flex;gap:10px;align-items:center;font-weight:900}.nexus-admin-mobile-title span{width:36px;height:36px;border-radius:13px;background:rgba(255,255,255,.2);display:grid;place-items:center}.nexus-admin-overlay{display:none;position:fixed;inset:0;background:rgba(2,6,23,.55);backdrop-filter:blur(3px);z-index:9999}
.nexus-admin-close{display:none;border:0;background:rgba(255,255,255,.14);color:#fff;border-radius:14px;width:42px;height:42px;font-size:22px;position:absolute;top:16px;right:14px}

body.nexus-admin-modern .admin-container,
body.nexus-admin-modern .container,
body.nexus-admin-modern main:not(.nexus-denied){max-width:1220px!important;margin-left:auto!important;margin-right:auto!important}
body.nexus-admin-modern .admin-container,
body.nexus-admin-modern .container,
body.nexus-admin-modern .card,
body.nexus-admin-modern .form-container,
body.nexus-admin-modern .agendamento,
body.nexus-admin-modern .solicitacao,
body.nexus-admin-modern .registro,
body.nexus-admin-modern form:not(.nexus-no-card form){border-radius:var(--nx-radius)!important;border:1px solid var(--nx-line)!important;background:var(--nx-card)!important;box-shadow:var(--nx-shadow)!important}
body.nexus-admin-modern .admin-container,
body.nexus-admin-modern .container,
body.nexus-admin-modern .form-container{padding:24px!important}
body.nexus-admin-modern h1,body.nexus-admin-modern h2{letter-spacing:-.03em;color:#0f2544!important}body.nexus-admin-modern h1:first-child,body.nexus-admin-modern h2:first-child{margin-top:0!important}
body.nexus-admin-modern .nexus-page-hero{max-width:1220px;margin:0 auto 18px;background:linear-gradient(135deg,#0b4aad,#06b6d4);color:#fff;border-radius:28px;padding:23px 26px;display:flex;align-items:center;justify-content:space-between;gap:14px;box-shadow:var(--nx-shadow)}.nexus-page-hero h1{margin:0!important;color:#fff!important;font-size:26px}.nexus-page-hero p{margin:5px 0 0;color:#e0f2fe}.nexus-page-hero .pill{background:rgba(255,255,255,.18);border-radius:999px;padding:10px 13px;color:#fff;font-weight:800;font-size:13px}
body.nexus-admin-modern input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
body.nexus-admin-modern select,
body.nexus-admin-modern textarea{max-width:100%;width:100%;border:1px solid #cbd5e1!important;border-radius:14px!important;padding:12px 13px!important;font:inherit!important;background:#fff!important;color:#0f172a!important;outline:0!important}body.nexus-admin-modern textarea{min-height:104px}body.nexus-admin-modern label{font-weight:800;color:#334155;margin-bottom:6px;display:inline-block}
body.nexus-admin-modern button,
body.nexus-admin-modern input[type="submit"],
body.nexus-admin-modern .btn,
body.nexus-admin-modern .button,
body.nexus-admin-modern a[class*="btn"],
body.nexus-admin-modern .btn-agendar,
body.nexus-admin-modern .btn-visita,
body.nexus-admin-modern .btn-ver-visita{border:0!important;border-radius:14px!important;padding:11px 15px!important;font-weight:900!important;cursor:pointer!important;display:inline-flex!important;gap:8px;align-items:center;justify-content:center;background:var(--nx-primary)!important;color:#fff!important;text-decoration:none!important;line-height:1.2!important;box-shadow:none!important;min-height:42px}body.nexus-admin-modern button:hover,body.nexus-admin-modern input[type="submit"]:hover,body.nexus-admin-modern .btn:hover,body.nexus-admin-modern .button:hover{filter:brightness(.96);transform:translateY(-1px)}
body.nexus-admin-modern input[type="submit"][value*="Apagar"],body.nexus-admin-modern .btn-excluir,body.nexus-admin-modern .danger{background:var(--nx-danger)!important;color:#fff!important}
body.nexus-admin-modern .nexus-table-wrap{overflow:auto;border:1px solid var(--nx-line);border-radius:18px;background:#fff;box-shadow:0 8px 24px rgba(15,23,42,.05);margin:14px 0}body.nexus-admin-modern table{width:100%!important;border-collapse:collapse!important;background:#fff!important}body.nexus-admin-modern th,body.nexus-admin-modern td{padding:13px!important;border-bottom:1px solid #e2e8f0!important;text-align:left!important;vertical-align:top!important;color:#0f172a!important}body.nexus-admin-modern th{background:#f8fafc!important;color:#334155!important;font-size:13px!important;font-weight:900!important}body.nexus-admin-modern tr:last-child td{border-bottom:0!important}
.nexus-flash{max-width:1220px;margin:0 auto 16px;border-radius:16px;padding:14px 16px;background:#dcfce7;color:#166534;font-weight:800}.nexus-flash.error{background:#fee2e2;color:#991b1b}.nexus-denied{max-width:760px;margin:10vh auto;background:#fff;border:1px solid var(--nx-line);border-radius:28px;padding:34px;box-shadow:var(--nx-shadow)}.nexus-btn{display:inline-flex;background:var(--nx-primary);color:#fff!important;border-radius:14px;padding:12px 18px;font-weight:900;margin-top:12px}.nexus-card{background:#fff;border:1px solid var(--nx-line);border-radius:24px;padding:22px;box-shadow:var(--nx-shadow);margin-bottom:18px}.nexus-grid{display:grid;gap:14px}.nexus-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.nexus-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.nexus-stat{background:#f8fafc;border:1px solid #e2e8f0;border-radius:20px;padding:18px}.nexus-stat small{display:block;color:var(--nx-muted);font-weight:800}.nexus-stat b{font-size:26px;display:block;margin-top:4px}.nexus-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.nexus-muted{color:var(--nx-muted)}.nexus-checkbox-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.nexus-check{display:flex;gap:10px;align-items:flex-start;border:1px solid #e2e8f0;background:#f8fafc;border-radius:15px;padding:12px}.nexus-check input{margin-top:4px}.nexus-check b{display:block}.nexus-check small{display:block;color:var(--nx-muted);margin-top:2px}
@media(max-width:900px){
  body.nexus-admin-modern{padding:78px 12px 16px!important;overflow-x:hidden}
  .nexus-admin-mobilebar{display:flex}.nexus-admin-close{display:grid;place-items:center}.nexus-admin-sidebar{transform:translateX(-105%);transition:.22s ease;width:min(86vw,320px)!important;border-radius:0 24px 24px 0}.nexus-admin-sidebar.open{transform:translateX(0)}.nexus-admin-overlay.open{display:block}.nexus-admin-brand{padding-right:46px}.nexus-page-hero{display:block!important;border-radius:22px!important;padding:20px!important}.nexus-page-hero .pill{display:inline-flex;margin-top:12px}.nexus-grid.cols-2,.nexus-grid.cols-3,.nexus-checkbox-list{grid-template-columns:1fr}.nexus-admin-modern table{font-size:14px}.nexus-admin-modern th,.nexus-admin-modern td{padding:11px!important}body.nexus-admin-modern .admin-container,body.nexus-admin-modern .container,body.nexus-admin-modern .form-container{padding:16px!important;border-radius:20px!important}body.nexus-admin-modern button,body.nexus-admin-modern input[type="submit"],body.nexus-admin-modern .btn,body.nexus-admin-modern .button,body.nexus-admin-modern a[class*="btn"]{width:100%;margin-top:6px}}
@media(min-width:901px){.nexus-admin-sidebar{transform:none!important}.nexus-admin-overlay{display:none!important}}
