/* ===== estilo ===== */

    :root{
      --bg:#F6F4F0;
      --side:#2C3F55;
      --side2:#3A5470;
      --panel:#ffffff;
      --panel2:#ffffff;
      --card:#ffffff;
      --stroke:#E6E1D8;
      --stroke2:#D5CFC4;
      --line:#E6E1D8;
      --text:#243040;
      --muted:#6B7280;
      --muted2:#6B7280;
      --accent:#5B7C99;
      --accent2:#4A6A86;
      --brand:#5B7C99;
      --danger:#C44D4D;
      --ok:#5B7C99;
      --shadow:0 14px 38px rgba(27,77,92,.10);
      --radius:14px;
      --radius2:18px;
      --font:Segoe UI,Arial,system-ui,-apple-system,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif;
    }
    *{box-sizing:border-box}
    body{
      margin:0;
      font-family:var(--font);
      color:var(--text);
      background:var(--bg);
      min-height:100vh;
    }

    .app{
      display:grid;
      grid-template-columns: 290px 1fr;
      height:100vh;
      overflow:hidden;
    }

    /* ===== Sidebar ===== */
    .sidebar{
      background:linear-gradient(180deg, #243548 0%, var(--side) 42%, #354A63 78%, var(--side2) 100%);
      border-right:0;
      color:#fff;
      padding:18px 16px;
      display:flex;
      flex-direction:column;
      gap:16px;
    }
    .brand{
      display:flex;
      align-items:center;
      gap:12px;
      padding:10px 10px;
      border:1px solid rgba(255,255,255,.16);
      border-radius:var(--radius2);
      background:rgba(255,255,255,.06);
      box-shadow:none;
    }
    .logo{
  width:42px;
  height:42px;
  object-fit:contain;
  display:block;
}
    .brand h1{
      font-size:14px;
      margin:0;
      line-height:1.15;
      letter-spacing:.2px;
    }
    .brand h1{color:#fff}
    .brand .sub{
      font-size:12px;
      color:#C5D0DC;
      margin-top:2px;
    }

    .side-section{
      border:1px solid rgba(255,255,255,.14);
      border-radius:var(--radius2);
      background:rgba(255,255,255,.06);
      padding:12px;
    }
    .side-title{
      font-size:12px;
      letter-spacing:.12em;
      color:#C5D0DC;
      text-transform:uppercase;
      margin:0 0 10px 0;
    }
    .btn{
      width:100%;
      padding:10px 12px;
      border-radius:14px;
      border:1px solid rgba(255,255,255,.18);
      background:rgba(255,255,255,.08);
      color:#E4EAF1;
      cursor:pointer;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      font-size:13px;
      transition: transform .08s ease, background .15s ease, border-color .15s ease;
      user-select:none;
    }
    .btn:hover{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.28);color:#fff}
    .btn:active{ transform: translateY(1px); }
    .btn.primary{
      background:var(--brand);
      border-color:var(--brand);
      color:#fff;
    }
    .btn.danger{
      background:#fee2e2;
      border-color:#fecaca;
      color:#991b1b;
    }
    .btn .hint{
      font-size:12px;
      color:#9AA8B8;
    }

    .sidebarDev{
      margin-top:auto;
      display:flex;
      flex-direction:column;
      align-items:center;
      justify-content:center;
      padding:10px 6px 4px;
      flex-shrink:0;
    }
    .sidebarDevStack{
      display:flex;
      flex-direction:column;
      align-items:center;
      gap:6px;
      width:100%;
      max-width:100%;
      margin:0 auto;
      padding:0 8px;
      text-align:center;
      box-sizing:border-box;
    }
    .strataDev{display:flex;flex-direction:column;align-items:center;gap:6px;width:100%}
    .strataDevOficial{display:block;width:100%;max-width:280px;height:auto;margin:0 auto;background:transparent}
    .strataDevLabel{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:#D5E2EE;opacity:.95;width:100%;text-align:center}
    .strataDevMark{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:8px;width:auto;max-width:100%;margin:0 auto}
    .strataDevIcon{display:block;width:42px;height:38px;flex:0 0 auto}
    .strataDevWords{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:1px;line-height:1.15;text-align:left}
    .strataDevName{display:block;font-size:13px;font-weight:800;letter-spacing:.04em;color:#F4F8FF;white-space:nowrap}
    .strataDevTag{display:block;font-size:11px;font-weight:500;color:#B8D4EC;white-space:nowrap}
    .devBadge,#devFloat.devBadge{font-size:14px;color:#E8EEF4;opacity:.95;width:100%;text-align:center}
    .appVersion{font-size:13px;color:#C5D4E2;opacity:.95;width:100%;text-align:center}
    .assistentePainel{
      position:fixed;right:18px;bottom:18px;z-index:1200;
      display:flex;flex-direction:column;align-items:flex-end;gap:8px;
      max-width:min(340px,calc(100vw - 36px));
    }
    .assistentePainel[hidden],.assistentePainel.oculto-por-aviso,body.aviso-oculta-orientador .assistentePainel,
    body:has(.overlay[style*="flex"]) .assistentePainel,
    body:has(#securityOverlay:not([hidden])) .assistentePainel,
    body:has(#termoOverlay:not([hidden])) .assistentePainel{display:none!important;visibility:hidden!important;pointer-events:none!important;opacity:0!important}
    .btnAssistenteToggle{
      height:42px;padding:0 16px;border:0;border-radius:12px;background:#4a6a86;color:#fff;
      font-weight:700;cursor:pointer;box-shadow:var(--shadow);
    }
    .assistenteConteudo{
      background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 16px;
      box-shadow:var(--shadow);font-size:13px;line-height:1.55;color:#344054;max-width:340px;
    }
    .assistenteConteudo p{margin:0 0 8px}
    .assistenteConteudo p:last-child{margin-bottom:0}
    .assistenteConteudo .muted{color:#6B7280;font-size:12px}
    .assistenteLinkZap{display:inline-flex;margin-top:8px;padding:8px 12px;border-radius:10px;background:#5b7c99;color:#fff!important;text-decoration:none;font-weight:700;font-size:12px}
    .chip{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid var(--stroke);
      background: rgba(255,255,255,.03);
      width:max-content;
      font-size:15px;
      color:var(--muted);
    }
#statusSalvo{
  opacity:0;
  transition: opacity .2s ease;
  color: var(--ok);
  font-weight:600;
  font-size:22px;

  height:18px;          /* aumenta a área da linha */
  line-height:18px;     /* centraliza o texto verticalmente */

  text-align:center;
  width:100%;
  margin-bottom:2px;
} 

/* ===== Main ===== */
    .main{
      padding:18px 18px 20px 18px;
      overflow:auto;
    }
    .topbar{
      display:flex;
      align-items:flex-start;
      justify-content:space-between;
      gap:14px;
      margin-bottom:14px;
    }
    .topbar .left{
      display:flex;
      flex-direction:column;
      gap:6px;
      min-width: 280px;
      flex: 0 0 414px;
    }
    .dashboard-card{
      margin:10px 0;
      min-height:92px;
      padding:16px 18px;
      border:1px solid rgba(255,255,255,.1);
      border-radius:14px;
      background:rgba(255,255,255,.04);
      display:flex;
      flex-direction:column;
      justify-content:center;
    }
    .dashboard-card .dash-title{
      display:block;
      margin-bottom:4px;
      font-size:13px;
      font-weight:700;
      letter-spacing:.2px;
    }
    .dashboard-card .dash-line{
      font-size:13px;
      line-height:1.5;
      white-space:nowrap;
    }
    .dash-rotator{
      position:relative;
      min-height:22px;
      overflow:hidden;
    }
    #dashDynamic{
      display:inline-block;
      opacity:1;
      transform:translateY(0) translateX(0) scale(1);
      transition:opacity .42s ease, transform .42s ease;
      will-change:opacity, transform;
    }
    #dashDynamic.anim-fade-up-out{
      opacity:0;
      transform:translateY(8px);
    }
    #dashDynamic.anim-fade-up-in{
      opacity:1;
      transform:translateY(0);
    }
    #dashDynamic.anim-slide-left-out{
      opacity:0;
      transform:translateX(-14px);
    }
    #dashDynamic.anim-slide-left-in{
      opacity:1;
      transform:translateX(0);
    }
    #dashDynamic.anim-slide-right-out{
      opacity:0;
      transform:translateX(14px);
    }
    #dashDynamic.anim-slide-right-in{
      opacity:1;
      transform:translateX(0);
    }
    #dashDynamic.anim-zoom-out{
      opacity:0;
      transform:scale(.96);
    }
    #dashDynamic.anim-zoom-in{
      opacity:1;
      transform:scale(1);
    }
    .title{
      margin:0;
      font-size:18px;
      letter-spacing:.2px;
    }
    .subtitle{
      margin:0;
      color:var(--muted2);
      font-size:13px;
    }
    .monthline{
      display:flex;
      align-items:center;
      gap:8px;
      flex-wrap:wrap;
      margin-top:6px;
      overflow:hidden;
      max-width:100%;
      padding:0;
    }
    .counter{
      display:inline-flex;
      align-items:center;
      gap:8px;
      padding:7px 10px;
      border-radius:999px;
      border:1px solid rgba(90,167,255,.35);
      background: rgba(90,167,255,.10);
      color: var(--text);
      font-size:12px;
      font-weight:600;
    }
    .mode-switch{
      display:none;
      align-items:center;
      gap:6px;
      flex-wrap:wrap;
    }
    .mode-switch.show{ display:inline-flex; }
    .mode-btn{
      min-height:28px;
      padding:6px 10px;
      border-radius:999px;
      border:1px solid rgba(216,226,239,.12);
      background:#121a24;
      color:#aeb9c8;
      font-size:12px;
      cursor:pointer;
    }
    .mode-btn.active{
      border-color:rgba(90,167,255,.48);
      background:rgba(90,167,255,.16);
      color:#f5f9ff;
    }

    /* Search card */
    .search-card{
      position:relative;
      flex:1;
      max-width: 720px;
      min-width: 320px;
      min-height:92px;
      border:1px solid var(--stroke);
      border-radius: var(--radius2);
      background: rgba(255,255,255,.03);
      box-shadow: var(--shadow);
      padding:14px;
      display:flex;
      flex-direction:column;
      justify-content:center;
    }
    .search-row{
      display:flex;
      align-items:center;
      gap:10px;
    }

.search-input{
  flex:1;
  height:44px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color:var(--text);
  padding:0 12px;
  font-size:14px;
  outline:none;
  box-sizing:border-box;

  margin-top:-0px;
}
.search-input::placeholder{ color: rgba(234,240,255,.45); }
    .mini{
      font-size:12px;
      color: var(--muted2);
      margin:8px 2px 0 2px;
    }

    /* Results dropdown */
    .results{
      position:absolute;
      left:12px;
      right:12px;
      top:-25px;
      border-radius: 14px;
      border:1px solid rgba(255,255,255,.16);
      background: rgba(255,255,255,.96) !important;
      color:#111827 !important;
      box-shadow: 0 18px 45px rgba(0,0,0,.38);
      overflow:hidden;
      display:none;
      max-height: 340px;
      overflow:auto;
      z-index: 50;
    }
    .results .empty{
      padding:12px 12px;
      font-size:13px;
      color:#374151;
    }
    .item{
      display:flex;
      align-items:center;
      gap:10px;
      padding:10px 12px;
      border-bottom:1px solid rgba(0,0,0,.06);
      cursor:pointer;
    }
    .item:last-child{ border-bottom:none; }
    .item:hover{ background: rgba(90,167,255,.08); }
    .item.active{ background: rgba(90,167,255,.14); }
    .item.selected{ background: rgba(91,124,153,.18) !important; border:1px solid rgba(91,124,153,.35); }
    .item input{ width:18px;height:18px; }
    
    /* MODIFICAÇÃO SOLICITADA: CHECKBOX MODERNO */
    .item input[type="checkbox"]{
      appearance:none;
      -webkit-appearance:none;
      width: 20px;
      height: 20px;
      border:2px solid var(--accent);
      border-radius:6px;
      background:transparent;
      position:relative;
      cursor:pointer;
      flex-shrink: 0;
      transition: all 0.2s ease;
    }
    .item input[type="checkbox"]:checked{
      background:var(--accent);
      border-color:var(--accent);
      box-shadow: 0 0 10px rgba(90, 167, 255, 0.4);
    }
    .item input[type="checkbox"]:checked::after{
      content:"✓";
      position:absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      color: white;
      font-size: 14px;
      font-weight: bold;
    }

    .name{
      flex:1;
      font-size:13px;
      color:#111827 !important; /* <<< garante visível */
      font-weight:600;
      line-height:1.2;
    }
    .meta{
      display:flex;
      flex-direction:column;
      align-items:flex-end;
      gap:4px;
      min-width: 130px;
    }
    .badge{
      font-size:11px;
      padding:4px 8px;
      border-radius:999px;
      border:1px solid rgba(90,167,255,.25);
      background: rgba(90,167,255,.10);
      color:#0b3a72;
      font-weight:700;
      white-space:nowrap;
    }
    .dob{
      font-size:11px;
      color:#4b5563;
      white-space:nowrap;
    }

    /* Selected list */
    .selected-card{
      margin-top:14px;
      border:1px solid var(--stroke);
      border-radius: var(--radius2);
      background: rgba(255,255,255,.03);
      box-shadow: var(--shadow);
      overflow:hidden;
    }
    .selected-head{
      padding:12px 14px;
      border-bottom:1px solid var(--stroke);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
    }
    .selected-head .h{
      margin:0;
      font-size:13px;
      color:var(--muted);
      letter-spacing:.12em;
      text-transform:uppercase;
    }
    .selected-body{
      padding:10px 10px 2px 10px;
    }
    .row{
      display:grid;
      grid-template-columns: 1fr 180px;
      gap:10px;
      padding:10px 10px;
      border-radius: 14px;
      border:1px solid rgba(255,255,255,.10);
      background: rgba(0,0,0,.16);
      margin-bottom:8px;
    }
    .row .rname{
      font-weight:700;
      font-size:13px;
      color: var(--text);
    }
    .row .rcargo{
      text-align:right;
      font-size:12px;
      color: var(--bg) !important;
      font-weight: 800 !important;
      letter-spacing:.2px;
      white-space:nowrap;
    }
    .muted-small{
      font-size:12px;
      color: var(--muted2);
      padding:8px 12px 12px 12px;
    }

    /* ===== Modals ===== */
    .overlay{
      position:fixed; inset:0;
      background: rgba(0,0,0,.55);
      display:none;
      align-items:center;
      justify-content:center;
      z-index: 200;
      padding: 16px;
    }
    .modal{
      width: min(560px, 100%);
      border-radius: var(--radius2);
      background: linear-gradient(180deg, #2C3F55, #1E2D3D);
      border: 1px solid rgba(183,198,214,.22);
      box-shadow: 0 30px 70px rgba(36,48,64,.45);
      overflow:hidden;
      max-height: 90vh;
      display:flex;
      flex-direction:column;
    }
    .modal header{
      padding:14px 16px;
      border-bottom: 1px solid rgba(255,255,255,.12);
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
    }
    .modal header h2{
      margin:0;
      font-size:14px;
      letter-spacing:.12em;
      text-transform:uppercase;
      color: var(--muted);
    }
    .modal .content{
      padding:14px 16px 10px 16px;
      display:flex;
      flex-direction:column;
      gap:10px;
      overflow-y:auto;
      max-height: calc(90vh - 132px);
    }
    .field{
      display:flex;
      flex-direction:column;
      gap:6px;
    }
    .field label{
      font-size:12px;
      color: var(--muted2);
    }
    .field input, .field select{
      height:42px;
      border-radius:14px;
      border:1px solid rgba(255,255,255,.16);
      background: rgba(0,0,0,.18);
      color: var(--text);
      padding:0 12px;
      outline:none;
      font-size:13px;
    }
    .modal footer{
      padding:12px 16px 14px 16px;
      display:flex;
      gap:10px;
      justify-content:flex-end;
      border-top: 1px solid rgba(255,255,255,.10);
    }
    .mbtn{
      padding:10px 12px;
      border-radius:14px;
      border:1px solid rgba(255,255,255,.16);
      background: rgba(255,255,255,.05);
      color: var(--text);
      cursor:pointer;
      font-size:13px;
    }
    .mbtn.primary{
      border-color: rgba(91,124,153,.55);
      background: rgba(91,124,153,.22);
      font-weight:700;
    }
    .mbtn.danger{
      border-color: rgba(255,90,107,.45);
      background: rgba(255,90,107,.14);
      font-weight:700;
    }
    .note{
      font-size:12px;
      color: var(--muted2);
      line-height:1.35;
      padding: 0 2px;
    }
    .note.note-parecido{
      display:block;
      margin-top:8px;
      color:#7a3030;
      background:#f8ecec;
      border:2px solid #c45c5c;
      border-radius:8px;
      padding:8px 10px;
      white-space:pre-line;
    }
    .note.note-parecido[hidden]{ display:none !important; }
  
    /* ===== PATCH_NAV_TECLADO_BUSCA: destaque ao navegar com setas ===== */
    .results .item.active{
      outline: 2px solid rgba(255,255,255,.25);
      outline-offset: -2px;
    }


    /* ===== PATCH ROLAGEM V2 (SEM QUEBRAR NADA): BUSCA SEMPRE VISÍVEL ===== */
    /* A ideia: só a lista de selecionados rola; topo (busca) fica fixo. */
    .layout{
      height: 100vh;
      overflow: hidden;
    }
    .main{
      height: 100vh;
      overflow: hidden; /* impede rolagem do centro inteiro */
      min-height: 0;
      display: flex;
      flex-direction: column;
    }
    .topbar{
      position: sticky;
      top: 0;
      z-index: 20;
      flex: 0 0 auto;
    }
    .selected-card{
      flex: 1 1 auto;
      min-height: 0;
      display: flex;
      flex-direction: column;
    }
    .selected-head{
      position: sticky;
      top: 0;
      z-index: 10;
      /* usa o mesmo fundo do card para não "sumir" o topo */
      background: inherit;
    }
    #listaSelecionados.selected-body{
      flex: 1 1 auto;
      min-height: 0;
      overflow-y: auto; /* rola só os nomes */
      overscroll-behavior: contain;
    }


/* ===== estilo ===== */

/* ===== AJUSTE VISUAL BUSCA (TEXTO VISÍVEL) ===== */
.resultados-busca {
  background: #2C3F55 !important;
  color: #ffffff !important;
}

.resultado-item {
  color: #ffffff !important;
}

.resultado-item * {
  color: #ffffff !important;
}

.resultado-item small {
  color: #cbd5e1 !important;
}

.resultado-item:hover {
  background: #3A5470 !important;
}

/* ===== ESPAÇAMENTO LATERAL ESQUERDA - CORRIGIDO ===== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  background: linear-gradient(180deg, #243548 0%, #2C3F55 42%, #354A63 78%, #3A5470 100%) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Remove sombra interna duplicada da sidebar */
.sidebar::before {
  display: none !important;
}

/* ===== estilo ===== */


/* ===== AJUSTE FINO: alinhar bloco de busca com o container da esquerda ===== */
.search-card{
  margin-top: 10px !important;
}


/* ===== estilo ===== */

/* ===== ESPAÇO ENTRE BOTÕES DA LATERAL ===== */
.sidebar button:not(#btnSidebarFechar),
.sidebar .btn,
.sidebar .menu-btn {
  margin-bottom: 12px !important;
}

/* Remove margem extra do último botão de cada grupo */
.sidebar button:last-child,
.sidebar .btn:last-child,
.sidebar .menu-btn:last-child {
  margin-bottom: 0 !important;
}

/* ===== estilo ===== */

/* ===== FIX_VISUAL_UPPERCASE ===== */
input[name="nome"], #nome, input#nome {
  text-transform: uppercase !important;
}

/* ===== COR VISIVEL FUNCAO MODAL ===== */
.modal select,
.modal select option {
  color: #ffffff !important;
  background-color: #3A5470 !important;
}

/* ===== estilo ===== */


.sidebar-footer-credits .credit-title {
  font-weight: 600;
}

.sidebar-footer-credits .credit-author {
  font-weight: 400;
}

.sidebar{
  padding-bottom: 120px; /* evita sobreposição visual com o bloco fixo */
}

/* ===== estilo ===== */

/* ===== RESTORE_UPPERCASE_MODAL_FIELDS ===== */
#inpNome, #editNome { text-transform: uppercase !important; }

/* ===== patch-admin-centro-v48 ===== */

main.main .selected-card{
  background: linear-gradient(180deg, rgba(12,25,45,.98), rgba(8,16,30,.98)) !important;
  border: 1px solid rgba(143,193,255,.16) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,.32) !important;
}
main.main .selected-head{
  background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)) !important;
  border-bottom: 1px solid rgba(143,193,255,.10) !important;
}
main.main #listaSelecionados.selected-body{
  background: linear-gradient(180deg, rgba(11,22,40,.96), rgba(7,14,26,.96)) !important;
}
main.main #listaSelecionados .row{
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02)) !important;
  border: 1px solid rgba(143,193,255,.13) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03) !important;
  transition: background .18s ease, border-color .18s ease, transform .18s ease !important;
}
main.main #listaSelecionados .row:hover{
  background: linear-gradient(180deg, rgba(90,167,255,.16), rgba(90,167,255,.08)) !important;
  border-color: rgba(143,193,255,.24) !important;
  transform: translateY(-1px);
}
main.main #listaSelecionados .row .rname{
  color: #f3f7ff !important;
  text-shadow: 0 0 10px rgba(143,193,255,.08);
}
main.main #listaSelecionados .row .rcargo{ font-weight: 800 !important; 
  color: var(--bg) !important;
}

/* ===== estilo ===== */

/* Overlay em tela cheia — modais centralizados sobre toda a janela */
.overlay{
  left:0 !important;
  width:100% !important;
  inset:0 !important;
}

/* ===== estilo ===== */

/* AJUSTE POSIÇÃO BUSCA */
.search-card{
  margin-left: 8px !important;
}

/* AJUSTE LISTA RESULTADOS */
.results{
  right: 24px !important;
}

/* DASH MODERNO */
#dashDynamic{
  display:inline-block;
  transition: all .45s cubic-bezier(.2,.8,.2,1);
}

#dashDynamic.anim-zoom-out{
  opacity:0;
  transform: translateY(6px) scale(.95);
}

#dashDynamic.anim-zoom-in{
  opacity:1;
  transform: translateY(0) scale(1);
}

/* ===== high-end-consolidated-fix ===== */

/* remover título antigo */
.dashboard-card .dash-title{ display:none !important; }

/* topbar para posicionar o SALVO entre dash e busca */
.topbar{
  position:relative !important;
}

/* DASH totalmente suspensa */
.dashboard-card{
  position:relative !important;
  margin:8px 0 10px 0 !important;
  min-height:118px !important;
  padding:4px 0 0 0 !important;
  border:none !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}
.dashboard-card::before{
  content:"";
  position:absolute;
  left:50%;
  top:48%;
  width:320px;
  height:150px;
  transform:translate(-50%,-50%);
  background:radial-gradient(circle, rgba(90,167,255,.16), rgba(90,167,255,.05) 38%, transparent 72%);
  filter:blur(18px);
  pointer-events:none;
}
.dashboard-card .dash-line{
  text-align:left !important;
  font-size:18px !important;
  line-height:1.42 !important;
}
#dTotal{
  font-size:42px !important;
  font-weight:900 !important;
  letter-spacing:.2px !important;
  color:#ffffff !important;
  display:inline-block;
  min-width:34px;
  text-shadow:0 0 18px rgba(90,167,255,.18);
}
#dashRotator{
  margin-top:10px !important;
  min-height:106px !important;
}
#dashDynamic{
  display:flex !important;
  flex-direction:column !important;
  align-items:flex-start !important;
  gap:8px !important;
  font-size:0 !important;
  opacity:1;
  transform:none;
  transition:
    opacity .95s cubic-bezier(.2,.8,.2,1),
    transform .95s cubic-bezier(.2,.8,.2,1) !important;
}
.dash-line-item{
  font-size:20px;
  line-height:1.18;
  font-weight:800;
  color:#f5f9ff;
  letter-spacing:.1px;
  text-shadow:0 0 10px rgba(90,167,255,.10);
}
.dash-line-item .dash-qtd{
  color:#ffffff;
  margin-right:7px;
}
.dash-line-item .dash-cargo{
  color:#beddff;
}
.dash-line-item.empty{
  color:rgba(234,240,255,.88);
  font-size:17px;
  font-weight:700;
}

/* animações da dash mais lentas e elegantes */
#dashDynamic.anim-fade-up-out{ opacity:0; transform:translateY(14px) scale(.985); }
#dashDynamic.anim-fade-up-in{ opacity:1; transform:translateY(0) scale(1); }
#dashDynamic.anim-slide-left-out{ opacity:0; transform:translateX(-22px); }
#dashDynamic.anim-slide-left-in{ opacity:1; transform:translateX(0); }
#dashDynamic.anim-slide-right-out{ opacity:0; transform:translateX(22px); }
#dashDynamic.anim-slide-right-in{ opacity:1; transform:translateX(0); }
#dashDynamic.anim-zoom-out{ opacity:0; transform:scale(.94); }
#dashDynamic.anim-zoom-in{ opacity:1; transform:scale(1); }

/* SALVO entre dash e busca, no mesmo nível */
#dashSaved{
  position:absolute !important;
  left:900px !important;
  top:54px !important;
  right:auto !important;
  bottom:auto !important;
  display:flex !important;
  align-items:center;
  justify-content:center;
  min-width:160px;
  padding:10px 18px !important;
  border-radius:999px !important;
  background:linear-gradient(135deg, rgba(83,148,255,.96), rgba(109,182,255,.96)) !important;
  color:#ffffff !important;
  font-size:18px !important;
  font-weight:900 !important;
  letter-spacing:.35px !important;
  box-shadow:
    0 14px 34px rgba(50,110,220,.34),
    0 0 22px rgba(90,167,255,.24);
  opacity:0;
  transform:translateY(8px) scale(.88);
  transition:
    opacity .5s ease,
    transform .5s cubic-bezier(.2,.8,.2,1) !important;
  pointer-events:none !important;
  z-index:40 !important;
}
#dashSaved::before{
  content:"";
  margin-right:8px;
  font-weight:900;
  font-size:18px;
}
#dashSaved.show{
  opacity:1 !important;
  transform:translateY(0) scale(1);
}

/* busca suspensa de verdade, sem caixa */
.search-card{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  min-height:118px !important;
  padding:4px 0 0 0 !important;
}
.search-card::before,
.search-card::after{
  display:none !important;
}
.search-row{
  min-height:104px !important;
  align-items:flex-start !important;
  padding-top:18px;
}
.search-input{
  height:auto !important;
  padding:0 !important;
  border:none !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
  color:#E8EDF2 !important;
  font-size:20px !important;
  font-weight:700 !important;
}
.search-input::placeholder{
  color:rgba(234,240,255,.56) !important;
}
.search-input:focus{
  border:none !important;
  box-shadow:none !important;
  outline:none !important;
  transform:translateY(-1px);
}
.search-card:hover .search-input{
  color:#ffffff !important;
}

/* botões com hover magnético restaurado */
.btn{
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s cubic-bezier(.2,.8,.2,1),
    background .18s ease,
    border-color .18s ease !important;
}
.btn:hover{
  transform:translateY(-5px) scale(1.03) !important;
  box-shadow:
    0 18px 32px rgba(0,0,0,.28),
    0 0 0 1px rgba(90,167,255,.14) !important;
}
.btn:active{
  transform:translateY(-1px) scale(1.01) !important;
}

/* centro com leve refinamento, sem perder o visual */
.selected-card{
  box-shadow:0 18px 44px rgba(0,0,0,.26) !important;
}
.row{
  transition:
    transform .28s cubic-bezier(.2,.8,.2,1),
    box-shadow .28s cubic-bezier(.2,.8,.2,1),
    border-color .22s ease !important;
}
.row:hover{
  transform:translateY(-3px) scale(1.01);
  box-shadow:0 14px 28px rgba(0,0,0,.26) !important;
}

/* ===== final-tweaks ===== */


#dTotal{
  font-size:34px !important;
  font-weight:900;
  line-height:1;
}

.dash-total-label{
  display:flex;
  align-items:center;
  gap:8px;
}

.dashboard{
  margin-bottom:10px !important;
}

.search-container{
  margin-bottom:8px !important;
}

.lista-container{
  margin-top:6px !important;
}

#salvoBox{
  position:absolute;
  top:10px;
  left:600%;
  transform:translateX(-50%);
  z-index:9999;
}


/* ===== visual-ajustes ===== */

/* Ajustes visuais (apenas aparência) */

/* suaviza tipografia geral */
body{
  letter-spacing:0.2px;
}

/* sidebar mais refinada */
.sidebar{
  backdrop-filter: blur(6px);
}

/* botões mais modernos */
.btn{
  border-radius:16px !important;
}
.btn:hover{
  filter:brightness(1.08);
}

/* inputs mais suaves */
.search-input{
  transition: all .25s ease !important;
}
.search-input:focus{
  transform:scale(1.01);
}

/* cards com leve glow */
.selected-card,
.search-card,
.side-section{
  box-shadow: 0 10px 28px rgba(0,0,0,.28) !important;
}

/* linhas mais elegantes */
.row{
  border-radius:16px !important;
}

/* scrollbar moderna */
::-webkit-scrollbar{
  width:10px;
}
::-webkit-scrollbar-track{
  background: transparent;
}
::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.15);
  border-radius:10px;
}
::-webkit-scrollbar-thumb:hover{
  background: rgba(255,255,255,.28);
}

/* hover mais suave nos itens */
.item{
  transition: all .18s ease;
}

/* badge mais limpo */
.badge{
  border-radius:12px !important;
}

/* modal mais suave */
.modal{
  backdrop-filter: blur(10px);
}

/* ===== fix-total-align ===== */

#dTotal{
  font-size:24px !important;
  vertical-align:middle;
}

.dash-total-label{
  display:flex;
  align-items:center;
  gap:6px;
}

.dash-total-label span:first-child{
  position:relative;
  top:-2px;
}

/* ===== dashsaved-manual-control-horizontal ===== */

:root {
  --dashsaved-top: 25px;
  --dashsaved-left: -320px;
}

#dashSaved{
  top: var(--dashsaved-top) !important;
  left: calc(50% + var(--dashsaved-left)) !important;
  z-index:1 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 18px !important;
  text-align:center !important;
}

#dashSaved span {
  display:inline-block;
  transform:translateX(0px);
}

#dashSaved::before {
  content:"";
}

/* ===== manual-adjust-vars ===== */

:root {
  --dashsaved-top: 25px;       /* ajuste vertical Salvo */
  --dashsaved-left: -260px;    /* ajuste horizontal Salvo */
  --search-left: 220px;        /* ajuste horizontal campo de busca */
}

#dashSaved{
  top: var(--dashsaved-top) !important;
  left: calc(50% + var(--dashsaved-left)) !important;
  z-index:1 !important;
}

.search-card{
  margin-left: var(--search-left) !important;
}

/* ===== safe-visual-updates ===== */

:root {
  --dashsaved-top: 25px;
  --dashsaved-left: -180px;
}

/* SALVO gordo e centralizado */
#dashSaved{
  padding:16px 32px !important;
  border-radius:999px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
  font-size:18px !important;
  font-weight:900 !important;
  letter-spacing:.35px !important;
  background:linear-gradient(135deg, rgba(83,148,255,0.96), rgba(109,182,255,0.96)) !important;
  color:#ffffff !important;
  box-shadow: 0 14px 40px rgba(50,110,220,.35), 0 0 24px rgba(90,167,255,.26);
}

/* Dash moderna animada (fade + scale) */
#dashDynamic{
  transition: all 0.45s cubic-bezier(.2,.8,.2,1) !important;
}
#dashDynamic.show .dash-line-item{
  transition: all 0.45s cubic-bezier(.2,.8,.2,1) !important;
  transform: translateY(0) scale(1) !important;
  opacity:1 !important;
}

/* Modais estilo botões do sistema */
.overlay{
  background: rgba(0,0,0,.55) !important;
}
.modal{
  border-radius:18px !important;
  background: linear-gradient(180deg, #2C3F55, #1E2D3D) !important;
  border: 1px solid rgba(183,198,214,.22) !important;
  box-shadow:0 18px 36px rgba(36,48,64,.32) !important;
}
.modal .mbtn{
  border-radius:16px !important;
  background: rgba(91,124,153,.18) !important;
  border:1px solid rgba(91,124,153,.45) !important;
  color:#ffffff !important;
}
.modal .mbtn:hover{
  box-shadow:0 14px 28px rgba(91,124,153,.28) !important;
  transform:translateY(-2px) scale(1.02) !important;
}

/* ===== ultra-final-fix ===== */

/* ===== KEEP ULTRA SELECTED + FULL UPGRADE ===== */

/* ===== SELECTED AREA (DO NOT LOSE) ===== */
.selected-card{
  background: linear-gradient(180deg, rgba(8,14,26,1), rgba(4,8,16,1)) !important;
  border:1px solid rgba(120,180,255,.18) !important;
  box-shadow:
    0 30px 80px rgba(0,0,0,.65),
    inset 0 1px 0 rgba(255,255,255,.05);
}

#listaSelecionados.selected-body{
  padding:18px !important;
}

.row{
  position:relative;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  padding:16px 18px !important;
  margin-bottom:12px !important;
  border-radius:20px !important;
  border:1px solid rgba(255,255,255,.10) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  box-shadow:
    0 14px 30px rgba(0,0,0,.45),
    inset 0 1px 0 rgba(255,255,255,.06);
  overflow:hidden;
}

.row::before{
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(circle at 20% 10%, rgba(120,180,255,.25), transparent 60%);
  opacity:.25;
}

.row:hover{
  transform: translateY(-5px) scale(1.02) !important;
  border-color: rgba(120,180,255,.35) !important;
  background: linear-gradient(180deg, rgba(90,167,255,.28), rgba(90,167,255,.10));
  box-shadow:
    0 25px 55px rgba(0,0,0,.65),
    0 0 30px rgba(120,180,255,.25);
}

.row .rname{
  font-size:16px !important;
  font-weight:800 !important;
  color:#ffffff !important;
}

.row .rcargo{
  padding:7px 14px !important;
  border-radius:999px !important;
  background: linear-gradient(135deg, #5B7C99, #8AA3BB) !important;
  color: var(--bg) !important;
  font-weight: 800 !important;
}

/* ===== FULL UI ===== */

.sidebar{
  backdrop-filter: blur(10px);
}

.btn{
  border-radius:18px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)) !important;
}

.btn:hover{
  transform: translateY(-6px) scale(1.04) !important;
}

.mbtn{
  border-radius:18px !important;
  background: linear-gradient(135deg, #5B7C99, #4a6a86) !important;
  color:#fff !important;
  font-weight:800 !important;
}

.modal{
  border-radius:24px !important;
  backdrop-filter: blur(14px);
}

.field input, .field select{
  border-radius:16px !important;
  background: rgba(255,255,255,.06) !important;
}

.search-input{
  font-size:22px !important;
  font-weight:700;
}

*{
  transition: all .22s cubic-bezier(.2,.8,.2,1);
}

/* ===== fix-busca-final ===== */

.search-container,
.search-box,
.search-wrapper,
.search-input,
input[type="search"] {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

.search-container *,
.search-box *,
.search-wrapper * {
  border: none !important;
  box-shadow: none !important;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

/* ===== premium-upgrade-final ===== */

:root{
  --bg:#0a0f1c;
  --panel:#0f1b2d;
  --card:#111c30;
  --text:#f4f7ff;
  --muted:rgba(244,247,255,.75);
  --accent:#6B8CAE;
  --accent2:#7fbaff;
}

/* remover sombra busca */
.search-card{ box-shadow:none !important; }

/* remover linhas da busca */
.results .item{ border-bottom:none !important; }

/* cards */
.selected-card,
.side-section,
.modal{
  box-shadow:0 8px 24px rgba(0,0,0,.25) !important;
  border:1px solid rgba(255,255,255,.08) !important;
}

/* modal refinado */
.modal{
  backdrop-filter: blur(6px);
}

/* inputs */
.search-input,
.field input,
.field select{
  font-size:16px !important;
  font-weight:600 !important;
  letter-spacing:.3px;
}

/* botões */
.btn, .mbtn{
  transition:all .25s ease !important;
}

.btn:hover, .mbtn:hover{
  transform:translateY(-2px);
}

/* linhas selecionadas */
.row{
  border-radius:12px !important;
}

.row:hover{
  background:rgba(90,167,255,.08) !important;
}

/* tipografia */
body{ font-weight:500; }

.title{
  font-size:20px;
  font-weight:700;
}

/* ===== patch-ultra-preservado ===== */

  .sidebar,
  .search-card,
  .selected-card{
    position: relative;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .sidebar::before,
  .search-card::before,
  .selected-card::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    border-radius: inherit;
    background:
      linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015)),
      radial-gradient(120% 100% at 0% 0%, rgba(255,255,255,.06), transparent 45%);
    opacity:.9;
  }

  .sidebar > *,
  .search-card > *,
  .selected-card > *{
    position: relative;
    z-index: 1;
  }

  body{
    letter-spacing:.15px;
  }

  .btn,
  .item,
  .row,
  .search-input{
    transition:
      transform .18s ease,
      box-shadow .22s ease,
      background .18s ease,
      border-color .18s ease,
      opacity .18s ease;
  }

  .item.selected{
    animation: patchPulseSelect .22s ease;
  }

  @keyframes patchPulseSelect{
    0%{ transform: scale(1); }
    50%{ transform: scale(1.018); }
    100%{ transform: scale(1); }
  }

  .sidebar.drag-ready{
    box-shadow:
      0 0 0 1px rgba(90,167,255,.18),
      0 18px 42px rgba(0,0,0,.22);
  }

  .sidebar.drag-over{
    box-shadow:
      0 0 0 2px rgba(90,167,255,.42),
      0 22px 46px rgba(0,0,0,.28);
  }

  .sidebar-drop-hint{
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 18px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px dashed rgba(255,255,255,.18);
    background: rgba(255,255,255,.04);
    color: rgba(234,240,255,.78);
    font-size: 12px;
    line-height: 1.35;
    display: none;
    z-index: 2;
    pointer-events: none;
  }

  .sidebar.drag-ready .sidebar-drop-hint{
    display: block;
  }

  .dashboard-card{
    overflow: hidden;
  }

  .dashboard-ring-wrap{
    position:absolute;
    left:14px;
    top:10px;
    width:76px;
    height:76px;
    pointer-events:none;
    opacity:.9;
  }

  .dashboard-ring-wrap svg{
    width:100%;
    height:100%;
    display:block;
    filter: drop-shadow(0 0 10px rgba(90,167,255,.18));
  }

  .dashboard-card .dash-line{
    position: relative;
    z-index: 1;
  }

.dashboard-card .dash-line:first-of-type{
  padding-left: 88px;
  min-height: 44px;
  display:flex;
  align-items:center;
  margin-top: 20px;
}


/* ===== controle-ajuste-fino-global ===== */

/* ===== DASHBOARD / ANEL ===== */
.dashboard-card {
  position: relative !important;
  min-height: 150px !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 10px 15px !important;
}

.dashboard-ring-wrap {
  position: absolute !important;
  left: 12px !important;
  top: 10px !important;
  width: 65px !important;
  height: 65px !important;
  z-index: 999 !important;
}

.dashboard-ring-wrap svg {
  width: 65px !important;
  height: 65px !important;
}

.dash-line:first-of-type {
  margin-left: -15px !important;
  margin-top: 12px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

#dashDynamic {
  margin-top: 5px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.dash-line-item {
  line-height: 1.2 !important;
}

/* ===== BUSCA: MODELO ORIGINAL FIXO ===== */
.results {
  position: absolute !important;
  top: calc(100% + 2px) !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  max-height: 308px !important;      /* AJUSTE AQUI (altura exata dos 5 itens) */
  overflow-y: auto !important;
  overflow-x: hidden !important;     /* evita flicker lateral */
  z-index: 99999 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  display: none;
  padding: 0 !important;             /* remove sobra que causa piscar */
  box-sizing: border-box !important; /* estabiliza cálculo de altura */
  will-change: scroll-position;      /* corrige flicker ao digitar */
}

.results .item {
  display: flex !important;
  align-items: center !important;     /* mantém linha horizontal */
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  padding: 12px 16px !important;
  margin-bottom: 6px !important;
  border: none !important;
  border-radius: 16px !important;
  background: #d9d9d9 !important;
  box-shadow: none !important;
  color: #2b2b2b !important;
  overflow: hidden !important;
}

.results .item:last-child {
  margin-bottom: 0 !important;
}

.results .item:hover {
  background: #d9d9d9 !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.results .item.active {
  background: linear-gradient(180deg, rgba(90,167,255,.32), rgba(90,167,255,.22)) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.results .item.selected {
  background: linear-gradient(180deg, rgba(15,26,46,.96), rgba(16,31,56,.96)) !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.results .item.active .name,
.results .item.active .badge,
.results .item.active .dob {
  color: #0b223d !important;
}

.results .item.selected .name,
.results .item.selected .badge,
.results .item.selected .dob {
  color: #f4f7ff !important;
}

.results .name {
  flex: 1 !important;
  min-width: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #2b2b2b !important;
  line-height: 1.25 !important;
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  word-break: break-word !important;
}

.results .meta {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 2px !important;
  min-width: 80px !important;
}

.results .badge {
  padding: 0 0 16px 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #2b2b2b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}

.results .dob {
  font-size: 11px !important;
  color: #555 !important;
  white-space: nowrap !important;
}

.results .item input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 20px !important;
  height: 20px !important;
  border: 2px solid #5B7C99 !important;
  border-radius: 6px !important;
  background: transparent !important;
  position: relative !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  box-shadow: none !important;
}

.results .item input[type="checkbox"]:checked {
  background: #5B7C99 !important;
  border-color: #5B7C99 !important;
}

.results .item input[type="checkbox"]:checked::after {
  content: "✓" !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: bold !important;
}

.results .empty {
  padding: 12px 16px !important;
  border-radius: 16px !important;
  background: #d9d9d9 !important;
  color: #444 !important;
  font-size: 14px !important;
  text-align: left !important;
}

/* ===== ELIMINA SOBREPOSIÇÃO DO HINT LATERAL SEM QUEBRAR IMPORTAÇÃO ===== */
.sidebar-drop-hint {
  display: none !important;
}

/* ===== estilo ===== */

.row .rcargo { font-weight: 800 !important;  color: var(--bg) !important; }

/* ===== ui-safe-polish ===== */

.dashboard-card{
  overflow:hidden;
  border:1px solid rgba(124,164,255,.14) !important;
  background:
    radial-gradient(circle at top right, rgba(82,150,255,.12), transparent 32%),
    linear-gradient(180deg, rgba(18,26,42,.92), rgba(12,17,29,.95)) !important;
  box-shadow:
    0 16px 36px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.03) !important;
}

.dashboard-card::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg, rgba(90,167,255,.05), transparent 36%, transparent 64%, rgba(90,167,255,.04));
}

.dashboard-card .dash-line,
#dashDynamic{
  position:relative;
  z-index:1;
}

#dashSaved{
  left:auto !important;
  right:18px !important;
  top:16px !important;
  bottom:auto !important;
  min-width:120px !important;
  padding:8px 14px !important;
  border:1px solid rgba(91,124,153,.2) !important;
  border-radius:999px !important;
  background:linear-gradient(135deg, rgba(30,45,61,.96), rgba(44,63,85,.98)) !important;
  color:#f3f5f8 !important;
  font-size:13px !important;
  font-weight:800 !important;
  letter-spacing:.14em !important;
  text-transform:uppercase;
  box-shadow:
    0 12px 24px rgba(8,16,24,.24),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
  opacity:0;
  transform:translateY(-6px) scale(.96);
  transition:
    opacity .24s ease,
    transform .24s ease,
    filter .24s ease !important;
  z-index:3 !important;
}

#dashSaved::before{
  content:"";
  width:8px;
  height:8px;
  margin-right:10px;
  border-radius:999px;
  background:#b7c6d6;
  box-shadow:0 0 0 4px rgba(183,198,214,.14);
}

#dashSaved.show{
  opacity:1 !important;
  transform:translateY(0) scale(1) !important;
}

/* ===== ui-dashboard-clean ===== */

.dashboard-card{
  border:none !important;
  background:transparent !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  overflow:visible !important;
}

.dashboard-card::before,
.dashboard-card::after{
  content:none !important;
  display:none !important;
}

/* ===== ui-operational-polish ===== */

:root{
  --bg:#0c1017;
  --panel:#111822;
  --panel2:#151d29;
  --card:#121a24;
  --stroke:rgba(216,226,239,.12);
  --stroke2:rgba(216,226,239,.18);
  --text:#f6f8fb;
  --muted:#a8b3c2;
  --muted2:#748195;
  --accent:#6B8CAE;
  --accent2:#9ec5ff;
  --danger:#ef5b66;
  --ok:#5B7C99;
  --shadow:none;
  --radius:8px;
  --radius2:8px;
}

body{
  background:linear-gradient(180deg, #0b1018 0%, #0c121b 42%, #0a0d13 100%) !important;
  letter-spacing:0 !important;
}

.app{
  grid-template-columns:280px minmax(0,1fr) !important;
}

.sidebar{
  background:linear-gradient(180deg,#243548 0%,#2C3F55 42%,#354A63 78%,#3A5470 100%) !important;
  border-right:1px solid rgba(216,226,239,.10) !important;
  padding:18px 14px 24px !important;
  gap:16px !important;
  box-shadow:none !important;
}

.sidebar::before{
  display:none !important;
}

.brand{
  background:transparent !important;
  border:0 !important;
  border-bottom:1px solid rgba(216,226,239,.10) !important;
  border-radius:0 !important;
  box-shadow:none !important;
  padding:2px 4px 16px !important;
}

.logo{
  width:40px !important;
  height:40px !important;
}

.brand h1{
  font-size:14px !important;
  letter-spacing:0 !important;
}

.brand .sub{
  font-size:11px !important;
  color:#7e8aa0 !important;
}

.side-section{
  display:flex !important;
  flex-direction:column !important;
  gap:8px !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  padding:0 !important;
}

.side-title{
  font-size:10px !important;
  letter-spacing:.14em !important;
  color:#728095 !important;
  margin:0 0 2px 2px !important;
}

.sidebar button,
.sidebar .btn,
.sidebar .menu-btn{
  margin-bottom:0 !important;
}

.btn{
  min-height:40px !important;
  padding:9px 10px !important;
  border-radius:8px !important;
  border:1px solid rgba(216,226,239,.12) !important;
  background:#131b26 !important;
  box-shadow:none !important;
  font-size:13px !important;
  font-weight:650 !important;
}

.btn:hover{
  background:#182232 !important;
  border-color:rgba(158,197,255,.28) !important;
  transform:translateY(-1px) !important;
}

.btn.primary{
  background:linear-gradient(180deg, #1d426d, #18365b) !important;
  border-color:rgba(79,156,249,.42) !important;
  color:#f9fbff !important;
}

.btn.danger{
  background:#261722 !important;
  border-color:rgba(239,91,102,.34) !important;
  color:#ffe9ec !important;
}

.btn .hint{
  font-size:11px !important;
  color:#8b97a9 !important;
  font-weight:600 !important;
}

.status{
  background:#101720 !important;
  border:1px solid rgba(216,226,239,.10) !important;
  border-radius:8px !important;
  box-shadow:none !important;
  padding:12px !important;
  color:#9eaabd !important;
}

.status .chip{
  font-size:13px !important;
}

.main{
  background:transparent !important;
  padding:20px 22px !important;
}

.topbar{
  display:grid !important;
  grid-template-columns:minmax(360px,1fr) minmax(360px,480px) !important;
  align-items:start !important;
  gap:24px !important;
  margin-bottom:16px !important;
  padding-bottom:16px !important;
  border-bottom:1px solid rgba(216,226,239,.09) !important;
}

.topbar .left{
  flex:none !important;
  min-width:0 !important;
  width:auto !important;
  gap:8px !important;
}

.dashboard-card{
  min-height:122px !important;
  margin:0 !important;
  padding:4px 0 0 !important;
}

.dashboard-card .dash-line:first-of-type{
  padding-left:80px !important;
  margin-top:8px !important;
}

.dashboard-ring-wrap{
  left:0 !important;
  top:6px !important;
  width:62px !important;
  height:62px !important;
}

#dTotal{
  color:#f9fbff !important;
  font-size:44px !important;
  line-height:1 !important;
  text-shadow:none !important;
}

#dashRotator{
  margin-top:10px !important;
  min-height:80px !important;
}

#dashDynamic{
  gap:5px !important;
}

.dash-line-item{
  color:#e6edf6 !important;
  font-size:17px !important;
  line-height:1.2 !important;
  font-weight:750 !important;
  text-shadow:none !important;
}

.dash-line-item .dash-qtd{
  color:#f9fbff !important;
}

.dash-line-item .dash-cargo{
  color:#9ec5ff !important;
}

.subtitle{
  display:none !important;
}

.monthline{
  gap:8px !important;
  margin-top:4px !important;
}

.chip,
.counter{
  min-height:28px !important;
  border-radius:999px !important;
  border:1px solid rgba(216,226,239,.12) !important;
  background:#121a24 !important;
  box-shadow:none !important;
  color:#aeb9c8 !important;
  font-size:12px !important;
  padding:5px 10px !important;
}

.search-card{
  align-self:start !important;
  min-width:0 !important;
  margin-top:2px !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}

.search-card::before,
.search-card::after{
  content:none !important;
  display:none !important;
}

.search-row{
  height:auto !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
}

.search-input{
  height:52px !important;
  border-radius:8px !important;
  border:1px solid #ced8e4 !important;
  background:#F6F4F0 !important;
  box-shadow:none !important;
  color:#0e141d !important;
  font-size:16px !important;
  font-weight:700 !important;
  letter-spacing:0 !important;
  padding:0 18px !important;
}

.search-input::placeholder{
  color:#697588 !important;
}

.search-input:focus{
  border-color:#6B8CAE !important;
  background:#f7faff !important;
  box-shadow:0 0 0 3px rgba(79,156,249,.20) !important;
}

.results{
  top:58px !important;
  left:0 !important;
  right:0 !important;
  max-height:332px !important;
  padding:6px !important;
  border-radius:8px !important;
  border:1px solid #d4dde8 !important;
  background:#f7f9fc !important;
  box-shadow:0 18px 30px rgba(0,0,0,.22) !important;
}

.results .item{
  margin-bottom:4px !important;
  padding:10px 12px !important;
  border:1px solid transparent !important;
  border-radius:6px !important;
  background:transparent !important;
  color:#111827 !important;
}

.results .item:hover,
.results .item.active{
  background:#e6eef9 !important;
  border-color:#c9d8ed !important;
}

.results .item.selected{
  background:#e4eaf1 !important;
  border-color:#b7c6d6 !important;
}

.results .name{
  color:#111827 !important;
  font-size:13px !important;
  font-weight:750 !important;
}

.results .badge{
  background:#E4EAF1 !important;
  border-color:#bdd7fb !important;
  color:#17456d !important;
  font-weight:800 !important;
}

.results .dob{
  color:#64748b !important;
}

.selected-card{
  margin-top:0 !important;
  border-radius:8px !important;
  border:1px solid rgba(216,226,239,.12) !important;
  background:#111821 !important;
  box-shadow:none !important;
  overflow:hidden !important;
}

.selected-card::before{
  content:none !important;
  display:none !important;
}

.selected-head{
  min-height:54px !important;
  padding:13px 16px !important;
  background:#151d28 !important;
  border-bottom:1px solid rgba(216,226,239,.10) !important;
}

.selected-head .h{
  color:#dce5f1 !important;
  font-size:12px !important;
  font-weight:800 !important;
  letter-spacing:.08em !important;
}

#chipResumo{
  background:#1a2432 !important;
  color:#c9d3df !important;
}

#listaSelecionados.selected-body{
  background:#0f151e !important;
  padding:8px !important;
}

.row{
  grid-template-columns:minmax(0,1fr) max-content !important;
  align-items:center !important;
  min-height:42px !important;
  margin-bottom:6px !important;
  padding:9px 12px !important;
  border-radius:6px !important;
  border:1px solid rgba(216,226,239,.08) !important;
  background:#151d27 !important;
  box-shadow:none !important;
}

.row:hover{
  transform:none !important;
  background:#192433 !important;
  border-color:rgba(158,197,255,.22) !important;
}

.row::before{
  display:none !important;
}

.row .rname{
  overflow:hidden !important;
  color:#f5f7fb !important;
  font-size:13px !important;
  font-weight:750 !important;
  text-overflow:ellipsis !important;
  text-shadow:none !important;
  white-space:nowrap !important;
}

.row .rcargo{
  min-width:96px !important;
  max-width:180px !important;
  padding:5px 9px !important;
  border-radius:999px !important;
  background:#d8e9ff !important;
  color:#0e141d !important;
  font-size:11px !important;
  font-weight:800 !important;
  letter-spacing:.06em !important;
  overflow:hidden !important;
  text-align:center !important;
  text-overflow:ellipsis !important;
  text-transform:uppercase !important;
  white-space:nowrap !important;
}

.muted-small{
  color:#8d9aac !important;
  padding:14px 16px !important;
}

#dashSaved{
  right:0 !important;
  top:4px !important;
  min-width:auto !important;
  padding:7px 11px !important;
  border-radius:999px !important;
  border:1px solid rgba(91,124,153,.20) !important;
  background:#1E2D3D !important;
  box-shadow:none !important;
  color:#e4eaf1 !important;
  font-size:11px !important;
  letter-spacing:.08em !important;
}

.overlay{
  left:0 !important;
  width:100% !important;
  inset:0 !important;
}

@media (max-width:1050px){
  .app{
    grid-template-columns:250px minmax(0,1fr) !important;
  }

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

  .search-card{
    width:100% !important;
  }

  .overlay{
    left:0 !important;
    width:100% !important;
    inset:0 !important;
  }

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

  .row .rcargo{
    justify-self:start !important;
    text-align:left !important;
  }
}

/* ===== ui-lightweight-polish ===== */

/* Acabamento visual leve: preserva paleta e funcionamento. */
html{
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
}

body{
  line-height:1.42 !important;
}

.main{
  scrollbar-gutter:stable !important;
}

.sidebar{
  overflow:hidden !important;
  scrollbar-width:thin !important;
}

.sidebar::-webkit-scrollbar,
.main::-webkit-scrollbar,
.selected-body::-webkit-scrollbar,
.results::-webkit-scrollbar{
  width:10px;
}

.sidebar::-webkit-scrollbar-thumb,
.main::-webkit-scrollbar-thumb,
.selected-body::-webkit-scrollbar-thumb,
.results::-webkit-scrollbar-thumb{
  background:var(--stroke2);
  border:3px solid transparent;
  border-radius:999px;
  background-clip:content-box;
}

.brand,
.status,
.selected-card,
.modal .content{
  outline:1px solid rgba(255,255,255,.025) !important;
}

.btn,
.mbtn{
  min-height:42px !important;
  transition:
    background .16s ease,
    border-color .16s ease,
    transform .08s ease,
    box-shadow .16s ease !important;
}

.btn:hover,
.mbtn:hover{
  box-shadow:0 8px 18px rgba(0,0,0,.12) !important;
}

.btn:focus-visible,
.mbtn:focus-visible,
.search-input:focus-visible,
.selected-search-input:focus-visible,
.field input:focus-visible,
.field select:focus-visible,
select:focus-visible,
input:focus-visible{
  outline:2px solid rgba(158,197,255,.72) !important;
  outline-offset:2px !important;
}

.side-section{
  gap:9px !important;
}

.topbar{
  gap:20px !important;
}

.search-input,
.selected-search-input,
.field input,
.field select,
.modal select{
  line-height:1.2 !important;
}

.results{
  backdrop-filter:blur(10px) !important;
}

.results .item{
  min-height:46px !important;
  align-items:center !important;
}

.results .name,
.row .rname{
  letter-spacing:0 !important;
}

.selected-head{
  gap:12px !important;
}

#listaSelecionados.selected-body{
  scrollbar-width:thin !important;
}

.row{
  transition:background .14s ease, border-color .14s ease, transform .08s ease !important;
}

.row:focus-within{
  border-color:rgba(158,197,255,.30) !important;
}

.modal .content{
  max-width:min(620px, calc(100vw - 40px)) !important;
}

.modal .actions{
  gap:10px !important;
}

.field{
  gap:7px !important;
}

.field label{
  line-height:1.25 !important;
}

@media (max-width:900px){
  .main{
    padding:16px !important;
  }

  .topbar{
    gap:14px !important;
  }

  .btn .hint{
    display:none !important;
  }
}

/* ===== Páginas / Ajuda (padrão Financeiro) ===== */
.page{display:none}

/* FORCE: Ajuda nunca na tela principal */
#ajuda.page:not(.active),
#ajuda[hidden]{
  display:none !important;
  visibility:hidden !important;
  pointer-events:none !important;
  position:absolute !important;
  left:-99999px !important;
  width:0 !important;
  height:0 !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
}
#principal .manualRapido,
#principal .manualFluxo,
#principal .manualFluxoGrupo,
#principal .manualFluxoEtapa,
#principal .manualFluxoSeta,
#principal .manualFluxoRamificacao,
#principal .manualLista,
#principal .manualIntro,
#principal .manualDestaque,
#principal .ajudaTopo,
#principal .guiaPagina,
#principal #painelAjuda{
  display:none !important;
}

.page.active{display:block}
#principal.page.active{
  display:flex !important;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
}
#ajuda.page.active{
  display:block !important;
  flex:1 1 0 !important;
  min-height:0 !important;
  max-height:100% !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  padding-bottom:48px;
  -webkit-overflow-scrolling:touch;
}
#ajuda.page.active::-webkit-scrollbar{width:10px}
#ajuda.page.active::-webkit-scrollbar-thumb{background:var(--stroke2);border-radius:999px}
main.main:has(.page.active){
  display:flex !important;
  flex-direction:column !important;
  min-height:0 !important;
  height:100vh !important;
  overflow:hidden !important;
}
.btn.nav-active{border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.18);color:#fff}
.guiaPagina{margin:0 0 16px;padding:12px 16px;border:1px solid #B5D5E8;background:#f5f8ff;border-radius:12px;font-size:14px;line-height:1.55;color:#344054}
.manualPanel{margin-top:0;padding:18px 20px;border:1px solid #eef2f7;border-radius:var(--radius2);background:#fff;box-shadow:var(--shadow)}
.pageAjuda{max-width:980px}
.ajudaTopo{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.ajudaTopo h3{margin:0;font-size:18px;color:var(--text)}
.ajudaAcoes{display:flex;gap:8px;flex-wrap:wrap}
.miniBtn{height:36px;padding:0 14px;border:1px solid var(--line);border-radius:10px;background:#e9eef5;color:#26384d;font-size:13px;font-weight:600;cursor:pointer}
.miniBtn:hover{filter:brightness(.97)}
#btnBaixarManualPdf{background:#4a6a86;color:#fff;border-color:#3d5a73}
.manualIntro{font-size:15px;line-height:1.6;color:#344054;margin:0 0 18px}
.manualDestaque{margin-bottom:20px;padding:16px 18px;border:1px solid #B5D5E8;background:linear-gradient(180deg,#f5f8ff,#fff);border-radius:14px}
.manualDestaque h4,.manualDestaque h5{margin:0 0 10px;font-size:15px;color:var(--brand)}
.manualLista details{border:1px solid var(--line);border-radius:12px;padding:12px 16px;margin-bottom:10px;background:#fafbfd}
.manualLista details[open]{background:#fff;box-shadow:0 2px 8px rgba(16,24,40,.06)}
.manualLista summary{cursor:pointer;font-weight:650;font-size:15px;color:var(--text);list-style-position:outside}
.manualCorpo{margin-top:10px;font-size:14px;line-height:1.65;color:#475467}
.manualCorpo p{margin:0 0 10px}
.manualCorpo ul,.manualCorpo ol{margin:0 0 12px;padding-left:22px}
.manualPassos li{margin-bottom:6px}
.manualDica{display:block;padding:10px 12px;border-radius:10px;background:#e8edf4;border-left:4px solid #5b7c99;margin:10px 0 0;color:#475467}
.manualAviso{display:block;padding:10px 12px;border-radius:10px;background:#fff4ed;border-left:4px solid #f79009;margin:10px 0 0;color:#475467}
.manualCaminho{font-size:15px;padding:8px 12px;background:#f2f4f7;border-radius:8px;color:var(--text)}
.manualMenuLista{list-style:none;padding-left:0}
.manualMenuLista li{padding:8px 0;border-bottom:1px solid var(--stroke)}
.manualMenuLista li:last-child{border-bottom:0}
.manualFluxo{display:flex;flex-direction:column;align-items:stretch;gap:0;margin:16px 0 8px;max-width:640px}
.manualFluxoGrupo{margin:0 0 14px;padding:12px 14px;border:1px dashed #D5CFC4;border-radius:12px;background:#fff}
.manualFluxoGrupo h5{margin:0 0 10px;font-size:14px;color:#4a6a86}
.manualFluxoEtapa{padding:10px 14px;border-radius:10px;background:#E8EDF2;border:1px solid #B7C6D6;font-size:14px;line-height:1.45;color:#243040}
.manualFluxoEtapa b{color:#2C3F55}
.manualFluxoEtapaAlt{background:#e8edf2;border-color:#b7c6d6}
.manualFluxoEtapaLoop{background:#fffbeb;border-color:#fde68a}
.manualFluxoSeta{text-align:center;color:#64748b;font-size:18px;line-height:1;padding:4px 0;font-weight:700}
.manualFluxoRamificacao{font-size:13px;color:#475467;margin:6px 0 0;padding-left:8px;border-left:3px solid #B5D5E8}
.manualSuporteBox{margin:10px 0}
.btnWhatsapp{display:inline-flex;align-items:center;gap:8px;margin:10px 0 6px;padding:12px 18px;border:none;border-radius:10px;background:#5b7c99;color:#fff;font-size:15px;font-weight:700;cursor:pointer;box-shadow:0 2px 8px rgba(91,124,153,.35)}
.btnWhatsapp:hover{background:#4a6a86}
.licencaAviso{display:none;padding:8px 12px;border-radius:10px;background:#fff4e5;border:1px solid #f5c26b;color:#7a4d00;font-size:13px;margin-bottom:8px;line-height:1.45;font-weight:600}
body.licenca-alerta .licencaAviso{display:block}
.alertaOperacional{display:none;padding:8px 12px;border-radius:10px;background:#E8EDF2;border:1px solid #8BBDD9;color:#243040;font-size:13px;margin-bottom:8px;line-height:1.45;font-weight:600}
.alertaOperacional.alerta-warn{background:#fff4e5;border-color:#f5c26b;color:#7a4d00}
.alertaOperacional.alerta-erro{background:#fef2f2;border-color:#fecaca;color:#991b1b}
body.alerta-operacional .alertaOperacional{display:block}
#avisoHomologacaoLogin[hidden]{display:none !important}
#avisoHomologacaoLogin:not([hidden]){
  display:block !important;
  background:#fff4e5;
  border:1px solid #f5c26b;
  color:#7a4d00;
  font-weight:700;
}
#btnUsuariosWeb.menu-alerta-homolog{
  background:#c9a227 !important;
  border-color:#a88612 !important;
  color:#1e2d3d !important;
}
#btnUsuariosWeb.menu-alerta-homolog .hint{
  color:#5a4300 !important;
  font-weight:800 !important;
}
.alertaOperacional.alerta-clickable{cursor:pointer}
.alertaOperacional.alerta-clickable:hover{filter:brightness(.98)}
.alertaOperacional .alerta-link{
  display:inline;
  margin:0;
  padding:0;
  border:0;
  background:transparent;
  color:inherit;
  font:inherit;
  font-weight:800;
  text-decoration:underline;
  text-underline-offset:2px;
  cursor:pointer;
}
.alertaOperacional .alerta-link:hover{opacity:.85}
.op-item-tela.op-modo-atual{background:#e8edf4 !important;border-color:#b7c6d6 !important}
.op-item-tela.op-modo-atual strong{color:#2c3f55 !important;-webkit-text-fill-color:#2c3f55 !important}
.op-item-tela.op-modo-anterior{background:#E6F0F8 !important;border-color:#8BBDD9 !important}
.op-item-tela.op-modo-anterior strong{color:#3D7EA6 !important;-webkit-text-fill-color:#3D7EA6 !important}
.op-item-situacao.op-sit-ok strong{color:#334155 !important}
.op-item-situacao.op-sit-warn{background:#fff7ed !important;border-color:#fdba74 !important;cursor:pointer}
.op-item-situacao.op-sit-warn strong{color:#9a3412 !important;-webkit-text-fill-color:#9a3412 !important}
.op-item-situacao.op-sit-erro{background:#fef2f2 !important;border-color:#fca5a5 !important;cursor:pointer}
.op-item-situacao.op-sit-erro strong{color:#991b1b !important;-webkit-text-fill-color:#991b1b !important}
.op-item-situacao.op-sit-clickable:focus-visible{outline:2px solid #4a6a86;outline-offset:2px}
.op-item-comparativo.op-comparativo-ok strong{color:#3D7EA6 !important;-webkit-text-fill-color:#3D7EA6 !important}
.op-item-comparativo.op-comparativo-vazio strong{color:#94a3b8 !important;-webkit-text-fill-color:#94a3b8 !important}
.op-item-comparativo.op-comparativo-clickable{cursor:pointer}
.op-item-comparativo.op-comparativo-clickable:focus-visible{outline:2px solid #4a6a86;outline-offset:2px}
.incompletosTopo{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
.incompletosLista{display:grid;gap:10px}
.incompletosItem{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border:1px solid #E6E1D8;border-radius:12px;background:#fff}
.incompletosItem button{height:38px;border:0;border-radius:10px;background:#4a6a86;color:#fff;padding:0 14px;font-weight:650;cursor:pointer;white-space:nowrap}
.incompletosItem .nomeLink{border:0;background:transparent;color:#4a6a86;font-weight:700;font-size:15px;cursor:pointer;text-align:left;padding:0}
.incompletosItem .meta{font-size:12px;color:#64748b;margin-top:4px}
.incompletosItem .motivo{font-size:12px;color:#b45309;font-weight:600}
.nav-contexto{margin-bottom:8px;display:inline-flex}
.dash-comparativo{font-size:12px;color:#475467;line-height:1.4}
.assistentePergunta{display:flex;flex-direction:column;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid #e4e7ec}
.assistentePergunta input{height:34px;border:1px solid #E6E1D8;border-radius:8px;padding:0 10px;font-size:13px}
.assistenteSugestao{font-size:12px;color:#344054;margin-top:6px}
.assistenteSugestao li{margin:2px 0}
.securityOverlay,.termoOverlay{position:fixed;inset:0;z-index:2100;background:rgba(27,77,92,.72);display:flex;align-items:center;justify-content:center;padding:20px}
.termoOverlay{z-index:2000}
.overlay-pin{z-index:2200 !important}
.securityOverlay[hidden],.termoOverlay[hidden]{display:none!important}
.securityModal,.termoModal{width:min(640px,100%);max-height:min(92vh,780px);overflow:auto;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 24px 60px rgba(0,0,0,.28);padding:22px 24px;display:flex;flex-direction:column;gap:12px;color:var(--text)}
.securityModal h3,.termoModal h3{margin:0;font-size:22px;color:#2C3F55}
.securityIntro,.termoIntro{margin:0;color:var(--muted);font-size:14px;line-height:1.55}
.securityGrid{display:grid;grid-template-columns:1fr;gap:10px}
.campoForm{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:650;color:var(--muted)}
.campoForm input{height:42px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:#fff;color:var(--text);font-size:14px}
.campoCopiavel{display:flex;gap:8px;align-items:stretch;width:100%}
.campoCopiavel input{flex:1 1 auto;min-width:0}
.btnCopiarCampo{flex:0 0 auto;height:42px;padding:0 12px;white-space:nowrap}
.securityRemember{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);cursor:pointer}
.securityAcoes,.termoAcoes{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.btnAtivar{height:42px;padding:0 18px;border:0;border-radius:12px;background:#4a6a86;color:#fff;font-weight:700;cursor:pointer}
.btnAtivar:hover{filter:brightness(.95)}
.btnPerigo{height:42px;padding:0 18px;border:1px solid #fecaca;border-radius:12px;background:#fee2e2;color:#991b1b;font-weight:650;cursor:pointer}
.termoScroll{flex:1 1 auto;min-height:0;max-height:min(52vh,460px);overflow:auto;border:1px solid var(--line);border-radius:12px;padding:14px 16px;background:#fafbfd}
.termoCheck{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted);cursor:pointer}
body.security-bloqueado,body.termo-bloqueado{overflow:hidden}
/* Sidebar Financeiro — scroll + dev suspenso */
.sidebar{
  flex-shrink:0;
  display:flex;
  flex-direction:column;
  gap:0;
  height:100vh;
  max-height:100vh;
  overflow:hidden;
  padding-bottom:0;
  position:relative;
}
.sidebarScroll{
  display:flex;
  flex-direction:column;
  gap:14px;
  flex:1 1 auto;
  min-height:0;
  overflow-x:hidden;
  overflow-y:auto;
  padding-bottom:12px;
  -webkit-overflow-scrolling:touch;
}
.brandRow{display:flex;align-items:center;gap:10px;width:100%;min-width:0}
.brandText{min-width:0;flex:1}
.brandText h1{font-size:19px;line-height:1.15;margin:0}
.brandText p,.brandText .sub{margin:3px 0 0;font-size:12px;color:#C5D0DC}
.brandImagens{display:flex;align-items:center;gap:10px;flex-shrink:0}
.brandImg[draggable=true]{cursor:grab;touch-action:none;user-select:none}
.brandImg--arrastando{opacity:.55;cursor:grabbing}
.brandImg--sobre{outline:2px dashed rgba(255,255,255,.85);outline-offset:2px}
.brandImg--solo{width:54px;height:54px;object-fit:contain;background:transparent;border-radius:0;padding:0;flex-shrink:0}
.brandImg--pri{width:68px;height:68px;max-width:68px;max-height:68px;object-fit:contain;border-radius:0;flex-shrink:0;background:transparent}
.brandImg--sec{width:54px;height:54px;object-fit:contain;background:transparent;border-radius:0;padding:0;flex-shrink:0}
.sidebarDev{
  position:relative;
  left:auto;
  bottom:auto;
  width:100%;
  z-index:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:6px 4px 4px;
  margin:2px 0 0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  pointer-events:none;
  flex-shrink:0;
}
#devFloat.devBadge{
  display:block;
  width:100%;
  text-align:center;
  margin:0;
  padding:2px 0 0;
  font-size:14px;
  color:#E8EEF4;
  opacity:.95;
}
#acessosPage .acessosWrap{
  overflow:auto;
  max-height:62vh;
  border:1px solid #e6e1d8;
  border-radius:12px;
  background:#fff;
}
#acessosTabela{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  font-size:13px;
  background:#fff;
}
#acessosTabela thead th{
  position:sticky;
  top:0;
  z-index:3;
  background:#f6f9fd;
  padding:8px 10px;
  border-bottom:1px solid #e6e1d8;
  box-shadow:0 1px 0 #e6e1d8;
  white-space:nowrap;
  text-align:left;
}
#acessosTabela thead th.num{
  text-align:center;
}
#configuracoes.page.active,
#unidadesPage.page.active,
#usuariosWebPage.page.active,
#acessosPage.page.active{
  display:block !important;
  flex:1 1 0 !important;
  min-height:0 !important;
  max-height:100% !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  overscroll-behavior:contain;
  padding:24px 24px 48px;
  -webkit-overflow-scrolling:touch;
}
#acessosPage.page.active{
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column;
  padding-bottom:16px;
}
#usuariosWebPage.page.active{
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column;
  padding-bottom:16px;
}
#usuariosWebPage .uwPanel{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
  margin-bottom:0;
}
#usuariosWebPage .uwLayout{
  display:grid;
  grid-template-columns:minmax(260px, 34%) minmax(0, 1fr);
  gap:16px;
  flex:1 1 auto;
  min-height:0;
  align-items:stretch;
}
#usuariosWebPage .uwColLista{
  min-height:0;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  border:1px solid #e6e1d8;
  border-radius:14px;
  padding:10px;
  background:#f7f8fa;
}
#usuariosWebPage .uwColForm{
  min-height:0;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  padding:0 4px 8px 0;
}
#usuariosWebPage .uwColLista h4{
  margin:0 0 8px;
  font-size:14px;
}
#listaUsuariosWeb .incompletoItem{
  padding:8px 10px;
}
#listaUsuariosWeb .incompletoItem .actions{
  margin-top:4px !important;
}
#uwPermissoesBox label{
  flex-direction:row !important;
  align-items:center !important;
  height:auto !important;
  gap:8px;
  padding:8px 10px;
  background:#fafbfc;
  border:1px solid #eef2f7;
  border-radius:10px;
}
#uwPermissoesBox label.full{
  grid-column:1/-1;
}
#uwPermissoesBox input{
  height:auto !important;
  width:auto !important;
  padding:0 !important;
  flex:0 0 auto;
}
@media (max-width:900px){
  #usuariosWebPage.page.active{
    overflow-y:auto !important;
    overflow-x:hidden !important;
  }
  #usuariosWebPage .uwPanel{
    overflow:visible;
    display:block;
    flex:none;
  }
  #usuariosWebPage .uwLayout{
    display:block;
  }
  #usuariosWebPage .uwColLista{
    max-height:min(32vh, 260px);
    margin-bottom:14px;
  }
  #usuariosWebPage .uwColForm{
    overflow:visible;
  }
}
#acessosPage .panel{
  display:flex;
  flex-direction:column;
  flex:1 1 auto;
  min-height:0;
  overflow:hidden;
  margin-bottom:0;
}
#acessosPage .acessosWrap{
  flex:1 1 auto;
  max-height:none;
  min-height:160px;
  overflow:auto;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
  touch-action:pan-x pan-y;
}
#acessosTabela thead th{
  position:-webkit-sticky;
  position:sticky;
}
@media (max-width:760px){
  #acessosPage.page.active{
    overflow-y:auto !important;
    overflow-x:hidden !important;
    padding:12px 12px calc(20px + env(safe-area-inset-bottom, 0px)) !important;
    -webkit-overflow-scrolling:touch;
  }
  #acessosPage .panel{
    overflow:visible;
    display:block;
    flex:none;
    min-height:0;
    padding:14px !important;
  }
  #acessosPage .acessosWrap{
    flex:none;
    max-height:min(70dvh, calc(100dvh - 220px));
    min-height:220px;
    overflow:auto !important;
    -webkit-overflow-scrolling:touch;
  }
  #acessosTabela{
    min-width:760px;
    font-size:12px;
  }
}
.panel{background:#fff;border-radius:20px;padding:20px;box-shadow:var(--shadow);border:1px solid #eef2f7;margin-bottom:18px}
.panel h3{margin:0 0 16px;font-size:20px;color:var(--text)}
.configGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-bottom:16px}
.configGrid label{font-size:13px;color:var(--muted);display:flex;flex-direction:column;gap:6px}
.configGrid label.full{grid-column:1/-1}
.configGrid .field-hint{margin:4px 0 0;font-size:12px;color:var(--muted);font-weight:500}
.configGrid input,.configGrid select{height:42px;border:1px solid var(--line);border-radius:12px;padding:0 12px;background:#fff;color:var(--text);font-size:14px}
.notice{padding:10px 12px;border-radius:12px;background:#E8EDF2;border:1px solid #8BBDD9;color:#243040;font-size:13px;line-height:1.45}
.notice.warn{background:#fff4e5;border-color:#f5c26b;color:#7a4d00}
.notice b{font-weight:700}
.muted{color:var(--muted);font-size:13px}
.incompletosLista{display:flex;flex-direction:column;gap:8px}
.incompletoItem{padding:12px 14px;border:1px solid #eef2f7;border-radius:14px;background:#fafbfc}
.incompletoItem.uw-inativo{border-color:#f5c26b;background:#fff8ee}
.caps-hint{grid-column:1/-1;margin:0}
.cfgImagensPanel{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.cfgImagensIntro{grid-column:1/-1;margin:0 0 4px;font-size:13px;color:var(--muted)}
.cfgLogoOrdemLabel{grid-column:1/-1}
.logoPicker{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.logoPicker img{width:72px;height:72px;object-fit:contain;border:1px solid var(--line);border-radius:12px;background:#fff;padding:4px}
.cfgLogo2Preview--vazio{opacity:.35}
.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:8px}
.actions button{height:42px;border:0;border-radius:12px;background:var(--brand);color:#fff;padding:0 16px;font-weight:650;cursor:pointer}
@media(max-width:900px){.configGrid,.cfgImagensPanel{grid-template-columns:1fr}}

/* Notebook baixo: compactar menu. NÃO aplicar no celular (lá o menu rola). */
@media (max-height: 900px) and (min-width: 761px){
  .sidebar{
    overflow: hidden !important;
  }
  .sidebarScroll{
    gap: 6px !important;
    padding-bottom: 4px !important;
    overflow: hidden !important;
  }
  .sidebar .brand{
    margin: 0 0 2px !important;
    padding-bottom: 2px !important;
  }
  .brandText h1{
    font-size: 15px !important;
    line-height: 1.1 !important;
  }
  .brandText p,
  .brandText .sub{
    font-size: 10px !important;
    margin-top: 1px !important;
  }
  .brandImg--pri{
    width: 44px !important;
    height: 44px !important;
    max-width: 44px !important;
    max-height: 44px !important;
  }
  .brandImg--sec,
  .brandImg--solo{
    width: 36px !important;
    height: 36px !important;
  }
  .side-section{
    gap: 4px !important;
    margin: 0 !important;
  }
  .side-title{
    font-size: 10px !important;
    margin: 2px 0 4px !important;
    letter-spacing: 0.04em !important;
  }
  .sidebar .btn,
  .sidebar button.btn{
    min-height: 0 !important;
    height: auto !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
    line-height: 1.15 !important;
    border-radius: 8px !important;
  }
  .sidebar .btn .hint{
    display: none !important;
  }
  .sidebarDev{
    padding: 2px 0 0 !important;
    margin: 0 !important;
  }
  #devFloat.devBadge,
  .appVersion,
  .strataDevLabel{
    font-size: 12px !important;
  }
  .strataDevLogo,
  .strataDevIcon{
    max-height: none !important;
    width: 38px !important;
    height: 34px !important;
  }
}

@media (max-height: 760px) and (min-width: 761px){
  .sidebarScroll{
    gap: 4px !important;
  }
  .brandText h1{
    font-size: 13px !important;
  }
  .brandImg--pri{
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
  }
  .brandImg--sec,
  .brandImg--solo{
    width: 28px !important;
    height: 28px !important;
  }
  .side-title{
    margin: 1px 0 2px !important;
    font-size: 9px !important;
  }
  .sidebar .btn,
  .sidebar button.btn{
    padding: 3px 6px !important;
    font-size: 11px !important;
  }
  .sidebarDev{
    display: none !important;
  }
}

@media (max-height: 640px) and (min-width: 761px){
  .brandText p,
  .brandText .sub{
    display: none !important;
  }
  .sidebar .btn,
  .sidebar button.btn{
    padding: 2px 5px !important;
    font-size: 10.5px !important;
  }
}

/* ===== modal-mobile-fix-m103 ===== */

html, body{
  max-width:100%;
}
.overlay{
  padding:max(10px, env(safe-area-inset-top, 0px)) max(10px, env(safe-area-inset-right, 0px)) max(10px, env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px)) !important;
  align-items:center !important;
  justify-content:center !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch;
}
.overlay .modal,
.modal{
  width:min(560px, 100%) !important;
  max-width:calc(100vw - 20px) !important;
  max-height:min(92dvh, calc(100dvh - 20px)) !important;
}
.modal .content{
  max-width:100% !important;
  overflow-y:auto !important;
  -webkit-overflow-scrolling:touch;
}
.modal footer{
  flex-wrap:wrap;
  position:sticky;
  bottom:0;
}
.modal footer .mbtn,
.mbtn{
  min-height:48px !important;
  min-width:120px;
}
.field input,
.field select,
.modal input,
.modal select{
  font-size:16px !important;
  min-height:48px !important;
}
@media (max-width:760px){
  .app{
    grid-template-columns:1fr !important;
    height:100dvh !important;
  }
  .sidebar{
    position:fixed !important;
    z-index:90 !important;
    inset:0 auto 0 0 !important;
    width:min(86vw, 320px) !important;
    max-width:86vw !important;
    transform:translateX(-110%);
    transition:transform .2s ease;
  }
  body.sidebar-aberta .sidebar,
  html.sidebar-aberta .sidebar{
    transform:translateX(0);
  }
  .overlay{
    z-index:2400 !important;
    padding:8px !important;
    align-items:flex-end !important;
  }
  .overlay .modal,
  .modal{
    width:100% !important;
    max-width:100% !important;
    max-height:min(94dvh, 100%) !important;
    border-radius:18px 18px 0 0 !important;
    margin:0 !important;
  }
  .modal header h2{
    font-size:13px !important;
  }
  .modal footer{
    justify-content:stretch !important;
    gap:8px !important;
  }
  .modal footer .mbtn{
    flex:1 1 calc(50% - 8px);
    width:auto !important;
  }
  .topbar, .search-card, .selected-card{
    width:100% !important;
    max-width:100% !important;
  }
  .btn{
    min-height:44px !important;
  }
}
@media (max-width:430px){
  .modal footer .mbtn{
    flex:1 1 100%;
  }
}

/* ===== fix-pdf-tela-baixa ===== */

#modalPdfMensalOverlay.overlay{
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
  padding:8px !important;
  box-sizing:border-box !important;
}
#modalPdfMensalOverlay .modal{
  box-sizing:border-box !important;
  width:min(680px, calc(100vw - 16px)) !important;
  max-width:calc(100vw - 16px) !important;
  max-height:calc(100vh - 16px) !important;
  max-height:calc(100dvh - 16px) !important;
  height:auto !important;
  margin:0 !important;
  overflow:hidden !important;
  display:flex !important;
  flex-direction:column !important;
}
#modalPdfMensalOverlay .modal header,
#modalPdfMensalOverlay .modal footer{
  flex:0 0 auto !important;
}
#modalPdfMensalOverlay .modal .content{
  flex:1 1 auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow-x:hidden !important;
  overflow-y:auto !important;
  scrollbar-width:auto !important;
  scrollbar-color:#5B7C99 #e6edf4 !important;
}
#modalPdfMensalOverlay .modal .content::-webkit-scrollbar{
  width:12px !important;
}
#modalPdfMensalOverlay .modal .content::-webkit-scrollbar-thumb{
  background:#5B7C99 !important;
  border-radius:8px !important;
}
#modalPdfMensalOverlay .modal footer{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  gap:8px !important;
  position:static !important;
}
#modalPdfMensalOverlay .modal footer .mbtn{
  width:100% !important;
  flex:0 0 auto !important;
}
#btnPdfMensalComEvo,
#btnPdfMensalSemEvo{
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
}

