* {
    box-sizing: border-box;
}

:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #172033;
    --muted: #697386;
    --border: #e3e8f0;
    --primary: #356ae6;
    --primary-dark: #2455c3;
    --success: #198754;
    --danger: #c93c47;
    --purple: #7457d9;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.topbar {
    background: #17243b;
    color: white;
    padding: 18px 28px;
}

.brand {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 750;
}

.brand-subtitle {
    margin-left: 12px;
    opacity: .65;
    font-size: 13px;
}

.container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 34px 24px 70px;
}

h1 {
    margin: 4px 0 8px;
    font-size: 30px;
}

h2 {
    margin-top: 0;
}

p {
    color: var(--muted);
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px;
}

.back {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
}

.btn {
    border: 0;
    border-radius: 9px;
    padding: 11px 17px;
    text-decoration: none;
    cursor: pointer;
    display: inline-block;
    font-weight: 650;
    font-size: 14px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: #edf0f5;
    color: #30394a;
}

.btn-success {
    background: var(--success);
    color: white;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 18px;
}

.year-card,
.action-card,
.form-card,
.vacation-part,
.employee-hero,
.empty {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(20, 34, 60, .04);
}

.year-card {
    padding: 22px;
    color: inherit;
    text-decoration: none;
}

.year-card-top {
    display: flex;
    justify-content: space-between;
}

.year-card-top > strong {
    color: var(--primary);
    font-size: 28px;
}

.status {
    color: var(--muted);
    font-size: 13px;
}

.metrics {
    display: flex;
    gap: 34px;
    margin-top: 22px;
}

.metrics > div {
    display: flex;
    flex-direction: column;
}

.metrics b {
    font-size: 23px;
}

.metrics span {
    color: var(--muted);
    font-size: 12px;
}

.metrics.large {
    background: white;
    border: 1px solid var(--border);
    padding: 20px 24px;
    border-radius: 14px;
    margin-bottom: 24px;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 25px;
}

.action-card {
    padding: 20px;
    color: inherit;
    text-decoration: none;
}

.action-card strong,
.action-card small {
    display: block;
}

.action-card small {
    color: var(--muted);
    margin-top: 8px;
    line-height: 1.45;
}

.action-icon {
    font-size: 27px;
    display: block;
    margin-bottom: 14px;
}

.action-card.muted {
    opacity: .65;
}

.form-card {
    padding: 28px;
}

.form-card.narrow {
    max-width: 600px;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.form-grid.two {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 22px;
}

label {
    display: block;
    margin: 15px 0 7px;
    font-weight: 650;
    font-size: 14px;
}

input,
select {
    width: 100%;
    border: 1px solid #ccd4e0;
    border-radius: 8px;
    padding: 11px 12px;
    font-size: 15px;
    background: white;
}

small {
    color: var(--muted);
}

hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 27px 0;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 28px;
}

.alert {
    padding: 13px 16px;
    border-radius: 9px;
    margin-bottom: 20px;
}

.alert-success {
    background: #e9f7ef;
    color: #12683e;
}

.alert-danger {
    background: #fdecee;
    color: #a32f39;
}

.info {
    background: #eef4ff;
    border: 1px solid #cfddff;
    padding: 15px 17px;
    border-radius: 10px;
    margin-top: 16px;
}

.hidden {
    display: none;
}

.empty {
    padding: 50px 30px;
    text-align: center;
}

.table-wrap {
    overflow-x: auto;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

td small {
    display: block;
    margin-top: 4px;
}

.pill {
    display: inline-block;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 12px;
    font-weight: 650;
}

.pill.green {
    background: #e5f6ec;
    color: #147346;
}

.pill.gray {
    background: #edf0f4;
    color: #596273;
}

.pill.blue {
    background: #e8f0ff;
    color: #315fb9;
}

.pill.purple {
    background: #efeaff;
    color: #6349bb;
}

.link-box {
    min-width: 260px;
}

.link-box input {
    font-size: 11px;
    margin-bottom: 6px;
}

.copy-btn {
    border: 0;
    background: none;
    color: var(--primary);
    cursor: pointer;
    padding: 0;
}

.employee-shell {
    max-width: 760px;
    margin: 0 auto;
}

.employee-hero {
    padding: 28px;
    margin-bottom: 18px;
}

.eyebrow {
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
}

.big-number {
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.big-number strong {
    font-size: 38px;
}

.big-number span {
    color: var(--muted);
}

.vacation-part {
    padding: 23px;
    margin-top: 16px;
}

.part-heading {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.part-heading span {
    color: var(--muted);
    font-size: 13px;
}

.part-heading h2 {
    margin: 3px 0;
}

.date-summary {
    margin-top: 17px;
    background: #f5f7fa;
    padding: 14px;
    border-radius: 9px;
}

.date-summary span,
.date-summary strong {
    display: block;
}

.date-summary span {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.date-summary.proposed {
    background: #edf8f1;
}

.request-form {
    margin-top: 20px;
}

.request-form .btn {
    margin-top: 12px;
}

.privacy-note {
    text-align: center;
    font-size: 12px;
    margin-top: 28px;
}

@media (max-width: 850px) {
    .action-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .form-grid,
    .form-grid.two {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 520px) {
    .container {
        padding: 22px 14px 50px;
    }

    .topbar {
        padding: 15px;
    }

    .brand-subtitle {
        display: none;
    }

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

    .metrics.large {
        flex-wrap: wrap;
    }
}
