/* ==========================================================================
   Painel administrativo — Guia Vamos Lá
   Carregado depois do Bootstrap: sobrescreve as classes dele com o visual
   do redesign (menu escuro, conteúdo claro, destaque verde-limão do logo).
   ========================================================================== */

:root {
    --adm-ink: #0D0E0B;          /* menu lateral */
    --adm-ink-2: #1E2217;        /* item ativo do menu */
    --adm-ink-line: #23261E;
    --adm-bg: #F5F6F1;           /* fundo do conteúdo */
    --adm-surface: #FFFFFF;
    --adm-surface-2: #FAFBF7;
    --adm-line: #E3E5DC;
    --adm-line-soft: #EEF0E8;
    --adm-input-line: #D6D9CC;
    --adm-text: #15170F;
    --adm-text-2: #3D4136;
    --adm-muted: #5E6356;
    --adm-accent: #BCD444;       /* verde-limão do logo; texto sobre ele é escuro */
    --adm-accent-strong: #6E8016;
    --adm-link: #4A5A0A;
    --adm-chip: #EEF3D2;
    --adm-danger: #B42318;
    --adm-sidebar-w: 248px;
    --adm-topbar-h: 60px;

    --bs-body-font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-body-bg: var(--adm-bg);
    --bs-body-color: var(--adm-text);
    --bs-border-color: var(--adm-line);
    --bs-link-color: var(--adm-link);
    --bs-link-color-rgb: 74, 90, 10;
    --bs-link-hover-color: #2F3A05;
    --bs-link-hover-color-rgb: 47, 58, 5;
    --bs-secondary-color: var(--adm-muted);
    --bs-primary: var(--adm-link);
    --bs-primary-rgb: 74, 90, 10;
}

body {
    font-family: var(--bs-body-font-family);
    background: var(--adm-bg);
    color: var(--adm-text);
    -webkit-font-smoothing: antialiased;
}

code { color: #8A1C12; }
.text-muted { color: var(--adm-muted) !important; }
.text-primary { color: var(--adm-link) !important; }

/* ── Menu lateral ──────────────────────────────────────────────────────── */
.adm-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--adm-sidebar-w);
    z-index: 1030;
    background: var(--adm-ink);
    color: #F2F3EE;
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
}
.adm-sidebar-logo { display: block; padding: 4px 10px 4px; line-height: 0; }
.adm-sidebar-logo img { height: 42px; width: auto; }

.adm-nav { display: flex; flex-direction: column; gap: 2px; }
.adm-nav-grupo {
    font-family: 'Space Mono', ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8E9384;
    padding: 18px 12px 8px;
}
.adm-nav a,
.adm-sidebar-rodape a.adm-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 10px;
    color: #B9BEAF;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color .15s, color .15s;
}
.adm-nav a i,
.adm-sidebar-rodape a i { width: 20px; text-align: center; font-size: 15px; }
.adm-nav a:hover,
.adm-sidebar-rodape a.adm-nav-link:hover { background: #171A12; color: #F2F3EE; }
.adm-nav a.ativo {
    background: var(--adm-ink-2);
    color: #F2F3EE;
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--adm-accent);
}
.adm-nav a.ativo i { color: var(--adm-accent); }

.adm-sidebar-rodape {
    margin-top: auto;
    border-top: 1px solid var(--adm-ink-line);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.adm-usuario { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.adm-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--adm-accent); color: var(--adm-ink);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.adm-usuario-nome { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: #F2F3EE;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-usuario-papel { display: block; font-size: 12px; font-weight: 400; color: #9CA192; }
.adm-sair-form { margin: 0; display: flex; }
.adm-sair {
    width: 44px; height: 44px; border-radius: 10px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #B9BEAF; text-decoration: none; background: none; border: 0; cursor: pointer;
}
.adm-sair:hover { background: #171A12; color: #F2F3EE; }

/* Barra superior: só no celular, para abrir o menu */
.adm-topbar { display: none; }
.adm-overlay { display: none; }

/* ── Área de conteúdo ──────────────────────────────────────────────────── */
.adm-main {
    margin-left: var(--adm-sidebar-w);
    padding: 32px 40px 48px;
    min-height: 100vh;
    min-width: 0;
}

.adm-page-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
    margin-bottom: 24px;
}
.adm-page-head h1 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.adm-eyebrow { font-size: 14px; color: var(--adm-muted); margin-bottom: 6px; }
.adm-eyebrow a { text-decoration: none; }
.adm-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.adm-section-title { margin: 0; font-size: 17px; font-weight: 700; }
.adm-section-desc { margin: 4px 0 0; font-size: 14px; color: var(--adm-muted); }

/* ── Cards ─────────────────────────────────────────────────────────────── */
.adm-main .card,
.adm-card {
    background: var(--adm-surface);
    border: 1px solid var(--adm-line) !important;
    border-radius: 16px;
    box-shadow: none !important;
    overflow: hidden;
}
.adm-main .card-header {
    background: var(--adm-surface) !important;
    border-bottom: 1px solid var(--adm-line);
    padding: 18px 22px;
    font-size: 17px;
    font-weight: 700 !important;
}
.adm-main .card-body { padding: 22px; }
.adm-main .card-body.p-0 { padding: 0; }
.adm-card-pad { padding: 24px; }

/* Indicadores (dashboard, importação) */
.adm-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.adm-kpi {
    background: var(--adm-surface);
    border: 1px solid var(--adm-line);
    border-radius: 16px;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-decoration: none;
    color: var(--adm-text);
}
a.adm-kpi:hover { border-color: #C9CDBC; color: var(--adm-text); }
.adm-kpi-rotulo { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--adm-muted); font-weight: 500; }
.adm-kpi-icone {
    width: 32px; height: 32px; border-radius: 9px;
    background: var(--adm-chip); color: var(--adm-link);
    display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.adm-kpi-valor { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

.adm-resumo { padding: 16px 18px; border-radius: 14px; }
.adm-resumo-valor { font-size: 28px; font-weight: 700; line-height: 1.1; }
.adm-resumo-rotulo { font-size: 14px; font-weight: 600; }
.adm-resumo.ok { background: #E6F4EA; color: #1E5E25; }
.adm-resumo.neutro { background: #F0F1EA; color: var(--adm-text-2); }
.adm-resumo.aviso { background: #FFF4D6; color: #7A5200; }
.adm-resumo.erro { background: #FDECEA; color: #8A1C12; }

/* ── Botões ────────────────────────────────────────────────────────────── */
.btn {
    --bs-btn-font-family: var(--bs-body-font-family);
    --bs-btn-font-weight: 600;
    --bs-btn-font-size: 14px;
    --bs-btn-border-radius: 10px;
    --bs-btn-padding-x: 18px;
    --bs-btn-padding-y: 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn i { margin: 0 !important; }
.btn-sm {
    --bs-btn-border-radius: 9px;
    --bs-btn-padding-x: 12px;
    --bs-btn-font-size: 13px;
    min-height: 36px;
}
.btn-primary,
.btn-success {
    --bs-btn-bg: var(--adm-accent);
    --bs-btn-border-color: var(--adm-accent);
    --bs-btn-color: var(--adm-ink);
    --bs-btn-hover-bg: #AFC738;
    --bs-btn-hover-border-color: #AFC738;
    --bs-btn-hover-color: var(--adm-ink);
    --bs-btn-active-bg: #A2B930;
    --bs-btn-active-border-color: #A2B930;
    --bs-btn-active-color: var(--adm-ink);
    --bs-btn-disabled-bg: #E3E5DC;
    --bs-btn-disabled-border-color: #E3E5DC;
    --bs-btn-disabled-color: #6B7062;
    --bs-btn-disabled-opacity: 1;
    --bs-btn-focus-shadow-rgb: 110, 128, 22;
    font-weight: 700;
}
.btn-outline-primary,
.btn-outline-secondary {
    --bs-btn-bg: var(--adm-surface);
    --bs-btn-border-color: var(--adm-input-line);
    --bs-btn-color: var(--adm-text);
    --bs-btn-hover-bg: #F0F1EA;
    --bs-btn-hover-border-color: #C9CDBC;
    --bs-btn-hover-color: var(--adm-text);
    --bs-btn-active-bg: #E8EADF;
    --bs-btn-active-border-color: #C9CDBC;
    --bs-btn-active-color: var(--adm-text);
    --bs-btn-focus-shadow-rgb: 110, 128, 22;
}
.btn-outline-danger {
    --bs-btn-bg: var(--adm-surface);
    --bs-btn-border-color: #F5C2BC;
    --bs-btn-color: var(--adm-danger);
    --bs-btn-hover-bg: #FDECEA;
    --bs-btn-hover-border-color: #F0A79E;
    --bs-btn-hover-color: #8A1C12;
    --bs-btn-active-bg: #FBDAD5;
    --bs-btn-active-color: #8A1C12;
}

/* Botões de ação dentro das tabelas: só o ícone, sem borda */
.adm-main table .btn-sm {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-border-color: transparent;
    width: 38px;
    min-height: 38px;
    padding: 0;
    margin: 0 1px !important;
    font-size: 15px;
}
.adm-main table .btn-sm.btn-outline-primary,
.adm-main table .btn-sm.btn-outline-secondary { --bs-btn-color: var(--adm-text-2); --bs-btn-hover-bg: #F0F1EA; --bs-btn-hover-color: var(--adm-text); }
.adm-main table .btn-sm.btn-outline-warning { --bs-btn-color: var(--adm-text-2); --bs-btn-hover-bg: #FFF4D6; --bs-btn-hover-color: #7A5200; }
.adm-main table .btn-sm.btn-outline-success { --bs-btn-color: #1E5E25; --bs-btn-hover-bg: #E6F4EA; --bs-btn-hover-color: #1E5E25; }
.adm-main table .btn-sm.btn-outline-danger { --bs-btn-color: var(--adm-danger); --bs-btn-hover-bg: #FDECEA; --bs-btn-hover-color: #8A1C12; }
.adm-main table .btn-sm .fa-toggle-on { color: var(--adm-accent-strong); font-size: 18px; }
.adm-main table .btn-sm .fa-toggle-off { font-size: 18px; }
.adm-acoes { display: flex; justify-content: flex-end; align-items: center; gap: 2px; white-space: nowrap; }
.adm-acoes form { display: inline-flex !important; }

/* ── Formulários ───────────────────────────────────────────────────────── */
.form-label { font-size: 14px; font-weight: 600; color: var(--adm-text); margin-bottom: 6px; }
.form-control,
.form-select {
    min-height: 44px;
    border-radius: 10px;
    border-color: var(--adm-input-line);
    font-size: 15px;
    color: var(--adm-text);
    background-color: var(--adm-surface);
}
.form-control-sm, .form-select-sm { min-height: 36px; font-size: 14px; }
textarea.form-control { min-height: 0; }
.form-control[type=file] { padding-top: 9px; }
.form-control:focus,
.form-select:focus {
    border-color: var(--adm-accent-strong);
    box-shadow: 0 0 0 3px rgba(188, 212, 68, .35);
}
.form-text { color: var(--adm-muted); font-size: 13px; }
.form-check-input:checked { background-color: var(--adm-accent-strong); border-color: var(--adm-accent-strong); }
.form-check-input:focus { border-color: var(--adm-accent-strong); box-shadow: 0 0 0 3px rgba(188, 212, 68, .35); }
.form-switch .form-check-input { width: 2.4em; height: 1.3em; margin-top: .1em; cursor: pointer; }
.form-switch .form-check-input:focus { --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%236E8016'/%3e%3c/svg%3e"); }
.form-check-label { cursor: pointer; }
input[readonly] { background-color: #F0F1EA; cursor: not-allowed; pointer-events: none; }

.adm-campo-busca { position: relative; }
.adm-campo-busca i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--adm-muted); pointer-events: none;
}
.adm-campo-busca .form-control { padding-left: 40px; }

/* Barra de filtros no topo de uma lista */
.adm-filtros {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}
.adm-filtros > * { flex: 1 1 200px; }
.adm-filtros > .adm-campo-busca { flex: 2 1 280px; }
.adm-filtros > .btn { flex: 0 0 auto; }

/* Linha de toggles com descrição (publicação do estabelecimento) */
.adm-toggle {
    display: flex; justify-content: space-between; align-items: center; gap: 12px;
    min-height: 44px; padding: 0; margin: 0;
}
.adm-toggle .form-check-input { margin: 0; float: none; flex-shrink: 0; }
.adm-toggle-texto { font-size: 14px; font-weight: 600; }
.adm-toggle-texto small { display: block; font-size: 13px; font-weight: 400; color: var(--adm-muted); }

/* ── Tabelas ───────────────────────────────────────────────────────────── */
.adm-main .table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: #FAFBF7;
    --bs-table-border-color: var(--adm-line-soft);
    margin-bottom: 0;
    font-size: 14px;
    color: var(--adm-text);
}
.adm-main .table > :not(caption) > * > * { padding: 12px 14px; vertical-align: middle; }
.adm-main .table > :not(caption) > * > *:first-child { padding-left: 22px; }
.adm-main .table > :not(caption) > * > *:last-child { padding-right: 22px; }
.adm-main .table thead th,
.adm-main .table thead.table-light th {
    background: var(--adm-surface-2) !important;
    color: var(--adm-muted);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid var(--adm-line);
    white-space: nowrap;
}
.adm-main .table tbody tr:last-child > * { border-bottom: 0; }
.adm-main .table .table-danger > * { --bs-table-bg-type: #FFF8F7; --bs-table-color-type: var(--adm-text); }
.adm-main .table .table-warning > * { --bs-table-bg-type: #FFFBEF; --bs-table-color-type: var(--adm-text); }
.adm-main .table-sm > :not(caption) > * > * { padding-top: 10px; padding-bottom: 10px; }

.adm-nome { display: flex; align-items: center; gap: 12px; }
.adm-nome-icone {
    width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
    background: var(--adm-chip);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.adm-nome-texto { font-weight: 600; }
.adm-nome-sub { display: block; font-size: 13px; color: var(--adm-muted); font-weight: 400; }
.adm-codigo {
    display: inline-block; padding: 3px 8px; border-radius: 6px;
    background: #F0F1EA; color: var(--adm-text);
    font-family: 'Space Mono', ui-monospace, monospace; font-size: 12px; font-weight: 700;
}
.adm-vazio { text-align: center; color: var(--adm-muted); padding: 40px 16px !important; }

/* ── Selos ─────────────────────────────────────────────────────────────── */
.badge {
    font-weight: 700;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 999px;
    letter-spacing: 0;
}
.badge.bg-success { background-color: #E6F4EA !important; color: #1E5E25 !important; }
.badge.bg-secondary { background-color: #F0F1EA !important; color: var(--adm-muted) !important; }
.badge.bg-warning { background-color: #FFF4D6 !important; color: #7A5200 !important; }
.badge.bg-danger { background-color: #FDECEA !important; color: #8A1C12 !important; }
.badge.bg-info { background-color: #E3EEF9 !important; color: #1D4E89 !important; }
.badge.bg-primary { background-color: var(--adm-chip) !important; color: var(--adm-link) !important; }

/* ── Avisos ────────────────────────────────────────────────────────────── */
.alert {
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    padding: 12px 16px;
    margin-bottom: 20px;
}
.alert-dismissible { padding-right: 48px; }
.alert-dismissible .btn-close { padding: 15px 16px; }
.alert-success { background: #E6F4EA; border-color: #BFE0C7; color: #1E5E25; }
.alert-danger { background: #FDECEA; border-color: #F5C2BC; color: #8A1C12; }
.alert-warning { background: #FFF4D6; border-color: #F2DC9B; color: #7A5200; }
.alert-info,
.alert-secondary { background: #F0F1EA; border-color: var(--adm-line); color: var(--adm-text-2); }

/* ── Modal (QR Code) e paginação ───────────────────────────────────────── */
.modal-content { border: 0; border-radius: 20px; }
.modal-title { font-weight: 700; }

.pagination {
    --bs-pagination-border-radius: 10px;
    --bs-pagination-color: var(--adm-text);
    --bs-pagination-hover-color: var(--adm-text);
    --bs-pagination-hover-bg: #F0F1EA;
    --bs-pagination-focus-color: var(--adm-text);
    --bs-pagination-focus-box-shadow: 0 0 0 3px rgba(188, 212, 68, .35);
    --bs-pagination-active-bg: var(--adm-text);
    --bs-pagination-active-border-color: var(--adm-text);
    --bs-pagination-border-color: var(--adm-input-line);
    gap: 6px;
    margin: 0;
}
.pagination .page-link { border-radius: 10px !important; min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }

/* DataTables: busca, "por página" e rodapé dentro do card */
.adm-main .dt-container > .row,
.adm-main .dt-container .dt-layout-row { margin: 0; padding: 14px 22px; align-items: center; font-size: 14px; color: var(--adm-muted); }
.adm-main .dt-container > .row:has(table),
.adm-main .dt-container .dt-layout-row.dt-layout-table { padding: 0; }
.adm-main .dt-container > .row:has(table) > [class*=col] { padding: 0; }
.adm-main .dt-container > .row:first-child,
.adm-main .dt-container .dt-layout-row:first-child { border-bottom: 1px solid var(--adm-line); }
.adm-main .dt-container > .row:last-child,
.adm-main .dt-container .dt-layout-row:last-child { border-top: 1px solid var(--adm-line); }
.adm-main .dt-container .dt-search input,
.adm-main .dt-container .dt-length select {
    min-height: 40px; border-radius: 10px; border: 1px solid var(--adm-input-line); font-size: 14px;
}
.adm-main .dt-container .dt-search input { min-width: 240px; margin-left: 8px; }
.adm-main .dt-container .dt-length select { margin-right: 8px; }
.adm-main .dt-container table.dataTable { margin: 0 !important; }
.adm-main table.dataTable thead > tr > th.dt-orderable-asc:hover,
.adm-main table.dataTable thead > tr > th.dt-orderable-desc:hover { outline: none; color: var(--adm-text); }

/* SweetAlert com a fonte e os cantos do painel */
.swal2-popup { font-family: var(--bs-body-font-family); border-radius: 20px; }
.swal2-styled { border-radius: 10px !important; font-weight: 700 !important; }

/* ── Login: comanda centralizada sobre fundo escuro ────────────────────── */
.adm-login { min-height: 100vh; display: flex; flex-direction: column; background: var(--adm-ink); color: #F2F3EE; }
.adm-login a { color: #D4E57A; }
.adm-login-topo {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px;
    padding: 20px 40px; border-bottom: 1px solid #23261E;
}
.adm-login-topo .logo { height: 44px; width: auto; display: block; }
.adm-login-etiqueta {
    font-family: 'Space Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
    color: #8C9180; padding: 6px 10px; border: 1px solid #2E3228; border-radius: 6px;
}
.adm-login-relogio {
    margin-left: auto; display: flex; align-items: center; gap: 20px;
    font-family: 'Space Mono', ui-monospace, monospace; font-size: 13px; color: #B9BEAF;
}
.adm-login-relogio strong { color: var(--adm-accent); font-size: 15px; }
.adm-login-centro { flex: 1; display: flex; align-items: center; justify-content: center; padding: 56px 24px; }
.adm-login-comanda { width: 100%; max-width: 420px; filter: drop-shadow(0 24px 48px rgba(0, 0, 0, .5)); }
/* Bordas serrilhadas do papel */
.adm-login-serrilha { height: 10px; background: radial-gradient(circle at 8px 0, transparent 6px, #F2F3EE 6.5px) 0 0 / 16px 10px repeat-x; }
.adm-login-serrilha.baixo { background-image: radial-gradient(circle at 8px 10px, transparent 6px, #F2F3EE 6.5px); }
.adm-login-form { background: #F2F3EE; color: #15170F; padding: 32px; display: flex; flex-direction: column; gap: 4px; }
.adm-login-form h1 { margin: 0 0 6px; font-size: 30px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.adm-login-form .alert { margin: 14px 0 0; border-radius: 0; border: 0; border-left: 3px solid currentColor; font-size: 14px; }
.adm-login-campo { display: flex; flex-direction: column; gap: 6px; padding: 14px 0 10px; margin: 0; border-bottom: 1.5px solid #CFD3C2; cursor: text; }
.adm-login-campo:focus-within { border-bottom-color: var(--adm-accent-ink, #4A5A0A); }
.adm-login-campo span {
    font-family: 'Space Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #6B705F;
}
.adm-login-campo input { border: 0; outline: none; background: transparent; font: 500 17px 'DM Sans', sans-serif; color: #15170F; padding: 2px 0; }
.adm-login-campo input::placeholder { color: #9A9E8E; }
.adm-login-entrar {
    margin-top: 24px; height: 54px; border: 0; border-radius: 4px; padding: 0 20px;
    background: #15170F; color: #F2F3EE; font: 700 16px 'DM Sans', sans-serif;
    display: flex; align-items: center; justify-content: space-between; cursor: pointer;
}
.adm-login-entrar:hover { background: #2F3A05; }
.adm-login-entrar:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--adm-accent); }
.adm-login-entrar i {
    display: flex; align-items: center; justify-content: center; width: 32px; height: 32px;
    border-radius: 50%; background: var(--adm-accent); color: #15170F; font-size: 14px;
}
.adm-login-rodape {
    display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 24px; padding-top: 14px; border-top: 2px dashed #CFD3C2;
}
.adm-login .adm-login-rodape a { color: #4A5A0A; font-size: 14px; font-weight: 600; text-decoration: none; padding: 8px 0; }
.adm-login-assinatura {
    display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 28px;
    font-family: 'Space Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8C9180;
}
.adm-login-assinatura img { height: 22px; width: auto; display: block; }

/* ── Páginas de erro ───────────────────────────────────────────────────── */
.adm-erro {
    min-height: 100vh; background: var(--adm-ink); color: #F2F3EE;
    display: flex; flex-direction: column;
}
.adm-erro header { padding: 20px 24px; border-bottom: 1px solid var(--adm-ink-line); }
.adm-erro header img { height: 40px; width: auto; }
.adm-erro-corpo { flex: 1; display: flex; align-items: center; justify-content: center; padding: 64px 24px; }
.adm-erro-caixa { max-width: 560px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.adm-erro-codigo { font-family: 'Space Mono', ui-monospace, monospace; font-size: 120px; font-weight: 700; line-height: 1; color: var(--adm-accent); letter-spacing: -.04em; }
.adm-erro h1 { margin: 0; font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.adm-erro p { margin: 0; font-size: 17px; line-height: 1.6; color: #B9BEAF; }
.adm-erro .btn-outline-secondary { --bs-btn-bg: transparent; --bs-btn-border-color: #34382D; --bs-btn-color: #F2F3EE; --bs-btn-hover-bg: #171A12; --bs-btn-hover-color: #F2F3EE; --bs-btn-hover-border-color: #4A4F40; }

/* ── Celular e tablet ──────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .adm-topbar {
        display: flex;
        position: fixed;
        inset: 0 0 auto 0;
        height: var(--adm-topbar-h);
        z-index: 1020;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px 0 16px;
        background: var(--adm-ink);
        border-bottom: 1px solid var(--adm-ink-line);
    }
    .adm-topbar img { height: 34px; width: auto; }
    .adm-topbar button {
        width: 44px; height: 44px; border: 0; border-radius: 10px;
        background: transparent; color: #F2F3EE; font-size: 20px;
    }
    .adm-sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: none; }
    body.adm-menu-aberto .adm-sidebar { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .4); }
    body.adm-menu-aberto .adm-overlay {
        display: block; position: fixed; inset: 0; z-index: 1025; background: rgba(13, 14, 11, .5);
    }
    .adm-main { margin-left: 0; padding: calc(var(--adm-topbar-h) + 20px) 16px 32px; }
    .adm-page-head h1 { font-size: 26px; }
    .adm-main .dt-container .dt-search input { min-width: 0; width: 100%; margin: 6px 0 0; }
}
@media (max-width: 575.98px) {
    .adm-login-topo { padding: 16px 20px; }
    .adm-login-centro { padding: 32px 16px; }
    .adm-login-form { padding: 24px 22px 28px; }
    .adm-erro-codigo { font-size: 88px; }
}

/* Label com switch à direita (ex.: Ativo/Novo): sem o recuo padrão do Bootstrap */
.adm-toggle.form-switch { padding-left: 0; }
