/* Shared, local-only calendar and 24-hour time controls. */
.bf-date-control{display:flex;flex-direction:column;gap:6px;min-width:0;width:100%;font-weight:400}
.bf-date-input-row{display:flex;position:relative;min-width:0;width:100%;align-items:center}
.bf-date-input-row>input[data-bf-date-enhanced]{width:100%;min-width:0;min-height:46px;padding-right:48px!important;font-variant-numeric:tabular-nums;color-scheme:light}
.bf-date-input-row>input[data-bf-date-enhanced]::-webkit-calendar-picker-indicator{display:none}
.bf-date-trigger{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:38px;height:38px;min-height:38px;padding:9px;display:flex;align-items:center;justify-content:center;border:0;border-radius:8px;background:transparent;color:var(--blue,#000000);cursor:pointer}
.bf-date-trigger:hover{background:var(--blue-soft,#f7f7f7)}
.bf-date-trigger:disabled{color:var(--muted,#5c5c5c);background:transparent;cursor:default;opacity:.55}
.bf-date-trigger svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.bf-date-caption{display:block;min-width:0;font-size:11px;line-height:1.5;font-weight:400;color:var(--muted,#5c5c5c);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;letter-spacing:0}
.bf-date-control.is-disabled .bf-date-caption{opacity:.6}
.bf-date-popover{position:fixed;z-index:10000;box-sizing:border-box;margin:0;padding:16px;border:1px solid var(--line,#e0e0e0);border-radius:16px;background:#ffffff;color:var(--ink,#000000);box-shadow:0 16px 48px #00000026,0 3px 10px #0000000d;overflow:auto;overscroll-behavior:contain;isolation:isolate;font-family:inherit;font-size:14px;font-weight:400;line-height:1.5;text-align:left}
.bf-date-popover *{box-sizing:border-box}
.bf-date-popover button,.bf-date-popover select,.bf-date-popover input{font:inherit;color:inherit;letter-spacing:0}
.bf-date-popover button{cursor:pointer;transition:background .15s,color .15s;touch-action:manipulation}
.bf-date-popover button:disabled{opacity:1;cursor:default}
.bf-date-popover button:focus-visible,.bf-date-popover input:focus-visible,.bf-date-popover select:focus-visible,.bf-date-trigger:focus-visible{outline:3px solid #000000;outline-offset:2px}
.bf-date-header{display:flex;align-items:center;justify-content:space-between;gap:6px;margin:0 0 13px}
.bf-date-nav{display:inline-flex;align-items:center;justify-content:center;flex:none;width:34px;height:38px;padding:0;border:0;border-radius:8px;background:#f7f7f7;font-size:25px!important;line-height:1;font-weight:400}
.bf-date-nav:hover:not(:disabled){background:#f0f0f0}
.bf-date-nav:disabled{color:#c4c4c4;background:#fafafa}
.bf-date-month-controls{display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;flex:1}
.bf-date-year-label{display:flex;align-items:center;gap:3px;margin:0;min-width:0;font-size:13px;font-weight:600;color:var(--ink,#000000)}
.bf-date-year{width:73px!important;min-width:0!important;min-height:36px!important;height:36px;padding:6px 2px 6px 8px!important;border:1px solid var(--line,#e0e0e0)!important;border-radius:7px!important;background:#ffffff;font-size:14px!important;font-weight:600!important;font-variant-numeric:tabular-nums;text-align:left}
.bf-date-month-select{min-height:36px!important;height:36px;max-width:78px;width:auto!important;padding:6px 7px!important;border:1px solid var(--line,#e0e0e0)!important;border-radius:7px!important;background:#ffffff;font-size:14px!important;font-weight:600!important}
.bf-date-weekdays,.bf-date-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.bf-date-weekdays{margin-bottom:6px;color:var(--muted,#5c5c5c);font-size:11px;text-align:center;line-height:23px}
.bf-date-choice{border:1px solid transparent;border-radius:8px;background:transparent;min-width:0;box-shadow:none;font-variant-numeric:tabular-nums;font-weight:500}
.bf-date-day{display:flex;align-items:center;justify-content:center;min-height:36px;height:36px;padding:0;font-size:13px!important}
.bf-date-choice:hover:not(:disabled){background:#f7f7f7;color:var(--blue,#000000)}
.bf-date-choice.is-outside{color:#737373}
.bf-date-choice.is-today{border-color:#c4c4c4;color:var(--blue,#000000)}
.bf-date-choice.is-selected,.bf-date-choice.is-selected:hover:not(:disabled){background:var(--blue,#000000);border-color:var(--blue,#000000);color:#ffffff;font-weight:700}
.bf-date-choice:disabled{color:#c4c4c4;background:#fafafa;text-decoration:none;border-color:transparent}
.bf-date-choice.is-selected:disabled{background:#f0f0f0;color:#5c5c5c}
.bf-date-blank{min-height:36px}
.bf-date-month-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:4px 0 6px}
.bf-date-month{height:48px;padding:8px;font-size:14px!important}
.bf-date-boundary{margin:12px 0 0!important;padding:0;font-size:10px!important;color:var(--muted,#5c5c5c);line-height:1.6;overflow-wrap:anywhere;font-weight:400}
.bf-date-footer{display:flex;align-items:center;justify-content:flex-end;gap:5px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line,#e0e0e0)}
.bf-date-action{min-height:34px;padding:6px 10px;border:0;border-radius:7px;background:transparent;color:var(--blue,#000000)!important;font-size:12px!important;font-weight:600}
.bf-date-action:first-child{margin-right:auto}
.bf-date-action:hover:not(:disabled){background:var(--blue-soft,#f7f7f7)}
.bf-date-action:disabled{color:#737373!important;background:transparent}
.bf-date-time-title{font-size:16px;font-weight:700;letter-spacing:-.2px}
.bf-date-time-description{margin:5px 0 16px!important;font-size:12px!important;color:var(--muted,#5c5c5c);line-height:1.6;font-weight:400}
.bf-date-time-fields{display:grid;grid-template-columns:minmax(0,1fr) 12px minmax(0,1fr);align-items:end;gap:10px}
.bf-date-time-fields>label{display:flex;flex-direction:column;gap:6px;margin:0;color:var(--muted,#5c5c5c);font-size:12px;font-weight:500;min-width:0}
.bf-date-time-fields select{width:100%;min-width:0;min-height:46px;border:1px solid var(--line,#e0e0e0);border-radius:9px;padding:10px 12px;background:#ffffff;color:var(--ink,#000000);font-size:18px!important;font-variant-numeric:tabular-nums}
.bf-date-time-colon{align-self:end;height:46px;line-height:46px;text-align:center;font-size:22px;font-weight:600;color:var(--ink,#000000)}
.bf-date-apply{display:block;width:100%;min-height:44px;padding:11px 16px;margin-top:18px;border:1px solid var(--blue,#000000);border-radius:9px;background:var(--blue,#000000);color:#ffffff!important;font-size:13px!important;font-weight:650}
.bf-date-apply:hover:not(:disabled){background:#000000}
.bf-date-apply:disabled{background:#e0e0e0;border-color:#e0e0e0;color:#5c5c5c!important}
.bf-date-sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:600px){.bf-date-input-row>input[data-bf-date-enhanced]{min-height:46px;font-size:16px}.bf-date-trigger{width:40px;height:40px}.bf-date-caption{font-size:11px}.bf-date-popover{padding:14px;border-radius:14px}.bf-date-day{min-height:38px;height:38px;font-size:14px!important}.bf-date-nav{height:40px;width:36px}.bf-date-action{min-height:40px;padding:8px 11px;font-size:13px!important}.bf-date-month{height:50px}.bf-date-year,.bf-date-month-select{font-size:16px!important;min-height:38px!important;height:38px}.bf-date-year{width:80px!important}.bf-date-month-select{max-width:82px}.bf-date-boundary{font-size:11px!important}}
@media(prefers-reduced-motion:reduce){.bf-date-popover button{transition:none}}

/* Signature BF yellow marks the chosen date; neutral ink keeps it legible. */
.bf-date-trigger { color: #000000; }
.bf-date-trigger:hover { background: #ffff00; }
.bf-date-trigger:disabled { color: #737373; background: transparent; }
.bf-date-popover { border-color: #d9d9d9; color: #000000; box-shadow: 0 16px 48px #0000001f, 0 3px 10px #0000000a; }
.bf-date-popover button:focus-visible, .bf-date-popover input:focus-visible,
.bf-date-popover select:focus-visible, .bf-date-trigger:focus-visible { outline: 2px solid #000000; outline-offset: 2px; box-shadow: 0 0 0 4px #ffff00; }
.bf-date-nav { background: #f2f2f2; color: #000000; }
.bf-date-nav:hover:not(:disabled) { background: #ffff00; }
.bf-date-nav:disabled { color: #bdbdbd; background: #fafafa; }
.bf-date-choice:hover:not(:disabled) { background: #f2f2f2; color: #000000; }
.bf-date-choice.is-outside { color: #737373; }
.bf-date-choice.is-today { border-color: #000000; color: #000000; }
.bf-date-choice.is-selected, .bf-date-choice.is-selected:hover:not(:disabled) { background: #ffff00; border-color: #ffff00; color: #000000; }
.bf-date-choice:disabled { color: #bdbdbd; background: #fafafa; border-color: transparent; }
.bf-date-choice.is-selected:disabled { color: #737373; background: #ededed; }
.bf-date-action { color: #000000!important; }
.bf-date-action:hover:not(:disabled) { background: #ffff00; }
.bf-date-action:disabled { color: #9e9e9e!important; }
.bf-date-apply { border-color: #ffff00; background: #ffff00; color: #000000!important; }
.bf-date-apply:hover:not(:disabled) { border-color: #000000; background: #000000; color: #ffffff!important; }
.bf-date-apply:disabled { border-color: #e5e5e5; background: #e5e5e5; color: #737373!important; }
