/* ============================================================
   Uzitech Suite — Shell · Brand v2.0
   ============================================================
   Identidade visual baseada no manual da Uzitech v2:
   • Ink: preto profundo (#03060E → #0E1B2F)
   • Cyan elétrico (#4FD3FF) como primária
   • Magenta vibrante (#FF3DCB) como ênfase
   • Space Grotesk pra display + UI
   • JetBrains Mono pra labels técnicas e dados
   • Glows radiais sutis no fundo
   • Linhas finas (--line) e gradients sutis (cyan→magenta) como divisores
   ============================================================ */

:root {
  /* ─── Paleta ────────────────────────────────────────────── */
  --ink:        #03060E;
  --ink-2:      #07101F;
  --ink-3:      #0E1B2F;
  --ink-4:      #142540;

  --line:       rgba(255,255,255,0.07);
  --line-2:     rgba(255,255,255,0.14);
  --line-3:     rgba(255,255,255,0.20);

  --paper:      #F5F6F8;
  --text:       #E7EAF0;
  --text-2:     #B6BFD0;
  --mute:       #8A93A6;
  --mute-2:     #5C6675;

  /* Brand cores */
  --cyan:       #4FD3FF;
  --cyan-2:     #1A8DE0;
  --cyan-glow:  #9EE9FF;
  --cyan-bg:    rgba(79,211,255,0.12);
  --cyan-bg-2:  rgba(79,211,255,0.20);

  --magenta:    #FF3DCB;
  --magenta-2:  #B81F8F;
  --magenta-glow:#FF9DE6;
  --magenta-bg: rgba(255,61,203,0.12);

  /* Status semânticos (alinhados ao brand) */
  --success:      #4ADE80;
  --success-bg:   rgba(74,222,128,0.10);
  --warn:         #FFC857;
  --warn-bg:      rgba(255,200,87,0.12);
  --danger:       #FF4D6A;
  --danger-bg:    rgba(255,77,106,0.12);

  /* Aliases pra compatibilidade com módulos legados */
  --bg:        var(--ink);
  --surface:   var(--ink-2);
  --surface2:  var(--ink-3);
  --surface3:  var(--ink-4);
  --border:    var(--line);
  --border2:   var(--line-2);
  --text2:     var(--text-2);
  --text3:     var(--mute);
  --text4:     var(--mute-2);
  --accent:        var(--cyan);
  --accent2:       var(--cyan-glow);
  --accent-dark:   var(--cyan-2);
  --accent-light:  var(--cyan-bg);
  --warn-light:    var(--warn-bg);
  --danger-light:  var(--danger-bg);
  --success-light: var(--success-bg);

  --shadow:    0 4px 12px rgba(0,0,0,0.35);
  --shadow-lg: 0 18px 50px rgba(3,6,14,0.55);
  --shadow-glow-cyan:  0 0 24px rgba(79,211,255,0.18);
  --shadow-glow-pink:  0 0 24px rgba(255,61,203,0.18);

  --radius:     8px;
  --radius-sm:  6px;
  --radius-lg:  14px;

  --font-display: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'Cascadia Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  font-family: var(--font-display);
  background: var(--ink);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'ss02';   /* Stylistic sets do Space Grotesk */
}

/* ─── Glows radiais no fundo do app ──────────────────────── */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 80% 5%, rgba(79,211,255,0.08), transparent 60%),
    radial-gradient(ellipse 50% 35% at 10% 90%, rgba(255,61,203,0.06), transparent 60%);
  pointer-events: none;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }

input::placeholder, textarea::placeholder { color: var(--mute-2); font-family: inherit; }
select option { background: var(--ink-2); color: var(--text); }

/* Seleção de texto */
::selection { background: var(--cyan-bg-2); color: #fff; }

/* ─── Animações ──────────────────────────────────────────── */
@keyframes uz-fade-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes uz-slide-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes uz-notif-in { from { opacity: 0; transform: translateX(-60px); } to { opacity: 1; transform: translateX(0); } }
@keyframes uz-spin     { to { transform: rotate(360deg); } }
@keyframes uz-pulse    {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* ─── Layout ─────────────────────────────────────────────── */
.uz-app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ─── Header ─────────────────────────────────────────────── */
.uz-header {
  background: linear-gradient(180deg, var(--ink-2) 0%, rgba(7,16,31,0.85) 100%);
  border-bottom: 1px solid var(--line);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.uz-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 35%, var(--magenta) 65%, transparent);
  opacity: 0.5;
}

.uz-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.uz-logo {
  width: 36px;
  height: 40px;
  display: block;
  flex-shrink: 0;
}

.uz-brand h1 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  letter-spacing: 1.5px;
  line-height: 1;
  margin-bottom: 4px;
}

.uz-brand span {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  display: block;
}

.uz-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.uz-user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.uz-user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--magenta));
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
}

.uz-user-info { line-height: 1.15; }
.uz-user-name { font-size: 12px; font-weight: 500; color: #fff; }
.uz-user-role {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.uz-content { display: flex; flex: 1; }

/* ─── Sidebar ────────────────────────────────────────────── */
.uz-sidebar {
  width: 230px;
  background: rgba(7,16,31,0.4);
  border-right: 1px solid var(--line);
  padding: 18px 12px;
  flex-shrink: 0;
  overflow-y: auto;
  overflow-x: hidden;            /* nunca barra horizontal */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.uz-sidebar-section {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--mute-2);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 14px 14px 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.uz-sidebar-section::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.6;
}

.uz-main {
  flex: 1;
  padding: 28px;
  overflow-y: auto;
  min-width: 0;
}

/* ─── Botões de navegação ────────────────────────────────── */
.uz-nav-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: var(--text-2);
  cursor: pointer;
  border-radius: var(--radius);
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 2px;
  transition: background .15s, color .15s, transform .15s;
  position: relative;
}

.uz-nav-btn:hover {
  background: rgba(255,255,255,0.04);
  color: #fff;
}

.uz-nav-btn.active {
  background: var(--cyan-bg);
  color: var(--cyan-glow);
}

.uz-nav-btn.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 1px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.uz-nav-icon {
  font-size: 14px;
  width: 18px;
  text-align: center;
  opacity: 0.85;
}

.uz-nav-btn.active .uz-nav-icon { opacity: 1; }

/* ─── Botões genéricos ───────────────────────────────────── */
.uz-btn {
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all .15s;
  font-family: inherit;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.uz-btn:disabled { opacity: 0.45; cursor: not-allowed; }

.uz-btn-sm { padding: 6px 12px; font-size: 12px; }
.uz-btn-md { padding: 9px 16px; font-size: 13px; }
.uz-btn-lg { padding: 12px 22px; font-size: 14px; }

.uz-btn-primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--cyan-2) 100%);
  color: var(--ink);
  font-weight: 600;
}
.uz-btn-primary:hover:not(:disabled) {
  filter: brightness(1.1);
  box-shadow: var(--shadow-glow-cyan);
}

.uz-btn-success {
  background: var(--success);
  color: var(--ink);
  font-weight: 600;
}
.uz-btn-success:hover:not(:disabled) { filter: brightness(1.1); }

.uz-btn-danger {
  background: var(--danger);
  color: #fff;
  font-weight: 600;
}
.uz-btn-danger:hover:not(:disabled) { filter: brightness(1.05); }

.uz-btn-warn {
  background: var(--warn);
  color: var(--ink);
  font-weight: 600;
}

.uz-btn-ghost {
  background: rgba(255,255,255,0.04);
  color: var(--text-2);
  border-color: var(--line-2);
}
.uz-btn-ghost:hover:not(:disabled) {
  background: rgba(255,255,255,0.07);
  color: #fff;
  border-color: var(--line-3);
}

.uz-btn-magenta {
  background: linear-gradient(135deg, var(--magenta) 0%, var(--magenta-2) 100%);
  color: #fff;
  font-weight: 600;
}
.uz-btn-magenta:hover:not(:disabled) {
  filter: brightness(1.08);
  box-shadow: var(--shadow-glow-pink);
}

/* ─── Inputs ─────────────────────────────────────────────── */
.uz-input, .uz-select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 9px 14px;
  color: var(--text);
  font-size: 13px;
  outline: none;
  font-family: inherit;
  transition: border-color .15s, background .15s;
}

.uz-input:focus, .uz-select:focus {
  border-color: var(--cyan);
  background: rgba(79,211,255,0.04);
}

.uz-select { cursor: pointer; background: var(--ink-3); }
textarea.uz-input { resize: vertical; min-height: 80px; width: 100%; line-height: 1.4; }

/* ─── Cards ──────────────────────────────────────────────── */
.uz-card {
  background: var(--ink-2);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  position: relative;
}

/* Card com glow sutil cyan no canto (variante destaque) */
.uz-card-accent::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, var(--cyan) 0%, transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ─── Notificação (toast) ────────────────────────────────── */
/* ─── Notificações (toast com fila) ──────────────────────── */
.uz-notify-container {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column-reverse; /* novos toasts entram por cima */
  gap: 8px;
  align-items: flex-start;
  pointer-events: none;
  max-width: calc(100vw - 40px);
}

.uz-notification {
  pointer-events: auto;
  padding: 12px 18px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  animation: uz-notif-in .25s ease-out;
  box-shadow: var(--shadow-lg);
  color: #fff;
  border: 1px solid;
  backdrop-filter: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 220px;
  max-width: 420px;
  user-select: none;
}
.uz-notify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,0.10);
}
.uz-notify-msg {
  flex: 1;
  word-break: break-word;
  line-height: 1.4;
}

.uz-notification.uz-notify-out {
  animation: uz-notif-out .25s ease-in forwards;
}

.uz-notification.success { background: rgba(74,222,128,0.14);  border-color: rgba(74,222,128,0.40);  color: #BAF8C8; }
.uz-notification.error   { background: rgba(255,77,106,0.14);  border-color: rgba(255,77,106,0.45);  color: #FFD0D8; }
.uz-notification.warn    { background: rgba(255,200,87,0.14);  border-color: rgba(255,200,87,0.45);  color: #FFE8B5; }
.uz-notification.info    { background: rgba(79,211,255,0.12);  border-color: rgba(79,211,255,0.40);  color: var(--cyan-glow); }

@keyframes uz-notif-out {
  to { opacity: 0; transform: translateX(-20px); }
}

/* Compatibilidade com seletor antigo (algum código pode referenciar) */
.uz-notification.hidden { display: none; }

/* ─── Spinner ────────────────────────────────────────────── */
.uz-spinner {
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,255,255,0.1);
  border-top-color: var(--cyan);
  border-radius: 50%;
  animation: uz-spin .7s linear infinite;
  display: inline-block;
}

.uz-loading-center {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 240px;
  gap: 14px;
  color: var(--mute);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

/* ─── Login ──────────────────────────────────────────────── */
.uz-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
}

.uz-login-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 75% 30%, rgba(79,211,255,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 25% 75%, rgba(255,61,203,0.14), transparent 60%);
  pointer-events: none;
}

.uz-login-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px 40px 36px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.uz-login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 16px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 35%, var(--magenta) 65%, transparent);
}

.uz-login-logo {
  width: 64px;
  height: 72px;
  margin: 0 auto 20px;
  display: block;
}

.uz-login-card h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #fff;
  margin-bottom: 6px;
}

.uz-login-card .subtitle {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mute);
  text-transform: uppercase;
  letter-spacing: 0.20em;
  margin-bottom: 30px;
}

.uz-login-card .uz-input {
  width: 100%;
  text-align: left;
  margin-bottom: 12px;
  padding: 11px 14px;
  font-size: 13px;
}

.uz-login-card .uz-btn-primary {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  padding: 11px;
}

/* ─── Frame legado (fallback iframe) ─────────────────────── */
.uz-legacy-frame {
  width: 100%;
  height: calc(100vh - 80px);
  border: none;
  border-radius: var(--radius-lg);
  background: var(--ink-2);
}

/* ─── Mobile ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .uz-content { flex-direction: column; }
  .uz-sidebar { width: 100%; padding-bottom: 0; }
  .uz-main { padding: 18px; }
  .uz-header { padding: 12px 18px; }
}

/* ─── Utilitários ────────────────────────────────────────── */
.uz-w-full { width: 100%; }
.uz-mb-3 { margin-bottom: 12px; }
.uz-mb-4 { margin-bottom: 16px; }
.uz-text-muted { color: var(--text-2); }
.uz-text-small { font-size: 11px; color: var(--mute); }
.uz-text-mono  { font-family: var(--font-mono); }
.uz-flex-end { display: flex; justify-content: flex-end; gap: 8px; }
.uz-flex-row { display: flex; gap: 8px; align-items: center; }

.uz-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

/* Heading "técnico" estilo brand book */
.uz-page-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 4px;
  line-height: 1.1;
}

.uz-page-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.uz-page-eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--cyan);
}

.uz-page-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 24px;
  gap: 18px;
  flex-wrap: wrap;
}

/* Divisor cyan→magenta (linha fina elegante) */
.uz-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan) 35%, var(--magenta) 65%, transparent);
  opacity: 0.45;
  margin: 24px 0;
}

/* ============================================================
   SIDEBAR COLLAPSE — modo compacto (60px)
   ============================================================ */

/* Sidebar precisa virar flex column pro toggle ir pro rodapé */
.uz-sidebar {
  display: flex;
  flex-direction: column;
}

/* Toggle button discreto no RODAPÉ da sidebar.
   Estratégia: o botão é um bloco que ocupa a largura toda,
   sticky no fundo. O conteúdo (ícone) fica alinhado à direita
   via text-align/justify-content. Assim funciona mesmo com
   scroll interno na sidebar. */
.uz-sidebar-toggle {
  margin-top: auto;             /* empurra pro fim quando há espaço */
  position: sticky;
  bottom: 0;
  align-self: stretch;          /* bloco full-width pra sticky funcionar */
  display: flex;
  justify-content: flex-end;    /* ícone à direita */
  align-items: center;
  padding: 8px 6px;
  background: linear-gradient(to bottom, transparent, var(--ink) 30%);
  border: none;
  cursor: pointer;
  z-index: 2;
}
.uz-sidebar-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--mute);
  font-family: var(--font-display);
  font-size: 14px;
  line-height: 1;
  transition: color .15s, background .15s, border-color .15s, transform .25s;
}
.uz-sidebar-toggle:hover .uz-sidebar-toggle-icon {
  color: var(--cyan-glow);
  background: rgba(79,211,255,0.10);
  border-color: var(--cyan);
}

.uz-sidebar-toggle-icon {
  display: inline-flex;
  font-size: 14px;
  line-height: 1;
  transition: transform .25s;
}

/* === Estado COLAPSADO === */
.uz-sidebar-collapsed .uz-sidebar {
  width: 60px;
  padding: 18px 8px;
}
.uz-sidebar-collapsed .uz-sidebar-toggle {
  justify-content: center;
}
.uz-sidebar-collapsed .uz-sidebar-toggle-icon {
  transform: rotate(180deg);
}

/* Esconde os títulos de grupo no modo compacto, mas deixa um divisor */
.uz-sidebar-collapsed .uz-sidebar-section {
  padding: 8px 0;
  margin: 0;
  font-size: 0;
  letter-spacing: 0;
  height: 1px;
  background: var(--line);
  opacity: 0.4;
}
.uz-sidebar-collapsed .uz-sidebar-section::before { display: none; }

/* Itens viram só ícones centralizados, com tooltip nativo */
.uz-sidebar-collapsed .uz-nav-btn {
  padding: 10px 0;
  justify-content: center;
  position: relative;
}
.uz-sidebar-collapsed .uz-nav-label { display: none; }
.uz-sidebar-collapsed .uz-nav-icon {
  font-size: 16px;
  width: auto;
}

/* Indicador ativo (barra lateral cyan) ajusta pro modo compacto */
.uz-sidebar-collapsed .uz-nav-btn.active::before {
  left: -8px;
  top: 6px;
  bottom: 6px;
}

/* Tooltip customizado no hover dos itens compactos.
   Usa um elemento global #uz-sidebar-tooltip (criado via JS)
   posicionado com position: fixed pra escapar do overflow:hidden
   da sidebar. Veja shell.js → setupSidebarTooltips. */
.uz-sidebar-collapsed .uz-nav-btn::after {
  display: none;  /* desativa o ::after — usamos elemento JS */
}

#uz-sidebar-tooltip {
  position: fixed;
  z-index: 200;
  padding: 6px 12px;
  background: var(--ink-3);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  color: var(--text);
  font-size: 12px;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity .15s;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}
#uz-sidebar-tooltip.visible { opacity: 1; }

/* No mobile (<= 768px) o collapse não se aplica — sidebar continua full */
@media (max-width: 768px) {
  .uz-sidebar-collapsed .uz-sidebar {
    width: 100%;
    padding: 18px 12px;
  }
  .uz-sidebar-collapsed .uz-nav-label { display: inline; }
  .uz-sidebar-collapsed .uz-sidebar-section {
    height: auto;
    font-size: 9px;
    padding: 14px 14px 6px;
    background: transparent;
  }
  .uz-sidebar-collapsed .uz-sidebar-section::before { display: inline-block; }
  .uz-sidebar-collapsed .uz-nav-btn { justify-content: flex-start; padding: 10px 14px; }
  .uz-sidebar-collapsed .uz-nav-btn::after { display: none; }
  .uz-sidebar-collapsed .uz-sidebar-toggle { display: none; }
}

/* ============================================================
   Page card — usado por páginas dedicadas (Status / Permissões /
   Importar) que substituíram modais. Sem blur, sem overlay.
   ============================================================ */
.uz-page-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
  margin-top: 4px;
}
@media (max-width: 700px) {
  .uz-page-card { padding: 16px; }
}

/* ============================================================
   EMPTY STATES — para listas vazias com call-to-action
   ============================================================ */
.uz-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  background: rgba(255,255,255,0.025);
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  color: var(--mute);
}
.uz-empty-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(79,211,255,0.06);
  color: var(--cyan-glow);
  margin-bottom: 14px;
}
.uz-empty-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.uz-empty-text {
  font-size: 13px;
  color: var(--mute);
  margin-bottom: 16px;
  max-width: 380px;
  line-height: 1.5;
}
.uz-empty-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: var(--ink);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: filter .15s, box-shadow .15s;
}
.uz-empty-action:hover {
  filter: brightness(1.08);
  box-shadow: 0 0 16px rgba(79,211,255,0.25);
}

/* ============================================================
   SKELETON LOADERS — placeholders pulsantes durante carregamento
   ============================================================ */
.uz-skeleton {
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 25%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.04) 75%
  );
  background-size: 200% 100%;
  border-radius: 6px;
  animation: uz-skeleton-shimmer 1.4s ease-in-out infinite;
  display: inline-block;
}
.uz-skeleton-line { height: 14px; width: 100%; margin: 4px 0; }
.uz-skeleton-line.sm { height: 11px; width: 60%; }
.uz-skeleton-line.lg { height: 22px; width: 40%; }
.uz-skeleton-circle { width: 32px; height: 32px; border-radius: 50%; }
.uz-skeleton-card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 12px;
}

@keyframes uz-skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================================
   COPY BUTTON — botãozinho discreto pra copiar valores
   ============================================================ */
.uz-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 6px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--mute);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 12px;
  vertical-align: middle;
  transition: all .15s;
}
.uz-copy-btn:hover {
  color: var(--cyan-glow);
  border-color: var(--cyan);
  background: rgba(79,211,255,0.08);
}
.uz-copy-btn.copied {
  color: #4ADE80;
  border-color: rgba(74,222,128,0.4);
  background: rgba(74,222,128,0.1);
}

/* ============================================================
   Banner OFFLINE — aparece no topo quando perde conexão
   ============================================================ */
.uz-offline-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(255,200,87,0.18);
  border-bottom: 1px solid rgba(255,200,87,0.40);
  color: #FFE8B5;
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  transform: translateY(-100%);
  transition: transform .25s ease;
}
.uz-offline-banner.visible { transform: translateY(0); }
.uz-offline-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--warn); box-shadow: 0 0 8px var(--warn);
  animation: uz-pulse 1.5s ease-in-out infinite;
  flex-shrink: 0;
}

/* ============================================================
   STATUS — página de configuração (CRM)
   Layout 2 colunas: lista de status à esquerda, form à direita.
   Em telas estreitas vira 1 coluna empilhada.
   ============================================================ */
.uz-st-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 920px) {
  .uz-st-layout { grid-template-columns: 1fr; }
}

.uz-st-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--mute);
  margin-bottom: 14px;
}

/* ─── Lista de status ─── */
.uz-st-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.uz-st-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color .15s, background .15s;
}
.uz-st-card:hover {
  border-color: var(--line-2);
  background: rgba(255,255,255,0.04);
}
.uz-st-swatch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid;
  font-size: 16px;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.uz-st-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.uz-st-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.01em;
}
.uz-st-meta {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--mute);
  letter-spacing: 0.04em;
}
.uz-st-actions { display: flex; gap: 4px; }
.uz-st-btn-edit, .uz-st-btn-del {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--mute);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 13px;
  transition: all .15s;
}
.uz-st-btn-edit:hover {
  color: var(--cyan-glow);
  border-color: var(--cyan);
  background: rgba(79,211,255,0.08);
}
.uz-st-btn-del:hover {
  color: #FF6B7E;
  border-color: rgba(255,107,126,0.5);
  background: rgba(255,107,126,0.08);
}

.uz-st-empty {
  padding: 24px;
  text-align: center;
  color: var(--mute);
  font-size: 13px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--line);
  border-radius: 10px;
}

/* ─── Form de novo/editar status ─── */
.uz-st-form-col {
  position: sticky;
  top: 24px;
}
.uz-st-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.uz-st-field { display: flex; flex-direction: column; gap: 6px; }
.uz-st-field-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--mute);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.uz-st-input {
  padding: 10px 12px;
  background: rgba(0,0,0,0.25);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  transition: border-color .15s, background .15s;
}
.uz-st-input:focus {
  border-color: var(--cyan);
  background: rgba(0,0,0,0.4);
}

/* Pickers de cor e ícone */
.uz-st-swatches, .uz-st-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.uz-st-swatches .color-btn {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .1s, border-color .15s;
}
.uz-st-swatches .color-btn:hover { transform: scale(1.1); }
.uz-st-swatches .color-btn.selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.15);
}
.uz-st-icons .icon-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 14px;
  transition: all .15s;
}
.uz-st-icons .icon-btn:hover {
  border-color: var(--line-2);
  background: rgba(255,255,255,0.07);
}
.uz-st-icons .icon-btn.selected {
  background: var(--cyan-bg);
  border-color: var(--cyan);
  color: var(--cyan-glow);
}

/* Preview ao vivo */
.uz-st-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.uz-st-preview-label { margin-bottom: 0; }
.uz-st-preview-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid;
  border-radius: 8px;
  transition: background .15s, border-color .15s;
}
.uz-st-preview-icon {
  font-size: 16px;
  font-family: var(--font-display);
}
.uz-st-preview-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

/* Botões de ação do form */
.uz-st-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 4px;
}
.uz-st-btn-save, .uz-st-btn-cancel {
  padding: 9px 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid;
  transition: all .15s;
}
.uz-st-btn-save {
  background: linear-gradient(135deg, var(--cyan), var(--cyan-2));
  color: var(--ink);
  border-color: transparent;
}
.uz-st-btn-save:hover { filter: brightness(1.1); box-shadow: 0 0 14px rgba(79,211,255,0.25); }
.uz-st-btn-cancel {
  background: transparent;
  color: var(--mute);
  border-color: var(--line);
}
.uz-st-btn-cancel:hover {
  color: var(--text);
  border-color: var(--line-2);
  background: rgba(255,255,255,0.03);
}

/* ============================================================
   PACOTE 1 — Origem do cliente (ícone na coluna Nome)
   ============================================================ */
.uz-origem-ico {
  display: inline-block; margin-right: 8px;
  font-family: var(--font-display); font-size: 11px;
  line-height: 1; vertical-align: middle; cursor: help;
}
.uz-origem-ico.uz-origem-imp    { color: var(--cyan, #4FD3FF); }
.uz-origem-ico.uz-origem-manual { color: var(--magenta, #FF3DCB); font-size: 12px; }

/* ============================================================
   PACOTE 1 — Status: color picker nativo + presets
   ============================================================ */
.uz-st-color-row { display: flex; align-items: center; gap: 8px; }
.uz-st-color-picker {
  width: 44px; height: 36px; padding: 2px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0,0,0,0.25);
  cursor: pointer; flex-shrink: 0;
  -webkit-appearance: none; appearance: none;
}
.uz-st-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.uz-st-color-picker::-webkit-color-swatch { border: none; border-radius: 6px; }
.uz-st-color-picker::-moz-color-swatch { border: none; border-radius: 6px; }
.uz-st-color-hex {
  flex: 1; font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 8px 10px;
}
.uz-st-color-presets { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.uz-st-color-chip {
  width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer; padding: 0;
  transition: transform .1s, border-color .15s, box-shadow .15s;
}
.uz-st-color-chip:hover { transform: scale(1.12); }
.uz-st-color-chip.selected {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.18);
}
.uz-st-swatch .uz-st-swatch-dot {
  display: inline-block; width: 14px; height: 14px; border-radius: 50%;
}
.uz-st-preview-dot {
  display: inline-block; width: 12px; height: 12px;
  border-radius: 50%; flex-shrink: 0;
}

/* Pill de status na coluna esteira (substitui o select antigo) */
.uz-status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  font-family: inherit; font-size: 11px; font-weight: 500;
  cursor: pointer; transition: filter .15s, transform .1s;
  letter-spacing: 0.02em;
}
.uz-status-pill:hover { filter: brightness(1.18); transform: translateY(-1px); }

/* ============================================================
   PACOTE 2 — Grupos de status no modal
   ============================================================ */
.uz-grp-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 8px;
}
.uz-grp-create-btn {
  background: linear-gradient(135deg, var(--cyan, #4FD3FF), #36b8e8);
  color: var(--ink, #0a0a0c);
  border: none; border-radius: 8px; padding: 6px 12px;
  font-family: inherit; font-size: 11px; font-weight: 600;
  letter-spacing: 0.02em; cursor: pointer;
  transition: filter .15s, box-shadow .15s;
}
.uz-grp-create-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 14px rgba(79,211,255,0.3);
}
.uz-grp-list { display: flex; flex-direction: column; gap: 12px; }

.uz-grp-block {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.uz-grp-block.uz-grp-empty {
  background: rgba(107,114,128,0.04);
  border-style: dashed;
}
.uz-grp-block[draggable="true"] { cursor: move; }
.uz-grp-block.uz-grp-block-dragging {
  opacity: 0.4; transform: scale(0.98);
}
.uz-grp-block.uz-grp-block-over-top {
  border-top-color: var(--cyan, #4FD3FF);
  box-shadow: 0 -2px 0 0 var(--cyan, #4FD3FF);
}
.uz-grp-block.uz-grp-block-over-bottom {
  border-bottom-color: var(--cyan, #4FD3FF);
  box-shadow: 0 2px 0 0 var(--cyan, #4FD3FF);
}
.uz-grp-handle {
  display: inline-block;
  font-family: var(--font-mono); font-size: 14px;
  color: var(--mute); cursor: grab;
  padding: 0 2px; letter-spacing: -2px;
  user-select: none; flex-shrink: 0;
}
.uz-grp-handle:hover { color: var(--cyan, #4FD3FF); }
.uz-grp-handle:active { cursor: grabbing; }
.uz-grp-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}
.uz-grp-header-left {
  display: flex; align-items: center; gap: 10px; min-width: 0;
}
.uz-grp-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0;
}
.uz-grp-name {
  font-family: var(--font-display); font-size: 13px;
  font-weight: 500; color: var(--text, #F1F5F9);
  letter-spacing: -0.01em;
}
.uz-grp-count {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--mute);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: 0.04em;
}
.uz-grp-header-actions { display: flex; gap: 4px; flex-shrink: 0; }
.uz-grp-header-warn {
  font-family: var(--font-mono); font-size: 10px;
  color: #F59E0B; letter-spacing: 0.06em; flex-shrink: 0;
}
.uz-grp-btn {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: 6px; color: var(--mute); cursor: pointer;
  font-family: var(--font-display); font-size: 12px;
  transition: all .15s;
}
.uz-grp-btn:hover {
  color: var(--cyan-glow, #4FD3FF);
  border-color: var(--cyan, #4FD3FF);
  background: rgba(79,211,255,0.08);
}
.uz-grp-btn.uz-grp-btn-danger:hover {
  color: #FF6B7E;
  border-color: rgba(255,107,126,0.5);
  background: rgba(255,107,126,0.08);
}
.uz-grp-body {
  padding: 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.uz-grp-body .uz-st-card { padding: 8px 10px; }
.uz-grp-body .uz-st-swatch { width: 28px; height: 28px; }
.uz-grp-preview {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 1px solid;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border-color: var(--line-2);
}

/* ============================================================
   PACOTE 2 — Toggle ESTEIRA / KANBAN
   ============================================================ */
.uz-view-toggle {
  display: inline-flex;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  margin-bottom: 14px;
  gap: 2px;
}
.uz-view-btn {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute); background: transparent; border: none;
  padding: 7px 16px; border-radius: 7px; cursor: pointer;
  transition: all .15s;
}
.uz-view-btn:hover { color: var(--text, #F1F5F9); background: rgba(255,255,255,0.03); }
.uz-view-btn.active {
  background: linear-gradient(135deg, rgba(79,211,255,0.18), rgba(255,61,203,0.12));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(79,211,255,0.35);
}

/* ============================================================
   PACOTE 2 — Kanban
   ============================================================ */
.uz-kbn-toolbar {
  display: flex; flex-wrap: wrap; gap: 8px;
  align-items: center; margin-bottom: 14px;
}
.uz-kbn-pills {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px;
}
.uz-kbn-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  font-family: inherit; font-size: 12px;
  color: var(--text, #F1F5F9); cursor: pointer;
  transition: all .15s;
}
.uz-kbn-pill:hover { background: rgba(255,255,255,0.06); }
.uz-kbn-pill.active {
  border-color: var(--pill-color, var(--cyan, #4FD3FF));
  background: color-mix(in srgb, var(--pill-color, #4FD3FF) 12%, transparent);
}
.uz-kbn-pill-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }

.uz-kbn-board {
  display: flex; gap: 14px;
  overflow-x: auto; padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.uz-kbn-board::-webkit-scrollbar { height: 8px; }
.uz-kbn-board::-webkit-scrollbar-track { background: transparent; }
.uz-kbn-board::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 4px; }

.uz-kbn-col {
  flex: 0 0 280px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex; flex-direction: column;
  max-height: calc(100vh - 280px); min-height: 320px;
  transition: border-color .15s, background .15s;
}
.uz-kbn-col.uz-kbn-col-over {
  border-color: var(--col-color, var(--cyan, #4FD3FF));
  background: color-mix(in srgb, var(--col-color, #4FD3FF) 6%, rgba(255,255,255,0.02));
}
.uz-kbn-col-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--col-color, #4FD3FF) 8%, transparent), transparent);
  border-top-left-radius: 12px; border-top-right-radius: 12px;
}
.uz-kbn-col-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.uz-kbn-col-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.uz-kbn-col-name {
  font-family: var(--font-display); font-size: 13px;
  font-weight: 500; color: #fff; letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uz-kbn-col-count {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--mute); background: rgba(255,255,255,0.06);
  padding: 2px 8px; border-radius: 999px;
  letter-spacing: 0.04em; flex-shrink: 0;
}
.uz-kbn-col-body {
  flex: 1; overflow-y: auto; padding: 10px;
  display: flex; flex-direction: column; gap: 8px;
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
.uz-kbn-col-body::-webkit-scrollbar { width: 6px; }
.uz-kbn-col-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.uz-kbn-empty {
  text-align: center; font-size: 11px;
  color: var(--mute); padding: 20px 8px;
  font-family: var(--font-mono); letter-spacing: 0.04em;
}

.uz-kbn-card {
  background: rgba(255,255,255,0.035);
  border: 1px solid var(--line);
  border-radius: 9px; padding: 10px 11px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s, transform .1s, background .15s;
  user-select: none;
}
.uz-kbn-card:hover { border-color: var(--line-2); background: rgba(255,255,255,0.055); }
.uz-kbn-card[draggable="true"] { cursor: grab; }
.uz-kbn-card:active { cursor: grabbing; }
.uz-kbn-card.uz-kbn-card-dragging { opacity: 0.4; transform: scale(0.97); }
.uz-kbn-card-top {
  display: flex; align-items: flex-start;
  justify-content: space-between; gap: 6px;
}
.uz-kbn-card-name {
  font-size: 12.5px; font-weight: 500;
  color: #F1F5F9; letter-spacing: -0.01em; line-height: 1.3;
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis;
  display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical;
}
.uz-kbn-card-status {
  font-size: 9px; font-family: var(--font-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px;
  border: 1px solid; font-weight: 500;
  flex-shrink: 0; white-space: nowrap;
  max-width: 90px; overflow: hidden; text-overflow: ellipsis;
}
.uz-kbn-card-cpf {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--mute); letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 6px;
}
.uz-kbn-card-imp {
  font-size: 9px;
  background: rgba(245,158,11,0.15);
  color: #F59E0B;
  padding: 1px 5px; border-radius: 3px;
  border: 1px solid rgba(245,158,11,0.25);
  font-weight: 600;
}
.uz-kbn-card-tel {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--text-2, #94A3B8); letter-spacing: 0.02em;
}
.uz-kbn-card-bottom {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 4px; padding-top: 6px;
  border-top: 1px dashed rgba(255,255,255,0.06);
  font-size: 11px;
}
.uz-kbn-card-valor { color: #10B981; font-weight: 600; font-size: 11.5px; }
.uz-kbn-card-valor-empty { color: rgba(255,255,255,0.18); }
.uz-kbn-card-vendor {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--cyan, #4FD3FF); letter-spacing: 0.04em;
  background: rgba(79,211,255,0.08);
  padding: 1px 7px; border-radius: 4px;
}

.uz-kbn-pager {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.015);
  border-bottom-left-radius: 12px; border-bottom-right-radius: 12px;
}
.uz-kbn-pg-btn {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 6px; color: var(--text); cursor: pointer;
  font-family: var(--font-display); font-size: 13px;
  transition: all .15s;
}
.uz-kbn-pg-btn:hover:not(:disabled) {
  border-color: var(--cyan, #4FD3FF);
  color: var(--cyan, #4FD3FF);
  background: rgba(79,211,255,0.08);
}
.uz-kbn-pg-btn:disabled { opacity: 0.3; cursor: not-allowed; }
.uz-kbn-pg-info {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--mute); letter-spacing: 0.06em;
}

.uz-kbn-no-groups {
  text-align: center; padding: 60px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
.uz-kbn-no-groups-icon {
  font-size: 32px; color: var(--cyan, #4FD3FF);
  opacity: 0.5; margin-bottom: 12px;
  font-family: var(--font-display);
}
.uz-kbn-no-groups-title {
  font-family: var(--font-display);
  font-size: 16px; color: #fff; margin-bottom: 8px;
}
.uz-kbn-no-groups-text {
  font-size: 12.5px; color: var(--mute); margin-bottom: 18px;
}

/* ============================================================
   PACOTE 3 — Modal de troca de status
   ============================================================ */
.uz-sc-client {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 14px 16px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 14px;
}
.uz-sc-client-name {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 500;
  color: #F1F5F9; letter-spacing: -0.01em;
  flex: 1; min-width: 0;
}
.uz-sc-client-cpf {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--mute); letter-spacing: 0.04em;
}
.uz-sc-client-status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid; font-size: 12px; font-weight: 500;
}
.uz-sc-tl-pill-dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%;
}
.uz-sc-grp-hint {
  background: rgba(79,211,255,0.05);
  border: 1px solid rgba(79,211,255,0.15);
  border-radius: 8px;
  padding: 8px 12px; font-size: 12px;
  color: var(--text-2); margin-bottom: 14px;
}
.uz-sc-section { margin-bottom: 16px; }
.uz-sc-section-label {
  font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--mute); font-weight: 500;
  margin-bottom: 8px;
  display: flex; align-items: center; gap: 8px;
}
.uz-sc-section-hint {
  font-size: 9px;
  color: rgba(255,255,255,0.3);
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0.04em;
}
.uz-sc-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 6px;
}
.uz-sc-opt {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit; font-size: 12.5px;
  color: var(--text, #F1F5F9);
  cursor: pointer; text-align: left;
  transition: all .15s;
  position: relative;
}
.uz-sc-opt:hover:not(:disabled):not(.current) {
  border-color: var(--st-color, var(--cyan, #4FD3FF));
  background: color-mix(in srgb, var(--st-color, #4FD3FF) 7%, transparent);
  transform: translateY(-1px);
}
.uz-sc-opt.selected {
  border-color: var(--st-color, var(--cyan, #4FD3FF));
  background: color-mix(in srgb, var(--st-color, #4FD3FF) 14%, transparent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--st-color, #4FD3FF) 25%, transparent);
}
.uz-sc-opt.current { opacity: 0.5; cursor: not-allowed; }
.uz-sc-opt-dot {
  display: inline-block; width: 10px; height: 10px;
  border-radius: 50%; flex-shrink: 0;
  box-shadow: 0 0 6px currentColor;
}
.uz-sc-opt-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.uz-sc-opt-tag {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--mute);
  padding: 1px 6px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
}
.uz-sc-timeline {
  background: rgba(0,0,0,0.18);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  max-height: 220px; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.uz-sc-timeline::-webkit-scrollbar { width: 6px; }
.uz-sc-timeline::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.uz-sc-tl-loading, .uz-sc-tl-empty {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 18px 12px;
  font-size: 12px; color: var(--mute);
  font-family: var(--font-mono); letter-spacing: 0.04em;
}
.uz-sc-tl-item {
  display: flex; gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
}
.uz-sc-tl-item:last-child { border-bottom: none; }
.uz-sc-tl-dot {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 6px; flex-shrink: 0;
  box-shadow: 0 0 4px currentColor;
}
.uz-sc-tl-body { flex: 1; min-width: 0; }
.uz-sc-tl-head {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-bottom: 4px;
}
.uz-sc-tl-pill {
  display: inline-flex; align-items: center;
  font-size: 10px; font-family: var(--font-mono);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 4px;
  border: 1px solid; font-weight: 500;
}
.uz-sc-tl-arrow { font-size: 11px; color: var(--mute); }
.uz-sc-tl-note {
  font-size: 12px; color: var(--text, #F1F5F9);
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--line-2);
  padding: 6px 10px; border-radius: 4px;
  margin: 4px 0; white-space: pre-wrap;
}
.uz-sc-tl-meta {
  font-size: 10px; font-family: var(--font-mono);
  color: var(--mute); letter-spacing: 0.04em;
}

/* ============================================================
   PACOTE 3-B — POPOVER DE FILTROS
   ============================================================ */
/* Botão que abre o popover — agora com glow neon, igual o resto do sistema */
.uz-pop-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(79,211,255,0.06), rgba(255,61,203,0.04));
  border: 1px solid rgba(79,211,255,0.18);
  border-radius: 8px;
  font-family: inherit; font-size: 11.5px;
  color: var(--text, #F1F5F9);
  cursor: pointer;
  transition: all .18s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
}
.uz-pop-trigger:hover {
  border-color: rgba(79,211,255,0.4);
  background: linear-gradient(135deg, rgba(79,211,255,0.12), rgba(255,61,203,0.06));
  box-shadow: 0 0 12px rgba(79,211,255,0.18);
  color: #fff;
}
.uz-pop-trigger.active {
  border-color: var(--cyan, #4FD3FF);
  background: linear-gradient(135deg, rgba(79,211,255,0.16), rgba(255,61,203,0.08));
  color: #fff;
  box-shadow: 0 0 14px rgba(79,211,255,0.25);
}
.uz-pop-trigger-ico {
  font-size: 9px; color: var(--cyan, #4FD3FF);
  font-family: var(--font-display);
  text-shadow: 0 0 6px rgba(79,211,255,0.6);
  transition: transform .2s;
}
.uz-pop-trigger.active .uz-pop-trigger-ico {
  transform: rotate(180deg);
}
.uz-pop-trigger-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 16px;
  padding: 0 5px;
  background: var(--cyan, #4FD3FF);
  color: #0a0a0c;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
  margin-left: 4px;
  box-shadow: 0 0 8px rgba(79,211,255,0.4);
}

/* Wrapper pra ancorar o popover embaixo do botão Filtros */
.uz-pop-anchor {
  position: relative;
  display: inline-block;
}

/* Overlay invisível pra capturar click fora (sem escurecer) */
.uz-pop-overlay {
  position: fixed; inset: 0;
  z-index: 99;
  background: transparent;
}

/* Popover — alinhado visualmente com os cards do dashboard
   (mesmo background, border, radius, mas com glow neon sutil) */
.uz-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  width: 340px;
  max-height: 480px;
  /* Mesmo background dos uz-dash-card pra coesão visual */
  background: #14161c;
  border: 1px solid rgba(79,211,255,0.22);
  border-radius: 12px;
  box-shadow:
    0 16px 40px rgba(0,0,0,0.5),
    0 0 28px rgba(79,211,255,0.06),
    inset 0 1px 0 rgba(255,255,255,0.04);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: uz-pop-in .16s cubic-bezier(0.4, 0, 0.2, 1);
}
/* Setinha apontando pro botão (igual o popover de detalhes do cliente) */
.uz-pop::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 18px;
  width: 9px; height: 9px;
  background: #14161c;
  border-left: 1px solid rgba(79,211,255,0.22);
  border-top: 1px solid rgba(79,211,255,0.22);
  transform: rotate(45deg);
}
@keyframes uz-pop-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Header (eyebrow "FILTROS") */
.uz-pop-header {
  padding: 12px 14px 0;
}
.uz-pop-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}

/* Abas */
.uz-pop-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  margin-top: 8px;
}
.uz-pop-tab {
  flex: 1;
  background: transparent; border: none;
  padding: 8px 10px;
  font-family: inherit; font-size: 12px;
  color: var(--mute);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.uz-pop-tab:hover { color: var(--text); background: rgba(255,255,255,0.025); }
.uz-pop-tab.active {
  color: #fff;
  border-bottom-color: var(--cyan, #4FD3FF);
  background: rgba(79,211,255,0.05);
}
.uz-pop-tab-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; height: 14px;
  padding: 0 5px;
  background: rgba(79,211,255,0.18);
  color: var(--cyan, #4FD3FF);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 9px; font-weight: 700;
}

/* Busca */
.uz-pop-search {
  padding: 10px 12px 6px;
}
.uz-pop-search input {
  width: 100%;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  padding: 7px 11px;
  font-family: inherit; font-size: 12px;
  color: var(--text, #F1F5F9);
  outline: none;
  transition: border-color .15s, background .15s;
}
.uz-pop-search input:focus {
  border-color: rgba(79,211,255,0.5);
  background: rgba(79,211,255,0.04);
}
.uz-pop-search input::placeholder {
  color: rgba(255,255,255,0.28);
}

/* Quick actions Todos/Limpar */
.uz-pop-quick-actions {
  display: flex; gap: 14px;
  padding: 4px 14px 8px;
  border-bottom: 1px dashed rgba(255,255,255,0.04);
}
.uz-pop-quick-btn {
  background: transparent; border: none;
  font-family: inherit; font-size: 11px;
  color: var(--cyan, #4FD3FF);
  padding: 2px 0;
  cursor: pointer;
  letter-spacing: 0.02em;
  font-weight: 500;
}
.uz-pop-quick-btn:hover { color: #fff; text-decoration: underline; }

/* Lista de itens */
.uz-pop-list {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0;
  min-height: 80px;
  max-height: 280px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.uz-pop-list::-webkit-scrollbar { width: 5px; }
.uz-pop-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.uz-pop-item {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text, #F1F5F9);
  transition: background .14s, border-left-color .14s;
  border-left: 2px solid transparent;
}
.uz-pop-item:hover {
  background: rgba(79,211,255,0.05);
  border-left-color: rgba(79,211,255,0.35);
}
.uz-pop-item.selected {
  background: linear-gradient(90deg, rgba(79,211,255,0.10), rgba(79,211,255,0.02));
  border-left-color: var(--cyan, #4FD3FF);
}
.uz-pop-item-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; flex-shrink: 0;
}
.uz-pop-item-label {
  flex: 1;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* Radio fake pra filtros únicos (origem/imports) */
.uz-pop-radio {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  background: transparent;
  flex-shrink: 0;
  position: relative;
  transition: all .15s;
}
.uz-pop-radio.checked { border-color: var(--cyan, #4FD3FF); }
.uz-pop-radio.checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan, #4FD3FF);
  box-shadow: 0 0 4px var(--cyan, #4FD3FF);
}

.uz-pop-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 11.5px;
  color: var(--mute);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  line-height: 1.6;
}

/* ─── Cards de combinação favorita (aba ★ Favoritos) ─────── */
.uz-fav-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin: 4px 8px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-left: 3px solid var(--cyan, #4FD3FF);
  border-radius: 8px;
  cursor: pointer;
  transition: all .15s;
}
.uz-fav-card:hover {
  background: rgba(79,211,255,0.06);
  border-color: rgba(79,211,255,0.25);
  border-left-color: var(--cyan, #4FD3FF);
  transform: translateX(2px);
}
.uz-fav-card-info {
  flex: 1;
  min-width: 0;
}
.uz-fav-card-name {
  font-size: 13px;
  font-weight: 600;
  color: #F1F5F9;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uz-fav-card-summary {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--mute);
  letter-spacing: 0.04em;
  line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uz-fav-card-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.uz-fav-btn {
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  color: var(--mute);
  cursor: pointer;
  font-size: 12px;
  transition: all .15s;
  font-family: var(--font-mono);
}
.uz-fav-btn:hover {
  color: var(--cyan, #4FD3FF);
  border-color: rgba(79,211,255,0.4);
  background: rgba(79,211,255,0.08);
}
.uz-fav-btn-del:hover {
  color: #FF6B7E;
  border-color: rgba(255,107,126,0.4);
  background: rgba(255,107,126,0.08);
}

/* Rodapé com [Salvar atual] [...] [Cancelar] [Aplicar] */
.uz-pop-actions {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid rgba(79,211,255,0.10);
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.18));
}
.uz-pop-actions-spacer {
  flex: 1;
}

/* Botão "💾 Salvar atual" no rodapé */
.uz-pop-fav-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(251,191,36,0.10), rgba(251,191,36,0.04));
  border: 1px solid rgba(251,191,36,0.28);
  color: #FBBF24;
  padding: 5px 11px;
  border-radius: 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s;
  letter-spacing: 0.01em;
}
.uz-pop-fav-save:hover:not(.disabled) {
  border-color: rgba(251,191,36,0.55);
  background: linear-gradient(135deg, rgba(251,191,36,0.18), rgba(251,191,36,0.08));
  color: #FCD34D;
  box-shadow: 0 0 10px rgba(251,191,36,0.18);
}
.uz-pop-fav-save.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.uz-pop-fav-save-ico {
  font-size: 12px;
  line-height: 1;
  text-shadow: 0 0 6px rgba(251,191,36,0.5);
}

/* ============================================================
   PACOTE 3-B v2 — Chips + dropdown CAMPO no popover
   ============================================================ */

/* ─── Chips de filtros ativos (fica abaixo da barra) ──────── */
.uz-chips-wrap {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px;
  margin-left: 4px;
}
.uz-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 4px 3px 8px;
  background: rgba(79,211,255,0.10);
  border: 1px solid rgba(79,211,255,0.28);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text, #F1F5F9);
  font-family: inherit;
  letter-spacing: 0.01em;
  transition: background .15s, border-color .15s;
}
.uz-chip:hover { background: rgba(79,211,255,0.16); }
.uz-chip-count {
  font-family: var(--font-mono);
  font-weight: 700; font-size: 10px;
  color: var(--cyan, #4FD3FF);
  letter-spacing: 0.04em;
}
.uz-chip-label { font-weight: 500; }
.uz-chip-close {
  background: transparent;
  border: none;
  color: var(--mute, #94A3B8);
  cursor: pointer;
  padding: 0 4px;
  font-size: 14px;
  line-height: 1;
  border-radius: 4px;
  transition: color .15s, background .15s;
}
.uz-chip-close:hover {
  color: #FF6B7E;
  background: rgba(255,107,126,0.12);
}

/* ─── Dropdown de CAMPO dentro do popover ─────────────────── */
.uz-pop-field-row {
  display: flex; flex-direction: column; gap: 4px;
  padding: 8px 12px 8px;
  border-bottom: 1px solid var(--line);
}
.uz-pop-field-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.uz-pop-field-select {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12.5px;
  color: var(--text, #F1F5F9);
  cursor: pointer;
  outline: none;
  transition: border-color .15s, background .15s;

  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 5l3 3 3-3' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 28px;
}
.uz-pop-field-select:focus {
  border-color: var(--cyan, #4FD3FF);
  background: rgba(255,255,255,0.06);
}
.uz-pop-field-select option {
  background: #1a1d23;
  color: var(--text, #F1F5F9);
}

/* ============================================================
   DASHBOARD PRO — visão geral premium
   ============================================================ */
.uz-dash-root {
  --dash-card-bg: rgba(255,255,255,0.025);
  --dash-card-border: rgba(255,255,255,0.06);
  --dash-card-border-strong: rgba(255,255,255,0.10);
}

/* ─── Filtros globais (cabeçalho) ─────────────────────────── */
.uz-dash-filters {
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.uz-dash-filter-group {
  display: inline-flex;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--dash-card-border);
  border-radius: 8px;
  padding: 2px;
  gap: 0;
}
.uz-dash-period-btn {
  background: transparent; border: none;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--mute);
  cursor: pointer;
  border-radius: 6px;
  transition: all .15s;
}
.uz-dash-period-btn:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.uz-dash-period-btn.active {
  background: rgba(79,211,255,0.14);
  color: #4FD3FF;
}
.uz-dash-select {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--dash-card-border);
  border-radius: 8px;
  padding: 6px 28px 6px 12px;
  font-size: 12px;
  color: var(--text, #F1F5F9);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M3 5l3 3 3-3' stroke='%2394a3b8' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color .15s;
}
.uz-dash-select:hover { border-color: var(--dash-card-border-strong); }
.uz-dash-select option { background: #1a1d23; color: var(--text); }

/* ─── Insight bar (frase-resumo da operação) ──────────────── */
.uz-dash-insight-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  margin-bottom: 14px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--ins-color) 8%, transparent), transparent 65%),
    var(--dash-card-bg);
  border: 1px solid var(--dash-card-border);
  border-left: 3px solid var(--ins-color);
  border-radius: 10px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--ins-color) 6%, transparent);
  position: relative;
  overflow: hidden;
}
/* Linha decorativa horizontal sutil pra reforçar a vibe cyberpunk */
.uz-dash-insight-bar::after {
  content: '';
  position: absolute;
  bottom: 0; left: 14px; right: 0;
  height: 1px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--ins-color) 35%, transparent), transparent 60%);
}
.uz-dash-insight-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ins-color) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--ins-color) 40%, transparent);
  color: var(--ins-color);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 0 10px color-mix(in srgb, var(--ins-color) 30%, transparent);
}
.uz-dash-insight-text {
  font-size: 13px;
  line-height: 1.45;
  color: var(--text, #F1F5F9);
  letter-spacing: 0.005em;
}
.uz-dash-insight-text b {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ─── Alertas inteligentes (lista) ────────────────────────── */
.uz-dash-alerts {
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-card-border);
  border-radius: 10px;
  margin-bottom: 20px;
  overflow: hidden;
}
.uz-dash-alerts-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px dashed rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.015);
}
.uz-dash-alerts-title {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.uz-dash-alerts-count {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--mute);
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.04);
  padding: 2px 8px;
  border-radius: 999px;
}
.uz-dash-alerts-list {
  display: flex; flex-direction: column;
}
.uz-dash-alert-row {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 14px;
  border-left: 2px solid var(--alert-color);
  border-bottom: 1px dashed rgba(255,255,255,0.04);
  background: linear-gradient(90deg, color-mix(in srgb, var(--alert-color) 5%, transparent), transparent 60%);
  transition: background .12s;
}
.uz-dash-alert-row:last-child { border-bottom: none; }
.uz-dash-alert-row:hover {
  background: linear-gradient(90deg, color-mix(in srgb, var(--alert-color) 9%, transparent), transparent 70%);
}
.uz-dash-alert-ico {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--alert-color) 18%, transparent);
  color: var(--alert-color);
  font-size: 11px; font-weight: 700;
  flex-shrink: 0;
}
.uz-dash-alert-text {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text, #F1F5F9);
}
.uz-dash-alert-text b {
  color: #fff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.uz-dash-alerts-clean {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
}

/* ─── Hero metrics (4 cards grandes no topo) ─────────────── */
.uz-dash-hero {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}
@media (max-width: 1100px) {
  .uz-dash-hero { grid-template-columns: repeat(2, 1fr); }
}
.uz-dash-card {
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-card-border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, transform .1s;
  position: relative;
}
.uz-dash-card:hover { border-color: var(--dash-card-border-strong); }
.uz-dash-card-action { cursor: pointer; }
.uz-dash-card-action:hover {
  border-color: rgba(239,68,68,0.4);
  transform: translateY(-1px);
}
.uz-dash-card-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mute);
  font-weight: 500;
}
.uz-dash-card-value {
  font-family: var(--font-display, var(--font-mono));
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #F1F5F9;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.uz-dash-pct {
  font-size: 14px;
  font-weight: 500;
  margin-left: 1px;
  opacity: 0.7;
}
.uz-dash-card-spark {
  margin: 2px 0;
}
.uz-dash-card-foot {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.04em;
}

/* ─── Grid principal de painéis ───────────────────────────── */
.uz-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.uz-dash-grid-bottom { grid-template-columns: 1fr 1.6fr; }
@media (max-width: 1100px) {
  .uz-dash-grid, .uz-dash-grid-bottom { grid-template-columns: 1fr; }
}

.uz-dash-panel {
  background: var(--dash-card-bg);
  border: 1px solid var(--dash-card-border);
  border-radius: 10px;
  padding: 16px;
}
.uz-dash-panel-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dashed rgba(255,255,255,0.04);
}
.uz-dash-panel-header h3 {
  font-size: 13px; font-weight: 600;
  color: #F1F5F9; margin: 0;
  letter-spacing: -0.01em;
}
.uz-dash-panel-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.06em;
}

/* ─── Funil ───────────────────────────────────────────────── */
.uz-dash-funnel {
  display: flex; flex-direction: column; gap: 10px;
}
.uz-dash-funnel-row {
  display: grid;
  grid-template-columns: 130px 1fr 70px;
  align-items: center;
  gap: 10px;
}
.uz-dash-funnel-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px;
  color: var(--text);
  min-width: 0;
}
.uz-dash-funnel-label > span:last-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.uz-dash-funnel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}
.uz-dash-funnel-bar-wrap {
  height: 22px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.uz-dash-funnel-bar {
  height: 100%;
  border-radius: 4px;
  transition: width .4s cubic-bezier(0.4, 0, 0.2, 1);
}
.uz-dash-funnel-num {
  text-align: right;
  font-family: var(--font-mono);
  font-size: 13px;
  display: flex; align-items: baseline; justify-content: flex-end; gap: 6px;
}
.uz-dash-funnel-num b {
  color: #F1F5F9; font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.uz-dash-funnel-pct {
  font-size: 10px; color: var(--mute);
  letter-spacing: 0.04em;
}

/* ─── Ranking ─────────────────────────────────────────────── */
.uz-dash-rank {
  display: flex; flex-direction: column; gap: 6px;
}
.uz-dash-rank-row {
  display: grid;
  grid-template-columns: 28px 32px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 4px;
  border-radius: 6px;
  transition: background .12s;
}
.uz-dash-rank-row:hover { background: rgba(255,255,255,0.02); }
.uz-dash-rank-pos {
  font-size: 16px;
  text-align: center;
}
.uz-dash-rank-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.uz-dash-rank-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(79,211,255,0.2), rgba(255,61,203,0.15));
  border: 1px solid rgba(79,211,255,0.25);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.uz-dash-rank-info { min-width: 0; }
.uz-dash-rank-name {
  font-size: 13px;
  color: #F1F5F9;
  font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: -0.01em;
}
.uz-dash-rank-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.02em;
  display: flex; gap: 6px; align-items: center;
}
.uz-dash-rank-sub {
  opacity: 0.6;
  font-size: 9px;
  margin-left: 2px;
}
.uz-dash-rank-sep { opacity: 0.3; }
.uz-dash-rank-conv {
  font-family: var(--font-display, var(--font-mono));
  font-size: 18px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.uz-dash-rank-conv-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--mute);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-top: -2px;
}

/* ─── Donut origem ────────────────────────────────────────── */
.uz-dash-donut-wrap {
  display: flex; align-items: center; gap: 16px;
}
.uz-dash-donut-legend {
  flex: 1;
  display: flex; flex-direction: column; gap: 8px;
}
.uz-dash-donut-row {
  display: grid;
  grid-template-columns: 8px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
  border-bottom: 1px dashed rgba(255,255,255,0.04);
}
.uz-dash-donut-row:last-child { border-bottom: none; }
.uz-dash-donut-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.uz-dash-donut-label {
  font-size: 12px; color: var(--text);
}
.uz-dash-donut-num {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  color: #F1F5F9;
  font-variant-numeric: tabular-nums;
}
.uz-dash-donut-conv {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #10B981;
  font-weight: 600;
  background: rgba(16,185,129,0.08);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  min-width: 38px;
  text-align: center;
}

/* ─── Atividade recente ───────────────────────────────────── */
.uz-dash-activity {
  display: flex; flex-direction: column;
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.uz-dash-activity::-webkit-scrollbar { width: 5px; }
.uz-dash-activity::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }
.uz-dash-activity-row {
  display: flex; gap: 10px;
  padding: 8px 4px;
  border-bottom: 1px dashed rgba(255,255,255,0.04);
}
.uz-dash-activity-row:last-child { border-bottom: none; }
.uz-dash-activity-dot {
  width: 7px; height: 7px; border-radius: 50%;
  margin-top: 6px; flex-shrink: 0;
}
.uz-dash-activity-body { flex: 1; min-width: 0; }
.uz-dash-activity-line {
  font-size: 12px;
  color: var(--text);
  display: flex; gap: 5px; flex-wrap: wrap;
  align-items: baseline;
}
.uz-dash-activity-line b {
  color: #4FD3FF;
  font-weight: 600;
}
.uz-dash-activity-mute { color: var(--mute); font-size: 11px; }
.uz-dash-activity-client { color: #F1F5F9; font-weight: 500; }
.uz-dash-activity-trans {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  margin-top: 2px;
  display: flex; gap: 6px; align-items: center; flex-wrap: wrap;
}
.uz-dash-activity-arrow { color: var(--mute); }
.uz-dash-activity-when {
  margin-left: auto;
  color: var(--mute);
  font-size: 9px;
}

.uz-dash-empty {
  text-align: center;
  padding: 30px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: 0.04em;
}

/* ============================================================
   AUTO-REFRESH — bolinha indicadora no canto inferior direito
   ============================================================ */
.uz-refresh-dot {
  position: fixed;
  bottom: 14px; right: 16px;
  z-index: 95;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
  user-select: none;
  font-family: var(--font-mono);
}
.uz-refresh-dot-circle {
  width: 8px; height: 8px;
  border-radius: 50%;
  display: inline-block;
  transition: background-color .25s, box-shadow .25s, transform .15s;
  position: relative;
}

/* Estados */
.uz-refresh-idle .uz-refresh-dot-circle {
  background: #10B981;
  box-shadow: 0 0 6px rgba(16,185,129,0.55);
}
.uz-refresh-syncing .uz-refresh-dot-circle {
  background: #FBBF24;
  box-shadow: 0 0 8px rgba(251,191,36,0.7);
  animation: uz-refresh-spin 0.9s linear infinite;
}
.uz-refresh-error .uz-refresh-dot-circle {
  background: #EF4444;
  box-shadow: 0 0 8px rgba(239,68,68,0.6);
  animation: uz-refresh-blink 1.4s ease-in-out infinite;
}

/* Pulso curto após cada sync bem-sucedido */
.uz-refresh-pulse .uz-refresh-dot-circle::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 2px solid #10B981;
  opacity: 0;
  animation: uz-refresh-pulse 0.6s ease-out;
}

@keyframes uz-refresh-spin {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.25); opacity: 1; }
}
@keyframes uz-refresh-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
@keyframes uz-refresh-pulse {
  0%   { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Tooltip — aparece no hover */
.uz-refresh-dot-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  background: rgba(20,22,28,0.96);
  border: 1px solid rgba(79,211,255,0.2);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #F1F5F9;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity .15s, transform .15s;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.uz-refresh-dot:hover .uz-refresh-dot-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* Em erro: o tooltip fica permanentemente visível pra avisar */
.uz-refresh-error .uz-refresh-dot-tooltip {
  opacity: 1;
  transform: translateY(0);
  border-color: rgba(239,68,68,0.4);
  color: #FCA5A5;
}

/* ============================================================
   PRE-LAUNCH POLISH — error boundary, loading, btn spinner
   ============================================================ */

/* ─── Error boundary (substitui tela branca em caso de erro) ── */
.uz-error-boundary {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 40px 20px;
  animation: uz-slide-up .25s;
}
.uz-error-icon {
  font-size: 48px;
  color: #F59E0B;
  margin-bottom: 14px;
  opacity: 0.85;
  text-shadow: 0 0 20px rgba(245,158,11,0.4);
}
.uz-error-title {
  font-family: var(--font-display, var(--font-mono));
  font-size: 18px;
  font-weight: 600;
  color: #F1F5F9;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.uz-error-text {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--mute);
  background: rgba(255,107,126,0.06);
  border: 1px solid rgba(255,107,126,0.18);
  padding: 8px 14px;
  border-radius: 6px;
  margin-bottom: 20px;
  max-width: 540px;
  word-break: break-word;
  letter-spacing: 0.04em;
}
.uz-error-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
}
.uz-error-hint {
  font-size: 11px;
  color: var(--mute);
  max-width: 420px;
  line-height: 1.5;
}

/* ─── Loading screen (entre login e primeiro render) ────────── */
.uz-loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 40px;
  animation: uz-slide-up .2s;
}
.uz-loading-spinner {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(79,211,255,0.18);
  border-top-color: var(--cyan, #4FD3FF);
  border-radius: 50%;
  animation: uz-loading-spin 0.8s linear infinite;
  margin-bottom: 18px;
  box-shadow: 0 0 18px rgba(79,211,255,0.18);
}
@keyframes uz-loading-spin {
  to { transform: rotate(360deg); }
}
.uz-loading-text {
  font-family: var(--font-display, var(--font-mono));
  font-size: 14px;
  color: #F1F5F9;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.uz-loading-hint {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--mute);
  letter-spacing: 0.06em;
}

/* ─── Mini spinner pra botões ocupados ─────────────────────── */
.uz-btn-spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: uz-loading-spin 0.7s linear infinite;
  vertical-align: -2px;
}

/* ============================================================
   STATUS GROUPS — checkbox descartado + badge
   ============================================================ */
.uz-st-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.uz-st-checkbox-row:hover {
  background: rgba(79,211,255,0.04);
  border-color: rgba(79,211,255,0.18);
}
.uz-st-checkbox {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--cyan, #4FD3FF);
  cursor: pointer;
}
.uz-st-checkbox-title {
  font-size: 13px;
  font-weight: 600;
  color: #F1F5F9;
  margin-bottom: 3px;
  letter-spacing: -0.01em;
}
.uz-st-checkbox-hint {
  font-size: 11.5px;
  color: var(--mute);
  line-height: 1.5;
}
.uz-st-checkbox-hint b {
  color: var(--cyan, #4FD3FF);
  font-weight: 600;
}

/* Tag "descartado" no header dos blocos de grupo */
.uz-grp-tag-descartado {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-left: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #F59E0B;
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.28);
  border-radius: 999px;
  cursor: help;
}
