@font-face { font-family: "Public Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Public Sans"; font-weight: 700; font-style: normal; font-display: swap; src: url("../fonts/public-sans-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #f4f6f8; --surface: #ffffff; --ink: #16202a; --muted: #5b6875; --line: #d6dde4;
  --ring: #1f3a5f; --ring-2: #2d5589; --gold: #c4952c; --red: #b3342d; --green: #2c7a4b;
  --bs-body-font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --bs-body-color: var(--ink); --bs-body-bg: var(--paper); --bs-border-color: var(--line);
  --bs-primary: var(--ring); --bs-primary-rgb: 31,58,95; --bs-link-color: var(--ring-2); --bs-link-hover-color: var(--ring);
  --bs-border-radius: 3px; --bs-border-radius-sm: 2px; --bs-border-radius-lg: 4px;
}
body { font-feature-settings: "tnum" 1; font-size: 0.95rem; line-height: 1.5; }
h1, .h1 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.01em; }
h2, .h2 { font-size: 1.15rem; font-weight: 700; }
h3, .h3 { font-size: 1rem; font-weight: 700; }
.text-muted, .form-text { color: var(--muted) !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: none; }

.btn { font-weight: 600; border-radius: 3px; }
.btn-primary { --bs-btn-bg: var(--ring); --bs-btn-border-color: var(--ring); --bs-btn-hover-bg: #172c49; --bs-btn-hover-border-color: #172c49; --bs-btn-active-bg: #10203a; --bs-btn-disabled-bg: var(--ring); }
.btn-outline-primary { --bs-btn-color: var(--ring); --bs-btn-border-color: var(--ring); --bs-btn-hover-bg: var(--ring); --bs-btn-hover-border-color: var(--ring); }
.form-control, .form-select { border-radius: 3px; border-color: #b9c3cd; }
.form-label { font-weight: 600; font-size: 0.86rem; margin-bottom: 0.25rem; }
.table { --bs-table-bg: transparent; font-size: 0.9rem; }
.table > :not(caption) > * > * { padding: 0.55rem 0.7rem; }
.table thead th { font-weight: 600; color: var(--muted); font-size: 0.8rem; border-bottom: 2px solid var(--line); white-space: nowrap; }
.badge { font-weight: 600; letter-spacing: 0.01em; }

/* Shell */
.topbar { background: var(--ring); color: #fff; height: 52px; display: flex; align-items: center; padding: 0 1rem; gap: 0.75rem; position: sticky; top: 0; z-index: 30; }
.topbar .brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 700; letter-spacing: -0.005em; }
.topbar .brand small { font-weight: 400; opacity: 0.75; margin-left: 0.25rem; }
.topbar .who { margin-left: auto; font-size: 0.85rem; display: flex; align-items: center; gap: 0.9rem; }
.topbar .who .btn { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.5); --bs-btn-hover-bg: rgba(255,255,255,.14); --bs-btn-hover-border-color: #fff; --bs-btn-hover-color: #fff; padding: 0.2rem 0.6rem; }
.menu-toggle { display: none; background: none; border: 1px solid rgba(255,255,255,.5); color: #fff; padding: 0.15rem 0.55rem; border-radius: 3px; }
.shell { display: flex; min-height: calc(100vh - 52px); }
.side { width: 236px; flex: 0 0 236px; background: var(--surface); border-right: 1px solid var(--line); padding: 1rem 0 2rem; }
.side .grp { font-size: 0.78rem; font-weight: 700; color: var(--muted); padding: 0.9rem 1.1rem 0.25rem; }
.side a { display: flex; align-items: center; gap: 0.6rem; padding: 0.46rem 1.1rem; color: var(--ink); text-decoration: none; border-left: 3px solid transparent; font-size: 0.92rem; }
.side a:hover { background: #eef2f6; }
.side a.on { border-left-color: var(--gold); background: #eef2f6; font-weight: 600; }
.side .dot { width: 10px; height: 10px; border-radius: 50%; border: 2px solid #9aa7b4; flex: 0 0 10px; }
.side .dot.done { background: var(--green); border-color: var(--green); }
.side .dot.partial { background: linear-gradient(90deg, var(--gold) 50%, transparent 50%); border-color: var(--gold); }
.side .count { margin-left: auto; background: var(--red); color: #fff; border-radius: 10px; font-size: 0.72rem; padding: 0 0.42rem; font-weight: 700; }
.main { flex: 1; min-width: 0; padding: 1.6rem 2rem 3rem; max-width: 1180px; }
.main.main-wide { max-width: 1760px; }   /* the Meal coupons screens use the full width of the display */
.pagehead { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.pagehead p { margin: 0.15rem 0 0; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 1.1rem 1.2rem; margin-bottom: 1.1rem; }
.panel > h2:first-child, .panel > h3:first-child { margin-top: 0; }
.rule-left { border-left: 4px solid var(--line); padding-left: 0.9rem; }
.rule-left.warn { border-left-color: var(--gold); } .rule-left.bad { border-left-color: var(--red); } .rule-left.good { border-left-color: var(--green); }
.fee { font-size: 1.6rem; font-weight: 700; }
.kv { display: grid; grid-template-columns: 11rem 1fr; gap: 0.3rem 1rem; margin: 0; }
.kv dt { color: var(--muted); font-weight: 600; font-size: 0.85rem; } .kv dd { margin: 0; }
.copy-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.45rem 0; border-bottom: 1px solid var(--line); }
.copy-row:last-child { border-bottom: 0; }
.copy-row .lab { width: 9.5rem; color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.copy-row .val { font-weight: 600; font-size: 1.02rem; letter-spacing: 0.02em; word-break: break-all; }
.copy-row .btn { margin-left: auto; padding: 0.1rem 0.55rem; font-size: 0.8rem; }
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 0.4rem 0 0.4rem 1.7rem; position: relative; border-bottom: 1px solid #edf0f3; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.72rem; width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 2px solid var(--red); }
.checklist li.ok::before { background: var(--green); border-color: var(--green); }
.checklist li .rid { font-size: 0.75rem; color: var(--muted); font-weight: 700; margin-right: 0.4rem; }
.slot { display: inline-block; font-weight: 700; background: var(--ring); color: #fff; padding: 0.05rem 0.5rem; border-radius: 3px; letter-spacing: 0.03em; }
.target-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0.6rem; }
.target-cell { border: 1px solid var(--line); background: var(--surface); padding: 0.4rem 0.5rem; font-size: 0.82rem; }
.target-cell .t { font-weight: 700; color: var(--ring); }
.target-cell div.pos { display: flex; gap: 0.35rem; } .target-cell .pos b { width: 1rem; color: var(--muted); }
.rings { width: 100%; max-width: 250px; height: auto; }
.legend { list-style: none; padding: 0; margin: 0; }
.legend li { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; border-bottom: 1px solid #edf0f3; }
.legend li:last-child { border: 0; }
.legend .sw { width: 14px; height: 14px; border-radius: 50%; flex: 0 0 14px; }
.legend a { margin-left: auto; font-size: 0.85rem; }
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(280px, 1fr) minmax(320px, 460px); }
.auth-side { background: var(--ring); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.8rem; }
.auth-side h1 { color: #fff; font-size: 1.85rem; max-width: 24ch; line-height: 1.25; }
.auth-logo { display: inline-block; align-self: flex-start; background: #fff; border-radius: 12px; padding: 10px 12px; box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.auth-logo img { display: block; width: 312px; max-width: 100%; height: auto; }
.auth-links { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .55rem; }
.auth-links a { display: inline-block; color: #fff; font-weight: 600; text-decoration: none; border: 1px solid rgba(255,255,255,.55); border-radius: 8px; padding: .5rem .9rem; }
.auth-links a:hover, .auth-links a:focus { background: rgba(255,255,255,.14); border-color: #fff; }
.auth-links a span { font-weight: 400; opacity: .85; }
.auth-form { padding: 3rem 2.4rem; display: flex; flex-direction: column; justify-content: center; background: var(--surface); }
@media (max-width: 900px) {
  .side { position: fixed; left: -250px; top: 52px; bottom: 0; z-index: 25; transition: left .15s; overflow-y: auto; }
  body.menu-open .side { left: 0; box-shadow: 4px 0 18px rgba(0,0,0,.15); }
  .menu-toggle { display: inline-block; }
  .main { padding: 1.1rem 1rem 2.5rem; }
  .kv { grid-template-columns: 1fr; }
  .auth-wrap { grid-template-columns: 1fr; } .auth-side { padding: 1.6rem; gap: 1.2rem; } .auth-side h1 { font-size: 1.4rem; } .auth-logo img { width: 240px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .topbar, .side, .no-print { display: none !important; } .main { padding: 0; } }

.cropper { margin-top: 0.6rem; max-width: 300px; }
.cropper canvas { display: block; width: 100%; max-width: 280px; height: auto; border: 1px solid var(--line); background: #fff; cursor: grab; touch-action: none; }
.cropper canvas.grabbing { cursor: grabbing; }
.cropper canvas:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.saved-photo-thumb { width: 90px; height: auto; border: 1px solid var(--line); border-radius: 3px; display: block; }
.preview-canvas { display: block; width: 84px; height: 108px; border: 1px solid var(--line); background: #fff; margin-top: 0.3rem; }
.row-photo-thumb { width: 34px; height: 44px; object-fit: cover; border: 1px solid var(--line); border-radius: 2px; }
.review-person { display: inline-flex; align-items: center; gap: 0.5rem; }

/* logos and emblem */
.auth-emblem { text-align: center; margin-bottom: 1.4rem; } .auth-emblem img { width: 170px; max-width: 70%; height: auto; }
.brand-mark { display: block; width: 28px; height: auto; margin-right: .1rem; }
.verify-brand { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; padding: .8rem 1.1rem; background: #fff; border: 1px solid #d5dde5; border-bottom: 3px solid #c4952c; border-radius: 10px; }
.verify-brand .logos { display: flex; align-items: center; gap: .6rem; } .verify-brand .logos img { height: 52px; width: auto; } .verify-brand .emb { height: 62px; width: auto; }

/* Compulsory fields: a red asterisk after the label; everything without it is optional. */
.req { color: #c4001d; font-weight: 700; margin-left: .15rem; }
.req-legend { font-size: .82rem; color: #4d5666; margin: 0 0 .6rem; }

/* two panels side by side only when the screen is wide enough for their tables */
@media (min-width: 1700px) { .split-wide { width: 50%; } }
