/* datepicker.css - CSP-safe styles for our custom datepicker */

.app-dp {
    position: absolute;
    z-index: 9999;
    width: 280px;
    border-radius: 14px;
    padding: 10px;

    box-shadow: var(--app-dp-shadow);
    border: 1px solid var(--app-dp-border);

    background: var(--app-dp-bg);
    color: var(--app-dp-text);

    user-select: none;
}

.app-dp__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

.app-dp__month {
    font-weight: 900;
    font-size: 14px;
    line-height: 1.1;
}

.app-dp__nav {
    display: inline-flex;
    gap: 6px;
}

.app-dp__btn {
    appearance: none;
    border: 1px solid var(--app-dp-btn-border);
    background: var(--app-dp-btn-bg);
    color: var(--app-dp-btn-text);

    border-radius: 10px;
    padding: 6px 10px;

    font-weight: 900;
    font-size: 12px;
    cursor: pointer;
    line-height: 1;
}

.app-dp__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.app-dp__wd {
    font-size: 11px;
    font-weight: 900;
    text-align: center;
    opacity: .75;
    padding: 4px 0;
}

.app-dp__day {
    text-align: center;
    padding: 8px 0;
    border-radius: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    font-weight: 800;
    font-size: 12px;
}

.app-dp__day:hover {
    background: var(--app-dp-day-hover-bg);
}

.app-dp__day.is-out {
    opacity: .35;
}

.app-dp__day.is-today {
    border-color: var(--app-dp-day-today-border);
}

.app-dp__day.is-selected {
    background: var(--app-dp-day-selected-bg);
}

.app-dp__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;

    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--app-dp-actions-border);
}
