/* Report creation: one shared, task-based layout for downloads and scheduled mail. */
#reports-view.management-page :is(#report-form,#report-schedule-form).report-composer{display:block;padding:24px;max-width:none}
#reports-view.management-page #report-schedule-form.report-composer{padding:24px 0 0}
#reports-view .report-compose-section{display:grid;grid-template-columns:minmax(180px, .8fr) minmax(0,2fr);gap:32px;padding:28px 0;border-bottom:1px solid #dce5ec;margin:0}
#reports-view .report-compose-section:first-of-type{padding-top:8px}
#reports-view .report-compose-heading h3{font-size:16px;line-height:1.5;font-weight:600;color:#142b40;margin:0 0 6px}
#reports-view .report-compose-heading p{font-size:13px;line-height:1.65;color:#536579;margin:0;max-width:30ch}
#reports-view .report-compose-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;min-width:0;align-content:start}
#reports-view .report-compose-fields>label{margin:0;align-content:start;gap:8px;font-size:13px}
#reports-view .report-compose-fields :is(input:not([type=checkbox]),select){min-height:44px}
#reports-view .report-compose-fields :is(.form-wide,.report-recipients){grid-column:1/-1}
#reports-view .report-compose-fields .report-period-choice{padding:0;border:0;margin:0;gap:14px}
#reports-view .report-compose-fields :is(#report-vehicle-field,#report-driver-field,#report-car-scope,#schedule-driver-field,#schedule-car-scope){grid-column:1/-1}
#reports-view .report-compose-fields .report-format-help{font-size:13px;line-height:1.6;color:#536579;margin:0;align-self:end;padding-bottom:10px}
#reports-view .report-compose-options,#reports-view .report-reuse{border:0;border-bottom:1px solid #dce5ec;margin:0;padding:0;background:none;border-radius:0}
#reports-view .report-reuse{margin-bottom:20px}
#reports-view.management-page .report-composer :is(.report-compose-options,.report-reuse)>summary{padding:14px 0;min-height:48px;font-size:14px;font-weight:500;cursor:pointer;color:#145fc0}
#reports-view .report-compose-options>summary span{color:#536579;font-size:12px;margin-left:8px}
#reports-view .report-compose-options>.report-compose-fields{padding:4px 0 24px}
#reports-view .report-reuse .report-saved{background:none;padding:4px 0 20px;border:0;border-radius:0}
#reports-view .report-compose-fields .report-recipients{border:0;margin:0;padding:0}
#reports-view .report-compose-fields .report-recipients>label{margin-top:0}
#reports-view .report-compose-fields .recipient-add{margin-top:16px}
#reports-view .report-compose-finish{padding-top:24px}
#reports-view .report-schedule-summary{font-size:14px;font-weight:500;line-height:1.75;color:#142b40;margin:0 0 16px;max-width:80ch}
#reports-view .report-compose-note{font-size:12px;line-height:1.7;color:#536579;margin:12px 0 20px;max-width:90ch}
#reports-view.management-page .report-composer .form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin:0;padding:0}
#reports-view.management-page .report-composer .report-submit{margin:0;padding:24px 0 0;border:0}
#reports-view .report-composer :is(input,select,button,summary):focus-visible{outline:2px solid #1263d4;outline-offset:3px}
#reports-view .report-composer .report-compose-fields #schedule-vehicle-field{margin:0;padding:0}
#reports-view .report-composer .report-compose-fields .vehicle-multiselect{max-width:none}
@media(max-width:850px){#reports-view .report-compose-section{grid-template-columns:1fr;gap:18px;padding:24px 0}#reports-view .report-compose-heading p{max-width:none}}
@media(max-width:540px){#reports-view.management-page #report-form.report-composer{padding:18px}#reports-view .report-compose-fields{grid-template-columns:1fr;gap:16px}#reports-view .report-compose-fields :is(input:not([type=checkbox]),select){font-size:16px}#reports-view .report-compose-fields .report-format-help{padding:0;margin-top:-8px}#reports-view .report-compose-finish .form-actions>button[type=submit]{flex:1}#reports-view .report-compose-section{gap:16px}}

/* Report workspace: staged editing beside a live configuration summary. */
#reports-view.management-page{max-width:1440px}
#reports-view .report-workspace-nav{display:flex;gap:24px;margin:0 0 24px;border-bottom:1px solid #cdd8e3}
#reports-view .report-workspace-nav button{background:none;border:0;border-bottom:3px solid transparent;border-radius:0;color:#536579;padding:14px 2px;font-size:14px;min-height:48px}
#reports-view .report-workspace-nav button[aria-current]{border-bottom-color:#1263d4;color:#142b40;font-weight:600}
#reports-view .report-builder-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;align-items:start}
#reports-view .report-builder-grid>.report-choice-summary{margin:0;padding:28px 24px;background:#f5f7fa;align-self:stretch;border-left:1px solid #dce5ec;min-width:0}
#reports-view .report-choice-summary h3{font-size:17px;font-weight:600;margin:0 0 22px;color:#142b40}
#reports-view .report-choice-summary dl{margin:0;display:grid;gap:18px}
#reports-view .report-choice-summary dt{font-size:12px;color:#536579;margin-bottom:5px}
#reports-view .report-choice-summary dd{font-size:14px;color:#142b40;margin:0;line-height:1.6;overflow-wrap:anywhere}
#reports-view .report-summary-note{font-size:12px;line-height:1.7;color:#536579;margin:28px 0 0;border-top:1px solid #dce5ec;padding-top:18px}
#reports-view .report-builder-steps{display:flex;list-style:none;padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid #dce5ec;gap:8px}
#reports-view .report-builder-steps li{flex:1;min-width:0}
#reports-view .report-builder-steps button{display:flex;align-items:center;gap:9px;width:100%;min-height:44px;border:0;border-radius:6px;background:transparent;color:#536579;padding:8px;text-align:left;font-size:13px}
#reports-view .report-builder-steps button span{display:grid;place-items:center;width:26px;height:26px;background:#edf1f5;border-radius:50%;flex:none;font-variant-numeric:tabular-nums}
#reports-view .report-builder-steps button strong{font-weight:500}
#reports-view .report-builder-steps button[aria-current]{color:#1263d4;background:#eef4fc}
#reports-view .report-builder-steps button[aria-current] span{background:#1263d4;color:white}
#reports-view .report-builder-grid .report-compose-section{display:block;padding:0 0 24px;border-bottom:0;min-height:260px}
#reports-view .report-builder-grid .report-compose-heading{margin:0 0 24px}
#reports-view .report-builder-grid .report-compose-heading h3{font-size:22px;line-height:1.35;margin-bottom:8px}
#reports-view .report-builder-grid .report-compose-heading p{max-width:none}
#reports-view .report-builder-grid .report-compose-fields{gap:20px}
#reports-view .report-builder-grid .report-compose-fields>label:has(>select[name=audience]){grid-column:1/-1}
#reports-view .report-builder-grid .report-compose-options{margin-top:8px}
#reports-view .report-builder-controls{display:flex;justify-content:flex-end;gap:12px;padding-top:22px;border-top:1px solid #dce5ec}
#reports-view .report-builder-error{font-size:13px;color:#a32925;margin:0 0 16px}#reports-view .report-builder-error:empty{display:none}
#reports-view .report-quick-periods{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px}
#reports-view .report-quick-periods button{border:1px solid #b3bfcd;color:#29465f;background:white;border-radius:8px;padding:8px 12px;font-size:13px}
#reports-view .report-quick-periods button:hover{background:#eef4fc;border-color:#1263d4}
#reports-view.management-page #report-schedule-form.report-composer{padding:24px}
#reports-view.management-page .report-mail-content:has(.report-builder-grid){padding-bottom:24px}
#reports-view .report-choice-summary ::selection,#reports-view .report-composer ::selection{background:#dceaff;color:#142b40}
@media(max-width:1100px){#reports-view .report-builder-grid{grid-template-columns:minmax(0,1fr) 250px}#reports-view .report-builder-grid>.report-choice-summary{padding:24px 18px}}
@media(max-width:800px){#reports-view .report-builder-grid{grid-template-columns:1fr}#reports-view .report-builder-grid>.report-choice-summary{border-left:0;border-top:1px solid #dce5ec}#reports-view .report-choice-summary dl{grid-template-columns:repeat(2,minmax(0,1fr))}#reports-view .report-builder-grid .report-compose-section{min-height:0}#reports-view .report-builder-steps{gap:2px}#reports-view .report-builder-steps button{flex-direction:column;align-items:flex-start;font-size:12px;padding:8px 6px}#reports-view .report-builder-grid .report-compose-heading h3{font-size:20px}#reports-view .report-workspace-nav{gap:18px}#reports-view .report-workspace-nav button{font-size:13px}#reports-view.management-page #report-schedule-form.report-composer{padding:18px 0}#reports-view .report-builder-controls button{flex:1}}

@media(max-width:800px){#reports-view .report-composer>.report-choice-summary{padding:20px 16px;margin:12px 0 24px;background:#f5f7fa;border-top:1px solid #dce5ec;border-bottom:1px solid #dce5ec}#reports-view .report-composer>.report-choice-summary dl{grid-template-columns:1fr}#reports-view .report-builder-grid .report-compose-section{padding-bottom:18px}}
