/* ==========================================================================
   Modernist — marketing site design system.
   Source: design handoff (design_handoff_ayusinko_website/modernist-styles.css),
   carried over verbatim where possible, plus the two prototype-local classes
   (.cell, .lnk) and the page-layout classes the handoff calls for (header,
   mobile drawer, sections, hero, etc.) that weren't in the base stylesheet.

   Scoped to the marketing pages only (layouts/marketing.blade.php) - the
   rest of the site (auth, bookings, admin) keeps using app.css untouched.
   Compiled by Laravel Mix into public/css/modernist.css - keep both in sync
   the same way app.css/app.css are kept in sync (see webpack.mix.js).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;600;800&display=swap');

:root {
  --color-bg: #f3f2f2;
  --color-surface: #eae9e9;
  --color-text: #201e1d;
  --color-accent: #ec3013;
  --color-accent-2: #e15b47;
  --color-divider: color-mix(in srgb, #201e1d 40%, transparent);

  --color-neutral-100: #f8f4f4;
  --color-neutral-200: #eae7e7;
  --color-neutral-300: #d7d3d3;
  --color-neutral-400: #bab6b6;
  --color-neutral-500: #9b9797;
  --color-neutral-600: #7d7979;
  --color-neutral-700: #605d5d;
  --color-neutral-800: #444141;
  --color-neutral-900: #2d2b2b;

  --color-accent-100: #fff2ef;
  --color-accent-200: #ffe0d9;
  --color-accent-300: #ffc4b8;
  --color-accent-400: #ff9783;
  --color-accent-500: #ff563c;
  --color-accent-600: #dd2b0f;
  --color-accent-700: #ae1800;
  --color-accent-800: #7c1405;
  --color-accent-900: #4d170e;

  --font-heading: "Archivo", system-ui, sans-serif;
  --font-heading-weight: 800;
  --font-body: "Archivo", system-ui, sans-serif;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;

  --radius-sm: 0px;
  --radius-md: 0px;
  --radius-lg: 0px;

  --shadow-sm: 0 1px 2px color-mix(in srgb, #2d2b2b 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2d2b2b 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2d2b2b 22%, transparent);
}

/* --- Base ------------------------------------------------------------- */

.modernist, .modernist body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

.modernist * , .modernist *::before, .modernist *::after { box-sizing: border-box; }

.modernist {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* :where() keeps these base/reset rules at their original (un-prefixed)
   specificity - just scoped to .modernist - so component classes like
   .btn-primary (color: var(--color-bg)) still win over the plain `a`
   color rule below, same as they do in the un-scoped source stylesheet.
   Without :where(), ".modernist a" (class+element) would out-rank
   ".btn-primary" (class only) and silently paint every button's text
   the same red as its background. */
:where(.modernist) h1, :where(.modernist) h2, :where(.modernist) h3, :where(.modernist) h4, :where(.modernist) h5, :where(.modernist) h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}
:where(.modernist) h1 { font-size: 42px; }
:where(.modernist) h2 { font-size: 32px; }
:where(.modernist) h3 { font-size: 25px; }
:where(.modernist) h4 { font-size: 20px; }
:where(.modernist) h5 { font-size: 16px; }
:where(.modernist) h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
:where(.modernist) p { margin: 0 0 var(--space-3); }
:where(.modernist) a { color: var(--color-accent); text-underline-offset: 3px; }
:where(.modernist) img { display: block; max-width: 100%; }
:where(.modernist) figure { margin: 0; }
:where(.modernist) figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.modernist .text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }
:where(.modernist) :focus { outline: none; }
:where(.modernist) :focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
:where(.modernist) ::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

.grayscale { filter: grayscale(1) contrast(1.08); }

/* — rules — */
.hr {
  height: 2px; border: 0; margin: var(--space-4) 0;
  background: var(--color-divider);
}

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid transparent;
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: var(--radius-md);
}
.btn:hover { text-decoration: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary { border-color: var(--color-divider); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-ghost { color: var(--color-accent); padding-inline: var(--space-1); }
.btn-ghost:hover { background: color-mix(in srgb, var(--color-accent) 10%, transparent); }
.btn-ghost:active { background: color-mix(in srgb, var(--color-accent) 18%, transparent); }
.btn-block { width: 100%; margin-top: var(--space-2); justify-content: flex-start; text-align: left; }
/* Poster-panel CTA: accent field needs a ground-coloured button, not the
   default primary (which would vanish against the same accent background). */
.btn-on-accent { background: var(--color-bg); color: var(--color-text); }
.btn-on-accent:hover { background: var(--color-neutral-100); }

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: var(--radius-md);
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }
.field-error {
  font-size: 12px; color: var(--color-accent-700); margin-top: 4px;
}
.field.has-error .input { border-color: var(--color-accent); }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: var(--radius-md); background: var(--color-surface);
}
.card-kicker { font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-accent); }
.card-title {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 17px; line-height: 1.2;
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.elev-sm { box-shadow: var(--shadow-sm); }

/* — tags — */
.tag {
  display: inline-flex; align-items: center; font-size: 11px;
  letter-spacing: 0.02em; padding: 3px 10px;
  border-radius: calc(var(--radius-md) * 0.75);
}
.tag-accent { background: var(--color-accent-100); color: var(--color-accent-800); }
.tag-neutral { background: var(--color-neutral-100); color: var(--color-neutral-800); }
.tag-outline { border: 1px solid var(--color-accent); color: var(--color-accent); }

/* — tables — */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: color-mix(in srgb, var(--color-text) 60%, transparent);
  padding: var(--space-2); border-bottom: 2px solid var(--color-divider);
}
.table td {
  padding: var(--space-2);
  border-bottom: 1px solid var(--color-divider);
}
.table tbody tr:hover { background: color-mix(in srgb, var(--color-text) 4%, transparent); }

/* — two prototype-local classes (see handoff README) — */

/* A grid cell that is also a button - the workhorse of this design. Used
   for the service grid and the mobile menu rows. */
.cell {
  border-right: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
  padding: 20px;
  cursor: pointer;
  background: transparent;
  text-align: left;
  font-family: inherit;
  color: inherit;
  text-decoration: none;
  display: block;
}
.cell:hover { background: var(--color-accent); color: var(--color-bg); text-decoration: none; }
.cell:hover .from { color: var(--color-bg); }
.cell-name { font-family: var(--font-heading); font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.cell .from { font-size: 12px; color: var(--color-neutral-700); }

.grid-cells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  border-top: 1px solid var(--color-divider);
  border-left: 1px solid var(--color-divider);
}

/* A nav link rendered as a button element */
.lnk {
  color: inherit; text-decoration: none; cursor: pointer; font-size: 14px;
  background: none; border: 0; padding: 0; font-family: inherit;
}
.lnk:hover { color: var(--color-accent); }

/* --- Page shell: header, sections, footer ------------------------------ */

.sec { padding: 52px 40px; border-bottom: 2px solid var(--color-divider); }
.sec:last-of-type { border-bottom: 0; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }

/* Desktop header.
   Full-bleed, matching the rest of the page (.sec / .hero-left also have
   no max-width, just side padding) - the logo sits at the left edge and
   the nav/buttons sit at the right edge via the auto margin below, same
   "space-between" pattern the mockup uses. Side padding matches .sec/
   .hero-left's 40px so the logo lines up with the rest of the page
   content underneath it. */
.site-header {
  border-bottom: 2px solid var(--color-divider);
  background: var(--color-bg);
}
.site-header-inner {
  display: flex; align-items: center; flex-wrap: wrap; gap: 24px;
  padding: 14px 40px;
}
/* The auto margin has to live on the <a> that wraps the logo image, not on
   the .logo image itself - .logo is nested inside that link, so it is NOT
   a direct flex item of .site-header-inner, and margin-right:auto only
   pushes space when it's set on the actual flex item. Putting it on the
   nested image silently does nothing, which is why the nav/buttons were
   staying clumped to the left with the free space trailing after them
   instead of opening up between the logo and the nav. */
.site-header-inner > a:first-child { margin-right: auto; }
.site-header-inner .logo { width: 196px; height: auto; flex: none; }
.site-header-inner .nav-links { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

/* Mobile header (< 640px) */
.site-header-mobile {
  display: none;
  position: sticky; top: 0; z-index: 30;
  border-bottom: 2px solid var(--color-divider);
  background: var(--color-bg);
}
.site-header-mobile .row {
  display: flex; align-items: center; padding: 12px 18px;
}
.site-header-mobile .logo { width: 184px; height: auto; flex: none; }
.site-header-mobile .menu-toggle { min-height: 44px; padding: 0 14px; margin-left: auto; }

.mobile-drawer {
  display: none;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--color-divider);
}
.mobile-drawer.is-open { display: grid; }
.mobile-drawer .cell { border-left: 0; border-right: 0; min-height: 48px; padding: 12px 18px; }
.mobile-drawer .cell-name { font-size: 15px; margin-bottom: 0; }

.sticky-cta {
  display: none;
  position: sticky; bottom: 0; z-index: 25;
  padding: 10px 18px; border-top: 2px solid var(--color-divider);
  background: var(--color-bg);
}
.sticky-cta .btn { padding: 14px 16px; }

/* Footer */
.site-footer-modernist {
  border-top: 2px solid var(--color-divider);
  padding: 36px 40px;
  display: flex; flex-wrap: wrap; gap: 32px;
  margin-top: auto;
}
.site-footer-modernist .col-brand { flex: 1 1 240px; }
.site-footer-modernist .col-brand .logo { width: 176px; height: auto; margin-bottom: 12px; }
.site-footer-modernist .col-brand p { font-size: 12.5px; color: var(--color-neutral-700); margin: 0; }
.site-footer-modernist .col-links { flex: 0 1 160px; display: flex; flex-direction: column; gap: 8px; }
.site-footer-modernist .col-links a { color: inherit; text-decoration: none; font-size: 14px; }
.site-footer-modernist .col-links a:hover { color: var(--color-accent); }

/* --- Photo placeholders -------------------------------------------------- */

.photo-placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--color-neutral-300);
  color: var(--color-neutral-700);
  text-transform: uppercase; letter-spacing: 0.04em; font-size: 12px;
  padding: 24px;
}

/* --- Homepage: hero ------------------------------------------------------ */

.hero { display: flex; flex-wrap: wrap; border-bottom: 2px solid var(--color-divider); }
.hero-left { flex: 1 1 460px; min-width: 320px; padding: 56px 40px 48px; }
.hero-left h1 { font-size: 58px; max-width: 11ch; text-wrap: balance; }
.hero-left > p { font-size: 17px; max-width: 46ch; }
.hero-right {
  flex: 1 1 380px; min-width: 300px;
  border-left: 2px solid var(--color-divider);
  min-height: 420px;
}

.booking-widget {
  background: var(--color-surface);
  border: 2px solid var(--color-text);
  padding: 24px;
  max-width: 520px;
}
.booking-widget h6 { margin-bottom: var(--space-3); }
.booking-widget form { display: grid; gap: 14px; }
.booking-widget .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* Trust strip */
.trust-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-bottom: 2px solid var(--color-divider);
}
.trust-strip .trust-cell { padding: 22px 24px; border-right: 1px solid var(--color-divider); }
.trust-strip .trust-cell strong { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.trust-strip .trust-cell span { display: block; font-size: 12.5px; color: var(--color-neutral-700); }

/* How a job runs */
.steps-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-left: 2px solid var(--color-divider);
}
.steps-grid .step-col { padding: 0 18px; border-right: 1px solid var(--color-divider); }
.numeral { color: var(--color-accent); font-family: var(--font-heading); font-weight: 800; display: block; }
.numeral-sm { font-size: 30px; margin-bottom: var(--space-2); }
.numeral-lg { font-size: 44px; }
.step-col .step-title { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.step-col .step-note { font-size: 13px; color: var(--color-neutral-700); }

/* Poster panel */
.poster {
  background: var(--color-accent); color: var(--color-bg);
  padding: 56px 40px; border-bottom: 2px solid var(--color-divider);
}
.poster h2 { font-size: 44px; max-width: 18ch; color: var(--color-bg); }
.poster p { font-size: 16px; max-width: 52ch; }

/* --- Services / Pricing cards -------------------------------------------- */

.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px;
}
.card-grid .card { border: 1px solid var(--color-divider); }
.card-grid .btn { align-self: flex-start; }

.pricing-panels { display: flex; flex-wrap: wrap; gap: 24px; margin: 32px 0; }
.pricing-panel { flex: 1 1 260px; padding: 24px; border: 2px solid var(--color-text); }
.pricing-panel.is-accent { border-color: var(--color-accent); background: var(--color-accent-100); }
.pricing-panel .price-figure { font-family: var(--font-heading); font-weight: 800; font-size: 40px; display: block; margin: 8px 0 4px; }
.pricing-panel.is-accent .price-figure { color: var(--color-accent-700); }
.pricing-panel .price-label { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.pricing-panel .price-body { font-size: 13.5px; color: var(--color-neutral-700); }
.pricing-panel.is-accent .price-body { color: var(--color-accent-800); }

/* --- How it works rows ---------------------------------------------------- */

.hiw-row {
  display: flex; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--color-divider);
  align-items: flex-start; flex-wrap: wrap;
}
.hiw-row .numeral-lg { width: 60px; flex: none; }
.hiw-row .hiw-body { flex: 1 1 300px; }
.hiw-row .hiw-body p { max-width: 60ch; color: var(--color-neutral-700); margin: 0; }

/* --- About page ------------------------------------------------------------ */

.stat-strip {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  border-bottom: 2px solid var(--color-divider);
}
.stat-strip .stat-cell { padding: 28px 24px; border-right: 1px solid var(--color-divider); }
.stat-strip .stat-figure { font-family: var(--font-heading); font-weight: 800; font-size: 38px; display: block; }
.stat-strip .stat-label { font-size: 12.5px; color: var(--color-neutral-700); }

.split-row { display: flex; flex-wrap: wrap; }
.split-row .split-left { flex: 1 1 380px; min-height: 340px; }
.split-row .split-right { flex: 1 1 380px; padding: 44px 40px; }

/* --- Careers ----------------------------------------------------------------- */

.role-row {
  display: flex; gap: 24px; align-items: center; padding: 20px 0;
  border-bottom: 1px solid var(--color-divider); flex-wrap: wrap;
}
.role-row .role-info { flex: 1 1 260px; }
.role-row .role-info h4 { margin-bottom: 2px; }
.role-row .role-meta { font-size: 13px; color: var(--color-neutral-700); }

.closing-panel {
  border: 2px solid var(--color-text); padding: 28px; max-width: 640px; margin-top: 36px;
}
.closing-panel h4 { margin-bottom: 6px; }
.closing-panel p { color: var(--color-neutral-700); }

/* --- Contact ------------------------------------------------------------------ */

.contact-split { display: flex; flex-wrap: wrap; }
.contact-left { flex: 1 1 420px; padding: 48px 40px; }
.contact-left form { display: grid; gap: 16px; max-width: 520px; }
.contact-left .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-right {
  flex: 1 1 300px; padding: 48px 40px;
  background: var(--color-surface); border-left: 2px solid var(--color-divider);
}
.contact-right .info-block { margin-bottom: 24px; font-size: 14px; }
.contact-right .info-block:last-child { margin-bottom: 0; }
.contact-right .info-block h6 { margin-bottom: 6px; }

/* --- Responsive --------------------------------------------------------------- */

@media (max-width: 640px) {
  .site-header { display: none; }
  .site-header-mobile { display: block; }
  .sticky-cta { display: block; }

  .sec { padding: 26px 18px; }
  .modernist h1 { font-size: 32px; }
  .modernist h2 { font-size: 24px; }
  .modernist h3 { font-size: 20px; }
  .modernist p { font-size: 15px; }
  .photo-placeholder { min-height: 220px; }

  .hero-left { padding: 32px 18px 24px; }
  .hero-left h1 { font-size: 34px; }
  .hero-right { min-height: 220px; border-left: 0; border-top: 2px solid var(--color-divider); }
  .poster { padding: 32px 18px; }
  .poster h2 { font-size: 30px; }
  .split-row .split-right { padding: 24px 18px; }
  .contact-left, .contact-right { padding: 26px 18px; }
}

/* ============================================================
   Auth pages — login, register and forgot-password on the
   marketing shell. From the design handoff (Company website
   login.zip / modernist-auth.css). Only resources/views/auth/login.blade.php
   uses these classes so far; register.blade.php and
   forgot-password.blade.php still use the old layouts.app design
   until/unless those get the same treatment.
   ============================================================ */

.auth-split {
  display: flex;
  flex-wrap: wrap;
  min-height: 560px;
}

.auth-form-col {
  flex: 1 1 400px;
  min-width: 300px;
  padding: 56px 40px;
}

/* Tab strip -------------------------------------------------- */

.auth-tabs {
  display: flex;
  max-width: 400px;
  margin-bottom: 28px;
  border-bottom: 2px solid var(--color-divider);
}

.auth-tab {
  padding: 10px 18px 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  line-height: 1;
  color: var(--color-neutral-700);
  text-decoration: none;
  background: transparent;
}

.auth-tab.is-active {
  background: var(--color-text);
  color: var(--color-bg);
}

.auth-tab:not(.is-active):hover {
  color: var(--color-accent);
}

/* Form ------------------------------------------------------- */

.auth-lede {
  font-size: 14px;
  max-width: 44ch;
  color: var(--color-neutral-700);
}

.auth-form {
  display: grid;
  gap: 16px;
  max-width: 400px;
  margin-top: 26px;
}

.auth-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.input.has-error {
  border-color: var(--color-accent);
}

.auth-row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  cursor: pointer;
}

.auth-check input {
  accent-color: var(--color-accent);
  width: 16px;
  height: 16px;
}

.auth-forgot {
  font-size: 14px;
  color: var(--color-accent-700);
}

/* OR divider ------------------------------------------------- */

.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 400px;
  margin: 16px 0;
  font-size: 12px;
  color: var(--color-neutral-700);
}

.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--color-divider);
}

.auth-form-col > .btn-block {
  max-width: 400px;
}

.auth-foot {
  max-width: 400px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-neutral-700);
}

/* Ink poster panel ------------------------------------------- */

.auth-poster {
  flex: 1 1 380px;
  min-width: 300px;
  padding: 56px 40px;
  background: var(--color-text);
  color: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
}

.auth-poster h2 {
  font-size: 36px;
  max-width: 16ch;
  margin: 0;
  color: var(--color-bg);
}

.auth-perk {
  padding: 14px 0;
  border-top: 1px solid rgba(243, 242, 242, 0.22);
}

.auth-perk strong {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 3px;
}

.auth-perk span {
  display: block;
  font-size: 12.5px;
  color: rgba(243, 242, 242, 0.6);
}

/* Mobile ----------------------------------------------------- */

@media (max-width: 640px) {
  .auth-form-col,
  .auth-poster {
    padding: 26px 18px;
  }

  .auth-poster h2 {
    font-size: 28px;
  }
}

.auth-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--color-neutral-700);
}

.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--color-neutral-700);
}

.auth-back {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: var(--color-accent);
  text-decoration: none;
}

.auth-back:hover {
  color: var(--color-accent-700);
}

/* ============================================================
   Booking wizard — select service, select address
   ============================================================ */

.booking-step {
  max-width: 860px;
  border-bottom: 0;
}

.booking-lede {
  max-width: 52ch;
  color: var(--color-neutral-700);
}

/* Step rail -------------------------------------------------- */

.wizard-rail {
  display: flex;
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  border-left: 2px solid var(--color-divider);
}

.wizard-rail li {
  flex: 1;
  padding: 0 14px;
  border-right: 1px solid var(--color-divider);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-neutral-500);
}

.wizard-rail li:last-child {
  border-right: 0;
}

.wizard-rail li.is-done {
  color: var(--color-accent);
}

/* Service ledger --------------------------------------------- */

.service-ledger {
  margin-top: 20px;
  border-top: 2px solid var(--color-divider);
}

.service-row {
  display: grid;
  grid-template-columns: 20px 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-divider);
  cursor: pointer;
}

.service-row:hover {
  background: var(--color-text);
  color: var(--color-bg);
  padding-left: 10px;
  padding-right: 10px;
}

.service-row:hover .service-cat,
.service-row:hover .service-num {
  color: var(--color-bg);
}

.service-row:has(input:checked) {
  background: var(--color-text);
  color: var(--color-bg);
  padding-left: 10px;
  padding-right: 10px;
}

.service-row:has(input:checked) .service-cat,
.service-row:has(input:checked) .service-num {
  color: var(--color-bg);
}

.service-row input {
  accent-color: var(--color-accent);
  width: 18px;
  height: 18px;
  margin: 0;
}

.service-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  color: var(--color-accent);
}

.service-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.2;
}

.service-cat {
  display: block;
  font-size: 12.5px;
  color: var(--color-neutral-700);
}

.service-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  text-align: right;
}

.booking-next {
  margin-top: 24px;
  padding: 13px 18px;
}

.booking-empty {
  margin-top: 20px;
  padding: 28px;
  border: 2px solid var(--color-divider);
  color: var(--color-neutral-700);
}

/* Details step ----------------------------------------------- */

.booking-form {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin-top: 20px;
}

/* The Add Address mockup reuses the same "City / Province side by side"
   .row-2 pattern as .auth-form and .booking-widget, but nests it inside
   .booking-form instead - without this, .row-2 has no matching rule in
   this context and City/Province would just stack instead of sitting
   side by side. */
.booking-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.booking-form textarea.input {
  min-height: 96px;
  resize: vertical;
}

.booking-error {
  max-width: 560px;
  margin-top: 20px;
  padding: 12px 16px;
  border: 1px solid var(--color-accent);
  color: var(--color-accent-700);
  font-size: 13px;
}

.booking-note {
  padding: 12px 0;
  font-size: 14px;
  color: var(--color-neutral-700);
}

/* Survey-fee receipt ----------------------------------------- */

.booking-survey {
  padding: 20px 24px;
  background: var(--color-text);
  color: var(--color-bg);
}

.booking-survey .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 10px;
  font-size: 14px;
  border-bottom: 1px solid rgba(243, 242, 242, 0.25);
}

.booking-survey .row.muted {
  padding: 10px 0 0;
  border-bottom: 0;
  font-size: 13px;
  color: rgba(243, 242, 242, 0.6);
}

.booking-survey p {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: rgba(243, 242, 242, 0.6);
}

.booking-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.booking-actions .btn {
  padding: 13px 18px;
}

/* FEAT batch (Aug 18, 2026): materials/representative/survey-fee-channel
   radio choices and the site-survey T&Cs box on the booking details step
   (resources/views/bookings/select-address.blade.php). --------------- */
.booking-radio-group {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.booking-radio {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13.5px;
  color: var(--color-text);
  cursor: pointer;
}

.booking-radio input[type="radio"],
.booking-radio input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-accent);
}

.booking-terms-box {
  padding: 14px 16px;
  margin-bottom: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  font-size: 12.5px;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
  max-height: 220px;
  overflow-y: auto;
}

.booking-terms-box p {
  margin: 0 0 8px;
}

.booking-terms-box p:last-child {
  margin-bottom: 0;
}

.booking-terms-box ul {
  margin: 0 0 8px;
  padding-left: 18px;
}

.booking-terms-box li {
  margin-bottom: 4px;
}

/* Details step — two-column layout with summary panel --------- */

.booking-split {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.booking-col-form {
  flex: 1 1 520px;
  min-width: 320px;
  padding: 44px 40px 48px;
  border-right: 2px solid var(--color-divider);
}

.booking-col-form .wizard-rail {
  max-width: 520px;
}

.booking-col-form .booking-form {
  max-width: 520px;
}

.booking-col-summary {
  flex: 1 1 340px;
  min-width: 300px;
  padding: 44px 40px;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.booking-col-summary h6 {
  margin: 0 0 12px;
}

.summary-list {
  border-top: 2px solid var(--color-divider);
}

.summary-service {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
}

.summary-service-name {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
}

.summary-service-cat {
  display: block;
  font-size: 12.5px;
  color: var(--color-neutral-700);
}

.summary-service-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 13.5px;
}

.summary-row:last-child {
  border-bottom: 0;
}

.summary-key {
  color: var(--color-neutral-700);
}

.summary-val {
  text-align: right;
}

.next-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--color-divider);
}

.next-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-accent);
}

.next-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.3;
  margin-bottom: 2px;
}

.next-note {
  display: block;
  font-size: 12px;
  color: var(--color-neutral-700);
}

@media (max-width: 640px) {
  .booking-col-form,
  .booking-col-summary {
    padding: 26px 18px;
  }

  .booking-col-form {
    border-right: 0;
    border-bottom: 2px solid var(--color-divider);
  }
}

@media (max-width: 640px) {
  .booking-step {
    padding: 26px 18px;
  }

  .service-row {
    grid-template-columns: 20px 1fr auto;
    gap: 12px;
  }

  .service-num {
    display: none;
  }
}

/* ============================================================
   Profile
   ============================================================ */

.profile-split {
  display: flex;
  flex-wrap: wrap;
  min-height: 560px;
}

.profile-main {
  flex: 1 1 420px;
  min-width: 300px;
  padding: 56px 40px;
}

.profile-static {
  padding: 9px 0;
  font-size: 14px;
  color: var(--color-neutral-700);
}

.profile-side {
  flex: 1 1 320px;
  min-width: 280px;
  padding: 56px 40px;
  background: var(--color-text);
  color: var(--color-bg);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.profile-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent-400);
}

.profile-identity h4 {
  margin: 6px 0 10px;
  color: var(--color-bg);
}

.profile-side h6 {
  margin: 0 0 4px;
  color: var(--color-accent-400);
}

.profile-block {
  display: flex;
  flex-direction: column;
}

.profile-link {
  display: block;
  padding: 14px 0;
  border-top: 1px solid rgba(243, 242, 242, 0.22);
  color: inherit;
  text-decoration: none;
}

.profile-link:hover {
  padding-left: 10px;
  background: var(--color-accent);
}

.profile-link-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 3px;
}

.profile-link-note {
  display: block;
  font-size: 12.5px;
  color: rgba(243, 242, 242, 0.6);
}

.profile-link:hover .profile-link-note {
  color: var(--color-bg);
}

.profile-logout {
  margin-top: auto;
}

@media (max-width: 640px) {
  .profile-main,
  .profile-side {
    padding: 26px 18px;
  }
}


/* ============================================================
   Admin (Modernist redesign — full admin section now covered:
   dashboard, bookings index/detail, users, providers, activity
   log, and the quotation line-item builder)
   ============================================================ */

/* ============================================================
   Admin — append to resources/css/modernist.css
   (after the auth/booking/profile block)
   ============================================================ */

.admin-shell {
  display: flex;
  align-items: stretch;
  min-height: 100vh;
}

/* Sidebar ---------------------------------------------------- */

.admin-rail {
  flex: 0 0 230px;
  background: var(--color-text);
  color: var(--color-bg);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
}

.admin-rail-brand {
  background: var(--color-bg);
  padding: 16px 20px;
}

.admin-rail-brand img {
  width: 178px;
  height: auto;
  display: block;
}

.admin-rail-kicker {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(243, 242, 242, 0.18);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-400);
}

.admin-rail-nav {
  display: flex;
  flex-direction: column;
}

.admin-rail-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(243, 242, 242, 0.18);
  color: inherit;
  text-decoration: none;
}

.admin-rail-link:hover,
.admin-rail-link.is-active {
  background: var(--color-accent);
  color: var(--color-bg);
}

.admin-rail-link .num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  opacity: 0.55;
}

.admin-rail-link .lbl {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
}

.admin-rail-foot {
  margin-top: auto;
  padding: 20px;
  border-top: 1px solid rgba(243, 242, 242, 0.18);
}

.admin-rail-user {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  line-height: 1.2;
}

.admin-rail-email {
  font-size: 11.5px;
  color: rgba(243, 242, 242, 0.55);
  margin-bottom: 14px;
  word-break: break-all;
}

/* Main column ------------------------------------------------ */

.admin-main {
  flex: 1 1 auto;
  min-width: 0;
}

.admin-flash {
  padding: 14px 40px;
  background: var(--color-accent-100);
  color: var(--color-accent-800);
  font-size: 13px;
  border-bottom: 1px solid var(--color-divider);
}

.admin-head {
  padding: 40px 40px 28px;
  border-bottom: 2px solid var(--color-divider);
}

.admin-head h1 {
  font-size: 44px;
  margin: 0 0 8px;
}

.admin-head p {
  margin: 0;
  color: var(--color-neutral-700);
}

/* Stat strip ------------------------------------------------- */

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border-bottom: 2px solid var(--color-divider);
}

.admin-stat {
  padding: 26px 24px;
  border-right: 1px solid var(--color-divider);
}

.admin-stat .figure {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 42px;
  line-height: 1;
  margin-bottom: 8px;
}

.admin-stat .figure.is-alert {
  color: var(--color-accent);
}

.admin-stat .label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-neutral-700);
}

/* Two columns ------------------------------------------------ */

.admin-cols {
  display: flex;
  flex-wrap: wrap;
}

.admin-col-left {
  flex: 1 1 420px;
  min-width: 320px;
  padding: 36px 40px;
  border-right: 2px solid var(--color-divider);
}

.admin-col-right {
  flex: 1 1 320px;
  min-width: 280px;
  padding: 36px 40px;
}

.admin-col-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.admin-col-head h3 {
  margin: 0;
}

.admin-more {
  margin-left: auto;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13px;
  color: var(--color-accent);
  text-decoration: none;
}

.admin-more:hover {
  color: var(--color-accent-700);
}

.num-cell {
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 15px;
}

/* Status dots — mono palette, no pastel pills */

.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 10px;
  background: var(--color-neutral-400);
}

.dot-pending     { background: var(--color-accent-400); }
.dot-confirmed   { background: var(--color-accent); }
.dot-in_progress { background: var(--color-accent-700); }
.dot-completed   { background: var(--color-text); }
.dot-cancelled   { background: var(--color-neutral-400); }

.admin-quicklinks {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.admin-quicklinks a {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 14px;
  color: var(--color-accent);
  text-decoration: none;
}

.admin-quicklinks a:hover {
  color: var(--color-accent-700);
}

/* Activity --------------------------------------------------- */

.activity-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--color-divider);
}

.activity-row .when {
  font-size: 11.5px;
  color: var(--color-neutral-700);
}

.activity-row .what {
  display: block;
  font-size: 13.5px;
}

.activity-row .who {
  display: block;
  font-size: 11.5px;
  color: var(--color-neutral-700);
}

.admin-empty {
  padding: 24px;
  border: 2px solid var(--color-divider);
  color: var(--color-neutral-700);
  font-size: 14px;
}

/* Shared table + row helpers --------------------------------- */

.admin-body,
.admin-table-wrap {
  padding: 28px 40px 40px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.table .mono {
  font-weight: 600;
  white-space: nowrap;
}

.table .strong {
  font-weight: 600;
}

.table .dim {
  color: var(--color-neutral-700);
}

.table .nowrap {
  white-space: nowrap;
}

.table .right,
.table th.right {
  text-align: right;
}

/* Status chips — typographic, mono palette */

.chip {
  display: inline-block;
  padding: 5px 9px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.chip-pending      { background: var(--color-accent-200); color: var(--color-accent-800); }
.chip-confirmed    { background: var(--color-text);       color: var(--color-bg); }
.chip-in_progress  { background: var(--color-accent-300); color: var(--color-accent-800); }
.chip-completed    { background: var(--color-neutral-200); color: var(--color-neutral-800); }
.chip-cancelled    { background: transparent; color: var(--color-neutral-700); box-shadow: inset 0 0 0 1px var(--color-divider); }
.chip-active       { background: var(--color-text);       color: var(--color-bg); }
.chip-suspended    { background: var(--color-accent-200); color: var(--color-accent-800); }
/* QA feature (Aug 27, 2026): forfeit() deliberately never touches the
   booking's own status, so My Bookings' Status column (driven by
   $booking->status) still read "PENDING" for a booking whose ₱500 fee
   had actually been forfeited - same accent treatment as chip-pending/
   chip-suspended, shown as a second chip alongside the status one
   rather than replacing it (see resources/views/bookings/index.blade.php). */
.chip-forfeited    { background: var(--color-accent-200); color: var(--color-accent-800); }

/* Inline row actions */

.row-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.input-sm {
  max-width: 150px;
  min-height: 32px;
  font-size: 13px;
}

.btn-sm {
  min-height: 32px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

/* Filter bar ------------------------------------------------- */

.admin-filters {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 24px 40px;
  border-bottom: 1px solid var(--color-divider);
}

.admin-filters .field {
  flex: 1 1 200px;
  max-width: 240px;
}

.admin-count {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--color-neutral-700);
}

/* Provider queue --------------------------------------------- */

.provider-row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-divider);
}

.provider-row:first-child {
  border-top: 2px solid var(--color-divider);
}

.provider-who {
  flex: 1 1 240px;
}

.provider-name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.provider-meta {
  font-size: 12.5px;
  color: var(--color-neutral-700);
}

.provider-bio {
  flex: 1 1 240px;
  font-size: 13px;
  color: var(--color-neutral-700);
}

.provider-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Booking detail -------------------------------------------- */

.admin-head-detail {
  padding-top: 32px;
}

.admin-back {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  color: var(--color-accent);
  text-decoration: none;
}

.admin-head-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-head-row h1 {
  margin: 0;
  font-size: 40px;
}

.admin-head-meta {
  margin-left: auto;
  font-size: 13px;
  color: var(--color-neutral-700);
}

.admin-flash.is-error {
  background: transparent;
  border-bottom: 1px solid var(--color-accent);
  color: var(--color-accent-700);
}

/* Six-stage tracker */

.job-track {
  display: flex;
  flex-wrap: wrap;
  padding: 26px 40px;
  border-bottom: 2px solid var(--color-divider);
}

.job-stage {
  flex: 1 1 130px;
  padding: 14px 12px 0 0;
  border-top: 4px solid var(--color-neutral-500);
}

.job-stage.is-done { border-top-color: var(--color-accent); }
.job-stage.is-now  { border-top-color: var(--color-text); }

.job-stage-title {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 12px;
  line-height: 1.3;
  margin-bottom: 3px;
  color: var(--color-neutral-500);
}

.job-stage.is-done .job-stage-title,
.job-stage.is-now .job-stage-title {
  color: var(--color-text);
}

.job-stage-note {
  display: block;
  font-size: 11.5px;
  color: var(--color-neutral-700);
}

/* Two columns */

.booking-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.booking-detail-main {
  flex: 1 1 480px;
  min-width: 340px;
  padding: 32px 40px 40px;
  border-right: 2px solid var(--color-divider);
}

.booking-detail-main h3 {
  margin: 0 0 16px;
}

.booking-detail-main h3.mt {
  margin-top: 34px;
}

.booking-detail-side {
  flex: 1 1 340px;
  min-width: 300px;
  padding: 32px 40px 40px;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.booking-detail-side h6 {
  margin: 0 0 12px;
}

.side-form {
  display: grid;
  gap: 14px;
}

.side-form .btn {
  justify-content: flex-start;
  padding: 12px 16px;
}

/* Detail table */

.detail-table {
  margin: 0;
  border-top: 2px solid var(--color-divider);
}

.detail-table > div {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 14px;
}

.detail-table dt {
  color: var(--color-neutral-700);
  font-weight: 400;
}

.detail-table dd {
  margin: 0;
}

/* History */

.history-list {
  border-top: 2px solid var(--color-divider);
}

.history-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-divider);
}

.history-row .when {
  font-size: 11.5px;
  color: var(--color-neutral-700);
}

.history-row .what {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 13.5px;
  line-height: 1.3;
  margin-bottom: 2px;
}

.history-row .note {
  display: block;
  font-size: 12px;
  color: var(--color-neutral-700);
}

/* Survey ink panel */

.survey-panel {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 22px;
}

.survey-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.survey-head h6 {
  margin: 0;
  color: var(--color-accent-400);
}

.survey-fee {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 20px;
}

.survey-note {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: rgba(243, 242, 242, 0.6);
}

.survey-panel .field > label {
  color: rgba(243, 242, 242, 0.75);
}

/* QA fix (Aug 27, 2026): .btn-secondary only sets a border color and
   relies on the base .btn rule's `color: var(--color-text)` (near-black)
   for its text - fine on a light panel, but on this dark "ink" panel
   (background: var(--color-text)) that left the Reject/Forfeit/Refund
   buttons rendering as dark text on a dark background - present and
   clickable, just effectively invisible. .btn-on-accent (used by the
   Confirm button) sidesteps this with a solid light pill; these three
   are meant to stay outline-style, so instead give them the same light
   text/border treatment already used for .field > label and .on-ink
   inputs in this panel. */
.survey-panel .btn-secondary {
  color: var(--color-bg);
  border-color: rgba(243, 242, 242, 0.3);
}
.survey-panel .btn-secondary:hover {
  background: rgba(243, 242, 242, 0.08);
}
.survey-panel .btn-secondary:active {
  background: rgba(243, 242, 242, 0.14);
}

.input.on-ink {
  background: rgba(243, 242, 242, 0.08);
  border-color: rgba(243, 242, 242, 0.3);
  color: var(--color-bg);
}

/* QA fix (Aug 27, 2026): a <select class="input on-ink"> (e.g. the
   Forfeit reason dropdown) renders its CLOSED state fine with the
   near-white text above, but the OPEN option list is a native browser
   popup with its own light background regardless of the field's dark
   styling - so that same near-white text became nearly unreadable
   against it. Force the <option> list back to normal dark-on-light,
   independent of the closed control's on-ink theme. */
.input.on-ink option {
  color: var(--color-text);
  background: var(--color-bg);
}

.survey-findings {
  font-size: 13px;
}

.survey-findings .k {
  display: block;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 242, 242, 0.5);
  margin-bottom: 4px;
}

/* Locked / quotation */

.locked-panel {
  padding: 20px;
  border: 2px solid var(--color-divider);
  font-size: 13px;
  color: var(--color-neutral-700);
}

.locked-panel.is-dashed {
  border-style: dashed;
}

.quote-summary {
  border-top: 2px solid var(--color-divider);
  margin-bottom: 14px;
}

.quote-summary .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 14px;
}

.quote-summary .row.muted {
  font-size: 13px;
  color: var(--color-neutral-700);
}

.quote-summary .row.total {
  border-bottom: 2px solid var(--color-text);
  font-family: var(--font-heading);
  font-weight: 800;
}

.chip-draft    { background: var(--color-neutral-200); color: var(--color-neutral-800); }
.chip-sent     { background: var(--color-accent-200);  color: var(--color-accent-800); }
.chip-approved { background: var(--color-text);        color: var(--color-bg); }
.chip-declined { background: transparent; color: var(--color-neutral-700); box-shadow: inset 0 0 0 1px var(--color-divider); }

/* Payment (JobLifecycle step 06) - reuses the same "strong positive"
   treatment as .chip-approved / .chip-confirmed rather than a new color. */
.chip-paid { background: var(--color-text); color: var(--color-bg); }

/* Quotation editor ------------------------------------------- */

.quote-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
}

.quote-main {
  flex: 1 1 520px;
  min-width: 360px;
  padding: 32px 40px 40px;
  border-right: 2px solid var(--color-divider);
}

.quote-side {
  flex: 1 1 330px;
  min-width: 300px;
  padding: 32px 40px 40px;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.quote-side h6 {
  margin: 0 0 10px;
}

.quote-hint {
  font-size: 12.5px;
  color: var(--color-neutral-700);
}

.quote-hint.block {
  display: block;
  margin: 0 0 16px;
}

/* Line-item table */

.quote-table {
  width: 100%;
  border-collapse: collapse;
}

.quote-table th {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 0 12px 10px 0;
  border-bottom: 2px solid var(--color-text);
  color: var(--color-neutral-700);
}

.quote-table td {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--color-divider);
  font-size: 14px;
  vertical-align: middle;
}

.quote-table .col-qty   { width: 80px; }
/* QA fix (Aug 20, 2026): the Type column (Labor/Material) was reusing
   .col-qty's 80px width, meant for a 1-2 digit quantity - too narrow for
   the <select>'s text plus its native dropdown arrow, so "Labor"/"Material"
   rendered clipped/garbled ("Labc"). Own width, wide enough for "Material". */
.quote-table .col-type  { width: 112px; }
.quote-table .col-price { width: 130px; }
.quote-table .col-total { width: 130px; }
.quote-table .col-rm    { width: 76px; }

.quote-table .right,
.quote-table th.right {
  text-align: right;
  padding-right: 0;
  white-space: nowrap;
}

/* The Remove cell gets its own left padding so the amount beside it
   never runs flush into the button. */
.quote-table .col-rm {
  text-align: right;
  padding-left: 16px;
  padding-right: 0;
}

.btn-rm {
  padding: 0;
  min-height: 0;
  font-size: 12px;
}

.quote-add-row {
  background: var(--color-surface);
}

.quote-add-row td {
  padding: 10px 12px 10px 0;
}

.quote-add-row td:first-child {
  padding-left: 12px;
}

.quote-add-row .input-sm {
  max-width: none;
  width: 100%;
  min-height: 34px;
  font-size: 13.5px;
}

.locked-panel.mt {
  margin-top: 22px;
}

/* Totals panel */

.totals-panel {
  background: var(--color-text);
  color: var(--color-bg);
  padding: 22px;
}

.totals-panel h6 {
  margin: 0 0 14px;
  color: var(--color-accent-400);
}

.totals-panel .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(243, 242, 242, 0.22);
  font-size: 14px;
}

.totals-panel .row.muted {
  font-size: 13px;
  color: rgba(243, 242, 242, 0.6);
}

.totals-panel .row.total {
  align-items: flex-end;
  padding: 14px 0 0;
  border-bottom: 0;
}

.totals-panel .row.total .figure {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
}

/* Survey recap */

.survey-recap {
  border-top: 1px solid var(--color-divider);
  padding-top: 12px;
  font-size: 13px;
}

.survey-recap .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.survey-recap .k {
  color: var(--color-neutral-700);
}

.survey-recap p {
  margin: 0;
  font-size: 12.5px;
  color: var(--color-neutral-700);
}

/* Mobile ----------------------------------------------------- */

@media (max-width: 860px) {
  .admin-shell {
    flex-direction: column;
  }

  .admin-rail {
    flex: none;
    position: static;
    min-height: 0;
    width: 100%;
  }

  .admin-rail-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .admin-rail-link {
    flex: 1 1 140px;
  }

  .admin-head,
  .admin-col-left,
  .admin-col-right,
  .admin-flash,
  .admin-filters,
  .admin-body,
  .admin-table-wrap,
  .job-track,
  .booking-detail-main,
  .booking-detail-side {
    padding-left: 20px;
    padding-right: 20px;
  }

  .booking-detail-main {
    border-right: 0;
    border-bottom: 2px solid var(--color-divider);
  }

  .admin-head-meta {
    margin-left: 0;
    width: 100%;
  }

  .admin-col-left {
    border-right: 0;
    border-bottom: 2px solid var(--color-divider);
  }

  .row-actions {
    justify-content: flex-start;
  }
}

/* Quotation status is 'draft' | 'pending_approval' | 'approved' | 'declined'
   (see app/Models/Quotation.php) - the mockup's CSS only defined
   .chip-draft/.chip-approved/.chip-declined plus a .chip-sent that doesn't
   match any real status value. Added the missing rule with the same look
   .chip-sent would have had, instead of renaming the real 'pending_approval'
   status to match - that status name is already relied on by
   QuotationController and the customer-facing quotation page. */
.chip-pending_approval { background: var(--color-accent-200); color: var(--color-accent-800); }
