.app-date-picker {
    position: relative;
    display: flex;
    width: 100%;
}

.app-date-display {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.app-date-button {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.app-date-popup {
    position: fixed;
    z-index: 2000;
    width: min(22rem, calc(100vw - 1rem));
    max-height: calc(100vh - 1rem);
    overflow-y: auto;
    padding: .75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    box-shadow: var(--bs-box-shadow);
}

.app-date-header,
.app-date-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}

.app-date-header {
    margin-bottom: .5rem;
}

.app-date-footer {
    margin-top: .75rem;
}

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

.app-date-weekday {
    padding: .25rem;
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: var(--bs-secondary-color);
    text-transform: capitalize;
}

.app-date-day {
    aspect-ratio: 1;
    border: 0;
    border-radius: var(--bs-border-radius-sm);
    background: transparent;
    color: var(--bs-body-color);
}

.app-date-day:hover:not(:disabled) {
    background: var(--bs-secondary-bg);
}

.app-date-day:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: 1px;
}

.app-date-other-month {
    color: var(--bs-secondary-color);
    opacity: .6;
}

.app-date-selected {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.app-date-selected:hover:not(:disabled) {
    background: var(--bs-primary);
    color: var(--bs-white);
}

.app-date-day:disabled {
    opacity: .3;
    cursor: not-allowed;
}
