:root {
    --bg-base: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-hover: rgba(255, 255, 255, 0.9);
    --border-glass: rgba(0, 0, 0, 0.1);
    --primary: #3b82f6;
    --primary-hover: #2563eb;
    --secondary: #10b981;
    --accent: #06b6d4;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-dark: #0f172a;
    --danger: #ef4444;
    --warning: #f59e0b;
    --radius-lg: 16px;
    --radius-md: 8px;
    --sidebar-width: 280px;
    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    --bg-base: #0f172a;
    --bg-glass: rgba(30, 41, 59, 0.85);
    --bg-glass-hover: rgba(30, 41, 59, 0.95);
    --border-glass: rgba(255, 255, 255, 0.1);
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #e2e8f0;
}

[data-theme="dark"] .modal { background: #1e293b; }

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    transition: background 0.3s, color 0.3s;
}

.glass-panel {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

.hidden { display: none !important; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

/* ─── BUTTONS ─── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.75rem 1.5rem; border-radius: var(--radius-md); font-weight: 500;
    cursor: pointer; transition: var(--transition); border: none; font-size: 0.95rem;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5); }
.btn-secondary { background: rgba(0, 0, 0, 0.05); color: var(--text-main); border: 1px solid var(--border-glass); }
.btn-secondary:hover { background: rgba(0, 0, 0, 0.1); }
.btn-outline { background: transparent; color: var(--text-main); border: 1px solid var(--border-glass); }
.btn-outline:hover { background: rgba(0, 0, 0, 0.05); }
.btn-danger { background: transparent; color: var(--danger); border: 1px solid var(--danger); padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn-danger:hover { background: var(--danger); color: white; }
.btn-block { width: 100%; }
.btn-sm { padding: 0.5rem 1rem; font-size: 0.85rem; }
.btn-success { background: var(--secondary); color: white; }
.btn-success:hover { opacity: 0.9; }
.icon-btn { background: transparent; border: none; color: var(--text-main); font-size: 1.25rem; cursor: pointer; transition: var(--transition); }
.icon-btn:hover { color: var(--primary); }

/* ─── FORMS ─── */
.form-group { margin-bottom: 1.25rem; }
.form-row { display: flex; gap: 1rem; }
.form-group.half { flex: 1; }
label { display: block; margin-bottom: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
input[type="text"], input[type="password"], input[type="date"], input[type="number"], select, textarea {
    width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-md);
    background: rgba(0, 0, 0, 0.03); border: 1px solid var(--border-glass);
    color: var(--text-main); font-size: 1rem; transition: var(--transition);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2); }
.input-icon { position: relative; }
.input-icon i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.input-icon input { padding-left: 2.75rem; }
select option { background: var(--bg-base); color: var(--text-main); }

/* ─── FILTERS ─── */
.filters-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.filter-select { width: auto; min-width: 160px; padding: 0.5rem 0.75rem; border-radius: var(--radius-md); background: var(--bg-glass); border: 1px solid var(--border-glass); color: var(--text-main); font-size: 0.85rem; }

/* ─── VIEWS ─── */
.view { min-height: 100vh; }

/* ─── LOGIN ─── */
#login-view { display: flex; align-items: center; justify-content: center; padding: 1rem; }
.login-container { width: 100%; max-width: 420px; padding: 2.5rem; }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-header h2 { font-size: 2rem; color: var(--primary); margin-bottom: 0.5rem; }
.login-header p { color: var(--text-muted); font-size: 0.95rem; }
.form-actions { margin-top: 1.5rem; text-align: center; }
.forgot-link { display: inline-block; margin-top: 1rem; font-size: 0.85rem; }
.small-text { font-size: 0.85rem; color: var(--text-muted); text-align: center; margin-bottom: 1rem; }
hr { border: 0; border-top: 1px solid var(--border-glass); margin: 1.5rem 0; }

/* ─── APP ─── */
#app-view { display: flex; }

/* ─── SIDEBAR ─── */
.sidebar {
    width: var(--sidebar-width); height: 100vh; position: fixed; left: 0; top: 0;
    display: flex; flex-direction: column; z-index: 100; border-radius: 0;
    border-right: 1px solid var(--border-glass);
}
.sidebar-header { padding: 1.5rem; border-bottom: 1px solid var(--border-glass); display: flex; justify-content: space-between; align-items: center; }
.sidebar-header h3 { color: var(--primary); font-size: 1.5rem; }
.user-info { padding: 1.5rem; display: flex; align-items: center; gap: 1rem; border-bottom: 1px solid var(--border-glass); }
.user-info .avatar { font-size: 2.5rem; color: var(--text-muted); width: 2.5rem; height: 2.5rem; border-radius:50%; overflow:hidden; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.user-info .avatar .avatar-img { width:100%; height:100%; object-fit:cover; display:none; }
.user-info .avatar i { font-size:2.5rem; }
.avatar-upload { text-align:center; }
.avatar-preview, .avatar-preview-icon { width:100px; height:100px; border-radius:50%; object-fit:cover; font-size:100px; color:var(--text-muted); }
.avatar-preview { display:none; }
.user-details { display: flex; flex-direction: column; }
.user-details .name { font-weight: 600; }
.user-details .sector { font-size: 0.8rem; color: var(--accent); }
.level-badge { font-size: 0.7rem; background: var(--primary); color: white; padding: 2px 8px; border-radius: 10px; display: inline-block; margin-top: 2px; width: fit-content; }
.sidebar-nav { flex: 1; overflow-y: auto; padding: 1rem 0; }
.sidebar-nav ul { list-style: none; }
.nav-item { padding: 1rem 1.5rem; display: flex; align-items: center; gap: 1rem; color: var(--text-muted); cursor: pointer; transition: var(--transition); }
.nav-item:hover, .nav-item.active { background: rgba(0, 0, 0, 0.05); color: var(--text-main); border-left: 3px solid var(--primary); }
.nav-item i { width: 20px; text-align: center; }
.sidebar-footer { padding: 1.5rem; border-top: 1px solid var(--border-glass); }

/* ─── MAIN ─── */
.main-content { flex: 1; margin-left: var(--sidebar-width); padding: 2rem; min-height: 100vh; }
.topbar { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
#mobile-menu-btn { display: none; }
#page-title { font-size: 1.75rem; }

/* ─── ACTION BAR ─── */
.action-bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.search-box { position: relative; width: 300px; }
.search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); }
.search-box input { width: 100%; padding-left: 2.5rem; background: rgba(0,0,0,0.05); border: none; }
.action-buttons { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* ─── TABLES ─── */
.table-container { overflow-x: auto; padding: 1rem; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border-glass); }
th { color: var(--text-muted); font-weight: 500; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--text-main); }
.sortable::after { content: ' \f0dc'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.7rem; opacity: 0.4; }
.sortable.sort-asc::after { content: ' \f0de'; opacity: 1; color: var(--primary); }
.sortable.sort-desc::after { content: ' \f0dd'; opacity: 1; color: var(--primary); }
tbody tr { transition: var(--transition); }
tbody tr:hover { background: rgba(0, 0, 0, 0.02); }

.status-badge { padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 600; display: inline-block; }
.status-badge.concluida, .status-badge.conferido { background: rgba(16,185,129,0.15); color: var(--secondary); }
.status-badge.pendente { background: rgba(245,158,11,0.15); color: var(--warning); }
.status-badge.andamento { background: rgba(59,130,246,0.15); color: var(--primary); }
.status-badge.cancelada, .status-badge.nao-localizado { background: rgba(239,68,68,0.15); color: var(--danger); }

/* ─── STATS ─── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.stat-card { padding: 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.stat-icon { width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(6, 182, 212, 0.2)); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); }
.stat-details h3 { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--text-main); }

.mt-4 { margin-top: 2rem; }
.mt-2 { margin-top: 1rem; }

/* ─── MODALS ─── */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; z-index: 1000;
    opacity: 1; transition: opacity 0.3s ease;
}
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.modal { width: 100%; max-width: 600px; max-height: 90vh; overflow-y: auto; padding: 0; transform: translateY(0); transition: transform 0.3s ease; background: #fff; }
.modal-lg { max-width: 800px; }
.modal-overlay.hidden .modal { transform: translateY(-20px); }
.modal-header { padding: 1.5rem; border-bottom: 1px solid var(--border-glass); display: flex; justify-content: space-between; align-items: center; }
.modal-body { padding: 1.5rem; }
.modal-actions { display: flex; justify-content: flex-end; gap: 1rem; margin-top: 2rem; }
.close-btn { background: transparent; border: none; color: var(--text-muted); font-size: 1.25rem; cursor: pointer; }
.close-btn:hover { color: var(--danger); }

/* ─── CONFIRM MODAL ─── */
.confirm-icon { font-size: 3rem; color: var(--danger); margin-bottom: 1rem; }
.confirm-icon i { display: inline-block; animation: pulse-warning 1.5s ease-in-out infinite; }
@keyframes pulse-warning { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }
.confirm-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.confirm-message { color: var(--text-muted); margin-bottom: 1.5rem; line-height: 1.5; }

/* ─── DETALHES ─── */
.detalhes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.detalhes-item { padding: 0.75rem; border-bottom: 1px solid var(--border-glass); }
.detalhes-item .label { font-size: 0.8rem; color: var(--text-muted); display: block; }
.detalhes-item .value { font-weight: 600; font-size: 1rem; }
.detalhes-foto { text-align: center; margin-bottom: 1rem; }
.detalhes-foto img { max-width: 100%; max-height: 300px; border-radius: var(--radius-md); object-fit: cover; }
.detalhes-qr { text-align: center; margin: 1rem 0; }
.detalhes-qr canvas { border: 2px solid var(--border-glass); border-radius: 8px; }
.detalhes-tabs { display: flex; gap: 0; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-glass); }
.detalhes-tab { padding: 0.75rem 1.5rem; cursor: pointer; border-bottom: 2px solid transparent; color: var(--text-muted); font-weight: 500; transition: var(--transition); }
.detalhes-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.detalhes-tab:hover { color: var(--text-main); }

/* ─── TOAST ─── */
.toast-container { position: fixed; top: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
    background: var(--bg-glass); backdrop-filter: blur(12px);
    border-left: 4px solid var(--primary); padding: 1rem 1.5rem;
    border-radius: var(--radius-md); color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease forwards; display: flex; align-items: center; gap: 0.75rem;
}
.toast.error { border-left-color: var(--danger); }
.toast.success { border-left-color: var(--secondary); }
.toast.warning { border-left-color: var(--warning); }

@keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes fadeOut { from { opacity: 1; } to { opacity: 0; } }

/* ─── TERMO DE RESPONSABILIDADE ─── */
.termo-body { padding: 0; }
.termo-paper { background: #fff; color: #000; padding: 40px 50px; font-family: 'Times New Roman', Times, serif; margin: 0; }
.termo-header { text-align: center; margin-bottom: 30px; border-bottom: 2px solid #000; padding-bottom: 15px; }
.termo-logo { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.termo-logo strong { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; }
.termo-logo span { font-size: 12px; }
.termo-title { text-align: center; font-size: 18px; font-weight: bold; margin: 25px 0; text-transform: uppercase; letter-spacing: 2px; color: #000; }
.termo-text { font-size: 14px; line-height: 2; text-align: justify; margin-bottom: 25px; color: #000; }
input.termo-input { border: none; border-bottom: 1px solid #333; background: transparent; font-family: 'Times New Roman', Times, serif; font-size: 14px; padding: 2px 6px; color: #000; min-width: 180px; width: auto; outline: none; transition: border-color 0.2s; display: inline; }
input.termo-input:focus { border-bottom-color: #3b82f6; border-bottom-width: 2px; }
.termo-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 13px; }
.termo-table th, .termo-table td { border: 1px solid #000; padding: 8px 12px; color: #000; }
.termo-table th { background: #f0f0f0; font-weight: bold; text-align: center; font-size: 12px; text-transform: uppercase; }
.termo-table td { font-size: 13px; }
.termo-assinaturas { margin-top: 40px; font-size: 13px; color: #000; }
.termo-assinaturas p { margin-bottom: 10px; line-height: 2; }
.termo-data { text-align: right; margin-top: 40px; font-size: 14px; color: #000; white-space: nowrap; }
input.termo-data-input { border: none; border-bottom: 1px solid #333; background: transparent; font-family: 'Times New Roman', Times, serif; font-size: 14px; padding: 2px 4px; color: #000; width: 30px; text-align: center; outline: none; display: inline; }
input.termo-mes-input { width: 100px; display: inline; }
input.termo-ano-input { width: 50px; display: inline; }

/* ─── ETIQUETA ─── */
#etiqueta-print-area { width: 210mm; padding: 10mm; font-family: monospace; }
.etiqueta-card {
    width: 100mm; padding: 8mm; border: 2px solid #000; margin: 0 auto 10mm;
    font-family: 'Courier New', monospace; font-size: 10pt; text-align: center;
}
.etiqueta-card strong { font-size: 12pt; display: block; margin-bottom: 4px; }
.etiqueta-card .qr-code { margin: 6px auto; }

/* ─── IMPRESSÃO @media print ─── */
@media print {
    body { background: #fff !important; }
    body * { visibility: hidden !important; }
    #termo-print-area, #termo-print-area * { visibility: visible !important; }
    #etiqueta-print-area, #etiqueta-print-area * { visibility: visible !important; }

    #termo-print-area {
        display: block !important; position: absolute; left: 0; top: 0;
        width: 210mm; min-height: 297mm; padding: 20mm 25mm; margin: 0;
        background: #fff; color: #000; font-family: 'Times New Roman', Times, serif;
        font-size: 12pt; box-sizing: border-box;
    }

    #termo-print-area .print-header { text-align: center; margin-bottom: 30px; border-bottom: 2px solid #000; padding-bottom: 15px; }
    #termo-print-area .print-header strong { display: block; font-size: 14pt; text-transform: uppercase; letter-spacing: 1px; }
    #termo-print-area .print-header span { display: block; font-size: 11pt; margin-top: 4px; }
    #termo-print-area .print-title { text-align: center; font-size: 16pt; font-weight: bold; margin: 25px 0; text-transform: uppercase; letter-spacing: 2px; }
    #termo-print-area .print-text { font-size: 12pt; line-height: 2; text-align: justify; margin-bottom: 25px; }
    #termo-print-area .print-text .print-field { display: inline-block; min-width: 180px; border-bottom: 1px solid #000; padding: 0 6px; font-weight: bold; }
    #termo-print-area table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 11pt; }
    #termo-print-area table th, #termo-print-area table td { border: 1px solid #000; padding: 8px 12px; }
    #termo-print-area table th { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-weight: bold; text-align: center; font-size: 10pt; text-transform: uppercase; }
    #termo-print-area .print-assinaturas { margin-top: 40px; font-size: 11pt; }
    #termo-print-area .print-assinaturas p { margin-bottom: 10px; line-height: 2; }
    #termo-print-area .print-data { text-align: right; margin-top: 40px; font-size: 12pt; white-space: nowrap; }

    #etiqueta-print-area { display: block !important; position: absolute; left: 0; top: 0; }
    #etiqueta-print-area .etiqueta-card { page-break-after: always; }

    @page { size: A4; margin: 0; }
}

/* ─── CROPPER DE FOTO ─── */
.cropper-container-wrapper {
    width: 100%;
    max-height: 450px;
    overflow: hidden;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-glass);
    background: #1a1a2e;
    position: relative;
}
.cropper-container-wrapper img {
    display: block;
    max-width: 100%;
}
.cropper-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0 0.5rem;
}
.cropper-slider {
    width: 160px;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--border-glass);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
}
.cropper-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}
.cropper-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.4);
}
/* Cropper.js crop box circular mask */
.cropper-view-box,
.cropper-face {
    border-radius: 50%;
}
.cropper-view-box {
    outline: 2px solid rgba(59, 130, 246, 0.8);
    outline-offset: -2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3);
}
.cropper-face {
    background-color: transparent !important;
}
.cropper-dashed {
    display: none !important;
}
.cropper-center {
    display: none !important;
}
.cropper-point {
    background-color: var(--primary) !important;
    width: 8px !important;
    height: 8px !important;
    border-radius: 50% !important;
    opacity: 0.85 !important;
}

/* ─── RESPONSIVO ─── */
@media (max-width: 1024px) {
    .action-bar { flex-direction: column; align-items: stretch; }
    .filters-row { flex-direction: column; }
    .search-box { width: 100%; }
    .filter-select { width: 100%; }
}
@media (max-width: 768px) {
    #app-view { flex-direction: column; }
    .sidebar { width: 100%; max-width: 300px; transform: translateX(-100%); transition: transform 0.3s ease; }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; }
    .sidebar-overlay.visible { display: block; }
    .main-content { margin-left: 0; padding: 1rem; }
    #mobile-menu-btn { display: block; }
    .form-row { flex-direction: column; gap: 0; }
    .stats-grid { grid-template-columns: 1fr; }
    .detalhes-grid { grid-template-columns: 1fr; }
    .modal { margin: 0.5rem; max-width: none; }
    .modal-body { padding: 1rem; }
    .action-buttons { flex-direction: column; align-items: stretch; }
    .action-buttons .btn { width: 100%; }
    .table-container { padding: 0.5rem; }
    .sidebar { z-index: 100; }
}

/* ─── TODOS OS SETORES VIEW ─── */
.setores-cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1rem;
}
.setor-card {
    transition: var(--transition);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.setor-card-header {
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    background: rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}
.setor-card-header:hover {
    background: rgba(0, 0, 0, 0.05);
}
.setor-card-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.setor-card-icon {
    font-size: 1.5rem;
    color: var(--primary);
}
.setor-card-title {
    display: flex;
    flex-direction: column;
}
.setor-card-title h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}
.setor-card-title span {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.setor-card-badges {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}
.badge-count {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}
.badge-count.equip {
    background: rgba(59, 130, 246, 0.15);
    color: var(--primary);
}
.badge-count.mob {
    background: rgba(16, 185, 129, 0.15);
    color: var(--secondary);
}
.setor-card-toggle {
    font-size: 1.1rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    margin-left: 1rem;
}
.setor-card.expanded .setor-card-toggle {
    transform: rotate(180deg);
}
.setor-card-body {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid var(--border-glass);
}
.setor-card.expanded .setor-card-body {
    display: block;
}
.setor-actions-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-bottom: 1rem;
    gap: 0.75rem;
}
.select-all-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: auto;
}
.select-all-container input[type="checkbox"] {
    cursor: pointer;
}
.setor-items-table {
    width: 100%;
    margin-bottom: 0.5rem;
}
.setor-items-table th, .setor-items-table td {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}
/* ─── BULK ACTIONS ─── */
.bulk-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(59,130,246,0.08);
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}
.bulk-bar.hidden { display: none; }

/* ─── PAGINATION ─── */
.pagination-container {
    display: flex;
    justify-content: center;
    padding: 1rem 0;
}
.pagination {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.pagination-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.setor-items-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

