/* Existing page-specific structure, centralized during the theme migration. */
/* Timekeeping/Views/Device/Index.cshtml */

    .btn-press {
        transition: transform 160ms ease-out;
    }

    .btn-press:active {
        transform: scale(0.97);
    }

    .test-connection-result {
        opacity: 0;
        transform: translateY(-4px) scale(0.98);
        transition: opacity 180ms ease-out, transform 180ms ease-out;
    }

    .test-connection-result.is-visible {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    #testConnectionIcon.spin {
        animation: test-connection-spin 700ms linear infinite;
    }

    @keyframes test-connection-spin {
        from { transform: rotate(0deg); }
        to { transform: rotate(360deg); }
    }

/* Timekeeping/Views/Device/ViewDatabaseData.cshtml */

    .dbdata-page .page-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .875rem;
        margin-bottom: 1.5rem;
    }

    .dbdata-page .page-head .title-group {
        display: flex;
        align-items: center;
        gap: .875rem;
    }

    .dbdata-page .page-head .icon-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: linear-gradient(135deg, #d97706, #b45309);
        color: #fff;
        font-size: 1.4rem;
        box-shadow: 0 4px 10px rgba(217, 119, 6, .25);
        flex-shrink: 0;
    }

    .dbdata-page .page-head h1 {
        font-size: 1.4rem;
        font-weight: 700;
        margin: 0;
        color: #0f172a;
    }

    .dbdata-page .page-head .subtitle {
        color: #64748b;
        font-size: .875rem;
        margin: 0;
    }

    .dbdata-card {
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .08);
    }

    .dbdata-card .card-header {
        background: #f8fafc !important;
        color: #0f172a !important;
        border-bottom: 1px solid #e2e8f0;
        padding: .9rem 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .dbdata-card .count-pill {
        background: #fffbeb;
        color: #b45309;
        font-weight: 600;
        font-size: .78rem;
        padding: .25rem .65rem;
        border-radius: 999px;
    }

    .dbdata-table {
        margin: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .dbdata-table thead th {
        background: #f8fafc;
        color: #64748b;
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 1px solid #e2e8f0;
        padding: .75rem 1rem;
        white-space: nowrap;
    }

    .dbdata-table tbody td {
        padding: .75rem 1rem;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        font-size: .85rem;
        color: #1e293b;
    }

    .dbdata-table tbody tr:last-child td {
        border-bottom: none;
    }

    .dbdata-table tbody tr:hover {
        background-color: #f8fafc;
    }

    .stat-tile {
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        text-align: center;
        padding: 1rem .5rem;
        background: #fff;
    }

    .stat-tile h5 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #0f172a;
        margin-bottom: .2rem;
    }

    .stat-tile p {
        font-size: .74rem;
        color: #64748b;
        margin: 0;
        text-transform: uppercase;
        letter-spacing: .03em;
    }

    .info-banner {
        background: #eff6ff;
        border: 1px solid #bfdbfe;
        color: #1d4ed8;
        border-radius: 10px;
        padding: .7rem 1rem;
        font-size: .85rem;
    }

/* Timekeeping/Views/Diagnostics/Index.cshtml */

        .diagnostics-page .card {
            border-radius: 0.6rem;
            overflow: hidden;
        }

        .diagnostics-table th {
            font-weight: 600;
            color: #495057;
        }

        .diagnostics-table tr {
            transition: background-color 120ms ease-out;
        }

        .diagnostics-table tr:hover {
            background-color: #f8f9fa;
        }

        .diagnostics-page .badge {
            font-weight: 600;
            padding: 0.4em 0.7em;
            border-radius: 0.35rem;
        }

        .diagnostics-page .btn {
            transition: transform 120ms ease-out;
        }

        .diagnostics-page .btn:active {
            transform: scale(0.97);
        }
    
/* Timekeeping/Views/MauiAgents/Index.cshtml */

    .agents-page .page-head {
        display: flex;
        align-items: center;
        gap: .875rem;
        margin-bottom: 1.5rem;
    }

    .agents-page .page-head .icon-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: #fff;
        font-size: 1.4rem;
        box-shadow: 0 4px 10px rgba(37, 99, 235, .25);
    }

    .agents-page .page-head h1 {
        font-size: 1.4rem;
        font-weight: 700;
        margin: 0;
        color: #0f172a;
    }

    .agents-page .page-head .subtitle {
        color: #64748b;
        font-size: .875rem;
        margin: 0;
    }

    .agents-card {
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .08);
    }

    .agents-card .card-header {
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        padding: .9rem 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .agents-card .card-header .count-pill {
        background: #eef2ff;
        color: #4338ca;
        font-weight: 600;
        font-size: .78rem;
        padding: .25rem .65rem;
        border-radius: 999px;
    }

    .agents-card .card-header .published-version-pill {
        background: #f1f5f9;
        color: #475569;
        font-weight: 600;
        font-size: .78rem;
        padding: .25rem .65rem;
        border-radius: 999px;
        border: 1px solid #e2e8f0;
    }

    .version-badge {
        display: inline-flex;
        align-items: center;
        gap: .3rem;
        font-size: .74rem;
        font-weight: 700;
        padding: .22rem .5rem;
        border-radius: 999px;
        white-space: nowrap;
    }

    .version-badge.match {
        background: #ecfdf5;
        color: #15803d;
        border: 1px solid #bbf7d0;
    }

    .version-badge.mismatch {
        background: #fffbeb;
        color: #b45309;
        border: 1px solid #fde68a;
    }

    .offline-duration {
        display: block;
        margin-top: .2rem;
        font-size: .72rem;
        color: #94a3b8;
    }

    .offline-duration.alarm {
        color: #dc2626;
        font-weight: 600;
    }

    .agents-table {
        margin: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .agents-table thead th {
        background: #f8fafc;
        color: #64748b;
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 1px solid #e2e8f0;
        padding: .75rem 1rem;
        white-space: nowrap;
    }

    .agents-table tbody td {
        padding: .85rem 1rem;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        font-size: .875rem;
        color: #1e293b;
    }

    .agents-table tbody tr {
        transition: background-color 120ms ease;
    }

    .agents-table tbody tr:last-child td {
        border-bottom: none;
    }

    .agents-table tbody tr:hover {
        background-color: #f8fafc;
    }

    /* Status */
    .status-chip {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        font-size: .8rem;
        font-weight: 600;
    }

    .status-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        flex-shrink: 0;
    }

    .status-chip.online {
        color: #15803d;
    }

    .status-chip.online .status-dot {
        background: #22c55e;
        box-shadow: 0 0 0 3px rgba(34, 197, 94, .18);
        animation: status-pulse 2s ease-in-out infinite;
    }

    .status-chip.offline {
        color: #64748b;
    }

    .status-chip.offline .status-dot {
        background: #94a3b8;
    }

    @keyframes status-pulse {
        0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, .18); }
        50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, .1); }
    }

    @media (prefers-reduced-motion: reduce) {
        .status-chip.online .status-dot {
            animation: none;
        }
    }

    .friendly-name {
        font-weight: 600;
        color: #0f172a;
    }

    .machine-name {
        color: #64748b;
        font-size: .8rem;
    }

    /* API key chip */
    .apikey-chip {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        background: #eef2ff;
        border: 1px solid #c7d2fe;
        color: #4338ca;
        font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
        font-size: .78rem;
        font-weight: 600;
        padding: .3rem .6rem;
        border-radius: 7px;
        max-width: 220px;
    }

    .apikey-chip i {
        font-size: .75rem;
        opacity: .8;
    }

    .apikey-chip .apikey-text {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .apikey-chip.unlinked {
        background: #f1f5f9;
        border-color: #e2e8f0;
        color: #64748b;
        font-family: inherit;
        font-weight: 500;
    }

    .icon-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 7px;
        border: 1px solid #e2e8f0;
        background: #fff;
        color: #64748b;
        transition: transform 130ms ease-out, background-color 130ms ease-out, color 130ms ease-out, border-color 130ms ease-out;
    }

    .icon-btn:hover {
        background: #f8fafc;
        color: #2563eb;
        border-color: #c7d2fe;
    }

    .icon-btn:active {
        transform: scale(.92);
    }

    /* Schedule badges */
    .schedule-badge {
        display: inline-block;
        font-size: .72rem;
        font-weight: 700;
        padding: .28rem .55rem;
        border-radius: 999px;
        white-space: nowrap;
    }

    .schedule-badge.enabled {
        background: #ecfdf5;
        color: #15803d;
        border: 1px solid #bbf7d0;
    }

    .schedule-badge.disabled {
        background: #f1f5f9;
        color: #64748b;
        border: 1px solid #e2e8f0;
    }

    .schedule-windows {
        margin-top: .3rem;
        font-size: .74rem;
        color: #94a3b8;
    }

    /* Trigger upload button */
    .btn-upload {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        border: none;
        color: #fff;
        font-size: .8rem;
        font-weight: 600;
        padding: .4rem .8rem;
        border-radius: 8px;
        transition: transform 140ms ease-out, box-shadow 140ms ease-out;
        box-shadow: 0 2px 6px rgba(37, 99, 235, .25);
    }

    .btn-upload:hover {
        color: #fff;
        box-shadow: 0 4px 10px rgba(37, 99, 235, .32);
    }

    .btn-upload:active {
        transform: scale(.97);
    }

    /* History modals */
    #uploadHistoryModal .modal-content,
    #statusHistoryModal .modal-content {
        border: none;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 20px 50px -12px rgba(15, 23, 42, .25);
    }

    #uploadHistoryModal .modal-header,
    #statusHistoryModal .modal-header {
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: #fff;
        border-bottom: none;
        padding: 1.1rem 1.5rem;
    }

    #uploadHistoryModal .modal-title,
    #statusHistoryModal .modal-title {
        font-size: 1.05rem;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: .5rem;
    }

    #uploadHistoryModal .btn-close,
    #statusHistoryModal .btn-close {
        filter: brightness(0) invert(1);
        opacity: .85;
    }

    #uploadHistoryModal .modal-body,
    #statusHistoryModal .modal-body {
        padding: 0;
    }

    .history-table {
        margin: 0;
        border-collapse: separate;
        border-spacing: 0;
        width: 100%;
    }

    .history-table thead th {
        background: #f8fafc;
        color: #64748b;
        font-size: .7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 1px solid #e2e8f0;
        padding: .7rem 1.25rem;
        white-space: nowrap;
        position: sticky;
        top: 0;
    }

    .history-table tbody td {
        padding: .7rem 1.25rem;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        font-size: .84rem;
        color: #1e293b;
    }

    .upload-row {
        cursor: pointer;
        transition: background-color 120ms ease;
    }

    .upload-row:hover {
        background-color: #f8fafc;
    }

    .upload-caret {
        display: inline-block;
        width: 14px;
        color: #94a3b8;
        transition: transform 140ms ease-out;
        font-size: .72rem;
    }

    .upload-detail-row > td {
        background: #f8fafc;
        padding: 0 1.25rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .upload-detail-body {
        padding: 1rem 0 1.1rem;
    }

    .status-pill {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        font-size: .74rem;
        font-weight: 700;
        padding: .25rem .6rem;
        border-radius: 999px;
        white-space: nowrap;
    }

    .status-pill.success {
        background: #ecfdf5;
        color: #15803d;
    }

    .status-pill.failed {
        background: #fef2f2;
        color: #dc2626;
    }

    .status-pill.partial {
        background: #fffbeb;
        color: #b45309;
    }

    .status-pill.processing {
        background: #f1f5f9;
        color: #64748b;
    }

    .detail-mini-table {
        margin: 0;
        width: 100%;
    }

    .detail-mini-table th {
        font-size: .68rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .03em;
        color: #94a3b8;
        padding: 0 .5rem .4rem;
        text-align: left;
    }

    .detail-mini-table td {
        font-size: .8rem;
        color: #334155;
        padding: .3rem .5rem;
        border-top: 1px solid #e2e8f0;
    }

    .history-empty,
    .history-error,
    .history-loading {
        text-align: center;
        padding: 2.5rem 1.5rem;
        font-size: .85rem;
    }

    .history-empty, .history-loading {
        color: #94a3b8;
    }

    .history-error {
        color: #dc2626;
    }

    .history-chart-wrap {
        padding: 1.1rem 1.25rem .5rem;
        border-bottom: 1px solid #e2e8f0;
    }

    .status-history-summary {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        padding: 1.25rem;
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
    }

    .status-event-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .status-event-list li {
        display: flex;
        align-items: flex-start;
        gap: .65rem;
        padding: .8rem 1.25rem;
        border-bottom: 1px solid #f1f5f9;
    }

    .status-event-list li:last-child {
        border-bottom: none;
    }

/* Timekeeping/Views/Notifications/Index.cshtml */

        .notifications-page .list-group-item {
            transition: background-color 120ms ease-out;
        }

        .notifications-page .list-group-item:hover {
            background-color: #f8f9fa;
        }
    
/* Timekeeping/Views/RoleManagement/EditPermissions.cshtml */

        body { padding-bottom: 80px; } /* Space for fixed bottom bar */
    
/* Timekeeping/Views/RoleManagement/Index.cshtml */

    .roles-page .page-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: .875rem;
        margin-bottom: 1.5rem;
    }

    .roles-page .page-head .title-group {
        display: flex;
        align-items: center;
        gap: .875rem;
    }

    .roles-page .page-head .icon-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: linear-gradient(135deg, #4338ca, #312e81);
        color: #fff;
        font-size: 1.4rem;
        box-shadow: 0 4px 10px rgba(67, 56, 202, .25);
        flex-shrink: 0;
    }

    .roles-page .page-head h1 {
        font-size: 1.4rem;
        font-weight: 700;
        margin: 0;
        color: #0f172a;
    }

    .roles-page .page-head .subtitle {
        color: #64748b;
        font-size: .875rem;
        margin: 0;
    }

    .roles-card {
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .08);
    }

    .roles-card .card-header {
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        padding: .9rem 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .roles-card .count-pill {
        background: #eef2ff;
        color: #4338ca;
        font-weight: 600;
        font-size: .78rem;
        padding: .25rem .65rem;
        border-radius: 999px;
    }

    .roles-table {
        margin: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .roles-table thead th {
        background: #f8fafc;
        color: #64748b;
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 1px solid #e2e8f0;
        padding: .75rem 1rem;
        white-space: nowrap;
    }

    .roles-table tbody td {
        padding: .85rem 1rem;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        font-size: .875rem;
        color: #1e293b;
    }

    .roles-table tbody tr:last-child td {
        border-bottom: none;
    }

    .roles-table tbody tr:hover {
        background-color: #f8fafc;
    }

    .role-name {
        display: flex;
        align-items: center;
        gap: .6rem;
    }

    .role-name .role-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        border-radius: 9px;
        background: #eef2ff;
        color: #4338ca;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .role-id-chip {
        font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
        font-size: .74rem;
        color: #64748b;
        background: #f1f5f9;
        padding: .2rem .5rem;
        border-radius: 6px;
    }

/* Timekeeping/Views/SyncLogs/Index.cshtml */

    .synclog-page .page-head {
        display: flex;
        align-items: center;
        gap: .875rem;
        margin-bottom: 1.5rem;
    }

    .synclog-page .page-head .icon-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: #fff;
        font-size: 1.4rem;
        box-shadow: 0 4px 10px rgba(37, 99, 235, .25);
    }

    .synclog-page .page-head h1 {
        font-size: 1.4rem;
        font-weight: 700;
        margin: 0;
        color: #0f172a;
    }

    .synclog-page .page-head .subtitle {
        color: #64748b;
        font-size: .875rem;
        margin: 0;
    }

    .synclog-card {
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .08);
    }

    .synclog-card .card-header {
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        padding: .9rem 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .synclog-card .count-pill {
        background: #eef2ff;
        color: #4338ca;
        font-weight: 600;
        font-size: .78rem;
        padding: .25rem .65rem;
        border-radius: 999px;
    }

    .synclog-table {
        margin: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .synclog-table thead th {
        background: #f8fafc;
        color: #64748b;
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 1px solid #e2e8f0;
        padding: .75rem 1rem;
        white-space: nowrap;
    }

    .synclog-table tbody td {
        padding: .75rem 1rem;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        font-size: .85rem;
        color: #1e293b;
    }

    .synclog-table tbody tr:last-child td {
        border-bottom: none;
    }

    .synclog-table tbody tr:hover {
        background-color: #f8fafc;
    }

    .status-pill {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        font-size: .74rem;
        font-weight: 700;
        padding: .28rem .6rem;
        border-radius: 999px;
        white-space: nowrap;
    }

    .status-pill.success { background: #ecfdf5; color: #15803d; border: 1px solid #bbf7d0; }
    .status-pill.processing { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
    .status-pill.failed { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }

    .btn-details {
        font-size: .78rem;
        font-weight: 600;
        padding: .3rem .7rem;
        border-radius: 7px;
        background: #fff;
        border: 1px solid #c7d2fe;
        color: #4338ca;
        transition: background-color 130ms ease-out, transform 130ms ease-out;
    }

    .btn-details:hover { background: #eef2ff; color: #4338ca; }
    .btn-details:active { transform: scale(.96); }

    .empty-state {
        text-align: center;
        padding: 3rem 1.5rem;
        color: #94a3b8;
    }

    .empty-state i { font-size: 2.2rem; opacity: .5; }

    .pager-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        flex-wrap: wrap;
        padding: .9rem 1.25rem;
        border-top: 1px solid #e2e8f0;
        background: #f8fafc;
    }

    .pager-footer .page-size-group a {
        font-size: .78rem;
    }

/* Timekeeping/Views/TimeClock/Index.cshtml */

        .ls-1 { letter-spacing: 1px; }
        .transition-hover { transition: all 0.2s ease; }
        .transition-hover:hover { transform: translateY(-2px); }
        .animate-pulse { animation: pulse 2s infinite; }
        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.6; }
            100% { opacity: 1; }
        }
    
/* Timekeeping/Views/Timesheet/ViewTimesheet.cshtml */

        .timesheet-table {
            font-size: 0.9rem;
        }

        .timesheet-table td,
        .timesheet-table th {
            vertical-align: middle;
            padding: 0.6rem 0.75rem;
        }

        .timesheet-table th {
            position: sticky;
            top: 0;
            z-index: 2;
        }

        .timesheet-scroll {
            max-height: 70vh;
            overflow-y: auto;
        }

        .timesheet-table tbody tr:hover {
            background-color: #f8f9fa;
        }

        .timesheet-table .bg-day-off {
            background-color: #e9ecef;
        }

        .timesheet-table .bg-clinic-closed {
            background-color: #fff3cd;
        }

        .timesheet-table .bg-absent {
            background-color: #f8d7da;
        }

        .timesheet-table .badge {
            font-weight: 600;
            border-radius: 0.35rem;
        }

        .timesheet-table .month-divider td {
            background-color: #eef2f7;
            font-weight: 600;
            padding: 0.4rem 0.75rem;
            position: sticky;
            top: 41px;
            z-index: 1;
        }

        .timesheet-table .btn-sm {
            transition: transform 120ms ease-out;
        }

        .timesheet-table .btn-sm:active {
            transform: scale(0.97);
        }
    
/* Timekeeping/Views/Timesheet/_EntryAuditHistory.cshtml */

    .timeline {
        position: relative;
    }
    .timeline-item {
        position: relative;
    }
    .timeline-item:not(:last-child)::before {
        content: '';
        position: absolute;
        left: 20px;
        top: 40px;
        bottom: -20px;
        width: 2px;
        background-color: #dee2e6;
    }

/* Timekeeping/Views/TimesheetRequest/MyRequests.cshtml */

    .requests-page .page-head {
        display: flex;
        align-items: center;
        gap: .875rem;
        margin-bottom: 1.5rem;
    }

    .requests-page .page-head .icon-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: linear-gradient(135deg, #2563eb, #1d4ed8);
        color: #fff;
        font-size: 1.4rem;
        box-shadow: 0 4px 10px rgba(37, 99, 235, .25);
    }

    .requests-page .page-head h1 {
        font-size: 1.4rem;
        font-weight: 700;
        margin: 0;
        color: #0f172a;
    }

    .requests-page .page-head .subtitle {
        color: #64748b;
        font-size: .875rem;
        margin: 0;
    }

    .requests-card {
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .08);
    }

    .requests-card .card-header {
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        padding: .9rem 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .requests-card .card-header .count-pill {
        background: #eef2ff;
        color: #4338ca;
        font-weight: 600;
        font-size: .78rem;
        padding: .25rem .65rem;
        border-radius: 999px;
    }

    .requests-table {
        margin: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .requests-table thead th {
        background: #f8fafc;
        color: #64748b;
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 1px solid #e2e8f0;
        padding: .75rem 1rem;
        white-space: nowrap;
    }

    .requests-table tbody td {
        padding: .85rem 1rem;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        font-size: .875rem;
        color: #1e293b;
    }

    .requests-table tbody tr:last-child td {
        border-bottom: none;
    }

    .requests-table tbody tr:hover {
        background-color: #f8fafc;
    }

    .type-badge, .status-badge {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        font-size: .74rem;
        font-weight: 700;
        padding: .28rem .6rem;
        border-radius: 999px;
        white-space: nowrap;
    }

    .type-badge.missing { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
    .type-badge.correction { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }

    .status-badge.pending { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
    .status-badge.approved { background: #ecfdf5; color: #15803d; border: 1px solid #bbf7d0; }
    .status-badge.rejected { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
    .status-badge.cancelled { background: #f1f5f9; color: #64748b; border: 1px solid #e2e8f0; }

    .icon-btn {
        display: inline-flex;
        align-items: center;
        gap: .3rem;
        font-size: .8rem;
        font-weight: 600;
        padding: .3rem .65rem;
        border-radius: 7px;
        border: 1px solid #fecaca;
        background: #fff;
        color: #dc2626;
        transition: background-color 130ms ease-out, transform 130ms ease-out;
    }

    .icon-btn:hover { background: #fef2f2; }
    .icon-btn:active { transform: scale(.96); }

    .empty-state {
        text-align: center;
        padding: 3rem 1.5rem;
        color: #94a3b8;
    }

    .empty-state i { font-size: 2.2rem; opacity: .5; }

/* Timekeeping/Views/TimesheetRequest/PendingApprovals.cshtml */

    .requests-page .page-head {
        display: flex;
        align-items: center;
        gap: .875rem;
        margin-bottom: 1.5rem;
    }

    .requests-page .page-head .icon-wrap {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: linear-gradient(135deg, #d97706, #b45309);
        color: #fff;
        font-size: 1.4rem;
        box-shadow: 0 4px 10px rgba(217, 119, 6, .25);
    }

    .requests-page .page-head h1 {
        font-size: 1.4rem;
        font-weight: 700;
        margin: 0;
        color: #0f172a;
    }

    .requests-page .page-head .subtitle {
        color: #64748b;
        font-size: .875rem;
        margin: 0;
    }

    .requests-card {
        border: 1px solid #e2e8f0;
        border-radius: 14px;
        overflow: hidden;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .08);
    }

    .requests-card .card-header {
        background: #f8fafc;
        border-bottom: 1px solid #e2e8f0;
        padding: .9rem 1.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .requests-card .card-header .count-pill {
        background: #fffbeb;
        color: #b45309;
        font-weight: 600;
        font-size: .78rem;
        padding: .25rem .65rem;
        border-radius: 999px;
    }

    .requests-table {
        margin: 0;
        border-collapse: separate;
        border-spacing: 0;
    }

    .requests-table thead th {
        background: #f8fafc;
        color: #64748b;
        font-size: .72rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        border-bottom: 1px solid #e2e8f0;
        padding: .75rem 1rem;
        white-space: nowrap;
    }

    .requests-table tbody td {
        padding: .85rem 1rem;
        vertical-align: middle;
        border-bottom: 1px solid #f1f5f9;
        font-size: .875rem;
        color: #1e293b;
    }

    .requests-table tbody tr:last-child td {
        border-bottom: none;
    }

    .requests-table tbody tr:hover {
        background-color: #f8fafc;
    }

    .type-badge {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        font-size: .74rem;
        font-weight: 700;
        padding: .28rem .6rem;
        border-radius: 999px;
        white-space: nowrap;
    }

    .type-badge.missing { background: #fffbeb; color: #b45309; border: 1px solid #fde68a; }
    .type-badge.correction { background: #eef2ff; color: #4338ca; border: 1px solid #c7d2fe; }

    .requested-times {
        font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
        font-size: .8rem;
        color: #334155;
    }

    .btn-approve, .btn-reject, .btn-reassign {
        font-size: .78rem;
        font-weight: 600;
        padding: .32rem .7rem;
        border-radius: 7px;
        transition: transform 130ms ease-out, box-shadow 130ms ease-out;
    }

    .btn-approve { background: #16a34a; border: none; color: #fff; }
    .btn-approve:hover { color: #fff; box-shadow: 0 2px 6px rgba(22, 163, 74, .3); }
    .btn-reject { background: #fff; border: 1px solid #fecaca; color: #dc2626; }
    .btn-reject:hover { background: #fef2f2; color: #dc2626; }
    .btn-reassign { background: #fff; border: 1px solid #e2e8f0; color: #475569; }
    .btn-reassign:hover { background: #f8fafc; color: #475569; }
    .btn-approve:active, .btn-reject:active, .btn-reassign:active { transform: scale(.96); }

    .empty-state {
        text-align: center;
        padding: 3rem 1.5rem;
        color: #94a3b8;
    }

    .empty-state i { font-size: 2.2rem; opacity: .5; }
