﻿/* ==========================================================
   Leave Requests
   Office aesthetic
   ========================================================== */

.leave-page,
.leave-file-page {
    display: grid;
    gap: 22px;
}

.leave-hero,
.leave-file-header {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 4px 0 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.leave-file-header {
    display: grid;
    text-align: left;
}

.leave-hero::before,
.leave-file-header::before {
    display: none;
}

.leave-hero > *,
.leave-file-header > * {
    position: relative;
    z-index: 1;
}

.leave-chip {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    border: 1px solid color-mix(in srgb, var(--app-primary) 18%, var(--border));
    border-radius: 999px;
    padding: 6px 10px;
    background: color-mix(in srgb, var(--app-primary) 8%, transparent);
    color: var(--app-primary);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.leave-hero h1,
.leave-file-header h1 {
    margin: 10px 0 4px;
    color: var(--text);
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1.05;
}

.leave-hero p,
.leave-file-header p {
    max-width: 620px;
    margin: 0;
    color: var(--text-muted);
    font-size: .92rem;
    font-weight: 500;
    line-height: 1.7;
}

.leave-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: 0 16px;
    font-size: .84rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-decoration: none;
    transition: .18s ease;
}

.leave-btn.primary {
    background: var(--app-primary);
    border-color: var(--app-primary);
    color: #fff;
}

.leave-btn.soft {
    border-color: var(--border);
    background: var(--surface);
    color: var(--text);
}

.leave-btn:hover {
    transform: translateY(-1px);
}

.leave-balance-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.leave-balance-card,
.leave-empty-card,
.leave-list-card,
.leave-form-card,
.leave-file-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.leave-balance-card,
.leave-empty-card {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.leave-list-card,
.leave-form-card,
.leave-file-card {
    padding: 20px;
}

.leave-balance-top {
    display: grid;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.leave-code,
.leave-mini-stats span,
.leave-status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
}

.leave-code {
    width: fit-content;
    border: 1px solid var(--border);
    padding: 5px 9px;
    background: color-mix(in srgb, var(--surface-2) 92%, var(--surface));
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.leave-balance-card h3,
.leave-empty-card h4,
.leave-list-header h3 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.leave-empty-card p,
.leave-list-header p,
.leave-empty p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 500;
}

.leave-days {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.leave-days strong {
    color: var(--text);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -.04em;
}

.leave-days span {
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 650;
}

.leave-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
    position: relative;
    z-index: 1;
}

.leave-mini-stats span {
    padding: 5px 8px;
    background: color-mix(in srgb, var(--surface-2) 92%, var(--surface));
    color: var(--text-muted);
    font-size: .72rem;
    font-weight: 700;
    border: 1px solid var(--border);
}

.leave-list-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.leave-request-list {
    display: grid;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.leave-request-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface-2) 92%, var(--surface));
}

.leave-request-item strong {
    display: block;
    color: var(--text);
    font-size: .9rem;
    font-weight: 750;
}

.leave-request-item small {
    display: block;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: .76rem;
    font-weight: 500;
}

.leave-request-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.leave-request-meta > span:first-child {
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 650;
}

.leave-status {
    padding: 5px 9px;
    font-size: .7rem;
    font-weight: 800;
    text-transform: capitalize;
}

.leave-status.pending {
    background: color-mix(in srgb, #f59e0b 14%, transparent);
    color: #b45309;
}

.leave-status.approved {
    background: color-mix(in srgb, #22c55e 10%, transparent);
    color: #15803d;
}

.leave-status.rejected {
    background: color-mix(in srgb, #ef4444 10%, transparent);
    color: #dc2626;
}

.leave-status.cancelled,
.leave-status.canceled {
    background: color-mix(in srgb, #94a3b8 12%, transparent);
    color: #64748b;
}

.leave-empty {
    display: grid;
    gap: 4px;
    padding: 28px;
    border: 1px dashed var(--border);
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface-2) 92%, var(--surface));
    text-align: center;
    position: relative;
    z-index: 1;
}

.leave-empty h5 {
    margin: 0;
    color: var(--text);
    font-size: .95rem;
    font-weight: 800;
}

.leave-breadcrumb,
.leave-back-link {
    width: fit-content;
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 650;
    text-decoration: none;
}

.leave-breadcrumb a,
.leave-back-link:hover {
    color: var(--text-muted);
}

.leave-breadcrumb a:hover,
.leave-back-link:hover {
    color: var(--app-primary);
}

.leave-file-shell {
    width: min(720px, 100%);
    display: grid;
    gap: 18px;
}

.leave-form,
.leave-form-grid {
    display: grid;
}

.leave-form {
    gap: 20px;
    position: relative;
    z-index: 1;
}

.leave-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.leave-field {
    display: grid;
    gap: 7px;
}

.leave-field.full {
    grid-column: 1 / -1;
}

.leave-duration-field {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.leave-duration-field legend {
    margin-bottom: 8px;
    color: var(--text);
    font-size: .82rem;
    font-weight: 700;
}

.leave-duration-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.leave-duration-option {
    position: relative;
    min-width: 0;
    cursor: pointer;
}

.leave-duration-option > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.leave-duration-option > span {
    min-height: 112px;
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, var(--border) 78%, #64748b 22%);
    border-radius: 16px;
    background: var(--surface);
    transition: .18s ease;
}

.leave-duration-option i {
    width: fit-content;
    margin-bottom: 4px;
    padding: 3px 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--app-primary) 10%, var(--surface-2));
    color: var(--app-primary);
    font-size: .68rem;
    font-style: normal;
    font-weight: 850;
}

.leave-duration-option strong {
    color: var(--text);
    font-size: .86rem;
    font-weight: 800;
}

.leave-duration-option small,
.leave-duration-hint {
    color: var(--text-muted);
    font-size: .7rem;
    line-height: 1.35;
}

.leave-duration-option > input:checked + span {
    border-color: color-mix(in srgb, var(--app-primary) 62%, var(--border));
    background: color-mix(in srgb, var(--app-primary) 7%, var(--surface));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-primary) 10%, transparent);
}

.leave-duration-option > input:focus-visible + span {
    outline: 2px solid var(--app-primary);
    outline-offset: 2px;
}

.leave-duration-hint {
    display: block;
    margin-top: 8px;
}

.leave-field.is-locked input {
    background: color-mix(in srgb, var(--surface-2) 92%, var(--surface));
    color: var(--text-muted);
}

.leave-field label {
    color: var(--text);
    font-size: .82rem;
    font-weight: 700;
}

.leave-field input,
.leave-field select,
.leave-field textarea {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--border) 78%, #64748b 22%);
    border-radius: 14px;
    outline: none;
    padding: 11px 13px;
    background: var(--surface);
    color: var(--text);
    font-size: .9rem;
    font-weight: 500;
    transition: .18s ease;
}

.leave-field textarea {
    resize: vertical;
    min-height: 130px;
}

.leave-field input:focus,
.leave-field select:focus,
.leave-field textarea:focus {
    border-color: color-mix(in srgb, var(--app-primary) 42%, var(--border));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-primary) 10%, transparent);
}

.leave-field > span.field-validation-error,
.leave-duration-field > span.field-validation-error,
.leave-validation {
    color: #dc2626;
    font-size: .78rem;
    font-weight: 600;
}

.leave-validation.validation-summary-valid {
    display: none;
}

.leave-validation ul {
    margin-bottom: 0;
}

.leave-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

/* ==========================================================
   File Leave workspace
   ========================================================== */

.leave-file-page {
    padding-bottom: 32px;
}

.leave-file-shell {
    width: min(1180px, 100%);
    gap: 14px;
}

.leave-file-shell > .leave-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 2px;
}

.leave-file-shell > .leave-back-link span {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: var(--surface);
    color: var(--text);
}

.leave-file-header {
    position: relative;
    isolation: isolate;
    min-height: 190px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 30px;
    overflow: hidden;
    padding: clamp(25px, 4vw, 38px);
    border: 1px solid var(--border);
    border-radius: 25px;
    background:
        radial-gradient(circle at 92% 12%, color-mix(in srgb, var(--app-primary) 13%, transparent), transparent 19rem),
        linear-gradient(135deg, color-mix(in srgb, var(--surface) 95%, var(--app-primary) 5%), var(--surface));
    box-shadow: var(--shadow-md);
}

.leave-file-header::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: -90px;
    right: 13%;
    width: 230px;
    height: 230px;
    border: 1px solid color-mix(in srgb, var(--app-primary) 13%, transparent);
    border-radius: 50%;
    box-shadow:
        0 0 0 34px color-mix(in srgb, var(--app-primary) 3%, transparent),
        0 0 0 68px color-mix(in srgb, var(--app-primary) 2%, transparent);
}

.leave-file-title {
    position: relative;
    z-index: 1;
}

.leave-file-title .leave-chip {
    gap: 7px;
}

.leave-file-title .leave-chip i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--app-primary) 10%, transparent);
}

.leave-file-header h1 {
    max-width: 680px;
    margin-top: 16px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 850;
}

.leave-file-header p {
    max-width: 680px;
    font-size: .88rem;
}

.leave-draft-state {
    position: relative;
    z-index: 1;
    min-width: 230px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid color-mix(in srgb, var(--app-primary) 15%, var(--border));
    border-radius: 16px;
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    box-shadow: 0 13px 35px color-mix(in srgb, #000 7%, transparent);
    backdrop-filter: blur(12px);
}

.leave-draft-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--app-primary) 10%, var(--surface));
    color: var(--app-primary);
}

.leave-draft-icon svg,
.leave-upload-control svg,
.leave-route-note svg,
.leave-input-wrap.has-icon > svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.leave-draft-state > span:last-child {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.leave-draft-state small {
    color: var(--text-muted);
    font-size: .61rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.leave-draft-state strong {
    color: var(--text);
    font-size: .75rem;
}

.leave-file-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 16px;
    align-items: start;
}

.leave-file-card {
    padding: 0;
    border-radius: 25px;
}

.leave-file-card .leave-form {
    gap: 0;
}

.leave-form-section {
    display: grid;
    gap: 22px;
    padding: clamp(22px, 3vw, 30px);
}

.leave-form-section + .leave-form-section {
    border-top: 1px solid var(--border);
}

.leave-section-head {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.leave-section-head > span {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border: 1px solid color-mix(in srgb, var(--app-primary) 18%, var(--border));
    border-radius: 11px;
    background: color-mix(in srgb, var(--app-primary) 8%, var(--surface));
    color: var(--app-primary);
    font-size: .66rem;
    font-weight: 900;
}

.leave-section-head h2 {
    margin: 0;
    color: var(--text);
    font-size: 1rem;
    font-weight: 850;
    letter-spacing: -.02em;
}

.leave-section-head p {
    margin: 4px 0 0;
    color: var(--text-muted);
    font-size: .73rem;
    line-height: 1.5;
}

.leave-file-card .leave-form-grid {
    gap: 18px;
}

.leave-file-card .leave-field,
.leave-file-card .leave-duration-field {
    gap: 8px;
}

.leave-file-card .leave-field label,
.leave-file-card .leave-duration-field legend {
    color: var(--text);
    font-size: .76rem;
    font-weight: 800;
}

.leave-input-wrap {
    position: relative;
}

.leave-input-wrap.has-icon > svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    color: var(--text-muted);
    transform: translateY(-50%);
    pointer-events: none;
}

.leave-input-wrap.has-icon select {
    padding-left: 44px;
}

.leave-file-card .leave-field input,
.leave-file-card .leave-field select,
.leave-file-card .leave-field textarea {
    min-height: 47px;
    border-radius: 13px;
    background: color-mix(in srgb, var(--surface) 96%, var(--surface-2));
}

.leave-file-card .leave-field textarea {
    min-height: 132px;
    line-height: 1.6;
}

.leave-field-help,
.leave-field-foot {
    color: var(--text-muted);
    font-size: .67rem;
    line-height: 1.45;
}

.leave-field-foot {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.leave-duration-option > span {
    position: relative;
    min-height: 124px;
    padding: 16px;
    background: color-mix(in srgb, var(--surface-2) 68%, var(--surface));
}

.leave-duration-option > span > b {
    position: absolute;
    top: 13px;
    right: 13px;
    width: 17px;
    height: 17px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
}

.leave-duration-option > input:checked + span > b {
    border: 5px solid var(--app-primary);
}

.leave-duration-option > input:checked + span {
    transform: translateY(-1px);
}

.leave-upload-control {
    position: relative;
    min-height: 88px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    padding: 17px;
    overflow: hidden;
    border: 1px dashed color-mix(in srgb, var(--app-primary) 34%, var(--border));
    border-radius: 15px;
    background: color-mix(in srgb, var(--app-primary) 4%, var(--surface));
    cursor: pointer;
    transition: .18s ease;
}

.leave-upload-control:hover,
.leave-upload-control:focus-within {
    border-color: var(--app-primary);
    background: color-mix(in srgb, var(--app-primary) 7%, var(--surface));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--app-primary) 8%, transparent);
}

.leave-upload-control > span {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--app-primary) 10%, var(--surface));
    color: var(--app-primary);
}

.leave-upload-control > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.leave-upload-control strong {
    overflow: hidden;
    color: var(--text);
    font-size: .76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leave-upload-control small {
    color: var(--text-muted);
    font-size: .65rem;
    line-height: 1.4;
}

.leave-upload-control input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.leave-file-card .leave-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    padding: 20px clamp(22px, 3vw, 30px);
    border-top: 1px solid var(--border);
    background: color-mix(in srgb, var(--surface-2) 55%, var(--surface));
}

.leave-form-actions > div {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.leave-form-actions > div strong {
    color: var(--text);
    font-size: .72rem;
}

.leave-form-actions > div small {
    color: var(--text-muted);
    font-size: .64rem;
}

.leave-file-card .leave-btn {
    min-height: 43px;
    text-transform: none;
    letter-spacing: 0;
}

.leave-file-card .leave-btn.primary {
    gap: 22px;
    padding-inline: 18px;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--app-primary) 20%, transparent);
}

.leave-file-aside {
    position: sticky;
    top: 86px;
    display: grid;
    gap: 14px;
}

.leave-summary-card,
.leave-guidance-card {
    overflow: hidden;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
}

.leave-summary-card > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--app-primary);
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.leave-summary-card > header i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22a06b;
    box-shadow: 0 0 0 5px color-mix(in srgb, #22a06b 10%, transparent);
}

.leave-summary-card h2 {
    margin: 17px 0 6px;
    color: var(--text);
    font-size: 1.05rem;
    letter-spacing: -.025em;
}

.leave-summary-card > p {
    margin: 0;
    color: var(--text-muted);
    font-size: .7rem;
    line-height: 1.55;
}

.leave-summary-card dl {
    display: grid;
    margin: 20px 0;
}

.leave-summary-card dl div {
    display: grid;
    gap: 5px;
    padding: 12px 0;
    border-top: 1px solid var(--border);
}

.leave-summary-card dt {
    color: var(--text-muted);
    font-size: .62rem;
}

.leave-summary-card dd {
    margin: 0;
    overflow-wrap: anywhere;
    color: var(--text);
    font-size: .74rem;
    font-weight: 800;
}

.leave-route-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px;
    border-radius: 15px;
    background: color-mix(in srgb, #22a06b 7%, var(--surface-2));
    color: #16805b;
}

.leave-route-note > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.leave-route-note > span {
    display: grid;
    gap: 4px;
}

.leave-route-note strong {
    font-size: .68rem;
}

.leave-route-note small {
    color: var(--text-muted);
    font-size: .62rem;
    line-height: 1.45;
}

.leave-guidance-card > span {
    color: var(--text);
    font-size: .72rem;
    font-weight: 850;
}

.leave-guidance-card ul {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.leave-guidance-card li {
    position: relative;
    padding-left: 17px;
    color: var(--text-muted);
    font-size: .66rem;
    line-height: 1.5;
}

.leave-guidance-card li::before {
    content: "";
    position: absolute;
    top: .48em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--app-primary);
}

@media (max-width: 1180px) {
    .leave-balance-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .leave-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .leave-btn {
        width: 100%;
    }

    .leave-balance-grid,
    .leave-form-grid {
        grid-template-columns: 1fr;
    }

    .leave-duration-options {
        grid-template-columns: 1fr;
    }

    .leave-duration-option > span {
        min-height: 84px;
    }

    .leave-request-item {
        align-items: flex-start;
        flex-direction: column;
    }

    .leave-request-meta,
    .leave-form-actions {
        width: 100%;
        justify-content: space-between;
    }

    .leave-file-page {
        padding: 18px 0;
        place-items: start stretch;
    }

    .leave-file-card,
    .leave-form-card {
        padding: 18px;
    }

    .leave-form-actions {
        flex-direction: column;
    }
}

@media (max-width: 980px) {
    .leave-file-workspace {
        grid-template-columns: 1fr;
    }

    .leave-file-aside {
        position: static;
        grid-template-columns: minmax(0, 1.15fr) minmax(240px, .85fr);
    }
}

@media (max-width: 768px) {
    .leave-file-page {
        padding: 8px 0 24px;
    }

    .leave-file-header {
        min-height: 0;
        grid-template-columns: 1fr;
        align-items: start;
        gap: 22px;
        padding: 24px 20px;
        border-radius: 21px;
    }

    .leave-file-header h1 {
        font-size: 2rem;
    }

    .leave-draft-state {
        width: 100%;
        min-width: 0;
    }

    .leave-file-card {
        padding: 0;
        border-radius: 21px;
    }

    .leave-form-section {
        padding: 21px 18px;
    }

    .leave-duration-option > span {
        min-height: 88px;
    }

    .leave-file-card .leave-form-actions {
        grid-template-columns: 1fr 1fr;
        padding: 18px;
    }

    .leave-file-card .leave-form-actions > div {
        grid-column: 1 / -1;
        margin-bottom: 5px;
    }

    .leave-file-card .leave-btn {
        width: 100%;
    }

    .leave-file-aside {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .leave-file-card .leave-form-actions {
        grid-template-columns: 1fr;
    }

    .leave-file-card .leave-form-actions > div {
        grid-column: auto;
    }

    .leave-file-card .leave-btn.primary {
        grid-row: 2;
    }

    .leave-file-card .leave-btn.soft {
        grid-row: 3;
    }

    .leave-field-foot {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
    }
}
