:root {
    --brand: #0d6efd;
    --ink: #1f2937;
    --muted: #6b7280;
    --line: #e5e7eb;
    --surface: #f6f8fb;
}

* {
    letter-spacing: 0;
}

body {
    background: var(--surface);
    color: var(--ink);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(13, 110, 253, .82), rgba(13, 110, 253, .72)),
        url("../img/logo.png") center / 240px no-repeat,
        #eef4ff;
}

.login-card,
.panel,
.stat-card,
.hero-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
}

.login-card {
    width: min(420px, calc(100vw - 2rem));
    padding: 2rem;
}

.stat-card {
    padding: 1rem;
    min-height: 120px;
}

.stat-card i {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    color: var(--brand);
    background: #eaf2ff;
    border-radius: 8px;
}

.stat-card .value {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
}

.hero-card {
    min-height: 180px;
    overflow: hidden;
}

.employee-photo {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid #d1d5db;
    background: #fff;
}

.profile-photo {
    width: 112px;
    height: 112px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: .75rem;
}

.table td,
.table th {
    vertical-align: middle;
}

.table-actions {
    white-space: nowrap;
}

.print-title {
    display: none;
}

@media (max-width: 992px) {
    .filter-grid {
        grid-template-columns: repeat(2, minmax(160px, 1fr));
    }
}

@media (max-width: 576px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }

    .btn-toolbar-mobile {
        width: 100%;
    }

    .btn-toolbar-mobile .btn {
        flex: 1 1 auto;
    }
}

@media print {
    body {
        background: #fff;
    }

    .navbar,
    .no-print,
    .dataTables_filter,
    .dataTables_length,
    .dataTables_info,
    .dataTables_paginate {
        display: none !important;
    }

    .panel,
    .stat-card,
    .hero-card {
        box-shadow: none;
        border: 0;
    }

    .print-title {
        display: block;
    }
}
