/* ══════════════════════════════════════════════════════════════
   Odstúpenie od zmluvy a reklamácie – front (wizard + zoznamy)
   Farby cez CSS premenné (nastaviteľné v administrácii).
   @author Michael Vodila IT Riešenia
   ══════════════════════════════════════════════════════════════ */
.or-app, .or-wrap {
  --or-primary: #2563eb; --or-bglight: #eff6ff; --or-mid: #bfdbfe; --or-dark: #1d4ed8;
  --or-surface: #ffffff; --or-surfacealt: #f8fafc; --or-border: #e2e8f0;
  --or-text: #1e293b; --or-muted: #64748b; --or-pagebg: #f1f5f9;
}
.or-app { color: var(--or-text); }
/* Zruší rámik/kartu témy (.page-content.card.card-block) okolo modulu – žiadny dvojitý rámik. */
.or-plainwrap { border: 0 !important; box-shadow: none !important; background: transparent !important; }
.or-app.or-mainborder { border: 1px solid var(--or-border); border-radius: var(--or-mainradius, 18px); padding: clamp(16px, 3vw, 28px); background: var(--or-surfacealt); }
.or-app *, .or-wrap * { box-sizing: border-box; }
.or-muted { color: var(--or-muted); }
.req { color: #dc2626; }

/* ── Progres ── */
.or-progress { list-style: none; display: flex; padding: 18px 10px; margin: 0 0 20px; background: var(--or-surface); border: 1px solid var(--or-border); border-radius: var(--or-radius, 16px); }
.or-progress li { flex: 1 1 0; position: relative; text-align: center; color: var(--or-muted); font-size: 13px; }
.or-progress li:before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px; background: var(--or-border); z-index: 0; }
.or-progress li:first-child:before { display: none; }
.or-progress .dot { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--or-surface); border: 2px solid var(--or-border); color: var(--or-muted); font-weight: 700; margin-bottom: 8px; }
.or-progress .lbl { display: block; padding: 0 6px; }
.or-progress li.done { color: var(--or-text); }
.or-progress li.done .dot { background: var(--or-primary); border-color: var(--or-primary); color: #fff; }
.or-progress li.done:before { background: var(--or-primary); }
.or-progress li.current .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--or-primary) 20%, transparent); }
.or-progress li.current .lbl { color: var(--or-primary); font-weight: 700; }

/* ── Layout ── */
.or-layout { display: flex; gap: 22px; align-items: flex-start; }
.or-side { flex: 0 0 260px; background: var(--or-surface); border: 1px solid var(--or-border); border-radius: var(--or-radius, 16px); padding: 20px; }
.or-main { flex: 1 1 auto; min-width: 0; }
/* Umiestnenie bočného panela */
.or-lay-right { flex-direction: row-reverse; }
.or-lay-top { flex-direction: column; align-items: stretch; }
.or-lay-bottom { flex-direction: column-reverse; align-items: stretch; }
.or-lay-top .or-side, .or-lay-bottom .or-side { flex: 0 0 auto; width: 100%; }

/* ── Sidebar ── */
.or-side h3 { margin: 0 0 8px; font-size: 17px; color: var(--or-text); }
.or-side-lead { color: var(--or-muted); font-size: 13.5px; margin: 0 0 16px; }
.or-side-type { background: var(--or-bglight); border: 1px solid var(--or-mid); border-radius: var(--or-radius-sm, 10px); padding: 10px 12px; margin-bottom: 16px; }
.or-side-type span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--or-primary); margin-bottom: 2px; }
.or-side-type strong { color: var(--or-text); }
.or-side-feats { list-style: none; padding: 0; margin: 0 0 16px; }
.or-side-feats li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--or-surfacealt); }
.or-side-feats li:last-child { border-bottom: 0; }
.or-side-feats i { color: var(--or-primary); font-size: 20px; }
.or-side-feat-img { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; border-radius: 4px; }
.or-side-feats span { display: flex; flex-direction: column; font-size: 12.5px; color: var(--or-muted); }
.or-side-feats strong { color: var(--or-text); font-size: 13.5px; }
.or-side-help { background: var(--or-surfacealt); border-radius: var(--or-radius-sm, 10px); padding: 12px 14px; }
.or-side-help > strong { display: block; margin-bottom: 6px; }
.or-side-help a { display: flex; align-items: center; gap: 6px; color: var(--or-primary); text-decoration: none; padding: 3px 0; font-size: 13.5px; }
.or-side-help i { font-size: 17px; }

/* ── Panely ── */
.or-panel { background: var(--or-surface); border: 1px solid var(--or-border); border-radius: var(--or-radius, 16px); padding: 22px 24px; margin-bottom: 18px; }
.or-panel h2 { margin: 0 0 4px; font-size: 21px; color: var(--or-text); }
.or-panel h3 { margin: 0; font-size: 17px; }
.or-step-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--or-primary); font-weight: 700; margin-bottom: 4px; }
.or-panel-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.or-order-tag { text-align: right; }
.or-order-tag span { display: block; font-size: 11px; text-transform: uppercase; color: var(--or-muted); }
.or-order-tag strong { font-size: 16px; }
.or-order-tag em { display: block; font-style: normal; color: var(--or-muted); font-size: 12.5px; }

/* ── Mriežka typov ── */
.or-typegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.or-typecard { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 14px 30px; border: 1px solid var(--or-border); border-radius: var(--or-radius-sm, 10px); background: var(--or-surface); text-decoration: none; color: var(--or-text); transition: border-color .15s, box-shadow .15s, transform .1s; }
.or-typecard:hover { border-color: var(--or-primary); box-shadow: 0 6px 20px rgba(0,0,0,.07); transform: translateY(-2px); text-decoration: none; }
.or-typecard.active { border-color: var(--or-primary); background: var(--or-bglight); }
.or-typecard i { font-size: 30px; color: var(--or-primary); }
.or-tc-body { display: flex; flex-direction: column; gap: 4px; }
.or-tc-label { font-weight: 600; }
.or-tc-desc { font-size: 12px; color: var(--or-muted); }
.or-tc-arrow { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); color: var(--or-primary); font-size: 20px; line-height: 1; }

/* ── Typy ako zoznam (pod sebou) ── */
.or-typelist { display: flex; flex-direction: column; gap: 10px; }
.or-typelist .or-typecard { flex-direction: row; align-items: center; text-align: left; gap: 14px; padding: 14px 16px; }
.or-typelist .or-typecard:hover { transform: none; }
.or-typelist .or-typecard i { font-size: 26px; flex: 0 0 auto; }
.or-typelist .or-tc-body { flex: 1 1 auto; min-width: 0; }
.or-typelist .or-tc-arrow { position: static; transform: none; }

/* ── Evidované požiadavky ── */
.or-ev-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.or-ev-count { color: var(--or-primary); font-size: 13px; }
.or-ev-list { display: flex; flex-direction: column; gap: 8px; }
.or-ev-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--or-border); border-radius: var(--or-radius-sm, 10px); text-decoration: none; color: var(--or-text); transition: border-color .15s, box-shadow .15s; }
.or-ev-row:hover { border-color: var(--or-mid); box-shadow: 0 2px 10px rgba(0,0,0,.05); text-decoration: none; }
.or-ev-ref { font-weight: 600; }
.or-ev-date, .or-ev-type { color: var(--or-muted); font-size: 13px; }
.or-ev-type { flex: 1 1 auto; }
.or-ev-arrow { color: var(--or-mid); font-size: 20px; }

/* ── Náhľad objednávky (krok 2) ── */
.or-preview-head { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; padding-bottom: 16px; border-bottom: 1px solid var(--or-border); }
.or-pv-cell span { display: block; font-size: 11px; text-transform: uppercase; color: var(--or-muted); }
.or-pv-cell strong { font-size: 15px; }
.or-pv-action { margin-left: auto; }
.or-preview-products { padding-top: 14px; }
.or-preview-products h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--or-muted); margin: 0 0 10px; }
.or-pp-row { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.or-pp-row img, .or-pp-noimg { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--or-surfacealt); display: inline-flex; align-items: center; justify-content: center; }
.or-pp-name { flex: 1 1 auto; }
.or-pp-qty { color: var(--or-muted); white-space: nowrap; }

/* ── Sekcie s bočným štítkom (krok 3) ── */
.or-sec { display: flex; gap: 0; border: 1px solid var(--or-border); border-radius: var(--or-radius-sm, 10px); overflow: hidden; margin: 16px 0; }
.or-sec-tag { flex: 0 0 52px; display: flex; align-items: center; justify-content: center; background: var(--or-bglight); color: var(--or-primary); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; writing-mode: vertical-rl; transform: rotate(180deg); text-align: center; padding: 16px 8px; border-right: 1px solid var(--or-mid); }
.or-sec-body { flex: 1 1 auto; padding: 18px 20px; min-width: 0; }

/* ── Formulárové prvky ── */
.or-row { display: flex; gap: 16px; flex-wrap: wrap; }
.or-row .or-field { flex: 1 1 220px; }
.or-field { margin-bottom: 12px; }
.or-field-wide { flex-basis: 100%; }
.or-field label, .or-app label { text-align: left; display: block; font-weight: 500; margin-bottom: 5px; color: var(--or-text); }
.or-field input[type="text"], .or-field input[type="email"], .or-field input[type="number"],
.or-field textarea, .or-field select { width: 100%; padding: 9px 11px; border: 1px solid var(--or-border); border-radius: 8px; background: var(--or-surface); color: var(--or-text); }
.or-field input:focus, .or-field textarea:focus, .or-field select:focus { outline: none; border-color: var(--or-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--or-primary) 15%, transparent); }
.or-note, .or-hint { color: var(--or-muted); font-size: 12.5px; }
.or-attach-err { display: block; margin-top: 4px; color: #d64545; font-size: 12.5px; font-weight: 600; }
.or-note { background: var(--or-bglight); border-radius: 8px; padding: 8px 12px; margin: 10px 0 0; }
.or-radio { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 400 !important; margin: 0 20px 6px 0; }
.or-radio input { width: auto; margin: 0; }
.or-hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.or-selectall { display: inline-flex; align-items: center; gap: 8px; background: var(--or-bglight); border: 1px solid var(--or-mid); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-weight: 600; }
.or-elig { background: var(--or-bglight); border: 1px solid var(--or-mid); border-radius: 8px; padding: 8px 12px; }
.or-expired { color: #dc2626; }
.or-ok { color: #16a34a; }
.or-gdpr { margin: 16px 0; font-size: 13px; }
.or-seller { font-size: 13px; color: var(--or-muted); padding: 10px 14px; background: var(--or-surfacealt); border-radius: 8px; }

/* ── Položky (výber produktov) ── */
.or-items .or-item { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border: 1px solid var(--or-border); border-radius: var(--or-radius-sm, 10px); padding: 10px 12px; margin-bottom: 8px; }
.or-item-sel { width: 18px; height: 18px; flex: 0 0 auto; margin: 0; }
.or-item-img { width: 48px; height: 48px; flex: 0 0 auto; object-fit: cover; border-radius: 8px; background: var(--or-surfacealt); border: 1px solid var(--or-border); }
.or-item-noimg { display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--or-mid); }
.or-item-info { flex: 1 1 180px; min-width: 0; }
.or-item-name { display: block; font-weight: 600; }
.or-item-ref { color: var(--or-muted); font-size: 12px; }
.or-item-price { color: var(--or-primary); font-weight: 600; white-space: nowrap; }
.or-qty { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; font-weight: 400 !important; }
.or-qty span { color: var(--or-muted); font-size: 13px; }
.or-qty input { width: 66px; padding: 5px 8px; }
.or-item-defect { flex: 1 1 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--or-border); border-radius: 8px; }

/* ── Akcie / tlačidlá ── */
.or-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.or-actions-center { justify-content: center; }
.or-app .btn { border-radius: 9px; }
.or-app .btn-primary { background: var(--or-primary); border-color: var(--or-primary); color: #fff; }
.or-app .btn-primary:hover, .or-app .btn-primary:focus { background: var(--or-dark); border-color: var(--or-dark); color: #fff; }
/* Odosielanie – zabráni dvojkliku (JS pridá .or-busy) */
.or-app .btn.or-busy { opacity: .6; cursor: progress; }
.or-app .btn-secondary { background: var(--or-surface); border: 1px solid var(--or-border); color: var(--or-text); }
.or-app .btn-secondary:hover { border-color: var(--or-mid); color: var(--or-text); }

/* ── Hotovo ── */
.or-done { text-align: center; padding: 40px 24px; }
.or-done-icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #e7f8ee; color: #16a34a; font-size: 34px; display: flex; align-items: center; justify-content: center; }

/* ── Stavové odznaky ── */
/* Farba odznaku prichádza inline z nastavenia stavu (podporuje aj vlastné stavy). */
.or-badge { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #eef1f6; color: #55617a; }

/* ══════════════ Detail žiadosti + odkazy v účte ══════════════ */
.or-wrap { max-width: 820px; margin: 0 auto; color: var(--or-text); }
.or-back { display: inline-block; margin-bottom: 14px; color: var(--or-primary); text-decoration: none; }
/* Fallback farby: hooky (pätička/účet) sú mimo .or-app, kde premenné neplatia. */
.or-acc-badge { display: block; margin-top: 6px; font-size: 12px; color: var(--or-primary, #2563eb); font-weight: 600; }
.or-stepper { list-style: none; display: flex; padding: 0; margin: 0 0 12px; counter-reset: st; }
.or-stepper li { flex: 1 1 0; position: relative; text-align: center; padding-top: 34px; color: var(--or-muted); font-size: 13px; }
.or-stepper li:before { counter-increment: st; content: counter(st); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--or-border); color: var(--or-muted); line-height: 26px; font-weight: 700; z-index: 1; }
.or-stepper li:after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: var(--or-border); z-index: 0; }
.or-stepper li:first-child:after { display: none; }
.or-stepper li.done { color: #1f9d55; }
.or-stepper li.done:before { background: #1f9d55; color: #fff; }
.or-stepper li.done:after { background: #1f9d55; }
.or-stepper li.current:before { box-shadow: 0 0 0 4px rgba(31,157,85,.15); }
.or-stepper li.bad { color: #d64545; }
.or-stepper li.bad:before { background: #d64545; color: #fff; }
.or-stepper li.bad:after { background: #d64545; }
.or-seller-msg { background: var(--or-bglight); border-left: 3px solid var(--or-primary); border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; }
.or-seller-msg.rejected { border-left-color: #d64545; background: #fdf3f3; }
.or-seller-msg h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--or-primary); }
.or-seller-msg.rejected h4 { color: #d64545; }
.or-seller-msg p { margin: 0; }
.or-detail-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 14px 16px; background: var(--or-surfacealt); border-radius: var(--or-radius-sm, 10px); margin-bottom: 18px; }
.or-detail-meta div span { display: block; font-size: 11.5px; color: var(--or-muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.or-detail-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 18px; }
.or-detail-actions .or-back { margin-bottom: 0; }
.or-pdf-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; padding: 9px 16px; border-radius: var(--or-radius-sm, 10px); background: var(--or-primary); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; transition: filter .15s; }
.or-pdf-btn:hover { filter: brightness(1.08); color: #fff; text-decoration: none; }
.or-pdf-btn .material-icons { font-size: 18px; }
.or-req-detail .or-sec { margin-bottom: 16px; }
.or-req-detail .or-sec-body .or-detail-meta { margin-bottom: 0; background: transparent; padding: 0; }
.or-req-detail .or-stepper { margin-bottom: 20px; }

/* Odkazy v pätičke / účte (mimo .or-app – vlastné hodnoty, nie premenné témy) */
.or-footer-links a { display: inline-block; margin-right: 14px; }
.or-account-link .link-item { display: block; padding: 14px; background: #fff; border: 1px solid #eee; border-radius: 6px; margin-bottom: 12px; transition: border-color .15s, box-shadow .15s; }
.or-account-link .link-item:hover { border-color: #d8dde6; box-shadow: 0 2px 10px rgba(15,23,42,.06); }
.or-order-actions { margin-top: 16px; display: flex; gap: 10px; flex-wrap: wrap; }

/* ── Responzívne ── */
@media (max-width: 767px) {
  .or-layout { flex-direction: column; }
  .or-side { flex-basis: auto; width: 100%; order: 2; }
  .or-main { order: 1; width: 100%; }
  .or-typegrid { grid-template-columns: repeat(2, 1fr); }
  .or-progress .lbl { font-size: 11px; }
}
@media (max-width: 480px) {
  .or-typegrid { grid-template-columns: 1fr; }
  .or-progress .lbl { display: none; }
  .or-actions { flex-direction: column-reverse; }
  .or-actions .btn { width: 100%; }
}

/* ── Bez rámika (jemný tieň namiesto ohraničenia) ── */
.or-noborder.or-app .or-panel, .or-noborder .or-side, .or-noborder .or-progress,
.or-noborder .or-panel { border-color: transparent; box-shadow: 0 6px 22px rgba(15,23,42,.06); }
.or-noborder .or-typecard, .or-noborder .or-item, .or-noborder .or-ev-row,
.or-noborder .or-req-row, .or-noborder .or-sum-card { border-color: transparent; background: var(--or-surfacealt); }
.or-noborder .or-typecard.active { background: var(--or-bglight); }

/* Úvodný text (krok 3) */
.or-intro { background: var(--or-bglight); border: 1px solid var(--or-mid); border-radius: var(--or-radius-sm, 10px); padding: 12px 16px; margin-bottom: 16px; color: var(--or-text); }
.or-intro :last-child { margin-bottom: 0; }

/* Pätička v celoobrazovkovom režime */
.or-fs-footer { margin-top: 22px; padding: 18px 14px; text-align: center; color: var(--or-muted); font-size: 13px; border-top: 1px solid var(--or-border); }
.or-fs-footer a { color: var(--or-primary); }
