/* Compact date/time reports built from saved local orders. */
.date-reports{display:grid;gap:10px;min-width:0}
.date-reports .date-report-filter-panel,.date-reports .date-report-results{padding:13px 15px;border:1px solid var(--line);border-radius:11px;background:var(--accountant-surface,var(--surface,var(--paper)));min-width:0}
.date-reports h2{font-size:17px;line-height:1.4;margin:0;color:var(--ink)}
.date-reports h3{font-size: 1rem;line-height:1.4;margin:0 0 5px;color:var(--ink)}
.date-reports .date-report-intro{font-size: 1rem;line-height:1.6;margin:6px 0 0;color:var(--muted)}
.date-reports .date-report-intro strong{font-weight:500;color:var(--ink)}
.date-reports .date-report-coverage{font-size: 1rem;color:var(--theme-accent-strong,var(--ink));margin:4px 0 10px}
.date-reports .date-report-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;min-width:0}
.date-reports .date-report-fields>label{display:flex;flex-direction:column;gap:4px;min-width:0;font-size: 1rem;font-weight:600;color:var(--ink)}
.date-reports .date-report-fields>label>span{font-size: 1rem;font-weight:400;color:var(--muted);display:contents}
.date-reports input,.date-reports select{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:44px;font-size: 1rem;font-weight:400;color:var(--ink);background:var(--accountant-raised,var(--surface,var(--paper)));border:1px solid var(--line);border-radius:7px;padding:10px}
.date-reports input[type="datetime-local"]{inline-size:100%;min-inline-size:0;max-inline-size:100%;overflow:hidden}
.date-reports input[type="datetime-local"]::-webkit-date-and-time-value{min-width:0;text-align:left}
.date-reports input[aria-invalid="true"],.date-reports select[aria-invalid="true"]{border-color:var(--theme-accent-strong,var(--ink))}
.date-reports input:focus-visible,.date-reports select:focus-visible,.date-reports button:focus-visible,.date-reports summary:focus-visible{outline:2px solid var(--theme-focus,var(--ink));outline-offset:2px}
.date-reports .date-report-time-help{font-size: 1rem;line-height:1.5;margin:7px 0 0;color:var(--muted)}
.date-reports .date-report-form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;margin-top:10px}
.date-reports .date-report-form-actions button{min-height:44px;font-size: 1rem}
.date-reports .date-report-form-actions>span{font-size: 1rem;line-height:1.5;color:var(--muted)}
.date-reports .date-report-error{border-left:3px solid var(--theme-accent-strong,var(--ink));background:var(--theme-soft,var(--paper));font-size: 1rem;line-height:1.5;color:var(--ink);padding:8px 10px;margin:9px 0 0}
.date-reports .date-report-error[hidden]{display:none}
.date-reports .date-report-result-heading{min-width:0}
.date-reports .date-report-result-heading p{font-size: 1rem;line-height:1.6;color:var(--muted);margin:5px 0 0;overflow-wrap:anywhere}
.date-reports .date-report-coverage-warning{font-size: 1rem;line-height:1.6;padding:8px 10px;border:1px solid var(--theme-accent,var(--line));border-radius:7px;background:var(--theme-soft,var(--paper));color:var(--ink);margin:9px 0 0}
.date-reports .date-report-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0 12px;min-width:0}
.date-reports .date-report-metrics>div{padding:9px 11px;border:1px solid var(--line);border-radius:8px;background:var(--accountant-raised,var(--surface,var(--paper)));min-width:0}
.date-reports .date-report-metrics strong{display:block;font-size:25px;line-height:1.2;font-weight:600;letter-spacing:-.6px;color:var(--ink);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.date-reports .date-report-metrics>div:last-child strong{color:var(--theme-accent-strong,var(--ink))}
.date-reports .date-report-metrics span{display:block;font-size: 1rem;line-height:1.5;margin-top:4px;color:var(--muted)}
.date-reports .date-report-breakdowns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.date-reports .date-report-breakdowns>section{min-width:0;padding:8px 10px;border:1px solid var(--line);border-radius:8px;background:var(--accountant-surface,var(--surface,var(--paper)))}
.date-reports .date-report-breakdowns h3>span{font-weight:400;font-size: 1rem;color:var(--muted);margin-left:5px}
.date-reports ul{list-style:none;margin:0;padding:0}
.date-reports .date-report-breakdowns li,.date-reports .date-report-gateways li{display:flex;justify-content:space-between;align-items:flex-start;gap:9px;padding:6px 0;border-bottom:1px solid var(--line);font-size: 1rem;line-height:1.4;min-width:0}
.date-reports li>div{min-width:0;overflow-wrap:anywhere}
.date-reports li>strong{flex:none;font-size: 1rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
.date-reports li small{display:block;font-size: 1rem;font-weight:400;letter-spacing:0;line-height:1.5;color:var(--muted);margin-top:2px;overflow-wrap:anywhere}
.date-reports .date-report-breakdowns li:last-child,.date-reports .date-report-gateways li:last-child{border-bottom:0}
.date-reports .date-report-empty{font-size: 1rem;line-height:1.6;color:var(--muted);margin:5px 0 0}
.date-reports .date-report-gateways{margin-top:9px;min-width:0}
.date-reports .date-report-gateways>summary{min-height:44px;padding:12px 10px;border:1px solid var(--line);border-radius:8px;background:var(--accountant-raised,var(--surface,var(--paper)));font-size: 1rem;font-weight:600;line-height:18px;color:var(--ink);cursor:pointer;overflow-wrap:anywhere}
.date-reports .date-report-gateways>summary::marker{color:var(--theme-accent-strong,var(--ink))}
.date-reports .date-report-gateways>ul{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px;margin-top:2px}
.date-reports .date-report-gateways li{padding:6px 10px;border-left:1px solid transparent;border-right:1px solid transparent}
.date-reports .date-report-result-note{font-size: 1rem;line-height:1.6;margin:9px 0 0;color:var(--muted)}
@media(max-width:700px){
  .date-reports{gap:10px}
  .date-reports .date-report-filter-panel,.date-reports .date-report-results{padding:11px}
  .date-reports .date-report-fields{grid-template-columns:minmax(0,1fr);gap:9px}
  .date-reports .date-report-form-actions{align-items:stretch;flex-direction:column;gap:8px}
  .date-reports .date-report-form-actions button{width:100%}
  .date-reports .date-report-metrics{gap:8px;margin:10px 0 12px}
  .date-reports .date-report-metrics>div{padding:9px 10px}
  .date-reports .date-report-metrics strong{font-size:23px}
  .date-reports .date-report-breakdowns{grid-template-columns:minmax(0,1fr);gap:11px}
  .date-reports .date-report-gateways>ul{grid-template-columns:minmax(0,1fr)}
}

/* Align each label and value, then give its explanation a full-width line. */
.date-reports .date-report-metrics{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
.date-reports .date-report-metrics>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.6fr);align-items:baseline;column-gap:10px;row-gap:3px;padding:8px 10px}
.date-reports .date-report-metrics .date-report-metric-label{grid-column:1;grid-row:1;font-size: 1rem;font-weight:600;line-height:1.4;color:var(--ink);margin:0;max-width:none}
.date-reports .date-report-metrics strong{grid-column:2;grid-row:1;min-width:0;font-size:22px;line-height:1.2;text-align:right;letter-spacing:-.4px;overflow-wrap:anywhere}
.date-reports .date-report-metrics small{grid-column:1 / -1;grid-row:2;font-size: 1rem;font-weight:400;letter-spacing:0;line-height:1.4;color:var(--muted);margin:0}
.date-reports .date-report-coverage-ok{font-size: 1rem;line-height:1.5;margin:8px 0;color:var(--muted)}
@media(max-width:700px){
 .date-reports .date-report-metrics{grid-template-columns:minmax(0,1fr);gap:6px}
 .date-reports .date-report-metrics>div{padding:8px 10px}
 .date-reports .date-report-metrics strong{font-size:21px}
}

/* Currency audits and statement actions align inside the report card. */
.date-reports .date-report-preset{grid-column:1 / -1}
.date-reports .date-report-result-top{display:flex;align-items:flex-start;justify-content:space-between;flex-wrap:wrap;gap:10px}
.date-reports .date-report-result-top>.date-report-result-heading{flex:1 1 300px}
.date-reports .date-report-downloads{display:flex;flex-wrap:wrap;gap:7px;max-width:100%}
.date-reports .date-report-downloads button{min-height:44px;font-size:1rem;padding:9px 12px}
.date-reports .date-report-currencies{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,310px),1fr));gap:9px;margin:10px 0;min-width:0}
.date-reports .date-report-currencies>section{min-width:0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--accountant-raised,var(--surface,var(--paper)))}
.date-reports .date-report-currencies h3{font-size:1rem;font-weight:650;margin:0 0 7px}
.date-reports .date-report-currencies dl{margin:0;display:grid;gap:6px}
.date-reports .date-report-currencies dl>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);align-items:baseline;gap:9px}
.date-reports .date-report-currencies dt,.date-reports .date-report-currencies dd{font-size:1rem;line-height:1.4;margin:0;overflow-wrap:anywhere}
.date-reports .date-report-currencies dt{color:var(--muted)}
.date-reports .date-report-currencies dd{text-align:right;font-variant-numeric:tabular-nums;font-weight:600;color:var(--ink)}
.date-reports .date-report-currencies dl>div:last-child{border-top:1px solid var(--line);padding-top:7px;margin-top:2px}
.date-reports .date-report-currencies dl>div:last-child dd{color:var(--theme-accent-strong,var(--ink))}
.date-reports .date-report-currencies p{font-size:1rem;line-height:1.5;margin:8px 0 0;color:var(--muted)}
.date-reports .date-report-breakdowns li>strong,.date-reports .date-report-gateways li>strong{flex:0 1 48%;min-width:0;text-align:right;overflow-wrap:anywhere}
.date-reports .date-report-breakdowns li>div,.date-reports .date-report-gateways li>div{flex:1 1 52%}
.date-reports .date-report-breakdowns li>div>span,.date-reports .date-report-gateways li>div>span{font-weight:600}
.date-reports .date-report-metrics strong#date-report-total{font-size:1.1rem;line-height:1.4;letter-spacing:0}
.date-reports .date-report-gateways li .date-report-review{color:var(--theme-accent-strong,var(--ink))}
@media(max-width:700px){
 .date-reports .date-report-downloads{width:100%;display:grid;grid-template-columns:minmax(0,1fr)}
 .date-reports .date-report-downloads button{width:100%}
 .date-reports .date-report-currencies>section{padding:9px 10px}
 .date-reports .date-report-result-top>.date-report-result-heading{flex-basis:100%}
}
