.directory-reports { --dir-ink:#19394e; --dir-line:#cad9e0; --dir-accent:#18745e; color:var(--dir-ink); padding:4px 0 20px; }
.directory-reports *, .directory-reports *::before, .directory-reports *::after { box-sizing:border-box; letter-spacing:0; }
.dir-heading { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:10px 0 16px; border-bottom:2px solid #27687a; }
.dir-heading h2 { font-size:25px; line-height:1.25; margin:4px 0 0; }
.dir-eyebrow { color:#287283; font-size:10px; font-weight:800; }
.dir-year { font-size:12px; white-space:nowrap; }
.directory-reports button { width:auto; min-height:38px; margin:0; border:1px solid #b8cdd7; border-radius:4px; padding:8px 12px; font-size:13px; line-height:1.3; color:var(--dir-ink); background:#fff; cursor:pointer; font-weight:700; box-shadow:none; }
.directory-reports button:disabled { opacity:.45; cursor:default; }
.directory-reports :is(button,summary,input,select):focus-visible { outline:2px solid #16806a; outline-offset:2px; }
.directory-reports .btn-primary { background:var(--dir-accent); border-color:#17644f; color:#fff; }
.directory-reports input[type="checkbox"], .directory-reports input[type="radio"] { appearance:auto; width:16px; height:16px; min-width:16px; padding:0; margin:0; accent-color:var(--dir-accent); flex:none; }
.dir-workspace { display:grid; grid-template-columns:215px minmax(0,1fr); margin-top:18px; min-height:290px; }
.dir-drawers { padding-right:20px; border-right:1px solid var(--dir-line); }
.dir-drawer { margin:0 0 10px; border:0; padding:0; background:transparent; }
.dir-drawer > summary { display:flex; align-items:center; gap:8px; justify-content:space-between; list-style:none; padding:12px 8px; border-bottom:1px solid var(--dir-line); cursor:pointer; font-size:13px; font-weight:800; }
.dir-drawer > summary::-webkit-details-marker, .dir-picker > summary::-webkit-details-marker { display:none; }
.dir-drawer > summary small { margin-left:auto; color:#6a7d88; font-size:10px; }
.dir-drawer > summary::after, .dir-picker > summary::after { content:""; width:7px; height:7px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); flex:none; margin:0 3px 4px 0; }
.dir-drawer[open] > summary::after { transform:rotate(225deg); margin-bottom:0; }
.dir-drawer > div { padding:7px 0; }
.directory-reports .dir-report-option { display:flex; align-items:center; gap:9px; min-height:42px; margin:0; padding:9px 8px; cursor:pointer; border-left:3px solid transparent; font-size:12px; line-height:1.4; color:var(--dir-ink); }
.dir-report-option:has(input:checked) { background:#e4f0eb; border-left-color:#18745e; font-weight:800; }
.dir-config { padding:0 0 0 24px; min-width:0; }
.dir-config > header { display:flex; align-items:baseline; justify-content:space-between; gap:10px; padding:10px 0 14px; }
.dir-config h3 { font-size:17px; line-height:1.3; margin:0; }
.dir-config > header > span { color:#657c88; font-size:11px; white-space:nowrap; }
.directory-reports .dir-filters { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; margin:0; padding:0; align-items:start; }
.directory-reports .dir-field { min-width:0; display:flex; flex-direction:column; gap:5px; margin:0; padding:0; color:var(--dir-ink); font-size:12px; font-weight:700; }
.dir-field > span { display:flex; align-items:flex-end; min-height:28px; line-height:14px; }
.directory-reports .dir-field input:not([type="checkbox"]), .directory-reports .dir-field select, .directory-reports [data-program] { width:100%; height:40px; min-height:40px; margin:0; background:#fff; border:1px solid #b8cdd7; border-radius:4px; padding:8px 10px; color:var(--dir-ink); font-size:12px; line-height:1.3; font-weight:400; }
.dir-fields-guidance .dir-search, .dir-fields-teachers .dir-search { grid-column:span 2; }
.dir-fields-students .dir-search, .dir-fields-class_schedule .dir-search { grid-column:1/-1; }
.dir-picker { position:relative; margin:0; padding:0; border:0; background:transparent; }
.dir-picker > summary { display:flex; align-items:center; justify-content:space-between; gap:10px; list-style:none; cursor:pointer; border:1px solid #b8cdd7; background:#fff; border-radius:4px; height:40px; padding:8px 10px; font-size:12px; font-weight:400; }
.dir-picker [data-summary] { min-width:0; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.dir-picker[open] > summary { border-color:#287283; }
.dir-popover { position:absolute; z-index:25; top:calc(100% + 5px); left:0; width:100%; min-width:205px; border:1px solid #a7bec9; border-radius:5px; padding:8px; background:#fff; box-shadow:0 5px 14px #19394e24; }
.dir-field:nth-child(3n) .dir-popover { left:auto; right:0; }
.dir-pick-actions { display:flex; justify-content:space-between; gap:4px; margin-bottom:8px; }
.dir-pick-actions button { font-size:11px; min-height:32px; padding:5px 6px; }
.directory-reports [data-done] { width:100%; margin-top:8px; background:#edf5f1; border-color:#9ac7b7; min-height:32px; padding:6px; }
.dir-options { max-height:220px; overflow-y:auto; margin-top:5px; }
.directory-reports .dir-options label { display:flex; align-items:center; gap:8px; padding:8px 5px; margin:0; min-height:34px; font-weight:400; font-size:12px; overflow-wrap:anywhere; cursor:pointer; }
.dir-options label[hidden] { display:none; }
.dir-config-footer { display:flex; justify-content:space-between; align-items:center; gap:12px; padding-top:18px; margin-top:18px; border-top:1px solid var(--dir-line); }
.dir-config-footer > div { display:flex; gap:8px; }
.dir-scope { font-size:11px; color:#647985; }
.dir-message, .dir-preview-message { font-size:12px; color:#536d7c; }
.dir-message:not(:empty) { padding:12px 0 0; }
.dir-preview-message:not(:empty) { padding:10px 20px; background:#f3f7f8; }
.directory-reports .is-error { color:#ad2336; }
body:has(.dir-preview[open]) { overflow:hidden; }
.directory-reports .dir-preview { color:var(--dir-ink); position:fixed; inset:0; margin:auto; padding:0; border:1px solid #acbec7; border-radius:8px; width:min(1120px,calc(100vw - 48px)); height:min(820px,calc(100dvh - 48px)); max-width:none; max-height:none; background:#fff; box-shadow:0 18px 60px #16394b45; }
.dir-preview[open] { display:flex; flex-direction:column; }
.dir-preview:not([open]) { display:none; }
.dir-preview::backdrop { background:#18384a70; backdrop-filter:blur(3px); }
.dir-preview-heading { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:16px 20px; background:#f5f9fa; border-bottom:1px solid var(--dir-line); flex:none; }
.dir-preview-heading h3 { font-size:19px; line-height:1.3; margin:3px 0 0; }
.directory-reports .dir-preview [data-close] { width:44px; height:44px; min-width:44px; min-height:44px; padding:0; border-color:transparent; background:transparent; font-family:Arial,sans-serif; font-size:26px; font-weight:400; }
.dir-preview-content { display:flex; flex-direction:column; min-height:0; flex:1; overflow:auto; padding:0 20px; }
.dir-list-controls { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:12px 0; font-size:12px; flex:none; }
.directory-reports .dir-inline-check { display:flex; align-items:center; gap:8px; margin:0; font-size:12px; line-height:1.4; font-weight:400; color:var(--dir-ink); }
.dir-list-controls button { min-height:30px; font-size:11px; padding:5px 8px; }
.dir-list-controls .dir-inline-check:last-child:not(:first-child) { margin-left:auto; }
.dir-table-wrap { width:100%; min-height:0; flex:1; overflow:auto; border:1px solid var(--dir-line); background:#fff; }
.directory-reports .dir-table, .directory-reports .dir-timetable { border-collapse:separate; border-spacing:0; width:100%; margin:0; table-layout:fixed; font-size:12px; }
.dir-table th, .dir-timetable thead th { position:sticky; top:0; z-index:2; text-align:left; color:#fff; background:#194d65; font-size:12px; }
.dir-table th, .dir-table td { padding:9px 10px; border-bottom:1px solid #dce6eb; vertical-align:middle; white-space:normal; overflow-wrap:anywhere; line-height:1.4; }
.dir-table .dir-check { width:40px; }
.dir-table .dir-number { width:44px; font-variant-numeric:tabular-nums; }
.dir-table .dir-col-branch, .dir-table .dir-col-count, .dir-table .dir-col-number { width:80px; }
.dir-table .dir-col-guidance { width:90px; }
.dir-table tr:nth-child(even) { background:#f7fafb; }
.dir-table tr.is-selected { background:#e8f5ef; }
.directory-reports .dir-empty { text-align:center; padding:40px 15px; font-size:13px; color:#5c7381; }
.dir-pagination { display:flex; justify-content:space-between; align-items:center; padding:10px 0; font-size:12px; flex:none; }
.dir-pagination > div, .dir-program-nav { display:flex; align-items:center; gap:12px; }
.dir-pagination button, .dir-program-nav button { width:34px; min-height:32px; padding:4px; }
.dir-export-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:13px 20px; background:#f3f7f8; border-top:1px solid var(--dir-line); flex:none; }
.dir-export-bar > span { font-size:12px; font-weight:700; }
.dir-export-bar > div { display:flex; gap:8px; }
.dir-program-controls { display:flex; align-items:center; flex-wrap:wrap; gap:14px; padding:12px 0; flex:none; }
.dir-program-controls > label:first-child { display:flex; align-items:center; gap:8px; margin:0; flex:1; min-width:180px; font-size:12px; }
.dir-program-controls [data-program] { max-width:340px; }
.dir-program-nav { font-size:12px; }
.dir-program-controls .dir-inline-check { margin-left:auto; }
.dir-timetable { min-width:680px; }
.dir-timetable th, .dir-timetable td { border-right:1px solid #dce6eb; border-bottom:1px solid #dce6eb; padding:9px 8px; overflow-wrap:anywhere; line-height:1.4; vertical-align:top; }
.dir-timetable th:first-child { width:48px; position:sticky; left:0; }
.dir-timetable thead th:first-child { z-index:3; }
.dir-timetable tbody th { background:#edf4f7; color:#274c5e; z-index:1; text-align:center; }
.dir-timetable td > div + div { border-top:1px dashed #adc7ba; padding-top:7px; margin-top:7px; }
.dir-timetable td strong { display:block; font-size:12px; }
.dir-timetable td span { display:block; color:#617683; font-size:11px; margin-top:3px; }
.dir-timetable td:has(strong) { background:#f3f8f5; }
.dir-timetable .dir-free { text-align:center; color:#8295a0; }
.dir-day-tabs { display:none; }
@media(max-width:1000px) and (min-width:701px) {
  .dir-workspace { grid-template-columns:185px minmax(0,1fr); }
  .dir-drawers { padding-right:12px; }
  .dir-config { padding-left:16px; }
  .dir-config > header > span { display:none; }
}
@media(max-width:700px) {
  .dir-heading h2 { font-size:21px; }
  .dir-heading { gap:8px; padding-bottom:12px; }
  .dir-year { font-size:11px; }
  .dir-workspace { display:block; margin-top:12px; min-height:0; }
  .dir-drawers { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:0 0 10px; border:0; }
  .dir-drawer { position:relative; margin:0; }
  .dir-drawer > summary { padding:11px 8px; height:44px; border:1px solid var(--dir-line); border-radius:4px; background:#f6fafb; font-size:12px; gap:5px; }
  .dir-drawer > summary small { display:none; }
  .dir-drawer > div { position:absolute; z-index:30; left:0; top:49px; width:220px; padding:4px; border:1px solid #b8cdd7; border-radius:5px; background:#fff; box-shadow:0 5px 14px #19394e24; }
  .dir-drawer:last-child > div { left:auto; right:0; }
  .dir-config { padding:0; }
  .dir-config > header { padding:8px 0; }
  .dir-config > header > span { display:none; }
  .dir-config h3 { font-size:16px; }
  .directory-reports .dir-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px 10px; }
  .directory-reports .dir-field { font-size:11px; }
  .dir-field > span { min-height:24px; line-height:12px; }
  .directory-reports .dir-picker > summary { height:44px; }
  .directory-reports .dir-filters .dir-field input:not([type="checkbox"]), .directory-reports .dir-filters .dir-field select { height:44px; min-height:44px; margin:0; }
  .dir-fields-guidance .dir-search, .dir-fields-teachers .dir-search, .dir-fields-students .dir-search, .dir-fields-class_schedule .dir-search { grid-column:auto; }
  .dir-fields-guidance .dir-search, .dir-fields-teachers .dir-search { grid-column:1/-1; }
  .dir-field:nth-child(3n) .dir-popover { left:0; right:auto; }
  .dir-field:nth-child(even) .dir-popover { left:auto; right:0; }
  .dir-popover { width:max(100%,210px); max-width:calc(100vw - 48px); }
  .dir-config-footer { margin-top:14px; padding-top:12px; flex-wrap:wrap; }
  .dir-config-footer > div { margin-left:auto; }
  .dir-config-footer button { font-size:12px; padding:8px; }
  .directory-reports .dir-preview { width:calc(100vw - 16px); height:calc(100dvh - 20px); border-radius:7px; }
  .dir-preview-heading { padding:12px; gap:8px; }
  .dir-preview-heading h3 { font-size:16px; }
  .dir-preview-content { padding:0 10px; }
  .dir-preview-message:not(:empty) { padding:8px 10px; }
  .dir-list-controls { gap:8px; padding:10px 0; }
  .dir-list-controls .dir-inline-check:last-child:not(:first-child) { margin-left:0; }
  .directory-reports .dir-table { min-width:520px; }
  .directory-reports .dir-table[data-directory-kind="students"] { min-width:0; }
  .dir-table[data-directory-kind="students"] .dir-col-number { width:50px; }
  .dir-table[data-directory-kind="students"] .dir-col-branch { width:46px; }
  .dir-table[data-directory-kind="students"] .dir-number { display:none; }
  .dir-table th, .dir-table td { padding:8px 7px; }
  .dir-export-bar { display:block; padding:10px; }
  .dir-export-bar > span { display:block; margin-bottom:7px; font-size:11px; }
  .dir-export-bar > div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:6px; }
  .dir-export-bar button { padding:9px 3px; font-size:12px; min-height:40px; }
  .dir-program-controls { gap:9px; }
  .dir-program-controls > label:first-child { min-width:0; flex:1 1 calc(100% - 110px); }
  .dir-program-nav { gap:6px; }
  .dir-program-controls .dir-inline-check { margin-left:0; }
  .dir-day-tabs { display:flex; margin:0 0 8px; gap:4px; flex:none; }
  .directory-reports .dir-day-tabs button { flex:1; min-width:0; padding:7px 2px; min-height:38px; font-size:11px; }
  .dir-day-tabs button[aria-selected="true"] { background:#194d65; border-color:#194d65; color:#fff; }
  .dir-timetable { min-width:0; }
  .dir-timetable [data-day]:not(.is-current-day) { display:none; }
}
