/* ============================================================
   RESET & BASE
   ============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #34d399;
    --primary-bg: rgba(16, 185, 129, 0.12);
    --secondary: #3b82f6;
    --secondary-dark: #2563eb;
    --danger: #ef4444;
    --danger-dark: #dc2626;
    --warning: #f59e0b;
    --warning-dark: #d97706;
    --purple: #8b5cf6;
    --purple-dark: #7c3aed;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;

    --bg-body: #0b1121;
    --bg-card: rgba(30, 41, 59, 0.8);
    --bg-card-solid: #1e293b;
    --bg-table: #1e293b;
    --bg-input: rgba(15, 23, 42, 0.8);

    --text-light: #f1f5f9;
    --text-soft: #cbd5e1;
    --text-muted: #94a3b8;

    --border-light: rgba(148, 163, 184, 0.15);
    --border-medium: rgba(148, 163, 184, 0.25);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: radial-gradient(ellipse at top, #1a2332 0%, var(--bg-body) 70%);
    color: var(--text-light);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding: 1.5rem;
}

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

/* ============================================================
   TIPOGRAFIA
   ============================================================ */
h1, h2, h3, h4, h5 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

a {
    color: var(--primary-light);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--primary); }

/* ============================================================
   BOTÕES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}
.btn:active { transform: scale(0.96); }

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background: var(--secondary);
    color: #fff;
}
.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}
.btn-danger:hover {
    background: var(--danger-dark);
    transform: translateY(-2px);
}

.btn-warning {
    background: var(--warning);
    color: #0f172a;
}
.btn-warning:hover {
    background: var(--warning-dark);
    transform: translateY(-2px);
}

.btn-success {
    background: var(--primary);
    color: #fff;
}
.btn-success:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-light);
    color: var(--text-soft);
}
.btn-outline:hover {
    background: var(--primary-bg);
    border-color: var(--primary);
    color: var(--primary-light);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-soft);
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}
.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-lg);
}
.card-solid {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
}

/* ============================================================
   FORMULÁRIOS
   ============================================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1.2rem;
}
.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}
.form-control {
    padding: 0.75rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-sm);
    color: var(--text-light);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition);
    width: 100%;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

/* ============================================================
   TABELAS
   ============================================================ */
.table-wrapper {
    overflow-x: auto;
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-size: 0.9rem;
}
.table th,
.table td {
    padding: 0.9rem 0.8rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}
.table th {
    background: rgba(15, 23, 42, 0.9);
    color: var(--primary-light);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 1;
}
.table tbody tr {
    transition: background 0.15s ease;
}
.table tbody tr:hover {
    background: rgba(16, 185, 129, 0.04);
}
.table .total-row td {
    background: rgba(15, 23, 42, 0.9);
    font-weight: 700;
    border-top: 3px solid var(--primary);
}

/* ============================================================
   BADGES
   ============================================================ */
.badge {
    display: inline-block;
    padding: 0.2rem 0.8rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
    white-space: nowrap;
}
.badge-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(16, 185, 129, 0.25);
}
.badge-danger {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.25);
}
.badge-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #fde047;
    border: 1px solid rgba(245, 158, 11, 0.25);
}
.badge-info {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border: 1px solid rgba(59, 130, 246, 0.25);
}
.badge-purple {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: 1px solid rgba(139, 92, 246, 0.25);
}
.badge-muted {
    background: rgba(148, 163, 184, 0.15);
    color: var(--text-muted);
    border: 1px solid rgba(148, 163, 184, 0.15);
}
/* Status específicos para solicitações */
.badge-pendente {
    background: #fef3c7;
    color: #92400e;
}
.badge-aprovado {
    background: #dcfce7;
    color: #166534;
}
.badge-rejeitado {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--primary);
}
.header-title h1 {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.header-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

/* ============================================================
   MENSAGENS FLASH
   ============================================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideDown 0.3s ease;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}
.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}
.alert-info {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
}

/* ============================================================
   ESTATÍSTICAS (GRID)
   ============================================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.stat-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.25rem;
    text-align: center;
    transition: var(--transition);
}
.stat-card:hover {
    transform: translateY(-3px);
    border-color: var(--border-medium);
    box-shadow: var(--shadow-lg);
}
.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
    margin-top: 0.3rem;
}
.stat-positive { color: var(--primary-light); }
.stat-negative { color: var(--danger); }
.stat-blue     { color: var(--secondary); }
.stat-purple   { color: var(--purple); }
.stat-warning  { color: var(--warning); }

/* ============================================================
   FILTROS
   ============================================================ */
.filters-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.filters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}
.filters-grid .filter-group {
    flex: 1 1 180px;
    min-width: 150px;
}
.filters-grid .filter-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ============================================================
   PAGINAÇÃO
   ============================================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-soft);
    font-size: 0.9rem;
    transition: var(--transition);
    text-decoration: none;
}
.pagination a:hover {
    background: var(--primary);
    color: #0f172a;
    border-color: var(--primary);
}
.pagination .active {
    background: var(--primary);
    color: #0f172a;
    border-color: var(--primary);
    font-weight: 700;
}
.pagination .disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s ease;
}
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.modal-content {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 550px;
    width: 90%;
    box-shadow: var(--shadow-xl);
    animation: scaleUp 0.25s ease;
}
@keyframes scaleUp {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}
.modal-header h3 {
    font-size: 1.5rem;
}
.modal-close {
    background: transparent;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    line-height: 1;
}
.modal-close:hover {
    color: var(--danger);
    transform: rotate(90deg);
}

/* ============================================================
   TABS
   ============================================================ */
.tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid var(--border-light);
    margin-bottom: 1.5rem;
}
.tab {
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    color: var(--text-muted);
}
.tab:hover {
    color: var(--text-light);
}
.tab.ativo {
    border-bottom-color: var(--primary);
    color: var(--primary-light);
}
.tab-content {
    display: none;
}
.tab-content.ativo {
    display: block;
}

/* ============================================================
   COMPONENTES ESPECÍFICOS DO PAINEL
   ============================================================ */
.user-info-card {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.user-info-card .status-dot {
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}
.menu-item {
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: var(--transition);
    text-decoration: none;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
}
.menu-item:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}
.menu-item .icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}
.menu-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.menu-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    flex: 1;
}
.menu-item .arrow {
    margin-top: 1rem;
    color: var(--primary);
    font-weight: 600;
    opacity: 0;
    transition: var(--transition);
}
.menu-item:hover .arrow {
    opacity: 1;
}
.menu-item.logout:hover {
    background: var(--danger);
    border-color: var(--danger);
}
.menu-item.logout:hover h3,
.menu-item.logout:hover p,
.menu-item.logout:hover .arrow {
    color: #fff;
}

.welcome-message {
    background: var(--primary-bg);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.5rem;
}
.welcome-message h2 {
    color: var(--primary-light);
    margin-bottom: 0.5rem;
}
.welcome-message p {
    color: var(--text-muted);
}

.info-card {
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}
.info-card .details {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--text-muted);
}
.info-card .details strong {
    color: var(--text-light);
}
.info-card .semanal-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
}
.info-card .semanal-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ============================================================
   FOLHA DE PAGAMENTO (MODERNO)
   ============================================================ */
.folha-pagamento-modern {
    background: #fff;
    color: #222;
    font-family: 'Inter', Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    border: 1px solid #ccc;
    box-shadow: 0 0 20px rgba(0,0,0,0.05);
}
.folha-pagamento-modern .pag-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 20px;
}
.folha-pagamento-modern .pag-header h2 {
    font-size: 1.8em;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
    letter-spacing: 1px;
}
.folha-pagamento-modern .pag-header .sub {
    font-size: 1em;
    color: #555;
    margin-top: 5px;
}
.folha-pagamento-modern .info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 25px;
    font-size: 0.9em;
}
.folha-pagamento-modern .info-table td {
    padding: 8px 12px;
    border: 1px solid #ddd;
    vertical-align: middle;
}
.folha-pagamento-modern .info-table .label {
    background: #f5f5f5;
    font-weight: 600;
    width: 30%;
}
.folha-pagamento-modern .proventos-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    font-size: 0.9em;
}
.folha-pagamento-modern .proventos-table th {
    background: #2c3e50;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.folha-pagamento-modern .proventos-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}
.folha-pagamento-modern .proventos-table tr:nth-child(even) td {
    background: #f9f9f9;
}
.folha-pagamento-modern .proventos-table .total-row {
    background: #e8f0fe;
    font-weight: 700;
    font-size: 1.05em;
}
.folha-pagamento-modern .proventos-table .total-row td {
    border-top: 2px solid #2c3e50;
    background: #e8f0fe;
}
.folha-pagamento-modern .ocorrencias-box {
    background: #fafafa;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 25px;
    font-size: 0.9em;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}
.folha-pagamento-modern .ocorrencias-box strong {
    color: #2c3e50;
}
.folha-pagamento-modern .assinatura-box {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    font-size: 0.9em;
}
.folha-pagamento-modern .assinatura-box div {
    text-align: center;
    width: 45%;
}
.folha-pagamento-modern .observacoes {
    margin: 20px 0;
    padding: 15px;
    border: 1px dashed #ccc;
    font-size: 0.9em;
    background: #fdfdfd;
}
.folha-pagamento-modern .footer-info {
    text-align: center;
    margin-top: 30px;
    font-size: 0.8em;
    color: #888;
}

/* ============================================================
   COMPONENTES DO HISTÓRICO
   ============================================================ */
.historico-func-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
    cursor: pointer;
    border-radius: 8px;
}
.historico-func-item:hover {
    background: rgba(255,255,255,0.05);
    transform: translateX(4px);
}
.historico-func-item:last-child {
    border-bottom: none;
}
.historico-func-item .func-info {
    flex: 1;
}
.historico-func-item .func-info strong {
    font-size: 16px;
    display: block;
    margin-bottom: 4px;
}
.historico-func-item .func-info .details {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}
.historico-func-item .func-info .details span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.historico-func-item .btn-view {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.historico-func-item .btn-view:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* ============================================================
   ESTILOS PARA SOLICITAÇÕES
   ============================================================ */
.btn-acoes {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ============================================================
   MISCELÂNEA
   ============================================================ */
.foto-thumbnail {
    cursor: pointer;
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-light);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.foto-thumbnail:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}
.sem-foto {
    color: #64748b;
    font-size: 12px;
}
.map-link {
    color: var(--secondary);
    text-decoration: none;
    font-size: 0.85rem;
}
.map-link:hover {
    text-decoration: underline;
}
.foto-link {
    color: var(--primary-light);
    cursor: pointer;
    font-weight: 600;
}
.foto-link:hover {
    text-decoration: underline;
}
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state .icon {
    font-size: 64px;
    margin-bottom: 16px;
}
.empty-state p {
    font-size: 16px;
    margin-bottom: 8px;
}

/* ============================================================
   RESPONSIVIDADE
   ============================================================ */
@media (max-width: 1024px) {
    body { padding: 1.25rem; }
}
@media (max-width: 768px) {
    body { padding: 1rem; }
    .header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .header-title h1 { font-size: 1.8rem; }
    .filters-grid {
        flex-direction: column;
        align-items: stretch;
    }
    .filters-grid .filter-group { flex: 1 1 auto; }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    .table {
        font-size: 0.8rem;
        min-width: 600px;
    }
    .table th,
    .table td {
        padding: 0.6rem 0.5rem;
    }
    .modal-content { padding: 1.5rem; }
    .historico-func-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .historico-func-item .btn-view {
        width: 100%;
        justify-content: center;
    }
    .folha-pagamento-modern {
        padding: 20px;
        max-width: 100%;
    }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .btn { font-size: 0.8rem; padding: 0.6rem 1rem; }
    .container { padding: 0; }
}

/* ============================================================
   IMPRESSÃO
   ============================================================ */
@media print {
    .no-print { display: none !important; }
    .print-only { display: inline !important; }
    @page { size: A4 portrait; margin: 0.5cm; }
    * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
    html, body {
        background: #fff !important;
        color: #000 !important;
        font-family: Arial, sans-serif !important;
        font-size: 10px !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.3 !important;
    }
    body { zoom: 0.85; }
    .container { width: 100% !important; max-width: 100% !important; margin: 0 auto !important; padding: 0 !important; }
    .filters-card, .btn-back, .btn-clear, .stats-grid, .mensagem-flash, .btn-add, .btn-add-small-danger, .modal, .btn-delete, .close, .empty-state, script { display: none !important; }
    .header { border-bottom: 2px solid #000 !important; margin-bottom: 8px !important; padding-bottom: 6px !important; }
    .header h1 { font-size: 16px !important; margin: 0 !important; color: #000 !important; }
    .header p { font-size: 9px !important; color: #333 !important; margin-top: 3px !important; }
    .employee-info { border: 1px solid #000 !important; background: #fff !important; border-radius: 4px !important; padding: 6px 8px !important; margin-bottom: 8px !important; }
    .employee-name { font-size: 12px !important; font-weight: bold !important; margin-bottom: 3px !important; color: #000 !important; }
    .employee-meta { font-size: 9px !important; color: #000 !important; display: flex !important; flex-wrap: wrap !important; gap: 8px !important; }
    .table-wrapper { overflow: visible !important; border: none !important; background: #fff !important; }
    .table { width: 100% !important; border-collapse: collapse !important; min-width: 100% !important; }
    .table th, .table td {
        border: 1px solid #000 !important;
        padding: 4px 3px !important;
        text-align: center !important;
        vertical-align: middle !important;
        color: #000 !important;
        font-size: 9px !important;
    }
    .table th { background: #e5e5e5 !important; font-size: 8px !important; font-weight: bold !important; text-transform: uppercase !important; position: static !important; }
    .total-row td { background: #ececec !important; font-weight: bold !important; border-top: 2px solid #000 !important; }
    .resumo-horas { margin-top: 8px !important; border: 1px solid #000 !important; background: #fff !important; border-radius: 4px !important; padding: 6px !important; }
    .resumo-horas h4 { text-align: center !important; margin-bottom: 4px !important; font-size: 11px !important; color: #000 !important; }
    .resumo-horas td { border: 1px solid #999 !important; padding: 4px !important; font-size: 9px !important; }
    .resumo-horas, .resumo-horas * { color: #000 !important; }
    .assinaturas { margin-top: 20px !important; display: flex !important; justify-content: space-between !important; gap: 16px !important; font-size: 9px !important; color: #000 !important; }
    .assinaturas div { width: 45% !important; text-align: center !important; }
    .folha-pagamento-modern {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        max-width: 100% !important;
    }
    .folha-pagamento-modern .pag-header { border-bottom-color: #000 !important; }
    .folha-pagamento-modern .pag-header h2 { color: #000 !important; }
    .folha-pagamento-modern .info-table td,
    .folha-pagamento-modern .proventos-table td,
    .folha-pagamento-modern .proventos-table th {
        border-color: #000 !important;
        background: #fff !important;
        color: #000 !important;
    }
    .folha-pagamento-modern .proventos-table .total-row td {
        background: #e8e8e8 !important;
    }
}