/* REAL_APP – portál makléra: náhľad titulkov, umiestnenie loga, rozpis ceny.
   Iba štruktúra; farby z Bootstrap premenných (vzhľad dolaďuje app.css). */

/* Náhľad schémy titulkov – „záber" s jedným riadkom titulku */
.scheme-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3.5rem;
  padding: .75rem;
  border-radius: .5rem;
  background: var(--bs-gray-700);
}
.scheme-preview-text {
  display: inline-block;
  padding: .15rem .55rem;
  border-radius: .25rem;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.35;
}

/* Schematický náhľad umiestnenia loga – obdĺžnik 9:16 */
.logo-stage {
  position: relative;
  width: 9rem;
  aspect-ratio: 9 / 16;
  flex: 0 0 auto;
  border-radius: .5rem;
  overflow: hidden;
  background: var(--bs-gray-700);
}
.logo-stage-caption {
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 24%;
  height: 5%;
  border-radius: .2rem;
  background: var(--bs-light);
  opacity: .35;
}
.logo-stage-mark {
  position: absolute;
  aspect-ratio: 1 / 1;
  width: 28%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: .2rem;
  border: 1px dashed var(--bs-dark);
  background: var(--bs-light);
  color: var(--bs-dark);
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .04em;
}
.logo-stage-mark img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-stage-mark.has-image { border-style: solid; }
.logo-stage-mark.has-image .logo-stage-label { display: none; }

.logo-stage-mark[data-size="male"] { width: 18%; }
.logo-stage-mark[data-size="stredne"] { width: 28%; }
.logo-stage-mark[data-size="velke"] { width: 40%; }

.logo-stage-mark[data-pos="hore_vlavo"] { top: 5%; left: 6%; }
.logo-stage-mark[data-pos="hore_vpravo"] { top: 5%; right: 6%; }
.logo-stage-mark[data-pos="hore_stred"] { top: 5%; left: 50%; transform: translateX(-50%); }
.logo-stage-mark[data-pos="dole_vlavo"] { bottom: 5%; left: 6%; }
.logo-stage-mark[data-pos="dole_vpravo"] { bottom: 5%; right: 6%; }
.logo-stage-mark[data-pos="dole_stred"] { bottom: 5%; left: 50%; transform: translateX(-50%); }
.logo-stage-mark[data-pos="stred"] { top: 50%; left: 50%; transform: translate(-50%, -50%); }

.logo-thumb {
  max-width: 12rem;
  max-height: 5rem;
  object-fit: contain;
  padding: .25rem;
  border-radius: .375rem;
  background: var(--bs-tertiary-bg);
}

/* Formulár objednávky */
.voice-play { min-width: 2.5rem; }
.addon-option + .addon-option { border-top: 1px solid var(--bs-border-color); }
.addon-price { white-space: nowrap; }
.price-table td, .price-table th { padding-left: 0; padding-right: 0; }
.price-table tfoot th { border-bottom: 0; font-size: 1.1rem; }
.color-pair input[type="color"] { max-width: 3.5rem; }

/* ===== v4 Agent K: kancelária, časová os, archív – mobil-first ===== */

/* Veľké ťuknuteľné tlačidlá (min. 44 px) */
.btn-touch { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; }
.dl-buttons { display: flex; flex-wrap: wrap; gap: .5rem; }
.dl-buttons .btn { flex: 1 1 auto; }
@media (min-width: 576px) { .dl-buttons .btn { flex: 0 0 auto; } }
.approve-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
@media (max-width: 575.98px) {
  .approve-form .btn, form .btn-touch[type="submit"] { width: 100%; }
}

/* Hlavička stránky: filter + akcie */
.head-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; width: 100%; }
.head-actions > * { flex: 1 1 auto; }
.makler-filter { display: flex; gap: .5rem; min-width: 12rem; }
.makler-filter .form-select { min-height: 2.75rem; }
@media (min-width: 576px) {
  .head-actions { width: auto; }
  .head-actions > * { flex: 0 0 auto; }
}

/* Časová os */
.timeline { position: relative; margin: 0; padding: 0; }
.timeline-item { position: relative; padding: 0 0 1rem 1.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: .3rem; top: .9rem; bottom: -.1rem;
  width: 2px; background: var(--bs-border-color);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  position: absolute; left: 0; top: .3rem; width: .75rem; height: .75rem; border-radius: 50%;
  background: var(--bs-secondary); box-shadow: 0 0 0 3px var(--bs-body-bg);
}
.timeline-success .timeline-dot { background: var(--bs-success); }
.timeline-info .timeline-dot { background: var(--bs-info); }
.timeline-warning .timeline-dot { background: var(--bs-warning); }
.timeline-danger .timeline-dot { background: var(--bs-danger); }
.timeline-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 .5rem; }
.timeline-label { font-weight: 600; line-height: 1.3; }
.timeline-time { font-size: .8rem; color: var(--bs-secondary-color); white-space: nowrap; }
.timeline-who { font-size: .8rem; color: var(--bs-secondary-color); }
.timeline-text {
  margin-top: .25rem; padding: .4rem .6rem; font-size: .875rem; border-radius: .375rem;
  background: var(--bs-tertiary-bg);
}

/* Tabuľka → zoznam kariet na mobile */
@media (max-width: 575.98px) {
  .table-stack thead { display: none; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr {
    position: relative; padding: .75rem 1rem; border-bottom: 1px solid var(--bs-border-color);
  }
  .table-stack td { border: 0; padding: .15rem 0; text-align: left !important; }
  .table-stack td[data-label] { display: flex; justify-content: space-between; gap: 1rem; }
  .table-stack td[data-label]::before {
    content: attr(data-label); color: var(--bs-secondary-color); font-size: .85rem; flex: 0 0 auto;
  }
  .table-stack td.d-none { display: none !important; }
  .table-stack .stack-title { font-size: 1.05rem; padding-bottom: .35rem; }
  .table-stack .stack-actions { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .5rem; }
  .table-stack .stack-actions > *, .table-stack .stack-actions .btn { flex: 1 1 auto; }
  .table-stack .stack-actions form { display: flex !important; }
  .table-stack .stack-actions form .btn { width: 100%; }
}
/* celý riadok zákazky je ťuknuteľný */
.table-stack tr { position: relative; }
.stretched-row-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Výber režimu značky */
.choice-cards { display: grid; gap: .75rem; }
@media (min-width: 768px) { .choice-cards { grid-template-columns: 1fr 1fr; } }
.choice-card {
  display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; cursor: pointer;
  border: 1px solid var(--bs-border-color); border-radius: .5rem;
}
.choice-card:has(input:checked) { border-color: var(--bs-dark); box-shadow: 0 0 0 1px var(--bs-dark); }
.choice-card .form-check-input { margin-top: .2rem; flex: 0 0 auto; width: 1.25rem; height: 1.25rem; }
.choice-card-title { display: block; font-weight: 600; }
.choice-card-text { display: block; font-size: .875rem; color: var(--bs-secondary-color); }
.color-dot {
  display: inline-block; width: 1rem; height: 1rem; vertical-align: -.15rem; border-radius: 50%;
  border: 1px solid var(--bs-border-color);
}

/* Archív */
.archive-tabs { gap: .5rem; flex-wrap: nowrap; }
.archive-tabs .nav-item { flex: 1 1 0; }
.archive-tabs .nav-link {
  min-height: 2.75rem; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--bs-border-color);
}
@media (min-width: 576px) { .archive-tabs .nav-item { flex: 0 0 auto; } .archive-tabs .nav-link { padding: .5rem 1.5rem; } }
.archive-list { display: grid; gap: .75rem; }
.archive-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; }
.archive-text summary { cursor: pointer; min-height: 2.25rem; display: flex; align-items: center; }

/* Admin zákazka: schéma strihu, AI dabing pri vlastnom hlase */
.strih-schema { margin-top: .5rem; line-height: 1.4; }
.vlastny-ai-dabing summary { cursor: pointer; }

/* ---------- v5: platby, natáčanie, typy zákaziek (Agent P) ---------- */
.platby-list { display: grid; gap: .75rem; }
.platba-card.platba-caka { border-left: 4px solid var(--bs-warning); }
.platba-uhrada { display: grid; grid-template-columns: auto 1fr; gap: .15rem .75rem; }
.platba-uhrada dt { font-weight: 500; color: var(--bs-secondary-color); }
.platba-uhrada dd { margin: 0; word-break: break-all; }
.kredit-rozpis li { padding: .1rem 0; }
.natacanie-card { border-left: 4px solid var(--bs-info); }
.typ-grid { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 576px) { .typ-grid { grid-template-columns: 1fr 1fr; } }
.typ-card { position: relative; display: block; cursor: pointer; margin: 0; }
.typ-card input { position: absolute; opacity: 0; pointer-events: none; }
.typ-card .typ-body { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .85rem 1rem;
  border: 1px solid var(--bs-border-color); border-radius: .75rem; background: var(--bs-body-bg); min-height: 44px; }
.typ-card input:checked + .typ-body { border-color: var(--bs-emphasis-color); box-shadow: 0 0 0 2px var(--bs-emphasis-color); }
.typ-card input:focus-visible + .typ-body { outline: 2px solid var(--bs-primary); outline-offset: 2px; }
.typ-nazov { font-weight: 600; }
.typ-cena { font-weight: 700; }
.typ-popis { font-size: .85rem; color: var(--bs-secondary-color); }
