/* Nexa desktop theme — mirrors Flutter app (stable URL, no Vite hash) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --brand: #123A72;
  --brand-deep: #0B2347;
  --brand-mid: #1A4A8C;
  --action: #0195FD;
  --action-dark: #016BB8;
  --gold: #FFB300;
  --surface: #FAFBFD;
  --surface-soft: #F5F8FC;
  --chip: #EEF3FA;
  --nav-selected: #E6F0FA;
  --page: #FFFFFF;
  --ink: #1B2A3D;
  --muted: #5A6B82;
  --hint: #8A97A8;
  --border: #EBF0F6;
  --border-soft: #F2F5FA;
  --danger: #B3261E;
  --success: #059669;
  --warning: #D97706;
  --sidebar: #123A72;
  --sidebar-hover: #1A4A8C;
  --radius: 16px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  /* Legacy Tailwind/token aliases used by older blades */
  --color-brand: var(--brand);
  --color-ink: var(--ink);
  --color-muted: var(--muted);
  --color-border: var(--border);
  --color-surface: var(--surface-soft);
}

*, *::before, *::after { box-sizing: border-box; }
html { color: var(--ink); background: var(--page); font-family: var(--font); }
body { margin: 0; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
[x-cloak] { display: none !important; }

/* Layout shell */
.nexa-shell { display: flex; min-height: 100vh; background: var(--page); }
.nexa-sidebar {
  position: sticky; top: 0; width: 272px; flex-shrink: 0; height: 100vh;
  display: flex; flex-direction: column; background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; transition: width .22s ease; overflow: hidden;
}
.nexa-shell.is-collapsed .nexa-sidebar { width: 76px; }
html.nexa-preload-collapsed .nexa-shell .nexa-sidebar { width: 76px; }
html.nexa-preload-collapsed .nexa-shell .nexa-brand-text,
html.nexa-preload-collapsed .nexa-shell .nexa-user-meta,
html.nexa-preload-collapsed .nexa-shell .nexa-nav-group,
html.nexa-preload-collapsed .nexa-shell .nexa-nav-chevron,
html.nexa-preload-collapsed .nexa-shell .nexa-nav-label,
html.nexa-preload-collapsed .nexa-shell .nexa-nav-dot,
html.nexa-preload-collapsed .nexa-shell .nexa-side-toggle-in { display: none; }
html.nexa-preload-collapsed .nexa-shell .nexa-brand { justify-content: center; padding: .85rem .5rem; }
html.nexa-preload-collapsed .nexa-shell .nexa-brand-link { justify-content: center; }
html.nexa-preload-collapsed .nexa-shell .nexa-user { justify-content: center; padding: .85rem .5rem; }
html.nexa-preload-collapsed .nexa-shell .nexa-nav a { justify-content: center; padding: .65rem; }
html.nexa-preload-collapsed .nexa-shell .nexa-nav-initial { display: grid; }
html.nexa-preload-collapsed .nexa-shell .nexa-side-foot a { justify-content: center; }
html.nexa-preload-collapsed .nexa-shell .nexa-side-foot .nexa-nav-initial { display: grid; }
html.nexa-preload-collapsed .nexa-shell .nexa-side-foot .nexa-nav-label { display: none; }
.nexa-brand {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .85rem .85rem .85rem 1rem; border-bottom: 1px solid rgba(255,255,255,.1);
  overflow: hidden; min-height: 56px; max-height: 64px;
}
.nexa-brand-link {
  display: flex; align-items: center; gap: .65rem; min-width: 0; color: inherit;
  overflow: hidden; max-width: 100%;
}
.nexa-brand-logo {
  width: 32px !important; height: 32px !important;
  max-width: 32px !important; max-height: 32px !important;
  object-fit: contain !important; flex-shrink: 0; display: block !important;
  /* border-radius: 8px; background: #000; */
}
.nexa-brand-mark {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: none; place-items: center; font-weight: 700; font-size: 1rem;
  background: rgba(1,149,253,.25); color: #7DD3FC;
}
.nexa-brand-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.nexa-brand-sub { margin-top: 2px; font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #8A97A8; }
.nexa-shell.is-collapsed .nexa-brand-text,
.nexa-shell.is-collapsed .nexa-user-meta,
.nexa-shell.is-collapsed .nexa-nav-group,
.nexa-shell.is-collapsed .nexa-nav-chevron,
.nexa-shell.is-collapsed .nexa-nav-label,
.nexa-shell.is-collapsed .nexa-nav-dot,
.nexa-shell.is-collapsed .nexa-side-toggle-in { display: none; }
.nexa-shell.is-collapsed .nexa-brand { justify-content: center; padding: .85rem .5rem; }
.nexa-shell.is-collapsed .nexa-brand-link { justify-content: center; }
.nexa-shell.is-collapsed .nexa-user { justify-content: center; padding: .85rem .5rem; }
.nexa-shell.is-collapsed .nexa-nav a { justify-content: center; padding: .65rem; }
.nexa-shell.is-collapsed .nexa-nav-initial { display: grid; }
.nexa-shell.is-collapsed .nexa-side-foot a { justify-content: center; }
.nexa-nav-initial {
  display: none; width: 28px; height: 28px; border-radius: 8px; place-items: center;
  font-size: .75rem; font-weight: 700; background: rgba(255,255,255,.1); color: #fff;
}
.nexa-nav a.active .nexa-nav-initial { background: var(--action); color: #fff; }
.nexa-user { display: flex; gap: .75rem; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.nexa-avatar {
  width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center;
  background: rgba(1,149,253,.22); color: #7DD3FC; font-weight: 700; font-size: .875rem; flex-shrink: 0;
}
.nexa-user-name { font-size: .875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nexa-user-role { margin-top: 2px; font-size: .75rem; color: #8A97A8; }
.nexa-nav { flex: 1; overflow-y: auto; padding: 1rem .75rem; }
.nexa-nav details { margin-bottom: .5rem; }
.nexa-nav summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  padding: .4rem .5rem; border-radius: 8px; font-size: 10px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: #8A97A8;
}
.nexa-nav summary::-webkit-details-marker { display: none; }
.nexa-nav summary:hover { color: #fff; }
.nexa-nav ul { list-style: none; margin: 0; padding: 0; }
.nexa-nav a {
  display: flex; align-items: center; gap: .65rem; padding: .55rem .75rem; margin-top: 2px;
  border-radius: 12px; font-size: .875rem; color: rgba(255,255,255,.92); transition: background .15s;
}
.nexa-nav a:hover { background: var(--sidebar-hover); }
.nexa-nav a.active { background: var(--nav-selected); color: var(--brand); font-weight: 600; }
.nexa-nav-dot {
  width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.45); flex-shrink: 0;
}
.nexa-nav a.active .nexa-nav-dot { background: var(--action); }
.nexa-side-foot { border-top: 1px solid rgba(255,255,255,.1); padding: .85rem; }
.nexa-side-foot a {
  display: flex; align-items: center; gap: .5rem; padding: .5rem .75rem; border-radius: 8px;
  font-size: .75rem; color: #8A97A8;
}
.nexa-side-foot a:hover { background: var(--sidebar-hover); color: #fff; }
.nexa-side-foot .nexa-nav-initial { display: none; }
.nexa-shell.is-collapsed .nexa-side-foot .nexa-nav-initial { display: grid; }
.nexa-shell.is-collapsed .nexa-side-foot .nexa-nav-label { display: none; }

/* Thin themed sidebar scrollbar */
.nexa-nav {
  scrollbar-width: thin;
  scrollbar-color: rgba(1,149,253,.55) rgba(255,255,255,.06);
}
.nexa-nav::-webkit-scrollbar { width: 5px; }
.nexa-nav::-webkit-scrollbar-track { background: rgba(255,255,255,.04); border-radius: 99px; }
.nexa-nav::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(1,149,253,.75), rgba(255,179,0,.55));
  border-radius: 99px;
}
.nexa-nav::-webkit-scrollbar-thumb:hover { background: rgba(1,149,253,.95); }

.nexa-side-toggle {
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: #fff;
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: grid; place-items: center;
  font-size: .95rem; flex-shrink: 0; padding: 0; line-height: 1;
}
.nexa-side-toggle:hover { background: rgba(1,149,253,.28); }
.nexa-side-toggle-top {
  border-color: var(--border); background: #fff; color: var(--brand); width: 34px; height: 34px;
}
.nexa-side-toggle-top:hover { background: var(--surface-soft); color: var(--action); }
.nexa-topbar-left { display: flex; align-items: center; gap: .75rem; min-width: 0; }

.nexa-main { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #F7F9FC; }
.nexa-topbar {
  position: sticky; top: 0; z-index: 20; height: 56px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
}
.nexa-topbar h1 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--brand); }
.nexa-content { padding: 1.5rem; }

/* Cards / metrics */
.te-card, .nexa-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(18,58,114,.05);
}
.te-metric, .nexa-metric {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1rem 1rem 1.15rem;
  box-shadow: 0 1px 3px rgba(18,58,114,.05);
}
.te-metric-accent, .nexa-metric-accent {
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 16px 0 0 16px;
}
.nexa-metric-title { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nexa-metric-value { margin: .5rem 0 0; font-size: 1.6rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.nexa-metric-sub { margin: .25rem 0 0; font-size: .75rem; color: var(--hint); }

/* Calm light dashboard KPI cards */
.nexa-dash-kpis {
  display: grid; gap: .85rem;
  grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr));
  margin-bottom: 1.25rem;
}
.nexa-dash-kpi {
  border-radius: 18px; padding: 1.05rem 1.1rem;
  border: 1px solid rgba(18,58,114,.06);
  box-shadow: 0 1px 2px rgba(18,58,114,.04);
  min-height: 108px;
}
.nexa-dash-kpi .t {
  margin: 0; font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted);
}
.nexa-dash-kpi .v {
  margin: .45rem 0 0; font-size: 1.45rem; font-weight: 700;
  color: var(--brand-deep); font-variant-numeric: tabular-nums; line-height: 1.15;
}
.nexa-dash-kpi .s { margin: .35rem 0 0; font-size: .72rem; color: var(--hint); line-height: 1.35; }
.nexa-dash-kpi.tone-navy  { background: linear-gradient(160deg, #F4F7FB 0%, #E8EEF6 100%); }
.nexa-dash-kpi.tone-mint  { background: linear-gradient(160deg, #F3FAF7 0%, #E4F3EC 100%); }
.nexa-dash-kpi.tone-sky   { background: linear-gradient(160deg, #F3F8FC 0%, #E4F0F9 100%); }
.nexa-dash-kpi.tone-blue  { background: linear-gradient(160deg, #F2F7FC 0%, #DDEAF6 100%); }
.nexa-dash-kpi.tone-sand  { background: linear-gradient(160deg, #FCFAF5 0%, #F5EFE3 100%); }
.nexa-dash-kpi.tone-lilac { background: linear-gradient(160deg, #F7F6FB 0%, #ECEAF5 100%); }
.nexa-dash-kpi.tone-ice   { background: linear-gradient(160deg, #F5FAFB 0%, #E5F2F5 100%); }
.nexa-dash-kpi.tone-peach { background: linear-gradient(160deg, #FDF8F5 0%, #F6EBE4 100%); }
.nexa-dash-kpi.tone-mist  { background: linear-gradient(160deg, #F6F8FA 0%, #E9EEF3 100%); }
.nexa-dash-kpi.tone-sage  { background: linear-gradient(160deg, #F5F9F6 0%, #E6F0EA 100%); }
.nexa-dash-kpi.tone-cream { background: linear-gradient(160deg, #FBF9F4 0%, #F3EEE4 100%); }

.nexa-dash-section-title {
  margin: 1.5rem 0 .75rem; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.nexa-dash-year-card {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  padding: 1.15rem; box-shadow: 0 1px 3px rgba(18,58,114,.04);
}
.nexa-dash-year-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: .85rem; gap: .75rem;
}
.nexa-dash-year-head span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nexa-dash-year-head strong { font-size: 1.15rem; color: var(--brand-deep); }
.nexa-dash-year-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.nexa-dash-year-grid span { display: block; font-size: .7rem; color: var(--muted); font-weight: 600; }
.nexa-dash-year-grid b { display: block; margin-top: .2rem; font-size: .95rem; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.nexa-dash-year-grid small { font-weight: 500; color: var(--hint); font-size: .75rem; }
.nexa-dash-growth { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.nexa-dash-growth span {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: .2rem .65rem; font-size: .72rem; font-weight: 700;
}
.nexa-dash-growth .up { background: #ECFDF5; color: #047857; }
.nexa-dash-growth .down { background: #FEF2F2; color: #B91C1C; }
.nexa-rank {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 8px; background: var(--chip); color: var(--brand);
  font-size: .75rem; font-weight: 700;
}
.nexa-chart-sub { font-weight: 500; color: var(--muted); font-size: .75rem; }

.nexa-welcome {
  background: linear-gradient(135deg, #F5F8FC 0%, #fff 45%, #E6F0FA 100%);
  border: 1px solid var(--border); border-radius: 20px; padding: 1.25rem 1.35rem; margin-bottom: 1.25rem;
}
.nexa-welcome-kicker { margin: 0; font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--action); }
.nexa-welcome h1 { margin: .35rem 0 0; font-size: 1.6rem; font-weight: 700; color: var(--brand-deep); }
.nexa-welcome p { margin: .4rem 0 0; color: var(--muted); font-size: .9rem; max-width: 40rem; }
.nexa-pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.te-badge, .nexa-pill {
  display: inline-flex; align-items: center; border-radius: 999px; padding: .2rem .7rem;
  font-size: .75rem; font-weight: 600;
}
.nexa-pill-brand { background: rgba(18,58,114,.08); color: var(--brand); }
.nexa-pill-action { background: rgba(1,149,253,.12); color: var(--action-dark); }
.nexa-pill-ok { background: #ECFDF5; color: #047857; }
.nexa-pill-warn { background: #FFFBEB; color: #B45309; }

.nexa-grid-4 { display: grid; gap: 1rem; grid-template-columns: repeat(1, minmax(0,1fr)); }
@media (min-width: 640px) { .nexa-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1280px) { .nexa-grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.nexa-grid-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
@media (min-width: 1024px) { .nexa-grid-2 { grid-template-columns: 1fr 1fr; } }

.nexa-chart-card { padding: 1.15rem; }
.nexa-chart-card h2 { margin: 0 0 1rem; font-size: .9rem; font-weight: 700; color: var(--brand-deep); }
.nexa-chart-box { height: 260px; position: relative; }
.nexa-chart-box canvas { max-width: 100%; }

/* Forms / buttons / tables */
.te-btn-primary, .nexa-btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--action); color: #fff; border: 0; border-radius: 12px;
  padding: .55rem 1rem; font-size: .875rem; font-weight: 600; cursor: pointer;
}
.te-btn-primary:hover, .nexa-btn-primary:hover { background: var(--action-dark); }
.te-btn-secondary, .nexa-btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; color: var(--brand); border: 1px solid var(--border); border-radius: 12px;
  padding: .5rem 1rem; font-size: .875rem; font-weight: 600; cursor: pointer;
}
.te-btn-secondary:hover, .nexa-btn-secondary:hover { background: var(--surface-soft); }
.te-input, .nexa-input {
  width: 100%; border: 1px solid var(--border); border-radius: 12px; background: #fff;
  padding: .55rem .75rem; font-size: .875rem; color: var(--ink); outline: none;
}
.te-input:focus, .nexa-input:focus { border-color: var(--action); box-shadow: 0 0 0 3px rgba(1,149,253,.18); }
.te-table-wrap, .nexa-table-wrap {
  overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(18,58,114,.05);
}
.te-table, .nexa-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .875rem; }
.te-table thead, .nexa-table thead {
  background: linear-gradient(180deg, #F5F8FC 0%, #EEF3FA 100%);
  text-align: left; font-size: .7rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.te-table th, .nexa-table th {
  padding: .85rem 1rem; border-bottom: 1px solid var(--border); white-space: nowrap;
}
.te-table td, .nexa-table td {
  padding: .8rem 1rem; border-bottom: 1px solid var(--border-soft); color: var(--ink); vertical-align: middle;
}
.te-table tbody tr:last-child td, .nexa-table tbody tr:last-child td { border-bottom: 0; }
.te-table tbody tr, .nexa-table tbody tr { transition: background .12s ease; }
.te-table tbody tr:hover, .nexa-table tbody tr:hover { background: #F7FAFD; }
.nexa-table tbody tr.is-warning { background: #FFFBEB; }
.nexa-table tbody tr.is-warning:hover { background: #FEF3C7; }
.nexa-table .sku { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .78rem; color: var(--brand); font-weight: 600; }
.nexa-badge {
  display: inline-flex; align-items: center; margin-left: .4rem;
  padding: .15rem .45rem; border-radius: 999px; font-size: .65rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.nexa-badge-warn { background: #FEF3C7; color: #92400E; }
.nexa-badge-ok { background: #ECFDF5; color: #047857; }
.nexa-actions-cell { text-align: right; white-space: nowrap; }

/* Pagination */
.nexa-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: 1rem; padding: .75rem 1rem;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 1px 3px rgba(18,58,114,.04);
}
.nexa-pager-meta { font-size: .82rem; color: var(--muted); }
.nexa-pager-meta strong { color: var(--brand-deep); font-weight: 700; }
.nexa-pager-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem; }
.nexa-pager-btn {
  min-width: 2rem; height: 2rem; padding: 0 .55rem; border-radius: 9px;
  border: 1px solid var(--border); background: #fff; color: var(--brand);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background .12s, border-color .12s, color .12s;
}
.nexa-pager-btn:hover { background: var(--surface-soft); border-color: #D5DEEA; color: var(--action); }
.nexa-pager-btn.is-current {
  background: var(--action); border-color: var(--action); color: #fff;
  box-shadow: 0 4px 12px rgba(1,149,253,.25);
}
.nexa-pager-btn.is-disabled {
  opacity: .45; cursor: default; pointer-events: none; color: var(--hint);
}
.nexa-pager-ellipsis {
  min-width: 1.5rem; text-align: center; color: var(--hint); font-size: .85rem; font-weight: 600;
}

/* Accent colors for metrics */
.accent-slate { background: #64748B; }
.accent-emerald { background: #059669; }
.accent-amber { background: #D97706; }
.accent-violet { background: #7C3AED; }
.accent-sky { background: #0284C7; }
.accent-teal { background: #0D9488; }
.accent-coral { background: #E11D48; }
.accent-indigo { background: #4F46E5; }
.accent-brand { background: #123A72; }
.accent-action { background: #0195FD; }

/* Calendar — Flutter-style month grid */
.nexa-cal-wrap { display: grid; gap: 1rem; }
@media (min-width: 1100px) {
  .nexa-cal-wrap { grid-template-columns: 1.7fr 1fr; align-items: start; }
}
.nexa-cal-card {
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 1rem; box-shadow: 0 1px 3px rgba(18,58,114,.05);
}
.nexa-cal-toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.nexa-cal-month { font-size: 1.1rem; font-weight: 700; color: var(--brand-deep); min-width: 9rem; text-align: center; }
.nexa-cal-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .5rem; margin-bottom: 1rem; }
.nexa-cal-metric {
  background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: .75rem .9rem;
}
.nexa-cal-metric .l { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.nexa-cal-metric .v { margin-top: .2rem; font-size: 1.25rem; font-weight: 700; color: var(--brand-deep); }
.nexa-cal-metric .c { font-size: .7rem; color: var(--hint); }
.nexa-cal-grid {
  display: grid !important;
  grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
  gap: 6px;
  width: 100%;
}
.nexa-cal-dow {
  text-align: center; font-size: 11px; font-weight: 700; color: var(--muted);
  padding: .5rem 0; text-transform: uppercase; letter-spacing: .04em;
}
.nexa-cal-day {
  display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  min-height: 92px; border-radius: 12px; padding: 6px; text-align: left; border: 0; cursor: pointer;
  background: var(--surface-soft); color: var(--ink); width: 100%;
  transition: background .12s ease, box-shadow .12s ease;
}
.nexa-cal-day:hover { background: var(--nav-selected); }
.nexa-cal-day.out { opacity: .4; background: #fff; }
.nexa-cal-day.today { background: rgba(255,179,0,.18); box-shadow: inset 0 0 0 1.5px var(--gold); }
.nexa-cal-day.holiday {
  background: rgba(220, 38, 38, .07);
  box-shadow: inset 0 0 0 1px rgba(220, 38, 38, .32);
}
.nexa-cal-day.holiday.today {
  background: linear-gradient(135deg, rgba(255,179,0,.16), rgba(220,38,38,.08));
  box-shadow: inset 0 0 0 1.5px var(--gold);
}
.nexa-cal-day.selected { background: var(--brand); color: #fff; box-shadow: none; }
.nexa-cal-day .num {
  display: flex; align-items: center; justify-content: space-between; gap: .25rem;
  font-size: .75rem; font-weight: 700; line-height: 1.2;
}
.nexa-cal-day.selected .num { color: #fff; }
.nexa-cal-holiday-flag { color: #DC2626; font-size: 8px; line-height: 1; }
.nexa-cal-day.selected .nexa-cal-holiday-flag { color: #FECACA; }
.nexa-cal-day .ev {
  margin: 0; font-size: 10px; font-weight: 600; border-radius: 5px; padding: 2px 5px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: left;
}
.nexa-cal-day .ev.holiday-ev {
  background: #FFF1F2; color: #DC2626;
}
.nexa-cal-day.selected .ev.holiday-ev {
  background: rgba(254,202,202,.28); color: #FECACA;
}
.nexa-cal-day .more { font-size: 10px; font-weight: 600; opacity: .75; }
.nexa-cal-legend {
  display: flex; flex-wrap: wrap; gap: .65rem 1.1rem; align-items: center;
  margin: 0 0 .85rem; font-size: 12px; font-weight: 600; color: var(--muted);
}
.nexa-cal-legend-item { display: inline-flex; align-items: center; gap: .4rem; }
.nexa-cal-dot {
  display: inline-block; width: 9px; height: 9px; border-radius: 999px; flex-shrink: 0;
}
.nexa-cal-dot.holiday { background: #DC2626; }
.nexa-cal-dot.today { background: var(--gold); }
.nexa-cal-dot.event { background: var(--action); }
.nexa-cal-agenda { display: flex; flex-direction: column; gap: 1rem; }
.nexa-cal-event {
  border: 1px solid var(--border); border-radius: 12px; padding: .75rem .85rem; background: #fff;
  border-left-width: 4px; border-left-style: solid;
}
.nexa-cal-event .t { font-weight: 600; color: var(--ink); margin: 0; }
.nexa-cal-event .m { margin: .2rem 0 0; font-size: .75rem; color: var(--muted); }

.nexa-jobs-filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.nexa-jobs-filters .nexa-input { max-width: 20rem; }
.nexa-status {
  display: inline-flex; align-items: center; border-radius: 999px; padding: .15rem .6rem;
  font-size: .72rem; font-weight: 700; text-transform: capitalize; background: var(--chip); color: var(--brand);
}
.nexa-form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .nexa-form-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.nexa-label { display: block; margin-bottom: .35rem; font-size: .8rem; font-weight: 600; color: var(--muted); }
.nexa-panel { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.15rem; }
.nexa-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Utility helpers used in blades */
.min-h-screen { min-height: 100vh; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.min-w-0 { min-width: 0; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.mt-1 { margin-top: .25rem; }
.mt-2 { margin-top: .5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: .75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-3 { padding-left: .75rem; padding-right: .75rem; }
.py-2 { padding-top: .5rem; padding-bottom: .5rem; }
.text-xs { font-size: .75rem; }
.text-sm { font-size: .875rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.text-center { text-align: center; }
.w-full { width: 100%; }
.rounded-xl { border-radius: 12px; }
.rounded-2xl { border-radius: 16px; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.space-y-2 > * + * { margin-top: .5rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.bg-white { background: #fff; }
.text-brand { color: var(--brand); }
.text-brand-deep { color: var(--brand-deep); }
.text-action { color: var(--action); }
.text-muted { color: var(--muted); }
.text-hint { color: var(--hint); }
.text-ink { color: var(--ink); }
.text-danger { color: var(--danger); }
.bg-page { background: #F7F9FC; }
.bg-chip { background: var(--chip); }
.bg-surface-soft { background: var(--surface-soft); }
.border { border: 1px solid var(--border); }
.shadow-sm { box-shadow: 0 1px 2px rgba(18,58,114,.06); }
.antialiased { -webkit-font-smoothing: antialiased; }

.flash-ok { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; border-radius: 12px; padding: .75rem 1rem; margin-bottom: 1rem; }
.flash-err { background: #FEF2F2; color: #B91C1C; border: 1px solid #FECACA; border-radius: 12px; padding: .75rem 1rem; margin-bottom: 1rem; }

/* Guest auth */
.nexa-guest {
  min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem;
  background:
    radial-gradient(circle at 15% 20%, rgba(1,149,253,.16), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(18,58,114,.18), transparent 42%),
    radial-gradient(circle at 50% 40%, rgba(255,179,0,.12), transparent 35%),
    #fff;
}
.nexa-guest-card { width: 100%; max-width: 28rem; background: rgba(255,255,255,.96); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; box-shadow: 0 16px 40px rgba(18,58,114,.08); }
.nexa-guest-brand { text-align: center; margin-bottom: 1.5rem; }
.nexa-guest-logo-wrap {
  width: 160px; height: 160px; margin: 0 auto;
  border-radius: 24px; 
  /* background: #000;  */
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(11, 35, 71, .18);
}
.nexa-guest-logo {
  width: 160px !important; height: 160px !important;
  max-width: 160px !important; max-height: 160px !important;
  object-fit: contain !important; display: block !important; margin: 0 auto;
}
.nexa-guest-brand .t { font-size: 2.25rem; font-weight: 700; color: var(--brand); }
.nexa-guest-brand .s {
  margin-top: .75rem; font-size: 11px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.nexa-guest-foot {
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  margin-top: 1.25rem; font-size: 11px; font-weight: 600; color: var(--muted);
}
.nexa-guest-foot-logo {
  width: 18px !important; height: 18px !important; object-fit: contain !important;
  display: block !important; border-radius: 4px; 
  /* background: #000; */
}

/* Professional Nexa modal */
.nexa-modal-root {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.nexa-modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(11, 35, 71, 0.55);
  backdrop-filter: blur(4px);
}
.nexa-modal {
  position: relative; z-index: 1; width: 100%;
  max-height: min(90vh, 860px);
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(18, 58, 114, 0.28);
  overflow: hidden;
  animation: nexaModalIn .18s ease-out;
}
@keyframes nexaModalIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.nexa-modal-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #F5F8FC 0%, #fff 100%);
}
.nexa-modal-heading h2 {
  margin: 0; font-size: 1.15rem; font-weight: 700; color: var(--brand-deep);
}
.nexa-modal-heading p {
  margin: .3rem 0 0; font-size: .82rem; color: var(--muted);
}
.nexa-modal-close {
  width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border);
  background: #fff; color: var(--muted); font-size: 1.35rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; flex-shrink: 0;
}
.nexa-modal-close:hover { background: var(--surface-soft); color: var(--brand); }
.nexa-modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  flex: 1;
}
.nexa-modal-footer {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .6rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}
.nexa-check {
  display: flex; align-items: center; gap: .55rem;
  font-size: .875rem; color: var(--ink); cursor: pointer;
}
.nexa-check input { width: 1rem; height: 1rem; accent-color: var(--action); }
body:has(.nexa-modal-root) { overflow: hidden; }

/* Job create/edit wizard */
.nexa-wizard { display: flex; flex-direction: column; gap: 1rem; }
.nexa-wizard-steps {
  display: flex; align-items: center; gap: .35rem;
  padding: .35rem; border-radius: 14px; background: #F5F8FC; border: 1px solid var(--border);
}
.nexa-wizard-step {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 0; background: transparent; cursor: pointer;
  padding: .45rem .7rem; border-radius: 10px;
  color: var(--muted); font-size: .8rem; font-weight: 600;
}
.nexa-wizard-step.is-active { background: #fff; color: var(--brand-deep); box-shadow: 0 1px 3px rgba(18,58,114,.08); }
.nexa-wizard-step.is-done { color: var(--action); }
.nexa-wizard-num {
  width: 1.35rem; height: 1.35rem; border-radius: 999px;
  display: grid; place-items: center; font-size: .72rem; font-weight: 700;
  background: #E8EEF6; color: var(--brand);
}
.nexa-wizard-step.is-active .nexa-wizard-num { background: var(--action); color: #fff; }
.nexa-wizard-step.is-done .nexa-wizard-num { background: rgba(1,149,253,.15); color: var(--action); }
.nexa-wizard-rail {
  flex: 1; height: 2px; min-width: .75rem; border-radius: 99px; background: #D8E0EC;
}
.nexa-wizard-rail.is-done { background: var(--action); }
.nexa-wizard-panel { min-height: 12rem; }
.nexa-wizard-panes {
  display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .85rem;
}
.nexa-wizard-pane {
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 999px; padding: .35rem .7rem; font-size: .75rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35rem;
}
.nexa-wizard-pane.is-active {
  border-color: rgba(1,149,253,.45); background: rgba(1,149,253,.08); color: var(--brand-deep);
}
.nexa-wizard-pane-count {
  font-size: .65rem; font-weight: 700; color: var(--action);
  background: rgba(1,149,253,.12); border-radius: 999px; padding: .1rem .35rem;
}
.nexa-wizard-footer {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
}
.nexa-wizard-footer-nav { display: flex; gap: .6rem; margin-left: auto; flex-wrap: wrap; }
@media (max-width: 640px) {
  .nexa-wizard-label { display: none; }
  .nexa-wizard-steps { justify-content: space-between; }
}

/* Empty states */
.nexa-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 2.75rem 1.5rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(1,149,253,.08), transparent 45%),
    radial-gradient(circle at 70% 80%, rgba(18,58,114,.06), transparent 40%),
    #fff;
  border: 1px dashed #D5DEEA; border-radius: 16px;
}
.nexa-empty-icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(1,149,253,.16), rgba(18,58,114,.12));
  color: var(--action); font-size: 1.35rem; font-weight: 700; margin-bottom: .85rem;
}
.nexa-empty-title { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--brand-deep); }
.nexa-empty-text { margin: .4rem 0 0; max-width: 28rem; font-size: .875rem; color: var(--muted); line-height: 1.45; }
.nexa-empty-actions { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.nexa-table .nexa-empty-cell { padding: 0 !important; border: 0 !important; }
.nexa-table .nexa-empty { border: 0; border-radius: 0; background: transparent; }

/* Theme legacy / default buttons into Nexa */
.nexa-btn-danger {
  display: inline-flex; align-items: center; justify-content: center;
  background: #FEF2F2; color: var(--danger); border: 1px solid #FECACA; border-radius: 12px;
  padding: .5rem 1rem; font-size: .875rem; font-weight: 600; cursor: pointer;
}
.nexa-btn-danger:hover { background: #FEE2E2; }
.nexa-btn-success {
  display: inline-flex; align-items: center; justify-content: center;
  background: #ECFDF5; color: var(--success); border: 1px solid #A7F3D0; border-radius: 12px;
  padding: .5rem 1rem; font-size: .875rem; font-weight: 600; cursor: pointer;
}
button.bg-slate-900, a.bg-slate-900,
button.rounded-md.bg-slate-900, a.rounded-md.bg-slate-900,
button.rounded-lg.bg-slate-900 {
  background: var(--action) !important; color: #fff !important; border: 0 !important;
  border-radius: 12px !important; font-weight: 600 !important;
}
button.bg-slate-900:hover, a.bg-slate-900:hover { background: var(--action-dark) !important; }
.bg-\[var\(--color-brand\)\] {
  background: var(--action) !important; color: #fff !important; border: 0 !important;
  border-radius: 12px !important; font-weight: 600 !important;
}
.bg-\[var\(--color-brand\)\]:hover { background: var(--action-dark) !important; }
.text-\[var\(--color-brand\)\] { color: var(--action) !important; }
.font-display { font-family: var(--font); }

/* Attendance chips / metrics */
.nexa-att-metrics { display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 1rem; }
.nexa-att-metric {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.1rem;
  box-shadow: 0 1px 3px rgba(18,58,114,.05);
}
.nexa-att-metric .l { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nexa-att-metric .v { margin-top: .35rem; font-size: 1.35rem; font-weight: 700; color: var(--brand-deep); font-variant-numeric: tabular-nums; }
.nexa-att-metric .s { margin-top: .2rem; font-size: .78rem; color: var(--muted); }
.nexa-att-metric.is-late .v { color: var(--warning); }
.nexa-att-metric.is-early .v { color: var(--success); }
.nexa-att-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin: .85rem 0 1rem; }
.nexa-att-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
  background: var(--chip); color: var(--brand); border: 1px solid var(--border);
}
.nexa-att-chip.is-late { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }
.nexa-att-chip.is-early { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.nexa-att-chip.is-ontime { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.nexa-att-chip.is-muted { background: #F8FAFC; color: var(--muted); }
.nexa-att-chip.is-remote {
  display: inline-flex; margin: 0; padding: .12rem .45rem; border-radius: 999px;
  font-size: .62rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
  background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE;
}
.nexa-att-loc { min-width: 9.5rem; }
.nexa-att-map-link {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: .2rem;
  text-decoration: none; color: var(--brand-deep);
}
.nexa-att-map-link:hover .nexa-att-map-cta { background: rgba(1,149,253,.18); }
.nexa-att-map-coords {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .72rem; font-weight: 600; color: var(--brand); line-height: 1.3;
}
.nexa-att-map-cta {
  display: inline-flex; align-items: center; padding: .12rem .45rem; border-radius: 6px;
  font-size: .65rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(1,149,253,.1); color: var(--action);
}

/* Org chart / person cells */
.nexa-org-tree{list-style:none;margin:0;padding:0;}
.nexa-org-node{position:relative;padding:.35rem 0;}
.nexa-org-node.is-child{margin-left:1.35rem;padding-left:1.1rem;border-left:2px solid #D7E4F5;}
.nexa-org-card{display:flex;align-items:center;gap:.75rem;padding:.7rem .85rem;border:1px solid var(--border);border-radius:14px;background:#fff;box-shadow:0 1px 2px rgba(18,58,114,.04);}
.nexa-org-card:hover{border-color:#C9DBF2;background:#F8FBFE;}
.nexa-org-avatar{width:38px;height:38px;border-radius:999px;flex-shrink:0;display:grid;place-items:center;font-weight:700;font-size:.85rem;background:rgba(1,149,253,.14);color:var(--action);}
.nexa-org-name{font-weight:700;color:var(--brand-deep);line-height:1.2;}
.nexa-org-meta{margin-top:.2rem;font-size:.75rem;color:var(--muted);text-transform:capitalize;}
.nexa-org-children{list-style:none;margin:.35rem 0 0;padding:0;}
.nexa-person-cell{display:flex;align-items:center;gap:.7rem;}
.nexa-person-avatar{width:34px;height:34px;border-radius:999px;flex-shrink:0;display:grid;place-items:center;font-weight:700;font-size:.75rem;background:var(--chip);color:var(--brand);}

/* Stock page */
.nexa-stock { width: 100%; max-width: none; }
.nexa-stock-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap; margin-bottom: 1.15rem;
}
.nexa-stock-title {
  margin: 0; font-size: 1.45rem; font-weight: 750; letter-spacing: -.02em; color: var(--brand-deep);
}
.nexa-stock-sub { margin: .3rem 0 0; font-size: .875rem; color: var(--muted); }
.nexa-stock-scan { padding: .5rem 1rem; font-size: .82rem; white-space: nowrap; }

.nexa-stock-kpis {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem; margin-bottom: 1.1rem;
}
.nexa-stock-kpis.has-cost {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.nexa-stock-kpi {
  display: flex; flex-direction: column; gap: .2rem;
  padding: .85rem 1rem; border-radius: 14px; border: 1px solid var(--border);
  background: linear-gradient(160deg, #F7FAFD 0%, #EEF4FA 100%); text-align: left;
}
.nexa-stock-kpi.is-cost {
  background: linear-gradient(160deg, #FCFAF5 0%, #F5EFE3 100%);
}
.nexa-stock-kpi.is-cost .nexa-stock-kpi-v {
  font-size: 1.15rem;
}
.nexa-stock-kpi.is-click { cursor: pointer; font: inherit; color: inherit; transition: border-color .12s, box-shadow .12s; }
.nexa-stock-kpi.is-click:hover { border-color: #C5D7EC; box-shadow: 0 2px 8px rgba(18,58,114,.06); }
.nexa-stock-kpi.is-on { border-color: #F59E0B; background: linear-gradient(160deg, #FFFBEB 0%, #FEF3C7 100%); }
.nexa-stock-kpi.is-alert .nexa-stock-kpi-v { color: #B45309; }
.nexa-stock-kpi-l {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.nexa-stock-kpi-v {
  font-size: 1.35rem; font-weight: 750; color: var(--brand-deep); font-variant-numeric: tabular-nums; line-height: 1.15;
}

.nexa-stock-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: .9rem;
}
.nexa-stock-search { flex: 1 1 16rem; min-width: 0; }
.nexa-stock-search .nexa-input { max-width: none; }
.nexa-stock-filters { display: flex; flex-wrap: wrap; gap: .4rem; }
.nexa-stock-chip {
  border: 1px solid var(--border); background: #fff; color: var(--muted);
  border-radius: 999px; padding: .35rem .8rem; font-size: .75rem; font-weight: 650; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
}
.nexa-stock-chip:hover { background: #F7FAFD; color: var(--brand-deep); }
.nexa-stock-chip.is-active {
  background: rgba(1,149,253,.1); border-color: rgba(1,149,253,.35); color: var(--action);
}
.nexa-stock-chip.is-active.is-warn {
  background: #FFFBEB; border-color: #F59E0B; color: #B45309;
}

.nexa-stock-table-wrap { margin-bottom: .5rem; }
.nexa-stock-table th.nexa-stock-num,
.nexa-stock-table td.nexa-stock-num { text-align: right; font-variant-numeric: tabular-nums; }
.nexa-stock-table th.nexa-stock-act,
.nexa-stock-table td.nexa-stock-act { width: 2.5rem; text-align: right; padding-right: .85rem; }
.nexa-stock-row { cursor: pointer; }
.nexa-stock-row:focus-visible { outline: 2px solid var(--action); outline-offset: -2px; }
.nexa-stock-row.is-low { background: #FFFBEB; }
.nexa-stock-row.is-low:hover { background: #FEF3C7; }
.nexa-stock-row.is-out { background: #FEF2F2; }
.nexa-stock-row.is-out:hover { background: #FEE2E2; }

.nexa-stock-item { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.nexa-stock-name {
  font-weight: 650; color: var(--brand-deep); line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nexa-stock-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: .35rem;
  font-size: .75rem; color: var(--muted);
}
.nexa-stock-dot { opacity: .5; }
.nexa-stock-tag {
  display: inline-flex; align-items: center; padding: .1rem .4rem; border-radius: 6px;
  font-size: .62rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  background: rgba(1,149,253,.1); color: var(--action);
}

.nexa-stock-qty { display: flex; align-items: baseline; justify-content: flex-end; gap: .35rem; }
.nexa-stock-qty strong { font-size: 1.05rem; font-weight: 750; color: var(--brand-deep); }
.nexa-stock-qty span { font-size: .72rem; color: var(--muted); font-weight: 500; }
.nexa-stock-meter {
  margin-top: .35rem; height: 4px; border-radius: 999px; background: #E8EEF6; overflow: hidden; max-width: 5.5rem; margin-left: auto;
}
.nexa-stock-meter-fill { display: block; height: 100%; border-radius: inherit; }
.nexa-stock-meter-fill.ok { background: #0195FD; }
.nexa-stock-meter-fill.low { background: #F59E0B; }
.nexa-stock-meter-fill.out { background: #EF4444; width: 8% !important; }

.nexa-stock-status {
  display: inline-flex; align-items: center; padding: .2rem .55rem; border-radius: 999px;
  font-size: .68rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase;
}
.nexa-stock-status.is-ok { background: #ECFDF5; color: #047857; }
.nexa-stock-status.is-low { background: #FEF3C7; color: #92400E; }
.nexa-stock-status.is-out { background: #FEE2E2; color: #B91C1C; }

.nexa-stock-codes { color: var(--muted); font-weight: 600; }
.nexa-stock-cost { color: var(--ink); font-weight: 600; font-size: .85rem; }
.nexa-stock-open {
  display: inline-flex; width: 1.5rem; height: 1.5rem; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--muted); font-size: 1.25rem; font-weight: 500; line-height: 1;
}
.nexa-stock-row:hover .nexa-stock-open { color: var(--action); background: rgba(1,149,253,.08); }
.nexa-stock-pager { margin-top: 1rem; }

.nexa-stock-tabs {
  display: flex; gap: .35rem; flex-wrap: wrap;
  margin: -.25rem 0 1.1rem; padding-bottom: .85rem; border-bottom: 1px solid var(--border);
}
.nexa-stock-tab {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  padding: .45rem .85rem; border-radius: 10px; font-size: .82rem; font-weight: 650;
  display: inline-flex; align-items: center; gap: .4rem;
}
.nexa-stock-tab:hover { background: #F5F8FC; color: var(--brand-deep); }
.nexa-stock-tab.is-active { background: rgba(18,58,114,.08); color: var(--brand-deep); }
.nexa-stock-tab-count {
  font-size: .68rem; font-weight: 750; padding: .1rem .4rem; border-radius: 999px;
  background: rgba(1,149,253,.14); color: var(--action);
}

.nexa-stock-overview-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: .65rem; margin-bottom: 1rem;
}
.nexa-stock-stat {
  padding: .8rem .9rem; border-radius: 12px; border: 1px solid var(--border); background: #F8FBFE;
}
.nexa-stock-stat span {
  display: block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted);
}
.nexa-stock-stat strong {
  display: block; margin-top: .3rem; font-size: 1.15rem; font-weight: 750; color: var(--brand-deep);
  font-variant-numeric: tabular-nums;
}
.nexa-stock-stat strong small { font-size: .75rem; font-weight: 550; color: var(--muted); }

.nexa-stock-codes-panel {
  display: grid; grid-template-columns: 1fr auto; gap: .85rem 1.25rem; align-items: center;
  padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: #fff;
}
.nexa-stock-codes-copy h3 { margin: 0; font-size: .88rem; font-weight: 700; color: var(--brand-deep); }
.nexa-stock-codes-copy .sku { margin: .35rem 0 0; font-size: .9rem; }
.nexa-stock-qr {
  border-radius: 10px; border: 1px solid var(--border); background: #fff; grid-row: span 2;
}
.nexa-stock-bc { grid-column: 1 / -1; max-width: 100%; height: 48px; }
.nexa-stock-qr-sm { border-radius: 6px; background: #fff; display: block; }

.nexa-stock-manage { display: grid; gap: .85rem; }
.nexa-stock-form {
  margin: 0; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: #F8FBFE;
}
.nexa-stock-form h3 { margin: 0 0 .75rem; font-size: .88rem; font-weight: 700; color: var(--brand-deep); }
.nexa-stock-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; resize: vertical; }

.nexa-stock-serial-table td { padding: .55rem .85rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

@media (max-width: 1100px) {
  .nexa-stock-kpis.has-cost { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .nexa-stock-kpis,
  .nexa-stock-kpis.has-cost { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .nexa-stock-table th:nth-child(4),
  .nexa-stock-table td:nth-child(4) { display: none; }
  .nexa-stock-codes-panel { grid-template-columns: 1fr; }
  .nexa-stock-qr { grid-row: auto; justify-self: start; }
}

