/* ========================================
   SISTEMA DE ORDENS DE SERVIÇO - GCM
   ESTILOS CSS COMPLETOS
   ======================================== */

/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

/* ========================================
   FORMULÁRIO PÚBLICO
   ======================================== */

.formulario-publico {
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.header-publico {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.logo-publico {
    display: block;
    margin: 0 auto 18px auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 3px solid #eaeaea;
    box-shadow: 0 2px 8px #0001;
}

.header-publico h1 {
    font-size: 2.2em;
    margin-bottom: 10px;
    font-weight: 300;
}

.header-publico p {
    font-size: 1.1em;
    opacity: 0.9;
}

.form-os-publico {
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Estilo para select com muitas opções */
.form-group select {
    max-height: 200px;
}

.form-group select option {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

.form-group select option:hover {
    background-color: #f8f9fa;
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-mes.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3) !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

/* ========================================
   SEÇÃO DE SEGURANÇA
   ======================================== */

.security-dashboard {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 25px;
    margin-bottom: 30px;
}

.security-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.security-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.security-stat-card:hover {
    transform: translateY(-3px);
}

.stat-icon {
    font-size: 2em;
    opacity: 0.9;
}

.stat-info h3 {
    margin: 0 0 5px 0;
    font-size: 0.9em;
    opacity: 0.9;
}

.stat-number {
    font-size: 1.8em;
    font-weight: bold;
    margin: 0;
}

.security-controls {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
}

.control-group h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.control-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.security-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
}

.table-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    padding: 25px;
}

.table-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.2em;
}

.tabela-seguranca {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tabela-seguranca th,
.tabela-seguranca td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.tabela-seguranca th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.tabela-seguranca tr:hover {
    background: #f8f9fa;
}

.btn-bloquear {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.btn-desbloquear {
    background: #28a745;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8em;
}

.ip-address {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #495057;
}

.motivo-bloqueio {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.btn-secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
}

.btn-secondary:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.footer-publico {
    background: #f8f9fa;
    padding: 30px 40px;
    border-top: 1px solid #e9ecef;
    text-align: center;
}

.footer-publico p {
    margin-bottom: 10px;
    color: #6c757d;
}

.link-publico {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.link-publico:hover {
    text-decoration: underline;
}

/* ========================================
   PÁGINA DE LOGIN
   ======================================== */

.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

.login-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.login-logo {
    display: block;
    margin: 0 auto 18px auto;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    background: #fff;
    border: 3px solid #eaeaea;
    box-shadow: 0 2px 8px #0001;
}

.login-header h1 {
    font-size: 1.8em;
    margin-bottom: 10px;
    font-weight: 300;
}

.login-header p {
    opacity: 0.9;
}

.login-form {
    padding: 30px;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-form label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #2c3e50;
    display: block;
}

.login-form input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.login-footer {
    background: #f8f9fa;
    padding: 20px 30px;
    border-top: 1px solid #e9ecef;
    text-align: center;
    font-size: 14px;
}

.login-footer p {
    margin-bottom: 8px;
    color: #6c757d;
}

.btn-logout {
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-logout:hover {
    background: #c82333;
    transform: translateY(-1px);
}

/* ========================================
   SISTEMA PRINCIPAL
   ======================================== */

.sistema-container {
    min-height: 100vh;
    background: #f8f9fa;
}

/* Header do Sistema */
.sistema-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
}

.header-info h1 {
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 5px;
}

.header-info p {
    font-size: 0.9em;
    opacity: 0.8;
}

.user-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-name {
    font-weight: 600;
}

.user-role {
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
}

/* Navegação */
.sistema-nav {
    background: white;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.nav-tabs {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    list-style: none;
    gap: 5px;
}

.nav-tab {
    padding: 15px 25px;
    text-decoration: none;
    color: #6c757d;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
}

.nav-tab:hover {
    color: #667eea;
    background: #f8f9fa;
}

.nav-tab.active {
    color: #667eea;
    border-bottom-color: #667eea;
    background: #f8f9fa;
}

/* Conteúdo Principal */
.sistema-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.section-header {
    margin-bottom: 30px;
    text-align: center;
}

.section-header h2 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 300;
}

.section-header p {
    color: #6c757d;
    font-size: 1.1em;
}

/* Dashboard */
.dashboard-header {
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-header h2 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 300;
}

.dashboard-header p {
    color: #6c757d;
    font-size: 1.1em;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.stat-icon {
    font-size: 2.5em;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
}

.stat-info h3 {
    color: #6c757d;
    font-size: 0.9em;
    font-weight: 500;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-number {
    font-size: 2.2em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.dashboard-chart,
.admin-chart {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-top: 30px;
}

.dashboard-chart h3,
.admin-chart h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3em;
}

/* Formulário de OS */
.form-os {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* Relatórios */
.filtros-relatorio {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filtro-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filtro-group label {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
}

.filtro-group select,
.filtro-group input {
    padding: 8px 12px;
    border: 2px solid #e1e8ed;
    border-radius: 6px;
    font-size: 14px;
}

.tabela-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow-x: auto;
    overflow-y: hidden;
}

.tabela-os {
    width: 100%;
    border-collapse: collapse;
}

.tabela-os th,
.tabela-os td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.tabela-os th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Largura específica para a coluna de ações */
.tabela-os th:last-child,
.tabela-os td:last-child {
    min-width: 280px;
    width: 280px;
    padding: 8px 12px;
    text-align: center;
}

/* Ajuste para colunas menores */
.tabela-os th:nth-child(1), /* Nº OS */
.tabela-os td:nth-child(1) {
    width: 90px;
    min-width: 90px;
    text-align: center;
    font-weight: bold;
}

.tabela-os th:nth-child(2), /* Setor */
.tabela-os td:nth-child(2) {
    width: 100px;
    min-width: 100px;
}

.tabela-os th:nth-child(3), /* Solicitante */
.tabela-os td:nth-child(3) {
    width: 120px;
    min-width: 120px;
}

.tabela-os th:nth-child(4), /* Objeto */
.tabela-os td:nth-child(4) {
    width: 180px;
    min-width: 180px;
}

.tabela-os th:nth-child(5), /* Status */
.tabela-os td:nth-child(5) {
    width: 90px;
    min-width: 90px;
}

.tabela-os th:nth-child(6), /* Responsável */
.tabela-os td:nth-child(6) {
    width: 130px;
    min-width: 130px;
}

.tabela-os th:nth-child(7), /* Data */
.tabela-os td:nth-child(7) {
    width: 100px;
    min-width: 100px;
}

.tabela-os tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pendente {
    background: #fff3cd;
    color: #856404;
}

.status-completa {
    background: #d4edda;
    color: #155724;
}

.status-cancelada {
    background: #f8d7da;
    color: #721c24;
}

.acoes-os {
    display: flex;
    gap: 2px;
    flex-wrap: nowrap;
    min-width: 300px;
    justify-content: flex-start;
    align-items: center;
}

.btn-acao {
    padding: 4px 6px;
    border: none;
    border-radius: 4px;
    font-size: 0.75em;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    margin: 1px;
}

.btn-visualizar {
    background: #495057;
    color: white;
}

.btn-editar {
    background: #fd7e14;
    color: white;
}

.btn-atribuir {
    background: #6f42c1;
    color: white;
}

.btn-cancelar {
    background: #e83e8c;
    color: white;
}

.btn-finalizar {
    background: #28a745;
    color: white;
}

.btn-reabrir {
    background: #ffc107;
    color: #212529;
}

.btn-excluir {
    background: #dc3545;
    color: white;
}

.btn-imprimir {
    background: #17a2b8;
    color: white;
}

.btn-acao:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Administração */
.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.admin-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.admin-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.colaborador-info {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.colaborador-info h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.2em;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.info-item label {
    font-weight: 600;
    color: #6c757d;
    font-size: 0.9em;
}

.info-item span {
    color: #2c3e50;
    font-size: 1.1em;
}

/* Modais */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: #000;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

/* Alertas */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsividade */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav-tabs {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-tab {
        border-radius: 0;
        border-bottom: 1px solid #e9ecef;
    }
    
    .nav-tab.active {
        border-bottom-color: #667eea;
    }
    
    .header-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .user-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .filtros-relatorio {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tabela-os {
        font-size: 14px;
    }
    
    .tabela-os th,
    .tabela-os td {
        padding: 8px 10px;
    }
    
    .acoes-os {
        flex-direction: column;
        gap: 3px;
    }
    
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .form-os-publico,
    .login-form {
        padding: 20px;
    }
    
    .header-publico,
    .login-header {
        padding: 20px;
    }
    
    .header-publico h1 {
        font-size: 1.8em;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .form-actions {
        flex-direction: column;
    }
}

#dashboardChart, #adminChart {
  min-height: 300px;
  max-height: 400px;
  height: 350px !important;
  width: 100% !important;
  display: block;
  margin: 0 auto;
}

/* Select de responsável na tabela de relatórios */
.select-responsavel {
  padding: 4px 8px;
  border-radius: 6px;
  border: 1px solid #bdbdbd;
  background: #f8f9fa;
  color: #333;
  font-size: 1em;
  transition: border 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  outline: none;
  cursor: pointer;
}
.select-responsavel:focus {
  border: 1.5px solid #5b6ee1;
  box-shadow: 0 0 0 2px #e3e7fd;
}

/* Filtro de período na administração */
.filtro-periodo {
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 8px;
  border: 1.5px solid #bdbdbd;
  background: linear-gradient(90deg, #e3e7fd 0%, #f8f9fa 100%);
  color: #2d3a4a;
  font-size: 1.08em;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(91,110,225,0.07);
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}
.filtro-periodo:focus {
  border: 1.5px solid #5b6ee1;
  box-shadow: 0 0 0 2px #e3e7fd;
}

/* Painel de Logs e Auditoria - Visual Moderno */
.modal .modal-content {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 12px 40px #0002;
  padding: 36px 32px 28px 32px;
  position: relative;
  min-width: 340px;
  max-width: 900px;
  margin: 0 auto;
  transition: box-shadow 0.2s;
}
.btn-tab-log {
  background: linear-gradient(90deg, #6a5acd 0%, #7b2ff2 100%);
  border: none;
  border-radius: 10px 10px 0 0;
  padding: 12px 32px;
  font-size: 17px;
  margin-right: 6px;
  cursor: pointer;
  color: #fff;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px #0001;
  outline: none;
}
.btn-tab-log.active, .btn-tab-log:focus, .btn-tab-log:hover {
  background: linear-gradient(90deg, #7b2ff2 0%, #f357a8 100%);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 4px 16px #7b2ff233;
}
.aba-log {
  min-height: 320px;
  background: #f8f9fd;
  border-radius: 0 0 14px 14px;
  padding: 28px 16px 16px 16px;
  margin-top: -2px;
  box-shadow: 0 2px 8px #0001;
}
.tabela-os {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px #0001;
  font-size: 16px;
}
.tabela-os th {
  background: #6a5acd;
  color: #fff;
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 2;
  letter-spacing: 0.5px;
}
.tabela-os td {
  padding: 9px 12px;
  border-bottom: 1px solid #ececec;
  font-size: 15px;
}
.tabela-os tr:nth-child(even) {
  background: #f3f6fa;
}
.tabela-os tr:hover {
  background: #e6e6fa;
  transition: background 0.15s;
}
/* Semáforo de sessões ativas */
.semaforo-colab {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  font-size: 17px;
  background: #f8f9fd;
  border-radius: 8px;
  padding: 10px 18px;
  box-shadow: 0 1px 6px #0001;
  font-weight: 500;
}
.bolinha-status {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-block;
  border: 2.5px solid #bbb;
  margin-right: 8px;
  box-shadow: 0 1px 4px #0002;
}
.bolinha-verde { background: #2ecc40; border-color: #2ecc40; }
.bolinha-vermelha { background: #e74c3c; border-color: #e74c3c; }
.modal .close {
  position: absolute;
  top: 22px;
  right: 32px;
  font-size: 32px;
  color: #888;
  cursor: pointer;
  font-weight: bold;
  transition: color 0.2s, box-shadow 0.2s;
  border-radius: 50%;
  padding: 2px 10px 2px 10px;
  background: #f3f6fa;
  box-shadow: 0 2px 8px #0001;
}
.modal .close:hover {
  color: #e74c3c;
  background: #fff0f0;
  box-shadow: 0 4px 16px #e74c3c33;
}
#modalLogs h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #6a5acd;
  margin-bottom: 22px;
  text-align: left;
  letter-spacing: 0.5px;
}
@media (max-width: 700px) {
  .modal .modal-content {
    padding: 12px 2vw 12px 2vw;
    min-width: 0;
    max-width: 98vw;
  }
  .tabela-os th, .tabela-os td {
    font-size: 13px;
    padding: 6px 4px;
  }
  .btn-tab-log {
    padding: 8px 10px;
    font-size: 13px;
  }
  #modalLogs h2 {
    font-size: 1.2rem;
  }
}

/* Barra de rolagem para Log de Auditoria */
#aba-log-auditoria {
  max-height: 420px;
  overflow-y: auto;
  overflow-x: hidden;
}
#aba-log-auditoria .tabela-os {
  min-width: 700px;
}
#aba-log-auditoria::-webkit-scrollbar {
  width: 10px;
}
#aba-log-auditoria::-webkit-scrollbar-thumb {
  background: #e3e7fd;
  border-radius: 8px;
}
#aba-log-auditoria::-webkit-scrollbar-track {
  background: #f8f9fa;
  border-radius: 8px;
}

/* Barra de rolagem para Modal de Relatório Completo */
#modalRelatorioCompleto .tabela-container {
  scrollbar-width: thin;
  scrollbar-color: #6a5acd #f8f9fa;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  max-height: 420px !important;
  overflow: auto !important;
}

#modalRelatorioCompleto .tabela-container.relatorio-scroll {
  scrollbar-width: thin !important;
  scrollbar-color: #6a5acd #f8f9fa !important;
  max-height: 420px !important;
  overflow: auto !important;
}

#modalRelatorioCompleto .tabela-container::-webkit-scrollbar {
  width: 12px !important;
  height: 12px !important;
}

#modalRelatorioCompleto .tabela-container::-webkit-scrollbar-track {
  background: #f8f9fa !important;
  border-radius: 8px !important;
  border: 1px solid #e9ecef !important;
}

#modalRelatorioCompleto .tabela-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6a5acd 0%, #7b2ff2 100%) !important;
  border-radius: 8px !important;
  border: 2px solid #f8f9fa !important;
}

#modalRelatorioCompleto .tabela-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a32a3 0%, #6a1b9a 100%) !important;
}

#modalRelatorioCompleto .tabela-container::-webkit-scrollbar-corner {
  background: #f8f9fa !important;
  border-radius: 8px !important;
}

/* Garantir que a barra de rolagem seja sempre visível */
#modalRelatorioCompleto .tabela-container.relatorio-scroll::-webkit-scrollbar {
  width: 12px !important;
  height: 12px !important;
}

#modalRelatorioCompleto .tabela-container.relatorio-scroll::-webkit-scrollbar-track {
  background: #f8f9fa !important;
  border-radius: 8px !important;
  border: 1px solid #e9ecef !important;
}

#modalRelatorioCompleto .tabela-container.relatorio-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #6a5acd 0%, #7b2ff2 100%) !important;
  border-radius: 8px !important;
  border: 2px solid #f8f9fa !important;
}

#modalRelatorioCompleto .tabela-container.relatorio-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #5a32a3 0%, #6a1b9a 100%) !important;
}

/* Melhorar a aparência da tabela dentro do modal */
#modalRelatorioCompleto .tabela-os {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
}

#modalRelatorioCompleto .tabela-os th {
  background: linear-gradient(135deg, #6a5acd 0%, #7b2ff2 100%);
  color: #fff;
  font-weight: 600;
  padding: 15px 12px;
  text-align: left;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#modalRelatorioCompleto .tabela-os td {
  padding: 12px;
  border-bottom: 1px solid #e9ecef;
  background: #fff;
}

#modalRelatorioCompleto .tabela-os tr:nth-child(even) td {
  background: #f8f9fa;
}

#modalRelatorioCompleto .tabela-os tr:hover td {
  background: #e3e7fd;
  transition: background-color 0.2s ease;
}

/* Sessões Ativas em grid responsivo */
#aba-sessoes-ativas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px 24px;
  align-items: stretch;
  padding: 18px 0 0 0;
}
#aba-sessoes-ativas .semaforo-colab {
  margin-bottom: 0;
  min-width: 0;
  width: 100%;
}
@media (max-width: 700px) {
  #aba-log-auditoria {
    max-height: 220px;
  }
  #aba-log-auditoria .tabela-os {
    min-width: 420px;
  }
  #aba-sessoes-ativas {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

#conteudoLogSessoes {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.semaforo-colab {
  min-width: 160px;
  margin: 0;
}

#conteudoLogAuditoria {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px;
  padding-bottom: 8px;
}

#conteudoLogAuditoria .tabela-os {
  min-width: 800px;
}

#conteudoLogExportacao, #conteudoLogLogin, #conteudoLogAuditoria, #conteudoLogSessoes {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px;
  padding-bottom: 8px;
}

#conteudoLogExportacao .tabela-os,
#conteudoLogLogin .tabela-os,
#conteudoLogAuditoria .tabela-os,
#conteudoLogSessoes .tabela-os {
  min-width: 800px;
}

.btn-mes {
    min-width: 70px;
    margin: 0 2px;
    padding: 12px 0;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn-mes.active, .btn-mes:focus {
    outline: 2px solid #764ba2;
    box-shadow: 0 0 0 3px #764ba233;
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}
.btn-mes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(102, 126, 234, 0.2);
}

/* Botões de Sessão Ativa */
.btn-sessao {
    min-width: 80px;
    margin: 0 2px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.btn-sessao-online {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.btn-sessao-offline {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-sessao.active {
    outline: 2px solid #667eea;
    box-shadow: 0 0 0 3px #667eea33;
    transform: scale(1.05);
}

.btn-sessao:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-sessao-online:hover {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.btn-sessao-offline:hover {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* Modal Gerenciar Sessão */
.sessao-info {
    padding: 20px 0;
}

.colaborador-detalhes {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.avatar-colaborador {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.info-colaborador h3 {
    margin: 0 0 8px 0;
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
}

.status-indicator {
    margin: 0;
    font-size: 14px;
    color: #64748b;
}

.status-indicator .online {
    color: #059669;
    font-weight: 600;
}

.status-indicator .offline {
    color: #dc2626;
    font-weight: 600;
}

.sessao-detalhes {
    background: #f8fafc;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}

.sessao-detalhes h4 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 16px;
    font-weight: 600;
}

.detalhes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.detalhe-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.detalhe-item label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detalhe-item span {
    font-size: 14px;
    color: #1e293b;
    font-weight: 500;
    word-break: break-all;
}

.sessao-acoes {
    margin-top: 20px;
}

.aviso-importante {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #92400e;
    font-size: 14px;
    line-height: 1.5;
}

.info-mensagem {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border: 1px solid #3b82f6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    color: #1e40af;
    font-size: 14px;
    line-height: 1.5;
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

/* Responsividade para o modal */
@media (max-width: 768px) {
    .colaborador-detalhes {
        flex-direction: column;
        text-align: center;
    }
    
    .detalhes-grid {
        grid-template-columns: 1fr;
    }
    
    .avatar-colaborador {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}

.card-sessao {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fd;
    border-radius: 14px;
    box-shadow: 0 2px 10px #0001;
    padding: 22px 10px 16px 10px;
    min-height: 110px;
    transition: box-shadow 0.2s, transform 0.2s;
    margin: 0;
}
.card-sessao:hover {
    box-shadow: 0 6px 24px #764ba233;
    transform: translateY(-2px) scale(1.03);
}
.card-sessao .bolinha-status {
    width: 32px !important;
    height: 32px !important;
    margin-bottom: 10px;
    box-shadow: 0 2px 8px #0002;
}
.card-sessao .nome-colab {
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
    word-break: break-word;
}
#aba-sessoes-ativas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px 24px;
    align-items: stretch;
    padding: 18px 0 0 0;
}

/* ========================================
   SEÇÃO DE SEGURANÇA
   ======================================== */

.security-dashboard {
    margin-bottom: 30px;
}

.security-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.security-stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.security-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.security-stat-card .stat-icon {
    font-size: 2.5em;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.security-stat-card .stat-info h3 {
    font-size: 0.9em;
    color: #6c757d;
    margin-bottom: 5px;
    font-weight: 600;
}

.security-stat-card .stat-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
}

.security-controls {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.control-group h3 {
    margin-bottom: 15px;
    color: #2c3e50;
    font-size: 1.2em;
}

.control-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-warning {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(243, 156, 18, 0.3);
}

.security-tables {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.table-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.table-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    font-size: 1.3em;
    border-bottom: 2px solid #e9ecef;
    padding-bottom: 10px;
}

.tabela-seguranca {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.tabela-seguranca th,
.tabela-seguranca td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.tabela-seguranca th {
    background: #f8f9fa;
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.9em;
}

.tabela-seguranca tr:hover {
    background: #f8f9fa;
}

.tabela-seguranca .ip-address {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #2c3e50;
}

.tabela-seguranca .tentativas-count {
    font-weight: bold;
    color: #e74c3c;
}

.tabela-seguranca .data-tentativa {
    color: #6c757d;
    font-size: 0.9em;
}

.tabela-seguranca .motivo-bloqueio {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tabela-seguranca .data-bloqueio {
    color: #6c757d;
    font-size: 0.9em;
}

.tabela-seguranca .expiracao {
    color: #e67e22;
    font-weight: 600;
}

.btn-desbloquear {
    background: #28a745;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-desbloquear:hover {
    background: #218838;
}

.btn-bloquear {
    background: #dc3545;
    color: white;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-bloquear:hover {
    background: #c82333;
}

/* ========================================
   DOCUMENTAÇÃO LGPD
   ======================================== */

/* Estilos para abas de documentação */
.btn-tab-doc {
    padding: 10px 20px;
    border: none;
    background: #f8f9fa;
    color: #6c757d;
    cursor: pointer;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-tab-doc:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.btn-tab-doc.active {
    background: linear-gradient(135deg, #6f42c1 0%, #007bff 100%);
    color: white;
    border-color: #6f42c1;
    box-shadow: 0 2px 8px rgba(111, 66, 193, 0.3);
}

.aba-documentacao {
    background: white;
    border-radius: 8px;
    overflow: hidden;
}

/* Estilos para barra de rolagem da documentação */
#modalDocumentacao .modal-content > div:nth-child(4) {
    scrollbar-width: thin;
    scrollbar-color: #6f42c1 #f8f9fa;
}

#modalDocumentacao .modal-content > div:nth-child(4)::-webkit-scrollbar {
    width: 8px;
}

#modalDocumentacao .modal-content > div:nth-child(4)::-webkit-scrollbar-track {
    background: #f8f9fa;
    border-radius: 4px;
}

#modalDocumentacao .modal-content > div:nth-child(4)::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #6f42c1 0%, #007bff 100%);
    border-radius: 4px;
}

#modalDocumentacao .modal-content > div:nth-child(4)::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a32a3 0%, #0056b3 100%);
}

@media (max-width: 768px) {
    .security-stats {
        grid-template-columns: 1fr;
    }
    
    .control-buttons {
        flex-direction: column;
    }
    
    .tabela-seguranca {
        font-size: 0.9em;
    }
    
    .tabela-seguranca th,
    .tabela-seguranca td {
        padding: 8px 10px;
    }
}

/* ========================================
   MODAL USUÁRIOS - ESTILOS ESPECÍFICOS
   ======================================== */

.modal-usuarios {
    max-width: 900px !important;
    width: 95% !important;
    margin: 2% auto !important;
    padding: 0 !important;
    border-radius: 15px !important;
    overflow: hidden !important;
}

.modal-usuarios .modal-header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.modal-usuarios .modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
}

.modal-usuarios .modal-header .close {
    color: white;
    font-size: 24px;
    position: static;
    float: none;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.modal-usuarios .modal-header .close:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.1);
}

.modal-usuarios .modal-body {
    padding: 0;
}

.modal-usuarios .table-container {
    max-height: 500px;
    overflow-y: auto;
    border-radius: 0 0 15px 15px;
}

.modal-usuarios .tabela-usuarios {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    background: white;
}

.modal-usuarios .tabela-usuarios thead {
    position: sticky;
    top: 0;
    z-index: 10;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.modal-usuarios .tabela-usuarios th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid #dee2e6;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-usuarios .tabela-usuarios td {
    padding: 12px;
    border-bottom: 1px solid #f1f3f4;
    vertical-align: middle;
    font-size: 0.9em;
}

.modal-usuarios .tabela-usuarios tbody tr {
    transition: all 0.2s ease;
}

.modal-usuarios .tabela-usuarios tbody tr:hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.modal-usuarios .tabela-usuarios tbody tr:nth-child(even) {
    background: #fafafa;
}

.modal-usuarios .tabela-usuarios tbody tr:nth-child(even):hover {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
}

/* Status badges */
.modal-usuarios .status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-usuarios .status-ativo {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
    border: 1px solid #c3e6cb;
}

.modal-usuarios .status-inativo {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Tipo badges */
.modal-usuarios .tipo-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.modal-usuarios .tipo-admin {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    color: #856404;
    border: 1px solid #ffeaa7;
}

.modal-usuarios .tipo-colaborador {
    background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Botões de ação */
.modal-usuarios .btn-acao {
    padding: 6px 8px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8em;
    margin: 0 2px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
}

.modal-usuarios .btn-editar {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    color: white;
}

.modal-usuarios .btn-editar:hover {
    background: linear-gradient(135deg, #138496 0%, #117a8b 100%);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.3);
}

.modal-usuarios .btn-excluir {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
}

.modal-usuarios .btn-excluir:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
}

/* Scrollbar personalizada */
.modal-usuarios .table-container::-webkit-scrollbar {
    width: 8px;
}

.modal-usuarios .table-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-usuarios .table-container::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

.modal-usuarios .table-container::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a32a3 0%, #0056b3 100%);
}

/* Responsividade para modal usuários */
@media (max-width: 768px) {
    .modal-usuarios {
        width: 98% !important;
        margin: 1% auto !important;
    }
    
    .modal-usuarios .modal-header {
        padding: 15px 20px;
    }
    
    .modal-usuarios .modal-header h2 {
        font-size: 1.2em;
    }
    
    .modal-usuarios .tabela-usuarios th,
    .modal-usuarios .tabela-usuarios td {
        padding: 8px 6px;
        font-size: 0.8em;
    }
    
    .modal-usuarios .btn-acao {
        min-width: 28px;
        height: 28px;
        font-size: 0.7em;
    }
}

@media (max-width: 480px) {
    .modal-usuarios .tabela-usuarios th:nth-child(2),
    .modal-usuarios .tabela-usuarios td:nth-child(2) {
        display: none; /* Ocultar coluna Login em telas muito pequenas */
    }
}

 
 / *   M o d a l   d e   s e s s  o   * / 
 # m o d a l G e r e n c i a r S e s s a o   . m o d a l - c o n t e n t   { 
         m a x - h e i g h t :   9 0 v h ; 
         o v e r f l o w - y :   a u t o ; 
         m a x - w i d t h :   5 0 0 p x ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . s e s s a o - d e t a l h e s   { 
         m a x - h e i g h t :   3 0 0 p x ; 
         o v e r f l o w - y :   a u t o ; 
         b o r d e r :   1 p x   s o l i d   # d d d ; 
         b o r d e r - r a d i u s :   5 p x ; 
         p a d d i n g :   1 5 p x ; 
         m a r g i n :   1 0 p x   0 ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e s - g r i d   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   1 f r ; 
         g a p :   1 0 p x ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e - i t e m   { 
         d i s p l a y :   f l e x ; 
         f l e x - d i r e c t i o n :   c o l u m n ; 
         g a p :   5 p x ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e - i t e m   l a b e l   { 
         f o n t - w e i g h t :   b o l d ; 
         c o l o r :   # 3 3 3 ; 
         f o n t - s i z e :   0 . 9 e m ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e - i t e m   s p a n   { 
         b a c k g r o u n d :   # f 8 f 9 f a ; 
         p a d d i n g :   8 p x ; 
         b o r d e r - r a d i u s :   3 p x ; 
         f o n t - f a m i l y :   m o n o s p a c e ; 
         f o n t - s i z e :   0 . 8 5 e m ; 
         w o r d - b r e a k :   b r e a k - a l l ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . s e s s a o - a c o e s   { 
         m a r g i n - t o p :   2 0 p x ; 
         p a d d i n g - t o p :   1 5 p x ; 
         b o r d e r - t o p :   1 p x   s o l i d   # d d d ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . a v i s o - i m p o r t a n t e   { 
         b a c k g r o u n d :   # f f f 3 c d ; 
         b o r d e r :   1 p x   s o l i d   # f f e a a 7 ; 
         b o r d e r - r a d i u s :   5 p x ; 
         p a d d i n g :   1 0 p x ; 
         m a r g i n - b o t t o m :   1 5 p x ; 
         c o l o r :   # 8 5 6 4 0 4 ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . f o r m - a c t i o n s   { 
         d i s p l a y :   f l e x ; 
         g a p :   1 0 p x ; 
         j u s t i f y - c o n t e n t :   f l e x - e n d ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . b t n - d a n g e r   { 
         b a c k g r o u n d :   # d c 3 5 4 5 ; 
         c o l o r :   w h i t e ; 
         b o r d e r :   n o n e ; 
         p a d d i n g :   1 0 p x   2 0 p x ; 
         b o r d e r - r a d i u s :   5 p x ; 
         c u r s o r :   p o i n t e r ; 
         f o n t - w e i g h t :   b o l d ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . b t n - d a n g e r : h o v e r   { 
         b a c k g r o u n d :   # c 8 2 3 3 3 ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . b t n - s e c o n d a r y   { 
         b a c k g r o u n d :   # 6 c 7 5 7 d ; 
         c o l o r :   w h i t e ; 
         b o r d e r :   n o n e ; 
         p a d d i n g :   1 0 p x   2 0 p x ; 
         b o r d e r - r a d i u s :   5 p x ; 
         c u r s o r :   p o i n t e r ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . b t n - s e c o n d a r y : h o v e r   { 
         b a c k g r o u n d :   # 5 a 6 2 6 8 ; 
 }  
 / *   M o d a l   d e   s e s s   o   * /  
 # m o d a l G e r e n c i a r S e s s a o   . m o d a l - c o n t e n t   {  
         m a x - h e i g h t :   9 0 v h ;  
         o v e r f l o w - y :   a u t o ;  
         m a x - w i d t h :   5 0 0 p x ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . s e s s a o - d e t a l h e s   {  
         m a x - h e i g h t :   3 0 0 p x ;  
         o v e r f l o w - y :   a u t o ;  
         b o r d e r :   1 p x   s o l i d   # d d d ;  
         b o r d e r - r a d i u s :   5 p x ;  
         p a d d i n g :   1 5 p x ;  
         m a r g i n :   1 0 p x   0 ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e s - g r i d   {  
         d i s p l a y :   g r i d ;  
         g r i d - t e m p l a t e - c o l u m n s :   1 f r ;  
         g a p :   1 0 p x ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e - i t e m   {  
         d i s p l a y :   f l e x ;  
         f l e x - d i r e c t i o n :   c o l u m n ;  
         g a p :   5 p x ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e - i t e m   l a b e l   {  
         f o n t - w e i g h t :   b o l d ;  
         c o l o r :   # 3 3 3 ;  
         f o n t - s i z e :   0 . 9 e m ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e - i t e m   s p a n   {  
         b a c k g r o u n d :   # f 8 f 9 f a ;  
         p a d d i n g :   8 p x ;  
         b o r d e r - r a d i u s :   3 p x ;  
         f o n t - f a m i l y :   m o n o s p a c e ;  
         f o n t - s i z e :   0 . 8 5 e m ;  
         w o r d - b r e a k :   b r e a k - a l l ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . s e s s a o - a c o e s   {  
         m a r g i n - t o p :   2 0 p x ;  
         p a d d i n g - t o p :   1 5 p x ;  
         b o r d e r - t o p :   1 p x   s o l i d   # d d d ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . a v i s o - i m p o r t a n t e   {  
         b a c k g r o u n d :   # f f f 3 c d ;  
         b o r d e r :   1 p x   s o l i d   # f f e a a 7 ;  
         b o r d e r - r a d i u s :   5 p x ;  
         p a d d i n g :   1 0 p x ;  
         m a r g i n - b o t t o m :   1 5 p x ;  
         c o l o r :   # 8 5 6 4 0 4 ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . f o r m - a c t i o n s   {  
         d i s p l a y :   f l e x ;  
         g a p :   1 0 p x ;  
         j u s t i f y - c o n t e n t :   f l e x - e n d ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . b t n - d a n g e r   {  
         b a c k g r o u n d :   # d c 3 5 4 5 ;  
         c o l o r :   w h i t e ;  
         b o r d e r :   n o n e ;  
         p a d d i n g :   1 0 p x   2 0 p x ;  
         b o r d e r - r a d i u s :   5 p x ;  
         c u r s o r :   p o i n t e r ;  
         f o n t - w e i g h t :   b o l d ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . b t n - d a n g e r : h o v e r   {  
         b a c k g r o u n d :   # c 8 2 3 3 3 ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . b t n - s e c o n d a r y   {  
         b a c k g r o u n d :   # 6 c 7 5 7 d ;  
         c o l o r :   w h i t e ;  
         b o r d e r :   n o n e ;  
         p a d d i n g :   1 0 p x   2 0 p x ;  
         b o r d e r - r a d i u s :   5 p x ;  
         c u r s o r :   p o i n t e r ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . b t n - s e c o n d a r y : h o v e r   {  
         b a c k g r o u n d :   # 5 a 6 2 6 8 ;  
 }  
 
 
 / *   M o d a l   d e   s e s s  o   -   C o r r e   o   d e   r o l a g e m   * / 
 # m o d a l G e r e n c i a r S e s s a o   . m o d a l - c o n t e n t   { 
         m a x - h e i g h t :   9 0 v h   ! i m p o r t a n t ; 
         o v e r f l o w - y :   a u t o   ! i m p o r t a n t ; 
         m a x - w i d t h :   5 0 0 p x   ! i m p o r t a n t ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . s e s s a o - d e t a l h e s   { 
         m a x - h e i g h t :   3 0 0 p x   ! i m p o r t a n t ; 
         o v e r f l o w - y :   a u t o   ! i m p o r t a n t ; 
         b o r d e r :   1 p x   s o l i d   # d d d   ! i m p o r t a n t ; 
         b o r d e r - r a d i u s :   5 p x   ! i m p o r t a n t ; 
         p a d d i n g :   1 5 p x   ! i m p o r t a n t ; 
         m a r g i n :   1 0 p x   0   ! i m p o r t a n t ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e s - g r i d   { 
         d i s p l a y :   g r i d   ! i m p o r t a n t ; 
         g r i d - t e m p l a t e - c o l u m n s :   1 f r   ! i m p o r t a n t ; 
         g a p :   1 0 p x   ! i m p o r t a n t ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e - i t e m   { 
         d i s p l a y :   f l e x   ! i m p o r t a n t ; 
         f l e x - d i r e c t i o n :   c o l u m n   ! i m p o r t a n t ; 
         g a p :   5 p x   ! i m p o r t a n t ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e - i t e m   l a b e l   { 
         f o n t - w e i g h t :   b o l d   ! i m p o r t a n t ; 
         c o l o r :   # 3 3 3   ! i m p o r t a n t ; 
         f o n t - s i z e :   0 . 9 e m   ! i m p o r t a n t ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e - i t e m   s p a n   { 
         b a c k g r o u n d :   # f 8 f 9 f a   ! i m p o r t a n t ; 
         p a d d i n g :   8 p x   ! i m p o r t a n t ; 
         b o r d e r - r a d i u s :   3 p x   ! i m p o r t a n t ; 
         f o n t - f a m i l y :   m o n o s p a c e   ! i m p o r t a n t ; 
         f o n t - s i z e :   0 . 8 5 e m   ! i m p o r t a n t ; 
         w o r d - b r e a k :   b r e a k - a l l   ! i m p o r t a n t ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . s e s s a o - a c o e s   { 
         m a r g i n - t o p :   2 0 p x   ! i m p o r t a n t ; 
         p a d d i n g - t o p :   1 5 p x   ! i m p o r t a n t ; 
         b o r d e r - t o p :   1 p x   s o l i d   # d d d   ! i m p o r t a n t ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . a v i s o - i m p o r t a n t e   { 
         b a c k g r o u n d :   # f f f 3 c d   ! i m p o r t a n t ; 
         b o r d e r :   1 p x   s o l i d   # f f e a a 7   ! i m p o r t a n t ; 
         b o r d e r - r a d i u s :   5 p x   ! i m p o r t a n t ; 
         p a d d i n g :   1 0 p x   ! i m p o r t a n t ; 
         m a r g i n - b o t t o m :   1 5 p x   ! i m p o r t a n t ; 
         c o l o r :   # 8 5 6 4 0 4   ! i m p o r t a n t ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . f o r m - a c t i o n s   { 
         d i s p l a y :   f l e x   ! i m p o r t a n t ; 
         g a p :   1 0 p x   ! i m p o r t a n t ; 
         j u s t i f y - c o n t e n t :   f l e x - e n d   ! i m p o r t a n t ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . b t n - d a n g e r   { 
         b a c k g r o u n d :   # d c 3 5 4 5   ! i m p o r t a n t ; 
         c o l o r :   w h i t e   ! i m p o r t a n t ; 
         b o r d e r :   n o n e   ! i m p o r t a n t ; 
         p a d d i n g :   1 0 p x   2 0 p x   ! i m p o r t a n t ; 
         b o r d e r - r a d i u s :   5 p x   ! i m p o r t a n t ; 
         c u r s o r :   p o i n t e r   ! i m p o r t a n t ; 
         f o n t - w e i g h t :   b o l d   ! i m p o r t a n t ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . b t n - d a n g e r : h o v e r   { 
         b a c k g r o u n d :   # c 8 2 3 3 3   ! i m p o r t a n t ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . b t n - s e c o n d a r y   { 
         b a c k g r o u n d :   # 6 c 7 5 7 d   ! i m p o r t a n t ; 
         c o l o r :   w h i t e   ! i m p o r t a n t ; 
         b o r d e r :   n o n e   ! i m p o r t a n t ; 
         p a d d i n g :   1 0 p x   2 0 p x   ! i m p o r t a n t ; 
         b o r d e r - r a d i u s :   5 p x   ! i m p o r t a n t ; 
         c u r s o r :   p o i n t e r   ! i m p o r t a n t ; 
 } 
 
 # m o d a l G e r e n c i a r S e s s a o   . b t n - s e c o n d a r y : h o v e r   { 
         b a c k g r o u n d :   # 5 a 6 2 6 8   ! i m p o r t a n t ; 
 }  
 / *   M o d a l   d e   s e s s   o   -   C o r r e     o   d e   r o l a g e m   * /  
 # m o d a l G e r e n c i a r S e s s a o   . m o d a l - c o n t e n t   {  
         m a x - h e i g h t :   9 0 v h   ! i m p o r t a n t ;  
         o v e r f l o w - y :   a u t o   ! i m p o r t a n t ;  
         m a x - w i d t h :   5 0 0 p x   ! i m p o r t a n t ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . s e s s a o - d e t a l h e s   {  
         m a x - h e i g h t :   3 0 0 p x   ! i m p o r t a n t ;  
         o v e r f l o w - y :   a u t o   ! i m p o r t a n t ;  
         b o r d e r :   1 p x   s o l i d   # d d d   ! i m p o r t a n t ;  
         b o r d e r - r a d i u s :   5 p x   ! i m p o r t a n t ;  
         p a d d i n g :   1 5 p x   ! i m p o r t a n t ;  
         m a r g i n :   1 0 p x   0   ! i m p o r t a n t ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e s - g r i d   {  
         d i s p l a y :   g r i d   ! i m p o r t a n t ;  
         g r i d - t e m p l a t e - c o l u m n s :   1 f r   ! i m p o r t a n t ;  
         g a p :   1 0 p x   ! i m p o r t a n t ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e - i t e m   {  
         d i s p l a y :   f l e x   ! i m p o r t a n t ;  
         f l e x - d i r e c t i o n :   c o l u m n   ! i m p o r t a n t ;  
         g a p :   5 p x   ! i m p o r t a n t ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e - i t e m   l a b e l   {  
         f o n t - w e i g h t :   b o l d   ! i m p o r t a n t ;  
         c o l o r :   # 3 3 3   ! i m p o r t a n t ;  
         f o n t - s i z e :   0 . 9 e m   ! i m p o r t a n t ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . d e t a l h e - i t e m   s p a n   {  
         b a c k g r o u n d :   # f 8 f 9 f a   ! i m p o r t a n t ;  
         p a d d i n g :   8 p x   ! i m p o r t a n t ;  
         b o r d e r - r a d i u s :   3 p x   ! i m p o r t a n t ;  
         f o n t - f a m i l y :   m o n o s p a c e   ! i m p o r t a n t ;  
         f o n t - s i z e :   0 . 8 5 e m   ! i m p o r t a n t ;  
         w o r d - b r e a k :   b r e a k - a l l   ! i m p o r t a n t ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . s e s s a o - a c o e s   {  
         m a r g i n - t o p :   2 0 p x   ! i m p o r t a n t ;  
         p a d d i n g - t o p :   1 5 p x   ! i m p o r t a n t ;  
         b o r d e r - t o p :   1 p x   s o l i d   # d d d   ! i m p o r t a n t ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . a v i s o - i m p o r t a n t e   {  
         b a c k g r o u n d :   # f f f 3 c d   ! i m p o r t a n t ;  
         b o r d e r :   1 p x   s o l i d   # f f e a a 7   ! i m p o r t a n t ;  
         b o r d e r - r a d i u s :   5 p x   ! i m p o r t a n t ;  
         p a d d i n g :   1 0 p x   ! i m p o r t a n t ;  
         m a r g i n - b o t t o m :   1 5 p x   ! i m p o r t a n t ;  
         c o l o r :   # 8 5 6 4 0 4   ! i m p o r t a n t ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . f o r m - a c t i o n s   {  
         d i s p l a y :   f l e x   ! i m p o r t a n t ;  
         g a p :   1 0 p x   ! i m p o r t a n t ;  
         j u s t i f y - c o n t e n t :   f l e x - e n d   ! i m p o r t a n t ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . b t n - d a n g e r   {  
         b a c k g r o u n d :   # d c 3 5 4 5   ! i m p o r t a n t ;  
         c o l o r :   w h i t e   ! i m p o r t a n t ;  
         b o r d e r :   n o n e   ! i m p o r t a n t ;  
         p a d d i n g :   1 0 p x   2 0 p x   ! i m p o r t a n t ;  
         b o r d e r - r a d i u s :   5 p x   ! i m p o r t a n t ;  
         c u r s o r :   p o i n t e r   ! i m p o r t a n t ;  
         f o n t - w e i g h t :   b o l d   ! i m p o r t a n t ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . b t n - d a n g e r : h o v e r   {  
         b a c k g r o u n d :   # c 8 2 3 3 3   ! i m p o r t a n t ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . b t n - s e c o n d a r y   {  
         b a c k g r o u n d :   # 6 c 7 5 7 d   ! i m p o r t a n t ;  
         c o l o r :   w h i t e   ! i m p o r t a n t ;  
         b o r d e r :   n o n e   ! i m p o r t a n t ;  
         p a d d i n g :   1 0 p x   2 0 p x   ! i m p o r t a n t ;  
         b o r d e r - r a d i u s :   5 p x   ! i m p o r t a n t ;  
         c u r s o r :   p o i n t e r   ! i m p o r t a n t ;  
 }  
  
 # m o d a l G e r e n c i a r S e s s a o   . b t n - s e c o n d a r y : h o v e r   {  
         b a c k g r o u n d :   # 5 a 6 2 6 8   ! i m p o r t a n t ;  
 }  
 