:root {
    color-scheme: light;
    --navy: #102a43;
    --navy-deep: #0b1f33;
    --blue: #1769aa;
    --blue-dark: #0f548b;
    --blue-soft: #e9f3fb;
    --green: #2f6f56;
    --ink: #213547;
    --muted: #64748b;
    --line: #dbe4ed;
    --panel: #ffffff;
    --page: #eef3f7;
    --warning: #9a3412;
    --warning-bg: #fff7ed;
    --danger: #b42318;
    --shadow: 0 18px 45px rgba(16, 42, 67, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at top right, rgba(23, 105, 170, 0.13), transparent 33rem),
        linear-gradient(145deg, #f7fafc 0%, var(--page) 100%);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.5;
    margin: 0;
    min-height: 100vh;
}

a {
    color: var(--blue);
}

button,
input {
    font: inherit;
}

.site-warning {
    background: var(--warning-bg);
    border-bottom: 1px solid #fdba74;
    color: var(--warning);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.55rem 1rem;
    text-align: center;
}

.portal-shell {
    margin: 0 auto;
    max-width: 1180px;
    padding: 1.25rem;
}

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

.brand {
    align-items: center;
    color: var(--navy);
    display: flex;
    gap: 0.85rem;
    text-decoration: none;
}

.brand-mark {
    align-items: center;
    background: linear-gradient(145deg, var(--blue), var(--navy));
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 84, 139, 0.22);
    color: #fff;
    display: inline-flex;
    font-size: 1.1rem;
    font-weight: 800;
    height: 44px;
    justify-content: center;
    letter-spacing: 0.04em;
    width: 44px;
}

.brand-title {
    display: block;
    font-size: 1.06rem;
    font-weight: 800;
}

.brand-subtitle {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
}

.account-area {
    align-items: center;
    display: flex;
    gap: 0.75rem;
}

.account-name {
    color: var(--muted);
    font-size: 0.9rem;
}

.button {
    align-items: center;
    background: var(--blue);
    border: 1px solid transparent;
    border-radius: 9px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font-weight: 750;
    justify-content: center;
    min-height: 42px;
    padding: 0.65rem 1rem;
    text-decoration: none;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.button:hover {
    background: var(--blue-dark);
    box-shadow: 0 6px 16px rgba(15, 84, 139, 0.2);
    transform: translateY(-1px);
}

.button-secondary {
    background: #fff;
    border-color: var(--line);
    color: var(--navy);
}

.button-secondary:hover {
    background: #f8fafc;
}

.panel {
    background: var(--panel);
    border: 1px solid rgba(219, 228, 237, 0.9);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.login-page {
    align-items: center;
    display: grid;
    min-height: calc(100vh - 37px);
    padding: 1.25rem;
}

.login-card {
    margin: 0 auto;
    max-width: 430px;
    overflow: hidden;
    width: 100%;
}

.login-card-header {
    background: linear-gradient(145deg, var(--navy-deep), var(--blue-dark));
    color: #fff;
    padding: 2rem 2rem 1.75rem;
}

.login-card-header h1 {
    font-size: 1.55rem;
    margin: 0 0 0.35rem;
}

.login-card-header p {
    color: #d7e8f6;
    margin: 0;
}

.login-card-body {
    padding: 1.75rem 2rem 2rem;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row label {
    color: var(--navy);
    display: block;
    font-size: 0.86rem;
    font-weight: 750;
    margin-bottom: 0.35rem;
}

.form-row input {
    background: #fff;
    border: 1px solid #cbd8e4;
    border-radius: 9px;
    color: var(--ink);
    min-height: 46px;
    outline: none;
    padding: 0.7rem 0.8rem;
    width: 100%;
}

.form-row input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.14);
}

.form-submit {
    margin-top: 1.25rem;
    width: 100%;
}

.alert {
    border: 1px solid;
    border-radius: 9px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    padding: 0.75rem 0.85rem;
}

.alert-error {
    background: #fff2f0;
    border-color: #f0b4ad;
    color: var(--danger);
}

.alert-info {
    background: var(--blue-soft);
    border-color: #b8d8ee;
    color: var(--blue-dark);
}

.login-links {
    display: flex;
    flex-wrap: wrap;
    font-size: 0.87rem;
    gap: 0.55rem 1rem;
    justify-content: center;
    margin-top: 1.15rem;
}

.dashboard-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
}

.dashboard-main,
.dashboard-sidebar {
    display: grid;
    gap: 1.25rem;
}

.hero {
    background: linear-gradient(145deg, var(--navy-deep), var(--blue-dark));
    color: #fff;
    padding: 1.7rem;
}

.hero h1 {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
    margin: 0 0 0.35rem;
}

.hero p {
    color: #d7e8f6;
    margin: 0;
}

.section-card {
    padding: 1.25rem;
}

.section-title {
    color: var(--navy);
    font-size: 1rem;
    margin: 0 0 1rem;
}

.app-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app-link {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--navy);
    display: block;
    min-height: 78px;
    padding: 0.9rem;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.app-link:hover {
    border-color: #9dc5e2;
    box-shadow: 0 7px 16px rgba(16, 42, 67, 0.09);
    transform: translateY(-1px);
}

.app-link strong {
    display: block;
    font-size: 0.96rem;
}

.app-link span {
    color: var(--muted);
    display: block;
    font-size: 0.78rem;
    margin-top: 0.15rem;
}

.schedule-list {
    display: grid;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.schedule-item {
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.65rem;
}

.schedule-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.schedule-item a {
    font-weight: 800;
    text-decoration: none;
}

.schedule-item span {
    color: var(--muted);
    display: block;
    font-size: 0.86rem;
    margin-top: 0.12rem;
}

.hours-list {
    display: grid;
    gap: 0.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.hours-list li {
    display: flex;
    justify-content: space-between;
}

.hours-total {
    border-top: 1px solid var(--line);
    color: var(--navy);
    font-weight: 800;
    margin-top: 0.35rem;
    padding-top: 0.7rem;
}

.admin-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-links a {
    background: var(--blue-soft);
    border-radius: 8px;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.5rem 0.65rem;
    text-decoration: none;
}

.empty-state {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

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

    .portal-header {
        align-items: flex-start;
    }

    .account-area {
        align-items: flex-end;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .portal-shell {
        padding: 0.9rem;
    }

    .brand-subtitle,
    .account-name {
        display: none;
    }

    .app-grid {
        grid-template-columns: 1fr;
    }

    .login-card-body,
    .login-card-header {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}

/* SITE COMFORT PALETTE */

@media screen{
:root{--page:#e6edf3;--surface:#f2f6f9;--panel:#f2f6f9;--wash:#e6edf3;--muted:#566779;--line:#cdd9e3}
body{background:#e6edf3}
table thead th,table th,.data-table th{background:#24445f;color:#f2f6f9;font-size:.85rem;font-weight:750}
table th a,table th a:visited{color:#f2f6f9}
table tbody tr:nth-child(even) td{background:#ecf2f7}
table tbody tr:hover td,table tbody tr:focus-within td,.data-table tr:hover td{background:#cbddea}
table tbody tr:hover td:first-child,table tbody tr:focus-within td:first-child{box-shadow:inset 4px 0 0 #1769aa}
}

@media screen{
body .panel:not(.hero),.button-secondary{background:#f2f6f9}
body .form-row input,.portal-shell input:not([type=radio]):not([type=checkbox]),.portal-shell select,.portal-shell textarea{background:#edf3f8;color:#213547}
.app-link{background:#ecf2f7}.app-link:hover,.app-link:focus-visible{background:#cbddea;box-shadow:inset 4px 0 0 #1769aa}
.button-secondary:hover{background:#cbddea}
}

/* Pending time-off approvals on the employee dashboard. */
.time-off-notification {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    background: #fff3cd;
    border: 1px solid #e5bb55;
    border-left: 5px solid #c58a14;
    color: #604309;
    padding: 0.9rem 1.1rem;
}
.time-off-notification strong { font-size: 1.05rem; }
.time-off-notification p { margin: 0.2rem 0 0; font-size: 0.9rem; }
.time-off-review {
    display: inline-block;
    background: #805706;
    color: #fff;
    border-radius: 8px;
    padding: 0.55rem 0.85rem;
    font-weight: 700;
    text-decoration: none;
}
.time-off-review:hover { background: #604309; color: #fff; }
.time-off-review:focus-visible { outline: 3px solid #102a43; outline-offset: 3px; }
