/* ── datetime picker integration with column-filter popover ──────── */

.fd-popover__body[data-filter-type="datetime"],
.fd-popover__body[data-filter-type="datetime"] .column-filter__content,
.fd-popover__body[data-filter-type="datetime"] .dt-picker-root,
.fd-popover__body[data-filter-type="datetime"] .dt-shell,
.fd-popover__body[data-filter-type="datetime"] .dt-slider,
.fd-popover__body[data-filter-type="datetime"] .dt-panel--menu,
.fd-popover__body[data-filter-type="datetime"] .dt-panel--subpanel,
.fd-popover__body[data-filter-type="datetime"] .dt-subpanel-body,
.fd-popover__body[data-filter-type="datetime"] .dt-field--from,
.fd-popover__body[data-filter-type="datetime"] .dt-field--to {
    overflow: visible !important;
    white-space: normal;
}

.column-filter .column-filter__body[data-filter-type="datetime"] {
    max-width: none;
    min-width: 36rem;
}

.fd-popover__body[data-filter-type="datetime"] .dt-flyout {
    z-index: 1200;
}

.column-filter__actions--datetime {
    flex-wrap: wrap;
    justify-content: flex-start;
}

.column-filter__actions--datetime .column-filter__apply {
    margin-left: auto;
}

/* ── datetime picker component ───────────────────────────────────── */

.dt-picker-root {
    position: relative;
    font-family: "72", "72full", Arial, Helvetica, sans-serif;
    font-size: 0.875rem;
    color: #32363a;
}

.dt-field--from,
.dt-field--to {
    position: relative;
}

.dt-field-row {
    display: flex;
    align-items: center;
    margin-bottom: 0.375rem;
    border: 1px solid #89919a;
    border-radius: 0.25rem;
    background: #fff;
    overflow: hidden;
    box-sizing: border-box;
}

.dt-field-row:focus-within {
    border-color: #0070f2;
    box-shadow: 0 0 0 0.0625rem #0070f2;
}

.dt-field-input {
    flex: 1;
    height: 2rem;
    padding: 0 0.5rem;
    border: none;
    font-size: 0.875rem;
    font-family: inherit;
    color: #32363a;
    background: transparent;
    cursor: default;
    box-sizing: border-box;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dt-field-input::placeholder { color: #89919a; }

.dt-field-icon-btn,
.dt-field-clear-btn {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    border: none;
    border-left: 1px solid transparent;
    border-radius: 0;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.875rem;
    color: #6a6d70;
    box-sizing: border-box;
}

.dt-field-row:hover .dt-field-icon-btn,
.dt-field-row:hover .dt-field-clear-btn,
.dt-field-row:focus-within .dt-field-icon-btn,
.dt-field-row:focus-within .dt-field-clear-btn { border-left-color: #d9d9d9; }

.dt-field-icon-btn:hover,
.dt-field-clear-btn:hover { background: #f5f6f7; }

.dt-flyout {
    display: none;
    position: absolute;
    z-index: 1100;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid #d9d9d9;
    border-radius: 0.375rem;
    box-shadow: 0 0.25rem 1rem rgba(0,0,0,0.15);
    overflow: hidden;
}

.dt-flyout.is-open { display: block; }

.dt-flyout-cols {
    display: flex;
    align-items: stretch;
    min-width: 33rem;
}

.dt-flyout-col--cal {
    flex: 0 0 auto;
    width: 17rem;
}

.dt-flyout-col--clock {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem;
    border-left: 1px solid #e8e8e8;
    background: #fafafa;
}

.dt-flyout-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-top: 1px solid #e8e8e8;
    background: #fff;
}

.dt-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0.5rem;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
}

.dt-cal-prev,
.dt-cal-next {
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.125rem;
    color: #32363a;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dt-cal-prev:hover,
.dt-cal-next:hover { background: #e8e8e8; }

.dt-cal-month-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #32363a;
}

/* calendar grid */
.dt-cal-grid { padding: 0.25rem 0.375rem; }

.dt-cal-grid table { width: 100%; border-collapse: collapse; }

.dt-cal-grid th {
    font-size: 0.75rem;
    color: #6a6d70;
    text-align: center;
    padding: 0.2rem 0;
    font-weight: 600;
}

.dt-cal-grid td { text-align: center; padding: 0.1rem; }

/* week-number column (ISO), muted and separated like Fundamental */
.dt-cal-grid .dt-cal-wk {
    font-size: 0.7rem;
    color: #a9b0b8;
    font-weight: 400;
    padding-right: 0.375rem;
    border-right: 1px solid #e8e8e8;
}

.dt-cal-day {
    width: 2rem;
    height: 2rem;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    background: none;
    cursor: pointer;
    font-size: 0.8rem;
    font-family: inherit;
    color: #32363a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.dt-cal-day:hover:not(:disabled) { background: #e8f3ff; }
.dt-cal-day--today { border-color: #0070f2; font-weight: 700; }
.dt-cal-day--selected { background: #0070f2 !important; color: #fff !important; border-color: #0070f2; }
.dt-cal-day--other { color: #bbb; cursor: default; }

.dt-cal-grid tbody td:nth-child(2),
.dt-cal-grid tbody td:last-child { background: #f5f6f7; }

.dt-time-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.25rem 0 0.5rem;
    width: 100%;
}

.dt-pill {
    min-width: 2.25rem;
    height: 1.75rem;
    padding: 0 0.5rem;
    border: 1px solid #89919a;
    border-radius: 0.25rem;
    background: #fff;
    font-size: 0.875rem;
    font-family: inherit;
    color: #32363a;
    cursor: pointer;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.dt-pill::-webkit-outer-spin-button,
.dt-pill::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dt-pill[type=number] { -moz-appearance: textfield; appearance: textfield; }

.dt-pill:hover { background: #e8f3ff; border-color: #0070f2; }
.dt-pill--active { background: #0070f2; border-color: #0070f2; color: #fff; }

.dt-pill-sep {
    font-size: 1rem;
    font-weight: 700;
    color: #32363a;
}

.dt-clock-fd {
    position: relative;
    width: 14rem;
    height: 14rem;
    margin: 0.25rem auto 0;
    border-radius: 50%;
    background: #fafafa;
    cursor: pointer;
}

.dt-clk-item {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.dt-clk-dot {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background: #b3b3b3;
}

.dt-clk-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
    font-size: 0.8rem;
    color: #32363a;
}

.dt-clk-item--sel .dt-clk-num {
    background: #0070f2;
    color: #fff;
}
.dt-clk-item--sel .dt-clk-dot {
    background: #0070f2;
    transform: scale(1.5);
}

.dt-clk-label {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.8rem;
    color: #6a6d70;
    pointer-events: none;
}


.dt-shell { width: 100%; }

.dt-slider { width: 100%; }

.dt-panel--menu,
.dt-panel--subpanel {
    width: 100%;
    box-sizing: border-box;
}

.dt-slider[data-level="1"] .dt-panel--menu     { display: block; }
.dt-slider[data-level="1"] .dt-panel--subpanel  { display: none; }
.dt-slider[data-level="2"] .dt-panel--menu     { display: none; }
.dt-slider[data-level="2"] .dt-panel--subpanel  { display: block; }

.dt-panel--subpanel {
    overflow: visible;
}

.dt-menu-list {
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
}

.dt-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.625rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #32363a;
    gap: 0.5rem;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.dt-menu-item:hover { background: #f5f6f7; }

.dt-menu-item--range { color: #0070f2; }

.dt-menu-item__end {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.dt-menu-item__chevron {
    color: #89919a;
    font-size: 1rem;
    flex-shrink: 0;
}

.dt-menu-item__icon {
    flex-shrink: 0;
    font-size: 1rem;
    color: #89919a;
}

.dt-menu-divider {
    height: 1px;
    background: #e8e8e8;
    margin: 0.25rem 0;
}

.dt-subpanel-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    border-bottom: 1px solid #e8e8e8;
    background: #fafafa;
}

.dt-back-btn {
    width: 2rem;
    height: 2rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 1.125rem;
    color: #32363a;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    flex-shrink: 0;
}

.dt-back-btn:hover { background: #e8e8e8; }

.dt-subpanel-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #32363a;
}

.dt-subpanel-body {
    padding: 0.5rem;
    overflow: visible;
}

.dt-subpanel-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.25rem;
    padding: 0.375rem 0.5rem 0.5rem;
    border-top: 1px solid #e8e8e8;
}

.dt-field-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6a6d70;
    margin-bottom: 0.125rem;
    display: block;
}

