/* ==========================================================================
   Esthetix Professional — Moje kvartální odběry (stránka v zákaznickém účtu)
   quarterly.css  |  Webotvůrci.cz
   --------------------------------------------------------------------------
   Podle návrhu klienta z 8. 11. 2026. Nadpisy H1/H2 a tabulka berou styl
   šablony (table-mobile-enriched → na mobilu karty); tady je jen souhrn
   s progress barem, přepínač roku, štítky stavu a řádek Celkem.
   FTP:  /upload/webotvurci/quarterly.css
   ========================================================================== */
#wt-quarterly { margin: 0 0 40px; }

#wt-quarterly .wtq-msg { margin: 0 0 24px; color: #555; }
#wt-quarterly .wtq-msg--empty,
#wt-quarterly .wtq-msg--error { padding: 22px 20px; border: 1px solid #ededed; background: #fafafa; text-align: center; }

/* Souhrn aktuálního kvartálu: 4 sloupce, šedá hlavička, pruh přes první tři sloupce */
#wt-quarterly .wtq-sum {
  display: grid;
  grid-template-columns: 29fr 26fr 16fr 29fr;
  grid-template-rows: auto auto;
  border: 1px solid #ededed;
  background: #fff;
}
/* Buňky mají pevný sloupec: pruh je umístěný napevno, takže by je jinak automatické umístění odsunulo vedle něj. */
#wt-quarterly .wtq-cell { grid-row: 1 / 3; min-width: 0; padding-bottom: 36px; border-left: 1px solid #ededed; }
#wt-quarterly .wtq-cell:nth-child(1) { grid-column: 1; border-left: 0; }
#wt-quarterly .wtq-cell:nth-child(2) { grid-column: 2; }
#wt-quarterly .wtq-cell:nth-child(3) { grid-column: 3; }
#wt-quarterly .wtq-cell:nth-child(4) { grid-column: 4; }
#wt-quarterly .wtq-lbl {
  padding: 12px 20px;
  border-bottom: 1px solid #ededed;
  background: #f5f5f5;
  color: #555;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#wt-quarterly .wtq-val { padding: 18px 20px 0; color: #000; font-size: 21px; font-weight: 700; line-height: 1.2; white-space: nowrap; }
#wt-quarterly .wtq-bar {
  grid-row: 2;
  grid-column: 1 / 4;
  align-self: end;
  position: relative;
  z-index: 1;
  height: 8px;
  margin: 0 0 20px 20px;
  border-radius: 4px;
  background: #e6e6e6;
  overflow: hidden;
}
#wt-quarterly .wtq-bar > span { display: block; height: 100%; border-radius: 4px; background: #111; }

/* Odběry po kvartálech: nadpis + přepínač roku (černá „pilulka“) */
#wt-quarterly .wtq-quarters-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin: 30px 0 17px; }
#wt-quarterly .wtq-quarters-head h2 { margin: 0; }
#wt-quarterly select.wtq-year {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: auto;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 4px 32px 4px 18px;
  border: 0;
  border-radius: 999px;
  background: #111 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 13px center;
  box-shadow: none;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}
#wt-quarterly select.wtq-year:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
#wt-quarterly select.wtq-year option { background: #fff; color: #000; }
#wt-quarterly .wtq-quarters.is-loading .wtq-quarters-body { opacity: .5; transition: opacity .15s; }

/* Tabulka (šablonová) — jen doplňky podle návrhu */
#wt-quarterly .wtq-table { margin: 0; }
#wt-quarterly .wtq-table thead th { background: #f5f5f5; color: #555; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
#wt-quarterly .wtq-table .cell--price { text-align: right; }
#wt-quarterly .wtq-table .wtq-c { text-align: center; }
#wt-quarterly .wtq-table .wtq-muted { color: #8a8a8a; }
#wt-quarterly .wtq-table tr.wtq-total td { background: #f5f5f5; }
#wt-quarterly .wtq-badge {
  display: inline-block;
  min-width: 104px;
  padding: 3px 12px;
  border: 1px solid #111;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}
#wt-quarterly .wtq-badge.is-open { background: #111; color: #fff; }
#wt-quarterly .wtq-badge.is-closed { border-color: #cfcfcf; background: #f5f5f5; color: #555; }

/* Mobil: souhrn 2 × 2, pruh pod ním; tabulka → karty dělá šablona */
@media (max-width: 767px) {
  #wt-quarterly .wtq-sum { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto auto; }
  #wt-quarterly .wtq-cell { padding-bottom: 14px; }
  #wt-quarterly .wtq-cell:nth-child(odd) { grid-column: 1; border-left: 0; }
  #wt-quarterly .wtq-cell:nth-child(even) { grid-column: 2; border-left: 1px solid #ededed; }
  #wt-quarterly .wtq-cell:nth-child(-n+2) { grid-row: 1; }
  #wt-quarterly .wtq-cell:nth-child(n+3) { grid-row: 2; border-top: 1px solid #ededed; }
  #wt-quarterly .wtq-lbl { padding: 10px 14px; }
  #wt-quarterly .wtq-val { padding: 12px 14px 0; font-size: 18px; }
  #wt-quarterly .wtq-bar { grid-row: 3; grid-column: 1 / -1; margin: 2px 14px 16px; }
  #wt-quarterly .wtq-table .wtq-c,
  #wt-quarterly .wtq-table .cell--price { text-align: left; }
  #wt-quarterly .wtq-table tr.wtq-total td:empty { display: none; }
}
