/* 
 * Nexus Statistic - Estilo personalizado inspirado no site da SEFAZ-MS
 */

:root {
    /* Cores Primárias - Padrão Oficial Nexus Statistic */
    --primary-blue: #2c5aa0;
    --primary-blue-dark: #1e3d6f;
    --primary-blue-light: #4a7bc8;
    
    /* Cores Secundárias */
    --secondary-gray: #6c757d;
    --secondary-gray-light: #f8f9fa;
    --secondary-gray-dark: #495057;
    
    /* Cores de Status */
    --success-green: #28a745;
    --warning-yellow: #ffc107;
    --danger-red: #dc3545;
    --info-blue: #17a2b8;
    
    /* Cores de Fundo */
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --bg-dark: #343a40;
    
    /* Cores Legadas (manter compatibilidade) */
    --accent-green: #1D8B4E;      /* Verde institucional */
    --accent-yellow: #ffcd00;     /* Amarelo institucional */
    --light-gray: #f5f5f5;        /* Cinza claro para fundo */
    --dark-gray: #333333;         /* Cinza escuro para texto */
    --medium-gray: #6c757d;       /* Cinza médio para texto secundário */
    --light-text: #ffffff;        /* Texto claro */
    --lime: #c2ff00;              /* Verde lima (cor original) */
    
    /* Gradientes Atualizados */
    --blue-gradient: linear-gradient(to right, var(--primary-blue), var(--primary-blue-light));
    --green-gradient: linear-gradient(to right, var(--success-green), #27ae60);
    --lime-gradient: linear-gradient(135deg, #a8ff00, #c2ff00);
    
    /* Elementos de UI */
    --border-radius: 0.375rem;    /* 6px - Padrão Bootstrap */
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
}

/* Estilos gerais */
body {
    background-color: var(--light-gray);
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--dark-gray);
    line-height: 1.6;
    font-size: 14px;
}

/* Cabeçalho verde estilo SEFAZ-MS */
.header-green {
    background-color: var(--accent-green);
    height: 8px;
    width: 100%;
}

/* Navbar estilo SEFAZ-MS */
.navbar {
    background-color: var(--primary-blue) !important;
    box-shadow: var(--box-shadow);
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--light-text) !important;
}

.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}

/* Cores e efeitos originais para textos e ícones */
.text-lime {
    color: var(--lime) !important;
}

.glow-icon {
    text-shadow: 0 0 10px rgba(194, 255, 0, 0.5);
    animation: glow 2s infinite;
}

@keyframes glow {
    0% { text-shadow: 0 0 5px rgba(194, 255, 0, 0.5); }
    50% { text-shadow: 0 0 20px rgba(194, 255, 0, 0.8); }
    100% { text-shadow: 0 0 5px rgba(194, 255, 0, 0.5); }
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--light-text);
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-nav .nav-link.active {
    border-bottom: 3px solid var(--accent-yellow);
}

/* Breadcrumbs estilo SEFAZ-MS */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
}

.breadcrumb-item a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--medium-gray);
}

.breadcrumb-item + .breadcrumb-item::before {
    color: var(--medium-gray);
}

/* Títulos estilo SEFAZ-MS */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-blue);
    font-weight: 700;
    margin-bottom: 1.2rem;
}

h1, h2 {
    position: relative;
    padding-bottom: 0.5rem;
}

h1::after, h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background-color: var(--accent-yellow);
}

/* Cards Padronizados - Nexus Statistic */
.card {
    border: 1px solid #dee2e6;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    margin-bottom: 1rem;
    background-color: var(--bg-white);
}

.card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.card-header {
    background-color: var(--primary-blue);
    color: var(--light-text);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #dee2e6;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.card-body {
    padding: 1rem;
}

.card-footer {
    background-color: var(--secondary-gray-light);
    border-top: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

/* Botões estilo modernizado - Padronização Global */
.btn {
    border-radius: var(--border-radius);
    font-weight: 500;
    padding: 0.65rem 1.25rem;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.02em;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
    min-height: 38px;
    line-height: 1.5;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.btn:hover::after {
    width: 300%;
    height: 300%;
}

/* Botões Padronizados - Nexus Statistic */
.btn-primary {
    background-color: var(--primary-blue);
    border: none;
    color: var(--light-text);
}

.btn-primary:hover {
    background-color: var(--primary-blue-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-success {
    background-color: var(--success-green);
    border: none;
    color: var(--light-text);
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-success:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-warning {
    background-color: var(--warning-yellow);
    color: var(--dark-gray);
    border: none;
}

.btn-warning:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-warning:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-danger {
    background-color: var(--danger-red);
    border: none;
    color: var(--light-text);
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-danger:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-info {
    background-color: var(--info-blue);
    border: none;
    color: var(--light-text);
}

.btn-info:hover {
    background-color: #138496;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-info:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background-color: var(--secondary-gray);
    border: none;
    color: var(--light-text);
}

.btn-secondary:hover {
    background-color: var(--secondary-gray-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-lime {
    background: var(--lime-gradient);
    color: #333;
    border: none;
}

.btn-lime:hover {
    background: linear-gradient(135deg, #b2ff35, #c9ff33);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-lime:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Botões Outline */
.btn-outline-primary {
    color: var(--primary-blue);
    background-color: transparent;
    border: 1px solid var(--primary-blue);
}

.btn-outline-primary:hover {
    color: white;
    background-color: var(--primary-blue);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-outline-secondary {
    color: var(--secondary-gray);
    background-color: transparent;
    border: 1px solid var(--secondary-gray);
}

.btn-outline-secondary:hover {
    color: white;
    background-color: var(--secondary-gray);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Botões de Ação Padronizados */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    text-decoration: none;
    transition: var(--transition);
    border: none;
}

.action-btn i {
    font-size: 0.875rem;
}

.action-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.action-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Cores específicas para botões de ação */
.btn-info, .action-btn.btn-info {
    background-color: var(--info-blue);
    color: white;
}

.btn-warning, .action-btn.btn-warning {
    background-color: var(--warning-yellow);
    color: var(--dark-gray);
}

.btn-danger, .action-btn.btn-danger {
    background-color: var(--danger-red);
    color: white;
}

/* Efeito Glow Especial */
.btn-glow {
    box-shadow: 0 0 10px rgba(44, 90, 160, 0.3);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btn-glow:hover {
    box-shadow: 0 0 20px rgba(44, 90, 160, 0.5);
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.8rem 1.5rem;
    font-size: 1rem;
}

/* Formulários estilo modernizado */
.form-control {
    border-radius: var(--border-radius);
    padding: 0.65rem 0.85rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    background-color: #fff;
    transition: all 0.25s ease;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 0.2rem rgba(44, 90, 160, 0.25);
    background-color: #fff;
}

.form-control::placeholder {
    color: #aaa;
    font-size: 0.9rem;
}

.form-control:disabled,
.form-control[readonly] {
    background-color: #f8f9fa;
    opacity: 0.8;
}

.form-label {
    font-weight: 600;
    color: var(--dark-gray);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

.form-text {
    color: var(--medium-gray);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.input-group {
    border-radius: var(--border-radius);
    overflow: hidden;
}

.input-group-text {
    background-color: #f1f3f5;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--medium-gray);
    font-size: 0.9rem;
}

/* Estilizando checkbox e radio */
.form-check-input {
    width: 1.1em;
    height: 1.1em;
    margin-top: 0.2em;
    vertical-align: top;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid rgba(0, 0, 0, 0.25);
    appearance: none;
    color-adjust: exact;
    transition: all 0.25s ease;
}

.form-check-input[type="checkbox"] {
    border-radius: 0.25em;
}

.form-check-input[type="radio"] {
    border-radius: 50%;
}

.form-check-input:checked {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

.form-check-input:checked[type="checkbox"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10l3 3l6-6'/%3e%3c/svg%3e");
}

.form-check-input:checked[type="radio"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3ccircle cx='10' cy='10' r='5' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-label {
    margin-left: 0.5rem;
    color: var(--dark-gray);
    font-size: 0.95rem;
}

/* Select estilizado */
select.form-select {
    cursor: pointer;
    padding-right: 2rem;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    appearance: none;
}

select.form-select:focus {
    border-color: var(--secondary-blue);
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 179, 0.25);
}

/* Range slider */
.form-range {
    width: 100%;
    height: 1rem;
    padding: 0;
    background-color: transparent;
    appearance: none;
}

.form-range:focus {
    outline: none;
}

.form-range::-webkit-slider-thumb {
    width: 1rem;
    height: 1rem;
    margin-top: -0.25rem;
    background-color: var(--primary-blue);
    border: 0;
    border-radius: 1rem;
    appearance: none;
    cursor: pointer;
}

.form-range::-webkit-slider-runnable-track {
    width: 100%;
    height: 0.5rem;
    color: transparent;
    background-color: #dee2e6;
    border-radius: 1rem;
}

/* Tabelas Padronizadas - Nexus Statistic */
.table {
    border: 1px solid #dee2e6;
    background-color: var(--bg-white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 1rem;
}

.table thead th {
    background-color: var(--primary-blue);
    color: var(--light-text);
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding: 0.75rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: var(--secondary-gray-light);
}

.table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    border-top: 1px solid #dee2e6;
}

.table-hover tbody tr:hover {
    background-color: rgba(44, 90, 160, 0.05);
}

.table-responsive {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

/* Alertas agora estão em messages.css */

/* Dropdown estilo SEFAZ-MS */
.dropdown-menu {
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background-color: rgba(0, 61, 122, 0.05);
}

.dropdown-item.active, .dropdown-item:active {
    background-color: var(--primary-blue);
}

/* Estilo para menu mobile */
.list-group-item {
    border-radius: 0;
    border-left: none;
    border-right: none;
}

.list-group-item-secondary {
    color: var(--light-text);
    background-color: var(--primary-blue);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
}

.list-group-item-action:hover {
    background-color: rgba(0, 61, 122, 0.05);
}

/* Footer estilo SEFAZ-MS */
.footer {
    background-color: var(--primary-blue);
    color: var(--light-text);
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer h5 {
    color: var(--light-text);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.03em;
}

.footer p, .footer a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer a:hover {
    color: var(--light-text);
    text-decoration: none;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    margin-top: 2rem;
}

.footer-icon {
    color: var(--accent-yellow);
    margin-right: 0.5rem;
}

/* Helpers e utilidades */
.text-primary-blue {
    color: var(--primary-blue) !important;
}

.text-secondary-blue {
    color: var(--secondary-blue) !important;
}

.text-accent-green {
    color: var(--accent-green) !important;
}

.text-accent-yellow {
    color: var(--accent-yellow) !important;
}

.bg-primary-blue {
    background-color: var(--primary-blue) !important;
}

.bg-secondary-blue {
    background-color: var(--secondary-blue) !important;
}

.bg-accent-green {
    background-color: var(--accent-green) !important;
}

.bg-accent-yellow {
    background-color: var(--accent-yellow) !important;
}

/* Acessibilidade */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background-color: var(--primary-blue);
    color: var(--light-text);
    padding: 0.5rem 1rem;
    z-index: 9999;
    transition: top 0.3s;
}

.skip-to-content:focus {
    top: 0;
}

/* Estilo específico para unidade prisional */
.unidade-prisional {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 0.85rem;
}

.unidade-prisional i {
    color: var(--accent-yellow);
}

/* Customização de paginação */
.pagination .page-link {
    color: var(--primary-blue);
    border-color: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
}

/* Personalização para listas de apreensões */
.apreensao-item {
    border-left: 4px solid var(--primary-blue);
    padding: 1rem;
    margin-bottom: 1rem;
    background-color: #fff;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

.apreensao-item:hover {
    border-left-color: var(--accent-yellow);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Badge personalizado */
.badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.25em 0.5em;
    border-radius: 2px;
}

.badge-warning {
    background-color: var(--accent-yellow);
    color: var(--dark-gray);
}

/* ===== MELHORIAS ESPECÍFICAS PARA NOTEBOOKS ===== */

/* Notebook - Tela média (1024px - 1366px) */
@media (min-width: 1024px) and (max-width: 1366px) {
    /* Reduzir tamanhos de fonte para melhor densidade */
    body {
        font-size: 13px;
    }
    
    /* Títulos menores */
    h1 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    h2 {
        font-size: 1.3rem;
        margin-bottom: 0.8rem;
    }
    
    h3 {
        font-size: 1.1rem;
        margin-bottom: 0.7rem;
    }
    
    /* Cards mais compactos */
    .card {
        margin-bottom: 1rem;
    }
    
    .card-header {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    /* Botões menores */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .btn-sm {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .btn-lg {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
    
    /* Formulários mais compactos */
    .form-control {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .form-text {
        font-size: 0.75rem;
    }
    
    /* Tabelas mais compactas */
    .table thead th {
        padding: 0.6rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .table tbody td {
        padding: 0.6rem 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Navbar mais compacta */
    .navbar {
        padding: 0.5rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .navbar-dark .navbar-nav .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    /* Breadcrumbs menores */
    .breadcrumb {
        padding: 0.5rem 0;
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }
    
    /* Container mais compacto */
    .container-fluid {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Headers de seção mais compactos */
    .header-buttons {
        gap: 0.5rem;
    }
    
    .header-buttons .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.8rem;
    }
    
    /* Action buttons mais compactos */
    .action-buttons {
        gap: 0.2rem;
    }
    
    .action-buttons .btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.5rem;
    }
    
    /* Badges menores */
    .badge {
        font-size: 0.7rem;
        padding: 0.2em 0.4em;
    }
    
    /* Paginação mais compacta */
    .pagination .page-link {
        padding: 0.4rem 0.6rem;
        font-size: 0.8rem;
    }
    
    /* Espaçamentos reduzidos */
    .mb-4 {
        margin-bottom: 1rem !important;
    }
    
    .mb-3 {
        margin-bottom: 0.75rem !important;
    }
    
    .py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .py-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /* Grid mais denso */
    .row {
        margin-left: -0.5rem;
        margin-right: -0.5rem;
    }
    
    .col, .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    /* Formulários em colunas mais estreitas */
    .form-group {
        margin-bottom: 1rem;
    }
    
    /* Input groups mais compactos */
    .input-group-text {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    /* Dropdowns mais compactos */
    .dropdown-item {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Alertas mais compactos */
    .alert {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Footer mais compacto */
    .footer {
        padding: 1.5rem 0;
        margin-top: 1.5rem;
    }
    
    .footer h5 {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .footer p, .footer a {
        font-size: 0.8rem;
    }
}

/* ===== RESPONSIVIDADE EXISTENTE ===== */

/* Ajustes para responsividade */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    h1, h2 {
        font-size: 1.5rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
}

/* Responsividade específica para página de pessoas presas */
.header-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    justify-content: flex-start;
}

/* Desktop - Tela grande (>= 992px) */
@media (min-width: 992px) {
    .header-buttons {
        flex-wrap: nowrap;
        gap: 0.75rem;
    }
    
    .action-buttons .btn {
        min-width: auto;
    }
}

/* Tablet - Tela média (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .header-buttons {
        justify-content: flex-end;
        width: 100%;
    }
    
    .header-buttons .btn {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
    
    .header-buttons .btn .fas {
        margin-right: 0.25rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.2rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        font-size: 0.75rem;
        padding: 0.4rem 0.6rem;
    }
    
    /* Ocultar colunas menos importantes em tablets */
    .table th:nth-child(3), /* CPF */
    .table td:nth-child(3),
    .table th:nth-child(7), /* Setor */
    .table td:nth-child(7) {
        display: none;
    }
}

/* Smartphone - Tela pequena (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .d-sm-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .header-buttons {
        margin-top: 1rem;
        justify-content: center;
        width: 100%;
    }
    
    .header-buttons .btn {
        flex: 1;
        font-size: 0.75rem;
        padding: 0.5rem 0.5rem;
        text-align: center;
    }
    
    .header-buttons .btn .fas {
        display: block;
        margin-bottom: 0.25rem;
        margin-right: 0;
    }
    
    .action-buttons {
        flex-direction: row;
        justify-content: center;
        gap: 0.15rem;
    }
    
    .action-buttons .btn {
        flex: 1;
        font-size: 0.7rem;
        padding: 0.3rem 0.4rem;
        min-width: 35px;
    }
    
    .action-buttons .btn .fas {
        font-size: 0.8rem;
    }
    
    /* Ocultar mais colunas em smartphones */
    .table th:nth-child(1), /* Data Cadastro */
    .table td:nth-child(1),
    .table th:nth-child(3), /* CPF */
    .table td:nth-child(3),
    .table th:nth-child(4), /* Idade */
    .table td:nth-child(4),
    .table th:nth-child(7), /* Setor */
    .table td:nth-child(7),
    .table th:nth-child(8), /* Plantão */
    .table td:nth-child(8) {
        display: none;
    }
    
    .table {
        font-size: 0.8rem;
    }
    
    .table th,
    .table td {
        padding: 0.5rem 0.25rem;
    }
}

/* Tela muito pequena (< 576px) */
@media (max-width: 575px) {
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .d-sm-flex {
        flex-direction: column;
        align-items: stretch !important;
    }
    
    .h3 {
        font-size: 1.25rem;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .header-buttons {
        margin-top: 1rem;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
    }
    
    .header-buttons .btn {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.75rem;
        text-align: center;
    }
    
    .header-buttons .btn .fas {
        margin-right: 0.5rem;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        font-size: 0.75rem;
        padding: 0.5rem;
        text-align: center;
    }
    
    .action-buttons .btn .fas {
        margin-right: 0.5rem;
    }
    
    /* Mostrar apenas colunas essenciais */
    .table th:nth-child(1), /* Data Cadastro */
    .table td:nth-child(1),
    .table th:nth-child(3), /* CPF */
    .table td:nth-child(3),
    .table th:nth-child(4), /* Idade */
    .table td:nth-child(4),
    .table th:nth-child(5), /* Tipo de Indivíduo */
    .table td:nth-child(5),
    .table th:nth-child(7), /* Setor */
    .table td:nth-child(7),
    .table th:nth-child(8), /* Plantão */
    .table td:nth-child(8) {
        display: none;
    }
    
    .table {
        font-size: 0.75rem;
    }
    
    .table th,
    .table td {
        padding: 0.4rem 0.2rem;
        vertical-align: middle;
    }
    
    .card-header {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    .badge {
        font-size: 0.65rem;
        padding: 0.2em 0.4em;
    }
    
    /* Botão central responsivo */
    .text-center .btn {
        width: 100%;
        margin-top: 1rem;
        font-size: 0.9rem;
        padding: 0.75rem;
    }
    
    /* Estado vazio responsivo */
    .text-center.py-4 {
        padding: 2rem 1rem !important;
    }
    
    .text-center.py-4 .fa-3x {
        font-size: 2rem !important;
    }
    
    .text-center.py-4 h5 {
        font-size: 1rem;
    }
    
    .text-center.py-4 p {
        font-size: 0.9rem;
    }
}

/* Fim do arquivo - tooltips não precisam de classes customizadas com o método simples */

/* Tooltip azul para limite */
.tooltip-limite .tooltip-inner {
    background-color: #2196F3 !important;
    color: #fff !important;
}
/* Tooltip verde para ilimitado */
.tooltip-ilimitado .tooltip-inner {
    background-color: #1D8B4E !important;
    color: #fff !important;
}
/* Tooltip erro (opcional) */
.tooltip-erro .tooltip-inner {
    background-color: #dc3545 !important;
    color: #fff !important;
}