/* The layout of oneCORE's standard portals, skinned per brand:
   - Sales portal (dealt.je SalesPortalMVP: Shared/Partials/Header, Pages/SalePortalDashboard, Partials/ProductConfiguration,
     Quotation/Index, Order/Index): 104px white header row, content max 1680px with 80px gutters, configurator grid
     1fr | minmax(39%, 594px) with the image and Summary fixed in the right column, quotation grid 1fr | 504px,
     pill buttons (theme colour 1), 4px radius on inputs and cards, a copyright + "We run on oneCORE" footer.
   - Customer portal (dealt.je Dealtje.Angular.AccountV2): 64px header, 240px left nav, #f5f5f5 content with white cards
     (24px padding, 24px gap, no radius), card header h3 16px plus a description.
   The template takes a tenant's logo and theme colours; the skin files set those plus the brand's fonts. */

:root {
  --theme-1: #000;
  --head: Georgia, serif;
  --body: Arial, sans-serif;
  --head-weight: 400;
  --ink: #111c1c;
  --muted: #6f7676;
  --line: #d8d8d8;
  --soft: #f5f5f5;
}
body { background: #fff; color: var(--ink); font: 400 14px/1.55 var(--body); }
h1, h2, h3 { font-family: var(--head); font-weight: var(--head-weight); margin: 0; color: var(--ink); }
p { margin: 0; }

/* Buttons: the template's pills */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 32px; border-radius: 32px;
  background: var(--theme-1); color: #fff; border: 1px solid var(--theme-1); font: 500 14px/1 var(--body); text-decoration: none; cursor: pointer; white-space: nowrap; }
.bt--line { background: #fff; color: var(--theme-1); }
.bt--wide { width: 100%; height: 56px; }
.bt--small { height: 40px; padding: 0 20px; font-size: 13px; }

/* ---------- Sales portal header ---------- */
.sp-header { background: #fff; border-bottom: 1px solid var(--line); }
.sp-header__row { max-width: 1680px; margin: 0 auto; padding: 0 80px; height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.sp-header__group { display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
.sp-header__logo img { max-width: 260px; width: 260px; }
.sp-ico { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.sp-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.sp-cart { position: relative; color: var(--ink); }
.sp-cart b { position: absolute; top: -8px; right: -10px; min-width: 18px; height: 18px; border-radius: 50%; background: var(--theme-1); color: #fff; font: 600 11px/18px var(--body); text-align: center; }
.sp-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font: 600 13px/1 var(--body); color: var(--ink); }

.sp-page { max-width: 1680px; margin: 0 auto; padding: 32px 80px 0; }
.sp-back { display: inline-flex; gap: 8px; color: var(--muted); margin-bottom: 14px; font-size: 14px; }
.sp-title { font-size: 34px; line-height: 1.2; }
.sp-lead { color: var(--muted); margin-top: 6px; max-width: 760px; }

.sp-footer { max-width: 1680px; margin: 48px auto 0; padding: 20px 80px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }

/* ---------- Configurator ---------- */
.cfg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(39%, 594px); gap: 40px; margin-top: 28px; align-items: start; }
.step { border: 1px solid var(--line); border-radius: 4px; margin-bottom: 12px; background: #fff; }
.step__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font: 600 15px/1.3 var(--body); }
.step__head span:last-child { color: var(--muted); font-weight: 400; }
.step__body { padding: 0 20px 16px; }
.tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.tile { min-width: 120px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 4px; text-align: center; font-size: 14px; color: var(--muted); }
.tile.is-on { border: 2px solid var(--theme-1); color: var(--ink); font-weight: 500; padding: 11px 15px; }
.step__sel { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.step__sel b { color: var(--ink); font-weight: 500; }

.cfg__side { position: sticky; top: 64px; }
.cfg__img { background: var(--soft); border-radius: 4px; padding: 12px; }
.cfg__img img { max-height: 320px; width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.summary { border: 1px solid var(--line); border-radius: 4px; padding: 20px; margin-top: 16px; background: #fff; }
.summary h3 { font-size: 20px; margin-bottom: 2px; }
.summary .sub { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; }
.row > span:last-child { text-align: right; white-space: nowrap; }
.row small { display: block; color: var(--muted); font-size: 12px; }
.row--line { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 12px; }
.row--total { border-top: 1px solid var(--ink); margin-top: 8px; padding-top: 12px; font-size: 18px; font-weight: 600; }
.excl { text-align: right; font-size: 12px; color: var(--muted); }

/* ---------- Quotation ---------- */
.q-block { border: 1px solid var(--line); border-radius: 4px; padding: 24px; margin-top: 24px; }
.q-block__head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.q-block__head h2 { font-size: 24px; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 4px; background: var(--soft); font-size: 12px; color: var(--muted); }
.q-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 24px; }
.q-field label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.q-field div { border: 1px solid var(--line); border-radius: 4px; padding: 11px 12px; min-height: 44px; overflow-wrap: anywhere; }
.pills { display: flex; gap: 8px; }
.pills span { padding: 10px 16px; border-radius: 22px; border: 1px solid var(--line); color: var(--muted); }
.pills span.is-on { background: var(--theme-1); border-color: var(--theme-1); color: #fff; }
.q-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.q-grid { display: grid; grid-template-columns: minmax(0, 1fr) 504px; gap: 32px; margin-top: 24px; align-items: start; }
.line { display: grid; grid-template-columns: 160px minmax(0, 1fr) auto; gap: 20px; border: 1px solid var(--line); border-radius: 4px; padding: 16px; align-items: start; }
.line img { background: var(--soft); border-radius: 4px; mix-blend-mode: multiply; }
.line h3 { font-size: 20px; }
.line__cfg { list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; color: var(--muted); columns: 2; column-gap: 24px; }
.line__price { font-size: 16px; font-weight: 600; white-space: nowrap; }
.q-side { border: 1px solid var(--line); border-radius: 4px; padding: 20px; }
.q-side h3 { font-size: 18px; margin-bottom: 8px; }

/* PDF preview of the quote */
.pdf-wrap { background: var(--soft); border-radius: 4px; padding: 32px 16px; margin-top: 32px; }
.pdf-wrap > p { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 16px; }

/* ---------- Order ---------- */
.o-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 24px; }
.o-col h3 { font-size: 20px; margin-bottom: 12px; }
.addr { border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; margin-bottom: 10px; color: var(--muted); }
.addr.is-on { border: 2px solid var(--theme-1); padding: 13px 15px; color: var(--ink); }
.addr b { display: block; color: var(--ink); font-weight: 500; }
.radio { width: 18px; height: 18px; border: 1px solid #999; border-radius: 50%; margin-top: 2px; }
.addr.is-on .radio { border: 5px solid var(--theme-1); }
.check { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); margin-bottom: 12px; }
.check i { width: 16px; height: 16px; border: 1px solid #999; border-radius: 3px; display: inline-block; }
.check i.is-on { background: var(--theme-1); border-color: var(--theme-1); }
.o-bottom { display: flex; justify-content: space-between; gap: 32px; margin-top: 32px; align-items: flex-start; flex-wrap: wrap; }
.o-total { width: 25%; min-width: 300px; }

/* ---------- Dashboard ---------- */
.db { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 32px; margin-top: 24px; align-items: start; }
.db__list { list-style: none; margin: 0; padding: 0; }
.db__list li { display: flex; justify-content: space-between; padding: 10px 12px; border-radius: 4px; color: var(--muted); }
.db__list li.is-on { background: var(--soft); color: var(--ink); font-weight: 600; }
.db__list b { min-width: 22px; height: 22px; border-radius: 11px; background: var(--theme-1); color: #fff; font: 600 12px/22px var(--body); text-align: center; padding: 0 6px; }
.db__list b.is-zero { background: var(--line); color: var(--muted); }
.db__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.db__bar h2 { font-size: 24px; }
.search { border: 1px solid var(--line); border-radius: 4px; padding: 9px 12px; color: var(--muted); min-width: 220px; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; background: #fafafa; }
.tbl tr.is-on td { background: #fffaf0; }
.tbl td.num, .tbl th.num { text-align: right; }
.status { display: inline-block; padding: 3px 10px; border-radius: 12px; background: var(--theme-2, var(--theme-1)); color: var(--theme-2-ink, #fff); font-weight: 600; font-size: 12px; }

/* ---------- Customer portal (AccountV2) ---------- */
.ac-header { height: 64px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 28px; padding: 0 24px; }
.ac-header img { width: 220px; }
.ac-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100vh - 108px); }
.ac-nav { background: #fff; border-right: 1px solid var(--line); padding: 16px 0; display: flex; flex-direction: column; }
.ac-nav span { display: flex; gap: 12px; align-items: center; padding: 12px 24px; color: var(--muted); }
.ac-nav span.is-on { color: var(--ink); font-weight: 600; background: var(--soft); box-shadow: inset 3px 0 0 var(--theme-1); }
.ac-nav span svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.ac-nav .ac-nav__end { margin-top: auto; }
.ac-main { background: var(--soft); padding: 24px 128px 0; }
.ac-crumb { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.card { background: #fff; padding: 24px; }
.card + .card { margin-top: 24px; }
.card__head { margin-bottom: 18px; }
.card__head h3 { font: 600 16px/1.3 var(--body); }
.card__head p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.card__label { font-size: 12px; color: var(--muted); margin: 0 0 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: 4px; padding: 7px 12px; font-size: 13px; color: var(--muted); background: #fff; }
.chip.is-on { border-color: var(--theme-1); color: var(--ink); box-shadow: inset 0 0 0 1px var(--theme-1); }
.chip.is-on::before { content: "✓ "; }
.big-figure { font: 300 48px/1 var(--head); }
.ac-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }

/* ---------- responsive ---------- */
@media (max-width: 1280px) {
  .sp-header__row, .sp-page, .sp-footer { padding-left: 40px; padding-right: 40px; }
  .q-grid { grid-template-columns: minmax(0, 1fr) 420px; }
  .ac-main { padding: 24px 40px 0; }
}
@media (max-width: 1024px) {
  .cfg, .q-grid, .o-cols, .db { grid-template-columns: minmax(0, 1fr); }
  .cfg__side { position: static; order: -1; }
  .q-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-header__hide { display: none; }
  .o-total { width: 100%; }
}
@media (max-width: 767px) {
  .sp-header__row { padding: 0 16px; height: 72px; gap: 12px; }
  .sp-header__logo img { width: 150px; }
  .sp-header__group { gap: 14px; }
  .sp-header__group .bt { display: none; }
  .sp-page, .sp-footer { padding-left: 16px; padding-right: 16px; }
  .sp-title { font-size: 28px; }
  .q-fields { grid-template-columns: minmax(0, 1fr); }
  .line { grid-template-columns: minmax(0, 1fr); }
  .line__cfg { columns: 1; }
  .q-block, .q-side, .summary { padding: 16px; }
  .o-total { min-width: 0; }
  .ac-header { padding: 0 16px; }
  .ac-header img { width: 160px; }
  .ac-shell { grid-template-columns: minmax(0, 1fr); }
  .ac-nav { flex-direction: row; overflow-x: auto; padding: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .ac-nav span { padding: 12px 14px; white-space: nowrap; }
  .ac-nav span.is-on { box-shadow: inset 0 -3px 0 var(--theme-1); }
  .ac-nav .ac-nav__end { margin-top: 0; }
  .ac-main { padding: 16px 16px 0; }
  .card { padding: 18px 16px; }
  .ac-actions .bt { width: 100%; }
}
.bt:not(a) { cursor: default; }
