/* BM-Datepicker — Custom-Kalender-Popup, ersetzt Safari-Native (07/2026) */

.bm-dp {
    position: relative;
    display: block;
    width: 100%;
}
/* Display-Feld sieht aus wie ein normales Text-Input — nicht wie "disabled".
   Wichtig: readonly-Selector ueberschreibt die Browser-Default-Grauung. */
.bm-dp-display,
.bm-dp-display:read-only {
    cursor: pointer;
    background: #fff;
    color: inherit;
    opacity: 1;
    -webkit-text-fill-color: currentColor;
}
.bm-dp-display::placeholder { color: #94a3b8; }
.bm-dp-display:hover { cursor: pointer; }

.bm-dp-pop {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    z-index: 1200;
    display: none;
    width: 260px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14), 0 2px 6px rgba(15, 23, 42, 0.04);
    font-size: 12px;
    color: #0f172a;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.bm-dp.is-open .bm-dp-pop { display: block; }
.bm-dp-pop.is-above {
    top: auto;
    bottom: calc(100% + 4px);
}

.bm-dp-head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
}
.bm-dp-title {
    flex: 1;
    display: flex;
    gap: 4px;
    justify-content: center;
    align-items: center;
}
.bm-dp-m, .bm-dp-y {
    height: 26px;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 600;
    color: #1F3C5B;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
}
.bm-dp-m { padding-right: 20px; }
.bm-dp-y { width: 58px; text-align: center; -moz-appearance: textfield; }
.bm-dp-y::-webkit-outer-spin-button,
.bm-dp-y::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bm-dp-m:hover, .bm-dp-y:hover,
.bm-dp-m:focus, .bm-dp-y:focus {
    border-color: var(--color-border, #e2e8f0);
    outline: none;
    background: #f8fafc;
}
.bm-dp-nav {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: #1F3C5B;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    font-family: inherit;
}
.bm-dp-nav:hover { background: #f1f5f9; }

.bm-dp-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.bm-dp-wd {
    text-align: center;
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 4px 0;
}
.bm-dp-day {
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    line-height: 1;
    transition: background 0.1s ease, color 0.1s ease;
    user-select: none;
}
.bm-dp-day:hover { background: #eef2f7; }
.bm-dp-day.is-muted { color: #cbd5e1; }
.bm-dp-day.is-today {
    color: #1F3C5B;
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(31, 60, 91, 0.35);
}
.bm-dp-day.is-selected {
    background: #1F3C5B;
    color: #fff;
    font-weight: 600;
}
.bm-dp-day.is-selected:hover { background: #1F3C5B; }
