/* Advanced filters styling (migrated from report.html) */
.filters-section { max-width: 900px; margin: 2rem auto 2.5rem; padding: 0 1rem; }
.filters-heading { color: var(--blue); font-size: 2rem; font-weight: 700; margin-bottom: 1.25rem; text-align: center; }
.filters-row { display: flex; gap: 0.75rem; align-items: stretch; justify-content: center; flex-wrap: nowrap; }
.filter-control { position: relative; min-width: 140px; max-width: 220px; flex: 0 1 160px; box-sizing: border-box; }
.filter-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 0.75rem; border: 2px solid var(--blue); border-radius: 6px; background: var(--grey-bg); color: var(--blue); font-weight: 600; cursor: pointer; user-select: none; box-sizing: border-box; }
.filter-toggle .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.caret { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 6px solid var(--blue); }
.dropdown-panel { position: absolute; z-index: 1000; top: calc(100% + 6px); left: 0; right: 0; background: var(--grey-bg); border: 2px solid var(--blue); border-radius: 6px; padding: 0.5rem; box-shadow: 0 8px 16px rgba(0,0,0,0.1); max-height: 260px; overflow: auto; display: none; }
.dropdown-panel.open { display: block; }
/* When elevated to the viewport (fixed) to escape clipping, keep same chrome and ensure scroll */
.dropdown-panel.tz-floating { position: fixed !important; right: auto !important; max-height: min(70vh, 480px); overflow-y: auto; }
.option-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.375rem 0.25rem; border-radius: 4px; }
.option-item:hover { background: rgba(8, 29, 89, 0.06); }
.option-item input[type="checkbox"] { appearance: none; width: 18px; height: 18px; border: 2px solid var(--blue); background: var(--grey-bg); cursor: pointer; position: relative; }
.option-item input[type="checkbox"]:checked::before { content: '\2713'; position: absolute; font-size: 14px; color: var(--blue); top: 50%; left: 50%; transform: translate(-50%, -58%); }
.option-item.disabled { opacity: 0.45; cursor: not-allowed; }
.option-item.disabled input[type="checkbox"] { border-color: #bdbdbd; background: #ececf2; }
.option-item.disabled:hover { background: transparent; }
.date-panel { position: absolute; z-index: 1000; top: calc(100% + 6px); left: 0; right: 0; background: var(--grey-bg); border: 2px solid var(--blue); border-radius: 6px; padding: 0.5rem 0.5rem 0.75rem; box-shadow: 0 8px 16px rgba(0,0,0,0.1); display: none; }
.date-panel.open { display: block; }
.calendar-header { display: flex; align-items: center; justify-content: space-between; color: var(--blue); font-weight: 700; margin-bottom: 0.25rem; min-height: 34px; }
.month-title { text-align: center; flex: 1; display: flex; align-items: center; justify-content: center; }
.cal-nav-btn { background: transparent; border: none; color: var(--blue); font-size: 1.25rem; width: 34px; height: 34px; line-height: 1; text-align: center; border-radius: 4px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cal-nav-btn:hover { background: rgba(8, 29, 89, 0.06); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 0.25rem; }
.dow, .day { text-align: center; padding: 0.35rem 0; border-radius: 4px; user-select: none; }
.dow { color: var(--blue); font-weight: 700; font-size: 0.85rem; }
.day { cursor: pointer; border: 1px solid transparent; }
.day:hover { background: rgba(8, 29, 89, 0.06); }
.day.disabled { opacity: 0.35; cursor: not-allowed; }
.day.selected { background: rgba(8, 29, 89, 0.12); border-color: var(--blue); }
.day.in-range { background: rgba(8, 29, 89, 0.09); }
.reset-row { display: flex; justify-content: center; margin-top: 1rem; }
.btn-reset { border-color: var(--blue); background-color: var(--blue); color: var(--grey-bg); padding: 0.5rem 1.5rem; border-radius: 4px; border: 2px solid var(--blue); font-weight: 600; cursor: pointer; }
.btn-reset:hover { background-color: #0a1f5e; }
@media (max-width: 768px) { .filters-row { flex-direction: column; align-items: stretch; } .filter-control { max-width: 100%; flex-basis: auto; } }
@media (min-width: 769px) { .filters-row { display: grid; grid-template-columns: 2fr repeat(4, 1fr); column-gap: 1rem; align-items: stretch; justify-content: stretch; padding: 0 0.25rem; } .filter-control { min-width: 0; max-width: 100%; flex: initial; } .filter-toggle { padding: 0.45rem 0.6rem; font-size: 0.95rem; } #datePanel.date-panel { width: 420px; max-width: 90vw; left: 0; right: auto; } }
