/* Quid POS help site. One stylesheet, no external fonts or libraries. */
:root {
  --green: #587a09; --green-dark: #445f06; --green-soft: #eef4e0; --ink: #1c2128; --muted: #5a6472; --line: #dfe3e8;
  --bg: #f5f6f3; --card: #ffffff; --slate: #252836; --amber: #8a5a00; --amber-soft: #fff5dc; --red: #a12c2c; --red-soft: #fdeceb;
  --blue-soft: #e9f1fb; --blue: #1f5fa8; --radius: 10px; --shadow: 0 1px 2px rgba(20, 25, 35, .06), 0 4px 14px rgba(20, 25, 35, .05);
}
@media (prefers-color-scheme: dark) {
  :root { --ink: #e8ebef; --muted: #a3adba; --line: #343a48; --bg: #171a22; --card: #20242f; --green: #a5cf3b; --green-dark: #b9df57;
    --green-soft: #26301a; --amber: #f0c060; --amber-soft: #33290f; --red: #ff9a94; --red-soft: #371a1a; --blue-soft: #1a2738; --blue: #8fbcf2; --shadow: none; }
  .shot img { opacity: .94; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
img { max-width: 100%; height: auto; }
a { color: var(--green); text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }
:focus-visible { outline: 3px solid #f0a000; outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 14px; border-radius: 6px; z-index: 50; }
.skip:focus { left: 8px; }

/* header */
.top { background: var(--slate); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 600; }
.brand img { height: 30px; width: auto; display: block; }
.brand span { border-left: 1px solid #555b6e; padding-left: 10px; font-size: 18px; letter-spacing: .02em; }
.search { position: relative; flex: 1 1 260px; display: flex; }
.search input { width: 100%; font: inherit; padding: 9px 14px; border-radius: 8px; border: 1px solid #4a5063; background: #313545; color: #fff; }
.search input::placeholder { color: #aab1c0; }
.search input:focus { background: #fff; color: #111; outline: 3px solid #a5cf3b; outline-offset: 0; }
.toplinks { display: flex; align-items: center; gap: 16px; }
.toplinks a { color: #e3e7ee; text-decoration: none; font-size: 16px; }
.toplinks a:hover { color: #fff; text-decoration: underline; }
.btn { display: inline-block; background: var(--green); color: #fff !important; padding: 9px 16px; border-radius: 8px; text-decoration: none !important; font-weight: 600; border: 0; font-size: 16px; cursor: pointer; }
@media (prefers-color-scheme: dark) { .btn { color: #10140a !important; } }
.top .btn { background: #6f9a10; color: #fff !important; }
.btn:hover { filter: brightness(1.08); }
.btn.small { padding: 6px 12px; font-size: 15px; }

/* search results */
.results { position: absolute; left: 0; right: 0; top: calc(100% + 6px); background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .22); max-height: 70vh; overflow: auto; z-index: 30; text-align: left; }
.results a, .searchpage a.hit { display: block; padding: 11px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.results a:last-child { border-bottom: 0; }
.results a:hover, .results a.on { background: var(--green-soft); }
.results strong, .searchpage a.hit strong { display: block; color: var(--green); }
.results span, .searchpage a.hit span { font-size: 15px; color: var(--muted); display: block; }
.results .none { padding: 14px 16px; color: var(--muted); }
.searchpage a.hit { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; }
.results em.tag, .searchpage em.tag { font-style: normal; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }

main { padding-top: 22px; padding-bottom: 60px; min-height: 60vh; }
h1 { font-size: 2.05rem; line-height: 1.2; margin: .2em 0 .35em; letter-spacing: -.01em; }
h2 { font-size: 1.4rem; line-height: 1.3; margin: 1.9em 0 .5em; }
h3 { font-size: 1.12rem; margin: 1.5em 0 .3em; }
.lead { font-size: 1.14rem; color: var(--muted); margin: 0 0 1em; max-width: 46em; }
.crumbs { font-size: 15px; color: var(--muted); margin-bottom: 8px; }
.crumbs a { color: var(--muted); }

/* home */
.hero { text-align: center; padding: 34px 0 10px; }
.hero h1 { font-size: 2.5rem; }
.hero > p { color: var(--muted); font-size: 1.15rem; margin: 0 0 22px; }
.search.big { max-width: 680px; margin: 0 auto; gap: 8px; }
.search.big input { padding: 15px 18px; font-size: 1.1rem; border: 2px solid var(--green); background: var(--card); color: var(--ink); border-radius: 10px; }
.search.big input::placeholder { color: var(--muted); }
.search.big button { font: inherit; font-weight: 600; background: var(--green); color: #fff; border: 0; border-radius: 10px; padding: 0 22px; cursor: pointer; }
@media (prefers-color-scheme: dark) { .search.big button { color: #10140a; } }
.try { font-size: 15px !important; margin-top: 14px !important; }
.startlist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.startlist a { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; text-decoration: none; color: var(--ink); height: 100%; box-shadow: var(--shadow); }
.startlist a:hover { border-color: var(--green); }
.startlist b { flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 17px; }
@media (prefers-color-scheme: dark) { .startlist b, .steps > li::before { color: #10140a !important; } }
.startlist strong { display: block; color: var(--green); line-height: 1.3; margin-bottom: 2px; }
.startlist span { font-size: 15px; line-height: 1.45; color: var(--muted); }
.topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.topic { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); }
.topic:hover { border-color: var(--green); transform: translateY(-1px); }
.topic strong { font-size: 1.1rem; }
.topic span { color: var(--muted); font-size: 15px; line-height: 1.45; flex: 1; }
.topic em { font-style: normal; font-size: 13px; color: var(--green); font-weight: 600; margin-top: 6px; }
.ico { width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.two { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
.plainlist { padding-left: 1.1em; margin: 0; columns: 2; column-gap: 28px; }
.plainlist li { margin: 0 0 8px; break-inside: avoid; }
.helpbox { background: var(--green-soft); border-radius: var(--radius); padding: 4px 22px 18px; }
.helpbox h2 { margin-top: 18px; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.cards.wide { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--ink); display: block; box-shadow: var(--shadow); }
.card:hover { border-color: var(--green); }
.card strong { display: block; color: var(--green); line-height: 1.3; margin-bottom: 3px; }
.card span { font-size: 15px; color: var(--muted); line-height: 1.45; display: block; }
.topichead { display: flex; gap: 16px; align-items: flex-start; margin: 10px 0 18px; }
.topichead .ico { width: 44px; height: 44px; margin-top: 8px; }

/* article layout */
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 34px; align-items: start; }
.layout.noside { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto; }
.side { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; font-size: 15.5px; padding-right: 4px; }
.sidehead { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; margin-bottom: 8px; }
.sidehead .ico { width: 22px; height: 22px; }
.side ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.side li a { display: block; padding: 5px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.35; }
.side li a:hover { color: var(--ink); }
.side li a[aria-current] { border-left-color: var(--green); color: var(--green); font-weight: 600; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 30px 38px 34px; box-shadow: var(--shadow); min-width: 0; }
.doc > p, .doc > ul, .doc > ol, .doc > h2, .doc > h3, .doc > .callout, .doc > details { max-width: 44em; }
.where { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--green-soft); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 22px; }
.where .lbl { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-right: 4px; }
.plan { display: inline-block; background: var(--blue-soft); color: var(--blue); font-size: 14.5px; padding: 3px 12px; border-radius: 20px; margin: 0 0 14px; }
.menupath { white-space: normal; }
.menupath b { background: var(--slate); color: #fff; font-weight: 500; font-size: .86em; padding: 2px 8px; border-radius: 5px; white-space: nowrap; }
.menupath i { font-style: normal; margin: 0 4px; color: var(--muted); }
b.ui { font-weight: 600; background: var(--bg); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 0 6px; font-size: .93em; white-space: nowrap; }
.applink::after { content: " ↗"; font-size: .85em; }
.toc { background: var(--bg); border-radius: var(--radius); padding: 12px 18px; margin: 0 0 20px; font-size: 15.5px; max-width: 44em; }
.toc ul { margin: 6px 0 0; padding-left: 1.2em; columns: 2; column-gap: 26px; }
.toc li { break-inside: avoid; margin-bottom: 3px; }

/* numbered steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1em 0 1.4em; }
.steps > li { counter-increment: step; position: relative; padding: 2px 0 14px 50px; min-height: 40px; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 16px; }
.steps > li::after { content: ""; position: absolute; left: 16px; top: 38px; bottom: 2px; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps > li > p { margin: .5em 0; }
.steps .steps > li::before { background: var(--muted); width: 28px; height: 28px; font-size: 14px; }
.doc ul li { margin-bottom: 5px; }

/* callouts */
.callout { border-left: 5px solid var(--green); background: var(--green-soft); border-radius: 6px; padding: 10px 16px; margin: 1.1em 0; }
.callout strong { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.callout p { margin: 2px 0 0; }
.callout.warn { border-color: #d08a00; background: var(--amber-soft); }
.callout.warn strong { color: var(--amber); }
.callout.note { border-color: #4a86c9; background: var(--blue-soft); }
.callout.note strong { color: var(--blue); }

/* pictures */
figure { margin: 1.3em 0; }
.shot { position: relative; display: inline-block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 3px 16px rgba(20, 25, 35, .12); line-height: 0; background: #fff; max-width: 100%; }
.shot a { display: block; cursor: zoom-in; }
.pin { position: absolute; transform: translate(-50%, -50%); width: 28px; height: 28px; border-radius: 50%; background: #e0362c; color: #fff; font-weight: 700; font-size: 15px; line-height: 1; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .45); pointer-events: none; }
figcaption { font-size: 15px; color: var(--muted); margin-top: 8px; max-width: 44em; }
.diagram { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 16px; overflow-x: auto; }
.diagram svg { max-width: 100%; height: auto; display: block; margin: 0 auto; }
.diagram text { font-family: inherit; fill: var(--ink); }
.lightbox { position: fixed; inset: 0; background: rgba(10, 12, 18, .9); z-index: 60; display: grid; place-items: center; padding: 20px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; }

/* tables */
.tablewrap { overflow-x: auto; margin: 1.1em 0; }
table { border-collapse: collapse; width: 100%; font-size: 16px; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* FAQ */
details.faq { border: 1px solid var(--line); border-radius: var(--radius); margin: 0 0 10px; background: var(--card); }
details.faq summary { cursor: pointer; padding: 13px 16px 13px 44px; font-weight: 600; list-style: none; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "+"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 700; }
details.faq[open] summary::before { content: "–"; }
details.faq[open] { border-color: var(--green); }
.faq-a { padding: 0 16px 8px 44px; }
.faq-a > p:first-child { margin-top: 0; }

.next { display: block; margin: 30px 0 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; text-align: right; }
.next span { display: block; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.next:hover { border-color: var(--green); }
.stuck { margin-top: 22px; padding: 14px 18px; background: var(--bg); border-radius: var(--radius); font-size: 16px; }
.related h2 { font-size: 1.15rem; margin-top: 1.6em; }
.glossary dt { font-weight: 700; margin-top: 1em; }
.glossary dd { margin: 2px 0 0; }

.foot { background: var(--slate); color: #cfd4de; padding: 26px 0; font-size: 16px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; justify-content: space-between; }
.foot a { color: #d8ecaa; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot .small { font-size: 14px; color: #9aa2b1; }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 16px; }
  .side { position: static; max-height: none; order: 2; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
  .doc { padding: 20px 18px 24px; }
  .two { grid-template-columns: 1fr; }
  .toplinks a:not(.btn) { display: none; }
  .hero h1 { font-size: 1.9rem; }
  h1 { font-size: 1.65rem; }
  .plainlist, .toc ul { columns: 1; }
  .top { position: static; }
}
@media print {
  .top, .foot, .side, .next, .stuck, .related, .skip, .where .btn { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .doc { border: 0; box-shadow: none; padding: 0; }
  .layout { display: block; }
  details.faq > .faq-a { display: block; }
  a { color: #000; }
}

/* "what's new" band on the home page */
.news { background: var(--card); border: 2px solid var(--green); border-radius: 14px; padding: 22px 24px 24px; margin: 26px 0 8px; box-shadow: var(--shadow); }
.newshead { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-bottom: 16px; }
.newshead h2 { margin: 0; font-size: 1.45rem; }
.newshead p { margin: 0; color: var(--muted); flex-basis: 100%; }
.badge { background: var(--green); color: #fff; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 20px; position: relative; top: -3px; }
@media (prefers-color-scheme: dark) { .badge { color: #10140a; } }
.newsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.newscard { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #dfe3e8; border-radius: var(--radius); padding: 16px; text-decoration: none; color: #1c2128; box-shadow: var(--shadow); }
.newscard:hover { border-color: #587a09; box-shadow: 0 0 0 2px #587a09; }
.newscard strong { font-size: 1.1rem; line-height: 1.3; color: #111418; }
.newscard span { font-size: 15.5px; line-height: 1.5; flex: 1; color: #1c2128; }
.newscard em { font-style: normal; font-weight: 600; color: #587a09; font-size: 15px; margin-top: 4px; }
.newscard .ico { width: 28px; height: 28px; stroke: #587a09; }
.hero { padding-bottom: 0; }

/* language switch in the header */
.toplinks a.lang { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #4a5063; border-radius: 8px; padding: 5px 10px; }
.toplinks a.lang .ico { width: 18px; height: 18px; stroke: #cfe59a; }
@media (max-width: 900px) { .toplinks a.lang { display: inline-flex !important; } }
