:root[data-theme="light"] {
      --accent: #d7a038;
      --background: #fff;
      --surface: #fff;
      --text: #000;
      --muted: #6b7280;
      --border: #e5e7eb;
    }
    :root[data-theme="dark"] {
      --accent: #d7a038;
      --background: #212529;
      --surface: #212529;
      --text: #fff;
      --muted: #9ca3af;
      --border: #3d3e4d;
      /* Força conteúdo claro */
    }

    body {
      margin: 0;
      font-family: "usual", sans-serif;
      background: var(--background);
      color: var(--text);
      display: flex;
      transition: background 0.3s, color 0.3s;
    }

    .navbar-slim {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      height: 56px;
      background: var(--surface);
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 1.5rem;
      z-index: 100;
    }

  /* Logo no topo */
.logo-topo {
    height: 22px;      /* Tamanho perfeito para header */
    width: auto;
    display: block;
    object-fit: contain;
    filter: invert(1); /* Fica branca no dark mode */
}

/* Remove invert no tema claro */
:root[data-theme="dark"] .logo-topo {
    filter: invert(0);
}


    .icon-btn {
      border: none;
      background: transparent;
      color: var(--muted);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 10px;
      cursor: pointer;
      transition: color 0.2s, background 0.2s;
    }
    .icon-btn:hover {
      background: rgba(0, 0, 0, 0.05);
    }

    .sidebar {
      position: fixed;
      top: 56px;
      left: 0;
      width: 220px;
      height: calc(100vh - 56px);
      background: var(--surface);
      border-right: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: width 0.3s;
    }

    .menu {
      padding: 1rem;
    }

    .menu-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 10px 14px;
      border-radius: 10px;
      color: var(--text);
      text-decoration: none;
      font-weight: 600;
      font-size: 1rem;
      cursor: pointer;
      transition: background 0.25s, color 0.25s;
    }

    .menu-item i:first-child {
      margin-right: 8px;
      color: var(--muted);
    }

    .menu-item .arrow {
      opacity: 0;
      color: var(--muted);
      transition: opacity 0.2s;
    }

    .sidebar:not(.collapsed) .menu-item .arrow {
      opacity: 1;
    }

    .menu-item:hover {
      background: rgba(215, 160, 56, 0.07);
      color: var(--accent);
    }

    .submenu {
      display: none;
      flex-direction: column;
      margin-left: 1rem;
      padding-left: 0.75rem;
    }

    .menu-item.open + .submenu {
      display: flex;
    }

    /* NÍVEIS DE HIERARQUIA */
    /* Nível 1 */
    .nivel-1 span {
      font-size: 1.1rem;
      font-weight: 500 !important;
    }

    /* Nível 2 */
    .nivel-2 span,
    .submenu > a.nivel-2 {
      font-size: 0.95rem;
      font-weight: 300 !important;
      color: var(--text);
    }

    /* Nível 2 como link direto */
    .menu > .submenu > .menu-item,
    .menu > .submenu > a {
      font-weight: 300;
      font-size: 0.95rem;
      color: var(--text);
      padding: 8px 12px;
      border-radius: 10px;
    }

    .menu > .submenu > a {
      display: block;
    }

    .menu > .submenu > a:hover {
      background: rgba(215, 160, 56, 0.07);
      color: var(--accent);
    }

    /* Nível 3 */
    .nivel-3 {
      font-size: 0.85rem !important;
      color: var(--muted) !important;
      padding-left: 0 !important;
    }

    .menu .submenu .submenu a {
      color: var(--muted);
      text-decoration: none;
      padding: 4px 0;
      font-size: 0.85rem;
    }

    .menu .submenu .submenu a:hover {
      background: rgba(215, 160, 56, 0.07);
      color: var(--accent) !important;
      border-radius: 6px;
      padding: 4px 6px;
    }

    /* Nível 4 */
    .nivel-4 {
      font-size: 0.78rem !important;
      color: var(--muted) !important;
      padding-left: 1rem !important;
    }

    .menu .submenu .submenu .submenu a {
      font-size: 0.78rem;
      padding-left: 1rem;
    }
    .menu-item.static {
    cursor: default;
    }

    .menu-item.static .arrow {
        display: none;
    }


    .sidebar-footer {
      padding: 1rem;
      border-top: 1px solid var(--border);
      text-align: center;
    }

    .toggle-btn {
      background: transparent;
      border: none;
      color: var(--muted);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      font-size: 0.9rem;
      transition: color 0.25s;
    }

    .toggle-btn:hover {
      color: var(--accent);
    }

    .sidebar.collapsed {
      width: 72px;
    }

    .sidebar.collapsed .menu-item span,
    .sidebar.collapsed .submenu,
    .sidebar.collapsed .toggle-btn span {
      display: none;
    }

    main.content {
      margin-top: 56px;
      margin-left: 220px;
      padding: 0;
      transition: margin-left 0.3s;
      flex: 1; /* garante que o conteúdo ocupe toda a largura disponível */
    }

    body.sidebar-collapsed main.content {
      margin-left: 72px;
    }

    /* BOTÃO WHATSAPP */
    .whatsapp-btn {
      position: fixed;
      bottom: 24px;
      right: 24px;
      background-color: #25d366;
      color: white;
      border-radius: 50%;
      width: 56px;
      height: 56px;
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
      font-size: 26px;
      cursor: pointer;
      z-index: 200;
      transition: transform 0.3s ease, background-color 0.3s ease;
    }

    .whatsapp-btn:hover {
      transform: scale(1.1);
      background-color: #1ebe57;
    }

    .whatsapp-popup {
      position: fixed;
      bottom: 90px;
      right: 24px;
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: 12px;
      box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
      padding: 1rem;
      width: 260px;
      display: none;
      flex-direction: column;
      gap: 0.5rem;
      animation: fade 0.3s ease;
    }

    .whatsapp-popup h6 {
      margin: 0;
      font-size: 0.95rem;
      font-weight: 600;
    }

    .whatsapp-popup p {
      margin: 0;
      font-size: 0.85rem;
      color: var(--muted);
    }

    .whatsapp-popup a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      background-color: #25d366;
      color: white;
      text-decoration: none;
      border-radius: 8px;
      padding: 0.4rem 0.75rem;
      font-size: 0.9rem;
      font-weight: 500;
    }

    .whatsapp-popup a:hover {
      background-color: #1ebe57;
    }

    @keyframes fade {
      from {
        opacity: 0;
        transform: translateY(5px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  
    /* ===========================================
       ÁREA DE CONTEÚDO – SEMPRE CLARA
       =========================================== */

    .content-body {
      background: #E6E7E7 !important;   /* Sempre claro */
      color: #000 !important;           /* Texto sempre escuro */
      padding: 2rem;
      min-height: calc(100vh - 56px - 56px);
      width: 100%;                      /* ocupa toda a área do main */
      box-sizing: border-box;
    }

    /* Evita que o dark mode mude essa área */
    :root[data-theme="dark"] .content-body {
      background: #E6E7E7 !important;
      color: #000 !important;
    }



/* Remove TODOS os cantos arredondados */
* {
    border-radius: 0 !important;
}

/* Responsividade geral */
body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding: 0;
}

/* NAVBAR */
.navbar-slim {
    height: 56px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.2rem;
    flex-shrink: 0;
}

/* SIDEBAR */
.sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    height: calc(100vh - 56px);
    width: 220px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow-y: auto;
    transition: all .2s;
}

.sidebar.collapsed {
    width: 70px;
}

/* MENU */
.menu-item {
    padding: 10px 14px;
    cursor: pointer;
}

/* MAIN */
main.content {
    margin-top: 56px;
    margin-left: 220px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    transition: margin-left .2s;
}

body.sidebar-collapsed main.content {
    margin-left: 70px;
}

/* Área de conteúdo sempre clara */
.content-body {
    background: #EBEBEB !important;
    color: #222 !important;
    width: 100%;
    padding: 2rem;
}

/* HEADER DO CONTEÚDO */
.content-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: .7rem 2rem;
}

/* Breadcrumb */
#breadcrumb {
    font-size: .85rem;
    color: var(--muted);
}

/* ===== RESPONSIVIDADE ===== */

@media (max-width: 992px) {

    .sidebar {
        transform: translateX(-220px);
        z-index: 999;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    main.content {
       margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }

    #mobileMenuToggle {
        display: inline-flex !important;
    }
}

#mobileMenuToggle {
    display: none;
    margin-right: .7rem;
}

/* ===============================
   RESPONSIVIDADE MOBILE
   =============================== */

@media (max-width: 992px) {

  /* Sidebar escondida no mobile */
  .sidebar {
    transform: translateX(-220px);
    transition: transform 0.25s ease-in-out;
    z-index: 999;
  }

  /* Quando ativa — aparece */
  .sidebar.open {
    transform: translateX(0);
  }

 
  /* Botão hamburguer aparece */
  #mobileMenuToggle {
    display: inline-flex !important;
  }
}

/* Inicialmente oculto (desktop) */
#mobileMenuToggle {
  display: none;
}
@media (max-width: 992px) {
  .sidebar {
    transform: translateX(-230px);
    transition: transform 0.3s ease;
  }
  .sidebar.open {
    transform: translateX(0);
  }
}

h1, h2, h3, h4, h5, h6 {
    letter-spacing: 3px; /* Espaçamento entre letras */
    text-transform: uppercase;
    font-style: normal;
}
p, tr, th, td{
  font-size: 12px;
  font-style: normal;
}
table td, table th {
    vertical-align: middle !important;
}
table td, table th {
    white-space: nowrap;
}
.form-control span{
  font-size: 12px;
  font-style: normal;
}
.filial-col {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.filial-wrapper {
    display: flex;
    flex-direction: column;
    line-height: 1.0;
}

.filial-cod {
    font-size: 0.70rem;
    color: #6b7280;
    font-weight: 400;
}

.filial-nome {
    font-size: 1rem;
    font-weight: 700;
}

.card {
    border: none;
}

/* ============================================================
   LN — CORREÇÃO COMPLETA DO DATERANGEPICKER
   Azul LN: #0d6efd
   ============================================================ */

/* ----- Área principal ----- */
.daterangepicker {
    background: #fff !important;
    border: 1px solid #ccc !important;
    color: #000 !important;
}

/* ----- Dias, números, textos ----- */
.daterangepicker td,
.daterangepicker th,
.daterangepicker .calendar-table td,
.daterangepicker .calendar-table th {
    color: #000 !important;   /* números sempre pretos */
}

/* ----- Dias selecionados ----- */
.daterangepicker td.active,
.daterangepicker td.active:hover {
    background: #0d6efd !important;
    color: #fff !important;
}

/* ----- Dias no hover ----- */
.daterangepicker td.available:hover {
    background: rgba(13, 110, 253, 0.1) !important;
    color: #000 !important;
}

/* ----- Range selecionado (quando arrasta) ----- */
.daterangepicker td.in-range {
    background: rgba(13, 110, 253, 0.12) !important;
    color: #000 !important;
}

/* ----- Lateral (ranges rápidos) ----- */
.daterangepicker .ranges li {
    background: #fff !important;
    color: #000 !important;
    border-radius: 0 !important;
}

.daterangepicker .ranges li:hover,
.daterangepicker .ranges li.active {
    background: #0d6efd !important;  /* azul LN */
    color: #fff !important;
}

/* ----- Header do calendário (nomes de meses) ----- */
.daterangepicker .calendar-table .month {
    color: #000 !important;
    font-weight: 600 !important;
}

/* ----- Botões inferiores ----- */
.daterangepicker .drp-buttons {
    background: #fff !important;
    border-top: 1px solid #ddd !important;
}

/* TEXTO DO RANGE SELECIONADO NO RODAPÉ */
.daterangepicker .drp-selected {
    color: #000 !important;
    font-weight: 500 !important;
}

/* BOTÃO CANCELAR */
.daterangepicker .cancelBtn {
    background: #fff !important;
    color: #000 !important;
    border: 1px solid #ccc !important;
}

/* BOTÃO APLICAR */
.daterangepicker .applyBtn {
    background: #0d6efd !important;   /* azul LN */
    border-color: #0d6efd !important;
    color: #fff !important;
}

/* ----- Setas de navegação ( < > ) ----- */
.daterangepicker .prev span,
.daterangepicker .next span {
    border-color: #000 !important;
}

/* ----- Fundo dos dias desabilitados ----- */
.daterangepicker td.off {
    color: #999 !important;
    background: #f8f8f8 !important;
}

/* ----- Correção extra: remover efeitos brancos ----- */
.daterangepicker .calendar-table {
    background: #fff !important;
}
/* Inputs de modal com cantos retos */
.modal-content .form-control,
.modal-content .form-select {
    border-radius: 0 !important;
}

/* Botões retos */
.modal-content .btn {
    border-radius: 0 !important;
}

/* Remove arredondamento do modal */
.modal-content {
    border-radius: 0 !important;
}
/* ============================
   BASE LIMPA PARA SELECT2 TAGS
   ============================ */


/* TAG — inverter ordem: X antes do texto */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: #f3f4f7 !important;
    border: 1px solid #d0d3d6 !important;
   
    padding: 3px 10px 3px 26px !important; /* espaço para o X à esquerda */
    font-size: 14px !important;
    color: #333 !important;

    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;

    position: relative !important;
    line-height: 16px !important;
    height: 32px !important;
}

/* Colocar o X à ESQUERDA */
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    position: absolute !important;
    left: 8px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;

    font-size: 14px !important;
    font-weight: bold !important;
    color: #666 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
}


.modal-footer{
  border-top: none; 
  padding: 1.2rem 2rem;
}

/* ===============================================
   FREEZE TABLE LN – Cabeçalho e duas colunas fixas
   =============================================== */

.table-wrapper-freeze {
    max-height: 820px;            /* altura da área scroll */
    overflow: auto;               /* ativa scroll vertical e horizontal */
    position: relative;
    background: #fff;
    border: 1px solid #e5e7eb;
}

/* Tabela com freeze */
.freeze-table {
    border-collapse: separate !important;
    border-spacing: 0;
}

/* Cabeçalho fixo */
.freeze-table thead th {
    position: sticky;
    top: 0;
    background: #1e1e1e !important;
    color: #fff !important;
    z-index: 10;
    border-bottom: 2px solid #000 !important;
}

/* Primeira coluna fixa */
.freeze-table td:nth-child(1),
.freeze-table th:nth-child(1) {
    position: sticky;
    left: 0;
    background: #fff;
    z-index: 15;
}

/* Segunda coluna fixa */
.freeze-table td:nth-child(2),
.freeze-table th:nth-child(2) {
    position: sticky;
    left: 35px; /* largura da coluna 1 */
    background: #fff;
    z-index: 14;
}

/* Borda correta das colunas fixas */
.freeze-table td,
.freeze-table th {
    white-space: nowrap;
    border-right: 1px solid #ddd;
}

/* ============================
   MOBILE – Otimização Automática
   ============================ */
@media (max-width: 768px) {
.content-body {
        padding: 0.6rem !important; /* reduz e aproxima das bordas */
    }

    .content-header {
        padding: 0.5rem 0.8rem !important; /* topo também mais estreito */
    }

    main.content {
        padding: 0 !important;
        margin-left: 0 !important; /* garante que o sidebar oculto não cria margem */
        margin-right: 0 !important;
        width: 100% !important;
    }

    /* Container da tabela congelada */
    .table-wrapper-freeze {
        max-height: 650px !important;
        overflow: auto !important;
        border: 1px solid #ddd;
        border-radius: 4px;
        -webkit-overflow-scrolling: touch;
        margin: 0 !important;
        border-left: 0 !important;
        border-right: 0 !important;
    }

    /* Ajuste geral da tabela */
    .freeze-table td,
    .freeze-table th {
        font-size: 8.5px !important;
        padding: 3px 4px !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    /* COLUNA 1 — Botão + */
    .freeze-table th:nth-child(1),
    .freeze-table td:nth-child(1) {
        width: 22px !important;
        min-width: 22px !important;
        max-width: 22px !important;
        left: 0 !important;
        text-align: center !important;
    }

    /* COLUNA 2 — Filial */
    .freeze-table th:nth-child(2),
    .freeze-table td:nth-child(2) {
        width: 78px !important;
        min-width: 78px !important;
        max-width: 78px !important;
        left: 22px !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.0 !important;
    }

    /* Título da coluna 2 */
    .freeze-table th:nth-child(2) span {
        font-size: 7.5px !important;
        font-weight: 600 !important;
    }

    /* Filial — nome */
    .filial-nome {
        font-size: 10px !important;
        font-weight: 600 !important;
        line-height: 1.1 !important;
        white-space: normal !important;
        word-break: break-word !important;
    }

    /* Filial — código */
    .filial-cod {
        font-size: 8px !important;
        font-weight: 400 !important;
    }

    /* Ajuste wrapper */
    .filial-wrapper {
        line-height: 1 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Linhas mais compactas */
    .freeze-table tr {
        height: auto !important;
    }

    .freeze-icon {
        font-size: 12px !important;
        color: #888 !important;
        margin-top: 2px !important;
    }
    .content-body {
        padding: 0.6rem !important; /* reduz e aproxima das bordas */
    }
}

/* ============================
   Ícone + (Desktop)
   ============================ */
.freeze-icon {
    font-size: 18px;
    color: #bfbfbf;
}

/*=================================
    campos select com filtro
=================================== */
    .select2-container {
        width: 100% !important; /* Define a largura para 100% do contêiner pai */
    }
        .select2-container .select2-selection--single {
            height: calc(2.25rem + 2px); /* Ajuste aqui para a altura desejada */
            border-radius: 0; /* Cantos retos */
            border: 1px solid #ced4da; /* Borda padrão */
            padding: 1.75rem 0.50rem; /* Espaçamento interno */
            box-sizing: border-box;
        }
        .select2-container--default .select2-selection--single .select2-selection__rendered {
            line-height: calc(2.25rem); /* Ajuste para alinhar o texto verticalmente */
        }
        .select2-container--default .select2-selection--single .select2-selection__arrow {
            height: calc(2.25rem); /* Ajuste para a altura do botão da seta */
        }
        .form-floating > .select2-container--default .select2-selection--single {
            padding: 0.375rem 0.75rem; /* Ajuste o espaçamento para a label flutuante */
            height: auto; /* Para garantir que a altura seja ajustável */
        }
        .form-floating > .select2-container--default.select2-container--focus .select2-selection--single {
            border-color: #86b7fe;
            outline: 0;
            box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
        }
        .form-floating > label {
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            padding: 0.625rem 0.75rem; /* Ajuste do padding para a label */
            pointer-events: none;
            border: 1px solid transparent;
            transform-origin: 0 0;
            transition: opacity .1s ease-in-out, transform .1s ease-in-out;
        }
        .form-floating > .select2-container--default.select2-container--open .select2-selection--single,
        .form-floating > .select2-container--default.select2-container--focus .select2-selection--single {
            padding-top: 1.25rem;
            padding-bottom: 0.125rem;
        }
        .form-floating > .select2-container--default.select2-container--open + label,
        .form-floating > .select2-container--default.select2-container--focus + label {
            opacity: .65;
            transform: scale(.85) translateY(-.5rem) translateX(.15rem);
        }
        .form-floating > .select2-container--default .select2-selection--single .select2-selection__rendered {
            margin-top: 1rem; /* Espaço para que o texto não fique sob a label */
        }

   /* =====================================================
   LN – MENU FINAL (TIPOGRAFIA + ÍCONES + COLLAPSED)
   ===================================================== */

/* Isola o menu de regras globais */
.sidebar,
.sidebar * {
    letter-spacing: normal !important;
    text-transform: none !important;
}

/* Item base */
.menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    padding: 7px 12px;
}

/* Container interno (ícone + texto) */
.menu-item > div {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

/* ÍCONE */
.menu-item > div i {
    font-size: 18px;              /* tamanho ideal */
    flex-shrink: 0;
    color: var(--muted);
    transition: color .2s ease;
}

/* TEXTO – NÍVEL 1 (módulos) */
.menu-item.nivel-1 span {
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* TEXTO – NÍVEL 2 */
.menu .submenu > a.nivel-2,
.menu .submenu > .menu-item > span {
    font-size: 0.76rem;
    font-weight: 400;
}

/* TEXTO – NÍVEL 3 */
.menu .submenu .submenu a.nivel-3 {
    font-size: 0.70rem;
    font-weight: 400;
}

/* Hover */
.menu-item:hover {
    background: rgba(215, 160, 56, 0.07);
}

.menu-item:hover > div i {
    color: var(--accent);
}

/* Remove scroll horizontal */
.sidebar {
    overflow-x: hidden;
}

/* =====================================================
   SIDEBAR RECOLHIDA – CENTRALIZAÇÃO PERFEITA
   ===================================================== */

.sidebar.collapsed .menu-item {
    justify-content: center;
    padding: 0;
}

.sidebar.collapsed .menu-item > div {
    justify-content: center;
    width: 100%;
}

.sidebar.collapsed .menu-item > div span {
    display: none;
}

.sidebar.collapsed .menu-item > div i {
    margin: 0;
    font-size: 19px; /* ícone ganha destaque */
}

/* Remove seta no collapsed */
.sidebar.collapsed .menu-item .arrow {
    display: none;
}
.card {
    border: 1px solid #e5e7eb;
    background: #fff;
}

.card h5 {
    letter-spacing: 2px;
    font-size: 0.95rem;
    font-weight: 600;
}

.card a {
    color: #333;
}

.card a:hover {
    color: var(--accent);
    text-decoration: underline;
}
/* =========================
   BREADCRUMB
========================= */
.breadcrumb-ln {
    margin-top: 4px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

/* Links */
.breadcrumb-ln a {
    color: var(--text);           /* cinza claro */
    text-decoration: none;
}

.breadcrumb-ln a:hover {
    text-decoration: underline;
}

/* Página atual */
.breadcrumb-ln span {
          /* branco do título */
    font-weight: 500;
}

/* Separador / */
.breadcrumb-ln .sep {
           /* MESMA cor do link */
    margin: 0 8px;
    font-weight: 600;
    opacity: 0.85;            /* deixa mais visível sem pesar */
}
/* HEADER */
.content-header {
    padding: 16px 20px;
   border: none;
   
}

/* Linha do título + estrela */
.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Título */
.header-main h3 {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 500;
   
    letter-spacing: 0.04em;
}

/* Botão de favorito */
.btn-fav {
    background: none;
    border: none;
   color: var(--text);   
    font-size: 1.3rem;
    cursor: pointer;
    
}

.btn-fav:hover {
   color: var(--text);   
}

.btn-fav.ativo {
    color: var(--text);   
}

.btn-fav.ativo i {
    color: var(--text);   
}
/* Animação do ícone do botão */
#toggleSidebar i {
  transition: transform 0.25s ease;
}

/* Quando sidebar estiver recolhida */
body.sidebar-collapsed #toggleSidebar i {
  transform: rotate(180deg);
}
/* ==================================================
   NAVBAR — DESKTOP vs MOBILE (LN FINAL)
================================================== */

/* ===== DESKTOP (NADA MUDA) ===== */
@media (min-width: 992px) {
  .navbar-slim {
    display: flex;
    justify-content: space-between;
  }

  .brand {
    position: static;
    transform: none;
  }

  .nav-actions {
    display: flex;
    gap: 6px;
  }

  #mobileMenuToggle {
    display: none !important;
  }
}

/* ===== MOBILE ===== */
@media (max-width: 991px) {

  .navbar-slim {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 52px;
    padding: 0 0.6rem;
  }

  /* LOGO CENTRAL */
  .brand {
    grid-column: 2;
    justify-self: center;
  }

  .logo-topo {
    height: 22px;
  }

  /* AÇÕES À DIREITA */
  .nav-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 2px;
  }

  /* ÍCONES COMPACTOS */
  .icon-btn {
    width: 32px;
    height: 32px;
  }

  .icon-btn i {
    font-size: 1.15rem;
  }

  /* HAMBURGUER À ESQUERDA */
  #mobileMenuToggle {
    display: inline-flex !important;
    grid-column: 1;
    justify-self: start;
  }
}
/* =========================================
   LOGO — AJUSTE FINO PARA MOBILE
========================================= */

@media (max-width: 768px) {

  /* Logo menor no mobile */
  .logo-topo {
    height: 18px !important;
  }

  /* Ícones levemente mais compactos */
  .icon-btn {
    width: 30px;
    height: 30px;
  }

  .icon-btn i {
    font-size: 1.05rem;
  }

}

/* ===============================
   USER DROPDOWN (NAVBAR)
================================ */

.user-dropdown {
  position: relative;
}

/* Menu suspenso */
.user-menu {
  position: absolute;
  top: 42px;
  right: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  display: none;
  flex-direction: column;
  z-index: 9999;
}

/* Itens */
.user-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

/* Hover */
.user-menu a:hover {
  background: rgba(215,160,56,0.08);
  color: var(--accent);
}

/* Logout destaque sutil */
.user-menu a.logout {
  border-top: 1px solid var(--border);
}

/* Ícones */
.user-menu i {
  font-size: 1rem;
}

/* Ativo */
.user-dropdown.open .user-menu {
  display: flex;
}

/* Mobile ajuste fino */
@media (max-width: 768px) {
  .user-menu {
    top: 38px;
  }
}
/* =========================
   BOTÕES LN – NORMALIZAÇÃO
========================= */

/* <a> que é botão */
a.btn {
    text-decoration: none !important;
    font-weight: 500;
}

/* Botão preto sólido */
a.btn-dark {
    background-color: #000 !important;
    color: #fff !important;
    border-color: #000 !important;
}

a.btn-dark:hover {
    background-color: #111 !important;
    color: #fff !important;
}

/* Botão preto outline */
a.btn-outline-dark {
    background: transparent !important;
    color: #000 !important;
    border: 1px solid #000 !important;
}

a.btn-outline-dark:hover {
    background: #000 !important;
    color: #fff !important;
}
