/* AutoShop by Multiverse Techs — design tokens + components (layered on Bootstrap 5.3) */

:root {
  --bay: #1b2a3a;          /* steel bay blue: nav, hero, sidebar */
  --bay-2: #243649;
  --bay-3: #33485f;
  --lift: #f2b705;         /* safety yellow: primary actions */
  --lift-dark: #d9a300;
  --coolant: #0e8c7f;      /* healthy / paid */
  --fault: #d64545;        /* trouble codes / overdue */
  --amber: #e08a00;        /* warnings */
  --ticket: #eef3f1;       /* repair-ticket paper */
  --ink: #16202b;
  --steel: #5b6b7a;
  --line: #d9e1de;
  --white: #ffffff;

  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-readout: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-body-font-size: 1.0625rem;
  --bs-link-color: #1d5f8f;
  --bs-link-color-rgb: 29, 95, 143;
  --bs-link-hover-color: var(--bay);
  --bs-border-color: var(--line);
  --bs-focus-ring-color: rgba(242, 183, 5, .45);
}

[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", "Barlow Condensed", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Barlow", "Segoe UI", sans-serif;
  --bs-body-font-family: var(--font-body);
}
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] .display { font-weight: 700; line-height: 1.3; letter-spacing: 0; }
[lang="ar"] .hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
/* Codes, VINs, emails, money stay left-to-right inside Arabic text */
.ltr { direction: ltr; unicode-bidi: isolate; }
.lang-picker { display: inline-flex; gap: .15rem; align-items: center; }
.lang-picker a { padding: .2rem .5rem; border-radius: 6px; text-decoration: none; font-size: .9rem; font-weight: 600; color: inherit; opacity: .75; }
.lang-picker a:hover { opacity: 1; }
.lang-picker a.on { opacity: 1; background: rgba(242,183,5,.18); color: var(--lift); }
.auth-card .lang-picker a.on { color: var(--bay); background: var(--ticket); }

body { font-family: var(--font-body); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
h1, h2, h3, .display { font-family: var(--font-display); font-weight: 600; letter-spacing: .005em; line-height: 1.05; }
h4, h5, h6 { font-family: var(--font-body); font-weight: 600; }
p { max-width: 68ch; }
:focus-visible { outline: 3px solid var(--lift); outline-offset: 2px; }
.text-steel { color: var(--steel) !important; }

/* ── Buttons ───────────────────────────────────────────── */
.btn { border-radius: 8px; font-weight: 600; padding: .6rem 1.15rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1.1rem; }
.btn-lift { background: var(--lift); color: var(--ink); border: 1px solid var(--lift-dark); }
.btn-lift:hover, .btn-lift:focus { background: var(--lift-dark); color: var(--ink); }
.btn-bay { background: var(--bay); color: #fff; border: 1px solid var(--bay); }
.btn-bay:hover { background: var(--bay-2); color: #fff; }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,.35); background: transparent; }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-quiet { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.btn-quiet:hover { background: var(--ticket); }
.btn-danger-quiet { background: transparent; border: 1px solid #f0c9c9; color: var(--fault); }
.btn-danger-quiet:hover { background: #fdf1f1; color: var(--fault); }
.btn-sm { padding: .35rem .7rem; font-size: .9rem; }

/* ── Logo (OBD-II connector mark) ──────────────────────── */
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: inherit; }
.brand-mark { width: 34px; height: 26px; flex: none; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.55rem; letter-spacing: .01em; }
.brand-word b { color: var(--lift); font-weight: 700; }
.brand-by { font-size: .78rem; opacity: .7; margin-inline-start: .15rem; }

/* ── Marketing nav ─────────────────────────────────────── */
.site-nav { background: var(--bay); color: #fff; position: sticky; top: 0; z-index: 1030; border-bottom: 1px solid rgba(255,255,255,.06); }
.site-nav .nav-link { color: rgba(255,255,255,.82); font-weight: 500; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: #fff; }
.site-nav .navbar-toggler { border-color: rgba(255,255,255,.3); }
.site-nav .navbar-toggler-icon { filter: invert(1); }

/* ── Hero ──────────────────────────────────────────────── */
.hero { background: var(--bay); color: #fff; padding: 4.5rem 0 5rem; position: relative; overflow: hidden; }
.hero::after { /* bay floor markings */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px;
  background: repeating-linear-gradient(90deg, var(--lift) 0 64px, transparent 64px 112px); opacity: .9;
}
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 700; max-width: 13ch; }
.hero .lead { color: rgba(255,255,255,.82); font-size: 1.2rem; max-width: 52ch; }
.hero-note { color: rgba(255,255,255,.62); font-size: .95rem; }

/* The scan readout — the page's one memorable moment */
.readout { background: #0f1923; border: 1px solid #2c3f53; border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.55); color: #d7e3ee; overflow: hidden; }
.readout-top { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.1rem; background: #142231; border-bottom: 1px solid #2c3f53; font-size: .92rem; }
.readout-top .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coolant); display: inline-block; margin-inline-end: .45rem; box-shadow: 0 0 0 3px rgba(14,140,127,.25); }
.readout-body { padding: 1.1rem 1.2rem 1.25rem; }
.readout-vehicle { font-size: .95rem; color: #9fb3c6; }
.readout-vehicle strong { color: #fff; font-weight: 600; }
.code-row { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: baseline; padding: .8rem 0; border-top: 1px dashed #2c3f53; }
.code { font-family: var(--font-readout); font-weight: 700; font-size: 1.15rem; color: #ff8a8a; letter-spacing: .02em; }
.code.amber { color: #ffc861; }
.code-title { color: #fff; font-weight: 600; }
.code-plain { grid-column: 2; color: #a9bccd; font-size: .95rem; }
.quote-line { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem .8rem; margin-top: .45rem; border-radius: 8px; background: rgba(242,183,5,.1); border: 1px solid rgba(242,183,5,.35); color: #fbe7a6; font-size: .95rem; }
.quote-line b { color: #fff; }
.readout-step { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .readout.is-playing .readout-step { opacity: 0; transform: translateY(6px); animation: reveal .5s ease forwards; }
  .readout.is-playing .readout-step:nth-child(1) { animation-delay: .25s; }
  .readout.is-playing .readout-step:nth-child(2) { animation-delay: 1.0s; }
  .readout.is-playing .readout-step:nth-child(3) { animation-delay: 1.8s; }
  .readout.is-playing .readout-step:nth-child(4) { animation-delay: 2.6s; }
  .readout.is-playing .readout-step:nth-child(5) { animation-delay: 3.3s; }
}
@keyframes reveal { to { opacity: 1; transform: none; } }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-ticket { background: var(--ticket); }
.section-bay { background: var(--bay); color: #fff; }
.section h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); margin-bottom: .75rem; }
.section .intro { color: var(--steel); font-size: 1.15rem; max-width: 60ch; }
.section-bay .intro { color: rgba(255,255,255,.75); }

.types { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.type-chip { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .95rem; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; }
.type-chip i { color: var(--bay-3); font-size: 1.1rem; }

/* Repair-ticket flow (a real sequence) */
.flow { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; }
.flow li { position: relative; padding: 1.4rem 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); margin-inline-start: -1px; counter-increment: step; }
.flow li:first-child { border-start-start-radius: 12px; border-end-start-radius: 12px; margin-inline-start: 0; }
.flow li:last-child { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.flow li::before { content: counter(step); font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--lift-dark); line-height: 1; display: block; margin-bottom: .5rem; }
.flow h3 { font-size: 1.4rem; margin-bottom: .35rem; }
.flow p { color: var(--steel); font-size: .98rem; margin: 0; }
@media (max-width: 991px) {
  .flow { grid-template-columns: 1fr; }
  .flow li, .flow li:first-child, .flow li:last-child { margin: -1px 0 0; border-radius: 0; }
  .flow li:first-child { border-radius: 12px 12px 0 0; margin-top: 0; }
  .flow li:last-child { border-radius: 0 0 12px 12px; }
}

.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; margin-top: 2rem; }
.feature { display: grid; grid-template-columns: 2.6rem 1fr; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.feature i { font-size: 1.6rem; color: var(--bay-3); }
.feature h3 { font-family: var(--font-body); font-size: 1.15rem; font-weight: 600; margin: 0 0 .25rem; line-height: 1.3; }
.feature p { margin: 0; color: var(--steel); }
@media (max-width: 767px) { .feature-list { grid-template-columns: 1fr; } }

/* Ledger mock */
.ledger { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .98rem; }
.ledger table { margin: 0; }
.ledger th { font-weight: 600; color: var(--steel); background: #f7faf9; font-size: .9rem; }
.ledger td.num, .ledger th.num { text-align: end; font-variant-numeric: tabular-nums; }
.ledger tfoot td { font-weight: 700; border-top: 2px solid var(--ink); }
.balanced { color: var(--coolant); font-weight: 600; }

/* Roles */
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: rgba(255,255,255,.12); border-radius: 12px; overflow: hidden; margin-top: 2rem; }
.role { background: var(--bay); padding: 1.4rem 1.2rem; }
.role h3 { font-size: 1.45rem; color: var(--lift); margin-bottom: .4rem; }
.role p { color: rgba(255,255,255,.78); font-size: .97rem; margin: 0; }
@media (max-width: 991px) { .roles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px) { .roles { grid-template-columns: 1fr; } }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; display: flex; flex-direction: column; }
.plan.featured { border: 2px solid var(--lift); }
.plan h3 { font-size: 1.7rem; margin-bottom: .2rem; }
.plan .price { font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; line-height: 1; margin: .8rem 0 .2rem; }
.plan .price small { font-family: var(--font-body); font-size: 1rem; font-weight: 500; color: var(--steel); }
.plan ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; }
.plan li { padding: .3rem 0; display: flex; gap: .5rem; }
.plan li i { color: var(--coolant); }
.plan li.off { color: #9aa7b2; }
.plan li.off i { color: #b9c3cb; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; font-size: 1.12rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; color: var(--steel); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: .7rem 0 0; color: var(--steel); }

/* Footer */
.site-footer { background: #121d29; color: rgba(255,255,255,.72); padding: 3.5rem 0 2rem; font-size: .97rem; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer h4 { font-family: var(--font-body); color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer .legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .9rem; }

/* Legal pages */
.doc { max-width: 760px; margin: 0 auto; padding: 3.5rem 0 4rem; }
.doc h1 { font-size: 3rem; }
.doc h2 { font-size: 1.75rem; margin-top: 2.4rem; }
.doc p, .doc li { line-height: 1.7; }
.doc .updated { color: var(--steel); }
.doc .summary { background: var(--ticket); border-inline-start: 4px solid var(--lift); padding: 1.1rem 1.3rem; border-start-end-radius: 10px; border-end-end-radius: 10px; margin: 1.5rem 0; }

/* ── Auth (split screen) ───────────────────────────────── */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.auth-side { background: var(--bay); color: #fff; padding: 2.5rem 3rem; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-side::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(90deg, var(--lift) 0 48px, transparent 48px 84px); }
.auth-side h2 { font-size: 2.6rem; margin-top: auto; max-width: 14ch; }
.auth-side p { color: rgba(255,255,255,.75); }
.auth-side .checks { list-style: none; padding: 0; margin: 1.2rem 0 auto; }
.auth-side .checks li { padding: .35rem 0; display: flex; gap: .6rem; color: rgba(255,255,255,.88); }
.auth-side .checks i { color: var(--lift); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: #fff; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 2.5rem; margin-bottom: .35rem; }
.auth-card .sub { color: var(--steel); margin-bottom: 1.6rem; }
.auth-mobile-brand { display: none; margin-bottom: 1.5rem; color: var(--bay); }
@media (max-width: 991px) {
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .auth-mobile-brand { display: inline-flex; }
}

.form-label { font-weight: 600; font-size: .95rem; margin-bottom: .3rem; }
.form-control, .form-select { border-radius: 8px; padding: .65rem .85rem; border-color: #cbd5d1; }
.form-control:focus, .form-select:focus { border-color: var(--lift-dark); box-shadow: 0 0 0 .2rem rgba(242,183,5,.3); }
.form-check-input:checked { background-color: var(--bay); border-color: var(--bay); }
.field-validation-error, .validation-summary-errors { color: var(--fault); font-size: .92rem; }
.validation-summary-errors ul { margin: 0; padding-inline-start: 1.1rem; }
.validation-summary-valid { display: none; }
.alert-fault { background: #fdf1f1; border: 1px solid #f0c9c9; color: #8f2b2b; border-radius: 10px; }

/* Business-type picker */
.type-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .5rem; }
.type-option { position: relative; }
.type-option input { position: absolute; opacity: 0; inset: 0; }
.type-option label { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: .75rem .8rem; border: 1px solid #cbd5d1; border-radius: 10px; cursor: pointer; font-weight: 500; font-size: .95rem; line-height: 1.2; }
.type-option label i { font-size: 1.3rem; color: var(--bay-3); }
.type-option input:checked + label { border: 2px solid var(--bay); background: var(--ticket); padding: calc(.75rem - 1px) calc(.8rem - 1px); }
.type-option input:focus-visible + label { outline: 3px solid var(--lift); outline-offset: 2px; }

/* ── App shell (shop + admin) ──────────────────────────── */
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; background: #f3f6f5; }
.sidebar { background: var(--bay); color: #fff; padding: 1.2rem .9rem; display: flex; flex-direction: column; gap: .2rem; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar .brand { padding: .2rem .5rem 1.1rem; color: #fff; }
.side-group { font-size: .8rem; color: rgba(255,255,255,.45); padding: 1rem .7rem .35rem; font-weight: 600; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .55rem .7rem; border-radius: 8px; color: rgba(255,255,255,.8); text-decoration: none; font-weight: 500; }
.side-link i { font-size: 1.1rem; width: 1.2rem; text-align: center; }
.side-link:hover { background: var(--bay-2); color: #fff; }
.side-link.active { background: var(--bay-3); color: #fff; box-shadow: inset 3px 0 0 var(--lift); }
[dir="rtl"] .side-link.active { box-shadow: inset -3px 0 0 var(--lift); }
.side-link.soon { opacity: .5; pointer-events: none; }
.side-link .soon-tag { margin-inline-start: auto; font-size: .72rem; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 0 .45rem; }
.sidebar .side-foot { margin-top: auto; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .9rem; }
.sidebar .side-foot .who { color: rgba(255,255,255,.65); padding: 0 .7rem .5rem; word-break: break-all; }
.app-main { padding: 1.8rem 2.2rem 3rem; min-width: 0; }
.app-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.6rem; }
.app-top h1 { font-size: 2.3rem; margin: 0; }
.app-top .sub { color: var(--steel); margin: .2rem 0 0; }
.app-mobilebar { display: none; }
@media (max-width: 991px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset-block: 0; inset-inline-start: 0; width: 270px; transform: translateX(-100%); transition: transform .2s ease; z-index: 1040; }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  .sidebar.open, [dir="rtl"] .sidebar.open { transform: none; }
  .app-mobilebar { display: flex; justify-content: space-between; align-items: center; background: var(--bay); color: #fff; padding: .7rem 1rem; position: sticky; top: 0; z-index: 1030; }
  .app-main { padding: 1.2rem 1rem 2.5rem; }
}

.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.25rem 1.35rem; }
.panel + .panel { margin-top: 1.25rem; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.panel-head h2 { font-family: var(--font-body); font-size: 1.12rem; font-weight: 600; margin: 0; line-height: 1.3; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(165px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.15rem; }
.stat .label { color: var(--steel); font-size: .92rem; font-weight: 500; }
.stat .value { font-family: var(--font-display); font-size: clamp(1.7rem, 2.2vw, 2.2rem); font-weight: 700; line-height: 1.1; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.stat .hint { font-size: .85rem; color: var(--steel); }
.stat.lift { border-top: 4px solid var(--lift); }
.stat.ok { border-top: 4px solid var(--coolant); }
.stat.bad { border-top: 4px solid var(--fault); }

.table-app { margin: 0; font-size: .97rem; }
.table-app th { color: var(--steel); font-weight: 600; font-size: .88rem; border-bottom-width: 1px; white-space: nowrap; background: #f8faf9; }
.table-app td { vertical-align: middle; }
.table-app td.num, .table-app th.num { text-align: end; font-variant-numeric: tabular-nums; }
.table-wrap { border: 1px solid var(--line); border-radius: 12px; overflow: auto; background: #fff; }

.pill { display: inline-block; padding: .14rem .6rem; border-radius: 999px; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.pill-ok { background: #e3f4f1; color: #0b6f65; }
.pill-info { background: #e6eef7; color: #1d5f8f; }
.pill-warn { background: #fff3d6; color: #8a5a00; }
.pill-bad { background: #fde7e7; color: #a12f2f; }
.pill-muted { background: #edf0f2; color: #5b6b7a; }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; margin-bottom: 1rem; }
.filters .form-control, .filters .form-select { padding: .45rem .7rem; }
.tabs { display: flex; gap: .3rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { padding: .4rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: .95rem; }
.tabs a.on { background: var(--bay); color: #fff; border-color: var(--bay); }

.bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.bars span { flex: 1; background: var(--bay-3); border-radius: 3px 3px 0 0; min-height: 3px; }
.bars span.today { background: var(--lift); }
.empty { text-align: center; padding: 2.2rem 1rem; color: var(--steel); }
.empty i { font-size: 2rem; color: #a9b7b2; display: block; margin-bottom: .4rem; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .45rem 1.2rem; margin: 0; }
.kv dd { min-width: 0; overflow-wrap: anywhere; }
.kv-stack { display: block; }
.kv-stack dt { margin-top: .9rem; }
.kv-stack dt:first-child { margin-top: 0; }
.kv-stack dd { color: var(--steel); }
.table-app .btn, .table-app .pill { white-space: nowrap; }
.table-app td.nowrap { white-space: nowrap; }
.kv dt { color: var(--steel); font-weight: 500; }
.kv dd { margin: 0; }
.quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .75rem; }
.quick a, .quick div { display: flex; gap: .7rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); background: #fff; font-weight: 500; }
.quick a:hover { border-color: var(--bay-3); background: var(--ticket); }
.quick i { font-size: 1.25rem; color: var(--bay-3); }
.quick .soon { color: #8a97a3; }
.quick .soon small { margin-inline-start: auto; font-size: .78rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 .45rem; }
.banner { border-radius: 12px; padding: 1rem 1.2rem; margin-bottom: 1.25rem; display: flex; gap: .9rem; align-items: flex-start; }
.banner i { font-size: 1.3rem; }
.banner-warn { background: #fff7e0; border: 1px solid #f3dc97; color: #6b4a00; }
.banner-info { background: #eaf2fa; border: 1px solid #c7dbee; color: #1d4f78; }
.banner-bad { background: #fdf1f1; border: 1px solid #f0c9c9; color: #8f2b2b; }

/* Toasts */
.toast-stack { position: fixed; inset-inline-end: 1rem; bottom: 1rem; z-index: 1080; display: grid; gap: .5rem; max-width: 380px; }
.toast-note { background: var(--bay); color: #fff; border-radius: 10px; padding: .85rem 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.25); display: flex; gap: .7rem; align-items: flex-start; }
.toast-note.err { background: #8f2b2b; }
.toast-note i { color: var(--lift); margin-top: .1rem; }
.toast-note.err i { color: #ffd2d2; }
.toast-note button { margin-inline-start: auto; background: none; border: 0; color: rgba(255,255,255,.7); font-size: 1.2rem; line-height: 1; }

@media print {
  .sidebar, .app-mobilebar, .no-print, .toast-stack { display: none !important; }
  .app { display: block; background: #fff; }
}

/* ── Scanner pages (ported from Med Ride): print the report / work order without the app chrome ── */
@media print {
    .sidebar, .app-mobilebar, .toast-stack, .no-print { display: none !important; }
    .app { display: block !important; }
    .app-main { margin: 0 !important; padding: 0 !important; max-width: none !important; }
    a[href]::after { content: none !important; }
}

/* ---- Phone layout for list tables: rows become cards (add class "table-cards" to the table) ---- */
@media (max-width: 767.98px) {
    table.table-cards thead { display: none; }
    table.table-cards, table.table-cards tbody, table.table-cards tr, table.table-cards td { display: block; width: 100%; }
    table.table-cards tfoot { display: table; width: 100%; }
    table.table-cards { background: transparent; }
    table.table-cards tbody tr { border: 1px solid var(--line, #e2e8f0); border-radius: 12px; background: #fff; margin: .6rem 0; padding: .35rem .8rem; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
    table.table-cards tbody td { border: 0; padding: .3rem 0; text-align: start !important; white-space: normal !important; overflow-wrap: anywhere; }
    table.table-cards tbody td + td { border-top: 1px dashed var(--line, #e2e8f0); }
    table.table-cards tbody td::before { content: attr(data-label); display: block; font-size: .72rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--steel, #64748b); margin-bottom: .1rem; }
    table.table-cards tbody td[data-label=""]::before { display: none; }
    table.table-cards tbody td:empty { display: none; }
    .table-responsive:has(> table.table-cards), .table-wrap:has(> table.table-cards) { overflow: visible; border: 0; background: transparent; }
    .card .table-responsive:has(> table.table-cards) { padding: 0 .6rem; }
}
