/* ============================================
   Direct Media Team -- Light Theme
   Bootstrap 5 + Custom Styles
   Brand: directmediacuracao.com
   ============================================ */

:root {
    --dm-red:            #a20d11;
    --dm-red-hover:      #c41015;
    --dm-red-dark:       #7a0a0d;
    --dm-body:           #f0f2f5;
    --dm-surface:        #ffffff;
    --dm-surface-2:      #f7f8fa;
    --dm-surface-3:      #eef0f4;
    --dm-sidebar:        #1e2230;
    --dm-border:         #dce0e8;
    --dm-text:           #111318;
    --dm-text-muted:     #3b4150;
    --dm-text-dim:       #5c6474;
    --dm-green:          #16a34a;
    --dm-green-soft:     rgba(22, 163, 74, 0.1);
    --dm-amber:          #d97706;
    --dm-amber-soft:     rgba(217, 119, 6, 0.1);
    --dm-red-soft:       rgba(162, 13, 17, 0.08);
    --dm-blue:           #2563eb;
    --dm-blue-soft:      rgba(37, 99, 235, 0.1);
    --dm-purple:         #7c3aed;
    --dm-orange:         #ea580c;
    --dm-radius:         10px;
    --dm-radius-sm:      6px;
    --dm-radius-lg:      14px;
    --dm-shadow:         0 4px 24px rgba(0, 0, 0, 0.08);
    --dm-shadow-sm:      0 2px 8px rgba(0, 0, 0, 0.05);
    --dm-transition:     all 0.2s ease;
}

/* ---- Reset & Base ---- */

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dm-body);
    color: var(--dm-text);
    margin: 0;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--dm-text-muted);
    text-decoration: none;
    transition: var(--dm-transition);
}

a:hover {
    color: var(--dm-text);
}

::selection {
    background: var(--dm-red);
    color: #fff;
}

.text-muted {
    color: var(--dm-text-muted) !important;
}

/* ---- Scrollbar ---- */

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--dm-body); }
::-webkit-scrollbar-thumb { background: var(--dm-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--dm-text-dim); }

/* ============================================
   LOGIN PAGE
   ============================================ */

.login-page {
    background: var(--dm-body);
    min-height: 100vh;
    min-height: -webkit-fill-available;
    margin: 0;
    padding: 0;
}

.login-wrapper {
    min-height: 100vh;
    min-height: -webkit-fill-available;
    display: flex;
    flex-direction: column;
}

.login-accent {
    height: 4px;
    background: linear-gradient(90deg, var(--dm-red), var(--dm-red-hover), var(--dm-red));
    flex-shrink: 0;
}

.login-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    width: 100%;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--dm-shadow);
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo img {
    max-width: 200px;
    width: 70%;
}

.login-title {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dm-text);
    margin: 0 0 0.2rem;
}

.login-subtitle {
    text-align: center;
    font-size: 0.82rem;
    color: var(--dm-text-dim);
    margin: 0 0 1.5rem;
}

.login-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1.25rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: var(--dm-radius);
    color: #dc2626;
    font-size: 0.82rem;
    font-weight: 500;
}

.login-error i {
    flex-shrink: 0;
    font-size: 1rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.login-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dm-text-dim);
}

.login-input-wrap {
    display: flex;
    align-items: center;
    background: var(--dm-surface-2);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    padding: 0 0.85rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.login-input-wrap:focus-within {
    border-color: var(--dm-red);
    box-shadow: 0 0 0 3px rgba(162, 13, 17, 0.15);
}

.login-input-wrap i {
    color: var(--dm-text-dim);
    font-size: 1rem;
    flex-shrink: 0;
    margin-right: 0.6rem;
}

.login-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--dm-text);
    font-size: 1rem;
    padding: 0.85rem 0;
    font-family: inherit;
    min-width: 0;
}

.login-input::placeholder {
    color: var(--dm-text-dim);
    opacity: 0.6;
}

.login-toggle-pw {
    background: none;
    border: none;
    color: var(--dm-text-dim);
    cursor: pointer;
    padding: 0.4rem;
    margin: -0.4rem -0.2rem -0.4rem 0;
    font-size: 1rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.login-toggle-pw:hover {
    color: var(--dm-text);
}

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.9rem 1.5rem;
    margin-top: 0.5rem;
    background: var(--dm-red);
    color: #fff;
    border: none;
    border-radius: var(--dm-radius);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.login-btn:hover {
    background: var(--dm-red-hover);
}

.login-btn:active {
    transform: scale(0.98);
}

.login-footer {
    text-align: center;
    font-size: 0.7rem;
    color: var(--dm-text-dim);
    margin-top: 1.5rem;
    opacity: 0.6;
}

@media (min-width: 480px) {
    .login-card {
        padding: 2.5rem 2rem;
    }

    .login-title {
        font-size: 1.5rem;
    }
}

@media (max-height: 600px) {
    .login-container {
        justify-content: flex-start;
        padding-top: 1rem;
    }

    .login-logo {
        margin-bottom: 1rem;
    }

    .login-logo img {
        max-width: 150px;
    }

    .login-subtitle {
        margin-bottom: 1rem;
    }
}

/* ============================================
   SIDEBAR
   ============================================ */

.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 260px;
    background: var(--dm-sidebar);
    border-right: none;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
    --sb-text: #f0f0f0;
    --sb-muted: #9ca3b4;
    --sb-dim: #6b7280;
    --sb-border: rgba(255,255,255,0.1);
}

.sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow-y: auto;
}

.sidebar-logo {
    padding: 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--sb-border);
}

.sidebar-logo img {
    max-width: 180px;
    width: 100%;
}

.sidebar-user {
    padding: 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--sb-border);
}

.sidebar-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--dm-red);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.sidebar-user-name {
    color: var(--sb-text);
    font-weight: 600;
    font-size: 0.9rem;
}

.sidebar-user-role {
    color: var(--sb-dim);
    font-size: 0.75rem;
    margin-top: 0.15rem;
}

.sidebar-nav {
    list-style: none;
    padding: 0.75rem 0.75rem;
    margin: 0;
    flex: 1;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: var(--dm-radius);
    color: var(--sb-muted);
    font-size: 0.88rem;
    font-weight: 500;
    margin-bottom: 2px;
    transition: var(--dm-transition);
}

.sidebar-nav li a:hover {
    background: rgba(255,255,255,0.08);
    color: var(--sb-text);
}

.sidebar-nav li a.active {
    background: var(--dm-red);
    color: #fff;
    box-shadow: 0 2px 12px rgba(162, 13, 17, 0.35);
}

.sidebar-nav li a i {
    font-size: 1.15rem;
    width: 1.5rem;
    text-align: center;
}

.sidebar-section {
    color: var(--sb-dim);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1.25rem 1rem 0.4rem;
    list-style: none;
}

.sidebar-bottom {
    padding: 0.75rem;
    border-top: 1px solid var(--dm-border);
}

.sidebar-signout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    border-radius: var(--dm-radius);
    color: var(--dm-text-dim);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--dm-transition);
}

.sidebar-signout:hover {
    background: var(--dm-red-soft);
    color: var(--dm-red-hover);
}

/* ============================================
   TOPBAR
   ============================================ */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    height: 56px;
    background: var(--dm-surface);
    border-bottom: 1px solid var(--dm-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.topbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--dm-text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    margin: -0.5rem;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.visible {
    display: block;
    opacity: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.topbar-user {
    color: var(--dm-text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.topbar-signout {
    color: var(--dm-text-dim);
    font-size: 1.1rem;
    transition: var(--dm-transition);
}

.topbar-signout:hover {
    color: var(--dm-red);
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.main-content {
    margin-left: 260px;
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
    padding: 1.5rem;
}

/* ---- Page Header ---- */

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.page-header h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    color: var(--dm-text);
}

.breadcrumb {
    --bs-breadcrumb-divider-color: var(--dm-text-dim);
    --bs-breadcrumb-item-active-color: var(--dm-text-muted);
    margin: 0;
    font-size: 0.8rem;
}

.breadcrumb a {
    color: var(--dm-red);
}

.breadcrumb a:hover {
    color: var(--dm-red-hover);
}

/* ============================================
   CARDS
   ============================================ */

.card {
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    box-shadow: var(--dm-shadow-sm);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--dm-border);
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-body {
    padding: 1.25rem;
}

.card-footer {
    background: transparent;
    border-top: 1px solid var(--dm-border);
    padding: 1rem 1.25rem;
}

/* ============================================
   STAT CARDS
   ============================================ */

.stat-card {
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    padding: 1.25rem 1.25rem 1.25rem 1.5rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dm-shadow);
}

.stat-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.stat-card--total::before    { background: var(--dm-blue); }
.stat-card--pending::before  { background: var(--dm-amber); }
.stat-card--approved::before { background: var(--dm-green); }
.stat-card--rejected::before { background: var(--dm-red); }

.stat-card-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.5rem;
    opacity: 0.08;
}

.stat-card-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-card-label {
    color: var(--dm-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
}

/* ============================================
   TABLES
   ============================================ */

.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--dm-text);
    --bs-table-border-color: var(--dm-border);
    --bs-table-striped-bg: rgba(0,0,0,0.02);
    --bs-table-hover-bg: rgba(0,0,0,0.04);
    --bs-table-hover-color: var(--dm-text);
    margin-bottom: 0;
    font-size: 0.88rem;
}

.table thead th {
    background: var(--dm-surface-2);
    color: var(--dm-text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    border-bottom-width: 1px;
}

.table tbody td {
    padding: 0.75rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--dm-border);
    color: var(--dm-text);
}

/* ============================================
   BADGES
   ============================================ */

.badge {
    font-weight: 600;
    font-size: 0.72rem;
    padding: 0.35em 0.7em;
    border-radius: var(--dm-radius-sm);
}

.badge-pending {
    background: var(--dm-amber-soft);
    color: var(--dm-amber);
}

.badge-approved {
    background: var(--dm-green-soft);
    color: var(--dm-green);
}

.badge-rejected {
    background: var(--dm-red-soft);
    color: #ef4444;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    border-radius: var(--dm-radius);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    transition: var(--dm-transition);
    border: none;
}

.btn-primary {
    background: var(--dm-red);
    color: #fff;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--dm-red-hover);
    box-shadow: 0 2px 12px rgba(162, 13, 17, 0.4);
}

.btn-success {
    background: var(--dm-green);
    color: #fff;
}

.btn-success:hover {
    background: #1da34e;
}

.btn-danger {
    background: #ef4444;
    color: #fff;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-warning {
    background: var(--dm-amber);
    color: #000;
}

.btn-warning:hover {
    background: #d97706;
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--dm-border);
    color: var(--dm-text-muted);
    text-align: center;
    font-size: 0.85rem;
    padding: 0.55rem 1rem;
    border-radius: var(--dm-radius);
}

.btn-ghost:hover {
    background: var(--dm-surface-2);
    color: var(--dm-text);
    border-color: var(--dm-text-dim);
}

.btn-sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
}

.btn-icon {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--dm-radius-sm);
}

/* ============================================
   FORMS
   ============================================ */

.form-control, .form-select {
    background: var(--dm-surface-2);
    border: 1px solid var(--dm-border);
    color: var(--dm-text);
    border-radius: var(--dm-radius);
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    transition: var(--dm-transition);
}

.form-control:focus, .form-select:focus {
    background: var(--dm-surface-3);
    border-color: var(--dm-red);
    color: var(--dm-text);
    box-shadow: 0 0 0 3px rgba(162, 13, 17, 0.15);
}

.form-control::placeholder {
    color: var(--dm-text-dim);
}

.input-group-text {
    background: var(--dm-surface-3);
    border: 1px solid var(--dm-border);
    color: var(--dm-text-dim);
    border-radius: var(--dm-radius);
}

.form-label {
    color: var(--dm-text-muted);
    font-weight: 500;
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
}

textarea.form-control {
    min-height: 80px;
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

/* ============================================
   ALERTS
   ============================================ */

.alert {
    border-radius: var(--dm-radius);
    border: none;
    font-size: 0.9rem;
    padding: 0.85rem 1.25rem;
}

.alert-success {
    background: var(--dm-green-soft);
    color: var(--dm-green);
    border-left: 4px solid var(--dm-green);
}

.alert-danger {
    background: var(--dm-red-soft);
    color: #ef4444;
    border-left: 4px solid #ef4444;
}

.alert .btn-close {
    filter: none;
}

/* ============================================
   ADMINISTRATION -- Header
   ============================================ */

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.admin-header h2 {
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0;
    color: var(--dm-text);
}

.admin-header p {
    margin: 0.15rem 0 0;
    font-size: 0.82rem;
    color: var(--dm-text-dim);
}

.admin-pending-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: var(--dm-radius);
    padding: 0.4rem 0.85rem;
}

.admin-pending-count {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dm-amber);
    line-height: 1;
}

.admin-pending-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dm-amber);
    font-weight: 600;
}

/* ============================================
   ADMINISTRATION -- Period Bar
   ============================================ */

.admin-period-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    font-size: 0.82rem;
    color: var(--dm-text-dim);
}

.admin-period-bar .form-select {
    max-width: 280px;
    background-color: var(--dm-surface-2);
    border-color: var(--dm-border);
    color: var(--dm-text);
    font-size: 0.82rem;
}

/* ============================================
   ADMINISTRATION -- Layout
   ============================================ */

.admin-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1rem;
    align-items: start;
}

.admin-employee-toggle {
    display: none;
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    background: var(--dm-surface);
    color: var(--dm-text);
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0.75rem;
    align-items: center;
}

/* ============================================
   ADMINISTRATION -- Employee Panel
   ============================================ */

.admin-employee-panel {
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    overflow: hidden;
}

.admin-dept {
    border-bottom: 1px solid var(--dm-border);
}

.admin-dept:last-child {
    border-bottom: none;
}

.admin-dept-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.65rem 0.85rem;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dm-text-dim);
    background: var(--dm-surface-2);
}

.admin-dept-count {
    margin-left: auto;
    background: var(--dm-border);
    color: var(--dm-text-dim);
    font-size: 0.65rem;
    padding: 0.1rem 0.45rem;
    border-radius: 9px;
}

.admin-emp-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.55rem 0.85rem;
    color: var(--dm-text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--dm-border);
    transition: var(--dm-transition);
}

.admin-emp-link:last-child {
    border-bottom: none;
}

.admin-emp-link:hover {
    background: var(--dm-surface-2);
    color: var(--dm-text);
}

.admin-emp-link.active {
    background: var(--dm-red-soft);
    color: var(--dm-text);
    border-left: 3px solid var(--dm-red);
}

.admin-emp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--dm-surface-2);
    border: 1px solid var(--dm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--dm-text-dim);
    flex-shrink: 0;
}

.admin-emp-link.active .admin-emp-avatar {
    background: var(--dm-red);
    border-color: var(--dm-red);
    color: #fff;
}

.admin-emp-info {
    flex: 1;
    min-width: 0;
}

.admin-emp-name {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-emp-meta {
    font-size: 0.68rem;
    color: var(--dm-text-dim);
}

.admin-emp-pending {
    background: var(--dm-amber);
    color: #000;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.admin-empty-panel {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--dm-text-dim);
}

.admin-empty-panel i {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.5rem;
}

/* ============================================
   ADMINISTRATION -- Employee Header & Stats
   ============================================ */

.admin-emp-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.admin-emp-header-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--dm-red);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.admin-emp-header-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dm-text);
}

.admin-emp-header-info span {
    font-size: 0.78rem;
    color: var(--dm-text-dim);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.admin-stat {
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    padding: 0.65rem 0.5rem;
    text-align: center;
}

.admin-stat-value {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dm-text);
}

.admin-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dm-text-dim);
    font-weight: 600;
}

.admin-stat--approved .admin-stat-value { color: var(--dm-green); }
.admin-stat--rejected .admin-stat-value { color: #ef4444; }
.admin-stat--pending .admin-stat-value { color: var(--dm-amber); }

/* ============================================
   ADMINISTRATION -- Table Enhancements
   ============================================ */

.admin-row-pending {
    border-left: 3px solid var(--dm-amber);
}

.admin-actions {
    display: flex;
    gap: 0.25rem;
    justify-content: center;
}

/* ============================================
   ADMINISTRATION -- Mobile Entry Cards
   ============================================ */

.admin-entry-card {
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.admin-entry-card--pending {
    border-left: 3px solid var(--dm-amber);
}

.admin-entry-card-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
}

.admin-entry-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
    flex-shrink: 0;
}

.admin-entry-card-day {
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1;
    color: var(--dm-text);
}

.admin-entry-card-month {
    font-size: 0.62rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--dm-text-dim);
}

.admin-entry-card-info {
    flex: 1;
    min-width: 0;
}

.admin-entry-card-info strong {
    display: block;
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-entry-card-info small {
    display: block;
    font-size: 0.7rem;
    color: var(--dm-text-dim);
}

.admin-entry-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
}

.admin-entry-card-hours {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--dm-text);
}

.admin-entry-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.4rem 0.75rem;
    border-top: 1px dashed var(--dm-border);
}
.admin-entry-card-meta small {
    font-size: 0.72rem;
}

.admin-entry-card-actions {
    display: flex;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    background: var(--dm-surface-2);
    border-top: 1px solid var(--dm-border);
}

.admin-entry-card-actions .btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.5rem;
}

.admin-entry-card-actions--resolved {
    align-items: center;
}

/* ============================================
   ADMINISTRATION -- Empty State
   ============================================ */

.admin-empty {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--dm-text-dim);
}

.admin-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
    opacity: 0.5;
}

.admin-empty h4 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--dm-text);
}

.admin-empty p {
    margin: 0;
    font-size: 0.85rem;
}

/* ============================================
   ADMINISTRATION -- Print Report Header
   ============================================ */

.print-report-header {
    display: none;
}

/* ============================================
   ADMINISTRATION -- Totals Summary
   ============================================ */

.admin-totals {
    margin-top: 1rem;
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    overflow: hidden;
}

.admin-totals-title {
    padding: 0.6rem 1rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dm-text-muted);
    border-bottom: 1px solid var(--dm-border);
}

.admin-totals-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-totals-table td {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--dm-text);
    border-bottom: 1px solid var(--dm-border);
}

.admin-totals-table tr:last-child td {
    border-bottom: none;
}

.admin-totals-row--approved td:last-child { color: var(--dm-green); }
.admin-totals-row--pending td:last-child { color: var(--dm-amber); }
.admin-totals-row--rejected td:last-child { color: #ef4444; }

/* ============================================
   DASHBOARD -- Header
   ============================================ */

.dash-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 0.75rem;
}

.dash-header-text h2 {
    font-weight: 300;
    font-size: 1.2rem;
    color: var(--dm-text);
    margin: 0;
}

.dash-header-text h2 strong {
    font-weight: 700;
}

.dash-header-text p {
    color: var(--dm-text-dim);
    font-size: 0.78rem;
    margin: 0.15rem 0 0;
}

.btn-quick-action {
    white-space: nowrap;
    padding: 0.55rem 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ============================================
   DASHBOARD -- Month Selector / Archive
   ============================================ */

.month-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.45rem 0.75rem;
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    font-size: 0.82rem;
    color: var(--dm-text-dim);
}

.month-selector .form-select {
    flex: 1;
    font-size: 0.82rem;
    padding: 0.35rem 2rem 0.35rem 0.5rem;
    background-color: var(--dm-surface-2);
    border-color: var(--dm-border);
    color: var(--dm-text);
}

.archive-notice {
    background: var(--dm-amber-soft);
    color: var(--dm-amber);
    border-radius: var(--dm-radius);
    padding: 0.65rem 1rem;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.archive-notice a {
    color: var(--dm-amber);
    text-decoration: underline;
    font-weight: 600;
}

.archive-notice a:hover {
    color: var(--dm-text);
}

/* ============================================
   DASHBOARD -- Stats Grid
   ============================================ */

/* ============================================
   DASHBOARD -- Hours Overview
   ============================================ */

.dash-hours-grid {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.dash-hours-total {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    padding: 0.85rem 1.25rem;
    min-width: 100px;
}

.dash-hours-total-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dm-text);
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.dash-hours-total-label {
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--dm-text-dim);
    font-weight: 600;
    margin-top: 0.2rem;
}

.dash-hours-breakdown {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.dash-hours-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    padding: 0.6rem 0.5rem;
}

.dash-hours-item-value {
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.dash-hours-item-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dm-text-dim);
    font-weight: 600;
    margin-top: 0.15rem;
}

.dash-hours-item--approved .dash-hours-item-value { color: var(--dm-green); }
.dash-hours-item--pending .dash-hours-item-value { color: var(--dm-amber); }
.dash-hours-item--rejected .dash-hours-item-value { color: #ef4444; }

/* ============================================
   DASHBOARD -- Quick Stats
   ============================================ */

.dash-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.4rem;
    margin-bottom: 0.75rem;
}

.dash-stat-mini {
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    padding: 0.5rem;
    text-align: center;
}

.dash-stat-mini-value {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--dm-text);
    line-height: 1;
}

.dash-stat-mini-label {
    font-size: 0.58rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--dm-text-dim);
    font-weight: 600;
}

.dash-stat-mini--pending .dash-stat-mini-value { color: var(--dm-amber); }
.dash-stat-mini--approved .dash-stat-mini-value { color: var(--dm-green); }
.dash-stat-mini--rejected .dash-stat-mini-value { color: #ef4444; }

/* ============================================
   DASHBOARD -- Section Header
   ============================================ */

.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.dash-section-header h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0;
    color: var(--dm-text);
}

.dash-section-count {
    font-size: 0.7rem;
    color: var(--dm-text-dim);
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: 20px;
    padding: 0.15rem 0.6rem;
    font-weight: 600;
}

/* ============================================
   DASHBOARD -- Mobile Entry Cards
   ============================================ */

.entry-card {
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: border-color 0.15s;
}

.entry-card--pending {
    border-left: 3px solid var(--dm-amber);
}

.entry-card--approved {
    border-left: 3px solid var(--dm-green);
}

.entry-card--rejected {
    border-left: 3px solid #ef4444;
}

.entry-card-top {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.7rem 0.75rem;
}

.entry-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 36px;
    padding-top: 2px;
}

.entry-card-day {
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    color: var(--dm-text);
}

.entry-card-month {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dm-text-dim);
    letter-spacing: 0.05em;
}

.entry-card-info {
    flex: 1;
    min-width: 0;
}

.entry-card-info strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dm-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entry-card-info small {
    color: var(--dm-text-dim);
    font-size: 0.72rem;
    display: block;
    margin-top: 0.1rem;
}

.entry-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.45rem 0.75rem;
    background: var(--dm-surface-2);
    border-top: 1px solid var(--dm-border);
}

.entry-card-hours {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--dm-text);
    display: flex;
    align-items: center;
}

.entry-card-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

/* ============================================
   WELCOME BANNER (legacy compat)
   ============================================ */

.welcome-banner {
    margin-bottom: 1.5rem;
}

.welcome-banner h2 {
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--dm-text);
    margin: 0;
}

.welcome-banner h2 strong {
    font-weight: 700;
}

.welcome-banner p {
    color: var(--dm-text-muted);
    font-size: 0.85rem;
    margin: 0.25rem 0 0;
}

/* ============================================
   EMPTY STATE
   ============================================ */

.dash-empty {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--dm-surface);
    border: 1px dashed var(--dm-border);
    border-radius: var(--dm-radius);
}

.dash-empty i {
    font-size: 2.2rem;
    color: var(--dm-text-dim);
    opacity: 0.35;
    margin-bottom: 0.75rem;
    display: block;
}

.dash-empty p {
    color: var(--dm-text-muted);
    margin: 0 0 1rem;
    font-size: 0.88rem;
}

.dash-empty .btn {
    font-size: 0.85rem;
}

.empty-state {
    text-align: center;
    padding: 2.5rem 1rem;
}

.empty-state i {
    font-size: 2.2rem;
    color: var(--dm-text-dim);
    opacity: 0.35;
    margin-bottom: 0.75rem;
    display: block;
}

.empty-state p {
    color: var(--dm-text-muted);
    margin: 0;
    font-size: 0.88rem;
}

/* ============================================
   FOOTER
   ============================================ */

.app-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--dm-border);
    color: var(--dm-text-dim);
    font-size: 0.78rem;
    text-align: center;
    margin-top: auto;
}

.app-footer a {
    color: var(--dm-red);
}

.app-footer a:hover {
    color: var(--dm-red-hover);
}

/* ============================================
   SUBMIT FORM -- Step Indicator
   ============================================ */

.submit-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.submit-step {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--dm-text-dim);
    font-size: 0.72rem;
    font-weight: 500;
    transition: var(--dm-transition);
}

.submit-step-num {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--dm-surface-2);
    border: 2px solid var(--dm-border);
    color: var(--dm-text-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    transition: var(--dm-transition);
    flex-shrink: 0;
}

.submit-step.active .submit-step-num,
.submit-step.completed .submit-step-num {
    background: var(--dm-red);
    border-color: var(--dm-red);
    color: #fff;
}

.submit-step.active,
.submit-step.completed {
    color: var(--dm-text);
}

.submit-step.completed .submit-step-num {
    background: var(--dm-green);
    border-color: var(--dm-green);
}

.submit-step-line {
    flex: 1;
    height: 2px;
    background: var(--dm-border);
    margin: 0 0.5rem;
    max-width: 50px;
}

/* ============================================
   SUBMIT FORM -- Sections
   ============================================ */

.submit-section {
    margin-bottom: 1rem;
}

.submit-section-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--dm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 0.5rem;
}

.submit-card {
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    padding: 0.75rem;
}

.submit-field {
    margin-bottom: 0.65rem;
}

.submit-field:last-child {
    margin-bottom: 0;
}

.submit-field-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dm-text-muted);
    margin-bottom: 0.3rem;
}

.submit-field .form-control {
    font-size: 0.88rem;
    padding: 0.55rem 0.75rem;
}

.submit-field textarea.form-control {
    resize: vertical;
    min-height: 56px;
}

.submit-time-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
}

.submit-time-field .form-control {
    font-size: 0.85rem;
    padding: 0.55rem 0.65rem;
}

/* ============================================
   SUBMIT FORM -- Type Selector Cards
   ============================================ */

.type-selector {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.type-card {
    cursor: pointer;
    position: relative;
}

.type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.type-card-inner {
    background: var(--dm-surface);
    border: 2px solid var(--dm-border);
    border-radius: var(--dm-radius);
    padding: 0.75rem 0.85rem;
    transition: var(--dm-transition);
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.65rem;
    touch-action: manipulation;
}

.type-card-inner i {
    font-size: 1.35rem;
    color: var(--dm-text-dim);
    transition: var(--dm-transition);
    flex-shrink: 0;
}

.type-card-inner strong {
    font-size: 0.85rem;
    color: var(--dm-text);
}

.type-card-inner small {
    font-size: 0.72rem;
    color: var(--dm-text-dim);
    line-height: 1.3;
    margin-left: auto;
}

.type-card:hover .type-card-inner {
    border-color: var(--dm-text-dim);
    background: var(--dm-surface-2);
}

.type-card.selected .type-card-inner {
    border-color: var(--dm-red);
    background: var(--dm-red-soft);
    box-shadow: 0 0 0 3px rgba(162, 13, 17, 0.15);
}

.type-card.selected .type-card-inner i {
    color: var(--dm-red-hover);
}

/* ============================================
   SUBMIT FORM -- Duration Display
   ============================================ */

.duration-display {
    background: var(--dm-surface);
    border: 2px solid var(--dm-border);
    border-radius: var(--dm-radius);
    padding: 1rem;
    text-align: center;
    margin-bottom: 0.65rem;
    transition: var(--dm-transition);
}

.duration-display.has-value {
    border-color: var(--dm-green);
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.06), rgba(22, 163, 74, 0.02));
}

.duration-display.has-error {
    border-color: #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.06), rgba(239, 68, 68, 0.02));
}

.duration-clock {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
}

.duration-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.duration-value {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
    color: var(--dm-text-dim);
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
}

.duration-display.has-value .duration-value {
    color: var(--dm-green);
}

.duration-display.has-error .duration-value {
    color: #ef4444;
}

.duration-label {
    font-size: 0.6rem;
    color: var(--dm-text-dim);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
    margin-top: 0.15rem;
}

.duration-sep {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dm-text-dim);
    margin: 0 0.2rem;
    align-self: flex-start;
    line-height: 1;
}

.duration-display.has-value .duration-sep {
    color: var(--dm-green);
    animation: blink 1.5s step-end infinite;
}

@keyframes blink {
    50% { opacity: 0.3; }
}

.duration-hint {
    color: var(--dm-text-dim);
    font-size: 0.72rem;
    margin-top: 0.4rem;
}

.duration-display.has-value .duration-hint {
    color: var(--dm-green);
}

.duration-display.has-error .duration-hint {
    color: #ef4444;
}

/* ============================================
   SUBMIT FORM -- Actions
   ============================================ */

.submit-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-top: 0.75rem;
}

.btn-submit {
    width: 100%;
    padding: 0.8rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    border-radius: var(--dm-radius);
}

/* ============================================
   SUBMIT FORM -- Mobile Responsive
   ============================================ */

@media (max-width: 480px) {
    .submit-steps span {
        display: none;
    }

    .submit-step-line {
        margin: 0 0.4rem;
    }

    .duration-display {
        padding: 0.75rem;
    }

    .duration-value {
        font-size: 1.8rem;
    }

    .duration-sep {
        font-size: 1.4rem;
    }

    .submit-card {
        padding: 0.6rem;
    }

    .submit-time-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

@media (min-width: 769px) {
    .type-selector {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .type-card-inner {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
        gap: 0.4rem;
    }

    .type-card-inner i {
        font-size: 1.75rem;
    }

    .type-card-inner small {
        margin-left: 0;
    }

    .submit-section-label {
        font-size: 0.85rem;
    }

    .submit-card {
        padding: 1.25rem;
    }

    .submit-field .form-control {
        font-size: 0.95rem;
        padding: 0.65rem 0.85rem;
    }

    .submit-time-field .form-control {
        font-size: 0.95rem;
        padding: 0.65rem 0.85rem;
    }

    .duration-display {
        padding: 1.5rem;
    }

    .duration-value {
        font-size: 3rem;
    }

    .duration-sep {
        font-size: 2.5rem;
        margin: 0 0.3rem;
    }

    .duration-label {
        font-size: 0.7rem;
    }

    .duration-hint {
        font-size: 0.8rem;
    }

    .submit-actions {
        flex-direction: row;
        gap: 0.75rem;
    }

    .btn-submit {
        flex: 1;
        width: auto;
    }

    .btn-ghost {
        width: auto;
    }

    .submit-steps {
        margin-bottom: 2rem;
    }

    .submit-section {
        margin-bottom: 1.5rem;
    }
}

/* ============================================
   FLATPICKR OVERRIDES
   ============================================ */

.flatpickr-calendar {
    background: var(--dm-surface) !important;
    border: 1px solid var(--dm-border) !important;
    box-shadow: var(--dm-shadow) !important;
    border-radius: var(--dm-radius) !important;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.35s ease-out;
}

/* ============================================
   PRINT
   ============================================ */

@media print {

    * { box-shadow: none !important; text-shadow: none !important; }

    body {
        background: #fff !important;
        color: #000 !important;
        font-family: Arial, Helvetica, sans-serif;
        font-size: 9pt;
        line-height: 1.3;
        margin: 0;
        padding: 0;
    }

    /* Hide everything that isn't data */
    .sidebar,
    .topbar,
    .app-footer,
    .sidebar-backdrop,
    .no-print,
    .btn,
    .btn-quick-action,
    .month-selector,
    .archive-notice,
    .admin-header,
    .admin-period-bar,
    .admin-pending-badge,
    .admin-employee-toggle,
    .admin-employee-panel,
    .admin-emp-header,
    .admin-stats,
    .admin-entry-card-actions,
    .admin-actions,
    .d-md-none,
    .entry-card-actions,
    .dash-header,
    .dash-stats,
    .dash-section-header,
    .dash-empty,
    .admin-empty,
    .alert {
        display: none !important;
    }

    .fade-in-up { animation: none !important; }
    a[href]::after { content: none !important; }

    /* Layout: full width, no margins */
    .main-content {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    .page-content { padding: 0 !important; }
    .admin-layout { display: block !important; }
    .admin-main { width: 100% !important; max-width: 100% !important; }

    /* Show desktop table, hide mobile cards */
    .d-none.d-md-block,
    .admin-print-table {
        display: block !important;
    }

    /* ---- Print report header ---- */
    .print-report-header {
        display: block !important;
        padding: 0 0 8pt;
        margin: 0 0 6pt;
        border-bottom: 1.5pt solid #000 !important;
    }
    .print-report-header h2 {
        font-size: 14pt !important;
        font-weight: 700 !important;
        margin: 0 !important;
        color: #000 !important;
    }
    .print-report-header p {
        font-size: 8.5pt !important;
        color: #333 !important;
        margin: 2pt 0 0 !important;
    }

    /* ---- The data table ---- */
    .card {
        border: none !important;
        background: #fff !important;
        padding: 0 !important;
        border-radius: 0 !important;
    }
    .table-responsive { overflow: visible !important; }
    .table {
        width: 100% !important;
        border-collapse: collapse !important;
        background: #fff !important;
    }
    .table thead th {
        background: #fff !important;
        color: #000 !important;
        font-weight: 700 !important;
        font-size: 7.5pt;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 4pt 5pt !important;
        border-top: 1.5pt solid #000 !important;
        border-bottom: 1.5pt solid #000 !important;
    }
    .table tbody td {
        color: #000 !important;
        background: #fff !important;
        font-size: 8pt;
        padding: 3pt 5pt !important;
        border-bottom: 0.5pt solid #ccc !important;
        vertical-align: top;
    }
    .table tbody td strong { color: #000 !important; }
    .table tbody tr { page-break-inside: avoid; }
    .table-striped tbody tr:nth-of-type(odd) td { background: #fff !important; }

    .text-muted, .text-muted *, small { color: #444 !important; }

    /* Status: plain text, no badge styling */
    .badge {
        background: none !important;
        border: none !important;
        color: #000 !important;
        padding: 0 !important;
        font-size: 8pt;
        font-weight: 600 !important;
    }
    .badge-approved { color: #000 !important; }
    .badge-rejected { color: #000 !important; }
    .badge-pending  { color: #000 !important; }

    /* ---- Totals at the bottom ---- */
    .admin-totals {
        border: 1.5pt solid #000 !important;
        border-radius: 0 !important;
        margin-top: 10pt !important;
        page-break-inside: avoid;
        background: #fff !important;
    }
    .admin-totals-title {
        background: #fff !important;
        color: #000 !important;
        border-bottom: 1.5pt solid #000 !important;
        font-size: 8pt !important;
        font-weight: 700 !important;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        padding: 4pt 6pt !important;
    }
    .admin-totals-table { width: 100% !important; background: #fff !important; }
    .admin-totals-table td {
        padding: 3pt 6pt !important;
        font-size: 8.5pt !important;
        color: #000 !important;
        background: #fff !important;
        border-bottom: 0.5pt solid #ccc !important;
    }
    .admin-totals-table tr:last-child td { border-bottom: none !important; }
    .admin-totals-row--approved td:last-child,
    .admin-totals-row--pending td:last-child,
    .admin-totals-row--rejected td:last-child { color: #000 !important; }

    /* ---- Dashboard print ---- */
    .dash-hours-grid, .dash-hours-total, .dash-hours-item, .dash-hours-breakdown {
        background: #fff !important; border-color: #ccc !important;
    }
    .dash-hours-total-value, .dash-hours-item-value { color: #000 !important; }
    .dash-stat-mini { background: #fff !important; border-color: #ccc !important; }
    .dash-stat-mini-value { color: #000 !important; }
    .entry-card { background: #fff !important; border-color: #ccc !important; }
    .entry-card-bottom { background: #fff !important; }
    .entry-card-day, .entry-card-info strong, .entry-card-hours { color: #000 !important; }
}

/* ============================================
   USER MANAGEMENT
   ============================================ */

.um-search {
    margin-bottom: 1rem;
}

.um-search .input-group-text {
    background: var(--dm-surface);
    border-color: var(--dm-border);
    color: var(--dm-text-dim);
}

.um-search .form-control {
    background: var(--dm-surface);
    border-color: var(--dm-border);
    color: var(--dm-text);
}

.um-user {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.um-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--dm-surface-2);
    border: 1px solid var(--dm-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--dm-text-dim);
    flex-shrink: 0;
}

.um-avatar--inactive {
    opacity: 0.4;
}

.um-row--inactive td {
    opacity: 0.5;
}

.um-level {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--dm-surface-2);
    border: 1px solid var(--dm-border);
    color: var(--dm-text-dim);
}

.um-level--admin {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--dm-red);
}

.um-badge-active {
    background: rgba(34, 197, 94, 0.15);
    color: var(--dm-green);
    font-size: 0.7rem;
    font-weight: 600;
}

.um-badge-inactive {
    background: rgba(156, 163, 175, 0.15);
    color: var(--dm-text-dim);
    font-size: 0.7rem;
    font-weight: 600;
}

.um-card {
    background: var(--dm-surface);
    border: 1px solid var(--dm-border);
    border-radius: var(--dm-radius);
    margin-bottom: 0.5rem;
    overflow: hidden;
}

.um-card--inactive {
    opacity: 0.6;
}

.um-card-top {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.75rem;
}

.um-card-info {
    flex: 1;
    min-width: 0;
}

.um-card-info strong {
    display: block;
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.um-card-info small {
    display: block;
    font-size: 0.72rem;
    color: var(--dm-text-dim);
}

.um-card-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.2rem;
    flex-shrink: 0;
}

.um-card-actions {
    display: flex;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    background: var(--dm-surface-2);
    border-top: 1px solid var(--dm-border);
}

.um-card-actions .btn {
    font-size: 0.78rem;
    padding: 0.3rem 0.5rem;
}

.um-section-header {
    display: flex;
    align-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dm-green);
    margin-bottom: 0.5rem;
    margin-top: 0.25rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--dm-border);
}

.um-section-header--inactive {
    color: var(--dm-text-dim);
    margin-top: 1.5rem;
}

.um-section-count {
    margin-left: auto;
    background: var(--dm-surface-2);
    border: 1px solid var(--dm-border);
    color: var(--dm-text-dim);
    font-size: 0.68rem;
    padding: 0.1rem 0.5rem;
    border-radius: 9px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.open {
        transform: translateX(0);
        box-shadow: var(--dm-shadow);
    }

    .main-content {
        margin-left: 0;
    }

    .topbar-toggle {
        display: block;
    }

    .admin-layout {
        grid-template-columns: 1fr;
    }

    .admin-employee-toggle {
        display: flex;
    }

    .admin-employee-panel {
        display: none;
        margin-bottom: 0.75rem;
    }

    .admin-employee-panel.open {
        display: block;
    }
}

@media (max-width: 768px) {
    .page-content {
        padding: 0.75rem;
    }

    .stat-card-value {
        font-size: 1.5rem;
    }

    .admin-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dash-hours-grid {
        flex-direction: column;
    }

    .dash-hours-total {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.65rem 1rem;
    }

    .dash-hours-total-value {
        font-size: 1.3rem;
    }

    .dash-hours-total-label {
        font-size: 0.62rem;
    }

    .dash-hours-breakdown {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .dash-hours-item {
        padding: 0.5rem 0.25rem;
    }

    .dash-hours-item-value {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .page-content {
        padding: 0.6rem;
    }

    .dash-header-text h2 {
        font-size: 1.05rem;
    }

    .dash-stat-mini {
        padding: 0.4rem;
    }

    .dash-stat-mini-value {
        font-size: 1rem;
    }

    .stat-card {
        padding: 1rem 1rem 1rem 1.25rem;
    }

    .stat-card-value {
        font-size: 1.3rem;
    }

    .stat-card-label {
        font-size: 0.72rem;
    }

    .entry-card-info strong {
        font-size: 0.78rem;
    }

    .entry-card-info small {
        font-size: 0.68rem;
    }

    .entry-card-bottom {
        padding: 0.35rem 0.65rem;
    }

    .entry-card-hours {
        font-size: 0.78rem;
    }
}

@media (min-width: 769px) {
    .dash-header-text h2 {
        font-size: 1.4rem;
    }

    .dash-hours-total-value {
        font-size: 1.8rem;
    }

    .dash-hours-item-value {
        font-size: 1.15rem;
    }

    .dash-stat-mini-value {
        font-size: 1.35rem;
    }

    .dash-stat-mini-label {
        font-size: 0.65rem;
    }
}
