/* rmedia-barber — desktop (≥1024px). Layout copied from the Vagaro desktop screenshots:
   top nav, calendar left rail, wide grid. Phone layout below 1024 is untouched. */

#topnav, #rail { display: none; }

@media (min-width: 1024px) {
  body.app { --tbh: var(--cal-topnav); }
  #topnav { display: flex; }
  body.app .pill, body.app .fab { display: none; }

  /* ---------- top nav ---------- */
  #topnav {
    position: sticky; top: 0; z-index: 50; align-items: center; gap: 4px;
    height: var(--cal-topnav); padding: 0 16px;
    background: var(--snpz-yellow); border-bottom: 2px solid #111;   /* the site's yellow, black ink */
    color: #111;
  }
  .tn-logo { display: grid; place-items: center; width: 38px; height: 38px; margin-right: 10px; }
  .tn-logo img { width: 36px; height: 36px; }
  .tn-tabs { display: flex; gap: 2px; flex: 1; min-width: 0; }
  .tn-tab {
    display: flex; align-items: center; height: 40px;
    background: none; border: 0; color: #111; font: inherit; font-size: 16px; font-weight: 500;
    padding: 0 16px; border-radius: 8px; cursor: pointer; text-decoration: none; white-space: nowrap;
  }
  .tn-tab:hover { background: rgba(0,0,0,.08); }
  .tn-tab.on { background: rgba(0,0,0,.14); font-weight: 600; }
  .tn-right { display: flex; align-items: center; gap: 10px; }
  .tn-icon { position: relative; background: none; border: 0; color: #111; cursor: pointer;
    display: grid; place-items: center; width: 32px; height: 32px; }
  .tn-count {
    position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px;
    border-radius: 999px; background: #1c1d21; color: #fff; font-size: 10.5px; font-weight: 700;
    display: grid; place-items: center; font-variant-numeric: tabular-nums;
  }
  .tn-shop { font-size: 14px; font-weight: 600; white-space: nowrap; }
  .tn-ava { background: none; border: 0; cursor: pointer; padding: 0; }

  /* ---------- shell: rail + page ---------- */
  /* the 720px rule clamps the page to a phone column; a desktop page takes the screen */
  body.app .page, body.app .tb { max-width: none; margin-left: 0; margin-right: 0; }
  body.app:has(#rail:not(:empty)) .tb,
  body.app:has(#rail:not(:empty)) .page { margin-left: var(--cal-sidebar); }
  #rail:not(:empty) {
    display: block; position: fixed; left: 0; top: var(--cal-topnav); bottom: 0;
    width: var(--cal-sidebar); z-index: 40;
    background: var(--paper-0); border-right: 1px solid var(--line);
    padding: 12px 0 0; overflow-y: auto; overflow-x: hidden;
  }
  .rl-title { font-size: 19px; font-weight: 600; padding: 0 14px 10px; }
  .rl-tabs { display: flex; gap: 14px; padding: 10px 14px 6px; border-bottom: 1px solid var(--line); }
  .rl-tab { background: none; border: 0; color: var(--ink-500); font: inherit; font-size: 14px;
    font-weight: 600; padding: 0 0 6px; cursor: pointer; border-bottom: 2px solid transparent; }
  .rl-tab.on { color: var(--ink-900); border-bottom-color: var(--accent); }
  .rl-group { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .rl-head { display: flex; align-items: center; gap: 6px; padding: 0 14px 6px;
    font-size: 14px; font-weight: 600; color: var(--ink-800); }
  .rl-head .icon { width: 16px; height: 16px; color: var(--ink-500); }
  .rl-row { display: flex; align-items: center; gap: 9px; padding: 5px 14px 5px 22px;
    font-size: 13.5px; color: var(--ink-700); cursor: pointer; }
  .rl-row:hover { background: var(--paper-100); }
  .rl-row input { width: 15px; height: 15px; accent-color: var(--accent); }
  .rl-none { padding: 2px 14px 4px 22px; font-size: 12.5px; color: var(--ink-500); }
  .rl-today {
    position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; width: calc(100% - 20px);
    margin: 12px 10px; padding: 9px 12px; border: 0; border-radius: 6px; cursor: pointer;
    background: var(--fill-dark); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
  }
  .rl-today .icon { width: 17px; height: 17px; }
  .rl-today .icon:last-child { margin-left: auto; }

  /* mini month */
  .mm { padding: 4px 10px 10px; }
  .mm-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px 6px; }
  .mm-label { font-size: 13.5px; font-weight: 600; }
  .mm-nav { background: none; border: 0; color: var(--ink-500); cursor: pointer; display: grid;
    place-items: center; width: 22px; height: 22px; }
  .mm-nav .icon { width: 15px; height: 15px; }
  .mm-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; }
  .mm-dow { font-size: 10.5px; color: var(--ink-400); text-align: center; padding-bottom: 3px; }
  .mm-day { background: none; border: 0; color: var(--ink-700); font: inherit; font-size: 12px;
    font-variant-numeric: tabular-nums; height: 22px; border-radius: 4px; cursor: pointer; }
  .mm-day:hover { background: var(--paper-100); }
  .mm-day.out { color: var(--ink-400); opacity: .55; }
  .mm-day.today { color: #fff; background: var(--accent); }
  .mm-day.sel { outline: 1px solid var(--accent); }

  /* ---------- calendar toolbar (the phone header, restyled) ---------- */
  /* Only the calendar has a toolbar. Every other desktop page left an empty 64px band of
     header gradient under the nav. */
  .tb:empty { display: none; }
  body.app:has(.cal) .tb {
    background: var(--paper-50); color: var(--ink-900); border-bottom: 1px solid var(--line);
    min-height: var(--cal-toolbar); padding: 0 16px; gap: 12px;
  }
  body.app:has(.cal) .tb button { color: var(--ink-700); }
  body.app:has(.cal) .tb .datechip, body.app:has(.cal) .tb .t-menu { display: none; }
  body.app:has(.cal) .tb .t-date { font-size: 15px; font-weight: 600; color: var(--ink-900); }
  .tb .t-today {
    display: inline-flex !important; align-items: center; height: 38px; padding: 0 22px; border-radius: 8px;
    background: var(--fill-dark); color: #fff !important; font-size: 14px; font-weight: 600;
  }
  .tb .t-add {
    display: inline-flex !important; align-items: center; justify-content: center;
    height: 38px; width: 80px; border-radius: 3px;
    background: var(--accent); color: #fff !important; font-size: 14px; font-weight: 600;
  }
  .cal { height: calc(100dvh - var(--cal-topnav) - var(--cal-toolbar)); }
  /* .page's min-height is written for the phone, where the header is the only thing above
     it. On desktop the toolbar sits above it too, so that min-height overflowed the window
     by exactly the toolbar and put a 15px scrollbar down the side of the calendar — which
     came straight off the width of every day column. */
  body.app:has(.cal) .page { min-height: 0; }

  /* ---------- reports (a1) ----------
     Their reports rail is wider than the calendar's because the report names are long:
     297 CSS px measured off a1, against the calendar's 222. */
  body.app:has(.rp) { --cal-sidebar: 297px; }
  .rl-link { width: 100%; text-align: left; background: none; border: 0; font: inherit;
    font-size: 13.5px; color: var(--ink-700); text-decoration: none; cursor: pointer; }
  /* --accent-weak is a DARK-palette token and is not re-pointed by theme-light, so using
     it here painted dark-on-dark on every desktop. Same class of bug as QA-W2 and QA-W9:
     a token whose meaning flips between palettes, reused as though it were fixed. */
  .rl-link.on { background: var(--paper-100); color: var(--ink-900); font-weight: 600;
    box-shadow: inset 3px 0 0 var(--accent); }
  .rl-link .stub { margin-left: auto; }
  .rp { padding-top: 14px; }
  .rp-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
  .rp-head h1 { margin: 0; flex: 0 0 auto; }
  .rp-bar { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 320px; }
  .rp-range { font-size: 14px; color: var(--ink-600); }
  .rp-filter { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px;
    border: 1px solid var(--line); border-radius: 6px; background: var(--paper-0);
    color: var(--ink-900); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
  .rp-filter:hover { border-color: var(--accent); }
  .rp-filter .icon { width: 16px; height: 16px; }
  .rp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px; margin-bottom: 16px; }
  .rp-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px;
    background: var(--paper-0); border: 1px solid var(--line); border-radius: 8px; }
  .rp-tile-v { font-size: 24px; font-weight: 600; }
  .rp-tile-l { font-size: 12px; color: var(--ink-500); }
  .rp-note { margin-top: 12px; }
  .rp-dates { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0; }

  /* ---------- desktop pages ---------- */
  .deskpage { padding: 18px 22px 40px; }
  .deskpage.co-desk { padding: 0; }
  .deskpage h1 { font-size: 22px; font-weight: 600; margin-bottom: 14px; }
  .dtable { width: 100%; border-collapse: collapse; background: var(--paper-0);
    border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 14px; }
  .dtable th { text-align: left; padding: 11px 14px; background: #232428; color: var(--ink-600);
    font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--line); white-space: nowrap; }
  .dtable td { padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
  .dtable tr:last-child td { border-bottom: 0; }
  .dtable .num { font-variant-numeric: tabular-nums; }
  .dtable tr.total td { background: #232428; font-weight: 700; }
  .dtable a { color: var(--accent-ink); text-decoration: none; }
  .drow { display: flex; align-items: center; gap: 12px; }
  .dbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
  .dbar .grow { flex: 1; }

  /* checkout: table left, tender panel right (a12: the panel is 384 CSS px) */
  .co-desk { display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 0; align-items: start; }
  .co-main { padding: 16px 20px 168px; }        /* clears the tile bar */
  .co-side { position: sticky; top: calc(var(--cal-topnav) + 46px); border-left: 1px solid var(--line);
    background: var(--paper-0); min-height: calc(100dvh - var(--cal-topnav) - 46px); }
  .co-side .row2 { padding: 12px 16px; min-height: 50px; font-size: 15px; }
  /* THE WHOLE BOX IS THE TARGET. Grady kept clicking the name. */
  .co-cust { display: flex; align-items: center; gap: 14px; background: var(--paper-0);
    border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; cursor: pointer; }
  .co-cust:hover { background: var(--paper-100); border-color: var(--accent); }
  .co-cust:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .co-cust-empty { border-style: dashed; }
  .co-cust .nm { font-size: 18px; font-weight: 600; }
  .co-acts { display: flex; gap: 8px; flex: 0 0 auto; }
  .co-acts .btn { min-height: 34px; padding: 0 12px; font-size: 13px; }
  .co-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 14px 0;
    background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
  .co-stats div { background: var(--paper-0); padding: 12px; text-align: center; }
  .co-stats b { display: block; font-size: 14px; font-weight: 600; }
  .co-stats span { font-size: 12px; color: var(--ink-500); }
  /* Three tiles and the scan box, one size, filling the bar. Membership and Package are
     gone: we sell neither, and a tile for a thing that does not exist is dead chrome. */
  .co-tiles { position: fixed; left: 0; right: 384px; bottom: 0; z-index: 20; height: 140px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: var(--paper-0); border-top: 1px solid var(--line); }
  .co-tile { display: grid; place-content: center; justify-items: center; gap: 12px;
    background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer;
    color: var(--ink-800); font: inherit; font-size: 15px; font-weight: 600; }
  .co-tile:last-child { border-right: 0; }
  .co-tile:hover { background: var(--paper-100); }
  .co-tile-ic .icon { width: 44px; height: 44px; stroke-width: 1.4; color: var(--ink-600); }
  .co-tile:hover .co-tile-ic .icon { color: var(--accent-ink); }
  .co-scanwrap { padding: 0 20px; cursor: text; }
  .co-scan { width: 100%; text-align: center; border: 1px solid var(--line); border-radius: 6px;
    background: #232428; color: var(--ink-900); font: inherit; font-size: 14px; padding: 10px 12px; }
  body.app:has(.co-desk) .co-bar { display: none; }

  /* the menu, in the middle, the moment there is a customer */
  .co-grid { margin-top: 20px; }
  .co-cat { margin-bottom: 16px; }
  .co-cat .eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
  .co-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
  .co-svcs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
  .co-svc { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
    background: var(--paper-0); border: 1px solid var(--line); border-left: 5px solid var(--c);
    border-radius: 6px; padding: 10px 12px; color: var(--ink-900); font: inherit; }
  .co-svc:hover { background: var(--paper-100); border-color: var(--c); border-left-color: var(--c); }
  .co-svc .grow { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
  .co-svc-nm { font-size: 14px; font-weight: 600; }
  .co-svc-sub { font-size: 12px; color: var(--ink-500); }
  .co-svc-price { font-size: 14px; font-weight: 600; color: var(--money); }
  .co-side-actions { padding: 14px 16px; display: grid; gap: 10px; }
  .co-side-actions .btn { width: 100%; border-radius: 6px; }
  .co-side-actions .btn-dark { background: var(--fill-dark); color: #fff; }

  /* ---------- block context menu ---------- */
  .ctxmenu {
    position: fixed; z-index: 80; width: 268px; background: var(--paper-0);
    border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 18px 40px -12px #000;
    padding: 6px; overflow: hidden;
  }
  .ctx-head { display: flex; gap: 10px; padding: 10px; border-bottom: 1px solid var(--line-soft); }
  .ctx-head b { font-size: 14px; }
  .ctx-sub { display: block; font-size: 12px; color: var(--ink-500); }
  .ctx-item { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 8px 10px;
    background: none; border: 0; color: var(--ink-900); font: inherit; font-size: 13.5px;
    text-align: left; cursor: pointer; border-radius: 6px; }
  .ctx-item:hover { background: var(--paper-100); }
  .ctx-item b { font-weight: 600; }
  .ctx-ic { display: grid; place-items: center; width: 26px; height: 26px; flex: 0 0 auto;
    border-radius: 5px; background: var(--paper-100); color: var(--ink-700); }
  .ctx-ic .icon { width: 15px; height: 15px; }
  .ctx-danger b { color: #e2705f; }
}

@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .ctxmenu { animation: none; }
}
