/* ============================================================================
   WTS Timecard Master Stylesheet
   ============================================================================ */

:root {
    --wts-ink: #101419;
    --wts-muted: #667085;
    --wts-soft: #f6f8fb;
    --wts-card: rgba(255, 255, 255, .92);
    --wts-border: rgba(16, 24, 40, .12);
    --wts-shadow: 0 30px 80px rgba(16, 24, 40, .12);
    --wts-green: #15936a;
    --wts-blue: #0d6efd;
    --wts-gold: #f2b84b;
    --wts-danger: #dc3545;
    --wts-navy: #172033;
    --wts-report-blue: #2f679a;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--wts-ink);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 12% 15%, rgba(242, 184, 75, .22), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(13, 110, 253, .12), transparent 32%),
        radial-gradient(circle at 78% 85%, rgba(21, 147, 106, .12), transparent 30%),
        linear-gradient(135deg, #fbfaf8 0%, #f7f9fc 48%, #eef3f8 100%);
    overflow-x: hidden;
}

/* ============================================================================
   Page Shell / Layout
   ============================================================================ */

.page-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

.page-shell::before,
.page-shell::after {
    content: "";
    position: fixed;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

.page-shell::before {
    width: 360px;
    height: 360px;
    left: -130px;
    bottom: 6%;
    background: rgba(255, 255, 255, .65);
    box-shadow: 0 0 90px rgba(255, 255, 255, .7);
}

.page-shell::after {
    width: 420px;
    height: 420px;
    right: -190px;
    top: 18%;
    background: rgba(255, 255, 255, .58);
    box-shadow: 0 0 100px rgba(255, 255, 255, .78);
}

.main-wrap {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    align-items: center;
    padding: 1.25rem clamp(1rem, 3vw, 2.25rem) 2.5rem;
}

.timeclock-shell {
    width: min(1280px, 100%);
    margin: 0 auto;
}

/* Optional utility for pages intentionally made wider. Add the class in markup. */
.timeclock-shell-wide {
    width: min(1600px, 100%);
}

.timeclock-card {
    background: var(--wts-card);
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 2rem;
    box-shadow: var(--wts-shadow);
    overflow: hidden;
    backdrop-filter: blur(16px);
}

.punch-panel {
    padding: clamp(1.4rem, 3vw, 2.35rem);
}

.footer-note {
    position: relative;
    z-index: 1;
    text-align: center;
    color: rgba(52, 64, 84, .72);
    padding: 0 1rem 1.5rem;
    font-size: .92rem;
    font-weight: 600;
}

/* ============================================================================
   Topbar / Header
   ============================================================================ */

.topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem clamp(1rem, 3vw, 2.25rem);
}

.topbar-language-only {
    justify-content: flex-end;
}

.security-pill,
.security-pill-link {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    border: 1px solid rgba(16, 24, 40, .08);
    background: rgba(255, 255, 255, .86);
    color: #27313d;
    border-radius: 999px;
    padding: .65rem .95rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .07);
    backdrop-filter: blur(12px);
}

.security-pill-link {
    text-decoration: none;
}

.security-pill-link:hover {
    color: #27313d;
    background: #fff;
}

.security-dot {
    width: .62rem;
    height: .62rem;
    border-radius: 999px;
    background: var(--wts-green);
    box-shadow: 0 0 0 .25rem rgba(21, 147, 106, .14);
}

.topbar-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: .45rem .85rem;
    border-radius: 10px;
    background: #fff5f5;
    color: #b42318;
    border: 1px solid rgba(180, 35, 24, .35);
    font-weight: 800;
    text-decoration: none;
}

.topbar-logout:hover {
    color: #912018;
    background: #ffe7e7;
}

/* ============================================================================
   Clock
   ============================================================================ */

.clock-card {
    min-width: 250px;
    text-align: right;
    border: 1px solid rgba(16, 24, 40, .08);
    background: rgba(255, 255, 255, .9);
    border-radius: 1.1rem;
    padding: .78rem 1rem;
    box-shadow: 0 10px 30px rgba(16, 24, 40, .07);
    backdrop-filter: blur(12px);
}

.clock-label {
    color: var(--wts-muted);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    line-height: 1;
}

.clock-time {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
    font-weight: 900;
    line-height: 1.1;
    margin-top: .25rem;
    letter-spacing: -.035em;
    font-variant-numeric: tabular-nums;
}

.clock-date {
    color: var(--wts-muted);
    font-size: .95rem;
    font-weight: 650;
    margin-top: .12rem;
}

/* ============================================================================
   Language Toggle
   ============================================================================ */

.language-toggle {
    display: inline-flex;
    gap: .35rem;
    padding: .25rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .86);
    border: 1px solid rgba(16, 24, 40, .08);
    box-shadow: 0 10px 30px rgba(16, 24, 40, .07);
}

.language-toggle button {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #344054;
    font-weight: 800;
    padding: .45rem .75rem;
}

.language-toggle button.active {
    background: #101419;
    color: #fff;
}

/* ============================================================================
   Welcome / Login Panels
   ============================================================================ */

.welcome-panel {
    min-height: 100%;
    padding: clamp(1.75rem, 4vw, 3.1rem);
    background:
        linear-gradient(160deg, rgba(16, 20, 25, .92), rgba(44, 51, 61, .88)),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, .24), transparent 28%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.welcome-panel::after {
    content: "WTS";
    position: absolute;
    right: -1.1rem;
    bottom: -2.5rem;
    color: rgba(255, 255, 255, .045);
    font-size: 8.5rem;
    font-weight: 950;
    letter-spacing: -.08em;
    line-height: 1;
}

.welcome-panel .btn,
.welcome-panel a.btn {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.logo-wrap {
    background: rgba(255, 255, 255, .94);
    border-radius: 1.25rem;
    padding: 1rem;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .18);
    margin-bottom: 1.5rem;
}

.company-logo {
    width: 100%;
    max-width: 360px;
    display: block;
    margin: 0 auto;
}

.welcome-title {
    font-size: clamp(2.1rem, 4vw, 3.6rem);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.02;
    margin: .35rem 0 .8rem;
}

.welcome-copy {
    color: rgba(255, 255, 255, .78);
    font-size: 1.08rem;
    line-height: 1.55;
    max-width: 32rem;
    margin-bottom: 1.35rem;
}

.feature-list {
    display: grid;
    gap: .75rem;
    margin-top: 1.25rem;
    position: relative;
    z-index: 1;
}

.feature-item {
    display: flex;
    gap: .85rem;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, .14);
    background: rgba(255, 255, 255, .075);
    border-radius: 1rem;
    padding: .9rem;
}

.feature-icon {
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    display: grid;
    place-items: center;
    border-radius: .75rem;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.feature-title {
    margin: 0;
    font-weight: 850;
    line-height: 1.2;
}

.feature-text {
    margin: .18rem 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: .92rem;
    line-height: 1.4;
}

/* ============================================================================
   Panel Headings / Badges / Cards
   ============================================================================ */

.panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
}

.panel-heading h2 {
    font-size: clamp(1.45rem, 3vw, 2.1rem);
    font-weight: 930;
    letter-spacing: -.04em;
    margin: 0;
}

.panel-heading p {
    color: var(--wts-muted);
    margin: .35rem 0 0;
}

.step-badge,
.soft-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--wts-border);
    background: #fff;
    color: #344054;
    border-radius: 999px;
    font-weight: 800;
}

.step-badge {
    white-space: nowrap;
    padding: .45rem .75rem;
    font-size: .82rem;
}

.soft-pill {
    gap: .42rem;
    padding: .5rem .72rem;
    font-size: .87rem;
    font-weight: 750;
}

.status-row {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 1.25rem;
}

.mini-dot {
    width: .52rem;
    height: .52rem;
    border-radius: 999px;
    background: var(--wts-green);
}

.alert-area {
    min-height: 0;
}

.code-box,
.employee-panel,
.dashboard-header-card,
.report-filter-box,
.employee-filter-card,
.profile-readonly-card,
.edit-entry-card,
.comments-box,
.report-summary-box,
.summary-card,
.tc-summary-box {
    border: 1px solid rgba(15, 23, 42, .12);
    background: #fff;
}

.code-box {
    border-color: var(--wts-border);
    background: #eef2f7;
    border-radius: 1.35rem;
    padding: clamp(1rem, 2.3vw, 1.25rem);
}

.employee-panel {
    border-color: var(--wts-border);
    border-radius: 1.35rem;
    padding: 1.25rem;
    box-shadow: 0 14px 35px rgba(16, 24, 40, .07);
}

.dashboard-header-card {
    padding: 1.25rem;
    border-radius: 22px;
    background: #eef2f7;
    box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
    margin-bottom: 1rem;
}

.report-filter-box,
.employee-filter-card {
    border-radius: 16px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.employee-filter-card .form-select {
    max-width: 260px;
}

.profile-readonly-card,
.edit-entry-card,
.comments-box {
    border-radius: 16px;
    padding: 1rem;
}

.edit-entry-card {
    margin-bottom: .85rem;
}

.summary-card,
.report-summary-box,
.tc-summary-box {
    border-color: #ddd;
    border-radius: 14px;
    padding: 1rem;
    background: #f8f9fa;
}

.summary-card,
.tc-summary-box {
    height: 100%;
}

.summary-card .label,
.report-summary-box .label,
.tc-summary-box .label {
    color: #555;
    font-size: .9rem;
    margin-bottom: .25rem;
}

.summary-card .value {
    font-size: 1.6rem;
    font-weight: 900;
    color: #173f63;
}

.report-summary-box .value {
    font-size: 1.75rem;
    font-weight: 900;
    color: #b42318;
}

.tc-summary-box .value {
    font-size: 1.75rem;
    font-weight: 800;
    color: #173f63;
}

.tc-summary-box .sub-value {
    font-size: .9rem;
    color: var(--wts-muted);
    font-weight: 700;
    margin-top: .25rem;
}

.summary-card.warning .value,
.summary-card.danger .value,
.summary-card.deleted .value {
    color: #b42318;
}

.summary-card.private .value {
    color: #9f1239;
}

/* ============================================================================
   Dashboard Navigation
   ============================================================================ */

.dashboard-logo,
.dashboard-logo-link img {
    max-height: 68px;
    width: auto;
}

.dashboard-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.dashboard-top-nav {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
    padding: .85rem;
    border-radius: 18px;
    background: #f5f7fb;
    border: 1px solid rgba(15, 23, 42, .08);
    margin-bottom: 1rem;
}

.dashboard-top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: .65rem 1rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .12);
    color: var(--wts-navy);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.dashboard-top-link:hover {
    color: var(--wts-navy);
    background: #eef3ff;
    transform: translateY(-1px);
}

.dashboard-top-link.active {
    background: var(--wts-navy);
    color: #fff;
    border-color: var(--wts-navy);
}

.dashboard-top-link.logout {
    margin-left: auto;
    background: #fff5f5;
    color: #b42318;
    border-color: rgba(180, 35, 24, .2);
}

.dashboard-top-link.admin-link {
    background: #eef4ff;
    color: #3538cd;
    border-color: #c7d7fe;
}

.dashboard-top-link.admin-link:hover {
    background: #e0eaff;
    color: #2d31a6;
}

.dashboard-top-link.admin-link.first-admin-link {
    margin-left: auto;
}

/* ============================================================================
   Time Clock Keypad / Punch UI
   ============================================================================ */

.code-label {
    color: #303844;
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: .9rem;
}

.code-display {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: .65rem;
    margin-bottom: .95rem;
}

.code-slot {
    height: clamp(54px, 8vw, 70px);
    border: 2px solid #d8dee8;
    border-radius: .95rem;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(16, 24, 40, .05);
}

.code-slot.filled::after {
    content: "";
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #111827;
    box-shadow: 0 0 0 7px rgba(17, 24, 39, .08);
}

.keypad-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .68rem;
}

.keypad-btn {
    min-height: clamp(66px, 9vw, 86px);
    border-radius: 1rem;
    font-size: clamp(1.55rem, 4vw, 2.1rem);
    font-weight: 920;
    color: #101419;
    background: #fff;
    border: 1px solid #dbe2ec;
    box-shadow: 0 7px 14px rgba(16, 24, 40, .055);
    transition: transform .08s ease, box-shadow .08s ease, background-color .08s ease;
}

.keypad-btn:hover:not(:disabled) {
    background: #fdfdfd;
    box-shadow: 0 10px 18px rgba(16, 24, 40, .08);
    transform: translateY(-1px);
}

.keypad-btn:active:not(:disabled) {
    transform: translateY(1px);
    box-shadow: 0 4px 8px rgba(16, 24, 40, .06);
}

.keypad-btn.utility {
    font-size: clamp(.95rem, 2vw, 1.05rem);
    font-weight: 850;
    color: #5d6878;
}

.continue-btn {
    grid-column: 1 / -1;
    min-height: 68px;
    border: 0;
    border-radius: 1rem;
    font-size: 1.08rem;
    font-weight: 920;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    box-shadow: 0 14px 28px rgba(13, 110, 253, .22);
}

.continue-btn:disabled {
    background: #b9c1cb;
    box-shadow: none;
    opacity: 1;
}

.employee-avatar {
    width: 64px;
    height: 64px;
    border-radius: 1.1rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #eef4ff, #e8fff7);
    color: var(--wts-blue);
    font-weight: 950;
    font-size: 1.4rem;
    flex: 0 0 auto;
}

.employee-name {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 950;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.employee-status {
    color: var(--wts-muted);
    font-weight: 700;
    margin-top: .25rem;
}

.action-grid {
    display: grid;
    gap: .7rem;
    margin-top: 1.15rem;
}

.action-btn {
    min-height: 68px;
    border-radius: 1rem;
    font-size: 1.08rem;
    font-weight: 900;
}

.login-strip {
    margin-top: 1.15rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--wts-border);
}

.login-strip p {
    color: var(--wts-muted);
    font-weight: 650;
    margin-bottom: .72rem;
}

.login-strip .login-btn {
    min-height: 52px;
    border-radius: .9rem;
    font-weight: 850;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    line-height: 1;
    text-align: center;
}

/* ============================================================================
   Forms / Profile / Employee Management
   ============================================================================ */

.form-section-title {
    font-size: .85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #475467;
    margin: 1.5rem 0 .75rem;
}

.code-digit {
    max-width: 54px;
    height: 52px;
    font-size: 1.35rem;
    font-weight: 800;
    text-align: center;
}

.employee-table th {
    white-space: nowrap;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .28rem .65rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    border: 1px solid transparent;
}

.status-active {
    background: #ecfdf3;
    color: #027a48;
    border-color: #abefc6;
}

.status-inactive {
    background: #fef3f2;
    color: #b42318;
    border-color: #fecdca;
}

.status-admin {
    background: #eef4ff;
    color: #3538cd;
    border-color: #c7d7fe;
}

.status-muted {
    background: #f2f4f7;
    color: #475467;
    border-color: #d0d5dd;
}

/* ============================================================================
   Tables / Badges / Report Helpers
   ============================================================================ */

.tc-table th {
    background: var(--wts-report-blue);
    color: #fff;
    white-space: nowrap;
}

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

.tc-table tfoot td,
.tc-table tfoot th {
    font-weight: 900;
    background: #fffde8;
}

.tc-table input {
    min-width: 86px;
}

.tc-table .name-input {
    min-width: 190px;
}

.tc-table .comment-input {
    min-width: 220px;
}

.money-cell,
.number-cell {
    text-align: right;
    white-space: nowrap;
}

.date-cell {
    font-weight: 800;
    color: #173f63;
    white-space: nowrap;
}

.note-cell,
.notes-cell {
    font-size: .85rem;
    color: var(--wts-muted);
    line-height: 1.35;
}

.note-cell {
    max-width: 280px;
    white-space: normal;
}

.open-count {
    display: inline-block;
    min-width: 34px;
    padding: .2rem .55rem;
    border-radius: 999px;
    background: #fff5f5;
    color: #b42318;
    border: 1px solid #ffd1d1;
    font-weight: 900;
    text-align: center;
}

.tc-badge {
    display: inline-block;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    border: 1px solid #ccc;
    background: #f8f9fa;
}

.tc-badge-work { background: #f0f0f0; }
.tc-badge-break { background: #b0b0ff; }
.tc-badge-lunch { background: #fbcda4; }
.tc-badge-time_off { background: #ccffcc; }

.event-pill,
.exception-pill,
.open-punch-alert {
    display: inline-block;
    padding: .25rem .55rem;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 900;
    white-space: nowrap;
}

.event-created {
    background: #ecfdf3;
    color: #027a48;
    border: 1px solid #abefc6;
}

.event-updated {
    background: #eff8ff;
    color: #175cd3;
    border: 1px solid #b2ddff;
}

.event-deleted,
.exception-danger,
.open-punch-alert {
    background: #fff5f5;
    color: #b42318;
    border: 1px solid #ffd1d1;
}

.exception-warning {
    background: #fff8db;
    color: #7a4b00;
    border: 1px solid #eedc8a;
}

.comment-box {
    padding: .55rem .65rem;
    border-radius: 10px;
    line-height: 1.4;
    font-size: .92rem;
    white-space: normal;
}

.comment-public,
.tc-day-comments {
    background: #fff8db;
    border: 1px solid #eedc8a;
    color: #594400;
}

.comment-private {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #9f1239;
}

.comment-empty {
    color: #98a2b3;
    font-style: italic;
}

.private-note,
.tc-private-note {
    color: #9f1239;
}

/* ============================================================================
   My Timecard / Timecards
   ============================================================================ */

.week-title,
.month-title {
    font-weight: 900;
    color: #d10000;
}

.month-nav {
    display: flex;
    gap: .5rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.month-title {
    padding: .45rem 1rem;
}

.employee-timecard-table th {
    white-space: nowrap;
}

.timecard-row-workday td,
.timecard-row-workday th {
    background: #f4f4f4 !important;
}

.timecard-row-break td,
.timecard-row-break th {
    background: #d7d5ff !important;
}

.timecard-row-lunch td,
.timecard-row-lunch th {
    background: #ffd6ad !important;
}

.timecard-row-eto td,
.timecard-row-eto th {
    background: #d0ffd2 !important;
}

.timecard-row-ato td,
.timecard-row-ato th {
    background: #f7c8ff !important;
}

.timecard-row-payroll td,
.timecard-row-payroll th {
    background: #ff7b7f !important;
    font-weight: 700;
}

.timecard-row-total td,
.timecard-row-total th {
    background: #f26db5 !important;
    font-weight: 700;
}

.entry-list {
    font-size: .85rem;
    text-align: left;
    line-height: 1.35;
}

.tc-day-group-a td { background: #ffffff; }
.tc-day-group-b td { background: #f2f7fc; }
.tc-day-change td { border-top: 3px solid var(--wts-report-blue); }

.tc-day-date {
    font-weight: 800;
    color: #173f63;
}

.tc-day-comments {
    margin-top: .35rem;
    padding: .45rem .55rem;
    border-radius: 10px;
    font-size: .85rem;
    line-height: 1.35;
}

.tc-mobile-days {
    display: none;
}

.tc-day-card {
    border: 1px solid #d7deea;
    border-radius: 14px;
    background: #fff;
    margin-bottom: .75rem;
    overflow: hidden;
}

.tc-day-card summary {
    cursor: pointer;
    list-style: none;
    padding: 1rem;
    background: #f3f7fc;
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    font-weight: 800;
    color: #173f63;
}

.tc-day-card summary::-webkit-details-marker {
    display: none;
}

.tc-day-card-body {
    padding: .85rem;
}

.tc-mobile-row {
    border: 1px solid #e1e6ef;
    border-radius: 10px;
    padding: .75rem;
    margin-bottom: .75rem;
    background: #fff;
}

.tc-mobile-row-top {
    display: flex;
    justify-content: space-between;
    gap: .75rem;
    align-items: center;
    margin-bottom: .5rem;
}

.tc-mobile-label {
    color: var(--wts-muted);
    font-size: .75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.tc-mobile-total {
    font-size: .85rem;
    color: #475467;
    font-weight: 700;
}

/* ============================================================================
   Reports Landing Page
   ============================================================================ */

.report-section {
    margin-bottom: 2rem;
}

.report-section-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--wts-navy);
    margin-bottom: .85rem;
}

.report-card {
    display: block;
    height: 100%;
    padding: 1rem;
    border-radius: 18px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .12);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    text-decoration: none;
    color: var(--wts-navy);
}

.report-card:hover {
    color: var(--wts-navy);
    background: #f7faff;
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, .10);
}

.report-card-title {
    font-weight: 900;
    font-size: 1.05rem;
    margin-bottom: .35rem;
}

.report-card-desc {
    color: var(--wts-muted);
    margin: 0;
    font-size: .92rem;
    line-height: 1.45;
}

.report-arrow {
    font-weight: 900;
    color: #2f6fa7;
    margin-top: .75rem;
    display: inline-block;
}

.signature-line {
    min-width: 130px;
    border-bottom: 1px solid #98a2b3;
    height: 24px;
}

.print-actions {
    margin-bottom: 1rem;
}

/* ============================================================================
   Print
   ============================================================================ */

@media print {
    .topbar,
    .dashboard-top-nav,
    .report-filter-box,
    .print-actions,
    .login-strip,
    .footer-note,
    .btn {
        display: none !important;
    }

    body {
        background: #fff !important;
    }

    .page-shell,
    .main-wrap,
    .timeclock-shell,
    .timeclock-card,
    .punch-panel,
    .code-box {
        width: 100% !important;
        max-width: none !important;
        box-shadow: none !important;
        border: 0 !important;
        background: #fff !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .dashboard-header-card {
        box-shadow: none !important;
        border: 0 !important;
        background: #fff !important;
        padding: 0 0 12px !important;
    }

    .tc-table {
        font-size: 11px;
    }
}

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 991.98px) {
    .main-wrap {
        align-items: flex-start;
    }

    .welcome-panel {
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .tc-desktop-table {
        display: none;
    }

    .tc-mobile-days {
        display: block;
    }
}

@media (max-width: 768px) {
    .dashboard-top-link,
    .dashboard-top-link.logout,
    .dashboard-top-link.admin-link.first-admin-link {
        width: 100%;
        margin-left: 0;
    }

    .dashboard-logo,
    .dashboard-logo-link img {
        max-height: 54px;
    }

    .employee-filter-card .form-select {
        max-width: 100%;
    }

    .code-digit {
        max-width: 44px;
    }
}

@media (max-width: 767.98px) {
    .topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .topbar-language-only {
        align-items: flex-end;
    }

    .clock-card {
        width: 100%;
        min-width: 0;
        text-align: left;
    }

    .security-pill,
    .security-pill-link {
        width: 100%;
        justify-content: center;
    }

    .panel-heading {
        flex-direction: column;
    }

    .step-badge {
        align-self: flex-start;
    }
}

@media (max-width: 449.98px) {
    .code-display {
        gap: .38rem;
    }

    .code-slot {
        border-radius: .75rem;
    }

    .keypad-grid {
        gap: .5rem;
    }

    .punch-panel,
    .welcome-panel {
        padding: 1.1rem;
    }

    .timeclock-card {
        border-radius: 1.25rem;
    }
}
