/* ═══════════════════════════════════════════════════════════════════════════
   PrintQ — one stylesheet for the public site, the auth pages and the signed-in app.
   Layout: desktop = fixed sidebar + top bar; ≤768px = bottom tab bar + slide-in drawer.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ───────── tokens ───────── */
:root {
  --brand: #0f766e; --brand-2: #14b8a6; --brand-dark: #0b4f4a; --brand-soft: #f0fdfa; --brand-tint: #ccfbf1; --brand-ring: rgba(20, 184, 166, .25);
  --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --muted-2: #94a3b8;
  --bg: #f3f5f9; --card: #ffffff; --line: #e6eaf0; --line-2: #eef1f5;
  --ok: #059669; --ok-soft: #d1fae5; --bad: #dc2626; --bad-soft: #fee2e2; --warn: #d97706; --warn-soft: #fef3c7; --busy: #2563eb; --busy-soft: #dbeafe; --violet: #6d28d9; --violet-soft: #ede9fe;
  --radius: 14px; --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .05);
  --shadow: 0 10px 30px rgba(15, 23, 42, .08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .16);
  --side-w: 252px; --top-h: 60px; --tab-h: 62px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif; color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
h1, h2, h3, h4 { letter-spacing: -.01em; }
code { font-family: ui-monospace, Consolas, monospace; font-size: .92em; background: var(--line-2); padding: 1px 5px; border-radius: 5px; color: var(--ink-2); }
::selection { background: var(--brand-tint); }

/* ───────── icons ───────── */
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: -3px; }
.ic-sm { width: 15px; height: 15px; } .ic-lg { width: 22px; height: 22px; }
.btn .ic { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.btn-sm .ic { width: 14px; height: 14px; vertical-align: -2px; }

/* ───────── Bootstrap re-tint (teal instead of blue; softer edges) ───────── */
.btn { --bs-btn-border-radius: 9px; --bs-btn-font-weight: 600; }
.btn-sm { --bs-btn-border-radius: 8px; --bs-btn-padding-x: .7rem; }
.btn-primary { --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); --bs-btn-focus-shadow-rgb: 20, 184, 166; }
.btn-outline-primary { --bs-btn-color: var(--brand); --bs-btn-border-color: #99f6e4; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand); --bs-btn-active-border-color: var(--brand); --bs-btn-focus-shadow-rgb: 20, 184, 166; }
.btn-outline-secondary { --bs-btn-color: var(--ink-2); --bs-btn-border-color: #d5dbe3; --bs-btn-hover-bg: #f1f5f9; --bs-btn-hover-color: var(--ink); --bs-btn-hover-border-color: #cbd5e1; --bs-btn-active-bg: var(--ink-2); --bs-btn-active-border-color: var(--ink-2); }
.btn-light { --bs-btn-bg: #f1f5f9; --bs-btn-border-color: #f1f5f9; --bs-btn-hover-bg: #e2e8f0; --bs-btn-hover-border-color: #e2e8f0; }
.btn-link { --bs-btn-color: var(--brand); --bs-btn-hover-color: var(--brand-dark); }
.form-control, .form-select { border-color: #d5dbe3; border-radius: 9px; color: var(--ink); }
.form-control-sm, .form-select-sm { border-radius: 8px; }
.form-control:focus, .form-select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 .2rem var(--brand-ring); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand-2); box-shadow: 0 0 0 .2rem var(--brand-ring); }
.form-switch .form-check-input { width: 2.4em; height: 1.35em; margin-top: .1em; cursor: pointer; }
.form-label { font-weight: 600; font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.form-text { color: var(--muted); font-size: 12.5px; }
.modal-content { border: 0; border-radius: 16px; box-shadow: var(--shadow-lg); }
.modal-header { border-bottom-color: var(--line); padding: 16px 20px; } .modal-title { font-weight: 700; font-size: 17px; }
.modal-body { padding: 18px 20px; } .modal-footer { border-top-color: var(--line); padding: 12px 20px; }
.alert { border-radius: 12px; }
.table { --bs-table-color: var(--ink); }
.table > :not(caption) > * > * { border-bottom-color: var(--line-2); }
.table-light { --bs-table-bg: #f8fafc; }
.badge { font-weight: 600; letter-spacing: .01em; }
.badge.text-bg-secondary { background: #e2e8f0 !important; color: var(--ink-2) !important; }
@media (max-width: 768px) { .form-control, .form-select { font-size: 16px; } .form-control-sm, .form-select-sm { font-size: 16px; padding: .3rem .6rem; } }

/* ───────── shared bits ───────── */
.app-brand-img { width: 34px; height: 34px; flex-shrink: 0; filter: drop-shadow(0 3px 8px rgba(16, 185, 129, .35)); }
.pub-logo { display: block; height: 40px; width: auto; }
.pub-logo-sm { height: 32px; }
@media (max-width: 480px) {
  .pub-logo { height: 34px; }
  /* Phone header: wordmark + BETA pill + one button + menu must fit one 64px row. */
  .pub-nav .pub-wrap { gap: 8px; padding: 0 14px; }
  .pub-nav .pub-logo { height: 28px; }
  .pub-brand { gap: 6px; flex-shrink: 0; }
  .pub-cta { min-width: 0; }
  .pub-cta .pub-btn { white-space: nowrap; padding: 8px 10px; font-size: 13.5px; box-shadow: none; }
  .pub-menu { flex-shrink: 0; padding: 4px; }
  .pub-brand .pq-beta { font-size: 9px; padding: 1px 5px; letter-spacing: .06em; }
}
.app-brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; font-weight: 800; font-size: 16px; box-shadow: 0 4px 12px rgba(15, 118, 110, .35); flex-shrink: 0; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: #e2e8f0; color: var(--ink-2); vertical-align: middle; white-space: nowrap; }
.pill.ok, .pill.printed, .pill.completed, .pill.paid, .pill.delivered { background: var(--ok-soft); color: #065f46; }
.pill.busy, .pill.printing, .pill.spooled { background: var(--busy-soft); color: #1e40af; }
.pill.wait, .pill.new, .pill.pending, .pill.waiting, .pill.note, .pill.batch, .pill.received { background: var(--warn-soft); color: #92400e; }
.pill.bad, .pill.failed, .pill.cancelled, .pill.attention { background: var(--bad-soft); color: #991b1b; }
.pill.created, .pill.proceed, .pill.requeued { background: #e0e7ff; color: #3730a3; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; max-width: 100%; color: var(--ink); box-shadow: var(--shadow-sm); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); flex-shrink: 0; }
.chip small { color: var(--muted); font-weight: 400; }
.chip.ok, .chip.ready { border-color: #a7f3d0; background: #f0fdf4; } .chip.ok i, .chip.ready i { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.chip.bad, .chip.offline, .chip.missing { border-color: #fecaca; background: #fff5f5; } .chip.bad i, .chip.offline i, .chip.missing i { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.chip.busy i { background: var(--busy); box-shadow: 0 0 0 3px var(--busy-soft); }
.chip.attention { border-color: #fde68a; background: #fffbeb; } .chip.attention i { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); }
.chip.unknown { border-style: dashed; color: var(--muted); }
.toast-host { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 2000; max-width: calc(100vw - 32px); }
.toast-item { background: var(--ink); color: #fff; padding: 11px 15px; border-radius: 12px; font-size: 13.5px; box-shadow: var(--shadow); transition: opacity .3s, transform .3s; max-width: 360px; border-left: 4px solid var(--brand-2); }
.toast-item.bad { background: #7f1d1d; border-left-color: #f87171; } .toast-item.hide { opacity: 0; transform: translateY(6px); }
@media (max-width: 768px) { .toast-host { bottom: calc(var(--tab-h) + 12px); left: 16px; right: 16px; align-items: stretch; } .toast-item { max-width: none; } }
/* Install-as-an-app banner (js/pwa.js). Sits bottom-left so toasts (bottom-right) stay clear; above the tab bar on phones. */
.pwa-banner { position: fixed; left: 16px; bottom: 16px; z-index: 1990; display: flex; align-items: center; gap: 12px; max-width: 400px; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 14px; box-shadow: 0 14px 34px rgba(15, 23, 42, .35); opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; }
.pwa-banner.show { opacity: 1; transform: none; }
.pwa-banner img { width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0; }
.pwa-banner-text { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.35; color: #cbd5e1; min-width: 0; } .pwa-banner-text strong { font-size: 14px; color: #fff; }
.pwa-banner .btn { flex-shrink: 0; font-weight: 700; }
.pwa-banner-x { background: none; border: 0; color: #94a3b8; font-size: 22px; line-height: 1; padding: 2px 4px; flex-shrink: 0; } .pwa-banner-x:hover { color: #fff; }
@media (max-width: 768px) { .pwa-banner { left: 12px; right: 12px; max-width: none; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 12px); } }
.app-side-foot .app-install { color: #5eead4; font-weight: 600; } .app-side-foot .app-install[hidden] { display: none; }
.empty { color: var(--muted); padding: 28px 20px; border: 1.5px dashed #d5dbe3; border-radius: 12px; grid-column: 1 / -1; text-align: center; background: #fbfcfd; }
.empty strong { color: var(--ink); }
.muted { color: var(--muted); }

/* ───────── public / landing ───────── */
.pub-body { background: #fff; }
.pub-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.pub-narrow { max-width: 780px; }
.pub-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.pub-nav .pub-wrap { display: flex; align-items: center; height: 64px; gap: 24px; }
.pub-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; color: var(--ink); text-decoration: none; }
.pub-brand:hover { text-decoration: none; color: var(--ink); }
/* Settings: "keep files after printing for N hours/days". */
.keep-for { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.keep-for .form-control-sm { width: 76px; }
.keep-for .form-select-sm { width: auto; }
/* Release stage pill next to the name (PrintShop:Stage = "Beta"; empty removes it everywhere). */
.pq-beta { display: inline-block; padding: 2px 7px; border-radius: 999px; background: #fef3c7; color: #92400e; border: 1px solid #fcd34d; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.4; vertical-align: middle; cursor: help; }
.pq-beta-dark { background: rgba(251, 191, 36, .18); color: #fcd34d; border-color: rgba(251, 191, 36, .45); font-size: 9.5px; padding: 1px 6px; flex-shrink: 0; }
.side-collapsed .app-brand .pq-beta { display: none; }
.pub-links { display: flex; gap: 22px; margin-left: 12px; }
.pub-links a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 14.5px; } .pub-links a:hover { color: var(--brand); }
.pub-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.pub-links-signin { display: none; }
.pub-nav.open .pub-links .pub-links-signin { display: block; }
.pub-menu { display: none; margin-left: auto; background: none; border: 0; padding: 6px; color: var(--ink); }
.pub-btn { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; padding: 11px 20px; border-radius: 10px; text-decoration: none; border: 0; cursor: pointer; transition: transform .08s, background .15s, box-shadow .15s; font-size: 15px; box-shadow: 0 6px 16px rgba(15, 118, 110, .25); }
.pub-btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); text-decoration: none; }
.pub-btn-lg { padding: 15px 26px; font-size: 17px; border-radius: 12px; }
.pub-btn-light { background: #fff; color: var(--brand-dark); box-shadow: 0 6px 16px rgba(0, 0, 0, .15); } .pub-btn-light:hover { background: #ecfeff; color: var(--brand-dark); }
.pub-btn-ghost { display: inline-block; color: var(--ink-2); font-weight: 600; padding: 11px 16px; border-radius: 10px; text-decoration: none; border: 1px solid var(--line); background: #fff; }
.pub-btn-ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.pub-muted { color: var(--muted); }
.pub-section { padding: 76px 0; }
.pub-section-alt { background: var(--bg); }
.pub-h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; margin: 0 0 12px; text-align: center; }
.pub-lead { text-align: center; color: var(--muted); font-size: 17px; max-width: 720px; margin: 0 auto 36px; }

.hero { padding: 130px 0 70px; background: radial-gradient(1200px 500px at 80% -10%, var(--brand-tint) 0%, transparent 60%), radial-gradient(600px 300px at 0% 100%, #f0fdfa 0%, transparent 60%), #fff; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.hero-kicker { display: inline-block; background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; font-size: 12.5px; padding: 5px 11px; border-radius: 999px; letter-spacing: .02em; margin-bottom: 18px; }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; margin: 0 0 18px; }
.hero .hl { color: var(--brand); }
.hero-sub { font-size: 18px; color: var(--ink-2); line-height: 1.55; margin: 0 0 26px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.hero-visual { display: grid; gap: 14px; }
.mock { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px; }
.mock-phone-head, .mock-queue-head { font-weight: 700; font-size: 13px; color: var(--ink-2); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.mock-bubble { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 13.5px; margin: 6px 0; line-height: 1.4; }
.mock-bubble.in { background: #f1f5f9; border-bottom-left-radius: 4px; }
.mock-bubble.out { background: #dcfce7; margin-left: auto; border-bottom-right-radius: 4px; }
.mock-file { margin-top: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 12.5px; }
.mock-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; gap: 8px; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); flex-shrink: 0; }

.pain-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; align-items: center; }
.pain { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.pain.promise { border-color: var(--brand-2); background: linear-gradient(180deg, #f0fdfa, #fff); }
.pain-icon { font-size: 30px; } .pain h3 { font-size: 18px; margin: 8px 0 6px; } .pain p { margin: 0; color: var(--ink-2); }
.pain-arrow { font-size: 34px; color: var(--brand); text-align: center; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-n { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.step h3 { font-size: 18px; margin: 0 0 8px; } .step p { margin: 0; color: var(--ink-2); line-height: 1.5; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: transform .15s, box-shadow .15s; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feat-icon { font-size: 26px; margin-bottom: 10px; } .feat h3 { font-size: 17px; margin: 0 0 6px; } .feat p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; margin-bottom: 26px; }
.proof-big { font-size: 20px; font-weight: 800; color: var(--brand-dark); margin-bottom: 6px; }
.usecases { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.usecases span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 500; }

.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 820px; margin: 0 auto; }
.price { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 8px; position: relative; }
.price-hero { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.price-name { font-weight: 700; color: var(--brand-dark); } .price-amt { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; } .price-sub { color: var(--muted); font-size: 13.5px; }
.price ul { list-style: none; padding: 0; margin: 6px 0 10px; } .price li { padding: 4px 0; }
.price .btn, .price .pub-btn { margin-top: auto; }
.price-tag { position: absolute; top: -11px; right: 16px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .04em; text-transform: uppercase; }
.price-addon { border-style: dashed; background: #fafcfb; }
.price-tag-addon { background: var(--brand-dark); }

.faq { border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; } .faq p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.55; }

.pub-customer { background: #f0fdfa; border-top: 1px solid #ccfbf1; border-bottom: 1px solid #ccfbf1; padding: 52px 0; }
.pub-customer-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.pub-customer h2 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin: 6px 0 10px; color: var(--ink); }
.pub-customer p { margin: 0; font-size: 15.5px; }
.pub-customer-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 13.5px; }
@media (max-width: 760px) { .pub-customer-grid { grid-template-columns: 1fr; } .pub-customer { padding: 36px 0; } }
.pub-final { background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; padding: 72px 0; }
.pub-final h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; margin: 0 0 10px; } .pub-final p { opacity: .92; font-size: 17px; margin-bottom: 24px; }

.pub-footer { border-top: 1px solid var(--line); padding: 44px 0 24px; background: #fff; }
.pub-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.pub-footer a { display: block; color: var(--ink-2); text-decoration: none; margin: 6px 0; font-size: 14px; }
.pub-foot-h { font-weight: 700; margin-bottom: 8px; }
.pub-copy { color: var(--muted); font-size: 13px; margin-top: 28px; }
.pub-wa { position: fixed; right: 18px; bottom: 18px; background: #25d366; color: #fff; font-weight: 700; padding: 12px 16px; border-radius: 999px; text-decoration: none; box-shadow: var(--shadow); z-index: 90; }
.pub-wa:hover { color: #fff; text-decoration: none; }

.auth-wrap { padding: 110px 20px 60px; max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; }
.auth-wrap-single { grid-template-columns: 1fr; max-width: 460px; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; font-weight: 800; margin: 0 0 4px; }
.auth-form label { display: block; font-weight: 600; font-size: 13.5px; margin: 12px 0 0; }
.auth-form input:not([type=checkbox]) { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; font-weight: 400; font-family: inherit; }
.auth-form input:focus { outline: 2px solid var(--brand-2); outline-offset: 0; border-color: var(--brand); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; margin: 16px 0 !important; }
.auth-form button { margin-top: 6px; }
.field-err { color: var(--bad); font-size: 12.5px; display: block; }
/* Continue with Google (Views/Shared/_Google.cshtml) */
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; margin: 18px 0 14px; } .auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-google { display: flex; justify-content: center; min-height: 44px; width: 100%; overflow: hidden; }
.auth-google-err { color: var(--muted); font-size: 12.5px; text-align: center; margin: 6px 0 0; }
.auth-google-as { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: #065f46; margin-top: 6px; } .auth-google-as .ic { width: 14px; height: 14px; }
.auth-form input[readonly] { background: #f1f5f9; color: var(--ink-2); cursor: default; }
.auth-form .form-hint { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.auth-side { padding-top: 20px; } .auth-side h3 { font-size: 18px; } .auth-side ol { padding-left: 20px; color: var(--ink-2); line-height: 1.6; }
.legal h3 { font-size: 17px; margin-top: 22px; } .legal p, .legal li { color: var(--ink-2); line-height: 1.6; }

/* ───────── app shell ───────── */
.app-body { background: var(--bg); }
.app-shell { display: flex; min-height: 100vh; min-height: 100dvh; }
.app-side { width: var(--side-w); flex-shrink: 0; background: linear-gradient(180deg, #0b1220 0%, #0f172a 40%, #101b31 100%); color: #cbd5e1; display: flex; flex-direction: column; padding: 16px 12px; position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; scrollbar-width: thin; }
.app-side::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 220px; background: radial-gradient(360px 200px at 20% -20%, rgba(20, 184, 166, .28), transparent 70%); pointer-events: none; }
.app-side-top { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; position: relative; }
.app-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 17px; text-decoration: none; letter-spacing: -.01em; }
.app-brand:hover { color: #fff; text-decoration: none; }
.app-side-close { display: none; background: rgba(255, 255, 255, .08); border: 0; color: #cbd5e1; width: 32px; height: 32px; border-radius: 8px; padding: 0; }
.app-side-toggle { display: grid; place-items: center; background: rgba(255, 255, 255, .08); border: 0; color: #cbd5e1; width: 30px; height: 30px; border-radius: 8px; padding: 0; flex-shrink: 0; transition: background .15s, color .15s, transform .15s; }
.app-side-toggle:hover { background: rgba(255, 255, 255, .16); color: #fff; transform: scale(1.08); }
.app-side-toggle:active { transform: scale(.94); }
.app-side-toggle .ic { width: 16px; height: 16px; transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
.app-side-toggle.pulse { animation: sidePulse .4s ease; }
@keyframes sidePulse { 0% { box-shadow: 0 0 0 0 rgba(94, 234, 212, .6); } 100% { box-shadow: 0 0 0 10px rgba(94, 234, 212, 0); } }
.app-nav a .lbl, .app-side-foot button .lbl { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Collapsed sidebar (desktop only): icons in a 68px rail, labels hidden, state kept in localStorage "pq.side". */
@media (min-width: 769px) {
  .app-side { transition: width .25s cubic-bezier(.4, 0, .2, 1), padding .25s cubic-bezier(.4, 0, .2, 1); }
  .app-brand > span, .app-shop-text, .app-nav a .lbl, .app-side-foot button .lbl { max-width: 200px; opacity: 1; transition: max-width .25s cubic-bezier(.4, 0, .2, 1), opacity .18s, transform .25s; }
  .app-brand > span { white-space: nowrap; overflow: hidden; }
  .app-nav a, .app-side-foot button, .app-shop { transition: gap .25s, padding .25s, background .12s, color .12s; }
  .app-nav-h { transition: font-size .2s, padding .2s, margin .2s, opacity .2s; }
  html.side-collapsed .app-side { width: 68px; padding: 16px 8px; }
  html.side-collapsed .app-side-top { flex-direction: column; gap: 10px; padding: 4px 0 12px; }
  html.side-collapsed .app-brand { gap: 0; }
  html.side-collapsed .app-brand > span, html.side-collapsed .app-shop-text, html.side-collapsed .app-nav a .lbl, html.side-collapsed .app-side-foot button .lbl { max-width: 0; opacity: 0; transform: translateX(-8px); }
  html.side-collapsed .app-side-toggle .ic { transform: rotate(180deg); }
  html.side-collapsed .app-shop { padding: 7px; justify-content: center; gap: 0; }
  html.side-collapsed .app-nav-h { font-size: 0; padding: 0; margin: 8px 10px 4px; border-top: 1px solid rgba(255, 255, 255, .09); pointer-events: none; }
  html.side-collapsed .app-nav-h .chev { display: none; }
  html.side-collapsed .app-nav-items { display: flex; }   /* the icon rail shows every group: the headings are just lines there */
  html.side-collapsed .app-nav a { justify-content: center; padding: 10px 0; gap: 0; position: relative; }
  html.side-collapsed .app-nav a .badge { position: absolute; top: 3px; right: 3px; margin: 0; font-size: 9.5px; padding: 2px 5px; line-height: 1.2; }
  html.side-collapsed .app-side-foot { padding: 10px 0 0; }
  html.side-collapsed .app-side-foot button { justify-content: center; padding: 8px 0; gap: 0; }
  @media (prefers-reduced-motion: reduce) { .app-side, .app-brand > span, .app-shop-text, .app-nav a .lbl, .app-side-foot button .lbl, .app-nav a, .app-nav-h, .app-side-toggle .ic { transition: none; } }
}
.app-shop { display: flex; align-items: center; gap: 10px; padding: 10px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .07); border-radius: 12px; margin-bottom: 14px; position: relative; }
.app-avatar { width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, #1e293b, #334155); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; border: 1px solid rgba(255, 255, 255, .1); }
.app-shop-text { min-width: 0; }
.app-shop-name { font-weight: 700; color: #fff; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-shop-meta { font-size: 12px; color: #94a3b8; display: flex; align-items: center; gap: 4px; margin-top: 1px; }
.app-shop-meta .ic { width: 13px; height: 13px; color: #fbbf24; }
.app-shop-meta b { color: #fde68a; font-weight: 700; }
/* Menu search above the groups: hidden on the icon rail. */
.app-nav-search { position: relative; margin: 0 0 8px; }
.app-nav-search .ic { position: absolute; left: 10px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: #64748b; pointer-events: none; }
.app-nav-search input { width: 100%; height: 34px; padding: 0 10px 0 32px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .09); background: rgba(255, 255, 255, .06); color: #e2e8f0; font-size: 13px; outline: 0; }
.app-nav-search input::placeholder { color: #64748b; }
.app-nav-search input:focus { border-color: rgba(45, 212, 191, .6); background: rgba(255, 255, 255, .09); }
.app-nav-search input::-webkit-search-cancel-button { filter: invert(.7); }
html.side-collapsed .app-nav-search { display: none; }
.app-nav.searching .app-nav-items { display: flex; }
.app-nav.searching .app-nav-h .chev { display: none; }
.app-nav.searching a.nav-miss, .app-nav.searching .app-nav-g.nav-empty { display: none; }
.app-nav { display: flex; flex-direction: column; gap: 2px; position: relative; }
.app-nav-h { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #64748b; padding: 12px 12px 4px; }
/* Menu groups fold like an accordion: the heading is a button, one group open at a time (the page's own group on load). */
.app-nav-g { display: flex; flex-direction: column; gap: 2px; }
.app-nav-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; background: none; border: 0; cursor: pointer; text-align: left; font-family: inherit; border-radius: 8px; }
.app-nav-h:hover { color: #cbd5e1; }
.app-nav-h .chev { width: 11px; height: 11px; color: #475569; flex-shrink: 0; transition: transform .2s; }
.app-nav-g.open .app-nav-h .chev { transform: rotate(90deg); }
.app-nav-items { display: none; flex-direction: column; gap: 2px; }
.app-nav-g.open .app-nav-items { display: flex; }
.app-nav a { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 10px; color: #cbd5e1; text-decoration: none; font-size: 13.5px; font-weight: 500; transition: background .12s, color .12s; }
.app-nav a .ic { width: 18px; height: 18px; color: #94a3b8; transition: color .12s; }
.app-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; } .app-nav a:hover .ic { color: #fff; }
.app-nav a.active { background: linear-gradient(90deg, var(--brand), #0d9488); color: #fff; box-shadow: 0 6px 16px rgba(20, 184, 166, .25); } .app-nav a.active .ic { color: #fff; }
.app-nav .badge { margin-left: auto; background: #f59e0b; color: #111; font-size: 11px; }
.app-side-foot { margin-top: auto; padding: 10px 6px 0; font-size: 13px; position: relative; }
/* Who is signed in, above Install app / Sign out. */
.app-user { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 6px; border-top: 1px solid rgba(255, 255, 255, .07); min-width: 0; }
.app-user-av { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #134e4a; color: #5eead4; font-weight: 700; font-size: 13px; }
.app-user-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.app-user-name { color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-user-role { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: rgba(94, 234, 212, .14); color: #5eead4; font-size: 10.5px; font-weight: 600; vertical-align: 1px; }
.app-user-mail { color: #94a3b8; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.side-collapsed .app-user { justify-content: center; padding: 8px 0; gap: 0; }
html.side-collapsed .app-user-text { display: none; }
.app-side-foot button { display: flex; align-items: center; gap: 9px; color: #94a3b8; background: none; border: 0; padding: 8px 6px; border-radius: 8px; width: 100%; text-align: left; font-size: 13px; }
.app-side-foot button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.app-backdrop { display: none; position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 49; opacity: 0; transition: opacity .2s; }
.app-backdrop.show { display: block; opacity: 1; }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-top { display: flex; align-items: center; gap: 12px; min-height: var(--top-h); padding: 10px 24px; background: rgba(255, 255, 255, .85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.app-titles { min-width: 0; }
.app-title { font-size: 18px; font-weight: 800; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.app-subtitle { font-size: 12.5px; color: var(--muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-top-right { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.app-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: #f1f5f9; color: var(--ink-2); cursor: pointer; border: 1px solid transparent; text-decoration: none; white-space: nowrap; }
.app-chip:hover { text-decoration: none; filter: brightness(.97); }
.app-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); flex-shrink: 0; }
.app-chip.ok { background: var(--ok-soft); color: #065f46; } .app-chip.ok i { background: var(--ok); box-shadow: 0 0 0 3px rgba(5, 150, 105, .2); animation: chipPulse 2s infinite; }
.app-chip.bad { background: var(--bad-soft); color: #991b1b; } .app-chip.bad i { background: var(--bad); }
.app-chip.unknown { background: var(--warn-soft); color: #92400e; } .app-chip.unknown i { background: var(--warn); }
@keyframes chipPulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(5, 150, 105, .2); } 50% { box-shadow: 0 0 0 5px rgba(5, 150, 105, .08); } }
.app-burger { display: none; background: none; border: 0; padding: 6px; margin-left: -6px; color: var(--ink); border-radius: 8px; }
.app-burger .ic { width: 22px; height: 22px; }
.app-content { padding: 22px 24px 60px; display: flex; flex-direction: column; gap: 16px; max-width: 1380px; width: 100%; }
.app-verify { display: flex; gap: 10px; align-items: center; background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 10px 14px; font-size: 13px; }
.app-verify .ic { color: var(--warn); }
.app-verify a { color: #92400e; font-weight: 600; text-decoration: underline; }

/* bottom tab bar (phones) */
.app-tabs { display: none; position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); z-index: 48; grid-template-columns: repeat(5, 1fr); }
.app-tabs a, .app-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); text-decoration: none; font-size: 10.5px; font-weight: 600; background: none; border: 0; position: relative; padding: 4px 0; }
.app-tabs .ic { width: 22px; height: 22px; }
.app-tabs a.active { color: var(--brand); }
.app-tabs a.active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); }
.app-tabs .badge { position: absolute; top: 4px; left: calc(50% + 6px); background: #f59e0b; color: #111; font-size: 10px; padding: 2px 5px; }

/* ───────── cards / page blocks ───────── */
.card-soft { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.card-soft h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 10px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h3 { margin: 0; display: flex; align-items: center; gap: 8px; }
.card-head h3 .ic { color: var(--brand); width: 18px; height: 18px; }
.card-sub { font-size: 12.5px; color: var(--muted); margin: 2px 0 0; }
.card-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.card-tight { padding: 0; overflow: hidden; }
.card-tight .card-head { padding: 16px 20px 0; margin-bottom: 12px; }
.card-tight .table-responsive { padding: 0 8px 4px; }
.card-tight > .table-responsive { padding: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; align-items: start; }
.section-h { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 4px 0 -6px; }

/* welcome hero */
.hero-card { background: linear-gradient(120deg, #0b4f4a 0%, var(--brand) 55%, #0d9488 100%); color: #fff; border-radius: 18px; padding: 24px 26px; position: relative; overflow: hidden; box-shadow: 0 14px 34px rgba(15, 118, 110, .3); }
.hero-card::after { content: ""; position: absolute; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.hero-card h2 { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.hero-card p { margin: 0 0 14px; opacity: .9; font-size: 14px; }
.hero-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; padding: 0; margin: 0; position: relative; }
.hero-steps li { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: 12px 14px; font-size: 13px; line-height: 1.45; }
.hero-steps b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.hero-steps .n { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--brand-dark); font-weight: 800; font-size: 12px; margin-right: 6px; }
.hero-card a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .12s; min-width: 0; }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; text-decoration: none; }
.stat-body { min-width: 0; }
.stat-v { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.stat-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--brand-soft); color: var(--brand); }
.stat-ic .ic { width: 20px; height: 20px; }
.stat-amber .stat-ic { background: var(--warn-soft); color: var(--warn); }
.stat-blue .stat-ic { background: var(--busy-soft); color: var(--busy); }
.stat-violet .stat-ic { background: var(--violet-soft); color: var(--violet); }
.stat-red .stat-ic { background: var(--bad-soft); color: var(--bad); }
.stat-green .stat-ic { background: var(--ok-soft); color: var(--ok); }

/* quick actions */
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quick a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); font-weight: 600; font-size: 13px; text-decoration: none; background: #fbfcfd; transition: border-color .12s, background .12s; }
.quick a:hover { border-color: var(--brand-2); background: var(--brand-soft); text-decoration: none; color: var(--brand-dark); }
.quick .ic { color: var(--brand); width: 18px; height: 18px; }

/* tables */
.tbl { margin: 0; }
/* Admin Shops: the four per-shop switches as one labelled 2×2 block, so every column fits one screen. */
.sw-grid { display: grid; grid-template-columns: auto auto; gap: 4px 14px; }
.sw { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 12px; white-space: nowrap; cursor: pointer; }
.sw .form-check-input { margin: 0; width: 28px; height: 16px; border-radius: 16px; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba(0,0,0,.25)'/%3e%3c/svg%3e"); background-position: left center; background-repeat: no-repeat; transition: background-position .15s; }
.sw .form-check-input:checked { background-position: right center; background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e"); }
.tbl thead th { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); border-bottom: 1px solid var(--line); padding: 10px 12px; white-space: nowrap; background: transparent; }
.tbl tbody td { padding: 10px 12px; vertical-align: middle; font-size: 13.5px; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl-hover tbody tr:hover td { background: #f8fafc; }
.tbl-file { font-weight: 600; word-break: break-word; }
.tbl-num { font-variant-numeric: tabular-nums; }
@media (max-width: 768px) {
  .tbl-stack thead { display: none; }
  .tbl-stack, .tbl-stack tbody, .tbl-stack tr, .tbl-stack td { display: block; width: 100%; }
  .tbl-stack tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 12px; margin: 0 0 10px; background: #fff; }
  .tbl-stack tbody td { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 6px 0; border: 0; border-bottom: 1px dashed var(--line-2); text-align: right; }
  .tbl-stack tbody td:last-child { border-bottom: 0; }
  .tbl-stack tbody td:empty { display: none; }
  .tbl-stack tbody td::before { content: attr(data-l); font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; flex-shrink: 0; text-align: left; padding-top: 2px; }
  .tbl-stack tbody td:not([data-l])::before { content: none; }
  .tbl-stack tbody td.tbl-full { display: block; text-align: left; }
  .tbl-stack tbody td.tbl-full::before { display: block; margin-bottom: 2px; }
  .tbl-stack tbody td[colspan] { display: block; text-align: left; }
  .tbl-stack tbody td[colspan]::before { content: none; }
  .tbl-stack .text-nowrap { white-space: normal !important; }
  .tbl-stack .text-end { text-align: right !important; }
}

/* queue-ish shared bits (also used on Dashboard) */
.jobs { display: flex; flex-direction: column; gap: 10px; }
.job { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; }
.job.completed, .job.cancelled { opacity: .75; }
.job-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.job-file { font-weight: 700; font-size: 15px; word-break: break-word; }
.job-acts { display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start; }
.proceed { display: flex; gap: 8px; align-items: center; margin-top: 10px; flex-wrap: wrap; }
.proceed select { max-width: 300px; } .proceed input { width: 90px; }
.batches { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.batch { background: var(--bg); border-radius: 9px; padding: 8px 10px; font-size: 13.5px; }
.batch-acts { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.pay-row { padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; } .pay-row:last-child { border-bottom: 0; }
.pay-row .form-select { min-width: 0; }

/* WhatsApp */
.wa-grid { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.wa-num { font-size: 20px; font-weight: 800; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; letter-spacing: -.01em; }
.wa-chat-grid { display: grid; grid-template-columns: 260px 1fr; gap: 0; min-height: 480px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.wa-convs { border-right: 1px solid var(--line); overflow-y: auto; max-height: 600px; background: #fbfcfd; }
.wa-convs-empty { padding: 20px 14px; color: var(--muted); font-size: 13px; }
.conv { padding: 10px 12px; cursor: pointer; border-bottom: 1px solid var(--line-2); transition: background .1s; } .conv:hover { background: #f1f5f9; } .conv.on { background: var(--brand-tint); }
.conv-name { font-weight: 700; font-size: 13.5px; display: flex; gap: 6px; align-items: center; } .conv-prev { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .conv-when { font-size: 11px; color: var(--muted-2); margin-top: 1px; }
.wa-thread { display: flex; flex-direction: column; min-height: 480px; background: #fff; min-width: 0; }
.wa-thread-head { display: flex; align-items: center; gap: 8px; font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fff; font-size: 14px; min-height: 48px; }
.wa-back { display: none; background: none; border: 0; padding: 4px; margin-left: -6px; color: var(--ink); border-radius: 8px; }
.wa-bubbles { flex: 1; overflow-y: auto; max-height: 520px; padding: 12px; background: #eef2f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='20' cy='20' r='1' fill='%23cbd5e1' opacity='.5'/%3E%3C/svg%3E"); }
.bubble { max-width: 78%; padding: 8px 11px; border-radius: 12px; margin: 6px 0; font-size: 13.5px; background: #fff; white-space: pre-wrap; word-break: break-word; box-shadow: 0 1px 1px rgba(15, 23, 42, .06); border-bottom-left-radius: 4px; }
.bubble.out { margin-left: auto; background: #dcfce7; border-bottom-left-radius: 12px; border-bottom-right-radius: 4px; } .bubble-when { font-size: 11px; color: var(--muted); margin-top: 3px; text-align: right; } .bubble-media { font-size: 12.5px; margin-top: 4px; }
.wa-reply { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.wa-reply .form-control { border-radius: 999px; padding-left: 14px; }
.wa-reply .btn { border-radius: 999px; padding-left: 16px; padding-right: 16px; }
.wa-hint { font-size: 12px; color: var(--muted); padding: 0 14px 10px; background: #fff; }
.wa-hint:empty { display: none; }
.wa-features { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.wa-features li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-2); } .wa-features .ic { color: var(--ok); margin-top: 2px; width: 16px; height: 16px; }

/* timeline / job history */
.timeline { list-style: none; padding: 0; margin: 0; } .timeline li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line-2); position: relative; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 26px; bottom: -10px; width: 1px; background: var(--line); } .timeline li:last-child::after { display: none; }

/* printers / hot folders */
.folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 12px; }
.folder { border: 1px solid var(--line); border-radius: 13px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 8px; min-width: 0; transition: box-shadow .12s; } .folder:hover { box-shadow: var(--shadow-sm); } .folder.off { opacity: .6; }
.folder-head { display: flex; align-items: flex-start; gap: 10px; }
.folder-head .pill { flex-shrink: 0; margin-top: 2px; }
.folder-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex-shrink: 0; } .folder-ic .ic { width: 19px; height: 19px; }
.folder.off .folder-ic { background: #f1f5f9; color: var(--muted); }
.folder-name { font-weight: 700; font-size: 14.5px; min-width: 0; line-height: 1.3; overflow-wrap: anywhere; }
.folder-sub { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; margin-top: 1px; }
.folder-specs { display: flex; flex-wrap: wrap; gap: 4px; }
.folder-specs span { font-size: 11.5px; background: #f1f5f9; color: var(--ink-2); padding: 2px 8px; border-radius: 6px; font-weight: 500; }
.folder-note { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; } .folder-note.ok { color: var(--ok); } .folder-note.warn { color: var(--warn); }
.folder-acts { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; align-items: center; }
.folder-acts .pq-ib + .pq-ib { margin-left: 0; }
.folder-acts .pq-ib:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15, 23, 42, .12); }
.pq-ib-has { border-color: #99f6e4; color: #0f766e; background: #f0fdfa; }
/* Printers page: filter bar + one collapsible group per printer */
.hf-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.hf-tools .form-control { flex: 1 1 200px; min-width: 160px; } .hf-tools .form-select { width: auto; flex: 0 0 auto; }
.hf-grouplbl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); white-space: nowrap; cursor: pointer; }
.hf-grpacts { display: inline-flex; gap: 10px; font-size: 12.5px; } .hf-grpacts[hidden] { display: none; }
.hf-groups { display: flex; flex-direction: column; gap: 10px; }
.hf-grp { border: 1px solid var(--line); border-radius: 13px; background: #fbfcfd; overflow: hidden; }
.hf-grp-head { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; padding: 10px 14px; text-align: left; color: var(--ink); cursor: pointer; }
.hf-grp-head:hover { background: #f1f5f9; }
.hf-grp-title { min-width: 0; flex: 1; } .hf-grp-title b { display: block; font-size: 14px; overflow-wrap: anywhere; } .hf-grp-title small { display: block; font-size: 12px; color: var(--muted); }
.hf-grp-head .chip { box-shadow: none; padding: 4px 10px; max-width: 45%; } .hf-grp-head .chip small { display: none; }
.hf-chev { flex-shrink: 0; color: var(--muted); transition: transform .15s; } .hf-grp.open .hf-chev { transform: rotate(180deg); }
.hf-grp-body { padding: 0 12px 12px; } .hf-grp-body[hidden] { display: none; }
@media (max-width: 560px) { .hf-grp-head .chip { display: none; } }

/* devices & apps */
.devices { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.device-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 10px; } .device-ic .ic { width: 22px; height: 22px; }
.device-ic.amber { background: var(--warn-soft); color: var(--warn); } .device-ic.violet { background: var(--violet-soft); color: var(--violet); }
.steps-list { padding-left: 18px; margin: 8px 0 12px; font-size: 13px; color: var(--ink-2); } .steps-list li { margin: 4px 0; }
.pair { background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; border-radius: 12px; padding: 14px; text-align: center; margin: 10px 0; }
.pair-code { font-family: ui-monospace, Consolas, monospace; font-size: 34px; letter-spacing: 8px; font-weight: 800; color: #fde68a; line-height: 1.2; }
.pair small { color: #94a3b8; } .pair a { color: #fff; text-decoration: underline; }

/* settings & prices */
.settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.qr-wrap { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.logo-box { width: 96px; height: 96px; border: 1.5px dashed #d5dbe3; border-radius: 12px; display: grid; place-items: center; background: #fbfcfd; overflow: hidden; flex-shrink: 0; }
.logo-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.qr { width: 168px; height: 168px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px; display: grid; place-items: center; font-size: 12px; color: var(--muted); text-align: center; flex-shrink: 0; }
.qr img, .qr canvas { max-width: 100%; height: auto; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.setting-row:last-of-type { border-bottom: 0; }
.setting-row .form-switch { margin: 0; padding-left: 2.9em; }
.setting-l { font-size: 13.5px; font-weight: 600; } .setting-d { font-size: 12.5px; color: var(--muted); font-weight: 400; }
.setting-row .form-control { width: 90px; text-align: center; flex-shrink: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); font-weight: 500; } .kv dd { margin: 0; min-width: 0; word-break: break-word; }
.price-rules td .form-control, .price-rules td .form-select { min-width: 88px; }

/* reports chart */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 170px; padding: 6px 0 18px; position: relative; }
.bars::before { content: ""; position: absolute; left: 0; right: 0; bottom: 18px; border-top: 1px solid var(--line); }
.bar-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; position: relative; }
.bar-col:hover .bar-fill { filter: brightness(.9); }
.bar-fill { position: relative; width: 100%; min-height: 2px; background: linear-gradient(180deg, var(--brand-2), var(--brand)); border-radius: 4px 4px 0 0; transition: height .3s; }
.bar-bad { position: absolute; left: 0; right: 0; top: 0; background: #f87171; border-radius: 4px 4px 0 0; }
.bar-lbl { position: absolute; top: 100%; left: 0; right: 0; font-size: 10px; color: var(--muted); text-align: center; margin-top: 4px; white-space: nowrap; overflow: hidden; }
.bars-empty { position: absolute; inset: 0 0 18px; display: grid; place-items: center; color: var(--muted-2); font-size: 13px; pointer-events: none; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* billing plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.plan { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; display: flex; flex-direction: column; gap: 6px; position: relative; }
.plan.pop { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.plan-name { font-weight: 700; color: var(--brand-dark); } .plan-amt { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; } .plan-sub { color: var(--muted); font-size: 13px; }
.plan .btn { margin-top: auto; }

/* filters */
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.filters label { font-size: 12px; font-weight: 600; color: var(--muted); display: block; }
.filters label > * { margin-top: 3px; }

/* ───────── responsive ───────── */
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, 1fr); } .wa-grid { grid-template-columns: 1fr; } }
@media (max-width: 960px) {
  .hero-grid, .price-grid, .pain-grid, .auth-wrap { grid-template-columns: 1fr; }
  .pain-arrow { transform: rotate(90deg); }
  .steps, .features, .proof { grid-template-columns: 1fr; }
  .pub-footer-grid { grid-template-columns: 1fr 1fr; }
  .pub-links { display: none; }
  .pub-nav.open .pub-links { display: flex; flex-direction: column; gap: 0; position: absolute; top: 64px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); margin: 0; padding: 8px 20px 12px; box-shadow: var(--shadow); }
  .pub-nav.open .pub-links a { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  .pub-menu { display: inline-flex; }
  .pub-cta { margin-left: 0; }
  .pub-cta .pub-btn-ghost { display: none; }
  .grid-2, .grid-2-1 { grid-template-columns: 1fr; }
  .wa-chat-grid { grid-template-columns: 1fr; min-height: 0; }
  .wa-convs { border-right: 0; max-height: none; }
  .wa-thread { min-height: 60vh; }
  .wa-chat-grid .wa-thread { display: none; }
  .wa-chat-grid.has-sel .wa-thread { display: flex; }
  .wa-chat-grid.has-sel .wa-convs { display: none; }
  .wa-back { display: inline-flex; }
  .hero-steps { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .app-side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-105%); z-index: 50; transition: transform .22s ease; width: min(300px, 86vw); box-shadow: none; height: 100dvh; }
  .app-side.open { transform: translateX(0); box-shadow: var(--shadow-lg); }
  .app-side-close { display: grid; place-items: center; }
  .app-side-toggle { display: none; }
  .app-burger { display: inline-flex; }
  .app-tabs { display: grid; }
  .app-top { padding: 8px 14px; min-height: 54px; }
  .app-title { font-size: 16.5px; } .app-subtitle { display: none; }
  .app-chip span { display: none; } .app-chip::after { content: attr(data-short); }
  .app-content { padding: 14px 14px calc(var(--tab-h) + 28px); gap: 12px; }
  .card-soft { padding: 14px; border-radius: 13px; }
  .stats { gap: 10px; }
  .stat { padding: 12px 14px; } .stat-v { font-size: 22px; } .stat-ic { width: 36px; height: 36px; border-radius: 10px; } .stat-ic .ic { width: 18px; height: 18px; }
  .hero-card { padding: 18px; border-radius: 15px; } .hero-card h2 { font-size: 19px; }
  .auth-row { grid-template-columns: 1fr; }
  .hero { padding-top: 96px; }
  .hero-visual { order: 2; }
  .pub-section { padding: 52px 0; }
  .folders, .devices, .settings { grid-template-columns: 1fr; }
  .quick { grid-template-columns: 1fr 1fr; }
  .modal-dialog { margin: 8px; }
  .qr-wrap { flex-direction: column; align-items: center; text-align: center; }
  .qr-wrap > div:not(.qr) { width: 100%; }
}
@media (max-width: 400px) { .stats { grid-template-columns: 1fr 1fr; } .stat-v { font-size: 20px; } .quick { grid-template-columns: 1fr; } }
@media (max-width: 768px) and (display-mode: standalone) { .app-tabs { padding-bottom: max(env(safe-area-inset-bottom), 8px); } }

/* ───────── Print Queue table (same columns as the EasyPrintZ Print Queue; stacks into cards on phones) ───────── */
.pq-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.pq-counts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pq-counts .badge { font-size: 12px; padding: 6px 10px; border-radius: 999px; }
.pq-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* Toolbar: solid, readable buttons that answer the mouse (lift + shadow), each with its own colour. */
.pq-actions .btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; border-radius: 10px; border-width: 1.5px; background: #fff; transition: transform .1s, box-shadow .15s, background .12s, color .12s, border-color .12s; }
.pq-actions .btn .ic { width: 16px; height: 16px; }
.pq-actions .btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15, 23, 42, .14); }
.pq-actions .btn:active { transform: translateY(0); box-shadow: none; }
.pq-actions .btn-primary { background: var(--brand); border-color: var(--brand); box-shadow: 0 3px 10px rgba(13, 148, 136, .28); }
.pq-actions .btn-outline-warning { color: #92400e; border-color: #f59e0b; background: #fffbeb; } .pq-actions .btn-outline-warning:hover { background: #f59e0b; color: #fff; }
.pq-actions .btn-outline-warning .badge { background: #f59e0b !important; color: #fff; }
.pq-actions .btn-outline-secondary { color: var(--ink-2); border-color: #cbd5e1; } .pq-actions .btn-outline-secondary:hover { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.pq-actions #showAllBtn { color: #0f766e; border-color: #5eead4; background: #f0fdfa; } .pq-actions #showAllBtn:hover, .pq-actions #showAllBtn.active { background: #0f766e; color: #fff; border-color: #0f766e; }
.pq-actions .btn-outline-danger { color: #b91c1c; border-color: #fca5a5; background: #fff5f5; } .pq-actions .btn-outline-danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.pq-actions .btn-outline-success { color: #15803d; border-color: #86efac; background: #f0fdf4; } .pq-actions .btn-outline-success:hover { background: #16a34a; color: #fff; border-color: #16a34a; }
.pq-actions .btn.active { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
/* A newer PrintBridge is on offer */
.pq-update { display: flex; align-items: center; gap: 12px; margin: 10px 0 4px; padding: 10px 14px; border: 1px solid #99f6e4; border-left: 4px solid #0d9488; border-radius: 12px; background: #f0fdfa; color: #134e4a; }
.pq-update > .ic { width: 20px; height: 20px; color: #0d9488; flex-shrink: 0; }
.pq-update-text { flex: 1; min-width: 0; font-size: 13.5px; }
.pq-update .btn-close { font-size: 11px; }
/* "Status" button: one dot summarises every bridge + printer; the chips open in a popover under it. */
.pq-status-btn { display: inline-flex; align-items: center; gap: 7px; }
.pq-status-btn .pq-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-2); flex-shrink: 0; }
.pq-status-btn small { color: var(--muted); font-weight: 400; }
.pq-status-btn.is-ok .pq-dot { background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); animation: chipPulse 2s infinite; }
.pq-status-btn.is-bad { border-color: #fecaca; background: #fff5f5; color: #991b1b; } .pq-status-btn.is-bad .pq-dot { background: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); } .pq-status-btn.is-bad small { color: #b91c1c; }
.pq-status-btn.is-warn { border-color: #fde68a; background: #fffbeb; color: #92400e; } .pq-status-btn.is-warn .pq-dot { background: var(--warn); box-shadow: 0 0 0 3px var(--warn-soft); } .pq-status-btn.is-warn small { color: #b45309; }
.pq-status-btn[aria-expanded="true"] { background: var(--ink-2); color: #fff; border-color: var(--ink-2); } .pq-status-btn[aria-expanded="true"] small { color: #cbd5e1; }
.pq-pop { position: fixed; z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px; overflow-y: auto; }
.pq-pop[hidden] { display: none; }
.pq-pop-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pq-pop-head b { font-size: 13.5px; } .pq-pop-head .pq-pop-sub { font-size: 12px; color: var(--muted); }
.pq-pop-head a { margin-left: auto; font-size: 12.5px; white-space: nowrap; }
.pq-pop-head .btn-close { font-size: 10px; padding: 6px; }
.pq-pop .chips { flex-direction: column; align-items: stretch; gap: 6px; }
.pq-pop .chip { border-radius: 10px; box-shadow: none; padding: 8px 12px; white-space: normal; }
.pq-card { padding: 0; overflow: hidden; }
.pq-search { padding: 10px 12px; border-bottom: 1px solid var(--line); background: #fbfcfd; position: relative; }
.pq-search .ic { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); color: var(--muted-2); width: 15px; height: 15px; pointer-events: none; }
.pq-search input { max-width: 380px; padding-left: 32px; border-radius: 999px; }
.pq-table { min-width: 900px; margin: 0; }
.pq-table td, .pq-table th { vertical-align: middle; padding: .55rem .35rem; }
.pq-table thead th { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; background: #f8fafc; border-bottom: 1px solid var(--line); }
/* Columns: File · Pages · Progress · Print next · actions. The customer sits in its own full-width row above each
   job (tr.pq-cust) and the print options in one below it (tr.pq-opts), so the file column takes whatever is left. */
.pq-table tr[data-job] > td:nth-child(1) { width: 38%; max-width: 0; }
.pq-table tr[data-job] > td:nth-child(2) { white-space: nowrap; }
.pq-table tr[data-job] > td:nth-child(3) { min-width: 150px; }
.pq-table tr[data-job] > td:nth-child(4) { white-space: nowrap; }
.pq-table tr[data-job] > td:nth-child(5) { white-space: nowrap; width: 84px; }
/* Print options under each active job: Orientation · Copies · Colour · Sides · Paper · Hot folder (searchable) */
.pq-table tr[data-job]:has(+ tr.pq-opts) > td { border-bottom: 0; padding-bottom: 2px; }
.pq-table tr.pq-opts > td { padding: 0 .5rem 10px; }
.pq-table tr.pq-opts:hover > td { --bs-table-bg-state: transparent; }
.pq-optrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 14px; padding: 6px 10px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; }
.pq-og { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pq-ol { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.pq-seg { display: inline-flex; gap: 4px; }
.pq-seg-b { width: 38px; height: 31px; display: inline-flex; align-items: center; justify-content: center; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; padding: 0; }
.pq-seg-b.on { border-color: var(--brand); background: #f0fdfa; box-shadow: 0 0 0 2px #ccfbf1; }
.pq-seg-b i { display: block; border-radius: 2px; }
.pq-seg-b i.o-por { width: 12px; height: 17px; border: 2px solid #64748b; background: #fff; } .pq-seg-b i.o-lan { width: 17px; height: 12px; border: 2px solid #64748b; background: #fff; }
.pq-seg-b i.o-bw { width: 16px; height: 16px; background: #111; border-radius: 4px; } .pq-seg-b i.o-col { width: 16px; height: 16px; border-radius: 4px; background: conic-gradient(#ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7, #ef4444); }
.pq-step { display: inline-flex; border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; height: 31px; }
.pq-step button { width: 28px; border: 0; background: #f1f5f9; font-size: 15px; cursor: pointer; color: var(--ink); padding: 0; }
.pq-step input.pq-num { width: 46px; border: 0; text-align: center; font-size: 13.5px; padding: 0; -moz-appearance: textfield; }
.pq-step input::-webkit-inner-spin-button, .pq-step input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pq-osel { width: auto; min-width: 104px; max-width: 150px; height: 31px; padding-top: 2px; padding-bottom: 2px; }
.pq-og-hf { flex: 1 1 180px; max-width: 280px; }
.pq-hf { display: flex; align-items: center; justify-content: space-between; gap: 6px; height: 31px; width: 100%; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 0 9px; font-size: 13px; color: var(--ink); cursor: pointer; text-align: left; }
.pq-hf > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pq-hf.pq-hf-none { border-color: var(--warn); color: #92400e; }
.pq-hfwarn { color: var(--warn); text-transform: none; letter-spacing: 0; font-weight: 600; }
.pq-hfpop { position: fixed; z-index: 1070; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(15, 23, 42, .22); padding: 8px; }
.pq-hfpop[hidden] { display: none; }
.pq-hflist { max-height: 260px; overflow-y: auto; margin-top: 6px; display: flex; flex-direction: column; gap: 2px; }
.pq-hfi { position: relative; display: block; width: 100%; text-align: left; border: 0; background: none; border-radius: 8px; padding: 6px 8px; cursor: pointer; color: var(--ink); }
.pq-hfi:hover, .pq-hfi:focus { background: #f1f5f9; outline: 0; } .pq-hfi.on { background: #f0fdfa; box-shadow: inset 3px 0 0 var(--brand); }
.pq-hfi b { display: block; font-size: 13px; font-weight: 600; padding-right: 58px; } .pq-hfi small { display: block; font-size: 11.5px; color: var(--muted); }
.pq-hffit { position: absolute; right: 8px; top: 7px; font-size: 10px; font-weight: 700; color: #047857; background: var(--ok-soft); border-radius: 4px; padding: 1px 5px; }
/* Hot folder list: online printers first, each with its printer's state; a gear opens the printer's own Properties dialog on this PC. */
.pq-hfsep { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px 2px; }
.pq-hfsep + .pq-hfsep { display: none; }
.pq-hfrow { display: flex; flex-direction: column; border-radius: 8px; }
.pq-hfrow .pq-hfi { width: 100%; }
.pq-hfrow.on { background: #f0fdfa; box-shadow: inset 3px 0 0 var(--brand); } .pq-hfrow.on .pq-hfi { background: none; } .pq-hfrow.on .pq-hfi:hover { background: #e6faf5; }
.pq-hfrow.off .pq-hfi b { color: var(--muted); }
.pq-hfacts { display: flex; align-items: center; gap: 6px; padding: 0 8px 7px; }
.pq-hflist .pq-hfst span[title] { text-decoration: underline dotted; }
.pq-hfst { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); margin-top: 2px; }
.pq-hfst i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); flex-shrink: 0; }
.pq-hfst.ready i { background: var(--ok); } .pq-hfst.busy i { background: var(--busy); } .pq-hfst.busy { color: #1d4ed8; }
.pq-hfst.attention i { background: var(--warn); } .pq-hfst.attention { color: #b45309; }
.pq-hfst.offline i, .pq-hfst.missing i { background: var(--bad); } .pq-hfst.offline, .pq-hfst.missing { color: var(--bad); }
.pq-hfgear { flex: 0 0 auto; align-self: center; display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; color: var(--ink-2); cursor: pointer; font-size: 11px; font-weight: 600; line-height: 1; white-space: nowrap; }
.pq-hfgear:hover, .pq-hfgear:focus { background: #f1f5f9; color: var(--ink); outline: 0; }
.pq-hfgear.has { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.pq-hfreset { width: 24px; padding: 0; justify-content: center; font-size: 15px; color: var(--muted); }
.pq-hf .pq-hfsaved { display: inline-grid; place-items: center; color: var(--brand); } .pq-hf .pq-hfsaved svg { width: 12px; height: 12px; }
.pq-alt { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; margin: 0 4px; cursor: pointer; white-space: nowrap; }
.pq-alt[hidden], .pq-pickbar-acts .btn[hidden] { display: none; }
.pq-table tr.pq-cust > td { border-bottom: 0; padding: 10px .45rem 2px; }
.pq-table tr.pq-cust:hover > td { --bs-table-bg-state: transparent; }
.pq-table tr[data-job] > td { border-top: 0; }
.pq-cust-row { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 12px; font-size: 12.5px; }
.pq-cust-row > div { display: inline-flex; align-items: center; gap: 4px; min-width: 0; }
.pq-cust-row .pq-file { font-size: 14px; max-width: 260px; }
.pq-cust-row .pq-order { margin-top: 0; }
.pq-filecell { display: flex; align-items: center; gap: 9px; min-width: 0; cursor: zoom-in; }
.pq-filetext { min-width: 0; flex: 1; }
.pq-thumb { width: 38px; height: 38px; flex-shrink: 0; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); background: #f8fafc; display: block; }
.pq-thumb-wait { display: grid; place-items: center; font-size: 16px; color: var(--muted-2); animation: pqThumbPulse 1.2s ease-in-out infinite; }
@keyframes pqThumbPulse { 50% { background: #e2e8f0; } }
.pq-filecell > .pq-kind { width: 38px; height: 38px; display: grid; place-items: center; flex-shrink: 0; margin: 0; font-size: 20px; border-radius: 6px; background: #f8fafc; border: 1px solid var(--line); }
.pq-peek { position: fixed; z-index: 1080; width: 300px; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-lg); pointer-events: none; }
.pq-peek[hidden] { display: none; }
.pq-peek img { display: block; width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; background: #f1f5f9; }
.pq-peek img[hidden] { display: none; }
.pq-peek-wait { font-size: 12px; color: var(--muted); padding: 18px 0; text-align: center; }
.pq-peek-wait[hidden] { display: none; }
.pq-done-search { max-width: 320px; margin-left: auto; }
#doneModal .modal-body { min-height: 200px; }
#doneModal .pq-table { min-width: 0; }
@media (max-width: 768px) { .pq-done-search { max-width: none; } #doneModal .modal-header { flex-wrap: wrap; } }
.pq-file { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-req { font-size: 11.5px; color: #047857; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pq-order { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 3px; align-items: center; font-size: 11px; } .pq-order .badge { font-size: 10px; }
.pq-kind { font-size: 16px; margin-right: 6px; }
.pq-badge { font-size: 11px; font-weight: 700; border-radius: 6px; padding: 2px 8px; letter-spacing: .03em; white-space: nowrap; }
.pq-st-New, .pq-st-Pending { background: #e2e8f0; color: #334155; }
.pq-st-Printing, .pq-st-Delivered { background: var(--busy-soft); color: #1e40af; }
.pq-st-Spooled { background: #e0e7ff; color: #3730a3; }
.pq-st-Partial { background: var(--warn-soft); color: #92400e; }
.pq-st-Completed, .pq-st-Printed { background: var(--ok-soft); color: #065f46; }
.pq-st-Cancelled, .pq-st-Failed { background: var(--bad-soft); color: #991b1b; }
.pq-badge.pq-attn-badge { background: var(--warn-soft); color: #92400e; }
.pq-src { font-size: 10px; border-radius: 4px; padding: 1px 6px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }
.pq-src-whatsapp { background: #dcfce7; color: #15803d; } .pq-src-upload { background: #e0e7ff; color: #4338ca; } .pq-src-api { background: #fce7f3; color: #be185d; } .pq-src-qr { background: var(--ok-soft); color: #047857; } .pq-src-printq { background: #ccfbf1; color: #0f766e; }
.pq-progress { height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; min-width: 90px; } .pq-progress > div { height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--ok)); transition: width .3s; }
.pq-num, .pq-units { width: 62px; padding-left: 6px; padding-right: 2px; }
.pq-sel { min-width: 112px; max-width: 150px; }
.pq-attn { font-size: 12px; color: var(--warn); font-weight: 600; margin-top: 2px; }
.pq-live { color: var(--busy); }
.pq-err { font-size: 11.5px; color: var(--bad); white-space: normal; }
.pq-bjob { font-size: 10px; color: var(--muted); } .pq-bpst { font-size: 11px; color: var(--warn); font-weight: 600; } .pq-bmsg { font-size: 11px; color: var(--ink-2); }
.pq-batches { background: #f8fafc; } .pq-batches > td { border-bottom: 2px solid var(--line) !important; } .pq-btable { font-size: 12px; }
.pq-paystrip { border-left: 4px solid var(--ok); }
/* Ready to collect: printed jobs waiting for their customer, under one heading at the end of the active list */
.pq-st-Ready { background: var(--ok); color: #fff; }
.pq-table tr.pq-ready .pq-progress { min-width: 90px; }
.pq-table tr.pq-ready > td:first-child { box-shadow: inset 3px 0 0 var(--ok); }
.pq-table tr.pq-flag-warn > td:first-child { box-shadow: inset 3px 0 0 var(--warn); }
/* Jobs whose file the shop replaced with a sheet made at the counter (passport sheet / photo layout) */
.pq-table tr.pq-counter > td { --bs-table-bg: #f5effe; background-color: #f5effe; }
.pq-table tr.pq-counter:not(.pq-cust) > td:first-child { box-shadow: inset 3px 0 0 #a855f7; }
.pq-src-counter { background: #f3e8ff; color: #6b21a8; }
.pq-table tr.pq-sep > td { padding: .45rem .6rem; font-size: 12.5px; font-weight: 700; color: #065f46; background: var(--ok-soft); border-top: 1px solid #a7f3d0; width: auto; max-width: none; }
.pq-table tr.pq-sep-empty > td { padding: .8rem .6rem; font-size: 12.5px; color: var(--muted); text-align: center; width: auto; max-width: none; }
.pq-table tr.pq-sep-empty:hover > td { --bs-table-bg-state: transparent; }
.pq-sep-n { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--ok); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.pq-sep-n.pq-sep-zero { background: #cbd5e1; color: #334155; }
.pq-sep-hint { font-weight: 400; color: var(--muted); margin-left: 6px; }
.pq-collect-all { font-size: 12px; padding: 0 6px; vertical-align: baseline; }
.pq-collected { white-space: nowrap; display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; padding: 6px 9px; }
.pq-undo { font-size: 11px; }
.pq-tk { font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 6px; background: #e2e8f0; color: #334155; letter-spacing: .03em; }
.pq-unread { color: var(--warn); font-weight: 600; font-size: 12px; }
.pq-told { color: #047857; } .pq-meta.pq-wrap { white-space: normal; }
.pq-phone { color: var(--muted); text-decoration: none; } .pq-phone:hover { color: #15803d; text-decoration: underline; }
.pq-ib-ok { border-color: #86efac; color: #15803d; } .pq-ib-ok:hover { background: var(--ok-soft); color: #166534; }
.pq-counts .pq-cnt-ready { background: var(--ok); color: #fff; } .pq-counts .pq-cnt-ready.pq-zero { background: #e2e8f0; color: #475569; }
/* Row action icon buttons (print / retry / batches / cancel / delete) */
.pq-ib { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid #d5dbe3; background: #fff; color: var(--ink-2); cursor: pointer; padding: 0; vertical-align: middle; transition: background .12s, color .12s, transform .06s; }
.pq-ib + .pq-ib { margin-left: 4px; }
/* An icon button with a word next to the icon (Reprint): reads at a glance where the icon alone did not. */
.pq-ib:has(.pq-ib-txt) { width: auto; padding: 0 10px 0 8px; gap: 5px; }
.pq-ib-txt { font-size: 12px; font-weight: 700; letter-spacing: .01em; }
.pq-ib:hover { background: #f1f5f9; color: var(--ink); } .pq-ib:active { transform: scale(.94); } .pq-ib:disabled { opacity: .35; cursor: default; transform: none; }
.pq-ib-go { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: 0 3px 8px rgba(5, 150, 105, .3); } .pq-ib-go:hover { background: #047857; color: #fff; }
.pq-ib-warn { border-color: var(--warn); color: var(--warn); } .pq-ib-warn:hover { background: var(--warn-soft); }
.pq-ib-danger { border-color: #fca5a5; color: var(--bad); } .pq-ib-danger:hover { background: var(--bad-soft); }
.pq-ib-n { position: absolute; top: -6px; right: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #6366f1; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }
.pq-ib-warn .pq-ib-n { background: var(--warn); }
.pq-ib.pq-busy svg { animation: pqSpin 1s linear infinite; } @keyframes pqSpin { to { transform: rotate(360deg); } }
.pq-empty { padding: 44px 20px; text-align: center; color: var(--muted); }
.pq-empty .ic { width: 40px; height: 40px; color: #cbd5e1; stroke-width: 1.5; margin-bottom: 8px; }
.pq-empty b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
@media (max-width: 768px) {
  .pq-actions { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pq-actions::-webkit-scrollbar { display: none; }
  .pq-search input { max-width: none; }
  /* table → one card per job */
  .pq-table { min-width: 0; }
  .pq-table thead { display: none; }
  .pq-table, .pq-table tbody { display: block; }
  .pq-table tr.pq-cust { display: block; padding: 12px 12px 0; border-top: 1px solid var(--line); }
  .pq-table tr.pq-cust:first-child { border-top: 0; }
  .pq-table tr.pq-cust > td { display: block; padding: 0; border: 0; }
  .pq-table tr[data-job] { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; padding: 8px 12px 10px; }
  .pq-table tr[data-job] > td { display: block; padding: 0; border: 0; width: auto !important; max-width: none !important; min-width: 0 !important; background: none !important; }
  .pq-table tr[data-job] > td::before { content: attr(data-l); display: block; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
  .pq-table tr[data-job] > td:nth-child(1), .pq-table tr[data-job] > td:nth-child(3) { grid-column: 1 / -1; }
  .pq-table tr[data-job] > td:nth-child(1)::before { display: none; }
  .pq-table tr[data-job] > td:nth-child(5) { text-align: right !important; align-self: end; }
  .pq-table tr[data-job] > td:nth-child(5)::before { content: "\00a0"; }
  .pq-table tr.pq-opts, .pq-table tr.pq-opts > td { display: block; }
  .pq-table tr.pq-opts > td { padding: 0 12px 12px; border: 0; }
  .pq-optrow { gap: 8px 12px; }
  .pq-og-hf { flex-basis: 100%; max-width: none; }
  .pq-cust-row .pq-file { max-width: 100%; }
  .pq-peek { display: none !important; }
  .pq-file, .pq-meta, .pq-req { white-space: normal; }
  .pq-sel { max-width: none; width: 100%; }
  .pq-num { width: 100%; }
  .pq-units { width: 72px; }
  .pq-batches { display: block; }
  .pq-table tr.pq-sep, .pq-table tr.pq-sep > td, .pq-table tr.pq-sep-empty, .pq-table tr.pq-sep-empty > td { display: block; }
  .pq-table tr.pq-ready { box-shadow: inset 3px 0 0 var(--ok); }
  .pq-table tr.pq-flag-warn { box-shadow: inset 3px 0 0 var(--warn); }
  .pq-table tr.pq-ready > td:first-child, .pq-table tr.pq-flag-warn > td:first-child { box-shadow: none; }
  .pq-table tr.pq-cust.pq-ready + tr[data-job], .pq-table tr.pq-cust.pq-flag-warn + tr[data-job] { box-shadow: none; }
  .pq-sep-hint { display: block; margin: 2px 0 0; }
  .pq-batches > td { display: block; padding: 8px 10px !important; }
}

/* ── Customer coins page ─────────────────────────────────────────── */
.pq-coins-stats { display: grid; grid-template-columns: 180px 180px 1fr; gap: 12px; margin-bottom: 12px; }
.pq-stat { padding: 14px 16px; }
.pq-stat-n { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.1; }
.pq-stat-l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.pq-stat.warn { border-color: #fde68a; background: #fffbeb; } .pq-stat.warn .pq-stat-n { color: #92400e; }
.pq-stat-help { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; font-size: 13px; color: var(--ink-2); }
.pq-stat-help .ic { flex: 0 0 auto; width: 18px; height: 18px; color: var(--brand); margin-top: 1px; }
.pq-coins-search { display: flex; gap: 6px; align-items: center; flex: 0 0 auto; } .pq-coins-search input { width: 220px; }
.pq-payout { border-top: 1px dashed var(--line); padding-top: 12px; }
.pq-payout .setting-l .ic { width: 16px; height: 16px; vertical-align: -3px; color: var(--brand); }
.pq-admin-pay { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.pq-admin-pay summary { cursor: pointer; font-weight: 600; font-size: 13px; color: var(--brand); list-style: none; }
.pq-admin-pay summary::-webkit-details-marker { display: none; }
.pq-admin-to { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.pq-admin-to code { font-size: 12.5px; color: var(--ink); background: #f1f5f9; padding: 1px 5px; border-radius: 5px; }
.pq-ledger { max-height: 520px; overflow-y: auto; }
.pq-ledger-row { display: flex; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 13.5px; }
.pq-ledger-row:first-child { border-top: none; }
.pq-ledger-amt { flex: 0 0 76px; font-weight: 800; color: var(--ok); white-space: nowrap; }
.pq-ledger-row.debit .pq-ledger-amt { color: var(--ink-2); } .pq-ledger-row.rejected .pq-ledger-amt { color: var(--bad); text-decoration: line-through; }
.pq-ledger-text { min-width: 0; }
.pq-amt-chips { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 768px) {
  .pq-coins-stats { grid-template-columns: 1fr 1fr; } .pq-stat-help { grid-column: 1 / -1; }
  .pq-coins-search { width: 100%; margin-top: 6px; } .pq-coins-search input { width: 100%; }
}

/* ── Print Queue: select photos → passport sheet / photo layout (sheet-maker.js) ── */
.pq-pick { width: 19px; height: 19px; margin: 0 6px 0 0; flex: 0 0 auto; cursor: pointer; border: 2px solid #64748b; border-radius: 5px; background-color: #fff; }
.pq-pick:hover { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
.pq-pick:checked { border-color: var(--brand); }
.pq-pickbar { position: fixed; left: calc(50% + 120px); bottom: 24px; transform: translateX(-50%); z-index: 1045; display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; max-width: calc(100vw - 24px); padding: 10px 16px; border: 1px solid var(--brand); border-radius: 14px; background: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, .28); font-size: 13.5px; font-weight: 600; color: var(--ink); animation: pickbar-in .18s ease-out; }
.pq-pickbar[hidden] { display: none; }
@keyframes pickbar-in { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (max-width: 767px) { .pq-pickbar { left: 12px; right: 12px; top: 62px; bottom: auto; transform: none; animation: none; justify-content: space-between; } }
.pq-pickbar-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.sm-modal { position: fixed; inset: 0; background: rgba(15, 23, 42, .55); display: flex; align-items: flex-end; justify-content: center; z-index: 1060; }
.sm-modal[hidden] { display: none; }
.sm-box { background: #fff; width: 100%; max-width: 560px; border-radius: 16px 16px 0 0; padding: 14px 16px 16px; max-height: 92vh; overflow-y: auto; color: var(--ink); font-size: 14px; }
@media (min-width: 600px) { .sm-modal { align-items: center; padding: 16px; } .sm-box { border-radius: 16px; } }
.sm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.sm-head h3 { margin: 0; font-size: 17px; font-weight: 800; } .sm-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.sm-x { border: 0; background: #f1f5f9; border-radius: 50%; width: 32px; height: 32px; font-size: 18px; cursor: pointer; color: var(--ink); flex: 0 0 auto; }
.sm-queue { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 2px; }
.sm-queue i { width: 40px; height: 40px; border-radius: 7px; border: 2px solid var(--line); background: #f1f5f9 center / cover no-repeat; position: relative; opacity: .45; }
.sm-queue i.cur { border-color: var(--brand); opacity: 1; box-shadow: 0 0 0 2px #ccfbf1; } .sm-queue i.done { opacity: 1; border-color: #059669; } .sm-queue i.skip { opacity: .3; }
.sm-queue i.done::after { content: "\2713"; position: absolute; right: -5px; bottom: -5px; width: 16px; height: 16px; border-radius: 50%; background: #059669; color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
.sm-row { margin-top: 10px; } .sm-row > label, .sm-grid label, .sm-tools label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin: 0 0 4px; }
.sm-sw { display: flex; gap: 8px; } .sm-sw.wrap { flex-wrap: wrap; gap: 6px; } .sm-sw.wrap button { flex: 1 1 0; min-width: 0; padding: 7px 2px; font-size: 12.5px; letter-spacing: -.01em; white-space: nowrap; }
@media (max-width: 440px) { .sm-sw.wrap button { flex-basis: calc(33.33% - 6px); } }
.sm-sliders { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 8px; } .sm-sliders .sm-tools { margin-top: 0; min-width: 0; }
@media (max-width: 360px) { .sm-sliders { grid-template-columns: 1fr; } }
.sm-sw button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; border: 2px solid var(--line); border-radius: 10px; padding: 8px 10px; cursor: pointer; font-size: 13.5px; font-weight: 600; background: #fff; color: var(--ink); }
.sm-sw button.on { border-color: var(--brand); background: #f0fdfa; }
.sm-sw button i.sq { width: 16px; height: 16px; border: 2px dashed #64748b; border-radius: 2px; } .sm-sw button i.rc { width: 13px; height: 18px; border: 2px dashed #64748b; border-radius: 2px; }
.sm-crop { position: relative; margin: 8px auto 0; background: #0f172a; border-radius: 10px; overflow: hidden; touch-action: none; user-select: none; }
.sm-crop img { display: block; pointer-events: none; }
.sm-guide { position: absolute; box-sizing: border-box; border: 2px solid var(--brand); box-shadow: 0 0 0 9999px rgba(15, 23, 42, .5); cursor: move; }
.sm-guide::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: rgba(255, 255, 255, .7); }
.sm-hint { color: var(--muted); font-size: 12.5px; margin: 8px 0 0; }
.sm-tools { display: flex; align-items: center; gap: 10px; margin-top: 8px; } .sm-tools label { margin: 0; white-space: nowrap; }
.sm-tools input[type=range] { flex: 1; min-width: 0; accent-color: var(--brand); } .sm-tools b { font-size: 13px; white-space: nowrap; }
.sm-btn { border: 0; background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px; padding: 9px 14px; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.sm-btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); } .sm-btn:disabled { opacity: .6; cursor: default; }
.sm-paper-wrap { display: flex; justify-content: center; margin: 10px 0 4px; }
.sm-paper { background: #fff; border: 1px solid #cbd5e1; box-shadow: 0 2px 10px rgba(15, 23, 42, .12); position: relative; overflow: hidden; }
.sm-paper canvas { width: 100%; height: 100%; display: block; }
.sm-ph { color: #94a3b8; font-size: 12px; text-align: center; padding: 8px; } .sm-ph-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .7); }
.sm-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 6px; font-size: 13px; color: var(--muted); }
.sm-nav { display: flex; gap: 6px; } .sm-nav .sm-btn { width: 36px; padding: 6px 0; }
.sm-checks { display: flex; gap: 16px; margin-top: 8px; font-size: 13.5px; flex-wrap: wrap; align-items: center; }
.sm-pi-off i { opacity: .35; filter: grayscale(1); }
.sm-pi-off .sm-pc b { color: #94a3b8; }
.sm-checks label { display: flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; } .sm-checks input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.sm-copies { margin-left: auto; gap: 8px !important; }
.sm-step { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.sm-step button { width: 34px; border: 0; background: #f1f5f9; font-size: 16px; cursor: pointer; color: var(--ink); } .sm-step input { width: 52px; border: 0; text-align: center; font-size: 14px; }
.sm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; } .sm-grid > div:first-child { grid-column: 1 / -1; }
.sm-grid select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 8px; font-size: 14px; background: #fff; }
.sm-err { color: #b91c1c; font-size: 13px; margin: 8px 0 0; } .sm-err[hidden] { display: none; }
.sm-btns { display: flex; gap: 10px; margin-top: 14px; } .sm-btns .sm-btn { flex: 1; padding: 12px; font-size: 15px; }
.sm-btns .sm-btn[hidden], .sm-tools[hidden] { display: none; }
/* Layout screen, same order as the customer page: photo strip (prints per photo, tap to crop) → kind → preview → sizes → sliders → options */
.sm-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 2px; }
.sm-pi { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sm-pi i { width: 44px; height: 44px; border-radius: 7px; border: 2px solid var(--brand); background: #f1f5f9 center / cover no-repeat; cursor: pointer; position: relative; }
.sm-pi i.bad { border-color: var(--bad); opacity: .5; cursor: default; }
.sm-pi i.cut::before { content: ""; position: absolute; left: -5px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); border: 2px solid #fff; }
.sm-pc { display: inline-flex; align-items: center; gap: 2px; font-size: 12px; }
.sm-pc button { border: 0; background: none; color: var(--brand); font-weight: 800; font-size: 15px; line-height: 1; padding: 0 3px; cursor: pointer; }
.sm-pc b { min-width: 12px; text-align: center; }
.sm-kind { margin-top: 8px; }
.sm-sw button i.lay { width: 16px; height: 16px; background: linear-gradient(#94a3b8, #94a3b8) 0 0 / 7px 7px no-repeat, linear-gradient(#94a3b8, #94a3b8) 9px 0 / 7px 7px no-repeat, linear-gradient(#94a3b8, #94a3b8) 0 9px / 7px 7px no-repeat, linear-gradient(#94a3b8, #94a3b8) 9px 9px / 7px 7px no-repeat; }
.sm-sizerow { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; margin-top: 6px; }
.sm-sizerow > label { margin: 0; max-width: 66px; font-size: 11px; line-height: 1.2; color: var(--muted); font-weight: 700; }
@media (max-width: 440px) { .sm-sizerow { grid-template-columns: 1fr; gap: 4px; } .sm-sizerow > label { max-width: none; } }
.sm-opts { display: grid; grid-template-columns: auto auto auto auto; justify-content: space-between; gap: 8px 16px; align-items: end; margin-top: 10px; }
.sm-opts label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin: 0 0 4px; white-space: nowrap; }
.sm-opts select { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: 14px; background: #fff; height: 34px; }
.sm-opts .sm-step { height: 34px; } .sm-opts .sm-step input { width: 52px; min-width: 0; }
.sm-checks-col { display: flex; align-items: center; height: 34px; margin: 0; }
.sm-checks-col label { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 13px; font-weight: 500; margin: 0; white-space: nowrap; } .sm-checks-col input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--brand); margin: 0; }
.sm-sw-ic button, .sm-sw-sm button { padding: 6px 8px; height: 34px; font-size: 12.5px; }
.sm-sw-ic button i { width: 16px; height: 16px; border-radius: 4px; } .sm-sw-ic button i.bw { background: #111; }
.sm-sw-ic button i.color { background: conic-gradient(#ef4444, #f59e0b, #22c55e, #3b82f6, #a855f7, #ef4444); }
@media (max-width: 520px) { .sm-opts { grid-template-columns: 1fr 1fr; } }
.sm-tag { position: absolute; right: 4px; bottom: 3px; font-size: 10px; color: #94a3b8; background: rgba(255, 255, 255, .85); padding: 0 3px; border-radius: 3px; }
/* crop (+ rotate) layer over the sheet maker */
.sm-crop-modal { z-index: 1065; }
.sm-guide.sm-free::after { display: none; }
.sm-h { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); }
.sm-h.nw { left: -2px; top: -2px; cursor: nwse-resize; } .sm-h.ne { right: -2px; top: -2px; cursor: nesw-resize; }
.sm-h.sw { left: -2px; bottom: -2px; cursor: nesw-resize; } .sm-h.se { right: -2px; bottom: -2px; cursor: nwse-resize; }
/* An order with several files: one collapsible group row (customer, order chips, Print all), its files indented below */
.pq-table tr.pq-grp > td { padding: 10px .5rem; background: #f0fdfa; border-top: 2px solid var(--line); cursor: pointer; }
.pq-table tr.pq-grp:hover > td { background: #e6fbf6; --bs-table-bg-state: transparent; }
.pq-grp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 13px; }
.pq-grp-who { min-width: 0; } .pq-grp-who b { font-size: 14.5px; }
.pq-grp-tog { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); padding: 0; flex: 0 0 auto; }
.pq-grp-tog svg { transition: transform .15s; } .pq-grp-open .pq-grp-tog svg { transform: rotate(90deg); }
.pq-grp-row .pq-pick { margin: 0; }
.pq-grp-acts { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.pq-grp-acts .btn svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 2px; }
.pq-table tr.pq-in-grp > td:first-child { box-shadow: inset 4px 0 0 #99f6e4; }
.pq-table tr.pq-cust.pq-in-grp > td { padding-left: 1.4rem; }
.pq-amt { color: var(--ink); }
@media (max-width: 768px) {
  .pq-table tr.pq-grp, .pq-table tr.pq-grp > td { display: block; }
  .pq-grp-acts { margin-left: 0; width: 100%; } .pq-grp-acts .btn { flex: 1; }
}
/* Settings → Customer QR: one full-width card, QR column + switches column */
.settings .cq-card { grid-column: 1 / -1; }
.cq { display: grid; grid-template-columns: 240px 1fr; gap: 12px 28px; align-items: start; }
.cq-qr { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.cq-qr .qr { align-self: center; width: 180px; height: 180px; }
.cq-btns { display: flex; gap: 6px; } .cq-btns .btn { flex: 1; white-space: nowrap; }
.cq-opts .setting-row:first-child { padding-top: 0; }
.cq-opts .setting-d { max-width: 560px; line-height: 1.45; }
@media (max-width: 768px) { .cq { grid-template-columns: 1fr; } .cq-qr { max-width: 320px; width: 100%; margin: 0 auto; } }

/* Amount in the print options row (live from the price list) */
.pq-og-amt { min-width: 64px; } .pq-amtv { font-size: 15px; line-height: 31px; color: var(--ink); } .pq-amt-none { color: var(--muted); font-weight: 500; }
/* Bill maker (bill-maker.js): form + live preview */
.bm-box { max-width: 980px; }
.bm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 12px; align-items: start; }
.bm-form label { display: block; font-size: 11.5px; font-weight: 700; color: var(--muted); margin: 0 0 3px; }
.bm-form input { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 7px 9px; font-size: 14px; }
.bm-form > div { margin-bottom: 10px; } .bm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bm-lines { width: 100%; border-collapse: collapse; margin-bottom: 10px; font-size: 13px; }
.bm-lines th { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 4px 0; border-bottom: 1px solid var(--line); text-align: left; }
.bm-lines td { padding: 6px 0; border-bottom: 1px solid var(--line-2); vertical-align: middle; } .bm-lines td b { display: block; font-weight: 600; word-break: break-all; }
.bm-lines td small { color: var(--muted); } .bm-lines .r { text-align: right; width: 110px; } .bm-lines input { width: 96px; text-align: right; }
.bm-total { display: flex; justify-content: space-between; align-items: center; background: #f0fdfa; border-radius: 10px; padding: 10px 12px; font-size: 15px; } .bm-total b { font-size: 20px; color: var(--brand); }
.bm-preview { background: #f1f5f9; border-radius: 12px; padding: 10px; max-height: 62vh; overflow: auto; } .bm-preview img { width: 100%; display: block; box-shadow: 0 2px 10px rgba(15, 23, 42, .15); background: #fff; }
.bm-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; } .bm-acts .sm-btn { flex: 1 1 140px; padding: 11px; } .bm-acts .sm-btn[hidden] { display: none; }
.bm-acts .bm-wa { background: #16a34a; } .bm-hint { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
@media (max-width: 760px) { .bm-grid { grid-template-columns: 1fr; } .bm-preview { max-height: none; } }
/* An expanded order: its header and every file row share one tint, so the group reads as one block */
.pq-table tr.pq-grp.pq-grp-open > td { background: #ccfbf1; border-bottom: 0; }
.pq-table tr.pq-in-grp > td { --bs-table-bg: #f0fdfa; background-color: #f0fdfa; }
.pq-table tr.pq-in-grp:hover > td { --bs-table-bg-state: transparent; background-color: #e6fbf5; }
.pq-table tr.pq-in-grp .pq-optrow { background: #fff; border-color: #99f6e4; }
.pq-table tr.pq-in-grp > td:first-child { box-shadow: inset 4px 0 0 var(--brand); }

/* ═══ Print Queue as cards (26 Oct 2026): one card per submission — an order, or the files one sender sent together.
   Cards take turns in four soft tones (left edge + header tint); the person, time, order and payment show once in the
   header; each file is a slim row; print options sit on one line under it without repeated labels. ═══ */
.pq-cards { display: flex; flex-direction: column; gap: 12px; padding: 12px; }
.pq-sub { --tone: #14b8a6; --tone-bg: #f0fdfa; --tone-line: #99f6e4; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--tone); border-radius: 14px; box-shadow: 0 1px 3px rgba(15, 23, 42, .05); overflow: hidden; }
.pq-sub[hidden] { display: none; }
.pq-tone-1 { --tone: #6366f1; --tone-bg: #eef2ff; --tone-line: #c7d2fe; }
.pq-tone-2 { --tone: #f59e0b; --tone-bg: #fffbeb; --tone-line: #fde68a; }
.pq-tone-3 { --tone: #ec4899; --tone-bg: #fdf2f8; --tone-line: #fbcfe8; }
.pq-sub.pq-sub-ready { --tone: #16a34a; --tone-bg: #f0fdf4; --tone-line: #bbf7d0; }
.pq-sub-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; background: var(--tone-bg); }
.pq-multi .pq-sub-head { cursor: pointer; }
.pq-sub-head .pq-pick { margin: 0; }
.pq-sub-tog { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--tone-line); border-radius: 8px; background: #fff; color: var(--ink); padding: 0; flex: 0 0 auto; }
.pq-sub-tog svg { transition: transform .15s; }
.pq-open .pq-sub-tog svg { transform: rotate(90deg); }
.pq-av { width: 34px; height: 34px; border-radius: 50%; background: var(--tone); color: #fff; font-weight: 800; font-size: 15px; display: grid; place-items: center; flex: 0 0 auto; }
.pq-who { min-width: 0; flex: 1 1 220px; }
.pq-who-name { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pq-who-name b { font-size: 15px; }
.pq-who .pq-phone { font-size: 12.5px; }
.pq-chat-link { text-decoration: none; }
.pq-flagtxt { color: #b45309; font-weight: 600; }
.pq-order { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0; }
.pq-chip { font-size: 11.5px; font-weight: 600; border-radius: 999px; padding: 2px 9px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.pq-chip-dark { background: #0f172a; color: #fff; border-color: #0f172a; }
.pq-chip-ok { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.pq-chip-info { background: #e0f2fe; color: #075985; border-color: #bae6fd; }
.pq-chip-wait { background: #f1f5f9; color: #475569; }
.pq-chip-warn { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.pq-addr { flex-basis: 100%; }
.pq-link-btn { border: 0; background: none; padding: 0 4px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.pq-paid-btn { color: #15803d; }
.pq-paid-btn:hover { text-decoration: underline; }
.pq-muted-btn { color: var(--muted); font-weight: 500; text-decoration: underline; }
.pq-sub-acts { margin-left: auto; display: flex; gap: 6px; }
.pq-btn-soft { border: 1px solid var(--tone-line); background: #fff; color: var(--ink); border-radius: 8px; padding: 5px 12px; font-size: 13px; font-weight: 600; cursor: pointer; }
.pq-btn-soft:hover { border-color: var(--tone); }
.pq-btn-go { border: 0; background: var(--brand); color: #fff; border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; white-space: nowrap; }
.pq-btn-go:disabled { opacity: .45; cursor: default; }
.pq-btn-go svg { width: 14px; height: 14px; }
.pq-sub-peek { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 10px; }
.pq-sub-peek[hidden], .pq-sub-body[hidden] { display: none; }
.pq-sub-peek .pq-peekf { display: inline-flex; flex-direction: column; align-items: stretch; gap: 5px; width: 132px; font-size: 11.5px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 5px; color: var(--ink-2); cursor: zoom-in; }
.pq-sub-peek .pq-peekf:hover { border-color: var(--tone, #94a3b8); box-shadow: 0 2px 8px rgba(15, 23, 42, .08); }
.pq-sub-peek .pq-peekf > i { font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; padding: 0 2px; }
.pq-sub-peek .pq-thumb { width: 100%; height: 96px; object-fit: contain; background: #f1f5f9; }
.pq-sub-peek .pq-kind { width: 100%; height: 96px; display: grid; place-items: center; margin: 0; font-size: 30px; border-radius: 6px; background: #f1f5f9; border: 1px solid var(--line); }
/* Queue: ₹ per page for one file, beside the printer */
.pq-unitp { display: inline-flex; align-items: center; gap: 3px; height: 31px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; padding: 0 6px; font-size: 13px; color: var(--muted); margin: 0; }
.pq-unitp input { width: 52px; border: 0; padding: 0; font-size: 13.5px; text-align: right; color: var(--ink); background: transparent; -moz-appearance: textfield; }
.pq-unitp input::-webkit-outer-spin-button, .pq-unitp input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pq-unitp input:focus { outline: none; }
.pq-unitp:focus-within { border-color: #0f766e; }
.pq-unitp > span { font-size: 12px; }
.pq-unitp-manual { border-color: #f59e0b; background: #fffbeb; }
.pq-item { padding: 10px 14px; border-top: 1px solid var(--line-2); }
.pq-item[hidden] { display: none; }
.pq-sub-body > .pq-item:first-child { border-top: 0; }
.pq-item.pq-flag-warn { background: #fffbeb; }
.pq-item.pq-counter { box-shadow: inset 3px 0 0 #a855f7; }
.pq-item.pq-finished { opacity: .8; }
/* Print clicked, server not through yet: the file's options and actions are frozen until it is. */
.pq-item.pq-sending { background: #f0fdfa; }
.pq-item.pq-sending .pq-optrow, .pq-item.pq-sending .pq-acts, .pq-item.pq-sending .pq-pick, .pq-item.pq-sending .pq-cautions { pointer-events: none; opacity: .45; }
.pq-sending-note { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: #0f766e; white-space: nowrap; }
.pq-ring { width: 14px; height: 14px; border: 2px solid #99f6e4; border-top-color: #0f766e; border-radius: 50%; animation: pqSpin .8s linear infinite; }
.pq-item-row { display: grid; grid-template-columns: minmax(0, 1fr) 58px minmax(170px, 230px) auto auto; gap: 14px; align-items: center; }
.pq-item .pq-filecell { min-width: 0; }
.pq-extra { color: #6d28d9; font-weight: 600; }
.pq-pages { text-align: center; line-height: 1.1; }
.pq-pages b { display: block; font-size: 17px; }
.pq-pages small { font-size: 11px; color: var(--muted); }
.pq-prog { min-width: 0; }
.pq-prog-line { display: flex; align-items: center; gap: 8px; }
.pq-prog-line .pq-progress { flex: 1; height: 6px; min-width: 50px; }
.pq-prog-n { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pq-next-in { display: flex; gap: 4px; align-items: center; }
.pq-units { width: 58px; height: 32px; border: 1.5px solid var(--line); border-radius: 8px; text-align: center; font-size: 14px; }
.bridge-key { border-top: 1px dashed var(--line); padding-top: 12px; }
.bk-row { display: flex; gap: 6px; align-items: center; margin: 6px 0 4px; }
.bk-row code { flex: 1; min-width: 0; overflow-wrap: anywhere; background: #f4f6f8; border-radius: 6px; padding: 6px 8px; font-size: 12px; }
.pq-unit-l { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pq-unit-sw { display: block; font-size: 11px; margin-top: 3px; }
.pq-acts { display: flex; gap: 4px; justify-content: flex-end; }
.pq-item .pq-optrow { margin-top: 8px; background: none; border: 0; padding: 0; gap: 6px 10px; align-items: center; }
.pq-item .pq-osel { height: 31px; width: auto; min-width: 0; max-width: 140px; border: 1.5px solid var(--line); border-radius: 8px; padding: 0 6px; font-size: 13px; background-color: #fff; color: var(--ink); }
.pq-item .pq-hf { width: auto; max-width: 300px; gap: 6px; }
.pq-item .pq-hf > svg:first-child { width: 14px; height: 14px; flex: 0 0 auto; color: var(--muted); }
.pq-item .pq-hf .pq-hfwarn { font-style: normal; }
.pq-step-l { font-size: 12px; color: var(--muted); margin-left: -4px; }
.pq-item .pq-amtv { margin-left: auto; font-size: 15px; line-height: 31px; }
.pq-item .pq-batches { margin-top: 8px; background: #f8fafc; border-radius: 10px; padding: 6px; }
/* Batch actions (Print again · Cancel) sit together at the row's end and never get cut off by the table's edge. */
.pq-bacts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding-right: 4px; }
.pq-bacts .btn { white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.pq-item .pq-btable td:last-child { min-width: 180px; }
.pq-item .pq-batches[hidden] { display: none; }
.pq-cards .pq-sep { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; padding: 10px 14px; border-radius: 12px; background: #ecfdf5; color: #065f46; font-weight: 700; font-size: 14px; }
.pq-cards .pq-sep-hint { font-weight: 400; color: #047857; font-size: 12.5px; }
.pq-cards .pq-collect-all { margin-left: auto; color: #065f46; }
.pq-cards .pq-sep-empty { padding: 4px 14px 8px; color: var(--muted); font-size: 13px; }
.pq-ready-list { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 860px) {
  .pq-item-row { grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; }
  .pq-item .pq-filecell { grid-column: 1 / -1; }
  .pq-pages { text-align: left; white-space: nowrap; }
  .pq-pages b { display: inline; margin-right: 3px; }
  .pq-sub-acts { margin-left: 0; width: 100%; }
  .pq-sub-acts > * { flex: 1; justify-content: center; }
  .pq-cards { padding: 8px; }
}
.bm-paid { font-size: 12.5px; color: #15803d; margin: 6px 2px 0; } .bm-paid[hidden] { display: none; }

/* An estimate already given: a clear chip on the card (amber when files or prices changed after it) */
.pq-est { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #a7f3d0; background: #ecfdf5; color: #065f46; border-radius: 10px; padding: 4px 10px 4px 8px; cursor: pointer; text-align: left; line-height: 1.15; }
.pq-est:hover { border-color: #34d399; }
.pq-est-ic { font-size: 18px; }
.pq-est-t b { display: block; font-size: 12.5px; } .pq-est-t small { display: block; font-size: 11px; color: #047857; }
.pq-est.pq-est-changed { border-color: #fcd34d; background: #fffbeb; color: #92400e; }
.pq-est.pq-est-changed small { color: #b45309; } .pq-est-t em { font-style: normal; font-weight: 700; }
.pq-who .pq-meta { white-space: normal; overflow: visible; text-overflow: clip; }

/* Plans & Billing: subscription plans, the plan in force, pro-rata upgrade line */
.plan.plan-now { border-color: var(--brand); box-shadow: 0 0 0 2px #ccfbf1; }
.plan-per { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 2px; }
.plan-up { font-size: 12.5px; color: #065f46; background: #ecfdf5; border-radius: 8px; padding: 6px 8px; margin-top: 4px; }
.plan-note { font-size: 12.5px; color: var(--brand-dark); margin-top: auto; padding-top: 8px; }
.sub-now .card-head { align-items: center; }
/* Prices: slab editor under a price line */
.price-rules .slab-row td { border-top: 0; padding-top: 0; }
.slab-box { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; background: #f6f8fa; border: 1px dashed var(--line); border-radius: 8px; padding: 8px 10px; font-size: 13px; }
.slab-l { color: var(--muted); font-weight: 600; }
.slab-chip { display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 8px; white-space: nowrap; }
.slab-chip input { width: 64px; height: 26px; border: 1px solid var(--line); border-radius: 6px; padding: 0 4px; font-size: 13px; }
.slab-chip small { color: var(--muted); }
/* Queue: the file's price is a button — click to set a price for this order */
button.pq-amtv { background: none; border: 0; border-bottom: 1px dashed transparent; padding: 0 2px; font-weight: 700; cursor: pointer; border-radius: 0; }
button.pq-amtv:hover { border-bottom-color: currentColor; }
button.pq-amtv.pq-amt-none { font-weight: 500; }
.pq-amt-manual { color: #b45309 !important; }

/* Queue cards: the header in fixed columns, so every card's order number, pickup, payment, Mark paid, Estimate and Print
   line up down the page; file rows keep their print box and buttons in fixed columns too (no zig-zag). */
.pq-sub-head { display: grid; grid-template-columns: 24px 18px 36px minmax(0, 1fr) 216px 296px; gap: 8px 12px; align-items: center; }
.pq-hc { display: flex; align-items: center; justify-content: center; min-width: 0; }
.pq-who { min-width: 0; }
.pq-who .pq-est { margin-top: 6px; }
.pq-hc-order { min-width: 0; }
.pq-hc-order .pq-order { gap: 6px; }
.pq-chip-eq { width: 96px; flex: 0 0 96px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 6px; line-height: 1.25; }
.pq-chip-btn { cursor: pointer; font-family: inherit; }
.pq-chip-btn.pq-paid-btn { background: #f0fdf4; border-color: #86efac; color: #15803d; }
.pq-chip-btn.pq-paid-btn:hover { background: #dcfce7; text-decoration: none; }
.pq-chip-btn.pq-muted-btn { color: var(--muted); }
.pq-chip-btn.pq-muted-btn:hover { color: var(--ink); }
.pq-chip-gap { visibility: hidden; }
.pq-hc-order .pq-addr { flex-basis: 100%; }
.pq-sub-acts { margin-left: 0; display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.pq-sub-acts .pq-btn-soft, .pq-sub-acts .pq-btn-go { width: 120px; justify-content: center; text-align: center; padding-left: 6px; padding-right: 6px; }
.pq-sub-acts .pq-ib + .pq-ib, .pq-sub-acts .pq-ib { margin-left: 0; }
.pq-ib-gap { display: inline-block; width: 34px; flex: 0 0 34px; }
.pq-item-row { grid-template-columns: minmax(0, 1fr) 58px minmax(170px, 230px) 196px 154px; }
.pq-next { display: flex; flex-direction: column; align-items: flex-end; }
.pq-next-in { justify-content: flex-end; }
.pq-units-s { width: 46px; }
.pq-acts { justify-content: flex-end; }
@media (max-width: 1180px) {
  .pq-sub-head { display: flex; flex-wrap: wrap; }
  .pq-hc:empty { display: none; }
  .pq-who { flex: 1 1 200px; }
}
@media (max-width: 860px) {
  .pq-item-row { grid-template-columns: auto minmax(0, 1fr); }
  .pq-next { align-items: flex-start; }
  .pq-sub-acts { width: 100%; }
  .pq-sub-acts .pq-btn-soft, .pq-sub-acts .pq-btn-go { width: auto; flex: 1; }
}
/* Estimate popup: icon buttons (the tooltip says what each does) */
.bm-acts { justify-content: flex-end; }
.bm-acts .sm-btn.bm-ico { flex: 0 0 auto; width: 54px; height: 44px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.bm-acts .sm-btn.bm-ico[hidden] { display: none; }
/* Order icons on the card header: pickup / delivery, how they pay, Mark paid — one size, meaning in the tooltip */
.pq-oi { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; flex: 0 0 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink-2); padding: 0; }
.pq-oi-warn { background: #fffbeb; border-color: #fcd34d; color: #b45309; }
.pq-oi-wait { background: #f8fafc; color: #475569; }
.pq-oi-info { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.pq-oi-ok { background: #f0fdf4; border-color: #86efac; color: #15803d; }
.pq-oi-btn { cursor: pointer; transition: background .12s, transform .06s; }
.pq-oi-btn:hover { background: #f1f5f9; } .pq-oi-btn:active { transform: scale(.94); }
.pq-oi-pay { border-color: #fca5a5; color: #dc2626; background: #fef2f2; }   /* not paid yet: red until marked paid */
.pq-oi-pay:hover { background: #fee2e2; }
.pq-oi-gap { visibility: hidden; }
.pq-hc-order .pq-order { flex-wrap: wrap; gap: 6px; align-items: center; }
/* Cautions on a file row (Settings → Cautions) */
.pq-cautions { margin-top: 6px; display: flex; flex-direction: column; gap: 3px; }
.pq-caution { display: flex; align-items: flex-start; gap: 6px; font-size: 12.5px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 4px 9px; }
.pq-caution svg { flex: 0 0 auto; margin-top: 2px; color: #d97706; }
/* Printer properties chosen for the job (the driver's dialog): a calm blue note, and the option controls they decide go quiet. */
.pq-caution.pq-caution-props { color: #155e75; background: #ecfeff; border-color: #a5f3fc; flex-wrap: wrap; }
.pq-caution.pq-caution-props svg { color: #0891b2; }
.pq-caution.pq-caution-props .pq-link-btn { margin-left: 2px; color: #0e7490; font-weight: 600; }
.pq-optrow.pq-opt-locked .pq-seg-b[disabled], .pq-optrow.pq-opt-locked .pq-osel[disabled] { opacity: .45; cursor: not-allowed; }
.pq-hf .pq-hfprops { font-size: 11px; color: var(--brand); margin-left: 2px; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pq-hfst .pq-hfown { color: var(--brand); font-weight: 600; }
/* Sheet maker crop: resize circle on the frame, straighten, magnifier */
.sm-crop-row { display: flex; gap: 12px; align-items: flex-start; justify-content: center; margin-top: 8px; }
.sm-crop-row .sm-crop { margin: 0; }
.sm-crop img { transform-origin: 50% 50%; }
.sm-hdl { position: absolute; right: -9px; bottom: -9px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--brand); box-sizing: border-box; cursor: nwse-resize; z-index: 2; }
.sm-loupe-box { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sm-loupe-box canvas { border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 120px; }
.sm-loupe-box small { font-size: 11px; color: var(--muted); }
#smStraight .pqc-row { margin-top: 6px; }

/* Reports + Print Log (shop-friendly): period chips, stat subtitles, busiest hours, one row per file with its history */
.period { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.period button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.period button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.period input[type=date] { width: auto; }
.stat-sub { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.rp-hours { display: flex; align-items: flex-end; gap: 3px; height: 80px; padding-bottom: 16px; position: relative; }
.rp-hours div { flex: 1; background: var(--brand-tint); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.rp-hours div.top { background: var(--brand-2); }
.rp-hours span { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); font-size: 9.5px; color: var(--muted); margin-top: 3px; }
.lg-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; padding: 12px 18px; border-top: 1px solid var(--line-2); cursor: pointer; }
.lg-row:hover { background: #fafbfc; }
.lg-name { font-weight: 600; word-break: break-all; }
.lg-meta { font-size: 12px; color: var(--muted); }
.lg-side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.lg-bar { height: 5px; width: 120px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.lg-bar i { display: block; height: 100%; background: var(--brand-2); }
.lg-msg { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-2); }
.lg-msg.bad { color: #991b1b; }
.lg-steps { grid-column: 1 / -1; margin: 4px 0 0; padding: 8px 0 0 14px; border-left: 2px solid var(--line); list-style: none; font-size: 12.5px; }
.lg-steps li { margin-bottom: 6px; }
.lg-steps small { color: var(--muted); }
@media (max-width: 768px) { .lg-row { grid-template-columns: 1fr; } .lg-side { align-items: flex-start; text-align: left; } }
