/* The new look (David approved the drawings 2026-12-03). Linked AFTER app.css,
   and only when new_look() is on (includes/services/new_look.php), so with the
   switch off nothing in here reaches anyone.

   The plan, stage by stage: notes/NEW_LOOK_BUILD.md.
   The drawings: notes/design/new-look/project/ (copy values from them).
   The look's origin: the Team app's includes/ui.php and its .kbh-* / .rdx-* /
   .ui-* rules (read only).

   Rules here are written under body.look-new, and new class names start nl-.
   Colour meanings do not change: green adds or saves, red deletes or warns,
   yellow is caution and dates, blue is information, grey is off. Light only.

   Stage 0 (2026-12-03): the switch and these tokens.
   Stage 1 (2026-12-03): the skin, CSS only (below the tokens).

   HOW STAGE 1 WORKS, so variants keep working: app.css draws most things from
   its own named colours (--surface, --border, --text, --ms-link, --ms-green-bg
   ...). Below, those names are RE-POINTED to the new palette, so every colour
   variant (a green Save, a red Delete, the amber Book anyway, a red tag) keeps
   its meaning with no rule of its own. The component rules then change SHAPE
   only (rounding, padding, type), never a colour a variant sets, because a
   rule here starts with body.look-new and so outranks a variant like
   .btn-green; a colour set here would wipe the variant out. */

body.look-new {
  /* text */
  --nl-ink: #112233;
  --nl-muted: #5a7183;              /* never lighter than this for text */
  --nl-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --nl-size: 15px;

  /* the page and its cards (Business, special and future; Customer below) */
  --nl-page: #f4f6f9;
  --nl-card: #ffffff;
  --nl-line: #e3e8ee;
  --nl-line-strong: #cfd8e3;
  --nl-line-hover: #bcd6e6;
  --nl-radius: 16px;
  --nl-radius-sm: 10px;
  --nl-shadow-hover: 0 8px 22px rgba(0, 40, 70, .09);
  --nl-focus: 3px solid #ffd166;

  /* the band: the window's colour, a warm glow, the hills */
  --nl-band: linear-gradient(135deg, #00405f 0%, #005e85 48%, #0a86ad 100%);
  --nl-glow: radial-gradient(46rem 18rem at 96% -35%, rgba(255, 205, 96, .42), transparent 60%);
  --nl-hill-far: rgba(255, 255, 255, .11);
  --nl-sun: #ffd257;
  --nl-on-band: #ffc940;            /* the gold button on a band */
  --nl-on-band-ink: #00344d;
  --nl-tile: rgba(255, 255, 255, .14);
  --nl-tile-line: rgba(255, 255, 255, .24);
  --nl-tile-owed: #c62f3d;
  --nl-tile-owed-line: #ee8b93;

  /* main tabs and sub-tabs */
  --nl-track: #e3ebf1;
  --nl-tab-ink: #3d5a6e;
  --nl-tab-on: #005e85;
  --nl-tab-count: #d3dee7;
  --nl-sub-on-bg: #e8f4fd;

  /* row actions */
  --nl-act-hover: #eef3f7;

  /* chips: background / text */
  --nl-grey-bg: #f1f4f7;   --nl-grey: #4b5d6b;
  --nl-blue-bg: #e8f4fd;   --nl-blue: #005e85;
  --nl-green-bg: #e3f5ea;  --nl-green: #17703f;  --nl-green-line: #b9e0c6;
  --nl-red-bg: #fbe3e5;    --nl-red: #a8202c;    --nl-red-line: #f1b8be;
  --nl-amber-bg: #fff3d6;  --nl-amber: #7a5a00;
  --nl-purple-bg: #efe9fb; --nl-purple: #5b34a8;

  /* rings */
  --nl-ring-track: #e6edf3;
  --nl-ring-done: #1a8c4e;
  --nl-ring-going: #005e85;
  --nl-ring-over: #c62f3d;

  /* icon tile tones, 0-5: background / icon */
  --nl-tone0-bg: #e0f4f1; --nl-tone0: #0b7a6c;
  --nl-tone1-bg: #e3f0fb; --nl-tone1: #1b63a8;
  --nl-tone2-bg: #fdf1d7; --nl-tone2: #946000;
  --nl-tone3-bg: #fde8e4; --nl-tone3: #b3412d;
  --nl-tone4-bg: #efe9fb; --nl-tone4: #6a45b8;
  --nl-tone5-bg: #e5f5e4; --nl-tone5: #2c7a2c;
}

/* A Customer booking: purple band, lilac page (#6b21a8 = --cs-band-base, David's CS purple) */
body.look-new.theme-cs,
body.look-new.cs-window {
  --nl-page: #f6f4fa;
  --nl-line: #e6e1ee;
  --nl-line-strong: #d5cfe0;
  --nl-line-hover: #cdb7e6;
  --nl-band: linear-gradient(135deg, #3a0f63 0%, #6b21a8 50%, #8e44cf 100%);
  --nl-track: #e9e3f1;
  --nl-tab-ink: #52466a;
  --nl-tab-on: #6b21a8;
  --nl-tab-count: #d9d0e6;
  --nl-act-hover: #f1ecf8;
}

/* A special booking: green band */
body.look-new.theme-special {
  --nl-band: linear-gradient(135deg, #17442a 0%, #24703c 50%, #3f9a55 100%);
}

/* A future lead: grey band, no glow */
body.look-new.theme-future {
  --nl-band: linear-gradient(135deg, #36414c 0%, #55636f 50%, #6f7d89 100%);
  --nl-glow: none;
}


/* ═══ Stage 1: the skin ═══════════════════════════════════════════════════ */

/* ── 1. app.css's own names, re-pointed (see the note at the top) ── */
body.look-new {
  --page-bg: var(--nl-page);
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-hover: #f2f7fb;
  --text: var(--nl-ink);
  --text-strong: var(--nl-ink);
  --text-muted: var(--nl-muted);
  --text-faint: var(--nl-muted);
  --border: var(--nl-line);
  --border-strong: var(--nl-line-strong);
  --shadow-sm: 0 1px 2px rgba(0, 40, 70, .04);
  --shadow-md: 0 10px 28px rgba(0, 40, 70, .14);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: var(--nl-radius);
  --brand-400: #e0a800;            /* a focused field's border, beside the gold ring */
  --brand-600: #005e85;
  --brand-700: #00405f;
  --focus-ring: 0 0 0 3px #ffd166;
  --ms-link: var(--nl-tab-on);
  --ms-link-dk: #00405f;
  --ms-text: var(--nl-ink);

  /* ver5's colour meanings, in the new palette (same meanings, new shades) */
  --ms-blue-bg: #e8f4fd;    --ms-blue-border: #b9daef;  --ms-blue-text: #005e85;  --ms-blue-lt-bg: #f2f9fe;  --ms-blue-lt-border: #cfe5f3;
  --ms-green-bg: #e3f5ea;   --ms-green-border: #b9e0c6; --ms-green-text: #17703f; --ms-green-lt-bg: #f1faf4;
  --ms-red-bg: #fbe3e5;     --ms-red-border: #f1b8be;   --ms-red-text: #a8202c;   --ms-red-lt-bg: #fff5f6;
  --ms-yellow-bg: #fff3d6;  --ms-yellow-border: #ecd189; --ms-yellow-text: #7a5a00; --ms-yellow-lt-bg: #fffbef;
  --ms-purple-bg: #efe9fb;  --ms-purple-border: #d3c4f3; --ms-purple-text: #5b34a8;
  --ms-grey-bg: #f1f4f7;    --ms-grey-border: #e3e8ee;
  --ms-turq-bg: #e0f4f1;    --ms-turq-border: #b1dfda;   --ms-turq-text: #0b7a6c;

  --theme-lt: #ffffff;
  --theme-border: var(--nl-line-strong);
}
/* a Customer booking: links, buttons and hovers in its purple */
body.look-new.theme-cs,
body.look-new.cs-window {
  --surface-hover: #f7f3fc;
  --brand-600: #6b21a8;
  --brand-700: #4c1580;
  --ms-link: #6b21a8;
  --ms-link-dk: #4c1580;
  --focus-ring: 0 0 0 3px #ffd166;
  --cs-band: #3e1068;              /* the sticky Customer tab: the band's own left edge */
}

/* ── 2. The page ── */
body.look-new {
  font-family: var(--nl-font);
  font-size: var(--nl-size);
  color: var(--nl-ink);
  background: var(--nl-page);      /* flat: the band carries the colour now */
}
body.look-new :is(a, button, summary, input, select, textarea):focus-visible {
  outline: var(--nl-focus); outline-offset: 2px;
}

/* ── 3. The band: the header of a Business, special or future booking ──
   Stage 3 rebuilds it (tiles, hills); here it takes the window's colour. */
body.look-new .bw-header {
  background: var(--nl-glow), var(--nl-band);
  color: #fff; border-bottom: 0; box-shadow: none;
  padding: 14px 1.25rem;
}
body.look-new .bw-line1 h1,
body.look-new .bw-line1 h1 strong,
body.look-new .bw-org,
body.look-new .bw-titleline,
body.look-new .bw-ref { color: #fff; }
body.look-new .bw-line1 h1 { font-size: 19px; }
body.look-new .bw-titleline { opacity: .95; font-size: 15px; }
body.look-new .bw-line1 > a:not(.cust-strip-who) { color: #fff; }
body.look-new .cust-strip-who {
  background: #fff; border: 0; color: var(--nl-ink);
  box-shadow: 0 4px 14px rgba(0, 30, 50, .18);
}
body.look-new .bw-tools .tool { color: #fff; }
body.look-new .bw-tools .status-dot { border-color: rgba(255, 255, 255, .7); width: 15px; height: 15px; }
body.look-new .bw-tools .view-only-chip {
  background: transparent; color: #ffe7a3; border-color: rgba(255, 231, 163, .5);
}
body.look-new .bw-header .bw-overflow summary {
  display: grid; place-items: center; width: 36px; height: 36px; padding: 0;
  border-radius: var(--nl-radius-sm); background: rgba(255, 255, 255, .16); color: #fff;
}
body.look-new .bw-header .bw-overflow summary:hover { background: rgba(255, 255, 255, .28); }
body.look-new .bw-header .bw-overflow ul { color: var(--nl-ink); top: calc(100% + 6px); }
/* (the Customer window's ⋮ is also a .bw-overflow, on the light page: these stay in the band) */

/* the Customer window's band (George's frame; stage 5 adds its hills and tiles) */
body.look-new .cs-band { background: var(--nl-glow), var(--nl-band); }

/* ── 4. Tabs: pills on a track ── */
/* Business, special and future: the main tabs */
body.look-new .bw-tabs {
  background: transparent; border-bottom: 0;
  gap: 4px; padding: 14px 1.25rem 0;
}
@media (min-width: 761px) {
  body.look-new .bw-tabs {
    width: fit-content; max-width: calc(100% - 2.5rem);
    margin: 14px 1.25rem 0; padding: 5px;
    background: var(--nl-track); border-radius: var(--nl-radius);
  }
}
body.look-new .bw-tab {
  border: 0; border-radius: 12px; background: transparent;
  padding: 8px 14px; color: var(--nl-tab-ink); font-weight: 700; font-size: 14px;
}
body.look-new .bw-tab:hover { background: rgba(255, 255, 255, .65); color: var(--nl-tab-on); }
body.look-new .bw-tab.selected {
  background: #fff; color: var(--nl-tab-on); font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 40, 70, .12);
}
body.look-new .bw-burger { border-radius: var(--nl-radius-sm); }

/* ...and their sub-tabs */
body.look-new .bw-subtabs {
  background: transparent; border-bottom: 0;
  gap: 4px; padding: 10px 1.25rem 0; font-size: 13.5px;
}
body.look-new .bw-subtab {
  padding: 5px 13px; border-radius: 999px;
  color: var(--nl-tab-ink); font-weight: 700;
}
body.look-new .bw-subtab:hover { background: rgba(0, 94, 133, .06); color: var(--nl-tab-on); }
body.look-new .bw-subtab.selected { background: var(--nl-sub-on-bg); color: var(--nl-tab-on); }

/* a Customer booking: the folder tabs become the same pills */
body.look-new .cs-ftabs {
  background: transparent; border-bottom: 0;
  padding: 14px 1.25rem 0; align-items: center;
}
@container bw (min-width: 761px) {
  body.look-new .cs-ftabs-row {
    flex: 0 1 auto; gap: 4px; padding: 5px; align-items: center;
    background: var(--nl-track); border-radius: var(--nl-radius);
  }
}
body.look-new .cs-ftab {
  border: 0; border-radius: 12px; margin: 0; background: transparent;
  padding: 8px 15px; color: var(--nl-tab-ink); font-weight: 700; font-size: 14px;
}
body.look-new .cs-ftab:hover { background: rgba(255, 255, 255, .65); color: var(--nl-tab-on); }
body.look-new .cs-ftab.selected {
  background: #fff; color: var(--nl-tab-on); border: 0; padding-top: 8px;
  box-shadow: 0 2px 8px rgba(40, 0, 70, .12);
}
body.look-new .cs-cnt { background: var(--nl-tab-count); color: var(--nl-tab-ink); font-weight: 700; }
body.look-new .cs-kebab { margin-bottom: 0; }
body.look-new .cs-kebab summary { width: 38px; height: 38px; border-radius: 12px; border-color: var(--nl-line-strong); }

/* the front pages: Bookings | Pipeline | AI settings */
body.look-new .app-nav {
  width: fit-content; max-width: 100%; flex-wrap: wrap; gap: 4px;
  margin: .5rem 0 1.1rem; padding: 5px;
  border-bottom: 0; background: var(--nl-track); border-radius: var(--nl-radius);
}
body.look-new .app-nav a {
  border-bottom: 0; margin-bottom: 0; padding: 8px 15px; border-radius: 12px;
  color: var(--nl-tab-ink); font-weight: 700;
}
body.look-new .app-nav a:hover { background: rgba(255, 255, 255, .65); color: var(--nl-tab-on); }
body.look-new .app-nav a[aria-current="page"] {
  background: #fff; color: var(--nl-tab-on); box-shadow: 0 2px 8px rgba(0, 40, 70, .12);
}

/* the red count on a tab (chasers due) */
body.look-new .tab-badge { min-width: 19px; height: 19px; line-height: 19px; font-size: 11px; background: var(--nl-tile-owed); }

/* ── 5. Cards ── */
body.look-new fieldset.panel,
body.look-new fieldset.card {
  border-color: var(--nl-line); border-radius: var(--nl-radius);
  padding: 16px 18px; box-shadow: none;
}
body.look-new fieldset.panel:hover,
body.look-new fieldset.card:hover { border-color: var(--nl-line); }
body.look-new .panel h2 { font-size: 16px; font-weight: 800; color: var(--nl-ink); margin-bottom: .75rem; }
body.look-new .card h3 { font-size: 16px; font-weight: 800; color: var(--nl-ink); margin-bottom: .7rem; }
body.look-new .card dt { font-size: 13.5px; }
body.look-new .card-edit { top: .8rem; right: .9rem; }

/* cards you can open lift a little, as the Team's do */
body.look-new .row-card { border-radius: 14px; padding: .65rem 1rem; box-shadow: none; }
body.look-new .row-card[onclick]:hover,
body.look-new .row-card[data-href]:hover {
  border-color: var(--nl-line-hover); box-shadow: var(--nl-shadow-hover); cursor: pointer;
}
body.look-new .dc-card { border-radius: 14px; box-shadow: none; }
body.look-new .dc-card:hover { transform: none; border-color: var(--nl-line-hover); box-shadow: var(--nl-shadow-hover); }
body.look-new .note-card { border-radius: 14px; padding: .8rem 1rem .9rem; box-shadow: none; }
body.look-new .note-head { font-size: 13px; }
body.look-new .cs-lrow { border-radius: 14px; box-shadow: none; }
body.look-new a.cs-lrow:hover { background: #fff; border-color: var(--nl-line-hover); box-shadow: var(--nl-shadow-hover); }
body.look-new .cs-strip,
body.look-new .cs-stats { box-shadow: none; }

/* ── 6. Buttons: pills. Colours stay app.css's (green adds, red deletes) ── */
body.look-new .btn-mini {
  gap: 5px; min-height: 30px; padding: 4px 12px;
  border-radius: 999px; font-size: 12.5px; font-weight: 700;
  box-shadow: none;
}
body.look-new .btn-mini:hover { transform: none; filter: brightness(.97); }
body.look-new .btn-mini:active { transform: none; filter: brightness(.93); }
body.look-new h2 .btn-mini { font-weight: 700; vertical-align: 1px; }

body.look-new .search button,
body.look-new .search-reset,
body.look-new .search .nb-open-btn { border-radius: 999px; font-weight: 700; }
body.look-new .search input { border-radius: 999px; padding-left: 1rem; }
body.look-new .cs-setval { font-weight: 700; }

/* row actions: on the row, a little bigger to hit */
body.look-new .row-act,
body.look-new .inv-act { width: 32px; height: 32px; border-radius: 10px; }
body.look-new .inv-doc { padding: .18rem .65rem .18rem .5rem; font-size: 12.5px; }

/* ── 7. Tags: a fact, in words, never a border, so they never read as buttons ──
   .tag, .chip, .bk-kind and .chip-yellow-soft draw as one. Colours stay app.css's.
   They KEEP George's small capitals and square-ish corners (2026-12-01, "the
   round, bordered pills read as buttons"), in the new colours. The drawings
   show round sentence-case tags, but ~20 tags are typed in lower case ("paid",
   "overdue") and others come from the data in any case, so without capitals
   they would read unevenly ("overdue" beside "PAID"). */
body.look-new :is(.tag, .chip, .bk-kind, .chip-yellow-soft) {
  padding: 1px 7px; border-radius: 5px;
  font-size: 11px; font-weight: 700; line-height: 1.6; letter-spacing: .04em;
}
body.look-new .tag .ic, body.look-new .chip .ic { width: 13px; height: 13px; }
body.look-new .note-type-chip { border: 0; padding: 1px 9px; font-size: 12px; font-weight: 700; }
body.look-new .view-only-chip { font-size: 12px; font-weight: 700; letter-spacing: 0; padding: .15rem .7rem; }

/* ── 8. Fields ── */
body.look-new :is(input[type=text], input[type=search], input[type=email], input[type=tel],
                  input[type=number], input[type=date], input[type=password], input:not([type]),
                  select, textarea) {
  border-radius: 8px;
}
/* A field app.css leaves to the browser (the quote builder's name, description
   and number boxes, the Actions date boxes ...) kept the browser's bevelled
   border, which rounded corners turned into a bracket: "(0" (David,
   2026-12-03, on a booking's Quotes). Give those the house border and a
   little room. Both halves are :where(), so this rule weighs NOTHING: any
   rule in app.css or pipeline.css that styles a field wins over it. (With
   body.look-new outside the :where() it outweighed Pipeline's search box and
   quick-edit boxes, and the search icon sat on the words, David, same day.) */
:where(body.look-new) :where(input[type=text], input[type=search], input[type=email], input[type=tel],
                     input[type=number], input[type=date], input[type=password], input:not([type]),
                     select, textarea) {
  border: 1px solid var(--nl-line-strong); padding: 4px 8px; background-color: #fff;
}
body.look-new :is(input[type=checkbox], input[type=radio]) { accent-color: var(--ms-link); }

/* ── 9. Menus (⋮ and the card menus) ── */
body.look-new :is(.bw-overflow ul, .card-menu[open] ul, .cs-kebab ul) {
  padding: 6px; border-radius: 14px; border-color: var(--nl-line);
}
body.look-new :is(.bw-overflow li a, .card-menu ul a) { border-radius: 8px; }
body.look-new .bw-overflow ul { min-width: 210px; }
body.look-new .bw-overflow li a { white-space: nowrap; }

/* ── 10. Dialogs: the frame (stage 6 gives them a header in the window's colour) ── */
body.look-new dialog.bw-dialog {
  border: 0; border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 24px 60px rgba(0, 30, 50, .35);
}
body.look-new dialog.bw-dialog::backdrop { background: rgba(10, 30, 45, .38); }
body.look-new dialog.bw-dialog h3 { font-size: 17px; font-weight: 800; margin-bottom: .7rem; }
body.look-new .edit-form { border-radius: 14px; }

/* ── 11. Messages: saved, careful, could not ── */
body.look-new .toast {
  border-radius: 14px; padding: 11px 16px; font-size: 14px;
  box-shadow: 0 12px 32px rgba(0, 30, 50, .18);
}
body.look-new .banner {
  border-color: transparent; border-radius: 14px;
  padding: 10px 14px; font-size: 14px; max-width: 760px;
}
body.look-new .hidden-matches { border-color: transparent; border-radius: 14px; padding: 10px 14px; font-size: 14px; }

/* ── 12. Tables ── */
body.look-new table.data th { font-size: 12.5px; font-weight: 700; }

/* ── Phone ── */
@media (max-width: 760px) {
  body.look-new fieldset.panel,
  body.look-new fieldset.card { padding: 12px 13px; }
  body.look-new .bw-header { padding: 12px .75rem; }
  body.look-new .bw-tabs { padding: 10px .75rem 0; }
  body.look-new .bw-subtabs { padding: 8px .75rem 0; }
  body.look-new .bw-line1 h1 { font-size: 17px; }
}


/* ═══ Stage 2: home and search ════════════════════════════════════════════
   index.php, includes/new_look_hero.php, includes/new_look_home.php; the
   drawings Main, Search and Phone-Home. */

body.look-new .page { max-width: 1120px; padding: 20px 24px 40px; }
/* Pipeline is a wide board: the whole width of the window (David, 2026-12-03:
   "this page prob needs to be a full screen"; it was 1680px, the home page's
   1120px rule had caught it) */
body.look-new .page.page-wide { max-width: none; }
body.look-new .nl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* the title, the app's tabs and the person, on one line. The header melts
   into the line (display: contents) except framed in the Mendip App, which
   hides our header (body.embedded) and keeps the tabs. */
body.look-new .nl-top { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; margin: 0 0 18px; }
body.look-new:not(.embedded) .nl-top .page-header { display: contents; }
body.look-new .nl-top h1 { order: 1; margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -.01em; color: var(--nl-ink); }
body.look-new .nl-top .app-nav { order: 2; margin: 0; }
body.look-new .nl-top .page-user { order: 3; margin-left: auto; display: flex; align-items: center; gap: 6px; font-size: 14px; }

/* a staff face: photo over initials (includes/new_look_home.php nl_face()) */
body.look-new .nl-face {
  position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden;
  width: var(--nl-face, 30px); height: var(--nl-face, 30px); border-radius: 50%;
  color: #fff; font-size: calc(var(--nl-face, 30px) * .38); font-weight: 800; line-height: 1;
}
body.look-new .nl-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ── the welcome panel ── */
body.look-new .nl-hero {
  position: relative; overflow: hidden; margin: 0 0 14px; border-radius: 22px; color: #fff;
  background: radial-gradient(60rem 22rem at 92% -30%, rgba(255, 205, 96, .42), transparent 60%), var(--nl-band);
}
body.look-new .nl-sun {
  position: absolute; right: 10%; bottom: 36px; width: 100px; height: 100px; border-radius: 50%;
  background: var(--nl-sun);
  box-shadow: 0 0 0 14px rgba(255, 210, 87, .16), 0 0 0 34px rgba(255, 210, 87, .08), 0 0 72px 24px rgba(255, 210, 87, .3);
}
body.look-new .nl-hero-in {
  position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px;
  max-width: 820px; padding: 34px 36px 118px;
}
body.look-new .nl-hero--slim { border-radius: 18px; }
body.look-new .nl-hero--slim .nl-hero-in { max-width: none; gap: 12px; padding: 16px 18px 48px; }
body.look-new .nl-hello { margin: 0; font-weight: 700; font-size: 17px; opacity: .92; }
body.look-new .nl-hero-title { margin: 0; color: #fff; font-size: clamp(26px, 4vw, 38px); line-height: 1.12; letter-spacing: -.01em; font-weight: 800; }
body.look-new .nl-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 104px; display: block; }
body.look-new .nl-hero--slim .nl-hills { height: 40px; }
body.look-new .nl-hills__far { fill: rgba(255, 255, 255, .09); }
body.look-new .nl-hills__mid { fill: rgba(255, 255, 255, .13); }
body.look-new .nl-hills__near { fill: var(--nl-page); }

/* the search: a white pill with the gold button */
body.look-new .nl-search-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.look-new .nl-search {
  flex: 1 1 420px; min-width: 0; display: flex; align-items: center; gap: 9px;
  padding: 6px 6px 6px 18px; border-radius: 999px; background: #fff; color: var(--nl-muted);
  box-shadow: 0 10px 30px rgba(0, 30, 50, .28);
}
body.look-new .nl-search:focus-within { outline: var(--nl-focus); outline-offset: 2px; }
body.look-new .nl-search input {
  flex: 1; min-width: 0; padding: 10px 0; border: 0; border-radius: 0; outline: 0; box-shadow: none;
  background: transparent; font: inherit; font-size: 16.5px; color: var(--nl-ink);
}
body.look-new .nl-search input:focus-visible { outline: 0; }
body.look-new .nl-search button {
  flex: none; padding: 11px 22px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--nl-on-band); color: var(--nl-on-band-ink); font-weight: 800;
}
body.look-new .nl-search button:hover { background: #ffd668; }
body.look-new :is(.nl-new, .nl-ghost) {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 0 18px;
  border-radius: 999px; font-weight: 700; font-size: 14.5px; text-decoration: none; cursor: pointer;
}
body.look-new .nl-new { border: 0; background: #fff; color: var(--nl-ink); box-shadow: 0 10px 30px rgba(0, 30, 50, .2); }
body.look-new .nl-new:hover { background: #f2f7fb; }
body.look-new .nl-ghost { border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .16); color: #fff; }
body.look-new .nl-ghost:hover { background: rgba(255, 255, 255, .28); color: #fff; }

/* one press, and the Department */
body.look-new .nl-tries { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; }
body.look-new .nl-tries > span { flex: none; white-space: nowrap; opacity: .9; }
body.look-new .nl-try {
  display: inline-flex; align-items: center; gap: 5px; padding: 5px 13px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .24); color: #fff; font-weight: 600; text-decoration: none;
}
body.look-new .nl-try:hover { background: rgba(255, 255, 255, .3); color: #fff; }
body.look-new .nl-try.is-on { background: #fff; border-color: #fff; color: #00405f; }
body.look-new .nl-dept { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; }
body.look-new .nl-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(0, 30, 50, .28); }
body.look-new .nl-seg label { position: relative; padding: 5px 14px; border-radius: 999px; color: #fff; font-weight: 700; cursor: pointer; }
body.look-new .nl-seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
body.look-new .nl-seg label:has(input:checked) { background: #fff; color: #00405f; }
body.look-new .nl-seg label:has(input:focus-visible) { outline: var(--nl-focus); outline-offset: 2px; }
body.look-new .nl-dept-note { opacity: .9; }

/* ── the Filters button and panel: the same fields, as pill groups ── */
body.look-new .search-filters { margin: 0 0 14px; font-size: 14px; }
body.look-new .search-filters summary {
  display: inline-flex; align-items: center; gap: 7px; width: auto; list-style: none; cursor: pointer;
  padding: 8px 15px; border-radius: 999px; border: 1px solid var(--nl-line-strong); background: #fff;
  color: var(--nl-ink); font-weight: 700; font-size: 13.5px;
}
body.look-new .search-filters summary::-webkit-details-marker { display: none; }
body.look-new .search-filters[open] summary { background: var(--nl-blue-bg); border-color: #b9daef; color: var(--nl-blue); }
body.look-new .nl-count {
  display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--nl-blue); color: #fff; font-size: 11.5px; font-weight: 800;
}
body.look-new .sf-groups {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 28px;
  margin-top: 10px; padding: 16px 18px; border-radius: var(--nl-radius); box-shadow: none;
}
body.look-new .sf-groups fieldset { min-width: 0; display: flex; flex-wrap: wrap; align-content: flex-start; align-items: center; gap: 6px; }
body.look-new .sf-groups legend {
  margin-bottom: 7px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--nl-muted);
}
body.look-new .sf-groups fieldset:last-child { grid-column: 1 / -1; }
body.look-new .sf-groups label:has(> input[type=radio]),
body.look-new .sf-groups label:has(> input[type=checkbox]) {
  position: relative; display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--nl-line-strong); background: #fff; color: #3a4d5c; font-size: 13.5px; font-weight: 600;
}
body.look-new .sf-groups label > input:is([type=radio], [type=checkbox]) { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
body.look-new .sf-groups label:has(> input:checked) { background: var(--nl-blue-bg); border-color: var(--nl-blue); color: var(--nl-blue); }
body.look-new .sf-groups label:has(> input:focus-visible) { outline: var(--nl-focus); outline-offset: 1px; }
body.look-new .sf-date label { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; }
body.look-new .sf-date input[type=date] { padding: 5px 8px; border: 1px solid var(--nl-line-strong); font: inherit; font-size: 13.5px; }
body.look-new .sf-day-nav { display: flex; flex-wrap: wrap; gap: 4px 12px; flex-basis: 100%; font-size: 13px; font-weight: 600; }
body.look-new .sf-groups .mini-select { padding: 7px 10px; min-width: 200px; font: inherit; font-size: 13.5px; border: 1px solid var(--nl-line-strong); background: #fff; }

/* ── what is filtering the list ── */
body.look-new .nl-on { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
body.look-new .nl-on-lbl { color: var(--nl-muted); font-size: 13.5px; font-weight: 700; }
body.look-new .nl-on-x {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 5px 4px 12px; border-radius: 999px;
  background: var(--nl-blue-bg); color: var(--nl-blue); font-size: 13px; font-weight: 700;
}
body.look-new .nl-on-x a { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: inherit; }
body.look-new .nl-on-x a:hover { background: rgba(0, 94, 133, .14); }
body.look-new .nl-on-clear { font-size: 13.5px; font-weight: 700; }

/* ── the list ── */
body.look-new .page > h2 { margin: 18px 0 10px; font-size: 20px; font-weight: 800; color: var(--nl-ink); }
body.look-new .nl-rcards { gap: 9px; }
body.look-new a.nl-rcard {
  display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-radius: var(--nl-radius);
  color: var(--nl-ink); text-decoration: none;
}
body.look-new a.nl-rcard:hover { color: var(--nl-ink); text-decoration: none; border-color: var(--nl-line-hover); box-shadow: var(--nl-shadow-hover); }
body.look-new .nl-tile { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 14px; }
body.look-new .nl-tone0 { background: var(--nl-tone0-bg); color: var(--nl-tone0); }
body.look-new .nl-tone1 { background: var(--nl-tone1-bg); color: var(--nl-tone1); }
body.look-new .nl-tone2 { background: var(--nl-tone2-bg); color: var(--nl-tone2); }
body.look-new .nl-tone3 { background: var(--nl-tone3-bg); color: var(--nl-tone3); }
body.look-new .nl-tone4 { background: var(--nl-tone4-bg); color: var(--nl-tone4); }
body.look-new .nl-tone5 { background: var(--nl-tone5-bg); color: var(--nl-tone5); }
body.look-new .nl-rc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.look-new .nl-rc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; font-size: 15px; line-height: 1.35; }
body.look-new .nl-rc-line .sr-ref { font-variant-numeric: tabular-nums; }
body.look-new .nl-rc-main small { font-size: 13.5px; color: var(--nl-muted); overflow-wrap: anywhere; }
body.look-new .nl-rc-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
body.look-new :is(.nl-rc-tags, .nl-rc-line) .chip { margin-left: 0; }
body.look-new .chip.nl-chip-purple { background: var(--nl-purple-bg); color: var(--nl-purple); }
body.look-new .nl-rc-date { flex: none; width: 92px; text-align: right; font-size: 13px; color: var(--nl-muted); }
body.look-new .nl-rc-go { flex: none; display: grid; color: var(--nl-muted); }
body.look-new a.nl-rcard.nl-exact { border: 2px solid #1a8c4e; background: #f4fbf6; }
body.look-new .nl-empty {
  padding: 28px 18px; text-align: center; background: #fff; border: 1px solid var(--nl-line); border-radius: var(--nl-radius);
}
body.look-new .nl-empty-ic {
  display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 10px; border-radius: 50%;
  background: var(--nl-blue-bg); color: var(--nl-blue);
}
body.look-new .nl-empty strong { font-size: 16px; }
body.look-new .nl-empty p { margin: 4px 0 0; color: var(--nl-muted); }

@media (max-width: 900px) {
  body.look-new .sf-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  body.look-new .page { padding: 12px 12px 28px; }
  body.look-new .nl-top { gap: 10px; margin-bottom: 12px; }
  body.look-new .nl-top .page-user { flex-basis: 100%; order: 2; margin-left: 0; }
  body.look-new .nl-top .app-nav { order: 3; }
  body.look-new .nl-hero { border-radius: 18px; }
  body.look-new .nl-hero-in { padding: 20px 16px 72px; gap: 12px; }
  body.look-new .nl-hero--slim .nl-hero-in { padding: 14px 14px 40px; }
  body.look-new .nl-hills { height: 62px; }
  body.look-new .nl-sun {
    width: 44px; height: 44px; right: 9%; bottom: 20px;
    box-shadow: 0 0 0 7px rgba(255, 210, 87, .16), 0 0 32px 10px rgba(255, 210, 87, .28);
  }
  body.look-new .nl-search { flex-basis: 100%; padding-left: 14px; }
  body.look-new .nl-search input { font-size: 16px; }
  body.look-new .nl-search button { min-height: 44px; padding: 0 18px; }
  body.look-new .nl-new, body.look-new .nl-ghost { flex: 1; }
  body.look-new .nl-tries { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; }
  body.look-new .nl-tries::-webkit-scrollbar { display: none; }
  body.look-new .nl-try { min-height: 36px; }
  body.look-new .nl-dept { gap: 6px; }
  body.look-new .nl-seg { display: flex; width: 100%; }
  body.look-new .nl-seg label { flex: 1; padding: 8px 6px; text-align: center; }
  body.look-new .sf-groups { grid-template-columns: 1fr; }
  body.look-new a.nl-rcard { flex-wrap: wrap; align-items: flex-start; padding: 11px 12px; }
  body.look-new .nl-rc-main { flex-basis: calc(100% - 60px); }
  body.look-new .nl-rc-tags { justify-content: flex-start; margin-left: 56px; }
  body.look-new .nl-rc-date { width: auto; text-align: left; }
  body.look-new .nl-rc-go { display: none; }
}


/* ═══ Stage 3: the band of a Business, special or future booking ══════════
   booking.php (.bw-header.nl-band) + services/booking_glance.php; the drawing
   BS-Booking's top. The header keeps every piece it had (title edit, the ⋮
   menu, view only, the bus); the band adds an icon tile, a line above the
   name, four tiles, Open Till and the hills. */
body.look-new .bw-header.nl-band {
  position: relative; flex-wrap: wrap; align-items: center; gap: 14px 16px;   /* not clipped: the ⋮ menu drops out of it */
  margin: 14px 1.25rem 0; padding: 18px 22px 46px; border-radius: 20px;
}
body.look-new .nl-band > :not(.nl-band-hills) { position: relative; z-index: 1; }
body.look-new .nl-band-ic {
  display: grid; place-items: center; flex: none; width: 54px; height: 54px; border-radius: 16px;
  background: rgba(255, 255, 255, .16); color: #fff;
}
body.look-new .nl-band .bw-line1 { flex: 1 1 320px; min-width: 0; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
body.look-new .nl-eyebrow {
  flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 2px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; opacity: .95;
}
body.look-new .nl-status {
  display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border-radius: 999px;
  background: #fff; color: #00405f; letter-spacing: 0; text-transform: none; font-weight: 700;
}
body.look-new .nl-status .status-dot { width: 8px; height: 8px; border: 0; }

/* the organisation is the headline; the contact and the title sit under it */
body.look-new .nl-band .cust-strip-who {
  flex-basis: 100%; padding: 0; border-radius: 0; background: none; box-shadow: none; color: #fff;
  font-size: 27px; font-weight: 800; line-height: 1.18; letter-spacing: -.01em; white-space: normal;
}
body.look-new .nl-band .cust-strip-who:hover { background: none; text-decoration: underline; text-underline-offset: 4px; }
body.look-new .nl-band .cust-strip-who > .ic { display: none; }
body.look-new .nl-band .cust-strip-who .m-number {
  margin-left: 6px; padding: 1px 9px; border-radius: 999px; vertical-align: 5px;
  background: rgba(255, 255, 255, .18); color: #fff; font-size: 12px; font-weight: 700;
}
body.look-new .nl-band .bw-line1 h1 { font-size: 27px; font-weight: 800; line-height: 1.18; }
body.look-new .nl-band .bw-line1:has(.cust-strip-who) h1 { font-size: 15px; font-weight: 700; }
body.look-new .nl-band .bw-org { font-size: 15px; font-weight: 600; opacity: .9; }
body.look-new .nl-band .bw-titleline { font-size: 15px; }
body.look-new .nl-band .bw-titleline::before { content: "\00b7"; margin-right: 8px; }
body.look-new .nl-band .bw-ref { display: none; }          /* the ref is in the line above now */
body.look-new .nl-band .title-edit input { color: var(--nl-ink); }

/* the four tiles: dates, people, value, what is owed */
body.look-new .nl-tiles { display: flex; flex-wrap: wrap; gap: 8px; }
body.look-new .nl-stat {
  display: flex; flex-direction: column; min-width: 96px; padding: 8px 14px 9px; border-radius: 14px;
  background: var(--nl-tile); border: 1px solid var(--nl-tile-line); color: #fff; text-decoration: none;
}
body.look-new a.nl-stat:hover { background: rgba(255, 255, 255, .26); color: #fff; text-decoration: none; }
body.look-new .nl-stat b { font-size: 20px; line-height: 1.2; white-space: nowrap; }
body.look-new .nl-stat span { font-size: 12.5px; opacity: .94; white-space: nowrap; }
body.look-new .nl-stat.is-unset b,
body.look-new .nl-stat.is-none b { font-size: 16px; line-height: 1.5; opacity: .85; }
body.look-new .nl-stat.is-over { background: var(--nl-tile-owed); border-color: var(--nl-tile-owed-line); }
body.look-new a.nl-stat.is-over:hover { background: #d43b49; }

/* Open Till and the ⋮ */
body.look-new .nl-band .bw-tools { gap: 6px; }
body.look-new .nl-band .bw-tools > .status-dot { display: none; }   /* said in words in the line above */
body.look-new .nl-band-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 15px; border-radius: 999px;
  background: #fff; color: var(--nl-ink); font-weight: 700; font-size: 13.5px; text-decoration: none; white-space: nowrap;
}
body.look-new .nl-band-btn:hover { background: #f2f7fb; color: var(--nl-ink); text-decoration: none; }
body.look-new .nl-band .veh-booked,
body.look-new .nl-band .veh-notbooked {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--nl-radius-sm);
  background: rgba(255, 255, 255, .16); filter: none;
}
body.look-new .nl-band .veh-notbooked { background: var(--nl-tile-owed); }

body.look-new .nl-band-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 46px; display: block; z-index: 0; border-radius: 0 0 20px 20px; }
@media (max-width: 760px) { body.look-new .nl-band-hills { border-radius: 0 0 16px 16px; } }

/* tab icons and counts */
body.look-new .bw-tab .ic { vertical-align: -3px; }
body.look-new .nl-tab-n {
  margin-left: 2px; padding: 0 6px; border-radius: 999px;
  background: var(--nl-tab-count); color: var(--nl-tab-ink); font-size: 11.5px; font-weight: 700;
}
body.look-new .bw-tab.selected .nl-tab-n { background: var(--nl-sub-on-bg); color: var(--nl-tab-on); }

@media (max-width: 760px) {
  body.look-new .bw-header.nl-band { margin: 8px .5rem 0; padding: 14px 14px 40px; gap: 10px 12px; border-radius: 16px; }
  body.look-new .nl-band-ic { width: 44px; height: 44px; border-radius: 13px; }
  body.look-new .nl-band .cust-strip-who,
  body.look-new .nl-band .bw-line1 h1 { font-size: 22px; }
  body.look-new .nl-band .bw-line1:has(.cust-strip-who) h1 { font-size: 15px; }
  body.look-new .nl-band .cust-strip-who { display: block; }   /* app.css wraps it as a flex pill on a phone */
  body.look-new .nl-band .cust-strip-who .m-number { display: inline-block; flex-basis: auto; width: auto; margin-left: 6px; }
  body.look-new .nl-tiles { flex-basis: 100%; }
  body.look-new .nl-stat { flex: 1 1 40%; min-width: 0; }
  body.look-new .nl-band .bw-tools { margin-left: auto; }
}


/* ═══ Stage 4: inside the Business tabs ═══════════════════════════════════
   The drawings BS-Booking, BS-Programme, BS-Financial, BS-Notes, BS-Actions
   and the Kit. Markup added only when new_look() is on: faces (staff_abbr()
   and staff_face_for(), functions.php), the Settings switch (booking_booking),
   the date tile (programme_diary_programmes), group rings (actions). */

/* a face beside initials or a name, wherever they show */
body.look-new .nl-who { display: inline-flex; align-items: center; gap: 5px; vertical-align: middle; }
body.look-new .nl-who abbr { text-decoration: none; }
body.look-new .card dd .nl-face { margin-right: 7px; vertical-align: middle; }
body.look-new .card dd:has(> .nl-face) { display: flex; align-items: center; }

/* small labels and a tick with its words */
body.look-new .nl-lbl { margin: 0 0 7px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--nl-muted); }
body.look-new .nl-tick { display: inline-flex; align-items: center; gap: 9px; margin-top: 14px; font-size: 14px; font-weight: 600; cursor: pointer; }
body.look-new .nl-tick input { width: 18px; height: 18px; margin: 0; }

/* a light three-way switch on a card (the kind of booking) */
body.look-new .nl-seg-light { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: 999px; background: var(--nl-track); }
body.look-new .nl-seg-light label {
  position: relative; padding: 5px 13px; border-radius: 999px; cursor: pointer;
  color: var(--nl-tab-ink); font-weight: 700; font-size: 13.5px;
}
body.look-new .nl-seg-light input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
body.look-new .nl-seg-light label:has(input:checked) { background: #fff; color: var(--nl-tab-on); box-shadow: 0 1px 4px rgba(0, 40, 70, .14); }
body.look-new .nl-seg-light label:has(input:focus-visible) { outline: var(--nl-focus); outline-offset: 2px; }

/* view-only: a switch is pressed through its label, so freeze the labels too
   (app.css freezes the inputs; the server refuses the save regardless) */
body.look-new.no-edit .nl-seg-light label,
body.look-new.no-edit .actions td label:has(> input[data-write]),
body.look-new.no-edit .nl-tick:has(> input[data-write]) { pointer-events: none; opacity: .6; }

/* ── Booking: the lists under the cards as single lines ── */
body.look-new #bk_vs_cards .vs-card,
body.look-new .cover .row-cards .row-card { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 9px 14px; }
body.look-new #bk_vs_cards .vs-card .rc-head,
body.look-new .cover .row-cards .row-card .rc-head { flex: 0 1 auto; }
body.look-new #bk_vs_cards .vs-card .rc-grid,
body.look-new .cover .row-cards .row-card .rc-grid { margin-top: 0; gap: 4px 16px; font-size: 13.5px; }
body.look-new .rc-title { font-weight: 800; }

/* ── Programme: each day a card with a date tile ── */
body.look-new .prog-day {
  border: 1px solid var(--nl-line); border-left: 1px solid var(--nl-line); border-radius: var(--nl-radius);
  background: #fff; padding: 14px 16px 16px; margin-bottom: 14px;
}
body.look-new .prog-day-head { gap: 12px; margin-bottom: 12px; }
body.look-new .prog-day-head strong { font-size: 17px; font-weight: 800; }
body.look-new .nl-datetile {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border-radius: 14px; line-height: 1; gap: 2px;
  background: var(--nl-amber-bg); color: var(--nl-amber);
}
body.look-new .nl-datetile b { font-size: 18px; font-weight: 800; }
body.look-new .nl-datetile span { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
body.look-new .prog-slot { border-radius: 14px; padding: 8px; background: #f6f9fb; }
body.look-new .prog-slot.prog-day-confirmed,
body.look-new .prog-slot.prog-day-confirmed_eve { background: #f3fbf6; }
body.look-new .prog-slot.prog-day-provisional { background: #f3f9fe; }

/* ── Financial: invoices and payments as lines you can read across ── */
/* Every money list (payments, invoices, cross payments, baskets, passes) one
   full-width line each: the amount and its tags on the left with the buttons
   at the right end of the same line, and the date, note and who along one
   line under it. As narrow cards the four buttons fell onto a line of their
   own in the middle of the card (David, 2026-12-03: "the icons on the
   payment panel are looking out of place"). */
/* (.dc-list, the Business Invoices and Payments sub-tabs, already lays its
   cards out as one line each in app.css; these rules are for the card grids) */
body.look-new .financial .dc-cards { grid-template-columns: 1fr; gap: 8px; }
body.look-new .financial .dc-card { padding: 10px 14px; font-size: 13.5px; }
body.look-new .financial .dc-card:hover { border-color: var(--nl-line); box-shadow: none; }   /* a line to read, not a button */
body.look-new .financial .dc-top strong { font-size: 16px; }
body.look-new .financial .dc-cards:not(.dc-list) > .dc-card { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 3px 0; }
body.look-new .financial .dc-cards:not(.dc-list) > .dc-card > .dc-top { flex-basis: 100%; align-items: center; }
body.look-new .financial .dc-cards:not(.dc-list) > .dc-card > .dc-line { color: var(--nl-muted); font-size: 13px; }
body.look-new .financial .dc-cards:not(.dc-list) > .dc-card > .dc-line strong { color: var(--nl-ink); }
body.look-new .financial .dc-cards:not(.dc-list) > .dc-card > .dc-line + .dc-line::before { content: "·"; margin: 0 8px; }
body.look-new .financial .dc-cards:not(.dc-list) .dc-actions { margin-left: auto; }
/* on a phone the details stack: no dot at the start of a line */
@media (max-width: 760px) {
  body.look-new .financial .dc-cards:not(.dc-list) > .dc-card > .dc-line { flex-basis: 100%; }
  body.look-new .financial .dc-cards:not(.dc-list) > .dc-card > .dc-line + .dc-line::before { content: none; }
}

/* ── Notes: a bigger head, the pinned one marked ── */
body.look-new .note-head { gap: 8px 10px; padding-bottom: 8px; margin-bottom: 8px; border-bottom-color: #f0f3f6; }
body.look-new .note-head strong { font-size: 14px; }
body.look-new .note-body { font-size: 14.5px; line-height: 1.55; }
body.look-new .note-card.note-pinned { border-left: 1px solid var(--nl-line); border-color: #f0dca0; background: #fffdf5; }
body.look-new .note-type-chip { background: var(--nl-grey-bg); }

/* ── Actions: rings on the groups, Yes / No / N/A as pills ── */
body.look-new .actions .panel h2 { display: flex; align-items: center; gap: 10px; }
body.look-new .nl-grp { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--nl-muted); }
body.look-new .nl-ring circle { fill: none; stroke-width: 4; }
body.look-new .nl-ring__track { stroke: var(--nl-ring-track); }
body.look-new .nl-ring__fill { stroke: var(--nl-ring-going); stroke-linecap: round; }
body.look-new .nl-ring.is-full .nl-ring__fill { stroke: var(--nl-ring-done); }
body.look-new .nl-ring text { font-size: 9.5px; font-weight: 800; fill: var(--nl-ink); text-anchor: middle; }
body.look-new .actions table.data td { border-bottom-color: #f0f3f6; padding: .55rem .6rem; }
body.look-new .actions td label:has(> input[type=radio]) {
  position: relative; display: inline-flex; align-items: center; margin: 2px 2px 2px 0; padding: 3px 11px;
  border-radius: 999px; border: 1px solid var(--nl-line-strong); background: #fff; cursor: pointer;
  font-size: 13px; font-weight: 700; color: var(--nl-tab-ink);
}
body.look-new .actions td label > input[type=radio] { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
body.look-new .actions td label:has(> input[type=radio]:checked) { background: var(--nl-blue-bg); border-color: var(--nl-blue); color: var(--nl-blue); }
body.look-new .actions td label:has(> input[type=radio]:disabled) { cursor: default; opacity: .7; }
body.look-new .actions td label:has(> input[type=radio]:focus-visible) { outline: var(--nl-focus); outline-offset: 1px; }
body.look-new .actions input[type=checkbox] { width: 18px; height: 18px; }
body.look-new .actions .action-set-by { font-size: 12.5px; white-space: nowrap; }

@media (max-width: 760px) {
  body.look-new .prog-day { padding: 12px; }
  body.look-new .prog-day-head strong { font-size: 15px; }
  body.look-new .nl-grp-n { display: none; }
}


/* ═══ Stage 5: the Customer window (George's frame) ═══════════════════════
   includes/cs_window.php; the drawings CS-Customer, CS-Booking, CS-Payments,
   Phone-Booking. Same tabs, same order, same &open= behaviour: only the
   finish. The band becomes a rounded card over the hills, its booking tabs
   glass tiles with the open one white; the money strip gets a ring. */
body.look-new .cs-band {
  position: relative; margin: 14px 1.25rem 0; padding: 18px 22px 52px; border-radius: 20px;
}
body.look-new .cs-band > :not(.nl-band-hills) { position: relative; z-index: 1; }
body.look-new .cs-ident { gap: 10px 16px; padding-bottom: 16px; }
body.look-new .cs-avatar { width: 54px; height: 54px; font-size: 19px; font-weight: 800; background: rgba(255, 255, 255, .18); }
body.look-new .cs-ident h1 { font-size: 27px; font-weight: 800; letter-spacing: -.01em; }
body.look-new .cs-mchip { background: rgba(255, 255, 255, .18); font-weight: 700; }
body.look-new .cs-det { font-size: 14px; color: rgba(255, 255, 255, .95); }

/* the booking tabs: tiles, not folder tabs */
body.look-new .cs-btabs { gap: 8px; align-items: stretch; padding-bottom: 4px; }
body.look-new .cs-btab {
  border-radius: 14px; padding: 7px 15px; border: 1px solid var(--nl-tile-line);
  background: var(--nl-tile); color: #fff; line-height: 1.25;
}
body.look-new .cs-btab:hover { background: rgba(255, 255, 255, .26); color: #fff; }
body.look-new .cs-btab b { font-size: 14px; font-weight: 700; }
body.look-new .cs-btab small { color: rgba(255, 255, 255, .85); font-size: 12px; }
body.look-new .cs-btab.selected,
body.look-new .cs-btab.selected:hover {
  background: #fff; color: #4c1580; border-color: #fff; box-shadow: 0 6px 18px rgba(30, 0, 60, .3);
}
body.look-new .cs-btab.selected small { color: var(--nl-muted); }
/* the Customer tab stays put while the booking tabs scroll under it, so it
   needs a solid colour: the band's own, where it sits */
body.look-new .cs-btab-cust { background: #4f1c84; box-shadow: none; }
body.look-new .cs-btab-cust:hover { background: #5d2697; box-shadow: none; }
body.look-new .cs-btab-cust.selected,
body.look-new .cs-btab-cust.selected:hover { background: #fff; box-shadow: 0 6px 18px rgba(30, 0, 60, .3); }
body.look-new .cs-btabs-lbl { border-left: 0; margin-left: 2px; padding: 0 2px 0 6px; color: rgba(255, 255, 255, .85); }
body.look-new .cs-btab-more { background: transparent; border: 1px dashed rgba(255, 255, 255, .45); justify-content: center; }
body.look-new .cs-btab-more b { color: #fff; }
body.look-new .cs-pill { background: rgba(255, 255, 255, .22); }
body.look-new .cs-btab.selected .cs-pill { background: var(--nl-purple-bg); color: var(--nl-purple); }

/* inside a booking: the crumb and the strip */
body.look-new .cs-crumb { padding-top: 14px; }
body.look-new .cs-strip { gap: 20px; padding: 16px 20px; border-radius: var(--nl-radius); }
body.look-new .cs-strip-title { font-size: 19px; font-weight: 800; }
body.look-new .cs-money { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: center; }
body.look-new .cs-money strong { font-size: 20px; font-weight: 800; }
body.look-new .nl-cs-ring { display: grid; place-items: center; }

/* the Customer overview */
body.look-new .cs-sec-head h2 { font-size: 19px; font-weight: 800; }
body.look-new .cs-stats { border-radius: var(--nl-radius); box-shadow: none; }
body.look-new .cs-stats > div { padding: 14px 20px; }
body.look-new .cs-stats strong { font-size: 22px; font-weight: 800; }
body.look-new .cs-lrow { padding: 11px 14px; font-size: 14px; }
body.look-new .cs-lt { font-weight: 800; }
body.look-new .cs-seg { border-color: var(--nl-line-strong); }
body.look-new .cs-seg button[aria-pressed="true"] { background: var(--nl-purple-bg); color: var(--nl-purple); }
body.look-new .cs-seg button[aria-pressed="true"] .cs-seg-n { color: var(--nl-purple); }

@container bw (max-width: 760px) {
  body.look-new .cs-band { margin: 8px .5rem 0; padding: 14px 14px 44px; border-radius: 16px; }
  body.look-new .cs-ident h1 { font-size: 21px; }
  body.look-new .cs-btab { padding: 6px 12px; }
  body.look-new .cs-money { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.look-new .nl-cs-ring { display: none; }
}
@container bw (max-width: 760px) {
  body.look-new .nl-band-hills { border-radius: 0 0 16px 16px; }
}

/* ═══ Stage 6: the rest ═══════════════════════════════════════════════════
   Dialogs and the New booking panel take the window's colour in their head;
   Pipeline's top line as the home page's (pipeline.php); faces on the
   Programme's instructors and a date chip on venue rows (templates). George's
   voucher panel keeps only the stage 1 skin: it is his, newer than the drawings. */

/* every dialog's title becomes a header in the window's colour (blue, purple,
   green, grey): all of them open with their <h3>, so this is CSS alone */
body.look-new dialog.bw-dialog { overflow-x: hidden; }
body.look-new dialog.bw-dialog:has(> h3:first-child) { padding-top: 0; }
body.look-new dialog.bw-dialog > h3:first-child {
  margin: 0 -20px 14px; padding: 14px 20px;
  background: var(--nl-glow), var(--nl-band); color: #fff; font-size: 17px; font-weight: 800;
}
body.look-new dialog.bw-dialog > h3:first-child .muted,
body.look-new dialog.bw-dialog > h3:first-child a { color: rgba(255, 255, 255, .9); }

/* the New booking panel */
body.look-new .nb-head { background: var(--nl-glow), var(--nl-band); color: #fff; border-bottom: 0; }
body.look-new .nb-head h2 { color: #fff; font-weight: 800; }
body.look-new .nb-head p { color: rgba(255, 255, 255, .92); }
body.look-new .nb-x { color: #fff; background: rgba(255, 255, 255, .16); border-color: transparent; border-radius: 10px; }
body.look-new .nb-x:hover { background: rgba(255, 255, 255, .28); color: #fff; }

/* a day as an amber chip (Booking tab, venue rows) */
body.look-new .nl-datechip {
  display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  background: var(--nl-amber-bg); color: var(--nl-amber); font-size: 12.5px; font-weight: 700;
}
body.look-new .ps-staff .nl-who { margin-right: 4px; }

/* ── The Notes side column and month dividers (David, 2026-12-03: "build the
   notes side column"; tabs/notes.php) ── */
body.look-new .nl-notes-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 16px; align-items: start; }
body.look-new .nl-notes-main { min-width: 0; }
body.look-new .nl-notes-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 12px; }
body.look-new .nl-side-card {
  background: #fff; border: 1px solid var(--nl-line); border-radius: var(--nl-radius); padding: 14px 16px;
  display: flex; flex-direction: column; gap: 8px; font-size: 14px;
}
body.look-new .nl-side-card h2 { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 15px; font-weight: 800; color: var(--nl-ink); }
body.look-new .nl-side-card h2 .ic { color: #6a45b8; }
body.look-new .nl-side-meta { margin: 0; font-size: 12.5px; color: var(--nl-muted); }
body.look-new .nl-side-head { margin: 0; font-weight: 600; line-height: 1.45; }
body.look-new .nl-side-card ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; line-height: 1.4; }
body.look-new .nl-side-card > a { font-weight: 700; font-size: 13.5px; }
body.look-new .nl-side-who { display: flex; align-items: center; gap: 10px; margin: 0; }
body.look-new .nl-side-who > span:not(.chip):not(.nl-face) { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.look-new .nl-side-who .chip { margin-left: 0; }
body.look-new .nl-month {
  margin: 8px 0 -2px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--nl-muted);
}
body.look-new .nl-month.note-hidden { display: none; }
body.look-new .nl-month.note-hidden.shown { display: block; }
@media (max-width: 1000px) {
  body.look-new .nl-notes-grid { grid-template-columns: 1fr; }
  body.look-new .nl-notes-side { position: static; order: -1; }   /* on a narrow window the summary comes first */
}

/* ── The Financial summary (David, 2026-12-03: "build ... the financial
   summary"; tabs/_nl_fin_summary.php, at the top of every Financial sub-tab) ── */
body.look-new .nl-finsum {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 0 0 14px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--nl-line); border-radius: var(--nl-radius);
}
body.look-new .nl-finsum-ring { display: flex; flex-direction: column; align-items: center; gap: 2px; flex: none; }
body.look-new .nl-finsum-ring small { font-size: 11.5px; color: var(--nl-muted); font-weight: 600; }
body.look-new .nl-finsum-fig { flex: 1 1 140px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.look-new .nl-finsum-fig b { font-size: 23px; font-weight: 800; line-height: 1.15; color: var(--nl-ink); white-space: nowrap; }
body.look-new .nl-finsum-fig span { font-size: 13px; color: var(--nl-muted); }
body.look-new .nl-finsum-fig.is-in b { color: var(--nl-green); }
body.look-new .nl-finsum-fig.is-over b { color: var(--nl-red); }
body.look-new .nl-finsum-fig.is-over span { color: var(--nl-red); font-weight: 700; }
body.look-new .nl-finsum-fig.is-paid b { color: var(--nl-green); }
body.look-new .nl-finsum-fig.is-none b { font-size: 18px; color: var(--nl-muted); }
@media (max-width: 640px) {
  body.look-new .nl-finsum { gap: 12px 18px; padding: 14px; }
  body.look-new .nl-finsum-fig { flex-basis: 40%; }
  body.look-new .nl-finsum-fig b { font-size: 19px; }
}
