/* ==========================================================================
   EVC Job Status page  (evc-repairbuddy-extender)
   --------------------------------------------------------------------------
   Visual pattern = booking confirmation e-mail (same palette, same section
   pattern). Everything is scoped under `.evc-sp.evc-sp` (class doubled on
   purpose: beats theme + RepairBuddy CSS without !important. Do not "clean").
   The only !important rules are the chat open/close pair, because RB's
   jQuery .toggle() writes inline display and inline style must lose.
   Nothing here depends on text content or text length (7 languages).
   ========================================================================== */

.evc-sp.evc-sp {
  --evc-ink: #1c1c1c;
  --evc-text: #333333;
  --evc-muted: #6b6b6b;
  --evc-line: #e6e6e6;
  --evc-green: #0b6b2e;          /* buttons, section titles, links */
  --evc-green-line: #1f8f3a;     /* header underline, left rule */
  --evc-green-soft: #e8f3ec;     /* current step halo, customer bubble */
  --evc-tag-bg: #dde5ea;
  --evc-tag-ink: #4a5a66;
  --evc-page: #f4f1ef;
  --evc-box: #f5f2f0;
  --evc-radius: 4px;
  --evc-gap: 16px;

  box-sizing: border-box;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0;
  background: var(--evc-page);
  color: var(--evc-text);
  font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  -webkit-text-size-adjust: 100%;
}
.evc-sp.evc-sp *,
.evc-sp.evc-sp *::before,
.evc-sp.evc-sp *::after { box-sizing: border-box; }

/* Neutralise theme typography inside the component only */
.evc-sp.evc-sp h1,
.evc-sp.evc-sp h2,
.evc-sp.evc-sp h3,
.evc-sp.evc-sp p,
.evc-sp.evc-sp ul,
.evc-sp.evc-sp ol,
.evc-sp.evc-sp dl,
.evc-sp.evc-sp dd { margin: 0; padding: 0; }
.evc-sp.evc-sp ul,
.evc-sp.evc-sp ol { list-style: none; }
.evc-sp.evc-sp a { color: var(--evc-green); text-decoration: underline; text-underline-offset: 2px; }
.evc-sp.evc-sp a:hover { text-decoration-thickness: 2px; }
.evc-sp.evc-sp :focus-visible { outline: 2px solid var(--evc-green); outline-offset: 2px; }

.evc-sp.evc-sp .evc-sp-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Top bar (same as e-mail header) ---------- */
.evc-sp.evc-sp .evc-sp-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--evc-ink);
  border-bottom: 3px solid var(--evc-green-line);
  padding: 14px 20px;
  border-radius: var(--evc-radius) var(--evc-radius) 0 0;
}
.evc-sp.evc-sp .evc-sp-logo { display: block; height: 36px; width: auto; max-width: 120px; }
.evc-sp.evc-sp .evc-sp-city {
  color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}

/* ---------- Layout ---------- */
.evc-sp.evc-sp .evc-sp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--evc-gap);
  padding: var(--evc-gap) 12px;
}
.evc-sp.evc-sp .evc-sp-main,
.evc-sp.evc-sp .evc-sp-side { display: grid; gap: var(--evc-gap); align-content: start; min-width: 0; }

@media (min-width: 960px) {
  .evc-sp.evc-sp .evc-sp-grid {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
    padding: 20px;
    gap: 20px;
  }
  .evc-sp.evc-sp .evc-sp-main,
  .evc-sp.evc-sp .evc-sp-side { gap: 20px; }
}

/* ---------- Card + section pattern (from e-mail) ---------- */
.evc-sp.evc-sp .evc-sp-card {
  background: #fff;
  border: 1px solid #e3dfdb;
  border-radius: var(--evc-radius);
  padding: 20px;
  min-width: 0;
  container-type: inline-size;
}
@media (max-width: 400px) {
  .evc-sp.evc-sp .evc-sp-card { padding: 16px; }
}
.evc-sp.evc-sp .evc-sp-h {
  margin: 0 0 8px;
  font-size: 10px; line-height: 1.4; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--evc-green);
}
.evc-sp.evc-sp .evc-sp-lead { font-size: 13px; color: var(--evc-muted); margin: -2px 0 12px; }

/* key / value rows */
.evc-sp.evc-sp .evc-sp-kv { border-top: 1px solid var(--evc-line); }
.evc-sp.evc-sp .evc-sp-kv-row {
  display: grid;
  grid-template-columns: minmax(96px, 40%) minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--evc-line);
  font-size: 13px;
}
.evc-sp.evc-sp .evc-sp-kv dt { color: var(--evc-muted); font-size: 12px; font-weight: 400; hyphens: auto; }
.evc-sp.evc-sp .evc-sp-kv dd { color: var(--evc-ink); overflow-wrap: anywhere; }
.evc-sp.evc-sp .evc-sp-kv dd.is-strong { font-weight: 700; }
.evc-sp.evc-sp .evc-sp-mono { font-family: "SFMono-Regular", Consolas, "Courier New", monospace; font-size: 12.5px; }
@container (max-width: 280px) {
  .evc-sp.evc-sp .evc-sp-kv-row { grid-template-columns: 1fr; gap: 2px; }
}
.evc-sp.evc-sp .evc-sp-subhead {
  margin: 14px 0 6px; font-size: 13px; font-weight: 700; color: var(--evc-ink);
}
.evc-sp.evc-sp .evc-sp-subhead:first-of-type { margin-top: 0; }

/* description box (green left rule, as in e-mail) */
.evc-sp.evc-sp .evc-sp-quote {
  background: var(--evc-box);
  border-left: 3px solid var(--evc-green-line);
  padding: 14px 16px;
  font-size: 13px; color: var(--evc-text);
  overflow-wrap: anywhere; white-space: pre-line;
}

/* ---------- Hero: status + progress ---------- */
.evc-sp.evc-sp .evc-sp-hero-head {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px;
  margin-bottom: 20px;
}
.evc-sp.evc-sp .evc-sp-tag {
  display: inline-block;
  background: var(--evc-tag-bg); color: var(--evc-tag-ink);
  font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 8px; margin-bottom: 10px;
}
.evc-sp.evc-sp .evc-sp-title {
  font-size: 24px; line-height: 1.25; font-weight: 700; color: var(--evc-ink);
  overflow-wrap: anywhere; hyphens: auto;
}
.evc-sp.evc-sp .evc-sp-sub { margin-top: 4px; font-size: 14px; color: #4a4a4a; overflow-wrap: anywhere; }
.evc-sp.evc-sp .evc-sp-pill {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--evc-line); border-radius: 999px;
  padding: 5px 12px; font-size: 12px; font-weight: 700; color: var(--evc-ink); white-space: nowrap;
  background: #fff;
}
.evc-sp.evc-sp .evc-sp-pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--evc-green-line);
}
@media (min-width: 600px) { .evc-sp.evc-sp .evc-sp-title { font-size: 28px; } }

/* Stepper: vertical by default (narrow), horizontal when the card is wide.
   Works for 3 to 6 steps; labels may wrap to several lines. */
.evc-sp.evc-sp .evc-sp-steps { display: grid; gap: 0; counter-reset: none; }
.evc-sp.evc-sp .evc-sp-step {
  position: relative;
  display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; column-gap: 12px;
  min-height: 48px; padding: 0 0 16px;
}
.evc-sp.evc-sp .evc-sp-step:last-child { padding-bottom: 0; }
/* connector (vertical) */
.evc-sp.evc-sp .evc-sp-step:not(:last-child)::after {
  content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--evc-line);
}
.evc-sp.evc-sp .evc-sp-step.is-done:not(:last-child)::after { background: var(--evc-green-line); }

.evc-sp.evc-sp .evc-sp-dot {
  position: relative; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; line-height: 1;
  background: #fff; color: var(--evc-muted); border: 2px solid var(--evc-line);
}
.evc-sp.evc-sp .evc-sp-step.is-done .evc-sp-dot { background: var(--evc-green-line); border-color: var(--evc-green-line); color: #fff; font-size: 0; }
.evc-sp.evc-sp .evc-sp-step.is-done .evc-sp-dot::before {
  content: ""; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-2px) rotate(-45deg);
}
.evc-sp.evc-sp .evc-sp-step.is-current .evc-sp-dot {
  background: var(--evc-green); border-color: var(--evc-green); color: #fff;
  box-shadow: 0 0 0 5px var(--evc-green-soft);
}
.evc-sp.evc-sp .evc-sp-step-label { font-size: 14px; color: var(--evc-muted); overflow-wrap: anywhere; hyphens: auto; }
.evc-sp.evc-sp .evc-sp-step.is-done .evc-sp-step-label { color: var(--evc-text); }
.evc-sp.evc-sp .evc-sp-step.is-current .evc-sp-step-label { color: var(--evc-ink); font-weight: 700; }

@container (min-width: 520px) {
  .evc-sp.evc-sp .evc-sp-steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .evc-sp.evc-sp .evc-sp-step {
    grid-template-columns: 1fr; justify-items: center; align-items: start; row-gap: 10px;
    text-align: center; padding: 0 6px; min-height: 0; align-content: start;
  }
  .evc-sp.evc-sp .evc-sp-step-label { font-size: 13px; }
  /* connector (horizontal): from this dot to the next one */
  .evc-sp.evc-sp .evc-sp-step:not(:last-child)::after {
    left: calc(50% + 20px); right: calc(-50% + 20px); top: 15px; bottom: auto; width: auto; height: 2px;
  }
}

/* ---------- Planned dates ---------- */
.evc-sp.evc-sp .evc-sp-plan {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--evc-line);
}
.evc-sp.evc-sp .evc-sp-plan-dates {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px;
}
.evc-sp.evc-sp .evc-sp-plan-item { display: grid; gap: 2px; }
.evc-sp.evc-sp .evc-sp-plan-item span { font-size: 12px; color: var(--evc-muted); }
.evc-sp.evc-sp .evc-sp-plan-item strong { font-size: 16px; color: var(--evc-ink); }
.evc-sp.evc-sp .evc-sp-plan-item:last-child:not(:first-child) { text-align: right; }
.evc-sp.evc-sp .evc-sp-bar {
  margin-top: 12px; height: 6px; border-radius: 3px; background: var(--evc-line); overflow: hidden;
}
.evc-sp.evc-sp .evc-sp-bar > span { display: block; height: 100%; background: var(--evc-green-line); border-radius: 3px; }
.evc-sp.evc-sp .evc-sp-bar.is-running > span {
  background-image: linear-gradient(90deg, var(--evc-green-line) 0, #3aa556 50%, var(--evc-green-line) 100%);
  background-size: 200% 100%; animation: evc-sp-flow 2.4s linear infinite;
}
@keyframes evc-sp-flow { from { background-position: 200% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .evc-sp.evc-sp .evc-sp-bar.is-running > span { animation: none; } }
.evc-sp.evc-sp .evc-sp-note {
  margin-top: 12px; background: var(--evc-box); border-left: 3px solid var(--evc-green-line);
  padding: 10px 12px; font-size: 13px;
}

/* ---------- Cancelled + not found ---------- */
.evc-sp.evc-sp .evc-sp-state {
  display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: start;
}
.evc-sp.evc-sp .evc-sp-state-icon {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--evc-box); color: var(--evc-ink);
}
.evc-sp.evc-sp .evc-sp-state-icon svg { width: 20px; height: 20px; }
.evc-sp.evc-sp .evc-sp-state p { font-size: 14px; }
.evc-sp.evc-sp .evc-sp-state .evc-sp-title { font-size: 20px; margin-bottom: 4px; }
.evc-sp.evc-sp .evc-sp-notfound { width: 100%; max-width: 640px; justify-self: center; }
.evc-sp.evc-sp .evc-sp-hero:has(.evc-sp-state) .evc-sp-pill::before { background: var(--evc-muted); }

/* ---------- Buttons ---------- */
.evc-sp.evc-sp .evc-sp-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.evc-sp.evc-sp .evc-sp-btn,
.evc-sp.evc-sp .evc-chat-send,
.evc-sp.evc-sp .evc-chat-attach {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 18px; margin: 0;
  font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; letter-spacing: 0; text-transform: none;
  text-decoration: none; text-align: center; white-space: normal;
  border-radius: 3px; cursor: pointer; box-shadow: none; width: auto; height: auto;
}
.evc-sp.evc-sp .evc-sp-btn.is-primary,
.evc-sp.evc-sp .evc-chat-send { background: var(--evc-green); border: 1px solid var(--evc-green); color: #fff; }
.evc-sp.evc-sp .evc-sp-btn.is-primary:hover,
.evc-sp.evc-sp .evc-chat-send:hover { background: #095a26; border-color: #095a26; color: #fff; }
.evc-sp.evc-sp .evc-sp-btn.is-ghost,
.evc-sp.evc-sp .evc-chat-attach { background: #fff; border: 1px solid #c9c9c9; color: var(--evc-green); }
.evc-sp.evc-sp .evc-sp-btn.is-ghost:hover,
.evc-sp.evc-sp .evc-chat-attach:hover { border-color: var(--evc-green); background: #fff; color: var(--evc-green); }
@media (max-width: 480px) {
  .evc-sp.evc-sp .evc-sp-actions .evc-sp-btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Chat. Markup comes from RepairBuddy (hooks kept): only extra classes and
   wrappers are ours. Messages are shown ABOVE the compose form via `order`,
   without moving any RB element in the DOM.
   ========================================================================== */
.evc-sp.evc-sp .evc-sp-chat-head { margin-bottom: 12px; }

.evc-sp.evc-sp .wcCrJobHistoryHideShowBtn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: 52px; padding: 12px 14px;
  background: var(--evc-box); border: 1px solid var(--evc-line); border-radius: 3px;
  color: var(--evc-ink); text-decoration: none; font-weight: 700; font-size: 14px;
}
.evc-sp.evc-sp .wcCrJobHistoryHideShowBtn:hover { border-color: var(--evc-green); text-decoration: none; }
/* RB (style.css) svakom spanu u ovom gumbu daje `width:calc(50% - 10px)`,
   font-size 18px i bijelu boju. S DVA spana (bez poruka) to jos stane; cim
   prva poruka doda znacku, tri puta 50% prelije gumb: natpis se stisne na
   jedan znak po retku i gumb naraste u visinu. Sirinu, padding i boju zato
   svaki nas span postavlja sam. */
.evc-sp.evc-sp .evc-chat-toggle-main {
  flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere;
  width: auto; padding: 0; font-size: inherit; color: inherit;
}
.evc-sp.evc-sp .evc-chat-count {
  flex: 0 0 auto; width: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px;
  background: var(--evc-green); color: #fff; font-size: 12px; line-height: 22px; text-align: center;
}
.evc-sp.evc-sp .evc-chat-toggle-cta {
  flex: 0 0 auto; width: auto; padding: 0;
  font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--evc-green);
}
.evc-sp.evc-sp .evc-chat-toggle-cta::after {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px;
  border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg);
  transition: transform .15s;
}
.evc-sp.evc-sp .evc-sp-chat:has(.evc-chat-body.is-open) .evc-chat-toggle-cta::after { transform: translateY(1px) rotate(-135deg); }

/* open / closed: class is the source of truth (see JS in status_page_ui.php) */
.evc-sp.evc-sp .evc-chat-body:not(.is-open) { display: none !important; }
.evc-sp.evc-sp .evc-chat-body.is-open { display: flex !important; flex-direction: column; gap: 16px; margin-top: 14px; }
.evc-sp.evc-sp .evc-chat-body > .order_notes { order: 1; }
.evc-sp.evc-sp .evc-chat-body > .evc-chat-compose { order: 2; }

/* message list */
.evc-sp.evc-sp .order_notes.evc-chat-messages {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 420px; overflow-y: auto; overscroll-behavior: contain;
  padding: 2px; margin: 0;
}
.evc-sp.evc-sp .evc-chat-messages > li {
  max-width: 85%; margin: 0; padding: 10px 12px;
  border-radius: 10px 10px 10px 2px;
  background: var(--evc-box); color: var(--evc-text); border: 0;
  align-self: flex-start; font-size: 14px;
}
.evc-sp.evc-sp .evc-chat-messages > li.customer-note {
  align-self: flex-end; background: var(--evc-green-soft); border-radius: 10px 10px 2px 10px;
}
.evc-sp.evc-sp .evc-chat-messages > li.system-note {
  align-self: center; max-width: 100%; background: transparent; padding: 2px 8px; text-align: center;
  font-size: 12px; color: var(--evc-muted);
}
.evc-sp.evc-sp .evc-chat-messages .note_content,
.evc-sp.evc-sp .evc-chat-messages .note_content p { margin: 0; padding: 0; background: none; overflow-wrap: anywhere; }
.evc-sp.evc-sp .evc-chat-messages .note_content::after { display: none; } /* RB speech-bubble arrow */
.evc-sp.evc-sp .evc-chat-messages .evc-chat-who {
  display: block; margin-bottom: 2px; font-size: 11px; font-weight: 700; color: var(--evc-green);
}
.evc-sp.evc-sp .evc-chat-messages .meta { margin: 4px 0 0; padding: 0; font-size: 11px; color: var(--evc-muted); }
.evc-sp.evc-sp .evc-chat-messages li.customer-note .meta { text-align: right; }
.evc-sp.evc-sp .evc-chat-messages abbr { text-decoration: none; border: 0; cursor: default; }
.evc-sp.evc-sp .evc-chat-messages img { max-width: 100%; height: auto; border-radius: 3px; }

/* compose (RB grid classes neutralised) */
.evc-sp.evc-sp .evc-chat-compose,
.evc-sp.evc-sp .evc-chat-compose .grid-x,
.evc-sp.evc-sp .evc-chat-compose .cell { display: block; width: auto; margin: 0; padding: 0; float: none; max-width: none; }
.evc-sp.evc-sp .evc-chat-compose { border-top: 1px solid var(--evc-line); padding-top: 14px; }
.evc-sp.evc-sp .evc-chat-compose h2 {
  margin: 0 0 8px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--evc-green);
}
.evc-sp.evc-sp #wcrb_post_customer_msg { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; }
.evc-sp.evc-sp #wcrb_post_customer_msg > label:first-of-type { flex: 1 1 100%; display: block; margin: 0; }
.evc-sp.evc-sp .evc-chat-input {
  display: block; width: 100%; min-height: 96px; resize: vertical;
  padding: 10px 12px; margin: 0;
  font: inherit; font-size: 16px; /* 16px stops iOS zoom-on-focus */ line-height: 1.45; color: var(--evc-ink);
  background: #fff; border: 1px solid #c9c9c9; border-radius: 3px; box-shadow: none;
}
.evc-sp.evc-sp .evc-chat-input:focus { border-color: var(--evc-green); outline: 2px solid var(--evc-green-soft); outline-offset: 0; }
.evc-sp.evc-sp .attachmentserror,
.evc-sp.evc-sp .jobAttachments,
.evc-sp.evc-sp .client_msg_post_reply { flex: 1 1 100%; font-size: 13px; }
.evc-sp.evc-sp .attachmentserror:empty,
.evc-sp.evc-sp .client_msg_post_reply:empty { display: none; }
.evc-sp.evc-sp .jobAttachments.displayNone { display: none; }
.evc-sp.evc-sp .jobAttachments:not(.displayNone) {
  display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; background: var(--evc-box); border-radius: 3px;
}
.evc-sp.evc-sp .attachmentserror { color: #a12a1b; }
.evc-sp.evc-sp #reciepetAttachment { /* file input stays in the form, label opens it */
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0;
}
.evc-sp.evc-sp .evc-chat-attach { order: 1; }
.evc-sp.evc-sp .evc-chat-send { order: 2; margin-left: auto; }
.evc-sp.evc-sp .client_msg_post_reply { order: 3; }
@media (max-width: 400px) {
  .evc-sp.evc-sp .evc-chat-attach,
  .evc-sp.evc-sp .evc-chat-send { flex: 1 1 calc(50% - 4px); margin-left: 0; padding-left: 10px; padding-right: 10px; }
}

/* ---------- Items + totals (replaces RB invoice block) ---------- */
.evc-sp.evc-sp .evc-sp-items { border-top: 1px solid var(--evc-line); }
.evc-sp.evc-sp .evc-sp-item {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 2px;
  padding: 10px 0; border-bottom: 1px solid var(--evc-line); font-size: 13px;
}
.evc-sp.evc-sp .evc-sp-item-name { font-weight: 700; color: var(--evc-ink); overflow-wrap: anywhere; }
.evc-sp.evc-sp .evc-sp-item-total { grid-row: 1; grid-column: 2; text-align: right; white-space: nowrap; color: var(--evc-ink); }
.evc-sp.evc-sp .evc-sp-item-meta { grid-column: 1 / -1; font-size: 12px; color: var(--evc-muted); }
.evc-sp.evc-sp .evc-sp-item-meta .evc-sp-code { font-family: "SFMono-Regular", Consolas, "Courier New", monospace; }

.evc-sp.evc-sp .evc-sp-totals { margin-top: 6px; font-size: 13px; }
.evc-sp.evc-sp .evc-sp-totals > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.evc-sp.evc-sp .evc-sp-totals dt { color: var(--evc-muted); font-weight: 400; }
.evc-sp.evc-sp .evc-sp-totals dd { white-space: nowrap; color: var(--evc-ink); }
.evc-sp.evc-sp .evc-sp-totals .is-grand { border-top: 1px solid var(--evc-ink); margin-top: 6px; padding-top: 10px; }
.evc-sp.evc-sp .evc-sp-totals .is-grand dt { color: var(--evc-ink); font-weight: 700; }
.evc-sp.evc-sp .evc-sp-totals .is-grand dd { font-weight: 700; font-size: 16px; }
.evc-sp.evc-sp .evc-sp-totals .is-balance dd { font-weight: 700; }
.evc-sp.evc-sp .evc-sp-disclaimer {
  margin-top: 12px; background: var(--evc-box); padding: 10px 12px; font-size: 12px; color: #4a4a4a;
}

/* ---------- Footer ---------- */
.evc-sp.evc-sp .evc-sp-foot {
  padding: 4px 20px 24px; font-size: 12px; line-height: 1.6; color: var(--evc-muted);
}
.evc-sp.evc-sp .evc-sp-foot strong { color: var(--evc-ink); }

/* ---------- Print: one clean column, no chat form ---------- */
@media print {
  .evc-sp.evc-sp { background: #fff; max-width: none; }
  .evc-sp.evc-sp .evc-sp-grid { grid-template-columns: 1fr; padding: 0; }
  .evc-sp.evc-sp .evc-sp-chat,
  .evc-sp.evc-sp .evc-sp-actions { display: none; }
  .evc-sp.evc-sp .evc-sp-card { break-inside: avoid; border-color: #ccc; }
}

/* --------------------------------------------------------------------------
   Stanje ucitavanja i neuspjeha
   --------------------------------------------------------------------------
   Poziv statusa preuzima nas JavaScript, jer RepairBuddyjev nema `error`
   rukovatelj — bez njega se neuspjeh vidi kao kotacic koji se vrti zauvijek.
   Ova dva stanja postoje da ishod uvijek nesto kaze.
   -------------------------------------------------------------------------- */
.evc-sp.evc-sp .evc-status-loading {
  padding: 28px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--evc-muted);
}
