.form-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.625rem 0.75rem;
    background: #fff;
}

.form-input:focus-visible,
button:focus-visible,
a:focus-visible,
.nav-link:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
    background: #0f172a;
    color: #fff;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.form-input:focus {
    outline: 2px solid #f59e0b;
    outline-offset: 1px;
}

input[type="checkbox"] {
    margin-top: 0.2rem;
}

form p {
    margin-bottom: 1rem;
}

form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.status-badge {
    display: inline-block;
    border-radius: 9999px;
    padding: 0.125rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
}

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

.status-approved {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected {
    background: #fee2e2;
    color: #991b1b;
}

.week-badge {
    display: inline-block;
    border-radius: 9999px;
    padding: 0.125rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: capitalize;
}

.week-status-ok {
    background: #d1fae5;
    color: #065f46;
}

.week-status-tight {
    background: #fef3c7;
    color: #92400e;
}

.week-status-understaffed {
    background: #fee2e2;
    color: #991b1b;
}

.calendar-grid {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
}

.calendar-grid-header {
    background: #f8fafc;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-grid-weekdays,
.calendar-grid-week {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.calendar-grid-weekdays span {
    text-align: center;
    font-size: 0.65rem;
    color: #64748b;
    padding: 0.35rem 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.calendar-cell {
    min-height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border-right: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.calendar-cell-empty {
    background: #fafafa;
}

.calendar-cell-outside,
.calendar-cell-weekend {
    background: #f8fafc;
    color: #94a3b8;
}

.calendar-cell-free {
    background: #fff;
    color: #334155;
}

.calendar-cell-approved,
.calendar-cell-ok {
    background: #bbf7d0;
    color: #14532d;
    font-weight: 600;
}

.calendar-cell-pending,
.calendar-cell-tight {
    background: #fde68a;
    color: #92400e;
    font-weight: 600;
}

.calendar-cell-understaffed {
    background: #fecaca;
    color: #991b1b;
    font-weight: 600;
}

.calendar-cell-blocked {
    background: #fee2e2;
    color: #991b1b;
    font-weight: 600;
}

.request-picker-grid .request-picker-cell {
    cursor: pointer;
    border: none;
    width: 100%;
}

.request-picker-grid .request-picker-cell:disabled {
    cursor: not-allowed;
}

.request-picker-grid .request-picker-cell[data-picker-state="between"] {
    background: #bbf7d0 !important;
    color: #14532d !important;
    font-weight: 600;
}

.request-picker-grid .request-picker-cell[data-picker-state="start"],
.request-picker-grid .request-picker-cell[data-picker-state="end"],
.request-picker-grid .request-picker-cell[data-picker-state="single"] {
    background: #15803d !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: inset 0 0 0 2px #0f172a;
}

.request-picker-grid .request-picker-cell[data-picker-state="start-only"] {
    background: #fef3c7 !important;
    color: #92400e !important;
    font-weight: 700;
    box-shadow: inset 0 0 0 2px #f59e0b;
}

.request-picker-grid .request-picker-cell.request-picker-cell-range-between,
.request-picker-grid .request-picker-cell.request-picker-cell-in-range {
    background: #bbf7d0 !important;
    color: #14532d !important;
    font-weight: 600;
}

.request-picker-grid .request-picker-cell.request-picker-cell-range-start,
.request-picker-grid .request-picker-cell.request-picker-cell-range-end,
.request-picker-grid .request-picker-cell.request-picker-cell-single {
    background: #15803d !important;
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: inset 0 0 0 2px #0f172a;
}

.request-picker-grid .request-picker-cell.request-picker-cell-start-only {
    background: #fef3c7 !important;
    color: #92400e !important;
    font-weight: 700;
    box-shadow: inset 0 0 0 2px #f59e0b;
}

.request-picker-cell-selected {
    outline: 2px solid #0f172a;
    outline-offset: -2px;
}

.request-picker-cell-in-range,
.request-picker-cell-range-between {
    background: #bbf7d0;
    color: #14532d;
    font-weight: 600;
}

.request-picker-cell-range-start,
.request-picker-cell-range-end,
.request-picker-cell-single {
    background: #15803d;
    color: #fff;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.request-picker-cell-start-only {
    background: #fef3c7;
    color: #92400e;
    box-shadow: inset 0 0 0 2px #f59e0b;
}

.request-picker-legend {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0.2rem;
    display: inline-block;
}

.request-picker-legend-start {
    background: #15803d;
}

.request-picker-legend-between {
    background: #bbf7d0;
    border: 1px solid #86efac;
}

.request-picker-legend-pending {
    background: #fef3c7;
    border: 2px solid #f59e0b;
}

.team-leave-approved {
    color: #065f46;
}

.team-leave-pending {
    color: #92400e;
    font-style: italic;
}

.nav-link {
    color: #fff;
}

.nav-link:hover {
    color: #fcd34d;
}

.nav-link-active {
    color: #fcd34d;
    font-weight: 600;
}

.allowance-track {
    height: 0.75rem;
    background: #e2e8f0;
    border-radius: 9999px;
    overflow: hidden;
    display: flex;
}

.allowance-fill {
    height: 100%;
}

.allowance-used {
    background: #34d399;
}

.allowance-pending {
    background: #fbbf24;
}

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

.gantt-name {
    min-width: 8rem;
}

.gantt-cell {
    height: 1.25rem;
    border-radius: 0.375rem;
    background: #f1f5f9;
}

.gantt-cell-approved {
    background: #34d399;
}

.gantt-cell-pending {
    background: #fbbf24;
}

.gantt-cell-pending-warned {
    background: #a78bfa;
}

.gantt-cell-approved-warned {
    background: #fb923c;
}

.gantt-cell-latest-week {
    box-shadow: inset 0 0 0 2px #0f172a;
}

.leave-row-latest {
    box-shadow: inset 0 0 0 2px #0f172a;
    border-radius: 0.5rem;
}

.leave-row-warned {
    border-left: 4px solid #7c3aed;
    padding-left: 0.5rem;
}

.booking-flag {
    display: inline-block;
    border-radius: 9999px;
    padding: 0.05rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.booking-flag-warned {

.booking-flag-acknowledged {
    background: #bff0ff;
    color: #0284c7;
}

.gantt-cell-warned {
    background: #e0f7ff;
    color: #0369a1;
}

    background: #ede9fe;
    color: #5b21b6;
}

.booking-flag-latest {
    background: #e2e8f0;
    color: #0f172a;
}

.gantt-cell-none {
    background: #f8fafc;
}

.gantt-cell-selected {
    outline: 2px solid #0f172a;
    outline-offset: 1px;
}

.gantt-cell-link:hover .gantt-cell {
    opacity: 0.85;
}

.legend-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    display: inline-block;
}

.legend-approved,
.legend-free {
    background: #34d399;
}

.legend-pending {
    background: #fbbf24;
}

.legend-rejected {
    background: #f87171;
}

.staffing-calendar .calendar-cell {
    min-height: 3.25rem;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.25rem;
    text-decoration: none;
    color: inherit;
}

.staffing-cell-day {
    font-weight: 600;
}

.staffing-cell-meta {
    font-size: 0.6rem;
    line-height: 1;
    opacity: 0.9;
}

.staffing-cell-override {
    box-shadow: inset 0 0 0 2px #f59e0b;
}

.staffing-cell-selected {
    outline: 2px solid #0f172a;
    outline-offset: -2px;
}

.staffing-legend-override {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0.2rem;
    display: inline-block;
    box-shadow: inset 0 0 0 2px #f59e0b;
    background: #fff;
}

.print-preview-panel {
    min-height: 24rem;
}

.print-preview-frame {
    display: block;
    width: 100%;
    min-height: 70vh;
    border: 0;
    background: #fff;
}

.print-preview-btn.print-preview-active {
    border-color: #f59e0b;
    background: #fffbeb;
    font-weight: 600;
}
