/* One look for every customer page: a light sheet of paper on a pale desk, the business's name on top, the content,
   the business's contacts at the bottom. Loaded after the page's own stylesheet; the pages differ in what is on the
   sheet, not in the sheet. Always light (a customer's phone in dark mode still shows paper). Printing keeps each
   page's own print rules, so everything here is for the screen. */
:root { color-scheme: light; }
@media screen {
  :root body {
    --bg: #ecefe9; --paper: #fdfcf9; --ink: #182420; --muted: #5a645f; --line: #d7dbd3; --pp-accent: #0f6a62; --pp-soft: #e3efec;
    --ok: #2e6b48; --warn: #96423b;
    /* each page's own names for the same things */
    --tag: var(--paper); --card: var(--paper); --surface: var(--paper); --tag-edge: var(--line); --rule: var(--line); --guide: var(--line);
    --fold: transparent; --margin: transparent; --teal: var(--pp-accent); --plum: var(--pp-accent); --accent: var(--pp-accent);
    --soft: var(--pp-soft); --teal-soft: var(--pp-soft); --stamp: var(--pp-accent); --hv: #f4a100; --hv-ink: #6a4600;
    background: var(--bg); color: var(--ink);
  }

  /* the sheet */
  .tag, .docket, .slip, .bag, .ticket, article.sheet, main.sheet, .care-page .card, .care-page .sticker {
    background: var(--paper); background-image: none; border: 1px solid var(--line); border-radius: 10px;
    box-shadow: 0 1px 2px #18242010, 0 12px 28px -24px #18242066; color: var(--ink);
  }
  main.sheet { margin: 20px auto 48px; padding: 20px 20px 24px; max-width: 560px; }
  article.sheet { padding: 24px 22px 22px; }
  .tag { padding-top: 22px; }
  .tag-wrap, .docket-wrap, .slip-wrap, .bag-wrap, .sheet-wrap, .card-wrap { padding-top: 20px; }
  /* no string, punched holes, binder rings, torn or pinked edges */
  .tag::before, .hole, .ring, .punch, .bag::before, .bag::after, .slip::before, .ticket::before, .ticket::after,
  .care-page .card::before, .care-page .card::after, .care-page .sticker::before, .care-page .sticker::after { display: none; }

  /* the business's name on top, the same on every page */
  .tag-head, .docket-head, .slip-head { border-bottom: 1px solid var(--line); }
  .tag-head .shop, .docket-head .shop, .slip-head .shop, main.sheet > .shop, .care-page .top .shop { color: var(--muted); font-weight: 700; font-size: 15px; }

  /* buttons: one filled main action, outlined second ones */
  .go, .care-page .staff .btn { background: var(--pp-accent); color: #fff; border: 0; border-radius: 8px; }
  .go.quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
  input, select, textarea { background: #fff; color: var(--ink); border-color: var(--line); border-radius: 8px; }
  input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--pp-accent) 55%, transparent); outline-offset: 2px; }
  a { color: var(--pp-accent); }
  .go, a.go, .ll-langs a, .powered a, .btn { color: inherit; }
  .go:not(.quiet), a.go:not(.quiet) { color: #fff; }

  /* what happened after the customer's action: said once, on top, in green */
  .flash, .pp-done { margin: 0 0 14px; padding: 12px 14px; background: #e7f1ea; border: 0; border-left: 4px solid var(--ok); border-radius: 0 8px 8px 0; color: var(--ink); font-weight: 600; }
  /* a problem: the same place and shape, in red, so a customer never reads an error as "done" */
  .err { margin: 0 0 14px; padding: 12px 14px; background: #f8e6e4; border: 0; border-left: 4px solid #b3261e; border-radius: 0 8px 8px 0; color: #5c1410; font-weight: 600; font-size: 16px; }
  .err:empty { display: none; }
  /* the dead end page */
  .nf h1 { font-size: 24px; margin: 0 0 10px; }
  .nf .nf-hint { color: var(--muted); margin-top: 10px; }

  /* the business's contacts at the bottom */
  .foot, .tag-foot .contact, .docket-foot .contact, .slip-foot .contact, .bag-foot, .sheet-foot { color: var(--muted); font-size: 15px; }
  main.sheet > .foot { white-space: pre-line; margin: 26px 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
  .powered { font-size: 12.5px; opacity: .7; }
  /* the QR code is a link to the page; the button under it saves the link (a phone cannot scan its own screen) */
  .qr-link { display: inline-block; line-height: 0; }
  .qr-save { display: block; margin: 10px auto 4px; min-height: 48px; padding: 0 18px; border-radius: 8px; border: 1.5px solid var(--pp-accent);
    background: transparent; color: var(--pp-accent); font: inherit; font-weight: 700; cursor: pointer; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

  /* every control a thumb has to hit: at least 48 px (times, specialists, calendar days, send, clear signature) */
  .times a, .msg-form button, .go, button.go { min-height: 52px; }
  .chips-row a { min-height: 48px; }
  .cal td a, .cal td span { padding: 0; min-height: 46px; display: flex; align-items: center; justify-content: center; }
  .sig-clear { min-height: 44px; padding: 8px 0; }
  details.other > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
  details.confirm[open] { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
  details.confirm p { margin: 4px 0 10px; color: var(--muted); }
  .powered a { text-decoration: none; }
}
@media screen and (max-width: 600px) {
  main.sheet { margin: 10px 10px 36px; padding: 16px 16px 22px; }
}
