/* Calendario unico del Site Manager, allineato al selettore data del Gestionale INK. */
.bp-date-picker-input-shell {
    position: relative;
    display: block;
    width: 100%;
}

.bp-date-picker-source {
    display: none !important;
}

.bp-date-picker-field-input,
.bp-date-picker-proxy {
    box-sizing: border-box;
    width: 100%;
    padding-right: 40px !important;
}

.bp-date-picker-input-button {
    position: absolute;
    top: 50%;
    right: 8px;
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: #111827;
    font-size: 15px;
    transform: translateY(-50%);
}

.bp-date-picker-input-button:hover,
.bp-date-picker-input-button:focus-visible {
    color: #0b57d0;
    outline: none;
}

.bp-date-picker-input-button:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.bp-date-picker-enhanced {
    cursor: pointer;
}

.bp-date-picker-enhanced::-webkit-calendar-picker-indicator {
    pointer-events: none;
}

.bp-date-picker-menu,
.bp-date-picker-menu * {
    box-sizing: border-box;
}

.bp-date-picker-menu {
    position: fixed;
    z-index: 20050;
    overflow: hidden;
    border: 1px solid #c6d0dc;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
    padding: 8px;
    color: #0f172a;
    font-family: inherit;
}

.bp-date-picker-header {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 6px;
    padding-bottom: 8px;
}

.bp-date-picker-title {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    text-transform: capitalize;
}

.bp-date-picker-nav,
.bp-date-picker-title-button,
.bp-date-picker-choice-button,
.bp-date-picker-footer-button,
.bp-date-picker-confirm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c6d0dc;
    border-radius: 6px;
    background: #ffffff;
    color: #334155;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    transition: border-color 120ms ease, background-color 120ms ease, color 120ms ease, box-shadow 120ms ease;
}

.bp-date-picker-nav {
    width: 30px;
    height: 30px;
    padding: 0;
}

.bp-date-picker-nav .fa {
    font-size: 11px;
}

.bp-date-picker-title-button {
    min-width: 0;
    height: 30px;
    padding: 0 8px;
    text-transform: capitalize;
}

.bp-date-picker-nav:hover,
.bp-date-picker-nav:focus-visible,
.bp-date-picker-title-button:hover,
.bp-date-picker-title-button:focus-visible,
.bp-date-picker-choice-button:hover,
.bp-date-picker-choice-button:focus-visible,
.bp-date-picker-footer-button:hover,
.bp-date-picker-footer-button:focus-visible,
.bp-date-picker-confirm-button:hover,
.bp-date-picker-confirm-button:focus-visible {
    border-color: #1a73e8;
    background: #f3f7fc;
    color: #0b57d0;
    outline: none;
}

.bp-date-picker-weekdays,
.bp-date-picker-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
}

.bp-date-picker-weekdays {
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 5px;
}

.bp-date-picker-weekday {
    padding: 3px 0 7px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #0b57d0;
}

.bp-date-picker-day {
    display: inline-flex;
    height: 30px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    padding: 0;
}

.bp-date-picker-day:hover,
.bp-date-picker-day:focus-visible {
    border-color: #1a73e8;
    background: #edf6ff;
    outline: none;
}

.bp-date-picker-day.is-muted {
    color: #94a3b8;
}

.bp-date-picker-day.is-today:not(.is-selected) {
    border-color: #bfdbfe;
    background: #eaf4ff;
    color: #0b57d0;
}

.bp-date-picker-day.is-selected {
    border-color: #0b57d0;
    background: #1a73e8;
    color: #ffffff;
}

.bp-date-picker-day.is-disabled,
.bp-date-picker-day.is-disabled:hover,
.bp-date-picker-day.is-disabled:focus-visible {
    border-color: transparent;
    background: #ffffff;
    color: #cbd5e1;
    cursor: not-allowed;
}

.bp-date-picker-choice-grid {
    display: grid;
    gap: 6px;
}

.bp-date-picker-month-grid,
.bp-date-picker-year-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bp-date-picker-month-grid {
    padding: 4px 0;
}

.bp-date-picker-year-panel {
    max-height: 214px;
    overflow-y: auto;
    padding: 4px 2px;
}

.bp-date-picker-choice-button {
    min-height: 32px;
    padding: 0 7px;
    text-transform: capitalize;
}

.bp-date-picker-choice-button.is-today:not(.is-selected) {
    border-color: #bfdbfe;
    background: #eaf4ff;
    color: #0b57d0;
}

.bp-date-picker-choice-button.is-selected {
    border-color: #0b57d0;
    background: #1a73e8;
    color: #ffffff;
}

.bp-date-picker-time {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
    padding-top: 8px;
}

.bp-date-picker-time-label {
    margin-right: 4px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
}

.bp-date-picker-time-select {
    display: inline-block !important;
    position: static !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 56px;
    height: 30px;
    border: 1px solid #c6d0dc;
    border-radius: 6px;
    background: #ffffff;
    color: #1f2937;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.bp-date-picker-time-separator {
    color: #475569;
    font-weight: 700;
}

.bp-date-picker-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #e2e8f0;
    margin-top: 8px;
    padding-top: 8px;
}

.bp-date-picker-footer-actions {
    display: flex;
    gap: 6px;
}

.bp-date-picker-footer-button,
.bp-date-picker-confirm-button {
    height: 30px;
    padding: 0 10px;
    color: #0b57d0;
}

.bp-date-picker-confirm-button {
    border-color: #0b57d0;
    background: #1a73e8;
    color: #ffffff;
}

.bp-date-picker-confirm-button:hover,
.bp-date-picker-confirm-button:focus-visible {
    background: #0b57d0;
    color: #ffffff;
}

.bp-date-picker-confirm-button:disabled {
    border-color: #cbd5e1;
    background: #e2e8f0;
    color: #94a3b8;
    cursor: not-allowed;
}

@media (max-width: 420px) {
    .bp-date-picker-menu {
        max-width: calc(100vw - 16px);
    }
}
