/* template.css - Versão restaurada limpa
    Mantém os estilos originais do projeto e garante que
    botões dentro de tabelas (ex: excluir) fiquem visíveis.
*/

/* ==== BOTÃO HAMBÚRGUER ESCONDIDO ==== */
/* Esconder o botão de alternância (hambúrguer) em todas as telas. O menu
   permanecerá fixo no desktop e a versão mobile será controlada por CSS
   sem a necessidade do botão. */
.skin-black .main-header .navbar > .sidebar-toggle {
    display: none !important;
}

/* =========================================================
   AJUSTES RESPONSIVOS DE MENU (ESTILO BONITO)

/* ==============================
   Modern overrides (non-invasivo)
   - Melhora aparência de small-box, login e header
   - Usa Montserrat definida no template.php
   ============================== */

body {
    font-family: 'Montserrat', 'Source Sans Pro', sans-serif;
    background: linear-gradient(120deg, #f6f8fa 0%, #eef3f8 100%);
    color: #222222;
}

.main-header .logo {
    font-weight: 600;
    letter-spacing: 0.3px;
    background: linear-gradient(90deg, #0b4f6c 0%, #0b6c4f 100%);
    color: #ffffff;
    border-radius: 6px;
}

/* ===== Melhorias tipográficas para o logo textual ===== */
/* Mantém a compatibilidade com o AdminLTE (.logo-mini / .logo-lg) */
.main-header > .logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    height: 56px; /* garante alinhamento vertical */
}
.main-header > .logo .logo-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 16px;
    background: rgba(255,255,255,0.06);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12) inset;
}
.main-header > .logo .logo-lg {
    display: inline-block;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    color: #ffffff;
    text-transform: none;
    letter-spacing: 0.6px;
}

/* Ajustes responsivos: reduzir o texto do logo em telas menores */
@media (max-width: 767px) {
    .main-header > .logo { height: 48px; padding: 6px 10px; }
    .main-header > .logo .logo-mini { width: 36px; height: 36px; font-size: 14px; }
    .main-header > .logo .logo-lg { font-size: 15px; }
}

@media (max-width: 480px) {
    .main-header > .logo { gap: 8px; }
    .main-header > .logo .logo-lg { display: none; } /* mostra só o mini em telas muito pequenas */
}

.small-box {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(20,20,40,0.06);
    transition: transform .15s ease, box-shadow .15s ease;
    overflow: hidden;
}
.small-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(20,20,40,0.10);
}
.small-box .inner h3 {
    font-weight: 700;
    font-size: 2.2rem;
}
.small-box .inner p {
    font-weight: 600;
    opacity: .9;
}

/* Ajustes do login para aparência moderna */
.login-page {
    background: linear-gradient(180deg,#0f1724 0%, #0b2a3a 40%, #eef3f8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    width: 420px;
    max-width: 95%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(2,6,23,0.12);
    padding: 20px;
}
.login-box .login-logo a {
    color: #0b4f6c;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.btn-primary {
    background: linear-gradient(90deg,#0b6c4f 0%,#0b4f6c 100%);
    border: none;
    box-shadow: 0 6px 18px rgba(11,76,79,0.08);
}

/* Tornar as tabelas e cabeçalhos um pouco mais arejados */
.box-header > .box-title {
    font-weight: 700;
}

/* Garantir contraste em menus escuros */
.skin-black .sidebar-menu > li > a {
    color: #e6eef0;
}

   ========================================================= */

/* <= 1024px: ajuste de fontes e paddings do menu */
@media screen and (max-width: 1024px) {
    .skin-black .sidebar-menu > li > a {
        font-size: 13.5px;
        padding: 9px 10px;
    }
    .skin-black .sidebar-menu .treeview-menu > li > a {
        font-size: 12.5px;
        padding: 6px 10px 6px 16px;
    }
}

/* <= 768px */
@media screen and (max-width: 768px) {
    .skin-black .sidebar-menu > li > a {
        font-size: 13px;
        padding: 8px 10px;
    }
    .skin-black .sidebar-menu .treeview-menu > li > a {
        font-size: 12px;
        padding: 6px 10px 6px 14px;
    }
}

/* <= 640px */
@media screen and (max-width: 640px) {
    .skin-black .sidebar-menu > li > a {
        font-size: 12.5px;
        padding: 8px 10px;
    }
    .skin-black .sidebar-menu .treeview-menu > li > a {
        font-size: 11.5px;
        padding: 6px 10px 6px 12px;
    }
}

/* <= 480px */
@media screen and (max-width: 480px) {
    .skin-black .sidebar-menu > li > a {
        font-size: 12px;
        padding: 8px 10px;
    }
    .skin-black .sidebar-menu .treeview-menu > li > a {
        font-size: 11px;
        padding: 6px 10px 6px 10px;
    }
}

/* <= 320px */
@media screen and (max-width: 320px) {
    .skin-black .sidebar-menu > li > a {
        font-size: 11.5px;
        padding: 7px 8px;
    }
    .skin-black .sidebar-menu .treeview-menu > li > a {
        font-size: 10.5px;
        padding: 6px 8px 6px 8px;
    }
}

/* ==== ESTILOS EXISTENTES ==== */
.audiencia {
    font-size: 1.5em;
    text-transform: uppercase;
}

/*
 * Aplica uma fonte moderna (Montserrat) por padrão em todo o sistema.
 * Caso o navegador não carregue Montserrat, a fonte anterior (Source Sans Pro)
 * ou qualquer sans-serif será usada como fallback.
 */
body, .sidebar-menu > li > a, .sidebar-menu .treeview-menu > li > a,
.box-header, .titulo-tabelas-alertas, .tabela-info, .tabela {
    font-family: 'Montserrat', 'Source Sans Pro', sans-serif;
}

.espaco-icone {
    margin-left: 2%;
    text-transform: uppercase;
}

.conteudo {
    margin-left: 0%;
}

/* ==== AJUSTE PARA O MENU LATERAL ==== */
.box-menu {
    background: #000000;
    /* removido width fixa de 22% para permitir o collapse */
}

/* Largura padrão quando aberto (desktop) ajustada para acomodar nomes maiores */
@media (min-width: 768px) {
    body:not(.sidebar-collapse) .main-sidebar.box-menu {
        width: 300px !important; /* aumentada novamente para 280px para acomodar textos mais longos */
    }
    /* Ajusta a margem do conteúdo e rodapé para alinhar com a nova largura da sidebar */
    body:not(.sidebar-collapse) .content-wrapper,
    body:not(.sidebar-collapse) .main-footer {
        margin-left: 280px !important;
    }
}

/* Largura no modo recolhido (mini sidebar) */
.sidebar-mini.sidebar-collapse .main-sidebar.box-menu {
    width: 50px !important; /* padrão recolhido AdminLTE */
}

/* ==== TABELAS ==== */

/* =========================================================
   ESTILOS PARA MODAIS DOS CLIENTES
   ========================================================= */

/* Modal de atualização */
.modal-content {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: none;
}

.modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    border-bottom: none;
}

.modal-danger .modal-header {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.modal-title {
    font-weight: 600;
    font-size: 1.2rem;
}

.modal-body {
    padding: 25px 30px;
    font-size: 1rem;
    line-height: 1.6;
}

.modal-footer {
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #dee2e6;
    padding: 15px 30px;
}

.modal-footer .btn {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 6px;
    padding: 10px 20px;
}

/* Animação suave para modais */
.modal.fade .modal-dialog {
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.modal.show .modal-dialog {
    transform: scale(1);
}

/* =========================================================
   FIM DOS ESTILOS DOS MODAIS
   ========================================================= */

/* =========================================================
   ESTILOS MODERNOS PARA TABELA DE CLIENTES
   ========================================================= */

/* Container da tabela */
.tabela-cliente-moderna {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    overflow: hidden;
    border: none !important;
}

/* Cabeçalho da tabela */
.tabela-cliente-moderna .thead-dark {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #ffffff;
    border: none;
}

.tabela-cliente-moderna .thead-dark th {
    border: none;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 22px 18px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    position: relative;
}

.tabela-cliente-moderna .thead-dark th i {
    margin-right: 8px;
    opacity: 0.8;
    font-size: 0.9em;
}

.tabela-cliente-moderna .thead-dark .acoes-header {
    text-align: center;
    min-width: 140px;
}

/* Corpo da tabela */
.tabela-cliente-moderna tbody tr {
    transition: all 0.25s ease;
    border-bottom: 1px solid #f1f3f4;
}

.tabela-cliente-moderna tbody tr:hover {
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.tabela-cliente-moderna tbody tr.linha-cliente td {
    padding: 22px 18px;
    vertical-align: middle;
    border: none;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #2c3e50;
    font-weight: 500;
}

/* Estilos específicos para cada coluna - Visual unificado */
.tabela-cliente-moderna .cliente-nome strong {
    font-weight: 600;
    color: #2c3e50;
}

.tabela-cliente-moderna .cliente-cpf {
    font-family: 'Courier New', monospace;
    background: linear-gradient(90deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #dee2e6;
    display: inline-block;
}

.tabela-cliente-moderna .cliente-endereco {
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tabela-cliente-moderna .cliente-numero {
    text-align: center;
}

.tabela-cliente-moderna .cliente-numero .badge {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 15px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(52,152,219,0.3);
}

.tabela-cliente-moderna .cliente-telefone {
    font-family: 'Courier New', monospace;
    color: #27ae60;
    font-weight: 600;
}

/* =========================================================
   BOTÕES DE AÇÃO SIMPLES E FUNCIONAIS
   ========================================================= */

/* Coluna de ações */
.tabela-cliente-moderna .acoes-coluna {
    text-align: center !important;
    white-space: nowrap !important;
    padding: 18px 12px !important;
    min-width: 120px !important;
    width: 120px !important;
    vertical-align: middle !important;
}

/* Botões de ação padrão */
.btn-action {
    padding: 8px 12px !important;
    font-size: 1rem !important;
    border-radius: 6px !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
    display: inline-block !important;
    margin: 2px !important;
}

/* Botão editar */
.btn-action.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    color: #ffffff !important;
    border-color: #f39c12 !important;
}

.btn-action.btn-warning:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(243,156,18,0.4) !important;
}

/* Botão excluir */
.btn-action.btn-danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: #ffffff !important;
    border-color: #e74c3c !important;
}

.btn-action.btn-danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%) !important;
    color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(231,76,60,0.4) !important;
}

/* Ícones dos botões */
.btn-action i {
    font-size: 0.9rem !important;
    line-height: 1 !important;
}

/* FORÇA BOTÕES A APARECER - SEM EXCEÇÃO */
td button.btn-action,
td a.btn-action,
.tabela-cliente-moderna button.btn-action,
.tabela-cliente-moderna a.btn-action,
#tabela-clientes button.btn-action,
#tabela-clientes a.btn-action {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
    background-color: #f39c12 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold !important;
    border: 1px solid #f39c12 !important;
}

/* FORÇA BOTÃO EXCLUIR ESPECÍFICO */
td button.btn-danger,
td a.btn-danger,
.tabela-cliente-moderna button.btn-danger,
.tabela-cliente-moderna a.btn-danger,
#tabela-clientes button.btn-danger,
#tabela-clientes a.btn-danger {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
    color: #ffffff !important;
}

/* =========================================================
   ESTILOS DOS MODAIS - DESIGN MODERNO E FUNCIONAL
   ========================================================= */

/* Backdrop do Modal - Suavizar fundo */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.6) !important;
}

/* Container Principal do Modal - NÃO FORÇAR FLEX */
.modal {
    padding: 20px !important;
}

/* Dialog do Modal - Posicionamento Centralizado */
.modal-dialog {
    max-width: 500px !important;
    width: 90% !important;
    margin: 50px auto !important;
}

/* Animação de Entrada Suave */
.modal.fade .modal-dialog {
    -webkit-transition: -webkit-transform 0.3s ease-out !important;
    -o-transition: -o-transform 0.3s ease-out !important;
    transition: transform 0.3s ease-out !important;
    -webkit-transform: translate(0, -25%) !important;
    -ms-transform: translate(0, -25%) !important;
    -o-transform: translate(0, -25%) !important;
    transform: translate(0, -25%) !important;
}

.modal.in .modal-dialog {
    -webkit-transform: translate(0, 0) !important;
    -ms-transform: translate(0, 0) !important;
    -o-transform: translate(0, 0) !important;
    transform: translate(0, 0) !important;
}

/* Conteúdo do Modal - Design Moderno */
.modal-content {
    border: none !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    overflow: hidden !important;
    background: #ffffff !important;
}

/* Header do Modal - Design Elegante */
.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    padding: 25px 30px !important;
    border-bottom: none !important;
    text-align: center !important;
    position: relative !important;
}

.modal-header .modal-title {
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.modal-header .close {
    position: absolute !important;
    top: 15px !important;
    right: 20px !important;
    font-size: 1.8rem !important;
    color: #ffffff !important;
    opacity: 0.8 !important;
    text-shadow: none !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    border: none !important;
    line-height: 1 !important;
}

.modal-header .close:hover,
.modal-header .close:focus {
    background: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
    outline: none !important;
}

/* Modal de Atualização - Header Azul */
div[id^="modal-atualizar-"] .modal-header {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
}

/* Modal de Exclusão - Header Moderno com Gradient Impactante */
div[id^="modal-excluir-"] .modal-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 25%, #ff4757 50%, #c0392b 100%) !important;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.4) !important;
    position: relative !important;
}

/* Efeito de brilho sutil no header */
div[id^="modal-excluir-"] .modal-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.6) 50%, transparent 100%) !important;
    animation: shimmer 2s ease-in-out infinite !important;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Título do modal de exclusão */
div[id^="modal-excluir-"] .modal-title {
    font-size: 1.9rem !important;
    font-weight: 700 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
}

/* Ícone no título do modal de exclusão */
div[id^="modal-excluir-"] .modal-title::before {
    content: '🗑️' !important;
    font-size: 1.8rem !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)) !important;
}

/* Body do modal de exclusão - Layout mais impactante */
div[id^="modal-excluir-"] .modal-body {
    background: linear-gradient(135deg, #ffffff 0%, #fef8f8 100%) !important;
    position: relative !important;
    padding: 40px 35px !important;
}

/* Ícone de alerta grande no body */
div[id^="modal-excluir-"] .modal-body::before {
    content: '⚠️' !important;
    font-size: 4rem !important;
    display: block !important;
    text-align: center !important;
    margin-bottom: 25px !important;
    filter: drop-shadow(0 4px 8px rgba(255,107,107,0.3)) !important;
    animation: pulse-warning 2s ease-in-out infinite !important;
}

@keyframes pulse-warning {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

div[id^="modal-excluir-"] .modal-body p:first-of-type {
    font-size: 1.7rem !important;
    line-height: 1.5 !important;
    color: #2c3e50 !important;
    margin-bottom: 25px !important;
    font-weight: 500 !important;
}

div[id^="modal-excluir-"] .modal-body strong {
    font-size: 1.9rem !important;
    color: #ff4757 !important;
    font-weight: 800 !important;
    display: block !important;
    margin: 15px 0 !important;
    padding: 12px 20px !important;
    background: linear-gradient(135deg, rgba(255,71,87,0.1) 0%, rgba(255,107,107,0.05) 100%) !important;
    border-radius: 12px !important;
    border-left: 5px solid #ff4757 !important;
    text-align: center !important;
    box-shadow: 0 3px 10px rgba(255,71,87,0.15) !important;
}

/* Aviso de ação irreversível */
div[id^="modal-excluir-"] .modal-body .text-muted {
    font-size: 1.3rem !important;
    color: #e17055 !important;
    font-weight: 600 !important;
    font-style: normal !important;
    margin-top: 20px !important;
    padding: 20px !important;
    background: linear-gradient(135deg, #ffeaa7 0%, #fdcb6e 100%) !important;
    border-radius: 12px !important;
    border: 2px solid #e17055 !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(225,112,85,0.2) !important;
    position: relative !important;
}

div[id^="modal-excluir-"] .modal-body .text-muted::before {
    content: '⚡' !important;
    font-size: 1.5rem !important;
    margin-right: 10px !important;
}

/* Footer do modal de exclusão - Cores mais impactantes */
div[id^="modal-excluir-"] .modal-footer {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-top: 2px solid rgba(255,71,87,0.2) !important;
    padding: 30px !important;
}

/* Botão Cancelar - Design mais suave */
div[id^="modal-excluir-"] .modal-footer .btn.pull-left {
    background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(116,185,255,0.4) !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    padding: 14px 28px !important;
}

div[id^="modal-excluir-"] .modal-footer .btn.pull-left:hover {
    background: linear-gradient(135deg, #0984e3 0%, #0770cc 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(116,185,255,0.6) !important;
}

/* Botão Confirmar Exclusão - Design mais dramático */
div[id^="modal-excluir-"] .modal-footer .btn-outline {
    background: linear-gradient(135deg, #ff4757 0%, #e84118 25%, #c23616 50%, #a5161a 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(255,71,87,0.5) !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    padding: 14px 28px !important;
    text-transform: uppercase !important;
    border: none !important;
    position: relative !important;
    overflow: hidden !important;
}

/* Efeito de ondas no botão de exclusão */
div[id^="modal-excluir-"] .modal-footer .btn-outline::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent) !important;
    transition: left 0.6s ease !important;
}

div[id^="modal-excluir-"] .modal-footer .btn-outline:hover::before {
    left: 100% !important;
}

div[id^="modal-excluir-"] .modal-footer .btn-outline:hover {
    background: linear-gradient(135deg, #e84118 0%, #c23616 25%, #a5161a 50%, #8B0000 100%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(255,71,87,0.7) !important;
}

/* Responsividade para modal de exclusão */
@media (max-width: 768px) {
    div[id^="modal-excluir-"] .modal-body::before {
        font-size: 3rem !important;
        margin-bottom: 20px !important;
    }
    
    div[id^="modal-excluir-"] .modal-title::before {
        font-size: 1.5rem !important;
    }
    
    div[id^="modal-excluir-"] .modal-body .text-muted {
        padding: 15px !important;
        font-size: 1.1rem !important;
    }
}

/* =========================================================
   ESTILIZAÇÃO COMPLETA DO DATATABLES - PAGINAÇÃO MODERNA
   ========================================================= */

/* Container principal da paginação */
.dataTables_wrapper .dataTables_paginate {
    margin-top: 15px !important;
    margin-bottom: 10px !important;
    text-align: center !important;
    padding: 10px 0 !important;
    clear: both !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Lista de paginação */
.dataTables_wrapper .dataTables_paginate .paginate_button {
    display: inline-block !important;
    padding: 10px 15px !important;
    margin: 0 6px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    color: #495057 !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
    min-width: 40px !important;
    text-align: center !important;
}

/* Hover nos botões de paginação */
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: #ffffff !important;
    border-color: #3498db !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 15px rgba(52,152,219,0.4) !important;
    text-decoration: none !important;
}

/* Página atual/ativa */
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ffffff !important;
    border-color: #2c3e50 !important;
    box-shadow: 0 4px 12px rgba(44,62,80,0.4) !important;
    transform: scale(1.05) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: #ffffff !important;
    border-color: #2c3e50 !important;
    transform: scale(1.05) !important;
}

/* Botões Anterior e Próximo - Especiais */
.dataTables_wrapper .dataTables_paginate .paginate_button.previous,
.dataTables_wrapper .dataTables_paginate .paginate_button.next {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #ffffff !important;
    border-color: #667eea !important;
    padding: 10px 20px !important;
    margin: 0 12px !important;
    font-weight: 600 !important;
    letter-spacing: 0.3px !important;
    font-size: 0.9rem !important;
    box-shadow: 0 3px 10px rgba(102,126,234,0.3) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.previous:hover,
.dataTables_wrapper .dataTables_paginate .paginate_button.next:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%) !important;
    color: #ffffff !important;
    border-color: #764ba2 !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 6px 20px rgba(102,126,234,0.6) !important;
}

/* Botões desabilitados */
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%) !important;
    color: #7f8c8d !important;
    border-color: #bdc3c7 !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%) !important;
    color: #7f8c8d !important;
    border-color: #bdc3c7 !important;
    transform: none !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
}

/* Container de informações da tabela */
.dataTables_wrapper .dataTables_info {
    font-size: 1rem !important;
    color: #495057 !important;
    font-weight: 500 !important;
    margin-top: 10px !important;
    text-align: left !important;
    padding: 10px 0 !important;
    clear: both !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Container do length (mostrar x registros) */
.dataTables_wrapper .dataTables_length {
    margin-bottom: 15px !important;
    clear: both !important;
    position: relative !important;
    z-index: 1 !important;
}

.dataTables_wrapper .dataTables_length select {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
    color: #495057 !important;
    margin: 0 8px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
}

.dataTables_wrapper .dataTables_length select:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2) !important;
    outline: none !important;
}

.dataTables_wrapper .dataTables_length label {
    font-size: 1rem !important;
    color: #495057 !important;
    font-weight: 500 !important;
}

/* Container de busca */
.dataTables_wrapper .dataTables_filter {
    margin-bottom: 15px !important;
    text-align: right !important;
    clear: both !important;
    position: relative !important;
    z-index: 1 !important;
}

/* Wrapper principal do DataTables - Correção de sobreposição */
.dataTables_wrapper {
    position: relative !important;
    clear: both !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Tabela principal */
.dataTables_wrapper .dataTable {
    clear: both !important;
    margin-top: 6px !important;
    margin-bottom: 6px !important;
    max-width: none !important;
    border-collapse: separate !important;
    background: transparent !important;
}

/* Row superior e inferior do DataTables */
.dataTables_wrapper .row {
    margin: 0 !important;
    padding: 0 !important;
    clear: both !important;
}

.dataTables_wrapper .row:before,
.dataTables_wrapper .row:after {
    display: table !important;
    content: " " !important;
    clear: both !important;
}

/* =========================================================
   ALERTAS MODERNOS - DESIGN UI/UX AVANÇADO
   ========================================================= */

/* Container base dos alertas */
.alert {
    border: none !important;
    border-radius: 16px !important;
    padding: 20px 25px !important;
    margin-bottom: 25px !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(10px) !important;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    transform: translateY(-5px) !important;
}

/* Efeito hover nos alertas */
.alert:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2) !important;
}

/* Barra lateral moderna */
.alert::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 6px !important;
    height: 100% !important;
    border-radius: 0 16px 16px 0 !important;
}

/* Efeito de brilho sutil */
.alert::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 2px !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%) !important;
    animation: alert-shimmer 3s ease-in-out infinite !important;
}

@keyframes alert-shimmer {
    0%, 100% { opacity: 0; transform: translateX(-100%); }
    50% { opacity: 1; transform: translateX(100%); }
}

/* Título dos alertas */
.alert h4 {
    margin-top: 0 !important;
    margin-bottom: 15px !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

/* Ícones dos alertas */
.alert h4 i {
    font-size: 1.6rem !important;
    padding: 8px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    animation: alert-icon-pulse 2s ease-in-out infinite !important;
}

@keyframes alert-icon-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Texto dos alertas */
.alert p,
.alert div {
    margin-bottom: 0 !important;
    font-size: 1.1rem !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

/* Botão de fechar moderno */
.alert .close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    border: none !important;
    backdrop-filter: blur(10px) !important;
}

.alert .close:hover,
.alert .close:focus {
    background: rgba(0, 0, 0, 0.2) !important;
    opacity: 1 !important;
    transform: scale(1.1) !important;
    outline: none !important;
}

/* ALERTA DE SUCESSO - Verde Moderno */
.alert-success {
    background: linear-gradient(135deg, #00b894 0%, #00a085 25%, #55efc4 75%, #81ecec 100%) !important;
    color: #ffffff !important;
}

.alert-success::before {
    background: linear-gradient(180deg, #00b894 0%, #55efc4 100%) !important;
}

.alert-success h4 i {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* ALERTA DE ERRO - Vermelho Moderno */
.alert-danger {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 25%, #ff4757 75%, #ff3838 100%) !important;
    color: #ffffff !important;
}

.alert-danger::before {
    background: linear-gradient(180deg, #ff6b6b 0%, #ff4757 100%) !important;
}

.alert-danger h4 i {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* ALERTA DE AVISO - Amarelo/Laranja Moderno */
.alert-warning {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 25%, #e17055 75%, #d63031 100%) !important;
    color: #ffffff !important;
}

.alert-warning::before {
    background: linear-gradient(180deg, #fdcb6e 0%, #e17055 100%) !important;
}

.alert-warning h4 i {
    background: rgba(255, 255, 255, 0.25) !important;
    color: #ffffff !important;
}

/* Animação de entrada */
.alert.fade.in {
    animation: alert-slide-in 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) !important;
}

@keyframes alert-slide-in {
    0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(5px) scale(1.02);
    }
    100% {
        opacity: 1;
        transform: translateY(-5px) scale(1);
    }
}

/* Responsividade dos alertas */
@media (max-width: 768px) {
    .alert {
        padding: 15px 20px !important;
        margin-bottom: 20px !important;
        border-radius: 12px !important;
    }
    
    .alert h4 {
        font-size: 1.2rem !important;
        margin-bottom: 10px !important;
    }
    
    .alert h4 i {
        font-size: 1.4rem !important;
        padding: 6px !important;
    }
    
    .alert p,
    .alert div {
        font-size: 1rem !important;
    }
    
    .alert .close {
        top: 12px !important;
        right: 12px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 1rem !important;
    }
}

/* Estados especiais */
.alert.alert-dismissible {
    padding-right: 60px !important;
}

/* Efeito de saída */
.alert.fade.out {
    animation: alert-slide-out 0.4s ease-in !important;
}

@keyframes alert-slide-out {
    0% {
        opacity: 1;
        transform: translateY(-5px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
}

.dataTables_wrapper .dataTables_filter input {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 2px solid #dee2e6 !important;
    border-radius: 20px !important;
    padding: 10px 18px !important;
    font-size: 0.9rem !important;
    color: #495057 !important;
    margin-left: 10px !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08) !important;
    transition: all 0.3s ease !important;
    width: 220px !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
    border-color: #3498db !important;
    box-shadow: 0 0 0 3px rgba(52,152,219,0.2) !important;
    outline: none !important;
    background: #ffffff !important;
}

.dataTables_wrapper .dataTables_filter label {
    font-size: 1rem !important;
    color: #495057 !important;
    font-weight: 500 !important;
}

/* Responsividade da paginação */
@media (max-width: 768px) {
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 10px 14px !important;
        margin: 0 4px !important;
        font-size: 0.9rem !important;
        min-width: 40px !important;
    }
    
    .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
    .dataTables_wrapper .dataTables_paginate .paginate_button.next {
        padding: 10px 18px !important;
        margin: 0 8px !important;
        font-size: 0.9rem !important;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        width: 200px !important;
    }
    
    .dataTables_wrapper .dataTables_filter,
    .dataTables_wrapper .dataTables_length {
        text-align: center !important;
        margin-bottom: 15px !important;
    }
}

@media (max-width: 480px) {
    .dataTables_wrapper .dataTables_paginate .paginate_button {
        padding: 8px 10px !important;
        margin: 0 2px !important;
        font-size: 0.8rem !important;
        min-width: 35px !important;
    }
    
    .dataTables_wrapper .dataTables_paginate .paginate_button.previous,
    .dataTables_wrapper .dataTables_paginate .paginate_button.next {
        padding: 8px 12px !important;
        margin: 0 5px !important;
    }
    
    .dataTables_wrapper .dataTables_filter input {
        width: 180px !important;
        font-size: 0.9rem !important;
    }
}

/* Body do Modal - Espaçamento e Tipografia */
.modal-body {
    padding: 35px 30px !important;
    text-align: center !important;
    background: #ffffff !important;
}

div[id^="modal-atualizar-"] .modal-body p {
    font-size: 1.6rem !important;
    line-height: 1.6 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
}

div[id^="modal-atualizar-"] .modal-body strong {
    font-size: 1.8rem !important;
    color: #3498db !important;
    font-weight: 700 !important;
    display: block !important;
    margin-top: 10px !important;
}

div[id^="modal-excluir-"] .modal-body p {
    font-size: 1.6rem !important;
    line-height: 1.6 !important;
    color: #2c3e50 !important;
    margin-bottom: 20px !important;
}

div[id^="modal-excluir-"] .modal-body strong {
    font-size: 1.8rem !important;
    color: #e74c3c !important;
    font-weight: 700 !important;
    display: block !important;
    margin-top: 10px !important;
}

div[id^="modal-excluir-"] .modal-body .text-muted {
    font-size: 1.2rem !important;
    color: #7f8c8d !important;
    font-style: italic !important;
    margin-top: 15px !important;
    padding: 15px !important;
    background: rgba(231, 76, 60, 0.05) !important;
    border-radius: 8px !important;
    border-left: 4px solid #e74c3c !important;
}

/* Footer do Modal - Botões Modernos */
.modal-footer {
    padding: 25px 30px !important;
    background: #f8f9fa !important;
    border-top: 1px solid #ecf0f1 !important;
    text-align: right !important;
}

.modal-footer .btn {
    font-size: 1.3rem !important;
    padding: 12px 25px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    border: none !important;
    transition: all 0.3s ease !important;
    min-width: 120px !important;
    margin-left: 10px !important;
}

.modal-footer .btn-default,
.modal-footer .btn.pull-left {
    background: linear-gradient(135deg, #95a5a6 0%, #7f8c8d 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(149, 165, 166, 0.4) !important;
    float: left !important;
    margin-left: 0 !important;
}

.modal-footer .btn-default:hover,
.modal-footer .btn.pull-left:hover {
    background: linear-gradient(135deg, #7f8c8d 0%, #6c7b7d 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(149, 165, 166, 0.6) !important;
}

.modal-footer .btn-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4) !important;
}

.modal-footer .btn-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(52, 152, 219, 0.6) !important;
}

.modal-footer .btn-outline {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4) !important;
}

.modal-footer .btn-outline:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.6) !important;
}

/* Responsividade */
@media (max-width: 768px) {
    .modal-dialog {
        width: 95% !important;
        margin: 20px auto !important;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px !important;
    }
    
    .modal-footer .btn {
        width: 100% !important;
        min-width: auto !important;
        margin: 5px 0 !important;
        float: none !important;
    }
    
    .modal-footer .btn.pull-left {
        float: none !important;
    }
}

/* Responsividade */
@media (max-width: 768px) {
    .tabela-cliente-moderna .acoes-coluna {
        min-width: 100px !important;
        width: 100px !important;
    }
    
    .btn-action {
        padding: 6px 8px !important;
        font-size: 0.85rem !important;
    }
    
    .btn-action i {
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .tabela-cliente-moderna .acoes-coluna {
        min-width: 90px !important;
        width: 90px !important;
    }
    
    .btn-action {
        padding: 5px 6px !important;
        font-size: 0.8rem !important;
    }
}

.tabela-cliente-moderna .btn-group-acoes {
    display: flex;
    gap: 8px;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
}

/* Botões de ação - Força a exibição sobrescrevendo btn-sm */
.tabela-cliente-moderna .btn-acao-editar,
.tabela-cliente-moderna .btn-acao-excluir,
.btn-acao-editar,
.btn-acao-excluir {
    border: none !important;
    border-radius: 8px !important;
    padding: 14px 20px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 120px !important;
    justify-content: center !important;
    margin: 3px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.tabela-cliente-moderna .btn-acao-editar,
.btn-acao-editar {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    color: #ffffff !important;
}

.tabela-cliente-moderna .btn-acao-editar:hover,
.btn-acao-editar:hover {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(230,126,34,0.4) !important;
    color: #ffffff !important;
}

.tabela-cliente-moderna .btn-acao-excluir,
.btn-acao-excluir {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%) !important;
    color: #ffffff !important;
}

.tabela-cliente-moderna .btn-acao-excluir:hover,
.btn-acao-excluir:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 15px rgba(231,76,60,0.4) !important;
    color: #ffffff !important;
}

.tabela-cliente-moderna .btn-acao-editar i,
.tabela-cliente-moderna .btn-acao-excluir i {
    font-size: 0.9rem;
}

/* Estado vazio */
.tabela-cliente-moderna .empty-state {
    padding: 60px 20px !important;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px;
}

.tabela-cliente-moderna .empty-state i {
    color: #6c757d;
    margin-bottom: 20px;
    display: block;
}

.tabela-cliente-moderna .empty-state p {
    color: #6c757d;
    font-size: 1.1rem;
    margin: 0;
}

/* Responsividade - Mantendo fontes muito maiores */
@media (max-width: 1200px) {
    .tabela-cliente-moderna .btn-text {
        display: none;
    }
    
    .tabela-cliente-moderna .acoes-coluna {
        min-width: 90px !important;
        width: 90px !important;
    }
    
    .tabela-cliente-moderna .cliente-endereco {
        max-width: 180px;
    }
}

@media (max-width: 992px) {
    .tabela-cliente-moderna .thead-dark th {
        font-size: 1.25rem !important;
        padding: 18px 15px !important;
    }
    
    .tabela-cliente-moderna tbody tr.linha-cliente td {
        padding: 18px 15px !important;
        font-size: 1.2rem !important;
    }
    
    .tabela-cliente-moderna .acoes-coluna {
        min-width: 80px !important;
        width: 80px !important;
    }
}

@media (max-width: 768px) {
    .tabela-cliente-moderna .cliente-endereco {
        max-width: 120px;
    }
    
    .tabela-cliente-moderna .thead-dark th {
        font-size: 1.15rem !important;
        padding: 16px 12px !important;
    }
    
    .tabela-cliente-moderna tbody tr.linha-cliente td {
        padding: 16px 12px !important;
        font-size: 1.1rem !important;
    }
    
    .tabela-cliente-moderna .acoes-coluna {
        min-width: 70px !important;
        width: 70px !important;
    }
}

/* =========================================================
   FIM DOS ESTILOS DA TABELA DE CLIENTES
   ========================================================= */

/* FORÇA TOTAL PARA BOTÕES DE AÇÃO - SOBRESCREVE TUDO */
button.btn-acao-editar,
button.btn-acao-excluir,
.btn-acao-editar,
.btn-acao-excluir,
#tabela-cliente .btn-acao-editar,
#tabela-cliente .btn-acao-excluir {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 999 !important;
    border: 2px solid transparent !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 0.85rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.3px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 1px !important;
    min-width: 80px !important;
    max-width: 90px !important;
    text-align: center !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

button.btn-acao-editar,
.btn-acao-editar,
#tabela-cliente .btn-acao-editar {
    background: #f39c12 !important;
    color: #ffffff !important;
    border-color: #e67e22 !important;
}

button.btn-acao-editar:hover,
.btn-acao-editar:hover,
#tabela-cliente .btn-acao-editar:hover {
    background: #e67e22 !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(243,156,18,0.4) !important;
}

button.btn-acao-excluir,
.btn-acao-excluir,
#tabela-cliente .btn-acao-excluir {
    background: #e74c3c !important;
    color: #ffffff !important;
    border-color: #c0392b !important;
}

button.btn-acao-excluir:hover,
.btn-acao-excluir:hover,
#tabela-cliente .btn-acao-excluir:hover {
    background: #c0392b !important;
    color: #ffffff !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(231,76,60,0.4) !important;
}

/* Ícones dos botões */
button.btn-acao-editar i,
button.btn-acao-excluir i,
.btn-acao-editar i,
.btn-acao-excluir i {
    margin-right: 6px !important;
    font-size: 0.8rem !important;
}

/* Texto dos botões em telas pequenas */
@media (max-width: 1200px) {
    .btn-text {
        display: none !important;
    }
    
    button.btn-acao-editar i,
    button.btn-acao-excluir i,
    .btn-acao-editar i,
    .btn-acao-excluir i {
        margin-right: 0 !important;
    }
}

.tabela .cliente {
    width: 50%;
}

.tabela tr th {
    font-size: 1.3em;
}

.tabela tr td button {
    display: inline-block;
    margin: 1%;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
}

.tabela tr td {
    font-size: 1.1em;
}

/* ==== TÍTULOS E INFORMAÇÕES ==== */
.titulo-tabelas-alertas {
    margin-top: 10%;
    font-size: 1.3em;
    text-transform: uppercase;
}

.box-header > .fa,
.box-header > .glyphicon,
.box-header > .ion,
.box-header .box-title {
    font-size: 1.4em;
    margin-top: 1%;
    text-transform: uppercase;
}

.tabela-info {
    margin-top: 2%;
}

.tabela-info tr th {
    font-size: 1.3em;
}

.tabela-info tr td {
    font-size: 1.1em;
}

/* =========================================================
   MENU LATERAL – ESTILO BONITO E COMPACTO
   ========================================================= */

/* Item do 1º nível (menu principal) */
.skin-black .sidebar-menu > li > a {
    font-size: 12px;
    line-height: 1.25;
    padding: 10px 12px;
    letter-spacing: 0;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 8px;                /* espaço entre ícone e texto */
    white-space: nowrap;      /* evita quebrar o 1º nível */
    overflow: hidden;
    text-overflow: ellipsis;  /* reticências quando precisar */
    color: #eaeaea;
    border-radius: 10px;
    margin: 4px 8px;          /* dá “respiro” e borda arredondada */
    transition: background .15s, color .15s;
}

/* Ícones do 1º nível ligeiramente menores */
.skin-black .sidebar-menu > li > a > .fa,
.skin-black .sidebar-menu > li > a > .ion,
.skin-black .sidebar-menu > li > a > .glyphicon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* Hover/focus elegantes */
.skin-black .sidebar-menu > li > a:hover,
.skin-black .sidebar-menu > li > a:focus {
    background: #1f1f1f;
    color: #ffffff;
    outline: none;
}

/* Ativo/aberto com contraste sutil */
.skin-black .sidebar-menu > li.active > a,
.skin-black .sidebar-menu > li.menu-open > a {
    background: #1b1b1b;
    color: #ffffff;
}

/* Setinha (caret) menor */
.skin-black .sidebar-menu > li > a .fa-angle-left {
    margin-top: 2px;
    font-size: 12px;
}

/* Submenus: mais bonitos e sem "pontos" */
.skin-black .sidebar-menu .treeview-menu {
    padding-left: 10px;                    /* leve indentação */
    border-left: 1px solid #2a2a2a;        /* guia vertical sutil */
    margin: 2px 0 6px 6px;
}
.skin-black .sidebar-menu .treeview-menu > li > a {
    font-size: 13px;
    line-height: 1.3;
    padding: 7px 12px 7px 20px;            /* indentação confortável */
    color: #cfcfcf;
    border-radius: 8px;
    margin: 2px 6px;                       /* respira e permite arredondado */
    white-space: normal;                   /* pode quebrar em 2 linhas */
    overflow-wrap: break-word;
    hyphens: auto;
    transition: background .15s, color .15s;
}

/* Remover marcador/bullet que aparecia antes do texto */
.skin-black .sidebar-menu .treeview-menu > li > a:before {
    content: none !important;
}

/* Hover/ativo nos submenus */
.skin-black .sidebar-menu .treeview-menu > li > a:hover,
.skin-black .sidebar-menu .treeview-menu > li > a:focus {
    background: #151515;
    color: #ffffff;
}
.skin-black .sidebar-menu .treeview-menu > li.active > a {
    background: #121212;
    color: #ffffff;
}

/* Acessibilidade: foco visível via teclado */
.skin-black .sidebar-menu a:focus {
    box-shadow: 0 0 0 2px rgba(42, 133, 255, .25);
}

/* Mini-sidebar (colapsada) */
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span,
.sidebar-mini.sidebar-collapse .treeview-menu {
    display: none !important;
}

/* =========================================================
   RESPONSIVE SETTINGS (ANTIGO responsive.css integrados aqui)
   Estes ajustes reduzem tamanhos de fonte e larguras para
   melhor apresentação em telas menores. Ajuste conforme
   necessário para o seu layout.  O botão de alternância
   permanece oculto em todas as telas (vide topo do arquivo).
   ========================================================= */

/* <= 1024px */
@media screen and (max-width: 1024px) {
    .conteudo {
        margin-left: 0;
    }
    div .dataTables_wrapper div.dataTables_filter input {
        width: auto;
    }
    .tabela tr td button {
        font-size: 0.8em;
    }
    .tabela tr th {
        font-size: 1.0em;
    }
    .tabela tr td {
        font-size: 0.8em;
    }
    .espaco-icone {
        font-size: 0.7em;
    }
    .tabela-info tr th {
        font-size: 1.0em;
    }
    .tabela-info tr td {
        font-size: 0.8em;
    }
    h3 {
        font-size: 1.3em;
    }
}

/* <= 768px */
@media screen and (max-width: 768px) {
    .conteudo {
        margin-left: 0;
    }
    div .dataTables_wrapper div.dataTables_filter input {
        width: auto;
    }
    /* A largura é controlada globalmente para telas pequenas; removido valor percentual */
    .box-menu {
        background: #000000;
    }
    .tabela tr td button {
        font-size: 0.8em;
    }
    .tabela tr th {
        font-size: 0.6em;
    }
    .tabela tr td {
        font-size: 0.6em;
    }
    .espaco-icone {
        font-size: 0.6em;
    }
}

/* <= 640px */
@media screen and (max-width: 640px) {
    .conteudo {
        margin-left: 0;
    }
    div .dataTables_wrapper div.dataTables_filter input {
        width: auto;
    }
    /* A largura será definida por regras gerais em telas pequenas */
    .box-menu {
        background: #000000;
    }
    .tabela tr td button {
        font-size: 0.7em;
    }
    .tabela tr th {
        font-size: 0.7em;
    }
    .tabela tr td {
        font-size: 0.6em;
    }
    .espaco-icone {
        font-size: 0.6em;
    }
}

/* <= 480px */
@media screen and (max-width: 480px) {
    .conteudo {
        margin-left: 0;
    }
    .box-titulo {
        font-size: 0.2em;
    }
    div .dataTables_wrapper div.dataTables_filter input {
        width: auto;
    }
    /* A largura será definida por regras gerais em telas pequenas */
    .box-menu {
        background: #000000;
    }
    .tabela tr td button {
        font-size: 0.5em;
    }
    .tabela tr th {
        font-size: 0.3em;
    }
    .tabela tr td {
        font-size: 0.4em;
    }
    .espaco-icone {
        font-size: 0.6em;
    }
    .tabela-info tr th {
        font-size: 0.8em;
    }
    .tabela-info tr td {
        font-size: 0.7em;
    }
    h3 {
        font-size: 1.0em;
    }
}

/* <= 320px */
@media screen and (max-width: 320px) {
    .small-box p {
        font-size: 0.7em;
    }
    .conteudo {
        margin-left: 0;
    }
    div .dataTables_wrapper div.dataTables_filter input {
        width: auto;
    }
    /* A largura será definida por regras gerais em telas pequenas */
    .box-menu {
        background: #000000;
    }
    .tabela tr td button {
        font-size: 0.1em;
        margin: 0;
    }
    .tabela tr th {
        font-size: 0.1em;
    }
    .tabela tr td {
        font-size: 0.1em;
    }
    .espaco-icone {
        font-size: 0.6em;
    }
    .tabela-info tr th {
        font-size: 0.3em;
    }
    .tabela-info tr td {
        font-size: 0.3em;
    }
    h3 {
        font-size: 0.6em;
    }
}

/* =========================================================
   MENU VISÍVEL EM TELAS PEQUENAS
   Para garantir que o menu apareça em dispositivos menores,
   posicionamos a sidebar na parte superior da página e a
   estendemos para 100% da largura. Isso evita o comportamento
   off‑canvas padrão do AdminLTE que oculta o menu sem o botão
   de alternância. Ajuste estas regras caso deseje outro
   comportamento (por exemplo, overlay).  */
@media screen and (max-width: 767px) {
    /* Sidebar se torna relativa e ocupa a largura total */
    .main-sidebar.box-menu {
        position: relative !important;
        transform: none !important;
        left: 0 !important;
        width: 100% !important;
        height: auto;
        top: 0;
        bottom: auto;
    }
    /* Em modo colapsado (mini), ainda ocupa 100% */
    body.sidebar-mini.sidebar-collapse .main-sidebar.box-menu {
        width: 100% !important;
    }
    /* Conteúdo sem deslocamento lateral */
    .content-wrapper,
    .main-footer,
    .content {
        margin-left: 0 !important;
    }
    /* Opcional: remover largura personalizada de box-menu que pode
       conflitar com 100% */
    .box-menu {
        width: 100% !important;
    }
}
    border: 1px solid #2d4f6c;
}
.tabela-cliente td:last-child, .tabela-cliente th:last-child {
    text-align: right;
}
/* ==== BOTÃO HAMBÚRGUER ESCONDIDO ==== */
/* Esconder o botão de alternância (hambúrguer) em todas as telas. O menu
   permanecerá fixo no desktop e a versão mobile será controlada por CSS
   sem a necessidade do botão. */
.skin-black .main-header .navbar > .sidebar-toggle {
    display: none !important;
}

/* =========================================================
   AJUSTES RESPONSIVOS DE MENU (ESTILO BONITO)

/* ==============================
   Modern overrides (non-invasivo)
   - Melhora aparência de small-box, login e header
   - Usa Montserrat definida no template.php
   ============================== */

body {
    font-family: 'Montserrat', 'Source Sans Pro', sans-serif;
    background: linear-gradient(120deg, #f6f8fa 0%, #eef3f8 100%);
    color: #222222;
}







.small-box {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(20,20,40,0.06);
    transition: transform .15s ease, box-shadow .15s ease;
    overflow: hidden;
}
.small-box:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(20,20,40,0.10);
}
.small-box .inner h3 {
    font-weight: 700;
    font-size: 2.2rem;
}
.small-box .inner p {
    font-weight: 600;
    opacity: .9;
}

/* Ajustes do login para aparência moderna */
.login-page {
    background: linear-gradient(180deg,#0f1724 0%, #0b2a3a 40%, #eef3f8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-box {
    width: 420px;
    max-width: 95%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(2,6,23,0.12);
    padding: 20px;
}
.login-box .login-logo a {
    color: #0b4f6c;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.btn-primary {
    background: linear-gradient(90deg,#0b6c4f 0%,#0b4f6c 100%);
    border: none;
    box-shadow: 0 6px 18px rgba(11,76,79,0.08);
}

/* Tornar as tabelas e cabeçalhos um pouco mais arejados */
.box-header > .box-title {
    font-weight: 700;
}

/* Garantir contraste em menus escuros */
.skin-black .sidebar-menu > li > a {
    color: #e6eef0;
}

   ========================================================= */

/* <= 1024px: ajuste de fontes e paddings do menu */
@media screen and (max-width: 1024px) {
    .skin-black .sidebar-menu > li > a {
        font-size: 13.5px;
        padding: 9px 10px;
    }
    .skin-black .sidebar-menu .treeview-menu > li > a {
        font-size: 12.5px;
        padding: 6px 10px 6px 16px;
    }
}

/* <= 768px */
@media screen and (max-width: 768px) {
    .skin-black .sidebar-menu > li > a {
        font-size: 13px;
        padding: 8px 10px;
    }
    .skin-black .sidebar-menu .treeview-menu > li > a {
        font-size: 12px;
        padding: 6px 10px 6px 14px;
    }
}

/* <= 640px */
@media screen and (max-width: 640px) {
    .skin-black .sidebar-menu > li > a {
        font-size: 12.5px;
        padding: 8px 10px;
    }
    .skin-black .sidebar-menu .treeview-menu > li > a {
        font-size: 11.5px;
        padding: 6px 10px 6px 12px;
    }
}

/* <= 480px */
@media screen and (max-width: 480px) {
    .skin-black .sidebar-menu > li > a {
        font-size: 12px;
        padding: 8px 10px;
    }
    .skin-black .sidebar-menu .treeview-menu > li > a {
        font-size: 11px;
        padding: 6px 10px 6px 10px;
    }
}

/* <= 320px */
@media screen and (max-width: 320px) {
    .skin-black .sidebar-menu > li > a {
        font-size: 11.5px;
        padding: 7px 8px;
    }
    .skin-black .sidebar-menu .treeview-menu > li > a {
        font-size: 10.5px;
        padding: 6px 8px 6px 8px;
    }
}

/* ==== ESTILOS EXISTENTES ==== */
.audiencia {
    font-size: 1.5em;
    text-transform: uppercase;
}

/*
 * Aplica uma fonte moderna (Montserrat) por padrão em todo o sistema.
 * Caso o navegador não carregue Montserrat, a fonte anterior (Source Sans Pro)
 * ou qualquer sans-serif será usada como fallback.
 */
body, .sidebar-menu > li > a, .sidebar-menu .treeview-menu > li > a,
.box-header, .titulo-tabelas-alertas, .tabela-info, .tabela {
    font-family: 'Montserrat', 'Source Sans Pro', sans-serif;
}

.espaco-icone {
    margin-left: 2%;
    text-transform: uppercase;
}

.conteudo {
    margin-left: 0%;
}

/* ==== AJUSTE PARA O MENU LATERAL ==== */
.box-menu {
    background: #000000;
    /* removido width fixa de 22% para permitir o collapse */
}

/* Largura padrão quando aberto (desktop) ajustada para acomodar nomes maiores */
@media (min-width: 768px) {
    body:not(.sidebar-collapse) .main-sidebar.box-menu {
        width: 300px !important; /* aumentada novamente para 280px para acomodar textos mais longos */
    }
    /* Ajusta a margem do conteúdo e rodapé para alinhar com a nova largura da sidebar */
    body:not(.sidebar-collapse) .content-wrapper,
    body:not(.sidebar-collapse) .main-footer {
        margin-left: 280px !important;
    }
}

/* Largura no modo recolhido (mini sidebar) */
.sidebar-mini.sidebar-collapse .main-sidebar.box-menu {
    width: 50px !important; /* padrão recolhido AdminLTE */
}

/* ==== TABELAS ==== */

/* Ajuste flexível para a tabela de clientes */
.tabela-cliente {
    table-layout: auto !important;
}
.tabela-cliente th, .tabela-cliente td {
    padding: 14px 12px !important;
    vertical-align: middle;
    word-break: break-word;
}
.tabela-cliente td {
    font-size: 1.08em;
}
.tabela-cliente th {
    font-size: 1.15em;
}
.tabela-cliente .cliente {
    max-width: 260px;
    min-width: 120px;
    white-space: normal;
}
.tabela-cliente td, .tabela-cliente th {
    transition: padding 0.2s, font-size 0.2s;
}

@media (max-width: 1024px) {
    .tabela-cliente th, .tabela-cliente td {
        padding: 10px 6px !important;
        font-size: 0.98em;
    }
    .tabela-cliente .cliente {
        max-width: 180px;
    }
}
@media (max-width: 768px) {
    .tabela-cliente th, .tabela-cliente td {
        padding: 7px 4px !important;
        font-size: 0.92em;
    }
    .tabela-cliente .cliente {
        max-width: 120px;
    }
}
@media (max-width: 480px) {
    .tabela-cliente th, .tabela-cliente td {
        padding: 5px 2px !important;
        font-size: 0.85em;
    }
    .tabela-cliente .cliente {
        max-width: 80px;
    }
}

.tabela tr th {
    font-size: 1.3em;
}

.tabela tr td button {
    margin: 1%;
}

.tabela tr td {
    font-size: 1.1em;
}

/* ==== TÍTULOS E INFORMAÇÕES ==== */
.titulo-tabelas-alertas {
    margin-top: 10%;
    font-size: 1.3em;
    text-transform: uppercase;
}

.box-header > .fa,
.box-header > .glyphicon,
.box-header > .ion,
.box-header .box-title {
    font-size: 1.4em;
    margin-top: 1%;
    text-transform: uppercase;
}

.tabela-info {
    margin-top: 2%;
}

.tabela-info tr th {
    font-size: 1.3em;
}

.tabela-info tr td {
    font-size: 1.1em;
}

/* =========================================================
   MENU LATERAL – ESTILO BONITO E COMPACTO
   ========================================================= */

/* Item do 1º nível (menu principal) */
.skin-black .sidebar-menu > li > a {
    font-size: 12px;
    line-height: 1.25;
    padding: 10px 12px;
    letter-spacing: 0;
    text-transform: none;
    display: flex;
    align-items: center;
    gap: 8px;                /* espaço entre ícone e texto */
    white-space: nowrap;      /* evita quebrar o 1º nível */
    overflow: hidden;
    text-overflow: ellipsis;  /* reticências quando precisar */
    color: #eaeaea;
    border-radius: 10px;
    margin: 4px 8px;          /* dá “respiro” e borda arredondada */
    transition: background .15s, color .15s;
}

/* Ícones do 1º nível ligeiramente menores */
.skin-black .sidebar-menu > li > a > .fa,
.skin-black .sidebar-menu > li > a > .ion,
.skin-black .sidebar-menu > li > a > .glyphicon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

/* Hover/focus elegantes */
.skin-black .sidebar-menu > li > a:hover,
.skin-black .sidebar-menu > li > a:focus {
    background: #1f1f1f;
    color: #ffffff;
    outline: none;
}

/* Ativo/aberto com contraste sutil */
.skin-black .sidebar-menu > li.active > a,
.skin-black .sidebar-menu > li.menu-open > a {
    background: #1b1b1b;
    color: #ffffff;
}

/* Setinha (caret) menor */
.skin-black .sidebar-menu > li > a .fa-angle-left {
    margin-top: 2px;
    font-size: 12px;
}

/* Submenus: mais bonitos e sem "pontos" */
.skin-black .sidebar-menu .treeview-menu {
    padding-left: 10px;                    /* leve indentação */
    border-left: 1px solid #2a2a2a;        /* guia vertical sutil */
    margin: 2px 0 6px 6px;
}
.skin-black .sidebar-menu .treeview-menu > li > a {
    font-size: 13px;
    line-height: 1.3;
    padding: 7px 12px 7px 20px;            /* indentação confortável */
    color: #cfcfcf;
    border-radius: 8px;
    margin: 2px 6px;                       /* respira e permite arredondado */
    white-space: normal;                   /* pode quebrar em 2 linhas */
    overflow-wrap: break-word;
    hyphens: auto;
    transition: background .15s, color .15s;
}

/* Remover marcador/bullet que aparecia antes do texto */
.skin-black .sidebar-menu .treeview-menu > li > a:before {
    content: none !important;
}

/* Hover/ativo nos submenus */
.skin-black .sidebar-menu .treeview-menu > li > a:hover,
.skin-black .sidebar-menu .treeview-menu > li > a:focus {
    background: #151515;
    color: #ffffff;
}
.skin-black .sidebar-menu .treeview-menu > li.active > a {
    background: #121212;
    color: #ffffff;
}

/* Acessibilidade: foco visível via teclado */
.skin-black .sidebar-menu a:focus {
    box-shadow: 0 0 0 2px rgba(42, 133, 255, .25);
}

/* Mini-sidebar (colapsada) */
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a {
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
}
.sidebar-mini.sidebar-collapse .sidebar-menu > li > a > span,
.sidebar-mini.sidebar-collapse .treeview-menu {
    display: none !important;
}

/* =========================================================
   RESPONSIVE SETTINGS (ANTIGO responsive.css integrados aqui)
   Estes ajustes reduzem tamanhos de fonte e larguras para
   melhor apresentação em telas menores. Ajuste conforme
   necessário para o seu layout.  O botão de alternância
   permanece oculto em todas as telas (vide topo do arquivo).
   ========================================================= */

/* <= 1024px */
@media screen and (max-width: 1024px) {
    .conteudo {
        margin-left: 0;
    }
    div .dataTables_wrapper div.dataTables_filter input {
        width: auto;
    }
    .tabela tr td button {
        font-size: 0.8em;
    }
    .tabela tr th {
        font-size: 1.0em;
    }
    .tabela tr td {
        font-size: 0.8em;
    }
    .espaco-icone {
        font-size: 0.7em;
    }
    .tabela-info tr th {
        font-size: 1.0em;
    }
    .tabela-info tr td {
        font-size: 0.8em;
    }
    h3 {
        font-size: 1.3em;
    }
}

/* <= 768px */
@media screen and (max-width: 768px) {
    .conteudo {
        margin-left: 0;
    }
    div .dataTables_wrapper div.dataTables_filter input {
        width: auto;
    }
    /* A largura é controlada globalmente para telas pequenas; removido valor percentual */
    .box-menu {
        background: #000000;
    }
    .tabela tr td button {
        font-size: 0.8em;
    }
    .tabela tr th {
        font-size: 0.6em;
    }
    .tabela tr td {
        font-size: 0.6em;
    }
    .espaco-icone {
        font-size: 0.6em;
    }
}

/* <= 640px */
@media screen and (max-width: 640px) {
    .conteudo {
        margin-left: 0;
    }
    div .dataTables_wrapper div.dataTables_filter input {
        width: auto;
    }
    /* A largura será definida por regras gerais em telas pequenas */
    .box-menu {
        background: #000000;
    }
    .tabela tr td button {
        font-size: 0.7em;
    }
    .tabela tr th {
        font-size: 0.7em;
    }
    .tabela tr td {
        font-size: 0.6em;
    }
    .espaco-icone {
        font-size: 0.6em;
    }
}

/* <= 480px */
@media screen and (max-width: 480px) {
    .conteudo {
        margin-left: 0;
    }
    .box-titulo {
        font-size: 0.2em;
    }
    div .dataTables_wrapper div.dataTables_filter input {
        width: auto;
    }
    /* A largura será definida por regras gerais em telas pequenas */
    .box-menu {
        background: #000000;
    }
    .tabela tr td button {
        font-size: 0.5em;
    }
    .tabela tr th {
        font-size: 0.3em;
    }
    .tabela tr td {
        font-size: 0.4em;
    }
    .espaco-icone {
        font-size: 0.6em;
    }
    .tabela-info tr th {
        font-size: 0.8em;
    }
    .tabela-info tr td {
        font-size: 0.7em;
    }
    h3 {
        font-size: 1.0em;
    }
}

/* <= 320px */
@media screen and (max-width: 320px) {
    .small-box p {
        font-size: 0.7em;
    }
    .conteudo {
        margin-left: 0;
    }
    div .dataTables_wrapper div.dataTables_filter input {
        width: auto;
    }
    /* A largura será definida por regras gerais em telas pequenas */
    .box-menu {
        background: #000000;
    }
    .tabela tr td button {
        font-size: 0.1em;
        margin: 0;
    }
    .tabela tr th {
        font-size: 0.1em;
    }
    .tabela tr td {
        font-size: 0.1em;
    }
    .espaco-icone {
        font-size: 0.6em;
    }
    .tabela-info tr th {
        font-size: 0.3em;
    }
    .tabela-info tr td {
        font-size: 0.3em;
    }
    h3 {
        font-size: 0.6em;
    }
}

/* =========================================================
   MENU VISÍVEL EM TELAS PEQUENAS
   Para garantir que o menu apareça em dispositivos menores,
   posicionamos a sidebar na parte superior da página e a
   estendemos para 100% da largura. Isso evita o comportamento
   off‑canvas padrão do AdminLTE que oculta o menu sem o botão
   de alternância. Ajuste estas regras caso deseje outro
   comportamento (por exemplo, overlay).  */
@media screen and (max-width: 767px) {
    /* Sidebar se torna relativa e ocupa a largura total */
    .main-sidebar.box-menu {
        position: relative !important;
        transform: none !important;
        left: 0 !important;
        width: 100% !important;
        height: auto;
        top: 0;
        bottom: auto;
    }
    /* Em modo colapsado (mini), ainda ocupa 100% */
    body.sidebar-mini.sidebar-collapse .main-sidebar.box-menu {
        width: 100% !important;
    }
    /* Conteúdo sem deslocamento lateral */
    .content-wrapper,
    .main-footer,
    .content {
        margin-left: 0 !important;
    }
    /* Opcional: remover largura personalizada de box-menu que pode
       conflitar com 100% */
    .box-menu {
        width: 100% !important;
    }
}
