.timeoff-page {
    max-width: 1480px;
    margin: 0 auto;
    padding: 4px 0 36px;
}

.timeoff-hero {
    background: linear-gradient(135deg, #081f3f 0%, #0b3568 54%, #176184 100%);
    color: #fff;
    border-radius: 30px;
    padding: 28px 32px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    box-shadow: 0 24px 70px rgba(8, 31, 63, 0.22);
    overflow: hidden;
    position: relative;
}

.timeoff-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -90px;
    top: -120px;
    background: rgba(255,255,255,0.12);
    border-radius: 999px;
}

.timeoff-hero > * {
    position: relative;
    z-index: 1;
}

.timeoff-hero h1 {
    margin: 4px 0 8px;
    font-size: 34px;
    letter-spacing: -0.04em;
    color: #fff;
}

.timeoff-hero p {
    margin: 0;
    color: rgba(255,255,255,0.82);
}

.timeoff-kicker {
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.16em;
    font-weight: 900;
    color: rgba(255,255,255,0.7) !important;
}

.timeoff-card {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(205,221,232,0.95);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(13,34,60,0.08);
    margin-bottom: 22px;
}

.timeoff-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.timeoff-card-header h2 {
    margin: 0 0 5px;
    color: #0b2e5f;
    font-size: 21px;
    letter-spacing: -0.03em;
}

.timeoff-card-header p {
    margin: 0;
    color: #5b6b7e;
}

.timeoff-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 22px;
    align-items: start;
}

.timeoff-form-grid.two,
.timeoff-filter-form,
.timeoff-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.timeoff-filter-form {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
}

.timeoff-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #0b2e5f;
}

.timeoff-field input,
.timeoff-field select,
.timeoff-field textarea {
    width: 100%;
    border: 1px solid #d6e4ec;
    border-radius: 16px;
    padding: 13px 15px;
    font-size: 15px;
    background: #fff;
    color: #0f1f33;
    outline: none;
}

.timeoff-field textarea {
    min-height: 130px;
    resize: vertical;
}

.timeoff-field input:focus,
.timeoff-field select:focus,
.timeoff-field textarea:focus {
    border-color: #345f93;
    box-shadow: 0 0 0 4px rgba(52,95,147,0.12);
}

.timeoff-field small {
    display: block;
    margin-top: 7px;
    color: #617487;
    font-size: 12px;
}

.timeoff-toggle-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1px solid #d6e4ec;
    background: #f9fcfe;
    border-radius: 18px;
    padding: 16px;
    margin: 16px 0;
}

.timeoff-toggle-card input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #10264a;
}

.timeoff-toggle-card label {
    font-weight: 900;
    color: #0b2e5f;
}

.timeoff-toggle-card p {
    margin: 4px 0 0;
    color: #617487;
    font-size: 13px;
}

.sticky-timeoff-card {
    position: sticky;
    top: 24px;
}

.timeoff-actions.stacked {
    display: grid;
    gap: 10px;
}

.timeoff-actions.inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.timeoff-actions .btn,
.timeoff-filter-actions .btn {
    justify-content: center;
}

.timeoff-actions.stacked .btn {
    width: 100%;
}

.timeoff-detail-grid.compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeoff-detail-item {
    background: #f9fcfe;
    border: 1px solid #d6e4ec;
    border-radius: 18px;
    padding: 16px;
}

.timeoff-detail-item.full {
    grid-column: 1 / -1;
}

.timeoff-detail-item span {
    display: block;
    color: #617487;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.timeoff-detail-item strong {
    display: block;
    color: #0f1f33;
    font-size: 15px;
    line-height: 1.45;
}

.timeoff-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: #eef4f8;
    color: #24445f;
    white-space: nowrap;
}

.status-approved {
    background: #e8f7ed;
    color: #166534;
}

.status-declined,
.status-cancelled,
.status-canceled {
    background: #fdecec;
    color: #991b1b;
}

.status-pending {
    background: #fff7df;
    color: #92400e;
}

.timeoff-table-wrap {
    overflow-x: auto;
}

.timeoff-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.timeoff-table th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #617487;
    padding: 0 14px 4px;
}

.timeoff-table td {
    background: #f9fcfe;
    border-top: 1px solid #d6e4ec;
    border-bottom: 1px solid #d6e4ec;
    padding: 14px;
    color: #0f1f33;
}

.timeoff-table td:first-child {
    border-left: 1px solid #d6e4ec;
    border-radius: 16px 0 0 16px;
    font-weight: 800;
}

.timeoff-table td:last-child {
    border-right: 1px solid #d6e4ec;
    border-radius: 0 16px 16px 0;
}

.timeoff-row-action {
    text-align: right;
}

.timeoff-empty {
    text-align: center;
    color: #617487 !important;
    padding: 24px !important;
}

.timeoff-confirm-card {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.centered,
.centered-actions {
    justify-content: center;
    text-align: center;
}

@media (max-width: 1100px) {
    .timeoff-layout,
    .timeoff-filter-form {
        grid-template-columns: 1fr;
    }

    .sticky-timeoff-card {
        position: static;
    }
}

@media (max-width: 760px) {
    .timeoff-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px;
        border-radius: 24px;
    }

    .timeoff-hero h1 {
        font-size: 28px;
    }

    .timeoff-card {
        padding: 20px;
        border-radius: 22px;
    }

    .timeoff-card-header,
    .timeoff-form-grid.two,
    .timeoff-detail-grid,
    .timeoff-detail-grid.compact {
        grid-template-columns: 1fr;
    }

    .timeoff-card-header {
        display: block;
    }

    .timeoff-status {
        margin-top: 12px;
    }

    .timeoff-table,
    .timeoff-table thead,
    .timeoff-table tbody,
    .timeoff-table th,
    .timeoff-table td,
    .timeoff-table tr {
        display: block;
    }

    .timeoff-table thead {
        display: none;
    }

    .timeoff-table tr {
        background: #f9fcfe;
        border: 1px solid #d6e4ec;
        border-radius: 18px;
        margin-bottom: 14px;
        padding: 12px;
    }

    .timeoff-table td,
    .timeoff-table td:first-child,
    .timeoff-table td:last-child {
        border: 0;
        border-radius: 0;
        background: transparent;
        padding: 8px 0;
    }

    .timeoff-table td::before {
        content: attr(data-label);
        display: block;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        font-weight: 900;
        color: #617487;
        margin-bottom: 3px;
    }

    .timeoff-row-action {
        text-align: left;
    }
}
