/* Reports (the desk page #/desk/reports and its phone layout below 1024px): the range, what is in the Excel file,
   DOWNLOAD EXCEL. The markup is js/desk/reports.js. Loaded before look.css (the .seg control and .pghead are there). */

/* ---------------------------------------------------------------- the frame */
.drep { height: 100%; padding: 0 !important; }
.rep-scroll { position: relative; flex: 1; min-height: 0; overflow: auto; }
.rep-head { max-width: 1180px; margin: 0 auto; padding: 20px 28px 0; }
.rep.desk { max-width: 1180px; margin: 0 auto; padding: 0 28px 56px; }
.rep.phone { padding: 0 16px 28px; }
.pghead .dgo svg { flex: none; }
.pghead .dgo, .rep-go { gap: 10px; }

/* ---------------------------------------------------------------- sections */
.rep-sec { margin-top: 24px; min-width: 0; }
.rep.desk .rep-sec { padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.rep.phone .rep-sec + .rep-sec { padding-top: 18px; border-top: 2px solid var(--ink); }
.rep-h { margin: 0; font-size: 22px; font-weight: 800; line-height: 1.2; }
.rep-sub { margin: 8px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 820px; }

/* the range: six choices, then the two days for Custom */
.seg.rep-seg { display: flex; flex-wrap: wrap; margin-top: 14px; max-width: 820px; }
.seg.rep-seg > button { flex: 1 1 auto; min-height: 48px; font-size: 15px; }
.rep-days { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 14px; }
.rep-day { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rep-day .pin { height: 48px; font-size: 16px; min-width: 190px; }
.rep-range { margin: 14px 0 0; font-size: 16px; line-height: 1.4; }
.rep-range .muted { font-size: 15px; }
#rep-range.perr { margin-top: 14px; font-size: 15px; }
.rep-go { width: 100%; height: 52px; margin-top: 16px; font-size: 16px; }
.rep-msg { margin-top: 14px; }
p.rep-msg { font-size: 15px; font-weight: 700; color: var(--ink-2); }
.dp-box.ok.rep-msg { margin-top: 14px; align-items: flex-start; }
.dp-box.ok.rep-msg p { margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.dp-box.ok.rep-msg svg { flex: none; margin-top: 1px; }

/* the tabs in the file */
.rep-tabs { list-style: none; counter-reset: tab; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 980px; border-top: 1px solid var(--line2); }
.rep-tabs li { counter-increment: tab; display: grid; grid-template-columns: 34px 170px minmax(0, 1fr); align-items: baseline; gap: 4px 12px; padding: 11px 0; border-bottom: 1px solid var(--line2); }
.rep-tabs li::before { content: counter(tab); width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: #FFFFFF; font-size: 13px; font-weight: 800; border-radius: var(--rc); align-self: center; }
.rep-tabs b { font-size: 16px; font-weight: 800; }
.rep-tabs span { font-size: 15px; line-height: 1.4; color: var(--ink-2); }

@media (max-width: 1023px) {
  .seg.rep-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .seg.rep-seg > button { padding: 0 6px; white-space: normal; line-height: 1.15; }
  .seg.rep-seg > button:nth-child(4) { border-left: 0; }
  .seg.rep-seg > button:nth-child(n + 4) { border-top: 1px solid var(--field); }
  .rep-days { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
  .rep-day .pin { min-width: 0; width: 100%; }
  .rep-tabs li { grid-template-columns: 34px minmax(0, 1fr); }
  .rep-tabs li span { grid-column: 2; }
}
@media (max-width: 380px) {
  .rep-days { grid-template-columns: minmax(0, 1fr); }
}
