* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --bg-card: white;
    --text-primary: #333;
    --text-secondary: #555;
    --border-color: #ddd;
    --header-bg: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    --table-header: #f8f9fa;
    --card-bg: #f8f9fa;
    --shadow: 0 10px 40px rgba(0,0,0,0.1);
    --sidebar-bg: linear-gradient(180deg, #1e3c72 0%, #2a5298 100%);
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
}

body.dark {
    --bg-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    --bg-card: #1e1e2e;
    --text-primary: #eee;
    --text-secondary: #ccc;
    --border-color: #444;
    --header-bg: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
    --table-header: #2a2a3a;
    --card-bg: #2a2a3a;
    --sidebar-bg: linear-gradient(180deg, #0f0f1a 0%, #1a1a2e 100%);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-primary);
    min-height: 100vh;
    transition: background 0.3s ease;
}

/* ========== LOGIN ========== */
.login-container {
    max-width: 450px;
    margin: 50px auto;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.login-container h2 {
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-weight: 500;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: var(--info);
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
}

.error-message {
    color: var(--danger);
    text-align: center;
    margin-top: 15px;
    display: none;
    background: rgba(231, 76, 60, 0.1);
    padding: 10px;
    border-radius: 8px;
}

/* ========== DASHBOARD WRAPPER ========== */
.dashboard-wrapper {
    display: none;
    min-height: 100vh;
}

/* ========== SIDEBAR ========== */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: var(--sidebar-bg);
    color: white;
    transition: all 0.3s ease;
    z-index: 1000;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar.minimized {
    width: 70px;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    position: relative;
}

.sidebar-logo {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 8px;
}

.sidebar.minimized .sidebar-logo {
    width: 40px;
    height: 40px;
}

.sidebar-title {
    font-size: 11px;
    font-weight: bold;
}

.sidebar.minimized .sidebar-title {
    display: none;
}

.sidebar-minimize-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s;
}

.sidebar-minimize-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.05);
}

.sidebar-nav {
    padding: 15px 0;
}

.sidebar-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    margin: 5px 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    color: rgba(255,255,255,0.8);
}

.sidebar-nav-item:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: translateX(5px);
}

.sidebar-nav-item.active {
    background: rgba(255,255,255,0.2);
    color: white;
}

.sidebar-nav-icon {
    font-size: 20px;
    min-width: 35px;
    text-align: center;
}

.sidebar-nav-text {
    font-size: 13px;
    margin-left: 10px;
}

.sidebar.minimized .sidebar-nav-text {
    display: none;
}

.sidebar.minimized .sidebar-nav-item {
    justify-content: center;
    padding: 12px;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    margin-left: 260px;
    transition: all 0.3s ease;
    padding: 20px;
}

.sidebar.minimized~.main-content {
    margin-left: 70px;
}

.dashboard {
    max-width: 1400px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* ========== HEADER ========== */
.header {
    background: var(--header-bg);
    color: white;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    height: 55px;
    width: auto;
    background: white;
    border-radius: 10px;
    padding: 5px;
    object-fit: contain;
}

.empresa-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.empresa-info h1 {
    font-size: 1.3rem;
    margin: 0;
}

.empresa-detalhes {
    font-size: 0.7rem;
    opacity: 0.9;
    letter-spacing: 0.5px;
}

.btn-logout,
.btn-theme {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    margin-left: 10px;
    transition: all 0.2s;
}

.btn-logout:hover,
.btn-theme:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ========== CONTENT ========== */
.content {
    padding: 30px;
}

/* ========== BUTTONS ========== */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background: #1e3c72;
    color: white;
}

.btn-success {
    background: var(--success);
    color: white;
}

.btn-danger {
    background: var(--danger);
    color: white;
}

.btn-warning {
    background: var(--warning);
    color: white;
}

.btn-info {
    background: var(--info);
    color: white;
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-plantao-diurno {
    background: #f39c12;
    color: #2c3e50;
}

.btn-plantao-noturno {
    background: #000000;
    color: white;
}

.btn-plantao-13h {
    background: #8e44ad;
    color: white;
}

/* ========== TOOLBAR ========== */
.toolbar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

/* ========== CARDS ========== */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card .icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.stat-card .value {
    font-size: 1.8rem;
    font-weight: bold;
    color: #1e3c72;
}

.stat-card .label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ========== CHARTS ========== */
.charts-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.chart-container {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 20px;
    border: 1px solid var(--border-color);
}

.chart-container h4 {
    margin-bottom: 15px;
    color: var(--text-primary);
    text-align: center;
}

canvas {
    max-height: 250px;
    width: 100%;
}

/* ========== CALENDAR ========== */
.calendario-container {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.calendario-header h3 {
    color: var(--text-primary);
    margin: 0;
}

.calendario-nav {
    display: flex;
    gap: 10px;
}

.calendario-nav button {
    background: var(--header-bg);
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendario-nav button:hover {
    transform: scale(1.05);
}

.calendario-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    text-align: center;
}

.calendario-dia-semana {
    font-weight: bold;
    padding: 10px;
    background: var(--table-header);
    border-radius: 8px;
    color: var(--text-primary);
}

.calendario-dia {
    padding: 12px 8px;
    border-radius: 8px;
    cursor: pointer;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    transition: all 0.2s;
}

.calendario-dia:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.calendario-dia.tem-plantao {
    background: #27ae60;
    color: white;
    border: none;
}

.calendario-dia.tem-plantao-diurno {
    background: #f39c12;
    color: #2c3e50;
    border: none;
}

.calendario-dia.tem-plantao-noturno {
    background: #1e3c72;
    color: white;
    border: none;
}

.calendario-dia.outro-mes {
    opacity: 0.5;
}

/* ========== TABLES ========== */
.table-wrapper {
    overflow-x: auto;
    margin-bottom: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 10px;
}

th,
td {
    border: 1px solid var(--border-color);
    padding: 10px 8px;
    text-align: center;
    vertical-align: middle;
    color: var(--text-primary);
    font-size: 12px;
}

th {
    background: var(--table-header);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* ========== TABS ========== */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.3s;
}

.tab-btn.active {
    color: #0f5132 ;
    border-bottom: 3px solid #0f5132 ;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

#tab-extras-jacare .tabela-padrao {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 14px;
    background: #fff;
}

#tab-extras-jacare .tabela-padrao th,
#tab-extras-jacare .tabela-padrao td {
    padding: 10px 12px;
    border-bottom: 1px solid #eef1f4;
    text-align: center;
    font-size: 13px;
}

#tab-extras-jacare .tabela-padrao th {
    background: linear-gradient(135deg, #157347, #198754);
    color: #fff;
    font-weight: 700;
}

#tab-extras-jacare .tabela-padrao tbody tr:hover {
    background: #f6fbf8;
}

#tab-extras-jacare .table-responsive {
    overflow-x: auto;
}

#tab-extras-jacare .btn-success {
    background: #198754;
    border-color: #198754;
}

#tab-extras-jacare .btn-danger {
    background: #dc3545;
    border-color: #dc3545;
}
/* ========== FORMS ========== */
.form-plantao {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.form-plantao h3 {
    margin-bottom: 15px;
    color: var(--text-primary);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.form-grid label {
    display: block;
    margin-bottom: 5px;
    color: var(--text-secondary);
}

.form-grid input,
.form-grid select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
}

.filtro-posto {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--card-bg);
    padding: 5px 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.filtro-posto label {
    font-weight: 500;
    color: var(--text-primary);
}

.filtro-posto select {
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
}

/* ========== RESUMO CARDS ========== */
.resumo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: white;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
}

.card .valor {
    font-size: 1.5rem;
    font-weight: bold;
    margin-top: 10px;
}

.total-card {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    margin-top: 20px;
}

/* ========== VIGILANTE STATS ========== */
.vigilante-stats {
    background: var(--card-bg);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 2px solid #1e3c72;
}

.vigilante-stats h3 {
    color: #1e3c72;
    margin-bottom: 15px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.stat-item {
    background: var(--bg-card);
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
}

.stat-item .label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-item .value {
    font-size: 24px;
    font-weight: bold;
    color: #1e3c72;
}

.atalhos {
    background: var(--card-bg);
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.atalhos span {
    font-weight: bold;
    color: var(--text-primary);
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
}

.modal-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* ========== ANIMATIONS ========== */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar.minimized {
        width: 0;
        overflow: hidden;
    }

    .main-content {
        margin-left: 70px;
    }

    .sidebar.minimized~.main-content {
        margin-left: 0;
    }

    .sidebar-nav-text {
        display: none;
    }

    .content {
        padding: 15px;
    }

    th,
    td {
        padding: 6px 4px;
        font-size: 10px;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .empresa-info h1 {
        font-size: 1rem;
    }

    .empresa-detalhes {
        font-size: 0.6rem;
    }

    .calendario-grid {
        gap: 4px;
    }

    .calendario-dia-semana {
        padding: 8px 4px;
        font-size: 11px;
    }

    .calendario-dia {
        padding: 8px 4px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .calendario-dia-semana {
        font-size: 10px;
        padding: 6px 2px;
    }

    .calendario-dia {
        padding: 6px 2px;
        font-size: 11px;
    }
}

/* Quando for vigilante */
body.vigilante-mode #sidebar {
    display: none !important;
}

body.vigilante-mode .main-content,
body.vigilante-mode #dashboardWrapper {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ajustar container principal */
body.vigilante-mode .container,
body.vigilante-mode .content,
body.vigilante-mode .wrapper {
    width: 100% !important;
    max-width: 100% !important;
}

/* MOBILE VIGILANTE */

.vigilante-mobile-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 12px;
    box-sizing: border-box;
}

.vigilante-mobile-topo,
.vigilante-mobile-resumo {
    display: grid;
    gap: 10px;
}

.vigilante-mobile-topo {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    margin-bottom: 12px;
}

.vigilante-mobile-resumo {
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    margin-bottom: 12px;
}

.vigilante-mobile-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.vigilante-mobile-botoes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.vigilante-mobile-botoes button {
    flex: 1;
    min-width: 180px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.vigilante-registros {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

.vigilante-registro-card {
    background: #fff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    line-height: 1.6;
    font-size: 14px;
}

@media (max-width: 768px) {
    .vigilante-mobile-topo,
    .vigilante-mobile-resumo {
        grid-template-columns: 1fr 1fr;
    }

    .vigilante-mobile-botoes {
        flex-direction: column;
    }

    .vigilante-mobile-botoes button {
        width: 100%;
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .vigilante-mobile-topo,
    .vigilante-mobile-resumo {
        grid-template-columns: 1fr;
    }
}

/* ================= VIGILANTE ESTILO APP ================= */

body.vigilante-mode {
    background: #f3f6fb;
}

body.vigilante-mode .header {
    background: linear-gradient(135deg, #163d7a, #2457a6);
    color: #fff;
    border-radius: 0 0 18px 18px;
    padding: 14px 16px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.12);
    margin-bottom: 10px;
}

body.vigilante-mode .logo-area {
    align-items: center;
}

body.vigilante-mode .logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    padding: 4px;
}

body.vigilante-mode .empresa-info h1 {
    font-size: 18px;
    margin: 0;
    color: #fff;
}

body.vigilante-mode .empresa-detalhes,
body.vigilante-mode .preposto {
    color: rgba(255,255,255,0.9);
    font-size: 11px;
}

body.vigilante-mode .user-info {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

body.vigilante-mode #userNameDisplay {
    font-weight: 700;
    font-size: 15px;
}

.vigilante-mobile-wrapper {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 12px;
    box-sizing: border-box;
}

.vigilante-app-titulo {
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 12px 0;
    color: #183b72;
}

.vigilante-mobile-card {
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(19, 45, 89, 0.08);
    border: 1px solid rgba(20, 55, 110, 0.06);
}

.vigilante-mobile-topo,
.vigilante-mobile-resumo {
    display: grid;
    gap: 10px;
}

.vigilante-mobile-topo {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    margin-bottom: 12px;
}

.vigilante-mobile-resumo {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    margin-bottom: 14px;
}

.vigilante-mobile-item-label {
    font-size: 12px;
    color: #6b7280;
    margin-bottom: 4px;
}

.vigilante-mobile-item-value {
    font-size: 15px;
    font-weight: 700;
    color: #1f2937;
}

.vigilante-mobile-botoes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.vigilante-mobile-botoes button {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(0,0,0,0.10);
}

.vigilante-mobile-botoes button:active {
    transform: scale(0.99);
}

.vigilante-resumo-numero {
    font-size: 24px;
    font-weight: 800;
    margin-top: 6px;
}

.vigilante-registros {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

.vigilante-registro-card {
    background: #fff;
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 6px 18px rgba(19, 45, 89, 0.08);
    border-left: 5px solid #2457a6;
    line-height: 1.65;
    font-size: 14px;
}

.vigilante-registro-data {
    font-size: 15px;
    font-weight: 800;
    color: #183b72;
    margin-bottom: 8px;
}

.vigilante-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #edf4ff;
    color: #2457a6;
    margin-top: 6px;
}

.vigilante-tabela-desktop {
    margin-top: 14px;
    overflow-x: auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(19, 45, 89, 0.08);
    padding: 10px;
}

.vigilante-tabela-desktop table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.vigilante-tabela-desktop th,
.vigilante-tabela-desktop td {
    border: 1px solid #e5e7eb;
    padding: 10px 8px;
    font-size: 13px;
}

.vigilante-tabela-desktop th {
    background: #eef4ff;
    color: #183b72;
}

@media (max-width: 768px) {
    body.vigilante-mode .header {
        padding: 12px;
    }

    body.vigilante-mode .empresa-info h1 {
        font-size: 16px;
    }

    body.vigilante-mode .empresa-detalhes,
    body.vigilante-mode .preposto {
        display: none;
    }

    .vigilante-mobile-wrapper {
        padding: 10px;
    }

    .vigilante-mobile-topo,
    .vigilante-mobile-resumo {
        grid-template-columns: 1fr;
    }

    .vigilante-app-titulo {
        font-size: 18px;
    }
}

/* BLOCO SERVIÇOS - ADMIN */
.servicos-container {
    max-width: 1200px; /* MAIS LARGO PRO PC */
    margin: 30px auto; /* CENTRALIZA */
    padding: 20px;
}

/* FORMULÁRIO */
.servicos-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

/* BOTÃO */
.servicos-form button {
    grid-column: span 2;
    justify-self: start;
}

/* TABELA */
.servicos-tabela {
    margin-top: 20px;
    width: 100%;
    overflow-x: auto;
}

/* TOTAIS */
.servicos-totais {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-weight: 600;
}

/* DEIXAR MAIS PROFISSIONAL */
.servicos-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* BLOCO SERVIÇOS - ADMIN */
.servicos-container {
    max-width: 1200px; /* MAIS LARGO PRO PC */
    margin: 30px auto; /* CENTRALIZA */
    padding: 20px;
}

/* FORMULÁRIO */
.servicos-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

/* BOTÃO */
.servicos-form button {
    grid-column: span 2;
    justify-self: start;
}

/* TABELA */
.servicos-tabela {
    margin-top: 20px;
    width: 100%;
    overflow-x: auto;
}

/* TOTAIS */
.servicos-totais {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    font-weight: 600;
}

/* DEIXAR MAIS PROFISSIONAL */
.servicos-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}