﻿/* ================================
   1 Click Telecom - Painel (Sidebar + Topbar)
   (mantém classes/IDs do seu HTML)
   ================================ */

:root {
  --bg0: #050816;
  --bg1: #070b1a;

  --text: #eef2ff;
  --muted: rgba(238, 242, 255, 0.72);

  --glass: rgba(255, 255, 255, 0.06);
  --glass2: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.12);

  --accent: #7c5cff;  /* roxo neon */
  --accent2: #2ee9a8; /* verde neon */
  --blue: #37b6ff;

  --shadow: 0 22px 70px rgba(0, 0, 0, 0.65);
  --shadow2: 0 14px 36px rgba(0, 0, 0, 0.45);

  --r: 18px;

  --danger: #ff4d6d;
  --dangerGlow: rgba(255, 77, 109, 0.25);
  --success: #2ee9a8;
  --successGlow: rgba(46, 233, 168, 0.18);

  --panelMax: none;
  --sidebarW: 84px;
  --sidebarWOpen: 240px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

html, body { height: 100%; }

/* Preload leve: não bloqueia a renderização da tela inicial */
html.has-auth-token #login-card {
  display: none !important;
}

html.has-auth-token #dashboard.hidden {
  display: grid !important;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 15% 10%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(1000px 560px at 85% 20%, rgba(46, 233, 168, 0.18), transparent 60%),
    radial-gradient(900px 500px at 55% 95%, rgba(55, 182, 255, 0.14), transparent 60%),
  linear-gradient(180deg, var(--bg0), var(--bg1));
  padding: 16px;
  overflow-x: hidden;
}

/* wrapper geral */
#app {
  width: 100%;
  max-width: var(--panelMax);
  margin: 0 auto;
  overflow-x: hidden;
}

img,
video,
canvas,
svg,
iframe {
  max-width: 100%;
}

/* ✅ hidden blindado */
.hidden { display: none !important; }

html.app-preload .dashboard {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

/* ======================
   Inputs / Botões
   ====================== */
label {
  font-size: 0.82rem;
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  letter-spacing: 0.2px;
}

input,
textarea,
select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(5, 8, 22, 0.55);
  color: var(--text);
  outline: none;
  font-size: 0.92rem;
  transition: 0.18s ease;
}

textarea { resize: vertical; min-height: 64px; }

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(124, 92, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(124, 92, 255, 0.16);
}

.is-invalid {
  border-color: rgba(255, 77, 109, 0.75) !important;
  box-shadow: 0 0 0 4px var(--dangerGlow) !important;
}

/* Botão padrão */
button {
  cursor: pointer;
  border: none;
  border-radius: 14px;
  padding: 10px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(46, 233, 168, 0.65));
  box-shadow: 0 16px 36px rgba(124, 92, 255, 0.22);
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
}

button:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 20px 44px rgba(124, 92, 255, 0.28);
}

button:active {
  transform: translateY(0px);
  filter: brightness(0.98);
}

.status {
  margin-top: 10px;
  font-size: 0.85rem;
  min-height: 18px;
  color: var(--muted);
}

/* ======================
   Login
   ====================== */
.login-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.05));
  border-radius: 22px;
  padding: 32px 28px;
  max-width: 420px;
  margin: 30px auto 0;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.10);
  position: relative;
  overflow: hidden;
}

.login-card:before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(600px 240px at 20% 0%, rgba(124, 92, 255, 0.30), transparent 60%),
    radial-gradient(520px 220px at 85% 20%, rgba(46, 233, 168, 0.18), transparent 60%);
  filter: blur(12px);
  opacity: 0.85;
  z-index: 0;
}

.login-card > * { position: relative; z-index: 1; }

.login-card h1 { font-size: 1.75rem; margin-bottom: 4px; letter-spacing: 0.2px; }

.login-card .subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 18px;
}

/* ======================
   DASHBOARD
   ====================== */
.dashboard {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 24px;
  overflow: visible;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);

  display: grid;
  grid-template-columns: var(--sidebarWOpen) 1fr;

  height: calc(100vh - 32px);
  min-height: 680px;

  /* ✅ importante para não “estourar” */
  min-width: 0;
}

/* ======================
   SIDEBAR
   ====================== */
.sidebar,
#sidebar,
.leftbar {
  background: rgba(5, 8, 22, 0.72);
  border-right: 1px solid rgba(255,255,255,0.10);
  padding: 14px 12px;
  position: relative;
  overflow: visible;
  position: relative;
  z-index: 80;
}

.sidebar:before,
#sidebar:before,
.leftbar:before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(600px 280px at 10% 0%, rgba(124,92,255,0.26), transparent 55%),
    radial-gradient(640px 320px at 90% 25%, rgba(46,233,168,0.14), transparent 60%);
  filter: blur(12px);
  opacity:.9;
  z-index:0;

  /* ✅ CRÃTICO: não roubar clique dos botÃµes */
  pointer-events: none;
}

.sidebar > * ,
#sidebar > * ,
.leftbar > * { position:relative; z-index:1; }

.sidebar .side-brand,
#sidebar .side-brand,
.leftbar .side-brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 8px 10px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.sidebar .side-logo,
#sidebar .side-logo,
.leftbar .side-logo{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(46, 233, 168, 0.60));
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 900;
  color:#fff;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.sidebar .side-title,
#sidebar .side-title,
.leftbar .side-title{
  display:flex;
  flex-direction:column;
  line-height:1.05;
}

.sidebar .side-title strong,
#sidebar .side-title strong,
.leftbar .side-title strong{
  font-size: .98rem;
  font-weight: 900;
}

.sidebar .side-title span,
#sidebar .side-title span,
.leftbar .side-title span{
  font-size: .82rem;
  color: var(--muted);
}

.sidebar .nav,
#sidebar .nav,
.leftbar .nav{
  display:flex;
  flex-direction:column;
  gap: 8px;
  margin-top: 12px;
}

.sidebar .nav a,
.sidebar .nav button,
#sidebar .nav a,
#sidebar .nav button,
.leftbar .nav a,
.leftbar .nav button{
  width:100%;
  text-align:left;
  border-radius: 14px;
  padding: 11px 12px;
  display:flex;
  align-items:center;
  gap: 12px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: none;
  color: rgba(238,242,255,0.92);
  cursor:pointer;
  transition: .12s ease;
}

.sidebar .nav a:hover,
.sidebar .nav button:hover,
#sidebar .nav a:hover,
#sidebar .nav button:hover,
.leftbar .nav a:hover,
.leftbar .nav button:hover{
  background: rgba(255,255,255,0.07);
  border-color: rgba(124,92,255,0.45);
  transform: translateY(-1px);
}

.sidebar .nav .active,
#sidebar .nav .active,
.leftbar .nav .active{
  background: linear-gradient(135deg, rgba(124,92,255,0.30), rgba(46,233,168,0.10));
  border-color: rgba(124,92,255,0.75);
  box-shadow: 0 0 0 3px rgba(124,92,255,0.16);
}

.sidebar .nav .icon,
#sidebar .nav .icon,
.leftbar .nav .icon{
  width: 22px;
  height: 22px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity: .95;
}

.sidebar .nav .label,
#sidebar .nav .label,
.leftbar .nav .label{
  font-weight: 750;
  font-size: .92rem;
}

.sidebar .nav-sep,
#sidebar .nav-sep,
.leftbar .nav-sep{
  height:1px;
  background: rgba(255,255,255,0.10);
  margin: 10px 8px;
}

.nav-hover-group {
  position: relative;
}

.nav-hover-trigger {
  width: 100%;
}

.nav-hover-menu {
  position: absolute;
  left: calc(100% + 8px);
  top: 0;
  min-width: 210px;
  background: rgba(5, 8, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35);
  padding: 8px;
  display: grid;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(6px);
  transition: opacity .14s ease, transform .14s ease, visibility 0s linear .18s;
  z-index: 9999;
}

.nav-hover-menu::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 0;
  width: 14px;
  height: 100%;
}

.nav-hover-group:hover .nav-hover-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition-delay: 0s;
}

.nav-hover-menu .tab-btn {
  width: 100%;
  justify-content: flex-start;
}

/* ======================
   COLUNA DIREITA
   ====================== */
.dashboard-main{
  display:flex;
  flex-direction:column;
  min-width: 0;   /* ✅ crítico */
  min-height: 0;  /* ✅ crítico */
}

/* ======================
   Topbar
   ====================== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;

  background:
    linear-gradient(90deg, rgba(124, 92, 255, 0.20), rgba(46, 233, 168, 0.08) 65%, rgba(255, 255, 255, 0.02));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
}

.brand { display: flex; align-items: center; gap: 10px; }

.logo-circle {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(46, 233, 168, 0.60));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  color: white;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }

.brand-name { font-size: 1rem; font-weight: 800; }
.brand-sub  { font-size: 0.8rem; color: var(--muted); }

.user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--muted);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(124, 92, 255, 0.55);
  box-shadow: none;
}

/* ======================
   Conteúdo com scroll (fix do “tampa tudo”)
   ====================== */
.content {
  flex: 1 1 auto;
  overflow: auto;
  min-height: 0;    /* ✅ crítico */
  min-width: 0;     /* ✅ crítico */
  padding: 14px 18px 20px;
  scrollbar-gutter: stable;
}

@media (min-width: 981px) {
  .content > .section-panel,
  .content > .area {
    min-width: 1100px;
  }

  .content > section[data-section="noc"] {
    min-width: 0;
  }
}

.content::-webkit-scrollbar { width: 10px; }
.content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  border: 2px solid rgba(5, 8, 22, 0.50);
}

.area { margin-bottom: 18px; }

.area h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid rgba(124, 92, 255, 0.9);
  color: rgba(238, 242, 255, 0.92);
}

/* ======================
   Cards (base)
   ====================== */
.cards {
  display: grid;
  gap: 12px;
  align-items: start;
  justify-content: start;
}

/* ✅ GRID REAL (não estica infinito) */
.cards { grid-template-columns: repeat(auto-fit, 360px); }
.cards-top { grid-template-columns: repeat(auto-fit, 360px); }

.card {
  width: 360px;
  max-width: 360px;

  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.04));
  border-radius: 16px;
  padding: 14px 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow2);
  position: relative;
  overflow: hidden;

  height: auto;
  min-height: unset;
}

.card:before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(520px 180px at 18% 0%, rgba(124, 92, 255, 0.18), transparent 60%);
  opacity: 0.9;
  z-index: 0;
  filter: blur(10px);
}

.card > * { position: relative; z-index: 1; }

.card h3 { font-size: 0.98rem; letter-spacing: 0.2px; }
.card p { font-size: 0.82rem; color: var(--muted); }

.card input,
.card textarea,
.card select {
  font-size: 0.85rem;
  padding: 9px 10px;
  border-radius: 12px;
}

.card button { align-self: flex-start; margin-top: 4px; }

/* ✅ LOS: fica maior, mas não ocupa a linha toda */
.card-los.card-los-compact{
  width: 760px;
  max-width: 760px;
  grid-column: auto;
}

.los-section-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: rgba(238, 242, 255, 0.88);
  margin-top: 8px;
  margin-bottom: 4px;
}

.los-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-bottom: 8px;
}

.los-row .form-group { flex: 1 1 200px; }

.los-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

pre {
  background: rgba(5, 8, 22, 0.60);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow2);
}

/* =========================
   MODAL
========================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 520px at 15% 10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(820px 520px at 85% 20%, rgba(46, 233, 168, 0.12), transparent 60%),
    rgba(0,0,0,.62);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  padding: 16px;
}

.modal {
  width: 100%;
  max-width: 520px;
  border-radius: 18px;
  padding: 18px 18px 14px;
  background: rgba(5, 8, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 80px rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
}

.modal, .modal h3, .modal p { color: var(--text); }

.modal h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: 0.2px;
}

.modal p {
  margin: 0;
  line-height: 1.35;
  white-space: pre-line;
  color: rgba(238, 242, 255, 0.86);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.modal-actions .btn-primary {
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.95), rgba(46, 233, 168, 0.65));
  color: #ffffff;
  box-shadow: 0 16px 36px rgba(124, 92, 255, 0.22);
}

.modal-actions .btn-primary:hover { filter: brightness(1.05); }

#modal-title {
  padding-left: 10px;
  border-left: 3px solid rgba(124, 92, 255, 0.9);
}

/* =========================
   Cards do topo
   ========================= */
.cards-top {
  display: grid;
  gap: 12px;
  align-items: start;
  justify-content: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 8px;
}

/* =========================
   IA (Groq) - ✅ CORRIGIDO PARA NÃƒO “TAMPAR”
   ========================= */
.ai-shell{
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 12px;
  align-items: stretch;
}

@media (max-width: 900px){
  .ai-shell{ grid-template-columns: 1fr; }
}

.ai-sidebar{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  padding: 12px;
  box-shadow: var(--shadow2);
  min-height: 520px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ai-thread-list{
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: auto;
  padding-right: 4px;
  min-height: 0;
}

.ai-main{
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  box-shadow: var(--shadow2);
  padding: 12px;
  min-height: 520px;

  display: flex;
  flex-direction: column;

  /* ✅ pra flex/scroll funcionar */
  min-width: 0;
  min-height: 0;
}

.ai-header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex: 0 0 auto;
}

.ai-title{ font-weight: 900; font-size: 1rem; }

.ai-subtitle{
  font-size: 0.82rem;
  color: rgba(238,242,255,0.70);
  margin-top: 2px;
}

#ai-model{ width: 260px; cursor: pointer; }

/*  agora o chat ocupa o espaço e rola */
.ai-chat {
  margin-top: 12px;
  background: rgba(5, 8, 22, 0.50);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow2);

  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;

  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ✅ compose fica embaixo SEM tampar */
.ai-compose{
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex: 0 0 auto;
}

#ai-input{ width: 100%; min-height: 64px; }

.ai-compose-actions{
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#ai-status{
  margin: 0;
  min-height: 18px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ======================
   Responsivo do painel
   ====================== */
@media (max-width: 980px) {
  body { padding: 10px; }
  .dashboard{
    grid-template-columns: 86px 1fr;
    border-radius: 18px;
    height: calc(100vh - 20px);
  }

  .sidebar .side-title,
  #sidebar .side-title,
  .leftbar .side-title{
    display:none;
  }

  .sidebar .nav .label,
  #sidebar .nav .label,
  .leftbar .nav .label{
    display:none;
  }

  .sidebar .nav a,
  .sidebar .nav button,
  #sidebar .nav a,
  #sidebar .nav button,
  .leftbar .nav a,
  .leftbar .nav button{
    justify-content:center;
  }

  /* no mobile, cards viram fluídos */
  .cards, .cards-top { grid-template-columns: 1fr; }
  .card { width: 100%; max-width: 100%; }
  .card-los.card-los-compact{ width: 100%; max-width: 100%; }
}

@media (max-width: 900px) {
  body {
    padding: 8px;
  }

  #app {
    max-width: 100%;
  }

  .dashboard {
    grid-template-columns: 1fr;
    height: auto;
    min-height: calc(100vh - 16px);
    border-radius: 18px;
  }

  .sidebar,
  #sidebar,
  .leftbar {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.10);
  }

  .sidebar .side-title,
  #sidebar .side-title,
  .leftbar .side-title,
  .sidebar .nav .label,
  #sidebar .nav .label,
  .leftbar .nav .label {
    display: inline-flex;
  }

  .sidebar .nav a,
  .sidebar .nav button,
  #sidebar .nav a,
  #sidebar .nav button,
  .leftbar .nav a,
  .leftbar .nav button {
    justify-content: flex-start;
  }

  .nav-hover-menu {
    position: static;
    left: auto;
    top: auto;
    min-width: 0;
    width: 100%;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    margin: 8px 0 0;
    transition: none;
  }

  .nav-hover-trigger {
    cursor: default;
    pointer-events: none;
  }

  .nav-hover-menu::before {
    display: none;
  }

  .nav-hover-group:hover .nav-hover-menu {
    transform: none;
  }

  .dashboard-main {
    min-height: 0;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
  }

  .brand {
    width: 100%;
  }

  .user-info {
    width: 100%;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .content {
    padding: 12px 14px 16px;
    overflow: visible;
  }

  .content > .section-panel,
  .content > .area {
    min-width: 0;
  }

  .execdash-header,
  .admin-hero,
  .gestao-hero,
  .controle-tempo-hero,
  .system-noc-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .execdash-actions,
  .admin-actions-row,
  .admin-inline-actions,
  .gestao-hero-actions,
  .controle-tempo-hero-actions,
  .gestao-feedback-table-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .execdash-grid,
  .execdash-panels,
  .admin-grid,
  .admin-summary-grid,
  .admin-actions-row,
  .admin-form-grid,
  .admin-tech-grid,
  .gestao-main-layout,
  .gestao-compare-services-grid,
  .gestao-grid-kpis,
  .gestao-filters-grid,
  .gestao-compare-layout,
  .gestao-compare-filters-head,
  .gestao-compare-periods,
  .gestao-feedback-filters,
  .controle-tempo-kpi-grid,
  .controle-tempo-summary-grid,
  .controle-tempo-panels-grid,
  .controle-tempo-filters-grid,
  .system-noc-grid--dashboard,
  .system-noc-grid,
  .tecnico-toolbar,
  .tecnico-externo-toolbar {
    grid-template-columns: 1fr !important;
  }

  .tecnico-toolbar > button,
  .tecnico-externo-toolbar > button {
    width: 100%;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table,
  table {
    width: 100%;
  }

  .modal {
    padding: 10px;
  }

  .modal-card {
    width: min(100%, 100%);
    max-height: calc(100vh - 20px);
  }
}

@media (max-width: 640px) {
  body {
    padding: 0;
  }

  #app {
    max-width: 100%;
  }

  .dashboard {
    border-radius: 0;
    min-height: 100vh;
  }

  .sidebar,
  #sidebar,
  .leftbar {
    padding: 12px 10px;
  }

  .sidebar .nav,
  #sidebar .nav,
  .leftbar .nav {
    gap: 6px;
  }

  .sidebar .nav a,
  .sidebar .nav button,
  #sidebar .nav a,
  #sidebar .nav button,
  .leftbar .nav a,
  .leftbar .nav button,
  button,
  input,
  select,
  textarea {
    min-height: 44px;
  }

  .topbar {
    padding: 12px;
  }

  .brand {
    gap: 8px;
  }

  .brand-text,
  .user-info {
    font-size: 0.88rem;
  }

  .content {
    padding: 10px 12px 14px;
  }

  .execdash-actions,
  .admin-actions-group,
  .gestao-subtabs,
  .gestao-hero-actions,
  .controle-tempo-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .gestao-subtabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .gestao-subtabs .gestao-subtab {
    width: 100%;
  }

  .nav-hover-menu {
    margin-top: 6px;
  }

  .modal-card {
    padding: 16px;
  }
}

/* ==========================================
   ULTRA COMPACTAÃ‡ÃƒO – Técnico (remoto / externo / LOS)
   (aplica nos cards que você marcou com .card-compact e .card-los-compact)
   ========================================== */

/* ===== Fechar Remoto / Fechar Externo (card-compact) ===== */
.card.card-compact{
  padding: 6px 8px !important;
  gap: 4px !important;
}

.card.card-compact h3{
  font-size: 0.78rem !important;
  margin-bottom: 0 !important;
}

.card.card-compact label{
  font-size: 0.68rem !important;
  margin-bottom: 2px !important;
}

.card.card-compact input,
.card.card-compact textarea,
.card.card-compact select{
  padding: 4px 6px !important;
  font-size: 0.72rem !important;
  border-radius: 8px !important;
}

.card.card-compact textarea{
  min-height: 34px !important;
}

.card.card-compact button{
  padding: 6px 8px !important;
  font-size: 0.72rem !important;
  border-radius: 9px !important;
  margin-top: 2px !important;
}

/* ===== Abrir Chamado LOS (card-los-compact) ===== */
.card-los.card-los-compact{
  padding: 8px 10px !important;
}

.card-los.card-los-compact h3{
  font-size: 0.82rem !important;
}

.card-los.card-los-compact .los-section-title{
  font-size: 0.7rem !important;
  margin: 4px 0 2px !important;
}

.card-los.card-los-compact .los-row{
  gap: 6px 8px !important;
  margin-bottom: 4px !important;
}

.card-los.card-los-compact label{
  font-size: 0.68rem !important;
}

.card-los.card-los-compact input,
.card-los.card-los-compact textarea,
.card-los.card-los-compact select{
  padding: 4px 6px !important;
  font-size: 0.72rem !important;
  border-radius: 8px !important;
}

.card-los.card-los-compact textarea{
  min-height: 36px !important;
}

.card-los.card-los-compact .los-actions{
  margin-top: 6px !important;
}

.card-los.card-los-compact .los-actions button{
  padding: 7px 10px !important;
  font-size: 0.74rem !important;
  border-radius: 10px !important;
}

/* ==================================================
   MODO LAYOUT – Admin (arrastar cards)
   ================================================== */
body.layout-mode .card{
  outline: 2px dashed rgba(124,92,255,.7);
  cursor: move;
}

body.layout-mode .tab-btn{
  outline: 2px dashed rgba(46,233,168,.7);
}

body.layout-mode .sidebar{
  box-shadow: inset 0 0 0 2px rgba(124,92,255,.4);
}

.layout-control-panel{
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  width: min(560px, calc(100vw - 36px));
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148,163,184,.24);
  background: rgba(15,23,42,.96);
  box-shadow: 0 24px 60px rgba(2,6,23,.35);
  color: #f8fafc;
  backdrop-filter: blur(14px);
}

.layout-control-panel.hidden{
  display: none !important;
}

.layout-control-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.layout-control-head-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.layout-control-head strong{
  display: block;
  font-size: 15px;
}

.layout-control-head span{
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: #cbd5e1;
}

.layout-control-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: min(62vh, 720px);
  overflow: auto;
  padding-right: 4px;
}

.layout-control-grid label{
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #dbeafe;
}

.layout-control-grid input,
.layout-control-grid select,
.layout-control-grid textarea{
  min-height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(148,163,184,.25);
  background: rgba(15,23,42,.88);
  color: #f8fafc;
  padding: 0 12px;
}

.layout-control-grid textarea{
  padding: 10px 12px;
  min-height: 84px;
  resize: vertical;
}

.layout-control-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.layout-selected{
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), 0 0 0 3px rgba(56,189,248,.45) !important;
}

body.site-editor-preview .layout-selected{
  box-shadow: none !important;
  outline: 2px solid rgba(56,189,248,.35) !important;
}

body.site-editor-preview .layout-control-panel{
  opacity: 0.92;
}

body.layout-mode .layout-sidebar-item{
  outline: 2px dashed rgba(46,233,168,.45);
  outline-offset: 4px;
  border-radius: 14px;
  cursor: move;
}

body.layout-mode .layout-sidebar-item .nav-hover-trigger,
body.layout-mode .layout-sidebar-item.tab-btn,
body.layout-mode .layout-sidebar-item.btn-outline{
  cursor: move;
}

body.layout-mode .layout-sidebar-subitem{
  outline: 2px dashed rgba(125, 211, 252, 0.45);
  outline-offset: 2px;
  border-radius: 10px;
  cursor: move;
}

/* (opcional) feedback visual enquanto arrasta */
.card.dragging{
  opacity: 0.65;
  transform: scale(0.99);
}

.layout-sidebar-item.dragging{
  opacity: 0.7;
  transform: scale(0.985);
}

.layout-sidebar-subitem.dragging{
  opacity: 0.7;
  transform: scale(0.985);
}

@media (max-width: 900px){
  .layout-control-panel{
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .layout-control-grid{
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   Tecnico - Lista de atendimentos
   ========================================== */
.tecnico-list-card {
  width: 100%;
}

.tecnico-toolbar {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr)) auto auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.tecnico-toolbar .form-group {
  margin: 0;
}

.tecnico-toolbar .form-group label {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
}

.tecnico-toolbar input,
.tecnico-toolbar select {
  height: 36px;
}

.tecnico-toolbar > button {
  align-self: end;
  height: 36px;
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.tec-total-chip {
  align-self: end;
  height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid #d7dee8;
  background: #f8fafc;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.tecnico-list-wrap {
  max-height: 70vh;
  overflow: auto;
  border: 1px solid #e8edf3;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}

.tecnico-table th,
.tecnico-table td {
  padding: 11px 10px;
  vertical-align: middle;
  color: #172133;
  border-bottom: 1px solid #eef2f7;
}

.tecnico-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  font-weight: 700;
  letter-spacing: .1px;
  color: #334155;
}

.tecnico-table tbody tr:nth-child(odd) {
  background: #ffffff;
}

.tecnico-table tbody tr:hover {
  background: #f8fbff;
}

.btn-tec-fechar {
  white-space: nowrap;
  border-radius: 999px;
  border: 1px solid #1d4ed8;
  color: #1d4ed8;
  background: #ffffff;
  padding: 7px 13px;
  font-weight: 700;
  transition: .18s ease;
}

.btn-tec-fechar:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.btn-tec-sugerir-contrato {
  padding: 6px 10px !important;
  font-size: 12px !important;
  border-radius: 8px !important;
  white-space: nowrap;
}

#btn-tec-fechar-selecionados {
  border-radius: 10px;
  border: 1px solid #334155;
  color: #334155;
  background: #ffffff;
  font-weight: 700;
  padding: 0 14px;
}

#btn-tec-fechar-selecionados:hover {
  background: #334155;
  color: #ffffff;
}

.tec-chat-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.tec-mark-all-btn {
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #1d4ed8 !important;
  font-weight: 700 !important;
  box-shadow: none !important;
  text-decoration: underline;
}

.tec-mark-all-btn:hover {
  color: #1e40af !important;
  transform: none !important;
}

.tec-client {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.tec-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  overflow: hidden;
  background: #dbeafe;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
}

.tec-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tec-avatar-fallback {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #1e3a8a;
}

.tec-client-name {
  font-weight: 700;
  line-height: 1.2;
  color: #0f172a;
}

.tec-client-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 3px;
}

.tec-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

.tec-status.is-waiting {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.tec-status.is-manual {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
}

.tec-status.is-done {
  background: #ecfdf3;
  border-color: #bbf7d0;
  color: #166534;
}

.tec-status.is-offhours {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.tec-status.is-default {
  background: #f1f5f9;
  border-color: #e2e8f0;
  color: #334155;
}

/* Toolbar mais clean e clara */
.tecnico-toolbar {
  background: #ffffff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  padding: 10px;
}

.tecnico-toolbar label {
  color: #334155;
  font-weight: 600;
}

.tecnico-toolbar input,
.tecnico-toolbar select {
  background: #ffffff;
  border: 1px solid #d7dee8;
  color: #0f172a;
}

.tec-row-note {
  min-width: 260px;
  min-height: 56px !important;
  max-height: 96px;
  background: #ffffff !important;
  border: 1px solid #d7dee8 !important;
  color: #0f172a !important;
  border-radius: 10px !important;
  padding: 8px 10px !important;
}

.relatorio-operacional-card {
  margin-top: 14px;
}

section[data-section="relatorios"] .relatorio-operacional-card {
  width: 100% !important;
  max-width: 100% !important;
}

.rel-op-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 320px) auto auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 10px;
}

#relatorio-operacional-entrada,
#relatorio-operacional-saida {
  min-height: 160px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 13px;
}

@media (max-width: 980px) {
  .rel-op-toolbar {
    grid-template-columns: 1fr;
  }
}

#btn-tec-carregar {
  background: #1d4ed8;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 0 14px;
  font-weight: 700;
}

#btn-tec-carregar:hover {
  background: #1e40af;
}

@media (max-width: 980px) {
  .tecnico-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .tecnico-toolbar > button {
    width: 100%;
  }
}

.tecnico-externo-card {
  margin-top: 12px;
  background: #ffffff;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  padding: 14px;
}

.tecnico-externo-embed h3 {
  color: #0f172a;
  letter-spacing: 0.2px;
  font-weight: 800;
  margin-bottom: 10px;
}

section[data-section="tecnico-externo"] h2,
section[data-section="tecnico-externo"] h3 {
  color: #0f172a;
  letter-spacing: 0.2px;
  font-weight: 800;
}

.tecnico-externo-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
}

.tecnico-externo-toolbar > button {
  height: 40px;
  background: #111827;
  color: #ffffff;
  border: 1px solid #111827;
  box-shadow: none;
}

.tecnico-externo-toolbar > button:hover {
  background: #0b1220;
  border-color: #0b1220;
  transform: translateY(-1px);
}

.tecnico-externo-toolbar .form-group {
  margin: 0;
}

.tecnico-externo-toolbar .form-group label {
  color: #334155;
  font-weight: 700;
}

.tecnico-externo-toolbar input,
.tecnico-externo-toolbar select {
  height: 40px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #cfd8e3;
  box-shadow: none;
}

.tecnico-externo-resumo {
  grid-column: 1 / -1;
  align-self: stretch;
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #1e293b;
  font-weight: 700;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  min-height: 38px;
}

.tecnico-externo-embed .tecnico-list-wrap {
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  box-shadow: none;
}

.tec-col-sort {
  background: transparent;
  border: none;
  color: #111111;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.2px;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tec-col-sort span {
  font-size: 10px;
  opacity: 0.95;
}

.tecnico-externo-embed .tecnico-table thead th {
  background: #ffffff;
  color: #111111;
  border-bottom: 1px solid #e2e8f0;
}

.tecnico-externo-embed .tecnico-table tbody tr:hover {
  background: #f1f5f9;
}

@media (max-width: 980px) {
  .tecnico-externo-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .tecnico-externo-toolbar > button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .tecnico-externo-toolbar {
    grid-template-columns: 1fr;
  }
}
/* ================================
   SmartOLT - LiberaÃ§ão ONU (maior)
   ================================ */

#card-liberacao-onu {
  width: 100%;
  max-width: none;
}

#card-liberacao-onu .table {
  width: 100%;
  font-size: 14px;
}

#card-liberacao-onu .table th,
#card-liberacao-onu .table td {
  padding: 10px 10px;
  vertical-align: middle;
}

#card-liberacao-onu .table input {
  height: 34px;
  padding: 6px 10px;
  font-size: 14px;
}

#card-liberacao-onu .btn-autorizar {
  padding: 8px 12px;
  font-size: 14px;
}

/* Aumenta a área com scroll */
#card-liberacao-onu > div {
  max-height: 520px !important;
  overflow: auto;
}

/* CabeÃ§alho por OLT (estilo “5 - C320...” + link de desativadas) */
.onu-olt-row td {
  padding: 12px 10px !important;
}

.onu-olt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.onu-olt-title {
  font-weight: 800;
  font-size: 15px;
}

.onu-olt-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  font-size: 13px;
  opacity: 0.85;
}

.onu-subhead th {
  font-weight: 700;
  opacity: 0.9;
}

/* Badge “Desabilitado” */
.onu-badge-disabled {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.9;
  border: 1px solid rgba(255,255,255,.18);
}
/* ================================
   Infra > LiberaÃ§ão ONU (100% altura)
   Faz ocupar até o final da tela
   ================================ */

/* garante que a coluna direita pode esticar */
#dashboard .dashboard-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* a área de conteúdo vira “coluna” e pode crescer */
#dashboard .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0; /* MUITO importante pro overflow funcionar */
}

/* a seÃ§ão Infra cresce até o final */
section[data-section="infra"] {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* o card ocupa o restante todo */
#card-liberacao-onu {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  max-width: none;
}

/* o botão fica no topo e a lista ocupa o resto */
#card-liberacao-onu #btn-onu-refresh {
  flex: 0 0 auto;
}

/* ⚠️ isso é o DIV que você tem no HTML envolvendo a tabela:
   <div style="margin-top:10px; max-height:300px; overflow:auto;">
   vamos “anular” o max-height e deixar ele virar área flex */
#card-liberacao-onu > div {
  flex: 1;
  min-height: 0;
  max-height: none !important;
  overflow: auto;
  margin-top: 10px;
}

/* tabela mais “cheia” */
#card-liberacao-onu .table {
  width: 100%;
  font-size: 14px;
}

#card-liberacao-onu .table th,
#card-liberacao-onu .table td {
  padding: 10px 10px;
  vertical-align: middle;
}
/* ========================= */
/* LOGIN MODERNO - 1 CLICK   */
/* ========================= */

.login-wrapper {
  position: fixed;
  inset: 0;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.login-card {
  width: 360px;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  text-align: center;
}

.login-logo {
  margin-bottom: 24px;
}

.logo-main {
  font-size: 28px;
  font-weight: 700;
  color: #7e22ce;
}

.logo-sub {
  font-size: 28px;
  font-weight: 700;
  color: #9333ea;
  margin-left: 4px;
}

.login-card .form-group {
  text-align: left;
  margin-bottom: 14px;
}

.login-card label {
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
  display: block;
}

.login-card input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #eef4ff;
  outline: none;
  font-size: 14px;
}

.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  margin: 12px 0 20px;
}

.login-options a {
  text-decoration: none;
  color: #7e22ce;
}

.login-card button {
  width: 100%;
  border: none;
  padding: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7e22ce, #9333ea);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.login-card button:hover {
  opacity: 0.9;
}
/* Corrige cor do texto digitado no login */
.login-card input {
  color: #000 !important;
}

/* Corrige também o placeholder */
.login-card input::placeholder {
  color: #6b7280;
  opacity: 1;
}
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.remember-me input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #8b2ad1; /* roxo do sistema */
  cursor: pointer;
}

.login-options a {
  font-size: 13px;
  color: #8b2ad1;
  text-decoration: none;
}

.login-options a:hover {
  text-decoration: underline;
}

.card-disparo {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 15px;
  border-left: 5px solid #2563eb;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  font-size: 14px;
}

/* ========================= */
/* LOGIN PREMIUM - 1 CLICK   */
/* ========================= */

.login-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 34px);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(54, 186, 255, 0.38), transparent 20%),
    radial-gradient(circle at 82% 16%, rgba(64, 234, 255, 0.30), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(31, 113, 255, 0.28), transparent 30%),
    linear-gradient(135deg, #021228 0%, #07214a 34%, #0a3470 64%, #051227 100%);
}

.login-wrapper::before,
.login-wrapper::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(16px);
  opacity: 0.8;
}

.login-wrapper::before {
  width: 48vw;
  height: 48vw;
  top: -18vw;
  left: -8vw;
  background: radial-gradient(circle, rgba(94, 225, 255, 0.28), transparent 68%);
  animation: loginFloatGlow 14s ease-in-out infinite;
}

.login-wrapper::after {
  width: 42vw;
  height: 42vw;
  right: -10vw;
  bottom: -14vw;
  background: radial-gradient(circle, rgba(87, 133, 255, 0.26), transparent 70%);
  animation: loginFloatGlow 16s ease-in-out infinite reverse;
}

.login-scene {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 440px);
  align-items: stretch;
  gap: clamp(24px, 3.2vw, 42px);
  width: min(1220px, calc(100vw - 36px));
  min-height: min(760px, calc(100vh - 36px));
  padding: clamp(22px, 2.5vw, 30px);
  border-radius: 36px;
  border: 1px solid rgba(196, 232, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(4, 17, 39, 0.72), rgba(9, 31, 71, 0.38)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow:
    0 28px 80px rgba(2, 10, 28, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  overflow: hidden;
}

.login-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.login-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(113, 202, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(113, 202, 255, 0.08) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 76%);
  opacity: 0.32;
}

.login-glow,
.login-orbital,
.login-comet {
  position: absolute;
  display: block;
}

.login-glow--one {
  top: 10%;
  left: 18%;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(83, 216, 255, 0.22), transparent 70%);
  filter: blur(10px);
}

.login-glow--two {
  right: 18%;
  bottom: 16%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(71, 106, 255, 0.22), transparent 70%);
  filter: blur(12px);
}

.login-comet {
  width: 320px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(103, 222, 255, 0.96), transparent);
  box-shadow: 0 0 18px rgba(103, 222, 255, 0.65);
  opacity: 0.75;
}

.login-comet--one {
  left: 7%;
  bottom: 24%;
  transform: rotate(-18deg);
  animation: loginSweep 9s linear infinite;
}

.login-comet--two {
  right: 10%;
  top: 22%;
  transform: rotate(18deg);
  animation: loginSweep 11s linear infinite reverse;
}

.login-orbital {
  border: 1px solid rgba(164, 230, 255, 0.22);
  border-radius: 999px;
}

.login-orbital--one {
  width: 540px;
  height: 540px;
  left: -140px;
  top: 120px;
  animation: loginSpin 28s linear infinite;
}

.login-orbital--two {
  width: 440px;
  height: 440px;
  right: -100px;
  top: -80px;
  animation: loginSpin 24s linear infinite reverse;
}

.login-brand-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: clamp(10px, 1vw, 16px);
  animation: loginRevealUp 0.9s ease both;
}

.login-brand-copy {
  max-width: 620px;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9f7ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(195, 237, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-logo--hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 20px;
}

.login-logo--hero .logo-main,
.login-logo--hero .logo-sub {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.03em;
}

.login-logo--hero .logo-main {
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(39, 181, 255, 0.22);
}

.login-logo--hero .logo-sub {
  margin-left: 0;
  color: #8be8ff;
  text-shadow: 0 10px 30px rgba(139, 232, 255, 0.24);
}

.login-brand-panel h1 {
  max-width: 12ch;
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #ffffff;
  text-wrap: balance;
}

.login-brand-panel p {
  margin-top: 20px;
  max-width: 52ch;
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.7;
  color: rgba(228, 244, 255, 0.78);
}

.login-visual-stage {
  position: relative;
  min-height: 320px;
  margin-top: 26px;
}

.login-satellite {
  position: absolute;
  left: 4%;
  top: 2%;
  width: 160px;
  height: 160px;
  animation: loginFloatAsset 8.5s ease-in-out infinite;
}

.satellite-core {
  position: absolute;
  inset: 48px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 30% 30%, #8decff, #2b7cf8 60%, #123c8d 100%);
  box-shadow:
    0 14px 36px rgba(23, 94, 206, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.satellite-wing {
  position: absolute;
  top: 34px;
  width: 64px;
  height: 92px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(157, 235, 255, 0.95), rgba(46, 112, 255, 0.72));
  border: 1px solid rgba(214, 242, 255, 0.4);
  box-shadow: 0 10px 30px rgba(0, 77, 199, 0.2);
}

.satellite-wing::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 8px;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.26) 1px, transparent 1px);
  background-size: 12px 12px;
}

.satellite-wing--left { left: 0; transform: skewY(8deg) rotate(-12deg); }
.satellite-wing--right { right: 0; transform: skewY(-8deg) rotate(12deg); }

.satellite-beam {
  position: absolute;
  left: 24px;
  top: 100px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border-left: 5px solid rgba(122, 238, 255, 0.84);
  border-bottom: 5px solid rgba(95, 160, 255, 0.68);
  transform: rotate(28deg);
  filter: drop-shadow(0 0 22px rgba(122, 238, 255, 0.4));
}

.login-mascot {
  position: absolute;
  right: 6%;
  bottom: 0;
  width: clamp(250px, 26vw, 350px);
  height: clamp(300px, 34vw, 420px);
  animation: loginFloatAsset 7.2s ease-in-out infinite reverse;
}

.mascot-aura {
  position: absolute;
  inset: 12% 14% 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(134, 238, 255, 0.38), transparent 72%);
  filter: blur(8px);
}

.mascot-head,
.mascot-body,
.mascot-ear,
.mascot-arm,
.mascot-leg,
.mascot-thumb,
.mascot-cape {
  position: absolute;
  display: block;
}

.mascot-head {
  left: 23%;
  top: 2%;
  width: 48%;
  height: 35%;
  border-radius: 42% 42% 48% 48%;
  background: radial-gradient(circle at 35% 28%, #ffffff, #d8f4ff 58%, #7db2ff 100%);
  border: 3px solid rgba(198, 241, 255, 0.88);
  box-shadow:
    0 16px 40px rgba(18, 82, 175, 0.34),
    inset 0 -12px 18px rgba(79, 130, 255, 0.2);
}

.mascot-head::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 42px;
  height: 36px;
  border-radius: 50% 50% 35% 35%;
  background: linear-gradient(180deg, #2f83ff, #1255d7);
  transform: translateX(-50%) rotate(-6deg);
}

.mascot-face {
  position: absolute;
  inset: 22% 18% 18%;
  border-radius: 44%;
  background: radial-gradient(circle at 50% 38%, rgba(14, 29, 60, 0.92), rgba(9, 20, 44, 0.98));
  box-shadow: inset 0 0 0 2px rgba(134, 223, 255, 0.22);
}

.mascot-eye {
  position: absolute;
  top: 28%;
  width: 34%;
  height: 34%;
  border-radius: 50%;
  background: radial-gradient(circle at 48% 40%, #c8fcff 0 18%, #44e2ff 34%, #193e98 76%, #081631 100%);
  box-shadow: 0 0 18px rgba(73, 212, 255, 0.45);
}

.mascot-eye::after {
  content: "";
  position: absolute;
  top: 24%;
  left: 22%;
  width: 14%;
  height: 14%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
}

.mascot-eye--left { left: 10%; }
.mascot-eye--right { right: 10%; }

.mascot-mouth {
  position: absolute;
  left: 50%;
  bottom: 18%;
  width: 30%;
  height: 14%;
  border-radius: 0 0 30px 30px;
  border-bottom: 4px solid #ff5b68;
  transform: translateX(-50%);
}

.mascot-ear {
  top: 12%;
  width: 16%;
  height: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, #47dfff, #1744a8 72%);
  border: 2px solid rgba(208, 243, 255, 0.74);
}

.mascot-ear--left { left: 14%; }
.mascot-ear--right { right: 14%; }

.mascot-body {
  left: 30%;
  top: 32%;
  width: 38%;
  height: 34%;
  border-radius: 28px;
  background:
    linear-gradient(180deg, #1f7aff 0 56%, #e53c44 56% 100%);
  border: 3px solid rgba(207, 240, 255, 0.84);
  box-shadow:
    0 18px 38px rgba(9, 41, 108, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
}

.mascot-body::before {
  content: "1 CLICK";
  position: absolute;
  left: 50%;
  top: 18%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(223, 246, 255, 0.92);
}

.mascot-cape {
  left: 18%;
  top: 38%;
  width: 64%;
  height: 40%;
  border-radius: 44% 44% 30% 30%;
  background: linear-gradient(180deg, rgba(226, 55, 68, 0.92), rgba(148, 20, 34, 0.96));
  filter: drop-shadow(0 18px 24px rgba(124, 15, 34, 0.2));
  z-index: -1;
}

.mascot-arm {
  top: 42%;
  width: 22%;
  height: 10%;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff, #8dc8ff);
  border: 2px solid rgba(214, 242, 255, 0.78);
}

.mascot-arm--left {
  left: 14%;
  transform: rotate(28deg);
}

.mascot-arm--right {
  right: 8%;
  transform: rotate(-40deg);
}

.mascot-thumb {
  right: 3%;
  top: 31%;
  width: 10%;
  height: 14%;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #8dc8ff);
  border: 2px solid rgba(214, 242, 255, 0.78);
  transform: rotate(-16deg);
}

.mascot-leg {
  bottom: 12%;
  width: 16%;
  height: 22%;
  border-radius: 24px;
  background: linear-gradient(180deg, #0f4bc4, #0a2a7c);
  border: 2px solid rgba(214, 242, 255, 0.78);
}

.mascot-leg--left {
  left: 32%;
  transform: rotate(6deg);
}

.mascot-leg--right {
  right: 28%;
  transform: rotate(-6deg);
}

.login-card-shell {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  animation: loginRevealUp 1s ease 0.08s both;
}

.login-card-shell::before {
  content: "";
  position: absolute;
  inset: 6% -6% auto auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(67, 218, 255, 0.24), transparent 70%);
  filter: blur(12px);
  pointer-events: none;
}

.login-wrapper .login-card {
  width: 100%;
  max-width: 440px;
  margin: 0;
  padding: clamp(30px, 3.2vw, 38px);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.09)),
    rgba(13, 26, 53, 0.54);
  border: 1px solid rgba(203, 241, 255, 0.22);
  box-shadow:
    0 26px 70px rgba(2, 10, 28, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px);
  text-align: left;
}

.login-wrapper .login-card::before {
  background:
    radial-gradient(280px 180px at 14% 8%, rgba(86, 221, 255, 0.24), transparent 60%),
    radial-gradient(260px 180px at 90% 0%, rgba(69, 121, 255, 0.18), transparent 60%);
  opacity: 1;
}

.login-card-header {
  margin-bottom: 22px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9f7ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(201, 239, 255, 0.16);
}

.login-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #66efff;
  box-shadow: 0 0 14px rgba(102, 239, 255, 0.8);
}

.login-card-header h2 {
  font-size: clamp(1.9rem, 2.2vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: #ffffff;
}

.login-card-header p {
  margin-top: 12px;
  color: rgba(225, 240, 255, 0.78);
  line-height: 1.6;
}

.login-wrapper .login-card .form-group {
  margin-bottom: 16px;
}

.login-wrapper .login-card label {
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(212, 237, 255, 0.82);
}

.login-wrapper .login-card input {
  height: 58px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(191, 235, 255, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.07)),
    rgba(6, 18, 42, 0.42);
  color: #f8fcff !important;
  font-size: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.login-wrapper .login-card input::placeholder {
  color: rgba(224, 236, 255, 0.45);
}

.login-wrapper .login-card input:focus {
  border-color: rgba(105, 224, 255, 0.72);
  box-shadow:
    0 0 0 4px rgba(78, 181, 255, 0.14),
    0 18px 36px rgba(21, 86, 168, 0.18);
  transform: translateY(-1px);
}

.login-wrapper .login-options {
  gap: 18px;
  margin: 10px 0 24px;
}

.login-wrapper .remember-me {
  gap: 10px;
  color: rgba(228, 241, 255, 0.84);
}

.login-wrapper .remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #4ee3ff;
}

.login-wrapper .login-options a {
  color: #9cecff;
  font-weight: 600;
}

.login-wrapper .login-options a:hover {
  color: #ffffff;
}

.login-wrapper #btn-login {
  position: relative;
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  font-size: 1rem;
  letter-spacing: 0.02em;
  background:
    linear-gradient(135deg, #0bbaf7 0%, #0a7dff 48%, #0f4ad5 100%);
  box-shadow:
    0 22px 44px rgba(6, 93, 226, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.login-wrapper #btn-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.32) 44%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.login-wrapper #btn-login:hover::before {
  transform: translateX(120%);
}

.login-wrapper #btn-login:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 46px rgba(6, 93, 226, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.login-wrapper .status {
  min-height: 22px;
  margin-top: 16px;
  color: #ffd9e2;
  font-weight: 600;
}

@keyframes loginFloatGlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(1.4vw, 1vw, 0) scale(1.06); }
}

@keyframes loginRevealUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginFloatAsset {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes loginSweep {
  0% { transform: translate3d(0, 0, 0) rotate(-18deg) scaleX(0.88); opacity: 0.4; }
  50% { transform: translate3d(18px, -12px, 0) rotate(-18deg) scaleX(1); opacity: 0.95; }
  100% { transform: translate3d(36px, -22px, 0) rotate(-18deg) scaleX(0.9); opacity: 0.35; }
}

@keyframes loginSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1100px) {
  .login-scene {
    grid-template-columns: 1fr;
    width: min(760px, calc(100vw - 28px));
    min-height: auto;
  }

  .login-brand-panel {
    min-height: 0;
    padding-bottom: 0;
  }

  .login-brand-panel h1 {
    max-width: 14ch;
  }

  .login-visual-stage {
    min-height: 250px;
  }

  .login-mascot {
    right: 2%;
    width: 250px;
    height: 320px;
  }
}

@media (max-width: 720px) {
  .login-wrapper {
    padding: 10px;
  }

  .login-scene {
    width: calc(100vw - 20px);
    padding: 16px;
    gap: 16px;
    border-radius: 28px;
  }

  .login-brand-panel {
    padding: 8px 2px 0;
  }

  .login-brand-panel h1 {
    max-width: none;
    font-size: clamp(2.1rem, 10vw, 3.3rem);
  }

  .login-brand-panel p {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .login-visual-stage {
    min-height: 180px;
    margin-top: 8px;
  }

  .login-satellite {
    left: -6px;
    top: -8px;
    width: 120px;
    height: 120px;
  }

  .login-mascot {
    right: 0;
    width: 190px;
    height: 250px;
  }

  .login-wrapper .login-card {
    padding: 24px 18px;
    border-radius: 26px;
  }

  .login-wrapper .login-card input,
  .login-wrapper #btn-login {
    min-height: 54px;
    height: 54px;
  }

  .login-wrapper .login-options {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-wrapper *,
  .login-wrapper::before,
  .login-wrapper::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ========================= */
/* LOGIN MOCKUP REFERENCE    */
/* ========================= */

.login-wrapper {
  background:
    radial-gradient(circle at 12% 86%, rgba(114, 73, 255, 0.22), transparent 22%),
    radial-gradient(circle at 84% 12%, rgba(104, 237, 255, 0.18), transparent 16%),
    radial-gradient(circle at 50% 14%, rgba(168, 222, 255, 0.12), transparent 18%),
    linear-gradient(180deg, #09155c 0%, #0f2f91 34%, #0f3f9d 58%, #092a6c 100%);
}

.login-wrapper::before {
  width: 70vw;
  height: 70vw;
  top: auto;
  bottom: -40vw;
  left: -18vw;
  background:
    radial-gradient(circle, rgba(92, 186, 255, 0.34), rgba(60, 89, 255, 0.22) 48%, transparent 70%);
  filter: blur(10px);
}

.login-wrapper::after {
  width: 62vw;
  height: 62vw;
  top: -28vw;
  right: -12vw;
  background: radial-gradient(circle, rgba(57, 236, 255, 0.2), transparent 68%);
}

.login-scene {
  width: min(1180px, calc(100vw - 32px));
  min-height: min(760px, calc(100vh - 32px));
  padding: 24px 28px 18px;
  display: block;
  border: 1px solid rgba(184, 228, 255, 0.14);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.login-stars {
  position: absolute;
  inset: 0;
  background-repeat: repeat;
  opacity: 0.8;
}

.login-stars--one {
  background-image:
    radial-gradient(circle at 20px 30px, rgba(255,255,255,0.95) 0 1.4px, transparent 1.6px),
    radial-gradient(circle at 90px 70px, rgba(255,240,186,0.9) 0 1.8px, transparent 2px),
    radial-gradient(circle at 140px 120px, rgba(170,238,255,0.92) 0 1.2px, transparent 1.5px),
    radial-gradient(circle at 220px 40px, rgba(255,255,255,0.78) 0 1px, transparent 1.4px);
  background-size: 240px 160px;
  animation: loginStarDrift 20s linear infinite;
}

.login-stars--two {
  background-image:
    radial-gradient(circle at 45px 100px, rgba(255,255,255,0.9) 0 1px, transparent 1.4px),
    radial-gradient(circle at 170px 24px, rgba(113,233,255,0.9) 0 1.6px, transparent 1.9px),
    radial-gradient(circle at 260px 130px, rgba(255,206,92,0.86) 0 1.3px, transparent 1.7px),
    radial-gradient(circle at 300px 64px, rgba(255,255,255,0.7) 0 1px, transparent 1.4px);
  background-size: 320px 190px;
  mix-blend-mode: screen;
  animation: loginStarDrift 32s linear infinite reverse;
}

.login-flow {
  position: absolute;
  display: block;
  width: 110%;
  height: 160px;
  left: -5%;
  border-radius: 50%;
  border-top: 4px solid rgba(72, 222, 255, 0.75);
  border-bottom: 4px solid rgba(158, 110, 255, 0.5);
  filter: blur(0.3px) drop-shadow(0 0 14px rgba(97, 213, 255, 0.55));
  opacity: 0.78;
}

.login-flow--one {
  bottom: 100px;
  transform: rotate(-8deg);
  animation: loginRibbon 11s ease-in-out infinite;
}

.login-flow--two {
  bottom: 66px;
  height: 180px;
  border-top-color: rgba(143, 255, 248, 0.8);
  border-bottom-color: rgba(73, 151, 255, 0.56);
  transform: rotate(4deg);
  animation: loginRibbon 13s ease-in-out infinite reverse;
}

.login-flow--three {
  top: 92px;
  left: 40%;
  width: 66%;
  height: 120px;
  border-top-color: rgba(122, 255, 239, 0.84);
  border-bottom-color: rgba(150, 95, 255, 0.42);
  transform: rotate(-6deg);
  animation: loginRibbon 12s ease-in-out infinite;
}

.login-comet--one {
  left: 10%;
  bottom: 32%;
  transform: rotate(52deg);
}

.login-comet--two {
  right: 6%;
  top: 26%;
  width: 180px;
  transform: rotate(-8deg);
}

.login-orbital--one,
.login-orbital--two,
.login-grid,
.login-glow--two {
  opacity: 0.2;
}

.login-composition {
  position: relative;
  z-index: 1;
  min-height: min(708px, calc(100vh - 72px));
  display: grid;
  grid-template-rows: auto 1fr;
}

.login-top-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 4px auto 14px;
  animation: loginRevealUp 0.8s ease both;
}

.login-brand-mark {
  position: relative;
  width: 78px;
  height: 64px;
}

.brand-globe {
  position: absolute;
  inset: 4px 16px 4px 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 34%, rgba(50, 106, 255, 0.95), rgba(8, 39, 156, 0.96)),
    #0b2b9d;
  border: 3px solid rgba(255, 169, 60, 0.95);
  box-shadow: 0 0 18px rgba(69, 149, 255, 0.35);
}

.brand-globe::before,
.brand-globe::after {
  content: "";
  position: absolute;
  inset: 16% 10%;
  border-radius: 50%;
  border: 1.8px solid rgba(255, 208, 124, 0.95);
}

.brand-globe::after {
  inset: 10% 28%;
}

.brand-cursor {
  position: absolute;
  right: 0;
  bottom: 8px;
  width: 26px;
  height: 30px;
  background: linear-gradient(180deg, #ff5a68, #ea1830);
  clip-path: polygon(0 0, 100% 58%, 60% 62%, 68% 100%, 42% 88%, 34% 60%, 0 62%);
  filter: drop-shadow(0 0 10px rgba(255, 72, 92, 0.35));
}

.login-logo--hero {
  gap: 8px;
  margin: 0;
}

.login-logo--hero .logo-main,
.login-logo--hero .logo-sub {
  font-size: clamp(32px, 3.4vw, 48px);
  text-transform: uppercase;
  font-weight: 800;
}

.login-logo--hero .logo-main,
.login-logo--hero .logo-sub {
  color: #ffffff;
  text-shadow: 0 6px 18px rgba(8, 22, 86, 0.45);
}

.login-showcase {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(330px, 390px) minmax(220px, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 0;
}

.login-side-art {
  position: relative;
  min-height: 520px;
}

.login-side-art--left {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.login-side-art--right {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.login-planet {
  position: absolute;
  left: -36px;
  bottom: -74px;
  width: min(26vw, 350px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 36%, rgba(138, 251, 255, 0.86), rgba(54, 123, 255, 0.94) 42%, rgba(17, 35, 118, 0.98) 72%, rgba(8, 16, 48, 1) 100%);
  box-shadow:
    inset -30px -26px 60px rgba(0, 0, 0, 0.32),
    0 0 32px rgba(93, 172, 255, 0.36);
}

.login-planet::before {
  content: "";
  position: absolute;
  inset: auto 12% 16% -10%;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(145, 237, 255, 0), rgba(145, 237, 255, 0.92), rgba(145, 237, 255, 0));
  filter: blur(4px);
  transform: rotate(7deg);
}

.login-satellite {
  left: 22%;
  top: 18%;
  width: 170px;
  height: 170px;
}

.satellite-beam {
  left: 12px;
  top: 86px;
  width: 240px;
  height: 250px;
  border-left-width: 4px;
  border-bottom-width: 4px;
  border-left-color: rgba(129, 255, 255, 0.92);
  border-bottom-color: rgba(130, 180, 255, 0.75);
}

.login-card-shell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card-shell::before {
  width: 280px;
  height: 280px;
  top: 50%;
  left: 50%;
  right: auto;
  bottom: auto;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(155, 226, 255, 0.18), transparent 70%);
}

.login-wrapper .login-card {
  max-width: 380px;
  padding: 34px 28px 28px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.34)),
    rgba(236, 248, 255, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.46);
  box-shadow:
    0 18px 42px rgba(8, 19, 73, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px);
  text-align: center;
}

.login-wrapper .login-card::before {
  background:
    radial-gradient(200px 120px at 50% 0%, rgba(255, 255, 255, 0.4), transparent 70%),
    radial-gradient(220px 180px at 0% 100%, rgba(159, 236, 255, 0.24), transparent 70%);
}

.login-card-header {
  margin-bottom: 18px;
}

.login-card-header h2 {
  font-size: clamp(2rem, 2.8vw, 2.5rem);
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 6px 18px rgba(61, 96, 191, 0.46);
}

.login-badge,
.login-card-header p {
  display: none;
}

.login-wrapper .login-card .form-group {
  text-align: left;
  margin-bottom: 12px;
}

.login-wrapper .login-card label {
  margin-bottom: 6px;
  font-size: 0.78rem;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  color: rgba(75, 87, 131, 0.92);
}

.login-wrapper .login-card input {
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(164, 184, 237, 0.9);
  background: linear-gradient(180deg, rgba(233, 241, 255, 0.95), rgba(216, 229, 255, 0.9));
  color: #192647 !important;
  font-size: 0.95rem;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.72),
    0 1px 0 rgba(255, 255, 255, 0.35);
}

.login-wrapper .login-card input::placeholder {
  color: rgba(90, 105, 151, 0.72);
}

.login-wrapper .login-card input:focus {
  border-color: rgba(95, 153, 255, 0.92);
  box-shadow:
    0 0 0 4px rgba(95, 153, 255, 0.14),
    0 10px 22px rgba(64, 119, 243, 0.12);
}

.login-wrapper .login-options {
  margin: 10px 0 18px;
  font-size: 0.74rem;
}

.login-wrapper .remember-me {
  gap: 6px;
  font-size: 0.76rem;
  color: rgba(67, 81, 125, 0.92);
}

.login-wrapper .remember-me input[type="checkbox"] {
  width: 13px;
  height: 13px;
  accent-color: #809cff;
}

.login-wrapper .login-options a {
  font-size: 0.76rem;
  color: #6680ff;
}

.login-wrapper #btn-login {
  min-height: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff4646, #ef1f23);
  box-shadow:
    0 14px 24px rgba(220, 26, 39, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.login-wrapper #btn-login:hover {
  box-shadow:
    0 16px 26px rgba(220, 26, 39, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.login-wrapper .status {
  min-height: 18px;
  margin-top: 14px;
  font-size: 0.8rem;
  color: #8b2140;
}

.login-mascot {
  right: 10%;
  bottom: -8px;
  width: clamp(240px, 25vw, 330px);
  height: clamp(310px, 32vw, 410px);
}

.mascot-body::before {
  content: "TELECOM";
}

@keyframes loginStarDrift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-40px, 30px, 0); }
}

@keyframes loginRibbon {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-10px) rotate(-5deg); }
}

@media (max-width: 980px) {
  .login-composition {
    min-height: auto;
  }

  .login-showcase {
    grid-template-columns: 1fr;
    gap: 10px;
    justify-items: center;
  }

  .login-side-art {
    min-height: 190px;
    width: 100%;
  }

  .login-side-art--left,
  .login-side-art--right {
    justify-content: center;
  }

  .login-planet {
    left: 8%;
    bottom: -110px;
    width: 220px;
  }

  .login-satellite {
    left: 18%;
    top: 10%;
    width: 132px;
    height: 132px;
  }

  .satellite-beam {
    width: 180px;
    height: 180px;
  }

  .login-mascot {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 290px;
  }
}

@media (max-width: 640px) {
  .login-wrapper {
    padding: 8px;
  }

  .login-scene {
    width: calc(100vw - 16px);
    min-height: calc(100vh - 16px);
    padding: 16px 14px 10px;
    border-radius: 20px;
  }

  .login-top-brand {
    gap: 8px;
    margin-bottom: 8px;
  }

  .login-brand-mark {
    width: 54px;
    height: 44px;
  }

  .login-logo--hero .logo-main,
  .login-logo--hero .logo-sub {
    font-size: clamp(22px, 7vw, 30px);
  }

  .login-side-art--left {
    min-height: 140px;
  }

  .login-side-art--right {
    min-height: 220px;
  }

  .login-planet {
    left: -8px;
    bottom: -88px;
    width: 180px;
  }

  .login-satellite {
    left: 12%;
    top: 6%;
    width: 100px;
    height: 100px;
  }

  .satellite-core {
    inset: 32px;
  }

  .satellite-wing {
    top: 18px;
    width: 42px;
    height: 64px;
  }

  .satellite-beam {
    left: 4px;
    top: 52px;
    width: 126px;
    height: 140px;
  }

  .login-wrapper .login-card {
    max-width: 100%;
    padding: 24px 18px 20px;
  }

  .login-card-header h2 {
    font-size: 2rem;
  }

  .login-wrapper .login-card input,
  .login-wrapper #btn-login {
    height: 44px;
    min-height: 44px;
  }

  .login-wrapper .login-options {
    flex-direction: row;
    gap: 10px;
  }
}

.card-disparo h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: #1e293b;
}

.card-disparo .linha {
  margin: 4px 0;
}

.card-disparo .ok {
  color: #166534;
  font-weight: bold;
}

.card-disparo .erro {
  color: #991b1b;
  font-weight: bold;
}

/* ========================= */
/* LOGIN - MOCKUP FINAL      */
/* ========================= */

.login-wrapper {
  padding: 16px;
  background:
    radial-gradient(circle at 18% 12%, rgba(114, 187, 255, 0.18), transparent 18%),
    linear-gradient(180deg, #07124c 0%, #0b267f 50%, #081f61 100%);
}

.login-wrapper::before,
.login-wrapper::after {
  display: none;
}

.login-scene {
  position: relative;
  width: min(1152px, calc(100vw - 32px));
  min-height: min(760px, calc(100vh - 32px));
  aspect-ratio: auto;
  padding: 28px 28px 16px;
  border-radius: 28px;
  border: 1px solid rgba(193, 230, 255, 0.16);
  overflow: hidden;
  background:
    radial-gradient(circle at 16% 84%, rgba(255, 138, 72, 0.22), transparent 18%),
    radial-gradient(circle at 62% 14%, rgba(122, 198, 255, 0.12), transparent 18%),
    linear-gradient(180deg, rgba(10, 26, 89, 0.04), rgba(9, 20, 66, 0.18)),
    linear-gradient(180deg, #0a1b71 0%, #103ca0 48%, #0a236f 100%);
  box-shadow:
    0 28px 90px rgba(3, 8, 32, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-decor {
  display: block !important;
}

.login-top-brand,
.login-side-art {
  display: flex !important;
}

.login-composition,
.login-showcase {
  position: relative;
  inset: auto;
  display: grid;
  min-height: 0;
}

.login-card-shell {
  position: relative;
  left: auto;
  top: auto;
  width: min(100%, 392px);
  min-width: 330px;
  max-width: 392px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  justify-self: center;
  align-self: center;
}

.login-card-shell::before {
  display: none;
}

.login-wrapper .login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 28px 28px 24px;
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.13)),
    rgba(173, 222, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow:
    0 18px 44px rgba(13, 31, 103, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 0 40px rgba(145, 233, 255, 0.08);
  backdrop-filter: blur(14px);
  text-align: left;
}

.login-wrapper .login-card::before {
  background:
    radial-gradient(200px 100px at 50% 0%, rgba(255, 255, 255, 0.38), transparent 70%),
    radial-gradient(260px 180px at 55% 55%, rgba(115, 247, 255, 0.12), transparent 72%);
}

.login-card-header {
  margin-bottom: 16px;
  text-align: center;
}

.login-card-header h2 {
  font-size: clamp(2.15rem, 3vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 6px 16px rgba(99, 135, 255, 0.38);
}

.login-wrapper .login-card .form-group {
  margin-bottom: 14px;
}

.login-wrapper .login-card label {
  margin-bottom: 7px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(245, 249, 255, 0.94);
}

.login-wrapper .login-card input {
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(183, 199, 236, 0.92);
  background: linear-gradient(180deg, rgba(231, 238, 253, 0.98), rgba(220, 228, 248, 0.96));
  color: #253559 !important;
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.85),
    0 1px 0 rgba(255, 255, 255, 0.22);
}

.login-wrapper .login-card input::placeholder {
  color: rgba(79, 95, 138, 0.72);
}

.login-wrapper .login-card input:focus {
  border-color: rgba(121, 200, 255, 0.96);
  box-shadow:
    0 0 0 4px rgba(115, 201, 255, 0.18),
    0 10px 22px rgba(49, 109, 239, 0.12);
}

.login-wrapper .login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 8px 0 18px;
}

.login-wrapper .remember-me {
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(241, 246, 255, 0.92);
}

.login-wrapper .remember-me input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #57dfff;
}

.login-wrapper .login-options a {
  font-size: 0.82rem;
  color: #dbe7ff;
  text-decoration: none;
}

.login-wrapper .login-options a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.login-wrapper #btn-login {
  min-height: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(180deg, #ff4648, #eb1f20 68%, #d9171e 100%);
  box-shadow:
    0 16px 30px rgba(219, 21, 34, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.login-wrapper #btn-login:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.login-wrapper .status {
  min-height: 18px;
  margin-top: 12px;
  text-align: center;
  font-size: 0.84rem;
  color: #ffe7ef;
}

@keyframes loginMockupTwinkle {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.06) brightness(1.03); }
}

.login-scene {
  animation: loginMockupTwinkle 10s ease-in-out infinite;
}

.login-top-brand {
  justify-content: center;
  margin-bottom: 18px;
}

.login-showcase {
  grid-template-columns: minmax(220px, 1fr) minmax(330px, 392px) minmax(220px, 1fr);
  align-items: center;
  gap: 18px;
  min-height: calc(100% - 92px);
}

.login-side-art {
  min-height: 520px;
}

.login-side-art--left {
  justify-content: flex-start;
  align-items: flex-end;
}

.login-side-art--right {
  justify-content: flex-end;
  align-items: flex-end;
}

.login-planet {
  left: -54px;
  bottom: -82px;
  width: min(26vw, 360px);
}

.login-satellite {
  left: 12%;
  top: 18%;
  width: 170px;
  height: 170px;
}

.login-mascot {
  right: 4%;
  bottom: -8px;
  width: clamp(255px, 26vw, 344px);
  height: clamp(320px, 34vw, 430px);
}

@media (max-width: 980px) {
  .login-scene {
    width: min(760px, calc(100vw - 24px));
    min-height: calc(100vh - 24px);
  }

  .login-card-shell {
    width: min(92vw, 400px);
    min-width: 0;
  }

  .login-showcase {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .login-side-art--left {
    min-height: 170px;
  }

  .login-side-art--right {
    min-height: 250px;
  }

  .login-planet {
    left: 4%;
    bottom: -112px;
    width: 220px;
  }

  .login-satellite {
    left: 16%;
    top: 10%;
    width: 132px;
    height: 132px;
  }

  .login-mascot {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    width: 220px;
    height: 290px;
  }
}

@media (max-width: 640px) {
  .login-wrapper {
    padding: 0;
  }

  .login-scene {
    width: 100vw;
    min-height: 100vh;
    border-radius: 0;
    background:
      radial-gradient(circle at 18% 84%, rgba(255, 138, 72, 0.18), transparent 18%),
      linear-gradient(180deg, rgba(6, 15, 48, 0.28), rgba(7, 15, 48, 0.48)),
      linear-gradient(180deg, #0a1b71 0%, #103ca0 48%, #0a236f 100%);
  }

  .login-card-shell {
    width: min(92vw, 380px);
  }

  .login-wrapper .login-card {
    padding: 24px 18px 20px;
    backdrop-filter: blur(14px);
  }

  .login-card-header h2 {
    font-size: 2rem;
  }

  .login-wrapper .login-options {
    gap: 10px;
  }

  .login-top-brand {
    margin-bottom: 10px;
  }
}

/* =====================================================
   PATCH LAYOUT FULL WIDTH - 1 CLICK (PROFISSIONAL)
   ===================================================== */

/* Remove limite central */
:root {
  --panelMax: 100% !important;
}

/* Remove moldura externa */
body {
  padding: 0 !important;
  overflow: hidden;
}

/* App ocupa tudo */
#app {
  max-width: 100% !important;
  margin: 0 !important;
  width: 100%;
  min-height: 100vh;
}

/* Dashboard sem borda arredondada */
.dashboard {
  border-radius: 0 !important;
  height: 100vh !important;
  min-height: 100vh !important;
}

/* Conteúdo respira melhor */
.content {
  padding: 20px !important;
}

/* Cards fluidos */
.cards,
.cards-top {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)) !important;
}

/* Card ocupa a coluna */
.card {
  width: 100% !important;
  max-width: 100% !important;
}

/* Remove “efeito caixa” */
.dashboard,
.sidebar,
.topbar {
  box-shadow: none;
}

/* Header mais moderno */
.topbar {
  backdrop-filter: blur(12px);
}

/* Sidebar reta (enterprise) */
.sidebar {
  border-radius: 0;
}

/* Melhor scroll geral */
.content::-webkit-scrollbar {
  width: 8px;
}

/* Mobile otimizado */
@media (max-width: 900px) {

  .dashboard {
    grid-template-columns: 70px 1fr !important;
  }

  .cards {
    grid-template-columns: 1fr !important;
  }

}

/* =====================================================
   FIX SCROLL - ABRIR CHAMADO LOS (NÃƒO CORTAR TELA)
   ===================================================== */

/* Garante que o conteúdo possa rolar */
.dashboard-main,
.content,
.area {
  min-height: 0 !important;
}

/* =====================================================
   LOGIN FULLSCREEN COM ARTE OFICIAL
   ===================================================== */

#login-card.login-wrapper {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #07124c 0%, #0b267f 50%, #081f61 100%);
}

#login-card.login-wrapper::before,
#login-card.login-wrapper::after {
  display: none !important;
}

#login-card .login-scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 3vw, 32px);
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(3, 10, 36, 0.10), rgba(3, 10, 36, 0.14)),
    url("login-reference.png") center 18% / cover no-repeat;
  box-shadow: none;
  animation: loginMockupTwinkle 12s ease-in-out infinite;
}

#login-card .login-decor,
#login-card .login-top-brand,
#login-card .login-side-art {
  display: none !important;
}

#login-card .login-composition,
#login-card .login-showcase {
  position: relative;
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
}

#login-card .login-card-shell {
  position: relative;
  width: min(100%, 380px);
  max-width: 380px;
  transform: none;
  display: block;
  margin: 0;
}

#login-card .login-card-shell::before {
  display: none !important;
}

#login-card .login-card {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 30px 28px 24px;
  border-radius: 26px;
  text-align: left;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.30), rgba(255, 255, 255, 0.16)),
    rgba(183, 225, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.56);
  box-shadow:
    0 20px 46px rgba(8, 19, 73, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(14px);
}

#login-card .login-card::before {
  background:
    radial-gradient(220px 120px at 50% 0%, rgba(255, 255, 255, 0.34), transparent 70%),
    radial-gradient(260px 160px at 50% 50%, rgba(115, 247, 255, 0.10), transparent 72%);
}

#login-card .login-card-header {
  margin-bottom: 18px;
  text-align: center;
}

#login-card .login-card-header h2 {
  font-size: clamp(2.1rem, 2.8vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  text-shadow: 0 6px 16px rgba(41, 72, 156, 0.54);
}

#login-card .login-badge,
#login-card .login-card-header p {
  display: none !important;
}

#login-card .login-card .form-group {
  margin-bottom: 14px;
}

#login-card .login-card label {
  margin-bottom: 7px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: rgba(255, 255, 255, 0.98);
}

#login-card .login-card input {
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(190, 203, 234, 0.94);
  background: linear-gradient(180deg, rgba(236, 241, 251, 0.98), rgba(219, 227, 246, 0.95));
  color: #27365a !important;
  font-size: 0.98rem;
  font-weight: 600;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.85),
    0 1px 0 rgba(255, 255, 255, 0.22);
}

#login-card .login-card input::placeholder {
  color: rgba(79, 95, 138, 0.72);
}

#login-card .login-card input:focus {
  border-color: rgba(122, 205, 255, 0.96);
  box-shadow:
    0 0 0 4px rgba(115, 201, 255, 0.18),
    0 10px 22px rgba(49, 109, 239, 0.12);
}

#login-card .login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 8px 0 18px;
}

#login-card .remember-me {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(241, 246, 255, 0.94);
}

#login-card .remember-me input[type="checkbox"] {
  width: 14px;
  height: 14px;
  accent-color: #57dfff;
}

#login-card .login-options a {
  font-size: 0.82rem;
  color: #f0f6ff;
  text-decoration: none;
}

#login-card .login-options a:hover {
  color: #ffffff;
  text-decoration: underline;
}

#login-card #btn-login {
  width: 100%;
  min-height: 52px;
  height: 52px;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  background: linear-gradient(180deg, #ff4648, #eb1f20 68%, #d9171e 100%);
  box-shadow:
    0 16px 30px rgba(219, 21, 34, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

#login-card #btn-login:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

#login-card .status {
  min-height: 18px;
  margin-top: 12px;
  text-align: center;
  font-size: 0.84rem;
  color: #ffe7ef;
}

@media (max-width: 980px) {
  #login-card .login-scene {
    background-position: center 16%;
    background-size: cover;
  }

  #login-card .login-card-shell {
    width: min(100%, 360px);
  }
}

@media (max-width: 640px) {
  #login-card .login-scene {
    width: 100vw;
    height: 100dvh;
    min-height: 100dvh;
    padding: 16px;
    background-position: center 14%;
    background-size: cover;
  }

  #login-card .login-card-shell {
    width: min(92vw, 360px);
  }

  #login-card .login-card {
    padding: 24px 18px 20px;
  }

  #login-card .login-card-header h2 {
    font-size: 2rem;
  }

  #login-card .login-options {
    gap: 10px;
  }
}

/* Ãrea do Técnico pode rolar */
section[data-section="tecnico"] {
  flex: 1;
  min-height: 0;
  overflow-y: auto !important;
  padding-bottom: 40px;
}

/* Card LOS nunca estoura */
.card-los.card-los-compact {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

/* Scroll bonito no LOS */
.card-los.card-los-compact::-webkit-scrollbar {
  width: 8px;
}

.card-los.card-los-compact::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
}

/* =====================================================
   AJUSTE POSIÇÃO - CONTEÚDO NÃO FICAR L� EMBAIXO
   ===================================================== */

/* Remove espaço exagerado do topo */
.dashboard {
  height: 100vh !important;
}

/* Diminui espaço da topbar */
.topbar {
  padding: 8px 16px !important;
  min-height: 56px;
}

/* Ajusta área principal */
.content {
  padding-top: 8px !important;
}

/* Remove margem exagerada do título */
.area h2 {
  margin-top: 4px !important;
}

/* Técnico comeÃ§a mais em cima */
section[data-section="tecnico"] {
  padding-top: 4px !important;
}

/* =====================================================
   FIX GLOBAL - CONTEÚDO COLADO NO TOPO
   (Técnico / LiberaÃ§ão / Logs / IA / Relatórios)
   ===================================================== */

/* Remove qualquer margem/padding global */
html, body {
  margin: 0 !important;
  padding: 0 !important;
  height: 100%;
  overflow: hidden;
}

/* App ocupa tela inteira */
#app {
  height: 100vh !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Dashboard ocupa tudo sem sobra */
.dashboard {
  height: 100vh !important;
  min-height: 100vh !important;
  margin: 0 !important;
}

/* Topbar com altura fixa */
.topbar {
  padding: 8px 16px !important;
  height: 56px !important;
  min-height: 56px !important;
}

/* Coluna direita ajustada */
.dashboard-main {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

/* �rea principal começa logo abaixo da topbar */
.content {
  flex: 1;
  min-height: 0;
  overflow-y: auto !important;

  padding: 12px 16px 20px !important;
  margin: 0 !important;
}

/* Todas as seções alinhadas no topo */
section[data-section] {
  margin: 0 !important;
  padding-top: 0 !important;
  min-height: 100%;
}

/* Remove espaÃ§o extra dos títulos */
.area {
  margin-top: 0 !important;
}

.area h2 {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Cards nunca empurram a tela */
.cards,
.cards-top {
  margin-top: 6px !important;
}

/* LOS nunca corta */
.card-los.card-los-compact {
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

#fin-preview {
  min-height: 220px;
  resize: vertical;
  line-height: 1.4;
  font-size: 14px;
}

.finance-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.finance-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding: 6px 2px 0;
}

.finance-kicker {
  margin: 0 0 6px;
  color: #dc2626;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.finance-hero h2 {
  margin: 0;
}

.finance-hero-badge {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #fecaca;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff1f2, #ffffff);
  box-shadow: 0 12px 28px rgba(220, 38, 38, 0.08);
}

.finance-hero-label {
  color: #991b1b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finance-main-grid,
.finance-bottom-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.35fr);
  gap: 18px;
}

.finance-bottom-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.finance-card {
  padding: 22px !important;
  border-radius: 22px !important;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #fffdfd 100%) !important;
}

.finance-card-full {
  width: 100%;
}

.finance-card-is-hidden {
  display: none !important;
}

.finance-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.finance-card-head-compact {
  align-items: center;
}

.finance-card-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
}

.finance-card-head p {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.finance-card-tag {
  flex-shrink: 0;
  padding: 7px 11px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.finance-card-tag-danger {
  background: #fef2f2;
  color: #b91c1c;
}

.finance-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.finance-form-grid-compact {
  align-items: start;
}

.finance-card-config {
  padding-bottom: 18px !important;
}

.finance-config-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(420px, 1.35fr);
  gap: 16px;
  align-items: end;
}

.finance-config-number,
.finance-config-upload {
  margin: 0 !important;
}

.finance-upload-box-inline {
  padding: 12px 14px;
  min-height: 50px;
  justify-content: center;
}

.finance-form-span-2 {
  grid-column: 1 / -1;
}

.finance-field-help {
  display: block;
  margin-top: 6px;
  color: #64748b;
  line-height: 1.45;
}

.finance-upload-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

.finance-template-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finance-template-search-group {
  margin: 0 !important;
}

.finance-template-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.finance-template-filter-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px !important;
  font-size: 12px;
  font-weight: 700;
}

.finance-template-filter-btn.is-active {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.16) !important;
}

.finance-template-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.finance-template-summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  border: 1px solid #e2e8f0;
}

.finance-template-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}

.finance-template-list-master {
  min-height: 420px;
}

.finance-card-model {
  grid-column: 1;
}

.finance-template-list::-webkit-scrollbar {
  width: 8px;
}

.finance-template-list::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.finance-template-empty {
  padding: 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: #64748b;
  font-size: 13px;
}

.finance-template-item {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff !important;
  color: #0f172a !important;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.finance-template-item:hover {
  transform: translateY(-1px);
  border-color: #f87171 !important;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
}

.finance-template-item.is-selected {
  border-color: #dc2626 !important;
  background: linear-gradient(135deg, #fff1f2, #ffffff) !important;
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.12) !important;
}

.finance-template-item-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.finance-template-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.finance-template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.finance-template-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.finance-template-chip-vars {
  background: #fef3c7;
  color: #92400e;
}

.finance-template-chip-simple {
  background: #dcfce7;
  color: #166534;
}

.finance-template-chip-image {
  background: #dbeafe;
  color: #1d4ed8;
}

.finance-template-item-indicator {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border-radius: 999px;
  border: 2px solid #cbd5e1;
  background: #ffffff;
}

.finance-template-item.is-selected .finance-template-item-indicator {
  border-color: #dc2626;
  background: radial-gradient(circle at center, #dc2626 0 45%, transparent 46%);
}

.finance-template-status {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
}

.finance-template-status-inline {
  padding: 12px 14px;
}

.finance-template-mode-badge {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.finance-template-mode-neutral {
  background: #e2e8f0;
  color: #475569;
}

.finance-template-mode-vars {
  background: #fef3c7;
  color: #92400e;
}

.finance-template-mode-simple {
  background: #dcfce7;
  color: #166534;
}

.finance-template-requirement {
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.finance-preview-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 16px;
  align-items: stretch;
}

.finance-preview-main {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.finance-preview-image-wrap {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.finance-preview-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.finance-preview-phone {
  min-height: 340px;
  border-radius: 24px;
  padding: 16px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finance-preview-phone-top {
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.finance-preview-bubble-wrap {
  flex: 1;
  overflow: auto;
  display: flex;
}

.finance-preview-bubble {
  max-width: min(100%, 520px);
  margin-left: auto;
  padding: 16px 18px;
  border-radius: 22px 22px 8px 22px;
  background: linear-gradient(135deg, #dcfce7, #ffffff);
  border: 1px solid #bbf7d0;
  color: #0f172a;
  white-space: pre-wrap;
  line-height: 1.6;
  font-size: 14px;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.07);
}

.finance-preview-bubble-empty {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-color: #e2e8f0;
  color: #64748b;
}

.finance-preview-variable {
  color: #1d4ed8;
  font-weight: 700;
}

.finance-preview-vars {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.finance-preview-vars-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.finance-preview-vars-head strong {
  color: #0f172a;
  font-size: 14px;
}

.finance-inline-note {
  margin: -4px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}

.finance-vars-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.finance-vars-grid-stacked {
  grid-template-columns: 1fr;
  gap: 10px;
}

.finance-var-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.finance-var-field label {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.finance-var-token {
  color: #64748b;
  font-size: 11px;
}

.finance-preview-vars + .finance-preview-vars {
  margin-top: 2px;
}

.finance-link-button {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  text-decoration: none;
}

.finance-template-test-card {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.finance-template-test-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.finance-template-test-head h4 {
  margin: 0;
  font-size: 14px;
  color: #0f172a;
}

.finance-template-test-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.finance-template-test-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.finance-template-test-phone {
  min-width: 0;
}

.finance-template-test-actions {
  display: flex;
  align-items: end;
}

.finance-template-test-actions button {
  min-height: 42px;
  white-space: nowrap;
}

.finance-template-button-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff, #ffffff);
}

.finance-template-button-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

.finance-template-button-label small {
  color: #64748b;
  font-weight: 700;
}

.finance-template-button-name {
  color: #1d4ed8;
  font-weight: 800;
}

.finance-model-actions,
.finance-actions-row,
.finance-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.finance-btn-primary {
  background: linear-gradient(135deg, #dc2626, #ef4444) !important;
  border: 1px solid #b91c1c !important;
  box-shadow: 0 14px 28px rgba(220, 38, 38, 0.18) !important;
}

.finance-btn-primary:hover {
  background: linear-gradient(135deg, #b91c1c, #dc2626) !important;
}

.finance-btn-pause {
  border-color: #f59e0b !important;
  color: #b45309 !important;
}

.finance-btn-pause:hover {
  background: #fff7ed !important;
}

.finance-btn-cancel {
  border-color: #ef4444 !important;
  color: #b91c1c !important;
}

.finance-btn-cancel:hover {
  background: #fef2f2 !important;
}

.finance-btn-clear {
  border-color: #94a3b8 !important;
  color: #475569 !important;
}

.finance-btn-clear:hover {
  background: #f8fafc !important;
}

.finance-status-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff7ed, #ffffff);
  border: 1px solid #fed7aa;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.finance-status-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.finance-status-label {
  color: #9a3412;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.finance-status-line {
  min-height: 20px;
  margin: 0 !important;
  font-size: 14px;
  font-weight: 600;
}

.finance-progress-percentage {
  color: #0f172a;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

.finance-progress-box {
  margin-top: 0;
  height: 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e2e8f0, #cbd5e1);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

#fin-relatorio,
#fin-erros {
  min-height: 220px;
  border-radius: 16px;
  background: #f8fafc !important;
  line-height: 1.5;
}

#fin-erros {
  max-height: 260px;
  overflow-y: auto;
}

.finance-card-errors {
  background: linear-gradient(180deg, #ffffff 0%, #fff7f7 100%) !important;
}

.finance-blocked-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.finance-blocked-hero {
  padding-top: 2px;
}

.finance-blocked-subtitle {
  margin: 6px 0 0;
  max-width: 680px;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.finance-blocked-hero-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  min-width: min(100%, 560px);
}

.finance-blocked-total-card {
  min-width: 0;
  padding: 10px 12px !important;
  border-radius: 14px;
}

.finance-blocked-card {
  padding: 18px !important;
}

.finance-blocked-filters-card,
.finance-blocked-table-card {
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.05);
}

.finance-blocked-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 14px;
}

.finance-blocked-filter {
  margin: 0 !important;
}

.finance-blocked-filter span {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.finance-blocked-filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

.finance-blocked-status {
  margin: 0;
}

.finance-blocked-table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.finance-blocked-table {
  min-width: 1520px;
  table-layout: fixed;
}

.finance-blocked-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}

.finance-blocked-table td:nth-child(1) { width: 160px; }
.finance-blocked-table td:nth-child(2) { width: 400px; }
.finance-blocked-table td:nth-child(3) { width: 142px; }
.finance-blocked-table td:nth-child(4) { width: 126px; }
.finance-blocked-table td:nth-child(5) { width: 128px; }
.finance-blocked-table td:nth-child(6) { width: 112px; }
.finance-blocked-table td:nth-child(7) { width: 116px; text-align: right; }
.finance-blocked-table td:nth-child(8) { width: 110px; }
.finance-blocked-table td:nth-child(9) { width: 134px; }
.finance-blocked-table th:nth-child(10),
.finance-blocked-table td:nth-child(10) { width: 220px; }
.finance-blocked-table th:nth-child(11),
.finance-blocked-table td:nth-child(11) { width: 72px; }
.finance-blocked-table th:nth-child(12),
.finance-blocked-table td:nth-child(12) { width: 220px; }

.finance-blocked-copy-stack {
  display: none;
  min-width: 0;
}

.finance-blocked-copy-stack small {
  color: #64748b;
  font-size: 11px;
}

.finance-blocked-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.finance-blocked-copy-btn:hover {
  border-color: #f87171;
  background: #fff7f7;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.finance-blocked-copy-btn--small {
  min-height: 32px;
  padding: 6px 10px;
  width: fit-content;
}

.finance-blocked-copy-btn--icon {
  width: 32px;
  min-width: 32px;
  justify-content: center;
  padding: 0;
  border-radius: 10px;
}

.finance-blocked-copy-text {
  display: block;
  width: 100%;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.finance-blocked-inline-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: stretch;
}

.finance-blocked-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

.finance-blocked-link-btn:hover {
  background: #dbeafe;
}

.finance-blocked-muted {
  color: #94a3b8;
  font-size: 12px;
}

.finance-blocked-money {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.finance-blocked-name-text {
  display: block;
  width: 100%;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.finance-unified-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.finance-unified-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.finance-unified-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.finance-unified-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.finance-unified-warning {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
  font-size: 13px;
  line-height: 1.45;
}

.finance-unified-selection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.finance-unified-selection-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.finance-unified-selection-note {
  font-size: 13px;
  color: #6b7280;
}

.finance-unified-selection-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.finance-unified-table-wrap {
  margin-top: 0;
  max-height: 620px;
  overflow-y: auto;
  overflow-x: auto;
}

.finance-unified-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
}

.finance-unified-table th:first-child,
.finance-unified-table td:first-child {
  width: 54px;
  text-align: center;
}

.finance-unified-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.finance-unified-type-badge.is-bloqueado {
  background: rgba(185, 28, 28, 0.12);
  color: #b91c1c;
}

.finance-unified-type-badge.is-ativo {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
}

.finance-unified-row-check {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .finance-main-grid,
  .finance-bottom-grid,
  .finance-preview-stage {
    grid-template-columns: 1fr;
  }

  .finance-blocked-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .finance-blocked-hero-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .finance-blocked-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .finance-blocked-hero-badges {
    width: 100%;
    min-width: 0;
  }

  .finance-config-row {
    grid-template-columns: 1fr;
  }

  .finance-unified-selection-actions {
    width: 100%;
  }

  .finance-unified-selection-actions .btn-outline,
  .finance-unified-selection-actions .finance-btn-primary,
  .finance-unified-hero-actions .btn-outline {
    flex: 1 1 100%;
  }

  .finance-template-list,
  .finance-template-list-master {
    max-height: 320px;
    min-height: 0;
  }

  .finance-preview-vars {
    order: 2;
  }
}

@media (max-width: 780px) {
  .finance-hero,
  .finance-card-head {
    flex-direction: column;
  }

  .finance-form-grid,
  .finance-vars-grid {
    grid-template-columns: 1fr;
  }

  .finance-template-test-grid {
    grid-template-columns: 1fr;
  }

  .finance-card {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .finance-blocked-filters-grid {
    grid-template-columns: 1fr;
  }

  .finance-blocked-hero-badges {
    grid-template-columns: 1fr;
  }

  .finance-actions-row button,
  .finance-secondary-actions button,
  .finance-link-button {
    width: 100%;
  }

  .finance-blocked-filter-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .finance-blocked-filter-actions .btn-outline {
    width: 100%;
  }

  .finance-preview-phone {
    min-height: 280px;
  }
}

/* =====================================================
   TEMA LIGHT - 1 CLICK TELECOM (MINIMALISTA)
   ===================================================== */

:root {
  --bg0: #f8fafc;
  --bg1: #ffffff;

  --text: #0f172a;
  --muted: #64748b;

  --glass: #ffffff;
  --glass2: #ffffff;
  --stroke: #e5e7eb;

  --accent: #dc2626;   /* Vermelho 1 Click */
  --accent2: #ef4444;

  --danger: #dc2626;
  --success: #16a34a;

  --shadow: 0 4px 12px rgba(0,0,0,0.06);
  --shadow2: 0 2px 6px rgba(0,0,0,0.05);
}

/* ======================
   BODY
   ====================== */

body {
  background: #f8fafc !important;
  color: var(--text) !important;
}

/* ======================
   DASHBOARD
   ====================== */

.dashboard {
  background: #ffffff !important;
  border: none !important;
  box-shadow: none !important;
}

/* ======================
   SIDEBAR
   ====================== */

.sidebar,
#sidebar,
.leftbar {
  background: #ffffff !important;
  border-right: 1px solid #e5e7eb !important;
}

.sidebar:before,
#sidebar:before,
.leftbar:before {
  display: none !important;
}

.side-logo,
.logo-circle {
  background: #dc2626 !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* ======================
   NAV
   ====================== */

.sidebar .nav a,
.sidebar .nav button,
#sidebar .nav a,
#sidebar .nav button {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #0f172a !important;
}

.sidebar .nav a:hover,
.sidebar .nav button:hover {
  background: #fef2f2 !important;
  border-color: #dc2626 !important;
}

.sidebar .nav .active {
  background: #fee2e2 !important;
  border-color: #dc2626 !important;
  box-shadow: none !important;
  color: #991b1b !important;
}

/* ======================
   TOPBAR
   ====================== */

.topbar {
  background: #ffffff !important;
  border-bottom: 1px solid #e5e7eb !important;
  box-shadow: none !important;
}

.brand-name {
  color: #dc2626 !important;
  font-weight: 800;
}

/* ======================
   CONTENT
   ====================== */

.content {
  background: #f8fafc !important;
}

/* ======================
   CARDS
   ====================== */

.card,
.ai-main,
.ai-sidebar,
.modal {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: var(--shadow2) !important;
}

.card:before {
  display: none !important;
}

.area h2 {
  border-left: 3px solid #dc2626 !important;
  color: #0f172a !important;
}

/* ======================
   INPUTS
   ====================== */

input,
select,
textarea {
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #0f172a !important;
}

input:focus,
textarea:focus,
select:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220,38,38,0.15) !important;
}

/* ======================
   BUTTONS
   ====================== */

button {
  background: #dc2626 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-weight: 600;
}

button:hover {
  background: #b91c1c !important;
}

.btn-outline {
  background: #ffffff !important;
  border: 1px solid #dc2626 !important;
  color: #dc2626 !important;
}

.btn-outline:hover {
  background: #fee2e2 !important;
}

/* ======================
   STATUS / TEXTOS
   ====================== */

.status,
.ai-subtitle,
.brand-sub,
.user-info {
  color: #64748b !important;
}

/* ======================
   MODAL
   ====================== */

.modal-overlay {
  background: rgba(0,0,0,0.4) !important;
}

/* Modal central legível */
#modal-overlay.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  backdrop-filter: blur(2px);
}

#modal-overlay .modal {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.28) !important;
  border-radius: 16px !important;
}

#modal-overlay #modal-title {
  color: #0f172a !important;
  border-left: 4px solid #2563eb !important;
  padding-left: 10px;
}

#modal-overlay #modal-message {
  color: #334155 !important;
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 55vh;
  overflow: auto;
}

#modal-overlay .modal-actions {
  justify-content: flex-end;
}

#modal-overlay #modal-ok.btn-primary {
  background: #2563eb !important;
  color: #ffffff !important;
  border: 1px solid #1d4ed8 !important;
  box-shadow: none !important;
}

#modal-overlay #modal-ok.btn-primary:hover {
  background: #1d4ed8 !important;
}

#modal-overlay #modal-cancel.btn-outline {
  background: #ffffff !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

#modal-overlay #modal-cancel.btn-outline:hover {
  background: #f8fafc !important;
}

/* ConfirmaÃ§ão: modal maior e texto em destaque */
#modal-overlay[data-confirm="1"] .modal {
  max-width: 640px !important;
  padding: 26px 24px 20px !important;
}

#modal-overlay[data-confirm="1"] #modal-title {
  font-size: 24px !important;
  font-weight: 800 !important;
}

#modal-overlay[data-confirm="1"] #modal-message {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}

/* Sucesso: mesmo destaque visual do card de confirmaÃ§ão */
#modal-overlay[data-success="1"] .modal {
  max-width: 640px !important;
  padding: 26px 24px 20px !important;
}

#modal-overlay[data-success="1"] #modal-title {
  font-size: 24px !important;
  font-weight: 800 !important;
  border-left-color: #16a34a !important;
}

#modal-overlay[data-success="1"] #modal-message {
  font-size: 20px !important;
  font-weight: 800 !important;
  color: #14532d !important;
}

/* ======================
   SCROLL
   ====================== */

.content::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
  border: none !important;
}

.card-los.card-los-compact::-webkit-scrollbar-thumb {
  background: #cbd5e1 !important;
}

.fin-progress-box {
  width: 100%;
  height: 18px;
  background: #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}

#fin-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg,#22c55e,#16a34a);
  transition: width 0.4s ease;
}

@media (max-width: 1180px) {
  .finance-card-config,
  .finance-card-template,
  .finance-card-preview,
  .finance-card-actions,
  .finance-card-report,
  .finance-card-errors {
    grid-column: 1 / -1;
  }

  .finance-template-top,
  .finance-template-groups,
  .finance-form-grid,
  .finance-template-extra-grid {
    grid-template-columns: 1fr;
  }

  .finance-template-list {
    max-height: 280px;
  }
}

@media (max-width: 720px) {
  .finance-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .finance-card {
    padding: 18px !important;
    border-radius: 18px !important;
  }

  .finance-card-head {
    flex-direction: column;
  }

  .finance-actions-row button,
  .finance-secondary-actions button,
  .finance-link-button,
  .finance-template-test-actions button {
    width: 100%;
  }
}

/* Histórico de disparos */
.hist-toolbar {
  display: grid;
  grid-template-columns: repeat(4, minmax(190px, 220px)) auto minmax(220px, 1fr);
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}

.hist-date-group {
  margin: 0 !important;
}

.hist-date-group input[type="date"] {
  min-width: 210px;
  height: 42px;
}

.hist-date-group select {
  min-width: 190px;
  height: 42px;
}

#btn-hist-atualizar,
#btn-hist-exportar {
  height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.hist-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  align-self: end;
}

.hist-actions .btn-outline {
  margin: 0 !important;
}

.hist-total-card {
  justify-self: end;
  min-width: 250px;
  max-width: 320px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: linear-gradient(135deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 8px 12px;
}

.hist-total-label {
  font-size: 12px;
  color: #1e3a8a;
  font-weight: 700;
}

.hist-total-value {
  font-size: 22px;
  line-height: 1.1;
  color: #1d4ed8;
  font-weight: 900;
}

.hist-table {
  table-layout: fixed;
}

.hist-table th,
.hist-table td {
  padding: 6px 8px;
  font-size: 12px;
  line-height: 1.15;
  vertical-align: middle;
}

.hist-table th {
  white-space: nowrap;
}

.hist-table td:nth-child(1) { width: 142px; }
.hist-table td:nth-child(2) { width: 112px; }
.hist-table td:nth-child(3) { width: 190px; }
.hist-table td:nth-child(4) { width: 190px; }
.hist-table td:nth-child(5) { width: 76px; text-align: center; }
.hist-table td:nth-child(6) { width: 76px; text-align: right; }
.hist-table td:nth-child(7) { width: 76px; text-align: center; }
.hist-table td:nth-child(8) { width: 74px; text-align: center; }

.hist-cell-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hist-actions-cell {
  white-space: nowrap;
}

.hist-detail-btn {
  min-height: 24px;
  padding: 2px 8px;
  border-width: 1px;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1;
}

.hist-detail-pre {
  margin: 0 0 14px;
  white-space: pre-wrap;
  font: 13px/1.45 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #111827;
}

.hist-detail-errors-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.hist-copy-errors-btn {
  padding: 5px 10px;
  font-size: 12px;
}

.hist-detail-errors-wrap {
  overflow: auto;
  max-height: 320px;
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  background: #fff;
}

.hist-detail-errors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.hist-detail-errors-table th,
.hist-detail-errors-table td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  white-space: nowrap;
}

.hist-detail-errors-table thead th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  z-index: 1;
}

@media (max-width: 1100px) {
  .hist-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .hist-actions {
    grid-column: 1 / -1;
  }
  .hist-date-group input[type="date"],
  .hist-date-group select {
    min-width: 100%;
  }
  .hist-total-card {
    grid-column: 1 / -1;
    justify-self: stretch;
  }
}

/* =====================================================
   NOC SMARTOLT - ALERTAS VISUAIS PROFISSIONAIS
   (VERSÃƒO PREMIUM DARK - igual print)
   ===================================================== */

/* ============================= */
/* TOKENS / CORES                */
/* ============================= */

:root{
  --noc-bg:#050914;
  --noc-panel:#0b1220;
  --noc-panel2:#0e1626;
  --noc-border:rgba(255,255,255,0.06);

  --noc-red:#ff2d2d;
  --noc-yellow:#f5c046;
  --noc-green:#3cff9d;
  --noc-blue:#3da7ff;

  --noc-text:#ffffff;
  --noc-muted:rgba(255,255,255,0.78);
}

/* Fundo geral do NOC */
[data-section="noc"]{
  background: var(--noc-bg);
  padding-bottom:40px;
  color: var(--noc-text);
}

/* forÃ§a qualquer texto do NOC ficar legível */
[data-section="noc"] p,
[data-section="noc"] span,
[data-section="noc"] small,
[data-section="noc"] label{
  color: var(--noc-text);
}

/* =====================================================
   TOPBAR (igual print)
   ===================================================== */

.noc-topbar{
  background: linear-gradient(90deg,#0c1627,#0b1220);
  border-radius:14px;
  padding:14px 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border:1px solid var(--noc-border);
  box-shadow:0 0 40px rgba(0,0,0,.6);
}

.noc-title{
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: .8px;
  color: var(--noc-text);
}

.noc-clock{
  font-size: 28px;
  font-weight: 1000;
  color:var(--noc-blue);
}

/* Ações */
.noc-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}

/* =====================================================
   GRID (novo layout)
   ===================================================== */

.noc-grid{
  display:grid;
  grid-template-columns: repeat(12,1fr);
  gap:18px;
  margin-top:18px;
}

.noc-card{
  background: linear-gradient(180deg,#0f1b2e,#0b1220);
  border-radius:18px;
  padding:18px;
  border:1px solid var(--noc-border);
  box-shadow:0 20px 60px rgba(0,0,0,.7);
  position:relative;
  overflow:hidden;
}

/* brilho / textura sutil */
.noc-card::before{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 260px at 14% 18%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(520px 260px at 90% 12%, rgba(61,167,255,0.05), transparent 65%);
  pointer-events:none;
  opacity:.9;
}


/* =====================================================
   HEAD / TITULOS
   ===================================================== */

.noc-card-head{
  display:flex;
  align-items:center;
  gap:10px;
}

.noc-card-ico{
  font-size:18px;
  opacity:.9;
}

.noc-card-title{
  font-size:16px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1.05px;
  color:var(--noc-text);
}

/* =====================================================
   NÚMEROS (igual print)
   ===================================================== */

.noc-big{
  font-size:72px;
  font-weight:1000;
  margin:10px 0 6px 0;
  color: var(--noc-text);
  letter-spacing:.5px;
}

/* subtítulo */
.noc-muted{
  color: var(--noc-muted);
  font-size:13px;
  opacity:.95;
}

/* Sub linha (Status: badge) */
.noc-sub{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:6px;
}

/* =====================================================
   BADGES (CRÃTICO / OK)
   ===================================================== */

.noc-pill{
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.5px;
  white-space:nowrap;
}

.noc-pill.danger{
  background:rgba(255,0,0,.15);
  color:var(--noc-red);
  border:1px solid rgba(255,0,0,.35);
  box-shadow:0 0 22px rgba(255,45,45,.10);
}

.noc-pill.warn{
  background:rgba(255,200,0,.15);
  color:var(--noc-yellow);
  border:1px solid rgba(255,200,0,.35);
  box-shadow:0 0 22px rgba(245,192,70,.10);
}

.noc-pill.ok{
  background:rgba(0,255,120,.15);
  color:var(--noc-green);
  border:1px solid rgba(0,255,120,.35);
  box-shadow:0 0 22px rgba(60,255,157,.10);
}

/* =====================================================
   EFEITOS CRÃTICOS (igual print)
   - SEM "piscar feio"
   - glow suave respirando
   ===================================================== */

@keyframes glowPulseRed{
  0%   { box-shadow:0 20px 60px rgba(0,0,0,.7), 0 0 18px rgba(255,45,45,.12); }
  50%  { box-shadow:0 20px 60px rgba(0,0,0,.7), 0 0 44px rgba(255,45,45,.28); }
  100% { box-shadow:0 20px 60px rgba(0,0,0,.7), 0 0 18px rgba(255,45,45,.12); }
}

@keyframes glowPulseYellow{
  0%   { box-shadow:0 20px 60px rgba(0,0,0,.7), 0 0 14px rgba(245,192,70,.10); }
  50%  { box-shadow:0 20px 60px rgba(0,0,0,.7), 0 0 34px rgba(245,192,70,.18); }
  100% { box-shadow:0 20px 60px rgba(0,0,0,.7), 0 0 14px rgba(245,192,70,.10); }
}

/* Total LOS - vermelho neon igual print */
.noc-card.danger .noc-big{
  color:var(--noc-red);
  text-shadow:0 0 30px rgba(255,45,45,.35);
}

/* Luz média */
.noc-card.warn .noc-big{
  color:var(--noc-yellow);
  text-shadow:0 0 30px rgba(245,192,70,.25);
}

/* CTO em LOS: mais crítico (glow forte) */
.noc-card.cto.ok{
  border:1px solid rgba(0,255,120,.18);
  box-shadow:0 20px 60px rgba(0,0,0,.7), 0 0 18px rgba(0,255,120,.12);
}

.noc-card.cto.danger{
  border:1px solid rgba(255,45,45,.25);
  animation: glowPulseRed 1.8s ease-in-out infinite;
}

/* =====================================================
   TOTAL POR OLT (mini cards + barra igual print)
   ===================================================== */

.noc-olt-row{
  display:flex;
  gap:14px;
  margin-top:10px;
}

.noc-olt-mini{
  flex:1;
  background:#111a2b;
  border-radius:14px;
  padding:14px;
  border:1px solid var(--noc-border);
  position:relative;
}

.noc-olt-name{
  font-size:13px;
  color:var(--noc-muted);
  font-weight:900;
}

.noc-olt-count{
  font-size:44px;
  font-weight:1000;
  margin-top:6px;
  color: var(--noc-text);
}

.noc-olt-tag{
  position:absolute;
  top:12px;
  right:12px;
  padding:4px 10px;
  border-radius:999px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.4px;
  border:1px solid rgba(255,255,255,0.08);
}

.noc-olt-tag.danger{
  background:rgba(255,45,45,.14);
  color:#ffd1d1;
  border-color:rgba(255,45,45,.22);
}
.noc-olt-tag.warn{
  background:rgba(245,192,70,.14);
  color:#fff3cc;
  border-color:rgba(245,192,70,.22);
}

.noc-bar{
  margin-top:14px;
  height:12px;
  background:#111a2b;
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.05);
}

.noc-bar-fill{
  height:100%;
}

.noc-bar-fill.danger{
  background:linear-gradient(90deg,#ff2d2d,#ff5e5e);
  box-shadow:0 0 18px rgba(255,45,45,.22);
}

.noc-bar-fill.warn{
  background:linear-gradient(90deg,#f5c046,#ffd86f);
  box-shadow:0 0 18px rgba(245,192,70,.18);
}

.noc-bar-legend{
  display:flex;
  justify-content:space-between;
  margin-top:10px;
  color:var(--noc-muted);
  font-weight:800;
  font-size:12px;
}

/* =====================================================
   TABELA (igual print)
   ===================================================== */

.noc-table-card{
  margin-top:20px;
  background:#0b1220;
  border-radius:18px;
  padding:20px;
  border:1px solid var(--noc-border);
  box-shadow:0 20px 60px rgba(0,0,0,.65);
}

.noc-table-head{
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1.1px;
  font-size:18px;
  margin-bottom:12px;
  color:var(--noc-text);
}

.table-wrapper{
  overflow-x:auto;
}

[data-section="noc"] table{
  width:100%;
  border-collapse:collapse;
}

[data-section="noc"] th{
  color:var(--noc-muted);
  font-size:12px;
  padding:12px 12px;
  text-align:left;
  text-transform:uppercase;
  letter-spacing:.7px;
  border-bottom:1px solid rgba(255,255,255,0.06);
}

[data-section="noc"] td{
  color:var(--noc-text);
  padding:14px 12px;
  font-weight:700;
  border-top:1px solid rgba(255,255,255,0.05);
}

[data-section="noc"] tbody tr:hover{
  background:#111a2b;
}

/* chips na coluna LOS (se você usar no JS) */
.los-chip{
  background:rgba(255,0,0,.14);
  color:var(--noc-red);
  padding:6px 12px;
  border-radius:999px;
  font-weight:900;
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(255,45,45,.22);
}

/* =====================================================
   SUA BASE ANTIGA (mantida p/ não quebrar JS)
   ===================================================== */

/* 🔴 Total Geral em estado crítico (legado) */
.noc-alert-total {
  background: #dc2626 !important;
  color: #ffffff !important;
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  animation: glowPulseRed 1.8s ease-in-out infinite; /* melhor que piscar */
}

/* ðŸŸ  Porta crítica (>= 5 LOS) */
.noc-critical-row {
  background: rgba(255,45,45,0.10) !important;
  border-left: 4px solid rgba(255,45,45,0.55) !important;
  font-weight: 800;
}

/* 🔥 Possível rompimento (>= 10 LOS) */
.noc-rompimento-row {
  background: rgba(255,45,45,0.22) !important;
  color: #ffffff !important;
  font-weight: 900;
  border-left: 4px solid rgba(255,45,45,0.75) !important;
}

/* =====================================================
   TOTAL GERAL - NÃVEIS NOC (legado)
   ===================================================== */

.noc-total-ok {
  background: rgba(0,255,120,0.14);
  border: 1px solid rgba(0,255,120,0.25);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
}

.noc-total-warning {
  background: rgba(245,192,70,0.14);
  border: 1px solid rgba(245,192,70,0.25);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  animation: glowPulseYellow 2.0s ease-in-out infinite;
}

.noc-total-critical {
  background: rgba(255,45,45,0.14);
  border: 1px solid rgba(255,45,45,0.25);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 12px;
  animation: glowPulseRed 1.6s ease-in-out infinite;
}

/* =====================================================
   📺 TV MODE NOC 
  
   ===================================================== */

body.tv-mode .sidebar,
body.tv-mode .topbar {
  display: none !important;
}

/* Dashboard vira 1 coluna e ocupa a tela */
body.tv-mode .dashboard {
  grid-template-columns: 1fr !important;
  height: 100vh !important;
}

/* Coluna direita ocupa tudo */
body.tv-mode .dashboard-main {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

/* Conteúdo: sem exagero, sem “empurrar” */
body.tv-mode .content {
  padding: 14px !important;     /* era 30px: isso estoura fácil */
  overflow: hidden !important;  /* evita a página toda ficar “danÃ§ando” */
  background: var(--noc-bg) !important;
  min-height: 0 !important;
}

/* Só o NOC pode rolar (se precisar) */
body.tv-mode section[data-section="noc"]{
  height: 100vh;
  overflow: hidden;
  padding-bottom: 0;
}

/* ✅ NÃƒO USAR SCALE (isso causa sobreposiÃ§ão no grid) */
body.tv-mode .noc-card{
  transform: none !important;
}

/* Ajusta o GRID do NOC para telas cheias */
body.tv-mode .noc-grid{
  gap: 12px !important;
}

/* Números gigantes: limita com clamp (evita estourar e sobrepor) */
body.tv-mode .noc-big{
  font-size: clamp(56px, 6.8vw, 96px) !important;
  line-height: 0.95 !important;
}

body.tv-mode .noc-card{
  min-height: 300px;
  padding: 24px 24px 20px;
}

body.tv-mode #card-cto-los.cto-large,
body.tv-mode #card-cto-powerfail.cto-large{
  min-height: 460px;
}

body.tv-mode .noc-card-title{
  font-size: 15px;
}

body.tv-mode .noc-olt-count{
  font-size: clamp(46px, 4.2vw, 64px);
}

/* Cards "Total por OLT": evita quebrar e ficar por cima */
body.tv-mode .noc-olt-row{
  flex-wrap: nowrap !important;
}

/* Tabela: rolagem interna (não deixa o card “crescer infinito”) */
body.tv-mode .noc-table-card{
  max-height: 36vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.tv-mode .table-wrapper{
  overflow: hidden !important;
  min-height: 0 !important;
  flex: 1 1 auto;
}

body.tv-mode #card-cto-los .noc-cto-list,
body.tv-mode #card-cto-powerfail .noc-cto-list{
  max-height: 220px;
  overflow: hidden;
}

/* Responsive no TV mode */
@media (max-width: 1100px){
  body.tv-mode .noc-grid{
    grid-template-columns: 1fr !important; /* em telas menores, empilha */
  }
}
/* =====================================================
   📊 GRÃFICO NOC
   ===================================================== */

#noc-chart {
  margin-top: 20px;
  width:100% !important;
  max-height: 320px;
}

/* =====================================================
   🚨 Badge de Alerta no Menu (opcional futuro)
   ===================================================== */

.nav-alert {
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: auto;
}
/* =========================
   IA - CHAT (fix visual)
========================= */

.ai-wrapper{
  display:flex;
  gap:16px;
  align-items:stretch;
  flex-wrap:wrap;
}

.ai-sidebar{
  width:240px;
  min-width:240px;
}

.ai-main{
  flex:1;
  min-width:320px;
  display:flex;
  flex-direction:column;
}

#ai-thread-list{
  display:flex;
  flex-direction:column;
  gap:8px;
  margin-top:8px;
}

#ai-thread-list button{
  width:100%;
  text-align:left;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid #e5e7eb;
  background:#fff;
  cursor:pointer;
  font-size:14px;
}

#ai-thread-list button.active{
  border-color:#ef4444;
  box-shadow:0 0 0 2px rgba(239,68,68,.12);
}

.ai-chat{
  height:420px;
  overflow:auto;
  padding:14px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  background:#f9fafb;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.ai-msg{
  display:flex;
  width:100%;
}

.ai-user{
  justify-content:flex-end;
}

.ai-assistant{
  justify-content:flex-start;
}

.ai-bubble{
  max-width:min(760px, 82%);
  padding:10px 12px;
  border-radius:14px;
  border:1px solid #e5e7eb;
  background:#ffffff;
}

.ai-user .ai-bubble{
  background:#2563eb;
  color:#fff;
  border-color:transparent;
  border-bottom-right-radius:6px;
}

.ai-assistant .ai-bubble{
  background:#ffffff;
  color:#111827;
  border-bottom-left-radius:6px;
}

.ai-meta{
  font-size:11px;
  opacity:.75;
  margin-bottom:6px;
}

.ai-content{
  white-space:pre-wrap;
  line-height:1.35;
  font-size:14px;
}

#ai-status.status{
  margin:8px 0;
}

.ai-topline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
}

.ai-input-row{
  display:flex;
  gap:10px;
  margin-top:10px;
}

.ai-input-row textarea{
  flex:1;
  resize:vertical;
  min-height:64px;
}

@media (max-width: 900px){
  .ai-sidebar{ width:100%; min-width:0; }
}

/* =====================================================
   NOC - CARD LAYOUT CENTER (alinhado / centralizado)
   Cole no FINAL do seu CSS
   ===================================================== */

/* garante que conteúdo não “vaze” por z-index do ::before */
.noc-card > * { position: relative; z-index: 2; }

/* card vira um grid interno bem organizado */
.noc-card{
  display: grid;
  grid-template-rows: auto 1fr auto; /* head | número | footer */
  align-items: center;
  justify-items: center;
  text-align: center;

  padding: 22px 22px 18px;
  border-radius: 20px;
  overflow: hidden;
}

/* deixa o brilho mais “premium” e uniforme */
.noc-card::before{
  opacity: .95;
  filter: blur(10px);
}

/* =====================================================
   HEAD (título + ícone) centralizados
   ===================================================== */

.noc-card-head{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;  /* ✅ central */
  gap: 12px;
  margin-bottom: 10px;
}

.noc-card-ico{
  font-size: 18px;
}

.noc-card-title{
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 1.05px;
  text-transform: uppercase;
  opacity: .95;
}

/* =====================================================
   NÚMERO (LOS, LUZ, CTO etc.) 100% centralizado
   ===================================================== */

.noc-big{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;  /* ✅ central */
  text-align: center;

  margin: 0;
  padding: 10px 0 8px;
  line-height: .95;
  font-size: clamp(74px, 5.2vw, 98px);
}

/* =====================================================
   SUB/FOOTER (Status + texto menor) centralizados
   ===================================================== */

.noc-sub{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* ✅ central */
  gap: 12px;
  margin-top: 8px;
}

.noc-muted{
  width: 100%;
  text-align: center;
  margin-top: 8px;
  font-size: 15px;
  opacity: .85;
}

/* =====================================================
   BORDA “NEON” POR ESTADO (igual print)
   - aplica quando você coloca .danger/.warn/.ok no card
   ===================================================== */

.noc-card.ok{
  border: 1px solid rgba(60,255,157,.22);
  box-shadow:
    0 20px 60px rgba(0,0,0,.70),
    0 0 0 1px rgba(60,255,157,.08) inset,
    0 0 26px rgba(60,255,157,.12);
}

.noc-card.warn{
  border: 1px solid rgba(245,192,70,.24);
  box-shadow:
    0 20px 60px rgba(0,0,0,.70),
    0 0 0 1px rgba(245,192,70,.08) inset,
    0 0 28px rgba(245,192,70,.14);
}

.noc-card.danger{
  border: 1px solid rgba(255,45,45,.26);
  box-shadow:
    0 20px 60px rgba(0,0,0,.70),
    0 0 0 1px rgba(255,45,45,.09) inset,
    0 0 34px rgba(255,45,45,.16);
}

/* brilho “respirando” só no danger (mais bonito que piscar) */
.noc-card.danger{
  animation: glowPulseRed 1.9s ease-in-out infinite;
}

/* =====================================================
   TOTAL POR OLT (card do meio) – alinha “mini-cards”
   ===================================================== */

.noc-olt-row{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.noc-olt-mini{
  text-align: left;                 /* mini card fica “organizado” */
  justify-self: stretch;
  padding: 16px;
  border-radius: 16px;
}

.noc-olt-count{
  margin-top: 8px;
  font-size: clamp(42px, 3.2vw, 56px);
}

/* barra do total por OLT bem centralizada */
.noc-bar{
  width: 100%;
}

/* =====================================================
   Ajuste fino: evita “número no canto” por padding herdado
   ===================================================== */

.noc-card *{
  text-align: inherit;
}
/* ============================
   🎛️ AÇÕES NOC (FORÃ‡ADO)
============================ */

.noc-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.noc-actions .noc-btn {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  min-height: 42px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.noc-actions .noc-btn .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 16px;
  line-height: 1;
}

.noc-actions .noc-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.noc-actions .noc-btn:active {
  transform: translateY(0);
}

.noc-actions .refresh {
  background: linear-gradient(180deg, rgba(24, 57, 43, 0.95), rgba(15, 36, 28, 0.95));
  color: #8dffd0;
  border-color: rgba(92, 255, 181, 0.35);
}

.noc-actions .refresh:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(92, 255, 181, 0.15),
    0 10px 26px rgba(25, 152, 99, 0.35);
}

.noc-actions .tv {
  background: linear-gradient(180deg, rgba(28, 47, 83, 0.95), rgba(16, 30, 56, 0.95));
  color: #9ec8ff;
  border-color: rgba(96, 163, 255, 0.35);
}

.noc-actions .tv:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(96, 163, 255, 0.15),
    0 10px 26px rgba(50, 111, 210, 0.35);
}

.noc-actions .mute {
  background: linear-gradient(180deg, rgba(71, 57, 18, 0.95), rgba(48, 36, 12, 0.95));
  color: #ffd37f;
  border-color: rgba(255, 197, 84, 0.35);
}

.noc-actions .mute:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(255, 197, 84, 0.15),
    0 10px 26px rgba(181, 126, 25, 0.35);
}

.noc-actions .mute.is-unmuted {
  background: linear-gradient(180deg, rgba(24, 57, 43, 0.95), rgba(15, 36, 28, 0.95));
  color: #8dffd0;
  border-color: rgba(92, 255, 181, 0.35);
}

.noc-actions .mute.is-unmuted:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 0 1px rgba(92, 255, 181, 0.15),
    0 10px 26px rgba(25, 152, 99, 0.35);
}

/* =====================================================
   NOC 1 CLICK - LAYOUT PROFISSIONAL
   ===================================================== */

section[data-section="noc"] {
  background: #0B1220;
  color: #e5eefc;
}

section[data-section="noc"] .noc-shell {
  display: grid;
  gap: 16px;
}

section[data-section="noc"] .noc-topbar {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(11, 18, 32, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  padding: 20px 22px;
  box-shadow: 0 20px 48px rgba(2, 6, 23, 0.38);
}

section[data-section="noc"] .noc-grid-professional {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 0;
}

section[data-section="noc"] .noc-section-label {
  grid-column: 1 / -1;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #94a3b8;
  padding-top: 6px;
}

section[data-section="noc"] .noc-card {
  background: #111827;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.32);
  text-align: left;
  justify-items: stretch;
  align-items: start;
  gap: 12px;
}

section[data-section="noc"] .noc-card::before {
  display: none;
}

section[data-section="noc"] .noc-card-head {
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin: 0;
}

section[data-section="noc"] .noc-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fb0c8;
}

section[data-section="noc"] .noc-big {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  font-size: 48px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-align: left;
  color: #f8fafc;
  text-shadow: none;
}

section[data-section="noc"] .noc-mid {
  font-size: 24px;
  line-height: 1.05;
  font-weight: 800;
  color: #f8fafc;
}

section[data-section="noc"] .noc-muted,
section[data-section="noc"] .noc-kpi-subtitle,
section[data-section="noc"] .cto-sub {
  color: #94a3b8;
  font-size: 0.88rem;
  line-height: 1.45;
  text-align: left;
}

section[data-section="noc"] .noc-card-foot {
  display: grid;
  gap: 10px;
  width: 100%;
}

section[data-section="noc"] .noc-inline-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

section[data-section="noc"] .noc-inline-metric {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  font-size: 0.8rem;
}

section[data-section="noc"] .noc-inline-metric strong {
  color: #f8fafc;
}

section[data-section="noc"] .noc-pill {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: none;
}

section[data-section="noc"] .noc-pill.ok {
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.28);
  color: #22C55E;
}

section[data-section="noc"] .noc-pill.warn {
  background: rgba(245, 158, 11, 0.14);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #F59E0B;
}

section[data-section="noc"] .noc-pill.danger {
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.28);
  color: #EF4444;
}

section[data-section="noc"] .noc-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
}

section[data-section="noc"] .noc-status-badge-ok {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.24);
  color: #22C55E;
}

section[data-section="noc"] .noc-status-badge-warn {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.24);
  color: #F59E0B;
}

section[data-section="noc"] .noc-status-badge-critical {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.24);
  color: #EF4444;
}

section[data-section="noc"] .noc-card-top {
  min-height: 196px;
}

section[data-section="noc"] .noc-card-region {
  min-height: 182px;
}

section[data-section="noc"] .noc-card-region-summary {
  justify-content: start;
}

section[data-section="noc"] .noc-region-summary {
  display: grid;
  gap: 12px;
  width: 100%;
}

section[data-section="noc"] .noc-region-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

section[data-section="noc"] .noc-region-row strong {
  color: #f8fafc;
  font-size: 1rem;
}

section[data-section="noc"] .noc-card-alert {
  grid-column: span 2;
  min-height: 280px;
}

section[data-section="noc"] .noc-cto-top {
  display: grid;
  gap: 8px;
  width: 100%;
}

section[data-section="noc"] .noc-cto-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

section[data-section="noc"] .cto-item {
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.14);
  padding: 14px;
}

section[data-section="noc"] .cto-item-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

section[data-section="noc"] .cto-title {
  display: grid;
  gap: 6px;
}

section[data-section="noc"] .cto-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  color: #93c5fd;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

section[data-section="noc"] .cto-code {
  color: #f8fafc;
  font-size: 1.02rem;
  font-weight: 800;
}

section[data-section="noc"] .cto-right {
  display: grid;
  gap: 8px;
  justify-items: end;
}

section[data-section="noc"] .los-chip {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.2);
  color: #fca5a5;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
}

section[data-section="noc"] .noc-bar {
  width: 100%;
  height: 10px;
  margin-top: 2px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

section[data-section="noc"] .noc-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #22C55E, #16A34A);
  box-shadow: none;
}

section[data-section="noc"] .noc-table-card {
  grid-column: 1 / -1;
  min-height: 0;
}

section[data-section="noc"] .noc-table-card-head {
  margin-bottom: 4px;
}

section[data-section="noc"] .noc-table-wrap {
  border-radius: 18px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.72);
}

section[data-section="noc"] .noc-table {
  min-width: 760px;
}

section[data-section="noc"] .noc-table th {
  background: rgba(15, 23, 42, 0.9);
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

section[data-section="noc"] .noc-table td {
  color: #e5eefc;
  border-top: 1px solid rgba(148, 163, 184, 0.08);
}

section[data-section="noc"] .noc-table tbody tr:hover {
  background: rgba(30, 41, 59, 0.62);
}

section[data-section="noc"] .noc-card.danger,
section[data-section="noc"] .noc-card.warn,
section[data-section="noc"] .noc-card.ok {
  animation: none;
}

section[data-section="noc"] #card-total-los .noc-big {
  color: #EF4444;
}

section[data-section="noc"] #card-power-fail-total .noc-big,
section[data-section="noc"] #card-cto-criticas .noc-big {
  color: #F59E0B;
}

section[data-section="noc"] #card-alertas-gerais .noc-big {
  color: #22C55E;
}

@media (max-width: 1200px) {
  section[data-section="noc"] .noc-grid-professional {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  section[data-section="noc"] .noc-card-alert,
  section[data-section="noc"] .noc-table-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  section[data-section="noc"] .noc-grid-professional {
    grid-template-columns: 1fr;
  }

  section[data-section="noc"] .noc-card-alert,
  section[data-section="noc"] .noc-table-card {
    grid-column: auto;
  }

  section[data-section="noc"] .noc-topbar,
  section[data-section="noc"] .noc-card {
    padding: 18px;
  }

  section[data-section="noc"] .noc-big {
    font-size: 40px;
  }

  section[data-section="noc"] .noc-mid {
    font-size: 22px;
  }

  section[data-section="noc"] .cto-item-top {
    flex-direction: column;
  }

  section[data-section="noc"] .cto-right {
    justify-items: start;
  }
}

/* =====================================================
   NOC 1CLICK TELECOM - LAYOUT ANTIGO RESTAURADO
   ===================================================== */

section[data-section="noc"]{
  background: #050914;
  color: #ffffff;
}

section[data-section="noc"] .noc-shell{
  display:grid;
  gap:18px;
}

section[data-section="noc"] .noc-topbar{
  display:grid;
  grid-template-columns: 1.2fr .8fr 1.4fr;
  align-items:center;
  gap:16px;
  padding:18px 20px;
  border-radius:18px;
  background: linear-gradient(90deg,#0c1627,#0b1220);
  border:1px solid rgba(61,167,255,.18);
  box-shadow:0 0 40px rgba(0,0,0,.6);
}

section[data-section="noc"] .noc-brand{
  min-width:0;
}

section[data-section="noc"] .noc-title{
  margin:0;
  font-size:28px;
  font-weight:1000;
  letter-spacing:.04em;
  color:#ffffff;
}

section[data-section="noc"] .noc-top-center{
  display:flex;
  justify-content:center;
}

section[data-section="noc"] #noc-status-geral{
  min-width:180px;
  text-align:center;
  justify-content:center;
}

section[data-section="noc"] .noc-top-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:wrap;
}

section[data-section="noc"] .noc-top-meta{
  display:flex;
  align-items:center;
  gap:10px;
}

section[data-section="noc"] .noc-grid-restored{
  display:grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap:18px;
  margin-top:0;
}

section[data-section="noc"] .noc-grid-restored > #card-total-los{
  grid-column: span 4;
}

section[data-section="noc"] .noc-grid-restored > #card-total-por-olt{
  grid-column: span 4;
}

section[data-section="noc"] .noc-grid-restored > #card-luzes-por-olt{
  grid-column: span 4;
}

section[data-section="noc"] .noc-grid-restored > #card-cto-los,
section[data-section="noc"] .noc-grid-restored > #card-cto-powerfail{
  grid-column: span 6;
}

section[data-section="noc"] .noc-grid-restored > .noc-table-card{
  grid-column: 1 / -1;
}

section[data-section="noc"] .noc-card{
  background: linear-gradient(180deg,#0f1b2e,#0b1220);
  border-radius:18px;
  padding:18px;
  border:1px solid rgba(61,167,255,.14);
  box-shadow:0 20px 60px rgba(0,0,0,.7);
  position:relative;
  overflow:hidden;
  display:grid;
  align-items:start;
  justify-items:stretch;
  text-align:left;
}

section[data-section="noc"] .noc-card::before{
  display:block;
  content:"";
  position:absolute;
  inset:-2px;
  background:
    radial-gradient(520px 260px at 14% 18%, rgba(255,255,255,0.06), transparent 60%),
    radial-gradient(520px 260px at 90% 12%, rgba(61,167,255,0.05), transparent 65%);
  pointer-events:none;
  opacity:.9;
  filter:none;
}

section[data-section="noc"] .noc-card > *{
  position:relative;
  z-index:2;
}

section[data-section="noc"] .noc-card-head{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}

section[data-section="noc"] .noc-card-title{
  font-size:16px;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:1.05px;
  color:#ffffff;
}

section[data-section="noc"] .noc-big{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  margin:0;
  padding:10px 0 8px;
  line-height:.95;
  font-size:clamp(74px,5.2vw,98px);
  color:#ffffff;
}

section[data-section="noc"] #card-total-los .noc-big,
section[data-section="noc"] #card-cto-los .noc-big,
section[data-section="noc"] #card-cto-powerfail .noc-big{
  color:#ff2d2d;
  text-shadow:0 0 30px rgba(255,45,45,.35);
}

section[data-section="noc"] .noc-muted{
  width:100%;
  text-align:center;
  margin-top:8px;
  font-size:13px;
  color:rgba(255,255,255,0.78);
}

section[data-section="noc"] .noc-pill{
  padding:6px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:900;
  letter-spacing:.5px;
  white-space:nowrap;
}

section[data-section="noc"] .noc-pill.danger{
  background:rgba(239,68,68,.15);
  color:#ef4444;
  border:1px solid rgba(239,68,68,.35);
}

section[data-section="noc"] .noc-pill.warn{
  background:rgba(245,158,11,.15);
  color:#f59e0b;
  border:1px solid rgba(245,158,11,.35);
}

section[data-section="noc"] .noc-pill.ok{
  background:rgba(34,197,94,.15);
  color:#22c55e;
  border:1px solid rgba(34,197,94,.35);
}

section[data-section="noc"] .noc-btn{
  min-height:42px;
  padding:11px 16px;
  border-radius:999px;
  border:1px solid rgba(239,68,68,.34);
  background:linear-gradient(180deg, rgba(95, 23, 23, 0.95), rgba(64, 17, 17, 0.95));
  color:#fecaca;
  font-weight:800;
  font-size:13px;
  letter-spacing:.04em;
  text-transform:uppercase;
}

section[data-section="noc"] .noc-btn.tv{
  color:#ffd4d4;
}

section[data-section="noc"] .noc-btn.mute{
  color:#ffe1e1;
}

section[data-section="noc"] .noc-card-olt-group{
  align-content:start;
}

section[data-section="noc"] .noc-olt-row{
  width:100%;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:12px;
}

section[data-section="noc"] .noc-olt-mini{
  background:#111a2b;
  border-radius:14px;
  padding:14px;
  border:1px solid rgba(61,167,255,.12);
  text-align:left;
}

section[data-section="noc"] .noc-olt-name{
  font-size:13px;
  color:rgba(255,255,255,0.78);
  font-weight:900;
}

section[data-section="noc"] .noc-olt-count{
  font-size:44px;
  font-weight:1000;
  margin-top:6px;
  color:#ffffff;
}

section[data-section="noc"] .noc-bar{
  margin-top:14px;
  height:12px;
  background:#111a2b;
  border-radius:999px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.05);
}

section[data-section="noc"] .noc-bar-fill{
  height:100%;
  background:linear-gradient(90deg,#ff2d2d,#ff5e5e);
}

section[data-section="noc"] #card-cto-los.cto-large,
section[data-section="noc"] #card-cto-powerfail.cto-large{
  min-height:360px;
}

section[data-section="noc"] .noc-cto-top{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-top:8px;
}

section[data-section="noc"] .noc-cto-list{
  display:grid;
  gap:10px;
  align-content:start;
}

section[data-section="noc"] .cto-item{
  border-radius:16px;
  background:rgba(17,26,43,.88);
  border:1px solid rgba(61,167,255,.12);
  padding:14px;
}

section[data-section="noc"] .cto-item-top{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
}

section[data-section="noc"] .cto-title{
  display:grid;
  gap:6px;
}

section[data-section="noc"] .cto-badge{
  display:inline-flex;
  width:fit-content;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(61,167,255,.16);
  color:#bfdbfe;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
}

section[data-section="noc"] .cto-code{
  color:#ffffff;
  font-size:1rem;
  font-weight:800;
}

section[data-section="noc"] .cto-sub{
  color:rgba(255,255,255,0.74);
  font-size:12px;
  line-height:1.45;
}

section[data-section="noc"] .los-chip{
  background:rgba(239,68,68,.14);
  color:#ffb4b4;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(239,68,68,.22);
}

section[data-section="noc"] .noc-table-card{
  margin-top:2px;
}

section[data-section="noc"] .table-wrap{
  overflow:auto;
}

section[data-section="noc"] .noc-table{
  width:100%;
  min-width:760px;
  border-collapse:collapse;
}

section[data-section="noc"] .noc-table th{
  color:rgba(255,255,255,0.78);
  font-size:12px;
  padding:12px;
  text-align:left;
  text-transform:uppercase;
  letter-spacing:.7px;
  border-bottom:1px solid rgba(255,255,255,0.06);
}

section[data-section="noc"] .noc-table td{
  color:#ffffff;
  padding:14px 12px;
  font-weight:700;
  border-top:1px solid rgba(255,255,255,0.05);
}

section[data-section="noc"] .noc-table tbody tr:hover{
  background:#111a2b;
}

@media (max-width: 1200px){
  section[data-section="noc"] .noc-topbar{
    grid-template-columns:1fr;
    justify-items:start;
  }

  section[data-section="noc"] .noc-top-center{
    width:100%;
    justify-content:flex-start;
  }

  section[data-section="noc"] .noc-top-actions{
    justify-content:flex-start;
  }

  section[data-section="noc"] .noc-grid-restored{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  section[data-section="noc"] .noc-grid-restored > #card-total-los,
  section[data-section="noc"] .noc-grid-restored > #card-total-por-olt,
  section[data-section="noc"] .noc-grid-restored > #card-luzes-por-olt,
  section[data-section="noc"] .noc-grid-restored > #card-cto-los,
  section[data-section="noc"] .noc-grid-restored > #card-cto-powerfail{
    grid-column:span 2;
  }
}

@media (max-width: 720px){
  section[data-section="noc"] .noc-grid-restored{
    grid-template-columns:1fr;
  }

  section[data-section="noc"] .noc-grid-restored > #card-total-los,
  section[data-section="noc"] .noc-grid-restored > #card-total-por-olt,
  section[data-section="noc"] .noc-grid-restored > #card-luzes-por-olt,
  section[data-section="noc"] .noc-grid-restored > #card-cto-los,
  section[data-section="noc"] .noc-grid-restored > #card-cto-powerfail{
    grid-column:auto;
  }

  section[data-section="noc"] .noc-olt-row{
    grid-template-columns:1fr;
  }

  section[data-section="noc"] .noc-big{
    font-size:56px;
  }
}

body.tv-mode #btn-noc-tv {
  background: linear-gradient(180deg, #2f7bff, #1f5fcb);
  color: #fff;
  border-color: rgba(151, 192, 255, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 18px rgba(96, 163, 255, 0.45);
}

/* =====================================================
   🧩 CTO EM LOS - CARD GRANDE + LISTA DETALHADA
   (colar no FINAL do seu CSS)
   ===================================================== */

/* 1) Cards CTO ocupam mais espaço no grid */
.noc-grid > #card-cto-los.cto-large { grid-column: span 6; }
.noc-grid > #card-cto-powerfail.cto-large { grid-column: span 6; }
.noc-grid > #card-luz-alta         { grid-column: span 4; }
.noc-grid > #card-luz-media        { grid-column: span 4; }

/* Em telas menores, empilha normal */
@media (max-width: 1100px){
  .noc-grid > #card-cto-los.cto-large,
  .noc-grid > #card-cto-powerfail.cto-large,
  .noc-grid > #card-luz-alta,
  .noc-grid > #card-luz-media {
    grid-column: span 12 !important;
  }
}

/* 2) Ajuste interno do card CTO (ele tem lista, então precisa “crescer”) */
#card-cto-los.cto-large{
  grid-template-rows: auto auto 1fr; /* head | topo (numero+pill) | lista */
  align-items: start;
  justify-items: stretch;
  text-align: left;
}

/* topo do card CTO (número + pills) */
#card-cto-los .noc-cto-top{
  display:flex;
  flex-direction: column;
  align-items:center;
  justify-content:center;
  gap:14px;
  margin-top:8px;
}

/* número CTO um pouco menor pra caber */
#card-cto-los .noc-big{
  font-size: 56px;
  justify-content: center;
  text-align: center;
  margin: 0 auto;
  padding: 0;
}

/* sub do CTO centralizado abaixo do número */
#card-cto-los .noc-sub{
  justify-content:center;
  align-items:center;
  margin-top:0;
}

#card-cto-los .noc-muted{
  margin-top:0;
  width:auto;
  opacity:.9;
}

/* 3) Container da lista */
.noc-cto-list{
  margin-top: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 12px;
  max-height: 260px;
  overflow: auto;
}

/* scroll bonito */
.noc-cto-list::-webkit-scrollbar{ width: 10px; }
.noc-cto-list::-webkit-scrollbar-track{ background: rgba(255,255,255,0.04); border-radius: 999px; }
.noc-cto-list::-webkit-scrollbar-thumb{ background: rgba(61,167,255,0.25); border-radius: 999px; }
.noc-cto-list::-webkit-scrollbar-thumb:hover{ background: rgba(61,167,255,0.35); }

/* vazio */
.noc-empty{
  color: rgba(255,255,255,0.75);
  font-weight: 800;
  font-size: 13px;
  padding: 10px;
}

/* 4) Item de CTO */
.cto-item{
  border: 1px solid rgba(255,255,255,0.07);
  background: linear-gradient(180deg, rgba(17,26,43,0.85), rgba(11,18,32,0.85));
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}

.cto-item:last-child{ margin-bottom: 0; }

.cto-item-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
}

.cto-title{
  display:flex;
  flex-direction:column;
  gap: 6px;
  min-width: 0;
}

.cto-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .4px;
  width: fit-content;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(61,167,255,0.10);
  color: rgba(255,255,255,0.92);
}

.cto-code{
  font-size: 18px;
  font-weight: 1000;
  letter-spacing: .8px;
  color: var(--noc-text);
  text-shadow: 0 0 18px rgba(61,167,255,0.18);
}

.cto-sub{
  font-size: 12px;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

.cto-right{
  display:flex;
  align-items:center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content:flex-end;
}

/* 5) Lista de clientes */
.cto-clientes{
  margin: 10px 0 0 0;
  padding-left: 18px;
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  line-height: 1.25;
}

.cto-clientes li{
  margin: 6px 0;
}

.muted{
  color: rgba(255,255,255,0.65);
  font-weight: 800;
}

/* 6) Ajustes no TV mode (mais espaço vertical) */
body.tv-mode .noc-cto-list{
  max-height: 36vh;
}

body.tv-mode #card-cto-los .noc-big{
  font-size: clamp(40px, 4.4vw, 64px) !important;
}

/* =====================================================
   Ajuste: cards LUZ (mais compactos)
   ===================================================== */

#card-luz-alta .noc-big,
#card-luz-media .noc-big{
  font-size: 52px;
  line-height: .95;
  padding: 6px 0 4px;
}

#card-luz-alta .noc-card-title,
#card-luz-media .noc-card-title{
  font-size: 12px;
}

#card-luz-alta{
  min-height: 210px;
}

#card-luz-media{
  min-height: 210px;
}

/* TAMANHOS (igual print: 3 cards topo + 2 embaixo) */
.noc-grid > .noc-card:nth-child(1){grid-column:span 4;} /* Total LOS */
.noc-grid > .noc-card:nth-child(2){grid-column:span 4;} /* Total por OLT */
.noc-grid > .noc-card:nth-child(3){grid-column:span 4;} /* CTO em LOS */
.noc-grid > .noc-card:nth-child(4){grid-column:span 6;} /* Luz alta */
.noc-grid > .noc-card:nth-child(5){grid-column:span 6;} /* Luz média */

@media(max-width:1100px){
  .noc-grid > .noc-card{grid-column:span 12 !important;}
}

/* =====================================================
   NOC layout refresh (Luzes unificadas + CTO melhorado)
   ===================================================== */

.noc-grid > #card-total-los { grid-column: span 3 !important; }
.noc-grid > #card-total-olt { grid-column: span 5 !important; }
.noc-grid > #card-luzes { grid-column: span 4 !important; }
.noc-grid > #card-cto-los.cto-large { grid-column: span 6 !important; }
.noc-grid > #card-cto-powerfail.cto-large { grid-column: span 6 !important; }

#card-total-los,
#card-total-olt,
#card-luzes {
  min-height: 270px;
}

#card-luzes {
  min-height: 270px;
  background: linear-gradient(180deg, rgba(46, 12, 12, 0.94), rgba(24, 8, 8, 0.98));
  border-color: rgba(255, 86, 86, 0.35);
}

#card-luzes .noc-olt-row {
  margin-top: 8px;
}

#card-luzes .noc-olt-mini {
  flex: 1;
  min-width: 0;
  background: linear-gradient(180deg, rgba(255,64,64,0.18), rgba(255,64,64,0.08));
  border-color: rgba(255, 98, 98, 0.45);
}

#card-luzes .noc-olt-name {
  color: rgba(255, 232, 232, 0.95);
}

#card-luzes .noc-olt-count {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 90, 90, 0.45);
}

#card-luzes .noc-olt-tag {
  background: rgba(255, 73, 73, 0.24);
  border-color: rgba(255, 116, 116, 0.5);
  color: #ffdada;
}

#card-cto-los.cto-large {
  min-height: 420px;
  background: linear-gradient(180deg, rgba(14,22,36,0.96), rgba(9,14,24,0.98));
}

#card-cto-los,
#card-cto-powerfail {
  min-height: 420px;
}

#card-cto-los .noc-cto-top {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

#card-cto-los .noc-sub {
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
}

#card-cto-los .noc-big {
  font-size: clamp(54px, 4.8vw, 74px);
  text-align: center;
  margin: 0 auto;
}

#card-cto-los .noc-cto-list {
  margin-top: 12px;
  max-height: 360px;
  padding-right: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px;
  align-items: start;
}

#card-cto-powerfail.cto-large {
  min-height: 420px;
  background: linear-gradient(180deg, rgba(44, 24, 14, 0.96), rgba(20, 12, 8, 0.98));
  border-color: rgba(255, 164, 75, 0.28);
}

#card-cto-powerfail .noc-sub {
  min-height: 24px;
}

#card-cto-powerfail .noc-cto-top {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#card-cto-powerfail .noc-big {
  font-size: clamp(54px, 4.8vw, 74px);
  text-align: center;
  margin: 0 auto;
}

#card-cto-powerfail .noc-cto-list {
  margin-top: 12px;
  max-height: 360px;
  padding-right: 6px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 10px;
  align-items: start;
}

#card-cto-los .cto-item {
  border: 1px solid rgba(93,194,255,0.2);
  background: linear-gradient(180deg, rgba(35,57,84,0.32), rgba(20,33,50,0.28));
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 0;
  min-height: 100%;
}

#card-cto-los .cto-item + .cto-item {
  margin-top: 0;
}

#card-cto-los .cto-code {
  font-size: 20px;
}

#card-cto-los .cto-sub,
#card-cto-los .cto-clientes {
  font-size: 14px;
}

#card-cto-los .noc-card-ico {
  font-size: 20px;
}

#card-cto-los .noc-card-ico::before {
  content: "🧩";
}

#card-cto-los .noc-card-ico {
  font-size: 0;
}

@media (max-width: 1100px) {
  .noc-grid > #card-total-los,
  .noc-grid > #card-total-olt,
  .noc-grid > #card-luzes,
  .noc-grid > #card-cto-los.cto-large {
    grid-column: span 12 !important;
  }

  #card-cto-los .noc-cto-list {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   NOC topbar actions - small, subtle, clean
   ===================================================== */

.noc-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.noc-topbar .noc-actions {
  margin-top: 0;
  margin-left: 10px;
  gap: 8px;
  flex-wrap: nowrap;
}

.noc-topbar .noc-actions .noc-btn {
  padding: 6px 10px;
  min-height: 30px;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: none;
  border-radius: 8px;
  box-shadow: none;
  border-width: 1px;
}

.noc-topbar .noc-actions .noc-btn .icon {
  width: 14px;
  height: 14px;
  font-size: 12px;
}

.noc-topbar .noc-actions .refresh {
  background: rgba(61, 255, 157, 0.08);
  color: #aef9cf;
  border-color: rgba(61, 255, 157, 0.2);
}

.noc-topbar .noc-actions .tv {
  background: rgba(78, 168, 255, 0.08);
  color: #b7d8ff;
  border-color: rgba(78, 168, 255, 0.2);
}

.noc-topbar .noc-actions .noc-btn:hover {
  transform: none;
  filter: none;
  box-shadow: none;
}

@media (max-width: 1100px) {
  .noc-topbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .noc-brand {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .noc-topbar .noc-actions {
    margin-left: 0;
  }
}

.users-frame {
  width: 100%;
  min-height: 78vh;
  border: 0;
  border-radius: 12px;
  background: transparent;
}

/* =====================================================
   Tema azul escuro unificado (sidebar + topbar)
   ===================================================== */
:root {
  --panel-dark: #0b1220;
  --panel-dark-2: #101a2d;
  --panel-border: rgba(141, 173, 222, 0.16);
  --panel-text: #eaf2ff;
  --panel-muted: #9eb3d5;
}

.sidebar,
#sidebar,
.leftbar {
  background: linear-gradient(180deg, var(--panel-dark-2), var(--panel-dark)) !important;
  border-right: 1px solid var(--panel-border) !important;
}

.topbar {
  background: linear-gradient(90deg, var(--panel-dark-2), var(--panel-dark)) !important;
  border-bottom: 1px solid var(--panel-border) !important;
}

.side-logo,
.logo-circle {
  background: #dc2626 !important;
  color: #ffffff !important;
}

/* ================================
   Dashboard Executivo
   ================================ */
.execdash-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.execdash-subtitle {
  margin: 4px 0 0;
  color: #9ca3af;
  font-size: 13px;
}

.execdash-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.execdash-last-update {
  font-size: 12px;
  color: #93c5fd;
}

.execdash-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.execdash-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.76));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  min-height: 118px;
}

.execdash-card.is-accent {
  border-color: rgba(59, 130, 246, 0.7);
}

.execdash-card.is-warning {
  border-color: rgba(245, 158, 11, 0.7);
}

.execdash-card.is-success {
  border-color: rgba(34, 197, 94, 0.7);
}

.execdash-kpi-label {
  font-size: 12px;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.execdash-kpi-value {
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  color: #f8fafc;
}

.execdash-panels {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 12px;
}

.execdash-panel h3 {
  margin-bottom: 10px;
}

.execdash-panel-compact {
  padding: 12px;
}

.execdash-oper-status {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 8px;
}

.execdash-insights {
  margin: 0;
  padding-left: 18px;
  color: #111827;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.execdash-olt-list {
  display: grid;
  gap: 8px;
}

.execdash-olt-layout {
  display: grid;
  grid-template-columns: 1fr 140px;
  gap: 10px;
  align-items: stretch;
}

.execdash-olt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 10px;
  padding: 9px 10px;
}

.execdash-olt-name {
  font-weight: 700;
  color: #e2e8f0;
}

.execdash-olt-value {
  font-weight: 800;
  color: #f8fafc;
}

.execdash-luz-stack {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.execdash-luz-card {
  border-radius: 10px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(15, 23, 42, 0.65);
}

.execdash-luz-card.is-alta {
  border-color: rgba(239, 68, 68, 0.65);
}

.execdash-luz-card.is-media {
  border-color: rgba(245, 158, 11, 0.65);
}

.execdash-luz-label {
  font-size: 12px;
  color: #cbd5e1;
  font-weight: 700;
  text-transform: uppercase;
}

.execdash-luz-value {
  margin-top: 4px;
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  color: #f8fafc;
}

.execdash-empty {
  font-size: 13px;
  color: #94a3b8;
}

@media (max-width: 1200px) {
  .execdash-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .execdash-panels {
    grid-template-columns: 1fr;
  }

  .execdash-olt-layout {
    grid-template-columns: 1fr;
  }

  .execdash-luz-stack {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
}

@media (max-width: 720px) {
  .execdash-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .execdash-actions {
    width: 100%;
    justify-content: space-between;
  }

  .execdash-grid {
    grid-template-columns: 1fr;
  }
}

.side-title strong,
.brand-name,
#user-label {
  color: var(--panel-text) !important;
}

.side-title span,
.brand-sub {
  color: var(--panel-muted) !important;
}

.sidebar .nav a,
.sidebar .nav button,
#sidebar .nav a,
#sidebar .nav button {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(141, 173, 222, 0.18) !important;
  color: var(--panel-text) !important;
}

.sidebar .nav a:hover,
.sidebar .nav button:hover {
  background: rgba(61, 139, 255, 0.12) !important;
  border-color: rgba(95, 165, 255, 0.4) !important;
}

.sidebar .nav .active {
  background: rgba(61, 139, 255, 0.2) !important;
  border-color: rgba(95, 165, 255, 0.55) !important;
  color: #ffffff !important;
}

/* OVERRIDE FINAL - CABECALHO SUPORTE EXTERNO */
.tecnico-externo-embed .tecnico-table thead th {
  background: #ffffff !important;
  color: #111111 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.tecnico-externo-embed .tecnico-table thead .tec-col-sort {
  background: transparent !important;
  color: #111111 !important;
  font-weight: 800 !important;
  box-shadow: none !important;
  border: 0 !important;
}

.tecnico-externo-embed .tecnico-table thead .tec-col-sort:hover {
  background: transparent !important;
  color: #111111 !important;
}

/* =============================
   LOGS - LAYOUT LIMPO
   ============================= */
section[data-section="logs"] {
  overflow: visible !important;
}

section[data-section="logs"] > .card {
  width: 100%;
  max-width: none;
  margin: 0;
}

#logs-container {
  white-space: normal !important;
  font-family: inherit !important;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 180px);
}

section[data-section="logs"] {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: calc(100vh - 90px);
}

section[data-section="logs"] > h2 {
  margin-bottom: 0;
  color: #0f172a;
}

section[data-section="logs"] > .card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe6f2;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  flex: 1 1 auto;
}

.logs-surface {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  flex: 1 1 auto;
}

.logs-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.logs-toolbar-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.logs-title {
  font-size: 15px;
  font-weight: 800;
  color: #111827;
}

.logs-subtitle {
  font-size: 12px;
  color: #64748b;
}

.logs-mode-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.logs-mode-btn.is-active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

.logs-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 8px;
}

.logs-summary-card {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #dbe6f2;
  background: #ffffff;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.04);
}

.logs-summary-label {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logs-summary-card strong {
  font-size: 18px;
  line-height: 1;
  color: #0f172a;
}

.logs-perf-card {
  background: #f7f9fd;
  border: 1px solid #e2e8f3;
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}

.logs-perf-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
}

.logs-perf-head span {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

.logs-perf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.logs-perf-tile {
  background: #ffffff;
  border: 1px solid #e2e8f3;
  border-radius: 14px;
  padding: 12px;
  min-height: 120px;
}

.logs-perf-title {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logs-perf-kpi strong {
  display: block;
  font-size: 20px;
  color: #0f172a;
}

.logs-perf-kpi span {
  font-size: 12px;
  color: #64748b;
}

.logs-perf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.logs-perf-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  font-size: 12.5px;
  color: #1f2937;
}

.logs-perf-name {
  font-weight: 600;
  color: #0f172a;
}

.logs-perf-metric {
  font-weight: 700;
  color: #0f172a;
}

.logs-perf-muted {
  grid-column: 1 / -1;
  font-size: 11.5px;
  color: #64748b;
}

.logs-perf-loading,
.logs-perf-empty {
  padding: 14px 16px;
  border: 1px dashed #cbd5f0;
  border-radius: 12px;
  color: #64748b;
  background: #f8fafc;
  font-size: 13px;
}

.logs-filter-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #dbe6f2;
  background: #f8fbff;
}

.logs-filter-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.logs-filter-item span {
  font-size: 12px;
  font-weight: 700;
  color: #475569 !important;
}

.logs-filter-item input,
.logs-filter-item select {
  width: 100%;
  min-height: 34px;
  border-radius: 10px;
  border: 1px solid #cfd9e6;
  background: #ffffff;
  color: #0f172a !important;
  box-shadow: none;
  font-size: 12.5px;
}

.logs-filter-item-search {
  grid-column: span 1;
}

.logs-table-wrap {
  overflow: auto;
  flex: 1 1 auto;
  min-height: 300px;
  max-height: none;
  border: 1px solid #dbe6f2;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 980px;
}

.logs-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #0f172a;
  color: #f8fafc !important;
  text-align: left;
  padding: 8px 8px;
  border-bottom: 1px solid #0b1220;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.logs-table td {
  padding: 8px 8px;
  color: #0f172a !important;
  border-bottom: 1px solid #e8eef6;
  vertical-align: top;
}

.logs-table tbody tr:nth-child(odd) {
  background: #fcfdff;
}

.logs-table tbody tr:hover {
  background: #eef6ff;
}

.logs-date,
.logs-user,
.logs-role,
.logs-wt {
  color: #0f172a !important;
}

.logs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  border: 1px solid transparent;
  white-space: nowrap;
}

.logs-badge.is-neutral,
.logs-badge.is-info {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.logs-badge.is-success {
  background: #ecfdf3;
  color: #166534;
  border-color: #bbf7d0;
}

.logs-badge.is-warning {
  background: #fff7ed;
  color: #9a3412;
  border-color: #fed7aa;
}

.logs-badge.is-danger {
  background: #fef2f2;
  color: #b91c1c;
  border-color: #fecaca;
}

.logs-details {
  opacity: 1;
  margin-top: 2px;
  color: #334155 !important;
  line-height: 1.45;
  font-size: 12px;
}

.logs-live-stack {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
  min-height: 0;
}

.logs-live-card {
  border: 1px solid #c8d4e3;
  border-radius: 16px;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  min-height: 420px;
  min-width: 0;
}

.logs-live-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 12px;
  color: #e2e8f0 !important;
}

.logs-live-pre {
  margin: 0;
  padding: 14px;
  min-height: 340px;
  max-height: 58vh;
  overflow: auto;
  background: transparent;
  color: #e5edf7 !important;
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  flex: 1 1 auto;
}

.logs-empty {
  color: #64748b !important;
  text-align: center;
  padding: 18px !important;
}

.logs-live-card-empty,
.logs-live-card-loading {
  grid-column: 1 / -1;
}

@media (max-width: 1120px) {
  .logs-filter-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  .logs-summary-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .logs-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .logs-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* =====================================================
   CHAT NUVEM - ROLAGEM SOMENTE NA LISTAGEM
   ===================================================== */
section[data-section="tecnico"] {
  overflow: hidden !important;
  padding-bottom: 0 !important;
  display: flex;
  flex-direction: column;
  min-height: 0 !important;
}

section[data-section="tecnico"] > .tech-shell {
  flex: 1 1 auto;
  min-height: 0;
}

section[data-section="tecnico"] .tecnico-list-card {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

section[data-section="tecnico"] .tecnico-list-wrap {
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 330px);
  overflow: auto;
}

section[data-section="tecnico"] .tech-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

section[data-section="tecnico"] .tech-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

section[data-section="tecnico"] .card.tech-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  min-height: 0;
  height: calc(100vh - 180px);
}

section[data-section="tecnico"] .gestao-filters-grid {
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  width: 100%;
}

section[data-section="tecnico"] .admin-inline-actions {
  width: 100%;
}

section[data-section="tecnico"] .card.tech-panel > .table-wrap {
  width: 100%;
  min-width: 0;
  min-height: 0;
  max-height: none;
  overflow: auto;
  flex: 1 1 auto;
}

section[data-section="tecnico"] .table {
  width: 100%;
  min-width: 1180px;
  table-layout: fixed;
  border-collapse: collapse;
}

section[data-section="tecnico"] .table th,
section[data-section="tecnico"] .table td {
  white-space: normal;
  word-break: break-word;
}

section[data-section="tecnico"] .table th:nth-child(1),
section[data-section="tecnico"] .table td:nth-child(1) {
  width: 240px;
}

section[data-section="tecnico"] .table th:nth-child(2),
section[data-section="tecnico"] .table td:nth-child(2),
section[data-section="tecnico"] .table th:nth-child(3),
section[data-section="tecnico"] .table td:nth-child(3) {
  width: 120px;
}

section[data-section="tecnico"] .table th:nth-child(4),
section[data-section="tecnico"] .table td:nth-child(4) {
  width: 380px;
}

section[data-section="tecnico"] .table th:nth-child(5),
section[data-section="tecnico"] .table td:nth-child(5) {
  width: 110px;
  text-align: center;
}

section[data-section="tecnico"] .table th:nth-child(6),
section[data-section="tecnico"] .table td:nth-child(6) {
  width: 140px;
}

section[data-section="tecnico"] .list-pagination {
  width: 100%;
  margin-top: 12px;
  padding-top: 4px;
  position: sticky;
  bottom: 0;
  z-index: 3;
  background: #ffffff;
  border-top: 1px solid #e5edf5;
  padding-bottom: 4px;
  align-self: end;
}

section[data-section="tecnico"] .list-pagination-right {
  margin-left: auto;
}

section[data-section="tecnico-chamado-infra"] {
  overflow: visible !important;
  padding-bottom: 24px !important;
  display: flex;
  flex-direction: column;
  min-height: 0 !important;
  height: auto !important;
}

section[data-section="tecnico-chamado-infra"] > .tech-shell {
  flex: 1 1 auto;
  min-height: 0;
}

section[data-section="tecnico-chamado-infra"] .tech-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 auto;
}

section[data-section="tecnico-chamado-infra"] .tech-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-hero-actions,
section[data-section="tecnico-chamado-infra"] .tec-infra-bulk-head-actions,
section[data-section="tecnico-chamado-infra"] .tec-infra-unit-actions,
section[data-section="tecnico-chamado-infra"] .tec-infra-bulk-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: start;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-card {
  grid-column: 1 / -1;
}

section[data-section="tecnico-chamado-infra"] .card.tech-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
  border-radius: 20px;
  overflow: visible;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-unit-top-grid {
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr) minmax(220px, 1.15fr) minmax(240px, 1.15fr);
}

section[data-section="tecnico-chamado-infra"] .tec-infra-unit-mid-grid {
  grid-template-columns: minmax(220px, 1fr) minmax(200px, 0.7fr);
}

section[data-section="tecnico-chamado-infra"] .tec-infra-unit-dual-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-unit-text-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-field-wide {
  grid-column: 1 / -1;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-unit-card .input,
section[data-section="tecnico-chamado-infra"] .tec-infra-bulk-card .input {
  width: 100%;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-unit-card textarea.input,
section[data-section="tecnico-chamado-infra"] .tec-infra-bulk-card textarea.input {
  resize: vertical;
  min-height: 160px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-bulk-head-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-bulk-company-field {
  min-width: 250px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-bulk-date-field {
  min-width: 220px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-card {
  margin-top: 2px;
  padding-bottom: 14px;
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-head {
  align-items: flex-start;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: flex-end;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-toolbar {
  display: grid;
  grid-template-columns:
    minmax(220px, 1.6fr)
    minmax(120px, 0.75fr)
    minmax(130px, 0.85fr)
    minmax(130px, 0.85fr)
    minmax(120px, 0.7fr)
    minmax(170px, 1fr)
    minmax(110px, 0.7fr);
  gap: 10px;
  align-items: end;
  width: 100%;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-toolbar .admin-field {
  margin-bottom: 0;
  min-width: 0;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-toolbar .admin-field span {
  font-size: 10px;
  line-height: 1.1;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-toolbar .admin-field .input {
  min-height: 38px;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: 13px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-search-field {
  min-width: 0;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-filter-field .input {
  width: 100%;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  scrollbar-gutter: stable;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-table {
  width: 100%;
  min-width: 1340px;
  table-layout: fixed;
  border-collapse: collapse;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-wrap {
  width: 100%;
  flex: 1;
  min-height: 620px;
  max-height: none;
  overflow: auto;
  overscroll-behavior: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  scrollbar-gutter: stable;
  background: #ffffff;
  padding: 14px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-empty {
  padding: 22px 18px;
  text-align: center;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-item {
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  border: 1px solid #dbe4ef;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-item-top {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-item-body {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(190px, 1fr) minmax(0, 2fr);
  gap: 14px;
  align-items: start;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-close-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff, #eef6ff);
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-close-panel.is-busy {
  opacity: 0.92;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-close-summary--inline {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-close-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-close-solucao-field {
  grid-column: 1 / -1;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-close-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-field--full {
  grid-column: 1 / -1;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-field strong {
  color: #0f172a;
  line-height: 1.35;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-problema {
  color: #0f172a;
  font-size: 0.96rem;
  line-height: 1.45;
  word-break: break-word;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-history-empty + .tec-infra-history-item,
section[data-section="tecnico-chamado-infra"] .tec-infra-history-list > .tec-infra-history-empty {
  margin-top: 0;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-row-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-bulk-card {
  overflow: hidden;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-bulk-card .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  overscroll-behavior: auto;
  scrollbar-gutter: stable;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-bulk-card textarea.input {
  min-height: 78px;
  max-height: 96px;
  resize: vertical;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-table th,
section[data-section="tecnico-chamado-infra"] .tec-infra-table td {
  vertical-align: top;
  word-break: break-word;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-table th:nth-child(1),
section[data-section="tecnico-chamado-infra"] .tec-infra-table td:nth-child(1) {
  width: 140px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-table th:nth-child(2),
section[data-section="tecnico-chamado-infra"] .tec-infra-table td:nth-child(2) {
  width: 110px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-table th:nth-child(3),
section[data-section="tecnico-chamado-infra"] .tec-infra-table td:nth-child(3) {
  width: 160px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-table th:nth-child(4),
section[data-section="tecnico-chamado-infra"] .tec-infra-table td:nth-child(4) {
  width: 190px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-table th:nth-child(5),
section[data-section="tecnico-chamado-infra"] .tec-infra-table td:nth-child(5) {
  width: 200px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-table th:nth-child(6),
section[data-section="tecnico-chamado-infra"] .tec-infra-table td:nth-child(6) {
  width: 200px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-table th:nth-child(7),
section[data-section="tecnico-chamado-infra"] .tec-infra-table td:nth-child(7) {
  width: 130px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-table th:nth-child(8),
section[data-section="tecnico-chamado-infra"] .tec-infra-table td:nth-child(8) {
  width: 130px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-table th:nth-child(9),
section[data-section="tecnico-chamado-infra"] .tec-infra-table td:nth-child(9) {
  width: 100px;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-row-contrato,
section[data-section="tecnico-chamado-infra"] .tec-infra-row-categoria {
  background: #f8fafc;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-row-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: #e2e8f0;
  color: #334155;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-row-status.is-success {
  background: #dcfce7;
  color: #166534;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-row-status.is-warning {
  background: #fef3c7;
  color: #92400e;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-row-status.is-error {
  background: #fee2e2;
  color: #991b1b;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-row-status.is-loading {
  background: #dbeafe;
  color: #1d4ed8;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-bulk-summary {
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-status[data-state="loading"] {
  color: #1d4ed8;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-status[data-state="success"] {
  color: #047857;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-status[data-state="warning"] {
  color: #b45309;
}

section[data-section="tecnico-chamado-infra"] .tec-infra-status[data-state="error"] {
  color: #b91c1c;
}

@media (max-width: 1200px) {
  section[data-section="tecnico-chamado-infra"] .tec-infra-grid {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-chamado-infra"] .tec-infra-form-grid {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-chamado-infra"] .tec-infra-unit-top-grid,
  section[data-section="tecnico-chamado-infra"] .tec-infra-unit-mid-grid,
  section[data-section="tecnico-chamado-infra"] .tec-infra-unit-dual-grid {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-chamado-infra"] .tec-infra-history-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  section[data-section="tecnico-chamado-infra"] .tec-infra-history-search-field {
    grid-column: 1 / -1;
  }

  section[data-section="tecnico-chamado-infra"] .tec-infra-history-actions {
    justify-content: flex-start;
  }

  section[data-section="tecnico-chamado-infra"] .tec-infra-history-card {
    height: auto;
    min-height: 700px;
  }

  section[data-section="tecnico-chamado-infra"] .tec-infra-history-wrap {
    min-height: 520px;
    max-height: min(64vh, 700px);
  }
}

@media (max-width: 720px) {
  section[data-section="tecnico-chamado-infra"] .tec-infra-history-toolbar {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-chamado-infra"] .tec-infra-history-item-body {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-chamado-infra"] .tec-infra-history-close-grid {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-chamado-infra"] .tec-infra-history-actions {
    width: 100%;
    justify-content: flex-start;
  }

  section[data-section="tecnico-chamado-infra"] .tec-infra-history-card {
    height: auto;
    min-height: 620px;
  }

  section[data-section="tecnico-chamado-infra"] .tec-infra-history-wrap {
    min-height: 420px;
    max-height: min(72vh, 620px);
  }
}

section[data-section="tecnico-chamados-controlados"] .tec-control-shell {
  display: grid;
  gap: 18px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-pill.is-success {
  border-color: rgba(34, 197, 94, 0.32);
  color: #047857;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-pill.is-danger {
  border-color: rgba(239, 68, 68, 0.32);
  color: #b91c1c;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-catalog-status {
  margin-top: 14px;
  margin-bottom: 4px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-catalog-status[data-state="warning"] {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(255, 251, 235, 0.96);
  color: #92400e;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-catalog-status[data-state="error"] {
  border-color: rgba(239, 68, 68, 0.24);
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-catalog-status[data-state="success"] {
  border-color: rgba(34, 197, 94, 0.24);
  background: rgba(240, 253, 244, 0.96);
  color: #047857;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-summary-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.96));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

section[data-section="tecnico-chamados-controlados"] .tec-control-summary-card strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 18px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-summary-card small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-mode-switch {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-mode-btn {
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-mode-btn.is-active {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-color: #0f172a;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

section[data-section="tecnico-chamados-controlados"] .tec-control-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.97fr 0.97fr;
  gap: 16px;
  align-items: start;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-panel {
  min-height: 100%;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-panel.is-mode-active,
section[data-section="tecnico-chamados-controlados"] .tec-control-close-card.is-mode-active {
  box-shadow: 0 18px 36px rgba(124, 92, 255, 0.08);
  border-color: rgba(124, 92, 255, 0.24);
}

section[data-section="tecnico-chamados-controlados"] .tec-control-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 16px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-form-grid--close {
  margin-top: 10px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-field-wide {
  grid-column: 1 / -1;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-actions button {
  min-width: 180px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-actions .btn-danger {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  color: #fff;
  border: 1px solid #991b1b;
  box-shadow: 0 16px 28px rgba(185, 28, 28, 0.18);
}

section[data-section="tecnico-chamados-controlados"] .tec-control-actions .btn-danger:hover {
  background: linear-gradient(135deg, #991b1b, #b91c1c);
}

section[data-section="tecnico-chamados-controlados"] .input[aria-invalid="true"] {
  border-color: rgba(220, 38, 38, 0.9);
  box-shadow: 0 0 0 1px rgba(220, 38, 38, 0.18), 0 0 0 4px rgba(220, 38, 38, 0.08);
  background: #fff5f5;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-status {
  margin-top: 12px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-response-grid {
  display: grid;
  gap: 14px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-response-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-response-chip {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7fd 100%);
}

section[data-section="tecnico-chamados-controlados"] .tec-control-response-chip span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-response-chip strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 15px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-response-json {
  margin: 0;
  min-height: 340px;
  max-height: 460px;
  overflow: auto;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #0b1220;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-card {
  display: grid;
  gap: 16px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-head {
  margin-bottom: 0;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-toolbar {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, minmax(180px, 1fr));
  gap: 12px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-wrap {
  max-height: min(62vh, 700px);
  overflow: auto;
  padding-right: 4px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-list {
  display: grid;
  gap: 12px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-empty {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: #64748b;
  background: rgba(248, 250, 252, 0.8);
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-item {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-item-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-field {
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7fd 100%);
  border: 1px solid rgba(203, 213, 225, 0.65);
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-field--full {
  grid-column: 1 / -1;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-label {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-field strong {
  display: block;
  margin-top: 8px;
  color: #0f172a;
  font-size: 14px;
  line-height: 1.45;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-history-json {
  margin: 8px 0 0;
  padding: 12px;
  border-radius: 14px;
  background: #0b1220;
  color: #dbeafe;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-admin-card {
  border-radius: 26px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-admin-summary {
  margin-top: 18px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-admin-companies {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-admin-company-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.05);
}

section[data-section="tecnico-chamados-controlados"] .tec-control-admin-company-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-admin-company-head small {
  display: block;
  color: #64748b;
  margin-top: 6px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-admin-categories {
  display: grid;
  gap: 12px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-admin-category-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  background: rgba(248, 250, 252, 0.88);
}

section[data-section="tecnico-chamados-controlados"] .tec-control-admin-category-head {
  margin-bottom: 10px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-admin-subcategories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

section[data-section="tecnico-chamados-controlados"] .tec-control-admin-advanced {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

section[data-section="tecnico-chamados-controlados"] .tec-control-admin-advanced textarea {
  margin-top: 10px;
  min-height: 280px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

@media (max-width: 1200px) {
  section[data-section="tecnico-chamados-controlados"] .tec-control-hero,
  section[data-section="tecnico-chamados-controlados"] .tec-control-card-head,
  section[data-section="tecnico-chamados-controlados"] .tec-control-history-item-top,
  section[data-section="tecnico-chamados-controlados"] .tec-control-admin-company-head {
    flex-direction: column;
  }

  section[data-section="tecnico-chamados-controlados"] .tec-control-summary-grid,
  section[data-section="tecnico-chamados-controlados"] .tec-control-grid,
  section[data-section="tecnico-chamados-controlados"] .tec-control-history-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  section[data-section="tecnico-chamados-controlados"] .tec-control-history-search-field {
    grid-column: 1 / -1;
  }

  section[data-section="tecnico-chamados-controlados"] .tec-control-grid {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-chamados-controlados"] .tec-control-response-meta {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 720px) {
  section[data-section="tecnico-chamados-controlados"] .tec-control-summary-grid,
  section[data-section="tecnico-chamados-controlados"] .tec-control-form-grid,
  section[data-section="tecnico-chamados-controlados"] .tec-control-history-toolbar,
  section[data-section="tecnico-chamados-controlados"] .tec-control-history-item-body {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-chamados-controlados"] .tec-control-actions {
    justify-content: stretch;
  }

  section[data-section="tecnico-chamados-controlados"] .tec-control-actions button {
    width: 100%;
  }
}

@media (max-width: 1280px) {
  section[data-section="tecnico"] .gestao-filters-grid {
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }

  section[data-section="tecnico"] .card.tech-panel {
    height: calc(100vh - 220px);
  }

  section[data-section="tecnico"] .tecnico-list-wrap {
    max-height: calc(100vh - 390px);
  }
}

@media (max-width: 820px) {
  section[data-section="tecnico"] .gestao-filters-grid {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico"] .card.tech-panel {
    height: calc(100vh - 260px);
  }

  section[data-section="tecnico"] .tecnico-list-wrap {
    max-height: calc(100vh - 470px);
  }
}

.comercial-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.comercial-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 35%),
    linear-gradient(135deg, #0f172a 0%, #11233f 52%, #0b1220 100%);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.comercial-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 800;
  color: #67e8f9;
}

.comercial-hero h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 30px;
  line-height: 1.05;
}

.comercial-subtitle {
  margin: 10px 0 0;
  max-width: 760px;
  color: rgba(226, 232, 240, 0.88);
  font-size: 14px;
  line-height: 1.6;
}

.comercial-sync-card {
  min-width: 190px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.42);
  border: 1px solid rgba(103, 232, 249, 0.22);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  text-align: right;
}

.comercial-sync-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #93c5fd;
}

.comercial-sync-card strong {
  font-size: 20px;
  color: #f8fafc;
}

.comercial-sync-card span:last-child {
  color: #cbd5e1;
  font-size: 13px;
}

.comercial-sync-meta {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  color: #93c5fd !important;
  font-size: 12px !important;
}

.comercial-panel {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
}

.comercial-toolbar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.comercial-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
}

.comercial-total-card {
  min-width: 0;
  max-width: none;
  border-radius: 18px;
}

.comercial-total-card-primary {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  border-color: rgba(29, 78, 216, 0.32);
}

.comercial-total-card-primary .hist-total-label,
.comercial-total-card-primary .hist-total-value {
  color: #f8fafc;
}

.comercial-total-card-soft {
  border-color: rgba(148, 163, 184, 0.26);
}

.comercial-total-card-deezer {
  background: linear-gradient(135deg, #111827, #1f2937);
}

.comercial-total-card-max {
  background: linear-gradient(135deg, #14022d, #2144ff 55%, #1ad0ff);
}

.comercial-total-card-both {
  background: linear-gradient(135deg, #052e16, #0f766e 52%, #1d4ed8 100%);
}

.comercial-total-card-deezer .hist-total-label,
.comercial-total-card-deezer .hist-total-value,
.comercial-total-card-max .hist-total-label,
.comercial-total-card-max .hist-total-value,
.comercial-total-card-both .hist-total-label,
.comercial-total-card-both .hist-total-value {
  color: #f8fafc;
}

.comercial-filters-card {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, #f8fafc, #eef2ff);
}

.comercial-filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.comercial-subsection {
  margin-top: 18px;
}

.comercial-carne-shell {
  margin-top: 22px;
}

.comercial-carne-panel {
  margin-top: 14px;
}

.comercial-subtitle {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.comercial-period-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  min-width: 180px;
}

.comercial-period-card strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.comercial-carne-filters-grid {
  grid-template-columns: repeat(3, minmax(150px, 1fr));
}

.comercial-carne-filters-grid .comercial-filter--page-size {
  grid-column: 1 / -1;
}

.comercial-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.comercial-filter .input {
  min-width: 0;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.95);
}

.comercial-filter--page-size {
  min-width: 0;
}

.comercial-page-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.comercial-page-control .input {
  flex: 1 1 0;
  min-width: 120px;
}

.comercial-refresh-btn {
  min-height: 44px;
  flex: 0 0 auto;
  border-radius: 14px;
  border-color: rgba(15, 23, 42, 0.18);
  background: linear-gradient(135deg, #ffffff, #e2e8f0);
  color: #0f172a;
  font-weight: 800;
}

.comercial-status-line {
  margin: 4px 0 14px;
  color: #334155;
  font-weight: 600;
}

.comercial-table-wrap {
  overflow-x: auto;
  border-radius: 18px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: #fff;
}

.comercial-table {
  table-layout: fixed;
}

.comercial-table thead th {
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  color: #0f172a;
  border-bottom: 1px solid #cbd5e1;
  padding: 14px 12px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.comercial-table tbody td {
  padding: 14px 12px;
  font-size: 14px;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comercial-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.85);
}

.comercial-table tbody tr.comercial-row-alert,
.comercial-table tbody tr.comercial-row-alert:nth-child(even) {
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.92), rgba(254, 242, 242, 0.98));
}

.comercial-table tbody tr.comercial-row-alert td {
  border-color: rgba(248, 113, 113, 0.22);
}

.comercial-nav-btn .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.22), rgba(29, 78, 216, 0.28));
  color: #dbeafe;
  box-shadow: inset 0 0 0 1px rgba(125, 211, 252, 0.18);
}

.comercial-nav-btn.active .icon,
.comercial-nav-btn:hover .icon {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.34), rgba(37, 99, 235, 0.42));
  color: #ffffff;
}

.comercial-table td:nth-child(1),
.comercial-table thead th:nth-child(1) {
  width: 420px;
  text-align: center;
}

.comercial-table td:nth-child(1) .hist-cell-text {
  display: block;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.comercial-table td:nth-child(2),
.comercial-table thead th:nth-child(2) {
  width: 84px;
  text-align: center;
}

.comercial-table td:nth-child(3),
.comercial-table thead th:nth-child(3) {
  width: 150px;
  text-align: center;
}

.comercial-table td:nth-child(3) .hist-cell-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.comercial-table td:nth-child(4),
.comercial-table thead th:nth-child(4) {
  width: 118px;
  text-align: center;
}

.comercial-table td:nth-child(5),
.comercial-table thead th:nth-child(5) {
  width: 200px;
  text-align: center;
}

.comercial-table td:nth-child(6),
.comercial-table thead th:nth-child(6) {
  width: 150px;
  text-align: center;
}

.comercial-os-cell {
  vertical-align: middle;
}

.comercial-os-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.comercial-os-block small {
  font-size: 11px;
  color: #64748b;
}

.comercial-os-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 30px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.comercial-os-pill-neutral {
  color: #475569;
  background: rgba(148, 163, 184, 0.14);
  border-color: rgba(148, 163, 184, 0.24);
}

.comercial-os-pill-success {
  color: #166534;
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.28);
}

.comercial-os-pill-unverified {
  color: #a16207;
  background: rgba(250, 204, 21, 0.18);
  border-color: rgba(250, 204, 21, 0.28);
}

.comercial-os-pill-pending {
  color: #c2410c;
  background: rgba(251, 146, 60, 0.18);
  border-color: rgba(251, 146, 60, 0.30);
}

.comercial-os-pill-info {
  color: #2563eb;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.24);
}

.comercial-os-pill-warning {
  color: #b45309;
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.25);
}

.comercial-os-pill-danger {
  color: #dc2626;
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.26);
}

.comercial-os-pill-expired {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.24);
}

.comercial-os-pill-manual {
  color: #6d28d9;
  background: rgba(196, 181, 253, 0.18);
  border-color: rgba(196, 181, 253, 0.28);
}

.comercial-pagination {
  margin-top: 14px;
  align-items: center;
}

.comercial-service-list {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  min-width: 0;
  overflow: hidden;
}

.comercial-service-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(241, 245, 249, 0.96);
  color: #0f172a;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  max-width: 100%;
}

.comercial-service-pill-deezer {
  background: linear-gradient(135deg, #111827, #020617);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.comercial-service-pill-max {
  background: linear-gradient(135deg, #14022d, #2246ff 52%, #17d4ff);
  border-color: rgba(117, 124, 255, 0.32);
  color: #fff;
}

.comercial-deezer-bars {
  display: inline-flex;
  align-items: end;
  gap: 2px;
  height: 14px;
}

.comercial-deezer-bars i {
  display: block;
  width: 3px;
  border-radius: 999px;
}

.comercial-deezer-bars i:nth-child(1) { height: 5px; background: #8b5cf6; }
.comercial-deezer-bars i:nth-child(2) { height: 8px; background: #ef4444; }
.comercial-deezer-bars i:nth-child(3) { height: 11px; background: #f59e0b; }
.comercial-deezer-bars i:nth-child(4) { height: 13px; background: #22c55e; }
.comercial-deezer-bars i:nth-child(5) { height: 9px; background: #3b82f6; }

.comercial-service-brand {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.01em;
}

.comercial-service-brand-deezer {
  text-transform: lowercase;
  font-weight: 800;
}

.comercial-service-brand-max {
  text-transform: lowercase;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.comercial-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #f8fafc;
  color: #0f172a;
}

.comercial-status-badge.status-ativo {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.32);
  color: #166534;
}

.comercial-status-badge.status-bloqueado,
.comercial-status-badge.status-negativado {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.3);
  color: #991b1b;
}

.comercial-status-badge.status-inativo,
.comercial-status-badge.status-cancelado {
  background: rgba(71, 85, 105, 0.12);
  border-color: rgba(71, 85, 105, 0.25);
  color: #334155;
}

.comercial-status-badge.status-pendente,
.comercial-status-badge.status-pausado {
  background: rgba(245, 158, 11, 0.16);
  border-color: rgba(245, 158, 11, 0.28);
  color: #92400e;
}

.comercial-status-badge.status-cortesia {
  background: rgba(168, 85, 247, 0.16);
  border-color: rgba(168, 85, 247, 0.28);
  color: #6b21a8;
}

@media (max-width: 1100px) {
  .comercial-hero {
    flex-direction: column;
  }

  .comercial-sync-card {
    align-self: stretch;
    text-align: left;
  }

  .comercial-metrics,
  .comercial-filters-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 700px) {
  .comercial-hero {
    padding: 18px;
  }

  .comercial-hero h2 {
    font-size: 24px;
  }

  .comercial-metrics,
  .comercial-filters-grid {
    grid-template-columns: 1fr;
  }

  .comercial-actions,
  .comercial-refresh-btn {
    width: 100%;
  }
}

.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: none;
  width: 100%;
  margin: 0;
}

.admin-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  padding: 26px 28px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.22), transparent 34%),
    radial-gradient(circle at 82% 20%, rgba(59, 130, 246, 0.16), transparent 22%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f766e 100%);
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 26px 64px rgba(15, 23, 42, 0.2);
}

.admin-kicker {
  margin: 0 0 6px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff !important;
}

.admin-hero h2 {
  margin: 0;
  color: #ffffff !important;
  font-size: 30px;
}

.admin-subtitle {
  margin: 10px 0 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 14px;
  line-height: 1.6;
}

.admin-hero-badge {
  min-width: 220px;
  padding: 20px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.38), rgba(15, 23, 42, 0.28));
  border: 1px solid rgba(94, 234, 212, 0.24);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: flex-start;
  text-align: right;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.admin-hero-badge span {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffffff;
}

.admin-hero-badge strong {
  font-size: 20px;
  color: #ffffff;
}

section[data-section="administrativo"] {
  width: 100%;
}

section[data-section="administrativo"] .admin-shell {
  min-height: calc(100vh - 168px);
}

.admin-panel {
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
  padding: 22px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 14px;
}

.admin-card-block {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.admin-tech-card {
  margin-top: 20px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255,255,255,0.7);
}

.admin-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 14px;
  margin-top: 18px;
}

.admin-tech-group {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.76);
}

.admin-tech-group-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.admin-tech-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px 14px;
}

.admin-tech-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.admin-tech-toggle:hover {
  border-color: rgba(59, 130, 246, 0.28);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.07);
  transform: translateY(-1px);
}

.admin-tech-toggle input {
  width: 16px;
  height: 16px;
}

.admin-block-head h3 {
  margin: 0;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.1;
}

.admin-block-head p {
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
  max-width: 62ch;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.admin-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7fd 100%);
  border: 1px solid rgba(203, 213, 225, 0.7);
}

.admin-field span {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.admin-field-help {
  display: block;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
  margin-top: -2px;
}

.admin-field-wide {
  grid-column: 1 / -1;
}

.admin-input-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-input-inline .input {
  width: 100%;
}

.admin-input-inline small {
  color: #64748b;
  font-size: 12px;
  white-space: nowrap;
}

.admin-inline-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.admin-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-tab-btn {
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.admin-tab-btn.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.15);
}

.admin-tab-btn:hover {
  transform: translateY(-1px);
}

.admin-tab-panels {
  display: grid;
  gap: 16px;
}

.admin-tab-panel {
  display: none;
  gap: 16px;
}

.admin-tab-panel.is-active {
  display: grid;
}

.admin-actions-row--sticky {
  position: sticky;
  top: 12px;
  z-index: 3;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.admin-subsections {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.admin-subsection {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(203, 213, 225, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.admin-subsection--realtime {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(239, 246, 255, 0.98), rgba(248, 250, 252, 0.96));
}

.admin-subsection--schedule {
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 34%),
    linear-gradient(180deg, rgba(240, 253, 250, 0.98), rgba(248, 250, 252, 0.96));
}

.admin-subsection-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
}

.admin-subsection-head h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  color: #0f172a;
}

.admin-subsection-head p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.admin-subsection .admin-form-grid {
  margin-top: 0;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.admin-summary-card {
  padding: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(125, 211, 252, 0.12), transparent 34%),
    linear-gradient(135deg, #eff6ff 0%, #ecfeff 100%);
  border: 1px solid rgba(125, 211, 252, 0.28);
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 12px 24px rgba(14, 116, 144, 0.06);
}

.commercial-contract-os-summary-grid {
  align-items: stretch;
}

.commercial-contract-os-summary-card {
  position: relative;
  overflow: hidden;
}

.commercial-contract-os-summary-card strong {
  letter-spacing: -0.03em;
}

.commercial-contract-os-summary-card--focus {
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 36%),
    linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  border-color: rgba(59, 130, 246, 0.30);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.10);
}

.commercial-contract-os-summary-card--success {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 36%),
    linear-gradient(180deg, #f0fdf4 0%, #f8fbff 100%);
  border-color: rgba(34, 197, 94, 0.24);
}

.commercial-contract-os-summary-card--muted {
  background:
    radial-gradient(circle at top right, rgba(148, 163, 184, 0.14), transparent 36%),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-color: rgba(148, 163, 184, 0.18);
}

.commercial-contract-os-summary-card--warning {
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.16), transparent 36%),
    linear-gradient(180deg, #fffbeb 0%, #f8fbff 100%);
  border-color: rgba(245, 158, 11, 0.24);
}

.commercial-contract-os-summary-card--info {
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.16), transparent 36%),
    linear-gradient(180deg, #eef2ff 0%, #f8fbff 100%);
  border-color: rgba(99, 102, 241, 0.22);
}

.commercial-contract-os-legend {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.92);
}

.commercial-contract-os-legend-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.commercial-contract-os-legend-head strong {
  font-size: 13px;
  color: #0f172a;
}

.commercial-contract-os-legend-head span {
  font-size: 12px;
  color: #64748b;
}

.commercial-contract-os-legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-summary-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #0369a1;
}

.admin-summary-card strong {
  font-size: 24px;
  color: #0f172a;
}

.admin-summary-card small {
  color: #475569;
  font-size: 12px;
}

.admin-actions-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid #e2e8f0;
}

section[data-section="administrativo"] .admin-hero,
section[data-section="administrativo"] .admin-panel,
section[data-section="administrativo"] .admin-system-monitor-card {
  width: 100%;
}

.admin-actions-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

section[data-section="administrativo"] #admin-settings-status {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fbff;
  border: 1px solid #dbe6f2;
  color: #334155;
  min-height: auto;
}

section[data-section="administrativo"] .admin-actions-group button,
section[data-section="administrativo"] .admin-inline-actions button {
  min-height: 44px;
  padding: 11px 16px;
  border-radius: 14px;
}

.admin-los-card {
  margin-top: 20px;
  padding: 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(16, 185, 129, 0.10), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

.admin-los-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-los-head-actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-los-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(241, 245, 249, 0.98);
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.admin-los-pill.is-success {
  color: #166534;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.24);
}

.admin-los-pill.is-neutral {
  color: #334155;
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.24);
}

.admin-los-summary-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.admin-los-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.admin-los-grid--main {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
}

.admin-los-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255,255,255,0.82);
}

.admin-los-section--params,
.admin-los-section--template {
  align-content: start;
}

.admin-los-section--actions {
  margin-top: 16px;
}

.admin-los-section--table {
  margin-top: 16px;
}

.admin-los-section--saved {
  margin-top: 16px;
}

.admin-los-section-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-los-section-head-row {
  align-items: center;
}

.admin-los-section-head h4 {
  margin: 0;
  font-size: 18px;
  color: #0f172a;
}

.admin-los-section-note {
  font-size: 12px;
  color: #64748b;
}

.admin-los-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-los-form-grid--grouped {
  align-items: start;
}

.admin-los-form-grid--grouped .admin-field:nth-child(1),
.admin-los-form-grid--grouped .admin-field:nth-child(2),
.admin-los-form-grid--grouped .admin-field:nth-child(3),
.admin-los-form-grid--grouped .admin-field:nth-child(4),
.admin-los-form-grid--grouped .admin-field:nth-child(5),
.admin-los-form-grid--grouped .admin-field:nth-child(6),
.admin-los-form-grid--grouped .admin-field:nth-child(7),
.admin-los-form-grid--grouped .admin-field:nth-child(8),
.admin-los-form-grid--grouped .admin-field:nth-child(9),
.admin-los-form-grid--grouped .admin-field:nth-child(10) {
  grid-column: span 1;
}

@media (min-width: 1180px) {
  .admin-los-form-grid--grouped {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-los-form-grid--grouped .admin-field-wide {
    grid-column: span 3;
  }

  .admin-los-form-grid--grouped .admin-field:nth-child(2),
  .admin-los-form-grid--grouped .admin-field:nth-child(3),
  .admin-los-form-grid--grouped .admin-field:nth-child(4),
  .admin-los-form-grid--grouped .admin-field:nth-child(6),
  .admin-los-form-grid--grouped .admin-field:nth-child(7),
  .admin-los-form-grid--grouped .admin-field:nth-child(8),
  .admin-los-form-grid--grouped .admin-field:nth-child(9),
  .admin-los-form-grid--grouped .admin-field:nth-child(10) {
    grid-column: span 1;
  }
}

.admin-los-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.admin-los-weekday {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.98);
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.admin-los-weekday input {
  width: 16px;
  height: 16px;
}

.admin-los-help-box {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.96), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(147, 197, 253, 0.24);
}

.admin-los-help-box--soft {
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.72), rgba(248, 250, 252, 0.94));
}

.admin-los-help-box strong {
  display: block;
  margin-bottom: 6px;
  color: #0f172a;
}

.admin-los-help-box p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.admin-los-template-mode-card,
.admin-los-template-vars-card,
.admin-los-template-preview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.96);
}

.admin-los-template-mode-head,
.admin-los-template-vars-head,
.admin-los-template-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-los-template-mode-kicker {
  display: inline-flex;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2563eb;
}

.admin-los-template-mode-card h5,
.admin-los-template-vars-card h5,
.admin-los-template-preview-card h5 {
  margin: 0;
  font-size: 15px;
  color: #0f172a;
}

.admin-los-template-mode-note,
.admin-los-template-vars-note {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.6;
}

.admin-los-template-var-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
}

.admin-los-template-vars-container {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-los-template-preview-card .finance-preview-bubble {
  width: 100%;
}

.admin-los-template-preview-card .finance-preview-bubble {
  min-height: 220px;
}

.admin-los-template-preview-card .finance-preview-bubble.finance-preview-bubble-empty {
  min-height: 180px;
}

@media (max-width: 980px) {
  .admin-los-template-vars-container {
    grid-template-columns: 1fr;
  }
}

.admin-los-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  align-items: stretch;
}

.admin-los-actions > button {
  width: 100%;
}

.admin-los-status {
  margin: 0;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
}

.admin-los-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(241, 245, 249, 0.95);
  color: #334155;
  text-transform: uppercase;
}

.admin-commercial-contract-os-card .admin-los-chip {
  min-height: 30px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 6px 12px rgba(15, 23, 42, 0.04);
}

.admin-los-chip.is-success,
.admin-los-chip.is-sent,
.admin-los-chip.is-test {
  color: #166534;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.24);
}

.admin-los-chip.is-verified {
  color: #166534;
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.24);
}

.admin-los-chip.is-warning {
  color: #a16207;
  background: rgba(250, 204, 21, 0.18);
  border-color: rgba(250, 204, 21, 0.28);
}

.admin-los-chip.is-unverified {
  color: #a16207;
  background: rgba(250, 204, 21, 0.18);
  border-color: rgba(250, 204, 21, 0.28);
}

.admin-los-chip.is-pending {
  color: #c2410c;
  background: rgba(251, 146, 60, 0.18);
  border-color: rgba(251, 146, 60, 0.30);
}

.admin-los-chip.is-expired {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.24);
}

.admin-los-chip.is-manual {
  color: #6d28d9;
  background: rgba(167, 139, 250, 0.18);
  border-color: rgba(167, 139, 250, 0.28);
}

.admin-los-chip.is-error,
.admin-los-chip.is-blocked,
.admin-los-chip.is-failed {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.26);
}

.admin-los-chip.is-origin-query {
  color: #1d4ed8;
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.28);
}

.admin-los-chip.is-origin-cache {
  color: #6d28d9;
  background: rgba(196, 181, 253, 0.20);
  border-color: rgba(196, 181, 253, 0.30);
}

.admin-los-chip.is-origin-error {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.26);
}

.admin-los-chip.is-info,
.admin-los-chip.is-running {
  color: #1d4ed8;
  background: rgba(96, 165, 250, 0.16);
  border-color: rgba(96, 165, 250, 0.26);
}

.admin-los-chip.is-neutral,
.admin-los-chip.is-idle {
  color: #334155;
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.24);
}

.admin-los-table-wrap {
  margin-top: 4px;
}

.admin-los-table {
  width: 100%;
  font-size: 13px;
}

.admin-los-table th,
.admin-los-table td {
  vertical-align: middle;
}

.admin-los-log-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.admin-los-log-filters .input {
  min-width: 220px;
}

.admin-los-log-detail {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(248, 250, 252, 0.95);
}

.admin-los-log-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-los-log-json {
  margin: 0;
  max-height: 280px;
  overflow: auto;
  padding: 14px;
  border-radius: 14px;
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.55;
}

.admin-los-log-row {
  cursor: pointer;
}

.admin-los-log-row:hover {
  background: rgba(59, 130, 246, 0.05);
}

.admin-los-run-detail {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 12px;
}

.admin-isp-supports-card .admin-los-section-head h4 {
  letter-spacing: 0.01em;
}

.admin-isp-supports-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.isp-supports-target-list {
  display: grid;
  gap: 10px;
}

.isp-supports-target-card {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.16);
  display: grid;
  gap: 4px;
}

.isp-supports-target-card strong {
  color: #0f172a;
  font-size: 14px;
}

.isp-supports-target-card span,
.isp-supports-target-card small {
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 1100px) {
  .admin-hero,
  .admin-grid {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-hero-badge {
    align-self: stretch;
    text-align: left;
  }

  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-los-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-los-grid {
    grid-template-columns: 1fr;
  }

  .admin-los-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-los-weekdays {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .admin-los-log-filters {
    width: 100%;
  }

  .admin-los-log-filters .input {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 700px) {
  .admin-form-grid,
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-los-summary-grid,
  .admin-los-form-grid {
    grid-template-columns: 1fr;
  }

  .admin-los-weekdays {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-actions-row,
  .admin-inline-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-actions-group button,
  .admin-inline-actions button {
    width: 100%;
  }

  .admin-panel {
    padding: 16px;
  }

  .admin-card-block,
  .admin-tech-card {
    padding: 16px;
  }

  .admin-los-card {
    padding: 16px;
  }

  .admin-los-log-filters {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =====================================================
   SIDEBAR SOMENTE ICONES (COMPACTA)
   ===================================================== */
.dashboard {
  grid-template-columns: 64px 1fr !important;
}

.sidebar,
#sidebar,
.leftbar {
  width: 64px !important;
  min-width: 64px !important;
  max-width: 64px !important;
  padding: 8px 6px !important;
}

.sidebar .side-title,
#sidebar .side-title,
.leftbar .side-title,
.sidebar .nav .label,
#sidebar .nav .label,
.leftbar .nav .label {
  display: none !important;
}

.sidebar .side-brand,
#sidebar .side-brand,
.leftbar .side-brand {
  justify-content: center !important;
  padding: 6px 0 10px !important;
}

.sidebar .nav a,
.sidebar .nav button,
#sidebar .nav a,
#sidebar .nav button,
.leftbar .nav a,
.leftbar .nav button {
  justify-content: center !important;
  padding: 9px 4px !important;
}

.sidebar .nav .icon,
#sidebar .nav .icon,
.leftbar .nav .icon {
  width: 22px !important;
  height: 22px !important;
  font-size: 1rem !important;
}

/* Conteúdo mais rente à lateral */
.content {
  padding: 12px 14px 18px !important;
}

.controle-dados-card {
  display: grid;
  gap: 16px;
}

.controle-dados-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.controle-dados-toolbar .form-group {
  min-width: 280px;
  flex: 1 1 320px;
}

.controle-dados-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.controle-dados-meta {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 0.9rem;
}

.controle-tempo-shell {
  display: grid;
  gap: 18px;
}

.controle-tempo-hero-card,
.controle-tempo-filters-card,
.controle-tempo-panel,
.controle-tempo-summary-card {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(37, 99, 235, 0.1), transparent 58%),
    rgba(255, 255, 255, 0.04);
}

.controle-tempo-section {
  display: grid;
  gap: 14px;
}

.controle-tempo-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.controle-tempo-hero-copy {
  display: grid;
  gap: 6px;
}

.controle-tempo-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.controle-tempo-sheet-card {
  display: grid;
  gap: 14px;
}

.controle-tempo-sheet-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.controle-tempo-sheet-tab {
  display: grid;
  gap: 4px;
  min-width: 168px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(15, 23, 42, 0.22);
  color: #dbeafe;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.controle-tempo-sheet-tab:hover {
  border-color: rgba(96, 165, 250, 0.34);
  background: rgba(37, 99, 235, 0.13);
}

.controle-tempo-sheet-tab.is-active {
  border-color: rgba(96, 165, 250, 0.5);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.28), rgba(15, 23, 42, 0.34));
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.controle-tempo-sheet-tab-kind {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
}

.controle-tempo-sheet-tab strong {
  font-size: 0.98rem;
  line-height: 1.2;
  color: #f8fafc;
}

.controle-tempo-sheet-tab small {
  color: var(--muted);
  font-size: 0.8rem;
}

.controle-tempo-filters-grid {
  align-items: end;
}

.controle-tempo-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.24);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.controle-tempo-status[data-state="loading"] {
  color: #dbeafe;
  border-color: rgba(96, 165, 250, 0.3);
}

.controle-tempo-status[data-state="success"] {
  color: #dcfce7;
  border-color: rgba(74, 222, 128, 0.3);
}

.controle-tempo-status[data-state="warning"] {
  color: #fef3c7;
  border-color: rgba(250, 204, 21, 0.3);
}

.controle-tempo-status[data-state="error"] {
  color: #fee2e2;
  border-color: rgba(248, 113, 113, 0.34);
}

.controle-tempo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.controle-tempo-kpi-card {
  min-height: 140px;
  height: 100%;
}

.controle-tempo-kpi-note {
  display: block;
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}

.controle-tempo-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.controle-tempo-summary-card {
  display: grid;
  gap: 10px;
  min-height: 132px;
}

.controle-tempo-summary-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.controle-tempo-summary-value {
  font-size: 1.9rem;
  line-height: 1;
}

.controle-tempo-summary-note {
  color: var(--muted);
  font-size: 0.9rem;
}

.controle-tempo-panels-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.controle-tempo-board-layout,
.controle-tempo-tech-layout {
  display: grid;
  gap: 14px;
}

.controle-tempo-exec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.controle-tempo-exec-card {
  display: grid;
  gap: 14px;
  padding: 18px 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.24)),
    rgba(255, 255, 255, 0.03);
}

.controle-tempo-exec-card.is-top {
  border-color: rgba(96, 165, 250, 0.28);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.controle-tempo-exec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.controle-tempo-exec-head h4 {
  margin: 4px 0 0;
  font-size: 1.02rem;
  line-height: 1.25;
}

.controle-tempo-exec-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 10px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.16);
  color: #dbeafe;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

.controle-tempo-exec-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: #e2e8f0;
  font-size: 0.82rem;
  white-space: nowrap;
}

.controle-tempo-exec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.controle-tempo-exec-grid div {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.controle-tempo-exec-grid span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.controle-tempo-exec-grid strong {
  font-size: 1rem;
  line-height: 1.2;
}

.controle-tempo-exec-note {
  color: var(--muted);
  font-size: 0.88rem;
}

.controle-tempo-ranking-list {
  display: grid;
  gap: 12px;
}

.controle-tempo-ranking-item {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.24);
}

.controle-tempo-ranking-item.is-top {
  border-color: rgba(96, 165, 250, 0.24);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.09), rgba(15, 23, 42, 0.24));
}

.controle-tempo-ranking-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.controle-tempo-ranking-name-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.controle-tempo-ranking-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  min-height: 30px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  color: #dbeafe;
  font-size: 0.76rem;
  font-weight: 800;
  flex: 0 0 auto;
}

.controle-tempo-ranking-name {
  font-weight: 700;
  color: #f8fafc;
  min-width: 0;
  word-break: break-word;
}

.controle-tempo-ranking-meta {
  font-size: 0.86rem;
  color: var(--muted);
}

.controle-tempo-ranking-value {
  font-weight: 700;
  color: #e2e8f0;
  white-space: nowrap;
}

.controle-tempo-progress {
  position: relative;
  overflow: hidden;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.controle-tempo-progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.95), rgba(59, 130, 246, 0.96));
}

.controle-tempo-file-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.controle-tempo-file-item {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.22);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.controle-tempo-file-item span {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.controle-tempo-file-item strong {
  font-size: 1rem;
  line-height: 1.4;
  word-break: break-word;
}

.controle-tempo-table td.is-negative,
.controle-tempo-table td.is-warning {
  color: #fca5a5;
}

.controle-tempo-table td.is-positive {
  color: #86efac;
}

.controle-tempo-table-sticky thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(10px);
}

.controle-tempo-table tbody tr:nth-child(even) {
  background: rgba(148, 163, 184, 0.04);
}

.controle-tempo-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.08);
}

.table-rank,
.table-rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 0 8px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.14);
  color: #dbeafe;
  font-size: 0.76rem;
  font-weight: 800;
}

.controle-tempo-attention {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
}

.controle-tempo-attention.is-low {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
}

.controle-tempo-attention.is-medium {
  background: rgba(250, 204, 21, 0.14);
  color: #fde68a;
}

.controle-tempo-attention.is-high {
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
}

@media (max-width: 820px) {
  .controle-dados-actions {
    width: 100%;
  }

  .controle-dados-actions button {
    flex: 1 1 100%;
  }

  .controle-tempo-kpi-grid,
  .controle-tempo-insight-grid,
  .controle-tempo-panels-grid,
  .controle-tempo-file-grid,
  .controle-tempo-exec-grid {
    grid-template-columns: 1fr;
  }

  .controle-tempo-sheet-tab {
    min-width: 100%;
  }
}

/* =============================
   GESTAO DE PRODUCAO
   ============================= */
section[data-section="gestao"] {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.gestao-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(30, 64, 175, 0.16), transparent 52%),
    radial-gradient(120% 140% at 100% 0%, rgba(14, 116, 144, 0.11), transparent 48%),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 20px 48px rgba(4, 10, 24, 0.18);
}

.gestao-hero-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.gestao-title-block {
  display: grid;
  gap: 6px;
}

.gestao-title-block h2 {
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.gestao-title-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #d6e4f5;
  background: rgba(15, 23, 42, 0.36);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.gestao-title-chip.is-active {
  color: #f8fbff;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(14, 116, 144, 0.3));
  border-color: rgba(125, 211, 252, 0.42);
  box-shadow:
    0 10px 24px rgba(37, 99, 235, 0.18),
    0 0 0 1px rgba(191, 219, 254, 0.14) inset;
}

.gestao-subtitle {
  margin-top: 6px;
  max-width: 760px;
  color: var(--muted);
  font-size: 0.96rem;
}

.gestao-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gestao-action-btn {
  min-width: 148px;
}

.gestao-subtabs {
  display: flex;
  gap: 10px;
  padding: 6px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gestao-subtab {
  min-width: 124px;
  border: 1px solid rgba(148, 163, 184, 0.1);
  background: rgba(15, 23, 42, 0.08);
  color: #cbd5e1;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.gestao-subtab:hover {
  background: rgba(30, 41, 59, 0.28);
  border-color: rgba(148, 163, 184, 0.18);
  color: #e2e8f0;
}

.gestao-subtab.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.34), rgba(14, 116, 144, 0.28));
  border-color: rgba(125, 211, 252, 0.46);
  color: #f8fbff;
  font-weight: 800;
  box-shadow:
    0 12px 28px rgba(37, 99, 235, 0.18),
    0 0 0 2px rgba(191, 219, 254, 0.14) inset;
}

.gestao-subtab.is-active:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(14, 116, 144, 0.34));
}

.gestao-subtab:focus-visible {
  outline: 2px solid rgba(191, 219, 254, 0.9);
  outline-offset: 2px;
}

.gestao-subview {
  display: grid;
  gap: 16px;
}

.gestao-subview.hidden {
  display: none;
}

.gestao-folder-pill,
.gestao-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 700;
}

.gestao-grid-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.gestao-grid-kpis-panel {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gestao-grid-kpis-period {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.gestao-grid-kpis-feedback {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gestao-kpi-card {
  position: relative;
  padding: 18px 22px;
  min-height: 116px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 248, 252, 0.98)),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.gestao-kpi-card::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.16), rgba(226, 232, 240, 0.65), rgba(148, 163, 184, 0.16));
}

.gestao-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex: 0 0 48px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.gestao-grid-kpis-period .gestao-kpi-icon {
  font-size: 1.35rem;
}

.gestao-kpi-icon.is-teal {
  background: linear-gradient(135deg, #79d6c2, #53c3ab);
}

.gestao-kpi-icon.is-lilac {
  background: linear-gradient(135deg, #cfb8e7, #b59ad8);
}

.gestao-kpi-icon.is-blue {
  background: linear-gradient(135deg, #8eb7ef, #72a3e6);
}

.gestao-kpi-icon.is-peach {
  background: linear-gradient(135deg, #ffc29e, #f7a979);
}

.gestao-kpi-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
  justify-items: center;
}

.gestao-kpi-label {
  display: block;
  color: #94a3b8;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0;
  text-align: center;
}

.gestao-kpi-value {
  display: block;
  color: #0f172a;
  font-size: clamp(1.8rem, 2.2vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-align: center;
}

.gestao-control-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 12px;
  align-items: stretch;
}

.gestao-control-layout-single {
  grid-template-columns: 1fr;
}

.gestao-panels {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(340px, 1.05fr);
  gap: 18px;
}

.gestao-compare-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.gestao-compare-services-grid > .gestao-panel {
  min-width: 0;
}

.gestao-compare-services-grid .gestao-service-shell {
  grid-template-columns: 1fr;
  gap: 14px;
}

.gestao-compare-services-grid .gestao-service-donut-wrap {
  min-height: auto;
}

.gestao-compare-services-grid .gestao-service-donut {
  width: 180px;
  height: 180px;
}

.gestao-compare-services-grid .gestao-service-donut-hole strong {
  font-size: 2.2rem;
}

.gestao-compare-services-grid .gestao-service-line,
.gestao-compare-services-grid .gestao-service-foot {
  flex-wrap: wrap;
}

.gestao-compare-services-grid .gestao-service-main,
.gestao-compare-services-grid .gestao-service-row {
  min-width: 0;
}

.gestao-compare-services-grid .gestao-service-line strong {
  overflow-wrap: anywhere;
}

.gestao-stack {
  display: grid;
  gap: 18px;
  align-content: start;
}

.gestao-kpi-panel {
  height: 100%;
}

.gestao-filters-panel-full {
  padding: 20px 22px;
}

.gestao-main-layout {
  display: grid;
  grid-template-columns: minmax(340px, 1fr) minmax(340px, 1fr);
  gap: 18px;
  align-items: start;
}

.gestao-main-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.gestao-files-panel {
  padding: 16px 18px;
}

.gestao-files-panel .gestao-panel-head {
  margin-bottom: 10px;
}

.gestao-files-table-wrap {
  max-height: 210px;
  overflow: auto;
}

.gestao-files-table {
  min-width: 780px;
}

.gestao-files-panel .gestao-badge {
  padding: 6px 10px;
  font-size: 0.76rem;
}

.gestao-compare-summary-stack {
  display: grid;
  gap: 18px;
}

.gestao-compare-side {
  min-width: 0;
}

.gestao-compare-side > .gestao-panel {
  min-width: 0;
}

.gestao-subview.is-dual-tech .gestao-compare-side > .gestao-panel:first-child {
  padding: 16px 18px;
}

.gestao-subview.is-dual-tech .gestao-compare-side > .gestao-panel:first-child .gestao-panel-head {
  margin-bottom: 10px;
}

.gestao-subview.is-dual-tech .gestao-compare-side > .gestao-panel:first-child .gestao-rank-item {
  padding: 12px 14px;
}

.gestao-compare-kpi-block {
  position: relative;
}

.gestao-compare-kpi-block::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(96, 165, 250, 0.14);
}

.gestao-panel {
  width: 100%;
  max-width: none;
  padding: 20px 22px;
  overflow: visible;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025)),
    rgba(6, 11, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 40px rgba(4, 10, 24, 0.15);
}

.gestao-panel-full {
  padding-bottom: 20px;
}

.gestao-filters-panel {
  padding: 18px;
  overflow: visible;
  z-index: 3;
  height: 100%;
}

.gestao-compare-panel {
  padding: 22px;
  height: 100%;
  overflow: visible;
}

.gestao-filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 0;
  align-items: end;
}

.gestao-range-field {
  min-width: 0;
}

.gestao-range-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.gestao-range-separator {
  color: #94a3b8;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: lowercase;
}

.gestao-range-summary {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.35;
}

.gestao-compare-controls-grid {
  margin-bottom: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gestao-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.gestao-compare-section {
  display: grid;
  gap: 14px;
}

.gestao-compare-section-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gestao-compare-grid-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.gestao-compare-layout {
  display: grid;
  gap: 16px;
  padding: 18px;
  margin-bottom: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gestao-compare-filters-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gestao-compare-periods {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gestao-compare-period-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.34);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.gestao-period-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #e2e8f0;
}

.gestao-filters-panel .form-group,
.gestao-filters-panel select,
.gestao-compare-panel .form-group,
.gestao-compare-panel select {
  width: 100%;
}

.gestao-filters-panel select,
.gestao-compare-panel select {
  position: relative;
  z-index: 4;
}

.gestao-compare-card {
  padding: 18px 18px 16px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 249, 252, 0.98)),
    rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
  display: grid;
  gap: 14px;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.gestao-compare-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gestao-compare-card h4 {
  font-size: 1.06rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.gestao-compare-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  background: #eef2ff;
  border: 1px solid #dbe4ff;
}

.gestao-compare-highlight {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(96, 165, 250, 0.16), transparent 48%),
    radial-gradient(120% 140% at 100% 0%, rgba(20, 184, 166, 0.12), transparent 45%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 252, 1));
  border-color: rgba(191, 219, 254, 0.95);
}

.gestao-compare-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #94a3b8;
}

.gestao-compare-row strong {
  color: var(--text);
}

.gestao-compare-card-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gestao-compare-metric {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.96);
}

.gestao-compare-metric-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
}

.gestao-compare-metric-value {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.gestao-compare-diff-list {
  display: grid;
  gap: 10px;
}

.gestao-compare-diff-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.gestao-compare-diff-item span {
  color: #475569;
  font-size: 0.92rem;
}

.gestao-compare-diff-item strong {
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.gestao-diff-positive,
.gestao-badge-positive {
  color: #22c55e !important;
}

.gestao-diff-negative,
.gestao-badge-negative {
  color: #ef4444 !important;
}

.gestao-compare-row .gestao-diff-neutral,
.gestao-badge-neutral {
  color: #e2e8f0 !important;
}

.gestao-feedback-panel {
  padding: 22px;
}

.gestao-feedback-inline-help {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(14, 165, 233, 0.12));
  border: 1px solid rgba(59, 130, 246, 0.16);
  color: #0f172a;
  font-size: 0.93rem;
  font-weight: 600;
}

.gestao-feedback-active-filters {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(148, 163, 184, 0.28);
  color: #334155;
  font-size: 0.9rem;
  font-weight: 600;
}

.gestao-feedback-active-filters.is-active {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(56, 189, 248, 0.12));
  border-style: solid;
  border-color: rgba(37, 99, 235, 0.28);
  color: #0f172a;
}

.gestao-feedback-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  align-items: end;
}

.gestao-feedback-panels {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.gestao-feedback-score-list,
.gestao-feedback-months-list {
  display: grid;
  gap: 12px;
}

.gestao-feedback-score-row,
.gestao-feedback-month-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow:
    0 12px 24px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.gestao-feedback-score-row {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  border: 1px solid rgba(226, 232, 240, 0.92);
  padding: 14px 16px;
  border-radius: 18px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, filter 0.16s ease;
}

.gestao-feedback-score-row.is-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
  border-color: rgba(226, 232, 240, 0.92);
}

.gestao-feedback-panel .gestao-feedback-score-row.is-muted,
.gestao-feedback-panel .gestao-feedback-score-row.tone-muted {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)) !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
  color: #0f172a !important;
}

.gestao-feedback-panel .gestao-feedback-score-row.tone-muted .gestao-feedback-score-fill {
  background: linear-gradient(90deg, #cbd5e1, #94a3b8) !important;
  box-shadow: 0 0 16px rgba(148, 163, 184, 0.16) !important;
}

.gestao-feedback-score-row.is-active {
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow:
    0 0 0 3px rgba(191, 219, 254, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 28px rgba(37, 99, 235, 0.18);
  transform: translateY(-1px);
}

.gestao-feedback-score-row.tone-5 {
  --gestao-feedback-accent: #f59e0b;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)) !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
}

.gestao-feedback-score-row.tone-4 {
  --gestao-feedback-accent: #22c55e;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)) !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
}

.gestao-feedback-score-row.tone-3 {
  --gestao-feedback-accent: #38bdf8;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)) !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
}

.gestao-feedback-score-row.tone-2 {
  --gestao-feedback-accent: #fb923c;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)) !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
}

.gestao-feedback-score-row.tone-1 {
  --gestao-feedback-accent: #ef4444;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98)) !important;
  border-color: rgba(226, 232, 240, 0.92) !important;
}

.gestao-feedback-card-note {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.gestao-feedback-score-head,
.gestao-feedback-month-top,
.gestao-feedback-month-metrics {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.gestao-feedback-score-track {
  margin-top: 10px;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.72), rgba(30, 41, 59, 0.52));
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.45);
}

.gestao-feedback-score-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38bdf8, #60a5fa);
  box-shadow:
    0 0 16px rgba(56, 189, 248, 0.24),
    0 0 28px rgba(59, 130, 246, 0.2);
}

.gestao-feedback-score-row.tone-5 .gestao-feedback-score-fill {
  background: linear-gradient(90deg, var(--gestao-feedback-accent, #f59e0b), #facc15, #fb7185) !important;
  box-shadow:
    0 0 18px rgba(245, 158, 11, 0.28),
    0 0 30px rgba(251, 113, 133, 0.18);
}

.gestao-feedback-score-row.tone-4 .gestao-feedback-score-fill {
  background: linear-gradient(90deg, var(--gestao-feedback-accent, #22c55e), #2dd4bf, #38bdf8) !important;
  box-shadow:
    0 0 18px rgba(34, 197, 94, 0.24),
    0 0 28px rgba(56, 189, 248, 0.16);
}

.gestao-feedback-score-row.tone-3 .gestao-feedback-score-fill {
  background: linear-gradient(90deg, var(--gestao-feedback-accent, #06b6d4), #38bdf8, #818cf8) !important;
  box-shadow:
    0 0 18px rgba(6, 182, 212, 0.22),
    0 0 28px rgba(129, 140, 248, 0.14);
}

.gestao-feedback-score-row.tone-2 .gestao-feedback-score-fill {
  background: linear-gradient(90deg, var(--gestao-feedback-accent, #fb923c), #f97316, #ef4444) !important;
  box-shadow:
    0 0 18px rgba(249, 115, 22, 0.24),
    0 0 28px rgba(239, 68, 68, 0.14);
}

.gestao-feedback-score-row.tone-1 .gestao-feedback-score-fill {
  background: linear-gradient(90deg, var(--gestao-feedback-accent, #ef4444), #f43f5e, #e11d48) !important;
  box-shadow:
    0 0 18px rgba(239, 68, 68, 0.24),
    0 0 28px rgba(225, 29, 72, 0.16);
}

.gestao-feedback-score-row.is-muted .gestao-feedback-score-fill {
  background: linear-gradient(90deg, #64748b, #94a3b8);
  box-shadow: 0 0 16px rgba(148, 163, 184, 0.2);
}

.gestao-feedback-month-top strong,
.gestao-feedback-score-head strong {
  color: #0f172a;
  font-weight: 800;
}

.gestao-feedback-month-top span,
.gestao-feedback-month-metrics span,
.gestao-feedback-score-head span {
  color: #0f172a;
  font-size: 0.9rem;
}

.gestao-feedback-panel .gestao-rank-item {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow:
    0 12px 24px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
  color: #0f172a !important;
}

.gestao-feedback-panel .gestao-rank-item.is-top {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.99));
  border-color: rgba(226, 232, 240, 0.95);
  color: #0f172a !important;
}

.gestao-feedback-panel .gestao-rank-order {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(191, 219, 254, 0.55);
  color: #0f172a;
}

.gestao-feedback-panel .gestao-rank-progress {
  background: rgba(226, 232, 240, 0.85);
}

.gestao-feedback-panel .gestao-rank-progress-fill {
  background: linear-gradient(90deg, #2563eb, #3b82f6, #60a5fa);
}

.gestao-feedback-panel .gestao-rank-topline strong,
.gestao-feedback-panel .gestao-rank-topline span,
.gestao-feedback-panel .gestao-rank-subline span {
  color: #0f172a;
}

.gestao-feedback-panel .gestao-rank-item.is-active {
  border-color: rgba(37, 99, 235, 0.44) !important;
  box-shadow:
    0 0 0 3px rgba(191, 219, 254, 0.55),
    0 16px 30px rgba(37, 99, 235, 0.16) !important;
  transform: translateY(-1px);
}

.gestao-feedback-table-panel {
  min-width: 0;
}

.gestao-feedback-table-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gestao-feedback-table-wrap {
  overflow-x: auto;
  transition: max-height 0.2s ease;
}

.gestao-feedback-table-wrap.is-collapsed {
  max-height: 360px;
  overflow: auto;
}

.gestao-feedback-table-wrap.is-expanded {
  max-height: 78vh;
  overflow: auto;
}

.gestao-feedback-table {
  width: 100%;
  border-collapse: collapse;
}

.gestao-feedback-table th,
.gestao-feedback-table td {
  padding: 12px 10px;
  text-align: left;
}

.gestao-feedback-table thead th {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #334155;
  border-bottom: 1px solid #dbe3ee;
  background: #f8fafc;
}

.gestao-feedback-table tbody td {
  color: #111827;
  border-top: 1px solid #e5e7eb;
}

.gestao-feedback-table tbody tr:hover {
  background: #f8fafc;
}

.gestao-feedback-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #111827 !important;
  background: #f3f4f6 !important;
  border: 1px solid #d1d5db !important;
  cursor: pointer;
}

.gestao-feedback-score-pill.is-muted {
  color: #111827 !important;
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

.gestao-feedback-score-pill.is-active {
  border-color: rgba(37, 99, 235, 0.42);
  box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.55);
}

.gestao-feedback-link-btn {
  appearance: none;
  border: 0;
  background: transparent !important;
  color: #111827 !important;
  padding: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.gestao-feedback-link-btn.is-active {
  color: #1d4ed8 !important;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.gestao-feedback-link-btn:hover,
.gestao-feedback-score-pill:hover,
.gestao-feedback-score-row:hover,
.gestao-rank-item[data-gestao-feedback-tech]:hover {
  filter: brightness(0.99);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.gestao-feedback-table tbody .gestao-feedback-link-btn,
.gestao-feedback-table tbody .gestao-feedback-score-pill {
  color: #111827 !important;
}

.gestao-feedback-link-btn:focus-visible,
.gestao-feedback-score-pill:focus-visible,
.gestao-feedback-score-row:focus-visible,
.gestao-rank-item[data-gestao-feedback-tech]:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.gestao-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.gestao-panel-head-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.gestao-panel-head h3 {
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.gestao-services-panel .gestao-panel-head {
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 20px;
}

.gestao-services-headline {
  display: grid;
  gap: 6px;
}

.gestao-services-headline p {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.gestao-panel-subtitle {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 0.9rem;
}

.gestao-empty {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  color: #94a3b8;
  border: 1px dashed rgba(148, 163, 184, 0.16);
}

.gestao-months-list,
.gestao-ranking-list,
.gestao-service-list {
  display: grid;
  gap: 12px;
}

.gestao-months-showcase {
  display: grid;
  gap: 16px;
}

.gestao-months-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.gestao-months-metric {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.92);
}

.gestao-months-metric-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  font-weight: 800;
}

.gestao-months-metric strong {
  font-size: 1.45rem;
  line-height: 1;
  color: #0f172a;
}

.gestao-months-metric strong.is-up {
  color: #0f766e;
}

.gestao-months-metric strong.is-down {
  color: #dc2626;
}

.gestao-months-metric strong.is-flat {
  color: #334155;
}

.gestao-months-metric small {
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.gestao-months-summary {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.72);
  color: #334155;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.gestao-months-summary.is-up {
  color: #0f766e;
  background: linear-gradient(180deg, rgba(220, 252, 231, 0.95), rgba(236, 253, 245, 0.96));
  border-color: rgba(167, 243, 208, 0.9);
}

.gestao-months-summary.is-down {
  color: #dc2626;
  background: linear-gradient(180deg, rgba(254, 226, 226, 0.96), rgba(254, 242, 242, 0.98));
  border-color: rgba(252, 165, 165, 0.9);
}

.gestao-months-chart {
  display: block;
}

.gestao-months-chart-blocks {
  overflow-x: auto;
}

.gestao-months-plot {
  display: grid;
  gap: 16px;
}

.gestao-months-plot-blocks {
  min-width: 0;
}

.gestao-months-surface {
  padding: 18px 18px 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.gestao-months-surface-blocks {
  padding: 20px;
}

.gestao-months-block-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.gestao-month-block {
  display: grid;
  gap: 14px;
  min-height: 320px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.gestao-month-block.is-latest {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.12);
}

.gestao-month-block:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.gestao-month-block:focus-visible {
  outline: none;
  border-color: rgba(37, 99, 235, 0.65);
  box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.85), 0 18px 34px rgba(37, 99, 235, 0.12);
}

.gestao-month-block.is-selected {
  border-color: rgba(37, 99, 235, 0.7);
  box-shadow: 0 0 0 3px rgba(191, 219, 254, 0.85), 0 18px 34px rgba(37, 99, 235, 0.12);
}

.gestao-month-block-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.gestao-month-block-label {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
}

.gestao-month-block-trend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(241, 245, 249, 0.95);
  color: #475569;
  white-space: nowrap;
}

.gestao-month-block.is-up .gestao-month-block-trend {
  background: rgba(220, 252, 231, 0.96);
  color: #0f766e;
}

.gestao-month-block.is-down .gestao-month-block-trend {
  background: rgba(254, 226, 226, 0.96);
  color: #dc2626;
}

.gestao-month-block-chart {
  position: relative;
  display: flex;
  align-items: end;
  min-height: 180px;
  padding-top: 8px;
}

.gestao-month-block-bar-wrap {
  position: relative;
  width: 100%;
  height: 180px;
  display: flex;
  align-items: end;
}

.gestao-month-block-bar {
  position: relative;
  width: 100%;
  min-height: 36px;
  border-radius: 18px 18px 10px 10px;
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  box-shadow: 0 18px 28px rgba(37, 99, 235, 0.16);
}

.gestao-month-block.is-up .gestao-month-block-bar {
  background: linear-gradient(180deg, #2dd4bf, #0f766e);
  box-shadow: 0 18px 28px rgba(15, 118, 110, 0.16);
}

.gestao-month-block.is-down .gestao-month-block-bar {
  background: linear-gradient(180deg, #fb7185, #ef4444);
  box-shadow: 0 18px 28px rgba(239, 68, 68, 0.16);
}

.gestao-month-block-bar-value {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.2);
}

.gestao-month-block-foot {
  display: grid;
  gap: 4px;
}

.gestao-month-block-foot strong {
  font-size: 1.15rem;
  color: #0f172a;
}

.gestao-month-block-foot span {
  font-size: 0.92rem;
  color: #64748b;
  font-weight: 600;
}

.gestao-months-svg {
  width: 100%;
  height: 240px;
  overflow: visible;
}

.gestao-months-axis {
  stroke: rgba(148, 163, 184, 0.46);
  stroke-width: 1;
}

.gestao-months-grid {
  stroke: rgba(203, 213, 225, 0.7);
  stroke-width: 1;
  stroke-dasharray: 4 8;
}

.gestao-months-area {
  fill: rgba(59, 130, 246, 0.08);
}

.gestao-months-line {
  fill: none;
  stroke: #2563eb;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 12px rgba(37, 99, 235, 0.14));
}

.gestao-months-tick {
  fill: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.gestao-months-point circle {
  fill: #ffffff;
  stroke: #2563eb;
  stroke-width: 3.5;
}

.gestao-months-point.is-latest circle {
  r: 7;
  stroke: #ef4444;
}

.gestao-months-point-label {
  fill: #0f172a;
  font-size: 12px;
  font-weight: 800;
}

.gestao-months-xlabel {
  fill: #475569;
  font-size: 12px;
  font-weight: 700;
}

.gestao-months-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.gestao-month-callout {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.98);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.gestao-month-callout.is-latest {
  background: rgba(239, 246, 255, 0.98);
  border-color: rgba(147, 197, 253, 0.9);
}

.gestao-month-callout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gestao-month-callout-top strong {
  color: #0f172a;
  font-size: 1rem;
}

.gestao-month-callout-top span {
  font-size: 0.82rem;
  font-weight: 800;
  color: #64748b;
}

.gestao-month-callout.is-up .gestao-month-callout-top span {
  color: #86efac;
}

.gestao-month-callout.is-down .gestao-month-callout-top span {
  color: #fca5a5;
}

.gestao-month-callout-value {
  color: #0f172a;
  font-size: 1.3rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.gestao-month-callout-foot {
  color: #94a3b8;
  font-size: 0.9rem;
}

.gestao-service-list {
  gap: 0;
}

.gestao-bar-row {
  display: grid;
  grid-template-columns: minmax(130px, 180px) 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

.gestao-bar-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gestao-bar-meta span,
.gestao-rank-subline span,
.gestao-service-item p {
  color: var(--muted);
  font-size: 0.82rem;
}

.gestao-bar-track,
.gestao-rank-progress {
  height: 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.gestao-bar-fill,
.gestao-rank-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e, #2563eb 58%, #64748b);
}

.gestao-bar-value {
  text-align: right;
  font-weight: 800;
  color: #f8fafc;
}

.gestao-rank-item {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(148, 163, 184, 0.1);
  width: 100%;
  cursor: pointer;
  text-align: inherit;
  font: inherit;
  color: inherit;
  box-shadow: none;
  outline: none;
  filter: none;
  transform: none;
  -webkit-tap-highlight-color: transparent;
}

.gestao-rank-order {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.18);
  font-size: 1.02rem;
}

.gestao-rank-body {
  display: grid;
  gap: 8px;
}

.gestao-rank-item.is-top {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(14, 116, 144, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.045);
  border-color: rgba(125, 211, 252, 0.16);
}

.gestao-rank-item.is-active {
  border-color: rgba(37, 99, 235, 0.44);
  box-shadow:
    0 0 0 3px rgba(191, 219, 254, 0.55),
    0 16px 30px rgba(37, 99, 235, 0.16);
  transform: translateY(-1px);
}

.gestao-rank-item.is-top .gestao-rank-order {
  background: rgba(14, 116, 144, 0.14);
  border-color: rgba(125, 211, 252, 0.2);
}

.gestao-rank-item.is-placeholder {
  cursor: default;
}

.gestao-rank-item:hover,
.gestao-rank-item:focus,
.gestao-rank-item:active,
.gestao-rank-item:focus-visible {
  color: inherit;
  background:
    rgba(255, 255, 255, 0.035);
  box-shadow: none;
  filter: none;
  transform: none;
  outline: none;
}

.gestao-rank-item.is-top:hover,
.gestao-rank-item.is-top:focus,
.gestao-rank-item.is-top:active,
.gestao-rank-item.is-top:focus-visible {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(14, 116, 144, 0.12), transparent 40%),
    rgba(255, 255, 255, 0.045);
}

.gestao-rank-topline,
.gestao-rank-subline,
.gestao-service-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gestao-rank-subline {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
}

.gestao-service-item {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gestao-service-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.gestao-service-donut-wrap {
  display: grid;
  place-items: center;
  min-height: 228px;
}

.gestao-service-donut {
  width: 222px;
  height: 222px;
  border-radius: 50%;
  padding: 14px;
  display: grid;
  place-items: center;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 10px 28px rgba(0, 0, 0, 0.12);
}

.gestao-service-donut-hole {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.98), rgba(244, 247, 252, 0.96)),
    #ffffff;
  box-shadow:
    inset 0 0 0 1px rgba(15, 23, 42, 0.06),
    0 8px 22px rgba(0, 0, 0, 0.08);
}

.gestao-service-donut-hole strong {
  font-size: 2.6rem;
  line-height: 1;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.gestao-service-donut-hole span {
  color: #475569;
  font-size: 0.95rem;
}

.gestao-service-legend {
  display: grid;
  gap: 16px;
}

.gestao-service-row {
  -webkit-appearance: none;
  appearance: none;
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.08);
  box-shadow: none;
  width: 100%;
  cursor: pointer;
  text-align: inherit;
  font: inherit;
  color: inherit;
  outline: none;
  filter: none;
  transform: none;
  -webkit-tap-highlight-color: transparent;
}

.gestao-service-row:hover,
.gestao-service-row:focus,
.gestao-service-row:active,
.gestao-service-row:focus-visible {
  color: inherit;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: none;
  filter: none;
  transform: none;
  outline: none;
}

.gestao-service-dot {
  width: 16px;
  height: 16px;
  margin-top: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--service-color-a), var(--service-color-b));
  box-shadow: none;
}

.gestao-service-main {
  display: grid;
  gap: 6px;
}

.gestao-service-line {
  margin-bottom: 2px;
}

.gestao-service-line,
.gestao-service-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gestao-service-line strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.gestao-service-line span,
.gestao-service-foot span {
  color: #94a3b8;
  font-size: 0.82rem;
}

.gestao-service-track {
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.16);
}

.gestao-service-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--service-color-a), var(--service-color-b));
  box-shadow: none;
}

.gestao-service-foot strong {
  font-size: 0.95rem;
  color: #f8fafc;
}

.gestao-service-row.is-others {
  margin-top: 2px;
}

.gestao-service-toggle {
  justify-self: end;
  margin-left: 0;
  padding: 0;
  border-radius: 0;
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  border: 0;
  color: #8fb2ff;
  min-height: auto;
}

.gestao-service-toggle:hover {
  transform: none;
  background: transparent;
  color: #b4cbff;
}

.gestao-service-extra {
  display: none;
  gap: 10px;
  padding-top: 2px;
  margin-left: 0;
}

.gestao-service-extra.is-open {
  display: grid;
}

.gestao-table-wrap {
  overflow: auto;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.gestao-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.gestao-table th,
.gestao-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gestao-table th {
  position: sticky;
  top: 0;
  background: rgba(5, 8, 22, 0.92);
  font-size: 0.83rem;
}

.gestao-table-empty {
  text-align: center;
  color: var(--muted);
}

.gestao-instructions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gestao-instruction-card {
  padding: 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.gestao-instruction-card strong {
  display: block;
  margin-bottom: 8px;
}

.gestao-instruction-card p,
.gestao-instruction-card code {
  color: var(--muted);
}

.gestao-months-empty {
  display: grid;
  gap: 10px;
  place-items: center;
  text-align: center;
  min-height: 180px;
}

.gestao-months-empty-icon {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 1.6rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #d6e4f5;
}

.gestao-months-empty strong {
  font-size: 1rem;
}

.gestao-months-empty p {
  color: #94a3b8;
  max-width: 320px;
}

@media (max-width: 1100px) {
  .gestao-grid-kpis,
  .gestao-control-layout,
  .gestao-panels,
  .gestao-main-layout,
  .gestao-feedback-panels,
  .gestao-panels-lower,
  .gestao-instructions,
  .gestao-compare-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gestao-grid-kpis-period {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gestao-grid-kpis-feedback {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .gestao-grid-kpis,
  .gestao-control-layout,
  .gestao-panels,
  .gestao-main-layout,
  .gestao-feedback-panels,
  .gestao-compare-services-grid,
  .gestao-panels-lower,
  .gestao-instructions,
  .gestao-compare-grid {
    grid-template-columns: 1fr;
  }

  .gestao-grid-kpis-period,
  .gestao-grid-kpis-feedback,
  .gestao-grid-kpis-panel {
    grid-template-columns: 1fr;
  }

  .gestao-bar-row {
    grid-template-columns: 1fr;
  }

  .gestao-bar-value {
    text-align: left;
  }

  .gestao-hero {
    padding: 18px;
  }

  .gestao-compare-filters-head,
  .gestao-compare-periods,
  .gestao-compare-controls-grid,
  .gestao-compare-card-metrics {
    grid-template-columns: 1fr;
  }

  .gestao-hero-heading,
  .gestao-hero-actions {
    width: 100%;
  }

  .gestao-hero-actions {
    justify-content: stretch;
  }

  .gestao-action-btn,
  .gestao-subtab {
    width: 100%;
  }

  .gestao-kpi-card {
    padding: 16px 18px;
    gap: 10px;
  }

  .gestao-kpi-icon {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 1.1rem;
  }

  .gestao-kpi-value {
    font-size: 1.8rem;
  }

  .gestao-service-shell {
    grid-template-columns: 1fr;
  }

  .gestao-service-donut-wrap {
    min-height: auto;
  }
}

/* =============================
   SUPORTE EXTERNO EM ABERTO
   ============================= */
section[data-section="tecnico-externo"] .tec-externo-hero {
  align-items: flex-end;
  gap: 16px;
}

section[data-section="tecnico-externo"] .tec-externo-total-card {
  min-width: 220px;
}

section[data-section="tecnico-externo"] .tec-externo-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

section[data-section="tecnico-externo"] .tec-externo-toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

section[data-section="tecnico-externo"] .tec-externo-toolbar-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

section[data-section="tecnico-externo"] .tec-externo-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

section[data-section="tecnico-externo"] .tec-externo-quick-group {
  min-width: 0;
}

section[data-section="tecnico-externo"] .tec-externo-quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

section[data-section="tecnico-externo"] .tec-externo-filter-btn.is-active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

section[data-section="tecnico-externo"] .tec-externo-table-wrap {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  overflow: auto;
}

section[data-section="tecnico-externo"] .tec-externo-table {
  width: 100%;
  min-width: 1840px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

section[data-section="tecnico-externo"] .tec-externo-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 12px 10px;
  background: #f8fafc !important;
  color: #0f172a !important;
  border-bottom: 1px solid #e2e8f0 !important;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

section[data-section="tecnico-externo"] .tec-externo-table tbody td {
  padding: 10px;
  vertical-align: top;
  border-bottom: 1px solid #eef2f7;
  background: #ffffff;
}

section[data-section="tecnico-externo"] .tec-externo-row:hover td {
  background: #f8fafc;
}

section[data-section="tecnico-externo"] .tec-externo-row--overdue td {
  background: #fff7ed;
}

section[data-section="tecnico-externo"] .tec-externo-cell {
  display: block;
  width: 100%;
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
  color: #0f172a;
}

section[data-section="tecnico-externo"] .tec-externo-cell--sm {
  font-size: 13px;
}

section[data-section="tecnico-externo"] .tec-externo-cell--name,
section[data-section="tecnico-externo"] .tec-externo-cell--problem,
section[data-section="tecnico-externo"] .tec-externo-cell--status {
  font-weight: 600;
}

section[data-section="tecnico-externo"] .tec-externo-cell--observacao,
section[data-section="tecnico-externo"] .tec-externo-cell--endereco {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

section[data-section="tecnico-externo"] .tec-externo-owner {
  width: 100%;
  min-width: 120px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
}

section[data-section="tecnico-externo"] .tec-externo-os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
}

@media (max-width: 1200px) {
  section[data-section="tecnico-externo"] .tec-externo-filters-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }

  section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-total-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  section[data-section="tecnico-chamados-feedbacks"] .tec-externo-filters-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
  }
}

@media (max-width: 768px) {
  section[data-section="tecnico-externo"] .tec-externo-toolbar-card {
    flex-direction: column;
    align-items: stretch;
  }

  section[data-section="tecnico-externo"] .tec-externo-filters-grid {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-chamados-feedbacks"] .tec-externo-hero {
    flex-direction: column;
    align-items: stretch;
  }

  section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-total-grid,
  section[data-section="tecnico-chamados-feedbacks"] .tec-externo-filters-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-panel-head {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-search-wide {
    grid-column: auto;
  }
}


section[data-section="tecnico-externo"] .tec-externo-total-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

section[data-section="tecnico-externo"] .tec-externo-total-card .hist-total-label,
section[data-section="tecnico-externo"] .tec-externo-total-card .hist-total-value {
  color: #0f172a !important;
}

section[data-section="tecnico-externo"] .tec-externo-table thead th {
  background: #ffffff !important;
  font-size: 11px;
  letter-spacing: 0.02em;
}

section[data-section="tecnico-externo"] .tec-col-sort {
  color: #334155 !important;
  font-weight: 700;
}


section[data-section="tecnico-externo"] .tec-externo-table thead th {
  background: #0f172a !important;
  color: #ffffff !important;
  border-bottom: 1px solid #0f172a !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

section[data-section="tecnico-externo"] .tec-col-sort {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 14px;
}

section[data-section="tecnico-externo"] .tec-col-sort span {
  color: rgba(255,255,255,0.82);
  font-size: 12px;
}

section[data-section="tecnico-externo"] .tec-externo-cell--code {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

section[data-section="tecnico-externo"] .tec-externo-cell--name,
section[data-section="tecnico-externo"] .tec-externo-cell--problem,
section[data-section="tecnico-externo"] .tec-externo-cell--status,
section[data-section="tecnico-externo"] .tec-externo-cell--observacao,
section[data-section="tecnico-externo"] .tec-externo-cell--endereco {
  font-size: 14px;
}

section[data-section="tecnico-externo"] .tec-externo-table {
  table-layout: fixed;
}

section[data-section="tecnico-externo"] .tec-externo-table th:nth-child(1),
section[data-section="tecnico-externo"] .tec-externo-table td:nth-child(1) {
  width: 92px;
}

section[data-section="tecnico-externo"] .tec-externo-table th:nth-child(2),
section[data-section="tecnico-externo"] .tec-externo-table td:nth-child(2) {
  width: 110px;
}

section[data-section="tecnico-externo"] .tec-externo-table th:nth-child(3),
section[data-section="tecnico-externo"] .tec-externo-table td:nth-child(3) {
  width: 220px;
}

section[data-section="tecnico-externo"] .tec-externo-table th:nth-child(4),
section[data-section="tecnico-externo"] .tec-externo-table td:nth-child(4) {
  width: 300px;
}

section[data-section="tecnico-externo"] .tec-externo-table th:nth-child(5),
section[data-section="tecnico-externo"] .tec-externo-table td:nth-child(5) {
  width: 118px;
}

section[data-section="tecnico-externo"] .tec-externo-table th:nth-child(6),
section[data-section="tecnico-externo"] .tec-externo-table td:nth-child(6) {
  width: 280px;
}

section[data-section="tecnico-externo"] .tec-externo-table th:nth-child(7),
section[data-section="tecnico-externo"] .tec-externo-table td:nth-child(7) {
  width: 240px;
}

section[data-section="tecnico-externo"] .tec-externo-table th:nth-child(8),
section[data-section="tecnico-externo"] .tec-externo-table td:nth-child(8) {
  width: 150px;
}

section[data-section="tecnico-externo"] .tec-externo-table th:nth-child(9),
section[data-section="tecnico-externo"] .tec-externo-table td:nth-child(9) {
  width: 170px;
}

section[data-section="tecnico-externo"] .tec-externo-table th:nth-child(10),
section[data-section="tecnico-externo"] .tec-externo-table td:nth-child(10) {
  width: 150px;
}

section[data-section="tecnico-externo"] .tec-externo-table th:nth-child(11),
section[data-section="tecnico-externo"] .tec-externo-table td:nth-child(11) {
  width: 150px;
}

section[data-section="tecnico-externo"] .tec-externo-table th:nth-child(12),
section[data-section="tecnico-externo"] .tec-externo-table td:nth-child(12) {
  width: 70px;
}

section[data-section="tecnico-externo"] .tec-externo-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

section[data-section="tecnico-externo"] .tec-externo-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #11233f 52%, #0b1220 100%);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

section[data-section="tecnico-externo"] .tec-externo-hero h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 30px;
  line-height: 1.05;
}

section[data-section="tecnico-externo"] .tec-externo-total-card {
  min-width: 210px;
  border-radius: 18px;
  background: linear-gradient(135deg, #020617, #111827) !important;
  border: 1px solid rgba(148, 163, 184, 0.28) !important;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

section[data-section="tecnico-externo"] .tec-externo-total-card .hist-total-label,
section[data-section="tecnico-externo"] .tec-externo-total-card .hist-total-value {
  color: #f8fafc !important;
}

section[data-section="tecnico-externo"] .tec-externo-status {
  color: #334155;
  font-weight: 700;
}

section[data-section="tecnico-externo"] .tec-externo-panel {
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.08);
}

section[data-section="tecnico-externo"] .tec-externo-toolbar-card {
  background: #ffffff;
}

section[data-section="tecnico-externo"] .tec-externo-table thead th {
  background: #0f172a !important;
  color: #ffffff !important;
  border-bottom: 1px solid #0f172a !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

section[data-section="tecnico-externo"] .tec-col-sort,
section[data-section="tecnico-externo"] .tec-col-sort:visited,
section[data-section="tecnico-externo"] .tec-col-sort:hover,
section[data-section="tecnico-externo"] .tec-col-sort:focus {
  appearance: none;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  padding: 0 !important;
  margin: 0;
  text-shadow: none !important;
}

section[data-section="tecnico-externo"] .tec-col-sort span {
  color: rgba(255,255,255,0.82) !important;
  font-size: 12px;
}

section[data-section="tecnico-externo"] .tec-externo-table tbody td {
  padding: 12px 10px;
}

section[data-section="tecnico-externo"] .tec-externo-cell {
  font-size: 14px;
}

section[data-section="tecnico-externo"] .tec-externo-cell--code {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

section[data-section="tecnico-externo"] .tec-externo-cell--name,
section[data-section="tecnico-externo"] .tec-externo-cell--problem,
section[data-section="tecnico-externo"] .tec-externo-cell--status,
section[data-section="tecnico-externo"] .tec-externo-cell--observacao,
section[data-section="tecnico-externo"] .tec-externo-cell--endereco {
  font-size: 15px;
}

section[data-section="tecnico-cto"] .tec-cto-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

section[data-section="tecnico-cto"] .tec-cto-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

section[data-section="tecnico-cto"] #btn-tec-cto-toggle-los.is-active {
  background: linear-gradient(135deg, #b91c1c, #dc2626);
  border-color: rgba(127, 29, 29, 0.82);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(185, 28, 28, 0.22);
}

section[data-section="tecnico-cto"] #btn-tec-cto-toggle-los.is-active:hover {
  color: #ffffff;
}

section[data-section="tecnico-cto"] .tec-cto-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

section[data-section="tecnico-cto"] .tec-cto-selection-card {
  margin-top: 2px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

section[data-section="tecnico-cto"] .tec-cto-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

section[data-section="tecnico-cto"] .tec-cto-selection-muted {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  margin-top: 4px;
}

section[data-section="tecnico-cto"] .tec-cto-selection-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

section[data-section="tecnico-cto"] .tec-cto-disparo-status {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
}

section[data-section="tecnico-cto"] .tec-cto-disparo-status[data-state="loading"] {
  color: #1d4ed8;
}

section[data-section="tecnico-cto"] .tec-cto-disparo-status[data-state="success"] {
  color: #047857;
}

section[data-section="tecnico-cto"] .tec-cto-disparo-status[data-state="warning"] {
  color: #b45309;
}

section[data-section="tecnico-cto"] .tec-cto-disparo-status[data-state="error"] {
  color: #b91c1c;
}

section[data-section="tecnico-cto"] .tec-cto-dispatch-panel.hidden {
  display: none;
}

section[data-section="tecnico-cto"] .tec-cto-dispatch-panel {
  margin-top: 4px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(37, 99, 235, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 24px 44px rgba(15, 23, 42, 0.1);
}

section[data-section="tecnico-cto"] .tec-cto-dispatch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

section[data-section="tecnico-cto"] .tec-cto-dispatch-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

section[data-section="tecnico-cto"] .tec-cto-dispatch-grid {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
}

section[data-section="tecnico-cto"] .tec-cto-dispatch-left,
section[data-section="tecnico-cto"] .tec-cto-dispatch-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

section[data-section="tecnico-cto"] .tec-cto-dispatch-card {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
}

section[data-section="tecnico-cto"] .tec-cto-config-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(180px, 0.8fr);
  gap: 14px;
  align-items: end;
}

section[data-section="tecnico-cto"] .tec-cto-inline-chip {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(248, 250, 252, 0.9);
  color: #0f172a;
  font-size: 14px;
  font-weight: 700;
}

section[data-section="tecnico-cto"] .tec-cto-dispatch-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 16px;
}

section[data-section="tecnico-cto"] .tec-cto-check-col {
  width: 64px;
}

section[data-section="tecnico-cto"] .tec-cto-row-check {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

section[data-section="tecnico-cto"] .tec-cto-phone-invalid {
  color: #b91c1c;
  font-weight: 700;
}

section[data-section="tecnico-cto"] .tec-cto-los-time {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #334155;
  min-width: 0;
  width: auto;
  text-align: left;
  cursor: help;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  overflow: visible;
  line-height: 1.2;
}

section[data-section="tecnico-cto"] .tec-cto-los-time__value {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: inherit;
}

section[data-section="tecnico-cto"] .tec-cto-los-time .tec-cto-los-tooltip {
  display: none;
  position: absolute;
  z-index: 12;
  left: 0;
  top: calc(100% + 8px);
  min-width: 210px;
  max-width: 290px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(15, 23, 42, 0.96);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  white-space: pre-line;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.24);
  pointer-events: none;
}

section[data-section="tecnico-cto"] .tec-cto-los-time:hover .tec-cto-los-tooltip,
section[data-section="tecnico-cto"] .tec-cto-los-time:focus-visible .tec-cto-los-tooltip,
section[data-section="tecnico-cto"] .tec-cto-los-time:active .tec-cto-los-tooltip {
  display: block;
}

section[data-section="tecnico-cto"] .tec-cto-los-time:focus-visible {
  outline: 1px dotted rgba(100, 116, 139, 0.7);
  outline-offset: 2px;
}

section[data-section="tecnico-cto"] .tec-cto-los-time--low {
  color: #334155;
}

section[data-section="tecnico-cto"] .tec-cto-los-time--medium {
  color: #b58900;
}

section[data-section="tecnico-cto"] .tec-cto-los-time--high {
  color: #cb4b16;
}

section[data-section="tecnico-cto"] .tec-cto-los-time--critical {
  color: #dc322f;
}

section[data-section="tecnico-cto"] .tec-cto-table-wrap {
  width: 100%;
  overflow-x: auto;
}

section[data-section="tecnico-cto"] .tec-cto-table {
  width: 100%;
  min-width: 1930px;
  table-layout: fixed;
  border-collapse: collapse;
}

section[data-section="tecnico-cto"] .tec-cto-col-check { width: 56px; }
section[data-section="tecnico-cto"] .tec-cto-col-codigo { width: 92px; }
section[data-section="tecnico-cto"] .tec-cto-col-cliente { width: 240px; }
section[data-section="tecnico-cto"] .tec-cto-col-olt { width: 110px; }
section[data-section="tecnico-cto"] .tec-cto-col-board { width: 76px; }
section[data-section="tecnico-cto"] .tec-cto-col-porta { width: 76px; }
section[data-section="tecnico-cto"] .tec-cto-col-cto { width: 120px; }
section[data-section="tecnico-cto"] .tec-cto-col-onu { width: 150px; }
section[data-section="tecnico-cto"] .tec-cto-col-luz { width: 102px; }
section[data-section="tecnico-cto"] .tec-cto-col-status { width: 110px; }
section[data-section="tecnico-cto"] .tec-cto-col-los { width: 128px; }
section[data-section="tecnico-cto"] .tec-cto-col-comment { width: 230px; }
section[data-section="tecnico-cto"] .tec-cto-col-snuid { width: 180px; }
section[data-section="tecnico-cto"] .tec-cto-col-endereco { width: 260px; }
section[data-section="tecnico-cto"] .tec-cto-col-telefone { width: 150px; }

section[data-section="tecnico-cto"] .tec-cto-table th,
section[data-section="tecnico-cto"] .tec-cto-table td {
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  vertical-align: middle;
  padding: 10px 12px;
  line-height: 1.25;
}

section[data-section="tecnico-cto"] .tec-cto-table thead th {
  white-space: nowrap;
  text-align: center;
}

section[data-section="tecnico-cto"] .tec-cto-table tbody td {
  white-space: normal;
}

section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--center,
section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--status,
section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--los {
  text-align: center;
}

section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--code,
section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--center {
  white-space: nowrap;
}

section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--los {
  white-space: nowrap;
  min-width: 120px;
}

section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--los .tec-cto-los-time {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  white-space: nowrap;
  vertical-align: middle;
}

section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--los .tec-cto-los-time__value {
  white-space: nowrap;
}

section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--client {
  min-width: 240px;
}

section[data-section="tecnico-cto"] .tec-cto-client-note {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: #b45309;
}

section[data-section="tecnico-os-1click"] .tec-os1-shell {
  display: grid;
  gap: 18px;
}

section[data-section="tecnico-os-1click"] .tec-os1-hero-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

section[data-section="tecnico-os-1click"] .tec-os1-panel {
  display: grid;
  gap: 16px;
}

section[data-section="tecnico-os-1click"] .tec-os1-filters-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

section[data-section="tecnico-os-1click"] .tec-os1-search-group {
  grid-column: span 2;
}

section[data-section="tecnico-os-1click"] .tec-os1-table-wrap {
  overflow-x: auto;
}

section[data-section="tecnico-os-1click"] .tec-os1-table th,
section[data-section="tecnico-os-1click"] .tec-os1-table td {
  vertical-align: top;
  min-width: 110px;
}

section[data-section="tecnico-os-1click"] .tec-os1-company-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid transparent;
}

section[data-section="tecnico-os-1click"] .tec-os1-company-badge--2 {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #93c5fd;
}

section[data-section="tecnico-os-1click"] .tec-os1-company-badge--6 {
  color: #047857;
  background: #d1fae5;
  border-color: #86efac;
}

section[data-section="tecnico-os-1click"] .tec-os1-observacao {
  max-width: 320px;
  white-space: normal;
  line-height: 1.45;
}

section[data-section="tecnico-os-1click"] .tec-os1-status {
  margin: 0;
}

@media (max-width: 1100px) {
  section[data-section="tecnico-os-1click"] .tec-os1-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  section[data-section="tecnico-os-1click"] .tec-os1-search-group {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  section[data-section="tecnico-os-1click"] .tec-os1-filters-grid {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-os-1click"] .tec-os1-search-group {
    grid-column: span 1;
  }
}

section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--snuid {
  min-width: 180px;
}

section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--address {
  min-width: 260px;
}

section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--phone {
  white-space: nowrap;
  min-width: 140px;
}

section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--status {
  min-width: 110px;
}

section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--comment {
  min-width: 230px;
}

section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--code {
  min-width: 92px;
  white-space: nowrap;
}

section[data-section="tecnico-cto"] .tec-cto-table .tec-cto-cell--center {
  min-width: 86px;
}

section[data-section="tecnico-cto"] .tec-cto-comment-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #334155;
  font: inherit;
  cursor: pointer;
  text-align: left;
  min-width: 0;
}

section[data-section="tecnico-cto"] .tec-cto-comment-trigger__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

section[data-section="tecnico-cto"] .tec-cto-comment-trigger__text,
section[data-section="tecnico-cto"] .tec-cto-comment-trigger__meta {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

section[data-section="tecnico-cto"] .tec-cto-comment-trigger__text {
  font-size: 13px;
  font-weight: 600;
  color: #334155;
}

section[data-section="tecnico-cto"] .tec-cto-comment-trigger__meta {
  font-size: 11px;
  color: #64748b;
}

section[data-section="tecnico-cto"] .tec-cto-comment-trigger.is-empty .tec-cto-comment-trigger__text {
  color: #94a3b8;
  font-style: italic;
  font-weight: 500;
}

section[data-section="tecnico-cto"] .tec-cto-comment-trigger__icon {
  flex: 0 0 auto;
  color: #94a3b8;
  font-size: 13px;
  line-height: 1;
}

section[data-section="tecnico-cto"] .tec-cto-comment-trigger:hover .tec-cto-comment-trigger__icon,
section[data-section="tecnico-cto"] .tec-cto-comment-trigger:focus-visible .tec-cto-comment-trigger__icon {
  color: #2563eb;
}

section[data-section="tecnico-cto"] .tec-cto-comment-trigger:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

section[data-section="tecnico-cto"] .tec-cto-comment-trigger:focus-visible {
  outline: 1px dotted rgba(100, 116, 139, 0.7);
  outline-offset: 3px;
}

section[data-section="tecnico-cto"] .tec-los-comment-modal {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

section[data-section="tecnico-cto"] .tec-los-comment-modal__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
  padding-bottom: 2px;
}

section[data-section="tecnico-cto"] .tec-los-comment-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

section[data-section="tecnico-cto"] .tec-los-comment-modal__field span {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
}

section[data-section="tecnico-cto"] #tec-los-comment-input {
  width: 100%;
  min-height: 132px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  padding: 12px 14px;
  font: inherit;
  line-height: 1.45;
}

section[data-section="tecnico-cto"] #tec-los-comment-input:focus {
  outline: 2px solid rgba(37, 99, 235, 0.18);
  border-color: #2563eb;
}

@media (max-width: 900px) {
  section[data-section="tecnico-cto"] .tec-cto-hero {
    align-items: stretch;
    flex-direction: column;
  }

  section[data-section="tecnico-cto"] .tec-cto-dispatch-grid,
  section[data-section="tecnico-cto"] .tec-cto-config-row {
    grid-template-columns: 1fr;
  }
}

section[data-section="tecnico-externo"] .tec-externo-hero--secondary {
  margin-top: 22px;
}

section[data-section="tecnico-externo"] .tec-retirada-col-sort,
section[data-section="tecnico-externo"] .tec-retirada-col-sort:visited,
section[data-section="tecnico-externo"] .tec-retirada-col-sort:hover,
section[data-section="tecnico-externo"] .tec-retirada-col-sort:focus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

section[data-section="tecnico-externo"] .tec-retirada-col-sort span {
  font-size: 12px;
  opacity: 0.9;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-shell {
  display: grid;
  gap: 18px;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(34, 211, 238, 0.18), transparent 34%),
    linear-gradient(135deg, #0f172a 0%, #11233f 52%, #0b1220 100%);
  color: #f8fafc;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-hero h2 {
  margin: 6px 0 0;
  color: #ffffff;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-total-card {
  min-width: 220px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-total-card .hist-total-label,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-total-card .hist-total-value {
  color: #ffffff;
}

section[data-section="tecnico-retiradas"] .tec-retirada-total-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 720px);
}

section[data-section="tecnico-retiradas"] .tec-retirada-search-wide {
  grid-column: span 2;
}

section[data-section="tecnico-retiradas"] .tec-externo-table {
  min-width: 1600px;
}

section[data-section="tecnico-retiradas"] .tec-externo-table thead th {
  font-size: 13px;
}

section[data-section="tecnico-retiradas"] .tec-externo-cell {
  font-size: 13px;
  line-height: 1.42;
}

section[data-section="tecnico-retiradas"] .tec-externo-cell--code {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-status {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-panel {
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

section[data-section="tecnico-retiradas"] .tec-retirada-main-card,
section[data-section="tecnico-retiradas"] .tec-retirada-schedule-panel {
  margin-top: 18px;
}

section[data-section="tecnico-retiradas"] .tec-retirada-main-card {
  display: grid;
  gap: 18px;
  min-height: 0;
}

section[data-section="tecnico-retiradas"] .tec-retirada-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 16px;
  align-items: start;
}

section[data-section="tecnico-retiradas"] .tec-retirada-panel-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

section[data-section="tecnico-retiradas"] .tec-retirada-panel-title strong,
section[data-section="tecnico-retiradas"] .tec-retirada-section-head strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

section[data-section="tecnico-retiradas"] .tec-retirada-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

section[data-section="tecnico-retiradas"] .tec-retirada-filters-card,
section[data-section="tecnico-retiradas"] .tec-retirada-table-panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

section[data-section="tecnico-retiradas"] .tec-retirada-table-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

section[data-section="tecnico-retiradas"] .tec-retirada-selection-panel {
  margin: 0;
  min-height: 100%;
}

section[data-section="tecnico-retiradas"] .tec-retirada-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-toolbar-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  width: 100%;
  flex-wrap: wrap;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

section[data-section="tecnico-retiradas"] .tec-externo-toolbar-card > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

section[data-section="tecnico-chamados-feedbacks"] .tech-shell {
  display: grid;
  gap: 18px;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #334155 100%);
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-hero h2 {
  margin: 6px 0 0;
  color: #ffffff !important;
  font-size: clamp(28px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 2px 12px rgba(15, 23, 42, 0.38);
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-hero .admin-kicker,
section[data-section="tecnico-chamados-feedbacks"] .tec-externo-hero p {
  color: rgba(255, 255, 255, 0.78);
}

section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-total-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 560px);
}

section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-main-card {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-panel-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-panel-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-panel-title strong,
section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-section-head strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 800;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-filters-card,
section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-table-panel {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-toolbar-card {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
  width: 100%;
  flex-wrap: wrap;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-toolbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-toolbar-card > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-actions-card {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92));
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-action-group {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-action-group-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  box-shadow: none;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn--neutral {
  background: #ffffff !important;
  border-color: rgba(148, 163, 184, 0.4) !important;
  color: #334155 !important;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn--neutral:hover:not(:disabled) {
  background: #f8fafc !important;
  border-color: rgba(100, 116, 139, 0.55) !important;
  color: #0f172a !important;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn--excel {
  background: linear-gradient(135deg, #16a34a, #15803d) !important;
  border-color: #15803d !important;
  color: #ffffff !important;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn--excel:hover:not(:disabled) {
  background: linear-gradient(135deg, #15803d, #166534) !important;
  border-color: #166534 !important;
  color: #ffffff !important;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn--danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn--danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #b91c1c, #991b1b) !important;
  border-color: #991b1b !important;
  color: #ffffff !important;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn--info {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  border-color: #1d4ed8 !important;
  color: #ffffff !important;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn--info:hover:not(:disabled) {
  background: linear-gradient(135deg, #1d4ed8, #1e40af) !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-status {
  margin: 0;
  font-size: 13px;
  color: #475569;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-filters-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 14px;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-search-wide {
  grid-column: span 2;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table-wrap {
  width: 100%;
  overflow-x: auto;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table {
  width: 100%;
  min-width: 1300px;
  table-layout: fixed;
}

section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table-wrapper {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(226, 232, 240, 0.92);
  background: #ffffff;
}

section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table {
  width: 100%;
  min-width: 1580px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table thead th {
  font-size: 13px;
  vertical-align: middle;
}

section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table thead th {
  padding: 12px 10px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-cell {
  font-size: 13px;
  line-height: 1.42;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-cell--code {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  white-space: nowrap;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table th,
section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table td {
  vertical-align: middle;
}

section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td {
  padding: 10px;
  color: #0f172a;
  font-size: 13px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
}

section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table tbody tr {
  min-height: 56px;
}

section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table tbody tr:hover td {
  background: rgba(248, 250, 252, 0.86);
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-col-company,
section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-col-client,
section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-col-subcategory {
  text-align: left;
  white-space: normal;
  word-break: break-word;
  line-height: 1.35;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-col-center,
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table thead th:nth-child(1),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table thead th:nth-child(3),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table thead th:nth-child(4),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table thead th:nth-child(6),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table thead th:nth-child(8),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table thead th:nth-child(9),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table thead th:nth-child(10),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table thead th:nth-child(11),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table thead th:nth-child(12) {
  text-align: center;
}

section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table thead th:nth-child(2),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table thead th:nth-child(5),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table thead th:nth-child(7) {
  text-align: left;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-col-date {
  white-space: nowrap;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-inline-select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 30px 0 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-inline-select--note {
  min-width: 0;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-row-action {
  display: inline-flex;
  align-items: center;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 7px 10px;
  justify-content: center;
  white-space: nowrap;
}

section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(1),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(3),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(4),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(6),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(8),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(9),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(10),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(11),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(12) {
  text-align: center;
}

section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(3),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(4),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(6),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(10),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(11) {
  white-space: nowrap;
}

section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(5) {
  max-height: 54px;
  overflow: hidden;
}

section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(5),
section[data-section="tecnico-chamados-feedbacks"] .feedbacks-table td:nth-child(7) {
  overflow-wrap: anywhere;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-actions-stack {
  display: grid;
  gap: 6px;
  justify-items: stretch;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-os-status {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  white-space: normal;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-os-status[data-state*="aberto"] {
  background: #dcfce7;
  color: #166534;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-os-status[data-state*="abrindo"] {
  background: #fef3c7;
  color: #92400e;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-os-status[data-state*="erro"] {
  background: #fee2e2;
  color: #991b1b;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-os-status[data-state*="fechado"] {
  background: #e0f2fe;
  color: #075985;
}

html.theme-dark section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-actions-card,
body.theme-dark section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-actions-card {
  border-color: rgba(71, 85, 105, 0.42);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.84));
  box-shadow: 0 18px 36px rgba(2, 6, 23, 0.34);
}

html.theme-dark section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-action-group,
body.theme-dark section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-action-group {
  border-color: rgba(71, 85, 105, 0.38);
  background: rgba(15, 23, 42, 0.72);
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

html.theme-dark section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-action-group-title,
body.theme-dark section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-action-group-title {
  color: #cbd5e1;
}


html.theme-dark section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn--neutral,
body.theme-dark section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn--neutral {
  background: rgba(15, 23, 42, 0.9) !important;
  border-color: rgba(100, 116, 139, 0.6) !important;
  color: #e2e8f0 !important;
}

html.theme-dark section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn--neutral:hover:not(:disabled),
body.theme-dark section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn--neutral:hover:not(:disabled) {
  background: rgba(30, 41, 59, 0.96) !important;
  border-color: rgba(148, 163, 184, 0.7) !important;
  color: #ffffff !important;
}

.feedback-os-modal {
  display: grid;
  gap: 12px;
  min-width: min(420px, calc(100vw - 48px));
  color: #222;
}

.feedback-os-modal__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.feedback-os-modal__summary div,
.feedback-os-modal__field {
  display: grid;
  gap: 4px;
}

.feedback-os-modal__field small {
  color: #555;
  font-size: 12px;
  font-weight: 600;
}

.feedback-os-modal__summary span,
.feedback-os-modal__field span {
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.feedback-os-modal__summary strong {
  color: #0f172a;
  font-size: 13px;
  line-height: 1.25;
}

.feedback-os-modal__field input,
.feedback-os-modal__field select,
.feedback-os-modal__field textarea {
  width: 100%;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  padding: 9px 11px;
  color: #222;
  background: #ffffff;
  font: inherit;
}

.feedback-os-modal__intro,
.feedback-os-modal__progress {
  margin: 0;
  color: #333;
  font-weight: 700;
}

.feedback-os-modal__error {
  color: #b91c1c;
  font-weight: 800;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 10px 12px;
}

.feedback-os-modal--bulk {
  gap: 12px;
}

.feedback-os-modal--bulk-simple {
  background: #fff;
  color: #222;
}

.feedback-os-modal__title {
  display: block;
  color: #222;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 2px;
}

.feedback-os-modal__field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feedback-os-modal__compact-head {
  display: grid;
  gap: 4px;
}

.feedback-os-modal__contracts {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.feedback-os-modal__contracts-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.feedback-os-modal__contracts-list li {
  display: grid;
  gap: 2px;
  color: #0f172a;
}

.feedback-os-modal__contracts-list li span {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.feedback-os-modal__contracts-list li small {
  color: #92400e;
  font-size: 12px;
  font-weight: 700;
}

.feedback-os-modal__contracts-list li.is-invalid strong,
.feedback-os-modal__contracts-list li.is-invalid span,
.feedback-os-modal__contracts-list li.is-invalid small {
  color: #b91c1c;
}

.feedback-os-modal__hint {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.feedback-os-modal__hint.is-warning {
  color: #92400e;
}

.feedback-os-modal__hint.is-error {
  color: #b91c1c;
}

@media (max-width: 900px) {
  .feedback-os-modal {
    min-width: min(100vw - 32px, 420px);
  }

  .feedback-os-modal__field-grid {
    grid-template-columns: 1fr;
  }
}

html.theme-dark .feedback-os-modal,
body.theme-dark .feedback-os-modal {
  color: #e2e8f0;
}

html.theme-dark .feedback-os-modal--bulk-simple,
body.theme-dark .feedback-os-modal--bulk-simple {
  background: #fff;
  color: #222;
}

html.theme-dark .feedback-os-modal__summary,
body.theme-dark .feedback-os-modal__summary,
html.theme-dark .feedback-os-modal__contracts,
body.theme-dark .feedback-os-modal__contracts,
html.theme-dark .feedback-os-modal__error,
body.theme-dark .feedback-os-modal__error {
  background: #0f172a;
  border-color: #334155;
}

html.theme-dark .feedback-os-modal__title,
body.theme-dark .feedback-os-modal__title,
html.theme-dark .feedback-os-modal__summary strong,
body.theme-dark .feedback-os-modal__summary strong,
html.theme-dark .feedback-os-modal__contracts-list li,
body.theme-dark .feedback-os-modal__contracts-list li,
html.theme-dark .feedback-os-modal__field input,
body.theme-dark .feedback-os-modal__field input,
html.theme-dark .feedback-os-modal__field select,
body.theme-dark .feedback-os-modal__field select,
html.theme-dark .feedback-os-modal__field textarea,
body.theme-dark .feedback-os-modal__field textarea,
html.theme-dark .feedback-os-modal__intro,
body.theme-dark .feedback-os-modal__intro,
html.theme-dark .feedback-os-modal__progress,
body.theme-dark .feedback-os-modal__progress {
  color: #e2e8f0;
}

html.theme-dark .feedback-os-modal__summary span,
body.theme-dark .feedback-os-modal__summary span,
html.theme-dark .feedback-os-modal__contracts-list li span,
body.theme-dark .feedback-os-modal__contracts-list li span,
html.theme-dark .feedback-os-modal__field span,
body.theme-dark .feedback-os-modal__field span,
html.theme-dark .feedback-os-modal__field small,
body.theme-dark .feedback-os-modal__field small,
html.theme-dark .feedback-os-modal__contracts-list li small,
body.theme-dark .feedback-os-modal__contracts-list li small,
html.theme-dark .feedback-os-modal__hint,
body.theme-dark .feedback-os-modal__hint {
  color: #cbd5e1;
}

html.theme-dark .feedback-os-modal__field input,
body.theme-dark .feedback-os-modal__field input,
html.theme-dark .feedback-os-modal__field select,
body.theme-dark .feedback-os-modal__field select,
html.theme-dark .feedback-os-modal__field textarea,
body.theme-dark .feedback-os-modal__field textarea {
  background: #111827;
  border-color: #475569;
}

html.theme-dark .feedback-os-modal__error,
body.theme-dark .feedback-os-modal__error {
  background: rgba(127, 29, 29, 0.24);
  border-color: rgba(248, 113, 113, 0.4);
}

html.theme-dark .feedback-os-modal--bulk-simple .feedback-os-modal__title,
body.theme-dark .feedback-os-modal--bulk-simple .feedback-os-modal__title,
html.theme-dark .feedback-os-modal--bulk-simple .feedback-os-modal__intro,
body.theme-dark .feedback-os-modal--bulk-simple .feedback-os-modal__intro,
html.theme-dark .feedback-os-modal--bulk-simple .feedback-os-modal__progress,
body.theme-dark .feedback-os-modal--bulk-simple .feedback-os-modal__progress,
html.theme-dark .feedback-os-modal--bulk-simple .feedback-os-modal__field input,
body.theme-dark .feedback-os-modal--bulk-simple .feedback-os-modal__field input,
html.theme-dark .feedback-os-modal--bulk-simple .feedback-os-modal__field select,
body.theme-dark .feedback-os-modal--bulk-simple .feedback-os-modal__field select,
html.theme-dark .feedback-os-modal--bulk-simple .feedback-os-modal__field textarea,
body.theme-dark .feedback-os-modal--bulk-simple .feedback-os-modal__field textarea {
  color: #222 !important;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table col:nth-child(1) {
  width: 12%;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table col:nth-child(2) {
  width: 8%;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table col:nth-child(3) {
  width: 8%;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table col:nth-child(4) {
  width: 15%;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table col:nth-child(5) {
  width: 10%;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table col:nth-child(6) {
  width: 14%;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table col:nth-child(7) {
  width: 11%;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table col:nth-child(8) {
  width: 7%;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table col:nth-child(9) {
  width: 8%;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table col:nth-child(10) {
  width: 8%;
}

section[data-section="tecnico-chamados-feedbacks"] .tec-externo-table col:nth-child(11) {
  width: 9%;
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-health-card {
  margin-top: 20px;
  padding: 20px 22px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.10), transparent 30%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.94));
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-health-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-health-summary {
  font-size: 12px;
  font-weight: 800;
  color: #334155;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-health-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-health-empty {
  color: #64748b;
  font-size: 13px;
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-pill {
  border-radius: 16px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-pill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-pill-head strong {
  font-size: 13px;
  color: #0f172a;
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-pill-badge {
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(148, 163, 184, 0.16);
  color: #334155;
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-pill-meta {
  font-size: 12px;
  line-height: 1.4;
  color: #475569;
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-pill.is-success {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.95);
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-pill.is-success .tec-externo-source-pill-badge {
  background: rgba(34, 197, 94, 0.16);
  color: #166534;
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-pill.is-error {
  border-color: rgba(239, 68, 68, 0.28);
  background: rgba(254, 242, 242, 0.96);
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-pill.is-error .tec-externo-source-pill-badge {
  background: rgba(239, 68, 68, 0.16);
  color: #991b1b;
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-pill.is-running {
  border-color: rgba(59, 130, 246, 0.24);
  background: rgba(239, 246, 255, 0.96);
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-pill.is-running .tec-externo-source-pill-badge {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-pill.is-empty {
  border-color: rgba(245, 158, 11, 0.22);
  background: rgba(255, 251, 235, 0.96);
}

:is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-pill.is-empty .tec-externo-source-pill-badge {
  background: rgba(245, 158, 11, 0.16);
  color: #92400e;
}

section[data-section="administrativo"] .admin-source-health-card {
  margin-top: 20px;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-filters-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

section[data-section="tecnico-retiradas"] .tec-externo-filters-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

section[data-section="tecnico-retiradas"] .tec-retirada-search-wide {
  grid-column: span 1;
}

section[data-section="tecnico-retiradas"] .tec-externo-selection-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: nowrap;
  width: 100%;
}

section[data-section="tecnico-retiradas"] .tec-externo-selection-actions button {
  flex: 1 1 0;
  min-width: 0;
  padding: 6px 8px;
  min-height: 34px;
  font-size: 12px;
  line-height: 1.15;
  white-space: normal;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-quick-group {
  align-self: end;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-quick-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-filter-btn.is-active {
  background: #0f172a !important;
  border-color: #0f172a !important;
  color: #ffffff !important;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-table-wrap {
  margin-top: 16px;
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

section[data-section="tecnico-retiradas"] .tec-externo-table-wrap {
  margin-top: 0;
  min-height: 320px;
  max-height: clamp(320px, calc(100vh - 360px), 760px);
  overflow-x: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable both-edges;
  scroll-behavior: smooth;
}

section[data-section="tecnico-retiradas"] .tec-externo-table-wrap::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

section[data-section="tecnico-retiradas"] .tec-externo-table-wrap::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.14);
  border-radius: 999px;
}

section[data-section="tecnico-retiradas"] .tec-externo-table-wrap::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #475569, #334155);
  border-radius: 999px;
  border: 2px solid rgba(241, 245, 249, 0.9);
}

section[data-section="tecnico-retiradas"] .tec-externo-table-wrap::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #334155, #1e293b);
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-table {
  width: 100%;
  min-width: 1680px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

section[data-section="tecnico-retiradas"] .tec-externo-table {
  min-width: 1540px;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #0f172a !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  border: 0;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-col-sort,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-col-sort:visited,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-col-sort:hover,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-col-sort:focus,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-col-sort,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-col-sort:visited,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-col-sort:hover,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-col-sort:focus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-col-sort span,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-col-sort span {
  font-size: 12px;
  opacity: 0.9;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-table tbody td {
  border-color: rgba(226, 232, 240, 0.9);
  vertical-align: top;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-row:hover td {
  background: rgba(15, 23, 42, 0.04);
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-row-old td {
  background: rgba(254, 226, 226, 0.92);
  border-top-color: rgba(239, 68, 68, 0.2);
  border-bottom-color: rgba(239, 68, 68, 0.2);
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-row-old .tec-externo-cell,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-row-old .tec-externo-cell--code,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-row-old .tec-externo-cell--status {
  color: #991b1b;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-row[data-selected="1"] td {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.24), rgba(15, 23, 42, 0.18));
  border-top-color: rgba(15, 23, 42, 0.28);
  border-bottom-color: rgba(15, 23, 42, 0.28);
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-row[data-selected="1"] .tec-externo-cell,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-row[data-selected="1"] .tec-externo-cell--code {
  color: #020617;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-row--overdue td {
  background: rgba(239, 68, 68, 0.14);
  border-top-color: rgba(239, 68, 68, 0.22);
  border-bottom-color: rgba(239, 68, 68, 0.22);
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-row--overdue .tec-externo-cell--code,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-row--overdue .tec-externo-cell--status,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-row--overdue .tec-externo-cell--date-overdue {
  color: #991b1b;
  font-weight: 800;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-row--overdue .tec-externo-cell--date-overdue {
  background: rgba(220, 38, 38, 0.14);
  border: 1px solid rgba(220, 38, 38, 0.24);
  border-radius: 10px;
  padding: 6px 8px;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-cell {
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
  user-select: text;
  min-width: 0;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-tentativas-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-tentativas-summary-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 10px;
  margin: 0;
  padding: 2px 0;
  align-content: flex-start;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-tentativa-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  min-width: 168px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-tentativa-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.22);
  filter: saturate(1.05);
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-tentativa-chip.is-first {
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #ffffff;
  border-color: #15803d;
  box-shadow: 0 12px 26px rgba(34, 197, 94, 0.28);
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-tentativa-chip.is-second {
  background: linear-gradient(135deg, #eab308, #facc15);
  color: #111111;
  border-color: #ca8a04;
  box-shadow: 0 12px 26px rgba(234, 179, 8, 0.3);
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-tentativa-chip.is-third {
  background: linear-gradient(135deg, #dc2626, #ef4444);
  color: #ffffff;
  border-color: #b91c1c;
  box-shadow: 0 12px 26px rgba(239, 68, 68, 0.28);
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-tentativa-chip.is-none {
  background: linear-gradient(135deg, #7b2ff7, #a855f7);
  color: #ffffff;
  border-color: #6d28d9;
  box-shadow: 0 12px 26px rgba(123, 47, 247, 0.28);
}

@media (prefers-color-scheme: dark) {
  :is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-tentativa-chip.is-first {
    color: #ffffff;
    border-color: #22c55e;
  }

  :is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-tentativa-chip.is-second {
    color: #111111;
    border-color: #facc15;
  }

  :is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-retirada-tentativa-chip.is-none {
    color: #ffffff;
    border-color: #a855f7;
  }
}

section[data-section="tecnico-externo"] .tec-externo-cell--problem {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  min-width: 0;
}

section[data-section="tecnico-externo"] .tec-externo-type-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.18);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

section[data-section="tecnico-externo"] .tec-externo-cell-text {
  display: block;
  min-width: 0;
}

section[data-section="tecnico-externo"] .tec-externo-cell-text--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  white-space: normal;
  word-break: break-word;
  line-height: 1.45;
  max-height: calc(1.45em * 3);
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-cell--code {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-cell--name,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-cell--problem,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-cell--status,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-cell--observacao,
:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-cell--endereco {
  font-size: 14px;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-owner {
  width: 100%;
  min-width: 140px;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-os-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
}

@media (max-width: 1120px) {
  section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  section[data-section="tecnico-chamados-feedbacks"] .tec-externo-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  section[data-section="tecnico-retiradas"] .tec-retirada-panel-head,
  section[data-section="tecnico-retiradas"] .tec-retirada-main-grid {
    grid-template-columns: 1fr;
  }

  :is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-health-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  :is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-filters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

section[data-section="tecnico-retiradas"] .tec-externo-selection-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  section[data-section="tecnico-chamados-feedbacks"] .tec-externo-hero,
  section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-actions-grid,
  section[data-section="tecnico-chamados-feedbacks"] .tec-externo-filters-grid,
  section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-total-grid {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-chamados-feedbacks"] .tec-retirada-search-wide {
    grid-column: auto;
  }

  section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-btn,
  section[data-section="tecnico-chamados-feedbacks"] .tec-feedback-action-buttons > button {
    width: 100%;
  }

  section[data-section="tecnico-retiradas"] .tec-externo-table-wrap {
    min-height: 280px;
    max-height: calc(100vh - 320px);
  }

  :is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-health-head {
    flex-direction: column;
    align-items: flex-start;
  }

  :is(section[data-section="tecnico-externo"], section[data-section="administrativo"]) .tec-externo-source-health-list {
    grid-template-columns: 1fr;
  }

  :is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-hero,
  :is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-toolbar-card,
  section[data-section="tecnico-retiradas"] .tec-retirada-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  :is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-filters-grid {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-retiradas"] .tec-retirada-total-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  section[data-section="tecnico-retiradas"] .tec-retirada-search-wide {
    grid-column: auto;
  }

  section[data-section="tecnico-retiradas"] .tec-externo-selection-actions {
    flex-wrap: wrap;
  }
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-selection-card {
  margin: 14px 0 18px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.92));
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

section[data-section="tecnico-retiradas"] .tec-externo-selection-card {
  margin: 16px 0 0;
  box-shadow: none;
  background: rgba(248, 250, 252, 0.88);
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-selection-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: #0f172a;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-selection-head strong {
  font-size: 15px;
  font-weight: 800;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-selection-muted {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-selection-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-selection-actions button[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-disparo-status {
  margin: 12px 0 0;
  font-size: 13px;
  font-weight: 600;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-disparo-status[data-state="loading"] {
  color: #1d4ed8;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-disparo-status[data-state="success"] {
  color: #047857;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-disparo-status[data-state="warning"] {
  color: #b45309;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-disparo-status[data-state="error"] {
  color: #b91c1c;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-form {
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  gap: 16px;
  align-items: end;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-card {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 22%),
    radial-gradient(circle at left bottom, rgba(14, 165, 233, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(248, 250, 252, 0.99), rgba(241, 245, 249, 0.97));
  border-color: rgba(148, 163, 184, 0.2);
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-subtitle {
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-total-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.95);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 16px;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-metric {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  min-width: 0;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-metric-label {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-metric strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.1;
  font-weight: 800;
  word-break: break-word;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-input-group {
  max-width: 340px;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-actions {
  justify-content: flex-start;
  align-self: end;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-table-wrap {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.92);
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-table-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.96);
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-table-head strong {
  color: #0f172a;
  font-size: 14px;
  font-weight: 800;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-table thead th {
  background: rgba(248, 250, 252, 0.98);
  color: #334155;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.72);
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-table td,
section[data-section="tecnico-retiradas"] .tec-retirada-schedule-table th {
  vertical-align: middle;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-status[data-state="pending"] {
  color: #1d4ed8;
  background: rgba(219, 234, 254, 0.9);
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-status[data-state="running"] {
  color: #7c2d12;
  background: rgba(254, 215, 170, 0.9);
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-status[data-state="completed"] {
  color: #047857;
  background: rgba(209, 250, 229, 0.9);
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-status[data-state="partial"] {
  color: #b45309;
  background: rgba(254, 243, 199, 0.95);
}

section[data-section="tecnico-retiradas"] .tec-retirada-schedule-status[data-state="failed"],
section[data-section="tecnico-retiradas"] .tec-retirada-schedule-status[data-state="canceled"] {
  color: #b91c1c;
  background: rgba(254, 226, 226, 0.95);
}

@media (max-width: 1120px) {
  section[data-section="tecnico-retiradas"] .tec-retirada-schedule-metrics {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-retiradas"] .tec-retirada-schedule-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  section[data-section="tecnico-retiradas"] .tec-retirada-schedule-table-head,
  section[data-section="tecnico-retiradas"] .tec-retirada-schedule-heading {
    align-items: flex-start;
  }

  section[data-section="tecnico-retiradas"] .tec-retirada-schedule-table-head {
    flex-direction: column;
  }

  section[data-section="tecnico-retiradas"] .tec-retirada-schedule-form {
    grid-template-columns: 1fr;
  }

  section[data-section="tecnico-retiradas"] .tec-retirada-schedule-input-group {
    max-width: none;
  }
}

#dashboard.modal-open {
  pointer-events: none;
  user-select: none;
}

#modal-overlay:not(.hidden) {
  pointer-events: auto;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-table ::selection {
  background: #2563eb;
  color: #ffffff;
}

:is(section[data-section="tecnico-externo"], section[data-section="tecnico-retiradas"]) .tec-externo-table ::-moz-selection {
  background: #2563eb;
  color: #ffffff;
}

.admin-system-monitor-card {
  margin-top: 24px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background:
    radial-gradient(circle at top right, rgba(16, 185, 129, 0.14), transparent 24%),
    radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.94));
  padding: 26px;
}

.system-noc-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
  padding: 8px 4px 0;
}

.system-noc-top-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.system-noc-top-copy h3 {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 40px);
  line-height: 1.08;
  color: #0f172a;
}

.system-noc-top-actions {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 300px;
}

.system-noc-summary {
  margin-top: 16px;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 18px;
  font-size: 14px;
}

.system-noc-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.system-noc-card {
  grid-column: span 4;
  border-radius: 22px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  min-height: 100%;
}

.system-noc-card--full {
  grid-column: span 12;
}

.system-noc-card--half {
  grid-column: span 6;
}

.system-noc-card--summary {
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.15), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
}

.system-noc-card--commercial,
.system-noc-card--ops,
.system-noc-card--finance,
.system-noc-card--support {
  min-height: 240px;
}

.system-noc-card--production {
  grid-column: span 7;
}

.system-noc-card--sources {
  grid-column: span 5;
}

.system-noc-card--server,
.system-noc-card--ports {
  grid-column: span 12;
}

.system-noc-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.system-noc-card-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f766e;
  margin-bottom: 4px;
}

.system-noc-card h4 {
  margin: 0;
  font-size: 22px;
  color: #0f172a;
}

.system-noc-metrics,
.system-noc-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.system-noc-metric,
.system-noc-context-item {
  border-radius: 18px;
  padding: 18px 18px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.system-noc-metric span,
.system-noc-context-item span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 7px;
}

.system-noc-metric strong,
.system-noc-context-item strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.25;
}

.system-health-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1px solid transparent;
}

.system-health-pill.is-ok {
  color: #166534;
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.26);
}

.system-health-pill.is-warning {
  color: #a16207;
  background: rgba(250, 204, 21, 0.2);
  border-color: rgba(250, 204, 21, 0.3);
}

.system-health-pill.is-critical {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.28);
}

.system-health-pill.is-neutral {
  color: #334155;
  background: rgba(148, 163, 184, 0.16);
  border-color: rgba(148, 163, 184, 0.24);
}

.system-noc-mini-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(241, 245, 249, 0.95);
  font-size: 12px;
  font-weight: 800;
  color: #334155;
}

.system-noc-mini-badge.is-ok {
  color: #166534;
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.24);
}

.system-noc-mini-badge.is-warning {
  color: #a16207;
  background: rgba(250, 204, 21, 0.18);
  border-color: rgba(250, 204, 21, 0.28);
}

.system-noc-mini-badge.is-critical {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.28);
}

.system-tech-grid,
.system-source-grid,
.system-port-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.system-tech-toggle {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.95);
  min-height: 76px;
}

.system-tech-toggle.is-active {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.95);
}

.system-tech-toggle.is-inactive {
  border-color: rgba(248, 113, 113, 0.24);
  background: rgba(254, 242, 242, 0.95);
}

.system-tech-toggle input {
  width: 18px;
  height: 18px;
}

.system-tech-toggle-name {
  font-weight: 700;
  color: #0f172a;
}

.system-tech-toggle-state {
  font-size: 12px;
  font-weight: 800;
  color: #475569;
}

.system-source-pill,
.system-port-pill {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(248, 250, 252, 0.95);
  min-height: 112px;
}

.system-source-pill strong,
.system-port-pill strong {
  font-size: 15px;
  color: #0f172a;
}

.system-source-pill span,
.system-port-pill span {
  font-size: 13px;
  color: #475569;
}

.system-source-pill.is-ok,
.system-port-pill.is-ok {
  border-color: rgba(34, 197, 94, 0.26);
  background: rgba(240, 253, 244, 0.95);
}

.system-source-pill.is-warning,
.system-port-pill.is-warning {
  border-color: rgba(250, 204, 21, 0.28);
  background: rgba(254, 252, 232, 0.95);
}

.system-source-pill.is-critical,
.system-port-pill.is-critical {
  border-color: rgba(248, 113, 113, 0.26);
  background: rgba(254, 242, 242, 0.95);
}

.system-port-sections {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 18px;
}

.system-port-sections h5 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;
}

.system-empty {
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: #64748b;
  font-size: 13px;
}

@media (min-width: 1200px) {
  section[data-section="administrativo"] .admin-panel {
    padding: 34px;
  }

  .system-noc-grid--dashboard .system-noc-card--summary {
    grid-column: span 12;
  }

  .system-noc-grid--dashboard .system-noc-card--commercial,
  .system-noc-grid--dashboard .system-noc-card--ops {
    grid-column: span 6;
  }

  .system-noc-grid--dashboard .system-noc-card--finance,
  .system-noc-grid--dashboard .system-noc-card--support {
    grid-column: span 6;
  }

  .system-noc-grid--dashboard .system-noc-card--production {
    grid-column: span 8;
  }

  .system-noc-grid--dashboard .system-noc-card--sources {
    grid-column: span 4;
  }
}

@media (max-width: 900px) {
  .system-noc-top {
    flex-direction: column;
    align-items: stretch;
  }

  .system-health-pill {
    width: fit-content;
  }

  .system-noc-card,
  .system-noc-card--full,
  .system-noc-card--half,
  .system-noc-card--production,
  .system-noc-card--sources,
  .system-noc-card--server,
  .system-noc-card--ports {
    grid-column: span 12;
  }

  .system-port-sections {
    grid-template-columns: 1fr;
  }
}

.os-flow-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.os-flow-selector select {
  min-width: 220px;
}

.os-flow-status-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
}

.os-flow-targets {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.os-flow-target-empty {
  font-size: 13px;
  color: #64748b;
}

.os-flow-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 10px;
}

.os-log-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: #64748b;
}

.os-flow-logs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
}

.os-flow-logs-main {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.os-flow-logs-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.os-flow-live-card {
  gap: 8px;
}

.os-flow-live-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

@media (max-width: 960px) {
  .os-flow-logs-layout {
    grid-template-columns: 1fr;
  }
}

.os-flow-summary {
  margin-top: 8px;
  font-size: 12px;
  color: #475569;
}

.os-flow-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.os-flow-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.os-flow-item.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.os-flow-item:hover {
  border-color: #cbd5f5;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}

.os-flow-item small {
  color: #64748b;
}

.os-flow-item-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
  color: #475569;
}

.os-flow-list-empty {
  font-size: 13px;
  color: #64748b;
}

.os-flow-config-grid {
  display: grid;
  gap: 12px;
}

.os-flow-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.os-flow-card-head h5 {
  margin: 0;
  font-size: 14px;
  color: #1f2937;
}

.os-flow-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.os-flow-form-grid--compact {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.os-flow-statuses {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  font-size: 12px;
}

.os-flow-statuses label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
}

.os-target-company {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.os-accordion-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.os-accordion-toggle {
  border: none;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  font-weight: 700;
  color: #1f2937;
  cursor: pointer;
  position: relative;
}

.os-accordion-title {
  font-size: 14px;
}

.os-accordion-toggle::before {
  content: "▶";
  font-size: 10px;
  margin-right: 6px;
  display: inline-block;
  transform: translateY(1px);
}

.os-accordion-toggle[aria-expanded="true"]::before {
  content: "▼";
}

.os-target-company-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.os-target-search {
  min-width: 220px;
}

.os-target-count {
  font-size: 12px;
  color: #64748b;
}

.os-target-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  align-items: center;
}

.os-target-category {
  border-left: 2px solid #e2e8f0;
  padding-left: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.os-target-category-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.os-company-body.is-collapsed,
.os-category-body.is-collapsed {
  display: none;
}

.os-target-option {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: #fff;
  font-size: 12px;
}

.os-target-option input {
  width: 14px;
  height: 14px;
}

.os-target-option:hover {
  border-color: #cbd5f5;
  background: #f8faff;
}

.os-target-option.is-hidden {
  display: none;
}

.admin-field.is-hidden {
  display: none;
}

.os-target-sub {
  grid-template-columns: 1fr 1fr auto;
}

.os-flow-add-btn {
  margin-top: 8px;
  align-self: flex-start;
}
