:root {
  --brand-red: #820000;
  --brand-red-dark: #5c0000;
  --brand-red-light: #fbeaea;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #f4f6f8;
  color: #1c2530;
}

.app { display: flex; height: 100vh; overflow: hidden; }

/* ---- Login screen ---- */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1c2530, var(--brand-red-dark));
}
.login-card {
  background: #fff; border-radius: 14px; padding: 36px 40px; width: 460px; max-width: 92vw;
  box-shadow: 0 20px 50px rgba(0,0,0,.35); text-align: center;
}
.login-logo { max-width: 220px; margin: 0 auto 10px; display: block; }
.login-card h1 { font-size: 18px; margin: 0 0 20px; color: #667; font-weight: 600; }
.login-users-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.login-user-btn {
  padding: 14px 10px; border: 2px solid #e6eaf0; border-radius: 10px; background: #f8fafc;
  cursor: pointer; font-weight: 700; font-size: 13px; color: #1c2530; text-align: left;
}
.login-user-btn:hover { border-color: var(--brand-red); background: var(--brand-red-light); }
.login-user-btn .role-label { display: block; font-weight: 500; font-size: 11px; color: #667; margin-top: 3px; text-transform: uppercase; }
.login-divider { font-size: 12px; color: #99a; margin: 14px 0 10px; }
.login-barcode-input {
  width: 100%; padding: 12px 14px; font-size: 15px; border: 1px solid #d5dae1; border-radius: 8px;
  text-align: center; margin-bottom: 16px;
}
.login-email-row { display: flex; gap: 8px; margin-bottom: 16px; }
.login-email-row .login-barcode-input { margin-bottom: 0; }
.login-email-row input[type="email"] { flex: 1.4; }
.login-email-row input[type="password"] { flex: 0.8; text-align: center; }
.login-email-row .btn { flex: 0 0 auto; padding: 12px 18px; }
.login-backdoor-btn { width: 100%; }
/* Technical Support: username and password only. Hidden on the normal page; at #support it is all the page shows. */
.ts-form { display: none; }
.ts-form h2 { font-size: 18px; margin: 6px 0 14px; }
.ts-mode .login-card > :not(.login-logo):not(.ts-form):not(.login-error) { display: none !important; }
.ts-mode .ts-form { display: block; }
.login-wait { margin-top: 14px; background: #fff7e0; color: #7a5a00; padding: 10px 14px; border-radius: 6px; font-size: 13px; text-align: center; }
.login-error {
  margin-top: 14px; background: #fdecec; color: #c1272d; padding: 10px 14px; border-radius: 6px; font-size: 13px;
}

.sidebar-spacer { flex: 1; }
.session-info { padding: 10px 20px; font-size: 12px; color: #b7c0cc; line-height: 1.5; }
.session-info strong { color: #fff; display: block; font-size: 13px; }
.logout-btn { border-top: 1px solid #33465b; color: #ffb4b4; }
.logout-btn:hover { background: var(--brand-red-dark); color: #fff; }

.sidebar {
  width: 170px;
  background: #1c2530;
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 14px 0;
  flex-shrink: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand { padding: 0 16px 18px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.brand img { width: 100%; max-width: 120px; height: auto; }
.brand .brand-subtitle { font-weight: 700; font-size: 11px; letter-spacing: .5px; color: #b7c0cc; text-transform: uppercase; }
.nav-btn {
  background: none; border: none; color: #b7c0cc; text-align: left;
  padding: 14px 16px; font-size: 14px; cursor: pointer; min-height: 46px;
  position: relative;
}
.nav-btn:hover { background: #2a3542; color: #fff; }
.nav-btn.active { background: #33465b; color: #fff; border-left: 3px solid #e2434a; }
.nav-badge {
  position: absolute; top: 8px; right: 12px; background: #e2434a; color: #fff;
  border-radius: 10px; font-size: 11px; font-weight: 700; line-height: 1;
  padding: 3px 6px; min-width: 10px; text-align: center;
}

.content { flex: 1; padding: 22px 28px; overflow-y: auto; height: 100vh; }
h1 { margin-top: 0; font-size: 20px; }
h2 { font-size: 16px; margin: 0 0 12px; }

.tab { display: none; height: 100%; }
.tab.active { display: flex; flex-direction: column; min-height: 0; }
.tab.active > .list-container { flex: 1; min-height: 0; }

/* Desktop/widescreen (office laptops - Operation/Purchasing/Stock Manager) get a
   little more breathing room than the 1080x1080 touch POS (Production Team
   Leader) the compact sizing above targets. */
@media (min-width: 1400px) {
  .sidebar { width: 210px; }
  .content { padding: 32px 44px; }
  h1 { font-size: 24px; }
}

.card {
  background: #fff; border-radius: 8px; padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); margin-bottom: 20px;
}

/* ---- Team Chat: one shared channel, message bubbles, own vs others' ---- */
.chat-messages {
  flex: 1; min-height: 0; overflow-y: auto; background: #fff; border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08); padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.chat-msg { max-width: 70%; }
.chat-msg .chat-meta { font-size: 11px; color: #667; margin-bottom: 2px; }
.chat-msg .chat-bubble { background: #f0f3f7; border-radius: 12px; padding: 8px 12px; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.chat-msg.own { align-self: flex-end; text-align: right; }
.chat-msg.own .chat-bubble { background: #185fa5; color: #fff; }
.chat-compose { display: flex; gap: 10px; margin-top: 12px; flex: 0 0 auto; }
.chat-compose input { flex: 1; }

.scan-card label { font-size: 13px; color: #667; display: block; margin-bottom: 6px; }
.scan-row { display: flex; gap: 10px; }
#barcode-input, #manual-input {
  flex: 1; padding: 12px 14px; font-size: 18px; border: 1px solid #d5dae1;
  border-radius: 6px;
}
/* Search by name or brand: a full-width box like the scan box, results as tidy cards under it. */
#search-input {
  display: block; width: 100%; box-sizing: border-box; padding: 12px 14px; font-size: 18px;
  border: 1px solid #d5dae1; border-radius: 6px; background: #fff;
}
#search-input:focus { outline: none; border-color: var(--brand-red); box-shadow: 0 0 0 3px rgba(122,19,24,.12); }
#search-results { margin-top: 10px; max-height: 340px; border: 1px solid #e5e9ef; box-shadow: none; }
#search-results .list-row { flex-wrap: nowrap; align-items: center; gap: 12px; padding: 10px 14px; min-height: 52px; }
#search-results .list-main { flex: 1 1 auto; min-width: 0; }
#search-results .list-main strong { display: inline; font-size: 15px; }
#search-results .list-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#search-results .list-side { flex: 0 0 auto; min-width: 84px; white-space: nowrap; }
#search-results .list-side strong { display: inline; font-size: 16px; }
#search-results .line-note { font-size: 11px; color: #889; }
.hidden { display: none !important; }
#camera-reader { width: 100%; max-width: 420px; margin: 0 auto 12px; }

.mode-card { padding: 14px 20px; border: 2px solid transparent; }
.mode-card.receive { background: #eafaf0; border-color: #0a8a3b; }
.mode-card.produce { background: #fff8e6; border-color: #b8860b; }
.mode-card.pull_out { background: #e6f1fb; border-color: #185fa5; }
.mode-card.transfer { background: #fbeaea; border-color: var(--brand-red); }
.mode-card.branch_local { background: #f1eafc; border-color: #6b3fa0; }
.mode-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mode-btn {
  flex: 1; min-width: 140px; padding: 12px; border: 2px solid #d5dae1; border-radius: 8px;
  background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; opacity: .55;
}
.mode-btn.selected { opacity: 1; }
.mode-btn.receive.selected { border-color: #0a8a3b; color: #0a8a3b; background: #eafaf0; }
.mode-btn.produce.selected { border-color: #b8860b; color: #b8860b; background: #fff8e6; }
.mode-btn.pull_out.selected { border-color: #185fa5; color: #185fa5; background: #e6f1fb; }
.mode-btn.transfer.selected { border-color: var(--brand-red); color: var(--brand-red); background: #fbeaea; }
.mode-btn.branch_local.selected { border-color: #6b3fa0; color: #6b3fa0; background: #f1eafc; }

.request-item-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; padding: 8px; border: 1px solid #e5e9ef; border-radius: 8px; background: #fafbfc; }
.request-item-row .request-item-select-wrap { flex: 2; display: flex; flex-direction: column; gap: 4px; }
.request-item-row .request-item-select-wrap select { width: 100%; }
.request-item-row .request-item-category-select { font-size: 12px; color: #667; }
.request-item-row .request-item-qty-wrap { flex: 1; }
.request-item-row .request-item-qty-wrap input { width: 100%; }

.method-row { display: flex; gap: 10px; margin-bottom: 16px; }
.method-btn {
  padding: 9px 16px; border: 1px solid #d5dae1; border-radius: 20px;
  background: #f0f3f7; color: #556; font-weight: 600; font-size: 13px; cursor: pointer;
}
.method-btn.selected { background: var(--brand-red); color: #fff; border-color: var(--brand-red); }
.method-panel.hidden { display: none !important; }

.btn {
  padding: 11px 18px; border: none; border-radius: 6px; font-size: 14px;
  cursor: pointer; font-weight: 600; min-height: 42px;
}
.btn.primary { background: var(--brand-red); color: #fff; }
.btn.primary:hover { background: var(--brand-red-dark); }
.btn.primary.primary-out { background: #c1272d; }
.btn.primary.primary-out:hover { background: #a01f24; }
.btn.primary.primary-receive { background: #0a8a3b; }
.btn.primary.primary-receive:hover { background: #087530; }
.btn.primary.primary-pull-out { background: #185fa5; }
.btn.primary.primary-pull-out:hover { background: #124c85; }
.btn.primary.primary-produce { background: #b8860b; }
.btn.primary.primary-produce:hover { background: #9c7009; }
.btn.primary.primary-transfer { background: var(--brand-red); }
.btn.primary.primary-transfer:hover { background: var(--brand-red-dark); }
.btn.primary.primary-branch_local { background: #6b3fa0; }
.btn.primary.primary-branch_local:hover { background: #55317f; }
.btn.secondary { background: #e6eaf0; color: #1c2530; }
.btn.secondary:hover { background: #d8dee7; }
.btn.danger { background: #e6eaf0; color: #c1272d; }
.btn.danger:hover { background: #fbdadc; }

.toolbar { display: flex; gap: 10px; margin-bottom: 16px; align-items: center; flex-wrap: wrap; flex-shrink: 0; }
.toolbar input, .toolbar select { padding: 11px 12px; border: 1px solid #d5dae1; border-radius: 6px; font-size: 14px; min-height: 42px; }
#items-search, #history-search { flex: 1; min-width: 200px; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #eef1f4; font-size: 14px; }
.data-table th { background: #f0f3f7; font-size: 12px; text-transform: uppercase; color: #667; }
.data-table tr:hover td { background: #f8fafc; }
.data-table .row-actions { display: flex; gap: 8px; }
/* A data-table that can run long (e.g. Low Stock across a big catalog) -
   scrolls within its own box instead of pushing the rest of the page down,
   with the header pinned so column names stay visible while scrolling. */
.table-scroll { overflow-y: auto; border-radius: 8px; }
.table-scroll .data-table thead th { position: sticky; top: 0; z-index: 1; }
.low { color: #c1272d; font-weight: 700; }
.tag-in { color: #0a8a3b; font-weight: 700; }
.tag-out { color: #c1272d; font-weight: 700; }

/* ---- Compact list + tap-a-row-for-details (Items/History/Requests/Users) ----
   Narrow/touch (the 1080x1080 POS, used by Production Team Leader): each row is
   a stacked card, tap anywhere to open the detail modal. Wide desktop (office
   laptops on 1920x1080 - Operation/Purchasing/Stock Manager) reveal an inline
   meta line so more is visible without opening the modal. */
.list-container {
  background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08);
  overflow-y: auto; overflow-x: hidden;
}
.list-row {
  display: flex; align-items: center; gap: 4px 14px; flex-wrap: wrap;
  padding: 14px 16px; border-bottom: 1px solid #eef1f4; cursor: pointer; min-height: 56px;
}
.list-row:last-child { border-bottom: none; }
.list-row:hover { background: #f8fafc; }
.list-row:empty, .list-empty { padding: 24px 16px; color: #667; font-size: 14px; cursor: default; }
.list-empty:hover { background: none; }
.list-main { flex: 1 1 200px; min-width: 0; }
.list-main strong { display: block; font-size: 14px; }
.list-sub { font-size: 12px; color: #667; margin-top: 2px; }
.list-meta { display: none; font-size: 13px; color: #556; }
.list-side { flex: 0 0 auto; text-align: right; font-size: 13px; color: #556; }
.list-side strong { display: block; font-size: 15px; }
.list-status { padding: 3px 9px; border-radius: 12px; font-size: 11px; font-weight: 700; text-transform: uppercase; background: #f0f3f7; color: #556; }
.list-status.tag-in { background: #eafaf0; color: #0a8a3b; }
.list-status.tag-out { background: #fbeaea; color: #c1272d; }
.list-chevron { flex: 0 0 auto; color: #b7c0cc; font-size: 18px; }

/* Production's Items list: items grouped under a collapsible category
   header instead of one flat list behind a top filter dropdown. */
.item-category-group { border-bottom: 1px solid #eef1f4; }
.item-category-group:last-child { border-bottom: none; }
.item-category-group summary {
  padding: 12px 16px; cursor: pointer; font-weight: 700; font-size: 14px;
  background: #f8fafc; list-style: none; display: flex; align-items: center; gap: 6px;
}
.item-category-group summary::-webkit-details-marker { display: none; }
.item-category-group summary::before { content: '\25B8'; color: #b7c0cc; display: inline-block; transition: transform .15s; }
.item-category-group[open] summary::before { transform: rotate(90deg); }
.item-category-group .cat-count { color: #667; font-weight: 400; font-size: 12px; }

@media (min-width: 1400px) {
  .list-meta { display: block; flex: 0 1 160px; }
  .list-row { min-height: 50px; }
}

.stat-row { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.stat-card { background: #fff; border-radius: 8px; padding: 20px; flex: 1; min-width: 160px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.stat-card.warn .stat-value { color: #c1272d; }
.stat-value { font-size: 30px; font-weight: 700; }
.stat-label { font-size: 13px; color: #667; margin-top: 4px; }

.dash-columns { display: flex; gap: 20px; flex-wrap: wrap; }
.dash-columns .card { flex: 1; min-width: 320px; }

.modal {
  position: fixed; inset: 0; background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center; z-index: 50;
}
.modal-box {
  background: #fff; border-radius: 8px; padding: 24px; width: 380px;
  max-height: 92vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.modal-box h2 { margin-bottom: 12px; }
.modal-box input, .modal-box select { padding: 11px 12px; border: 1px solid #d5dae1; border-radius: 6px; font-size: 14px; margin-bottom: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; flex-wrap: wrap; }

.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #1c2530; color: #fff; padding: 12px 20px; border-radius: 6px;
  font-size: 14px; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,.2);
}
.toast.error { background: #c1272d; }
.toast.success { background: #0a8a3b; }

.card label { font-size: 13px; color: #667; display: block; margin-bottom: 6px; margin-top: 12px; }
.card label:first-of-type { margin-top: 0; }
.card input[type="text"], .card select {
  width: 100%; padding: 9px 12px; border: 1px solid #d5dae1; border-radius: 6px; font-size: 14px;
}

.item-info { font-size: 15px; margin-bottom: 14px; }
.item-info .stock { font-weight: 700; }
.field-row { display: flex; gap: 10px; margin-bottom: 12px; }
.field-row > div { flex: 1; }
.field-row label { font-size: 13px; color: #667; display: block; margin-bottom: 6px; }
.field-row input { width: 100%; padding: 10px 12px; border: 1px solid #d5dae1; border-radius: 6px; font-size: 14px; }
.field-hint { font-size: 12px; color: #667; margin-top: 4px; }

/* Per-item status on a branch order */
.line-inactive { text-decoration: line-through; color: #889; }
.line-note { font-size: 11px; color: #667; }
.line-actions { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.line-actions .btn { min-height: 28px; padding: 3px 9px; font-size: 12px; }
.wh-stock.short { color: #c1272d; font-weight: 600; }

/* ---- Round 1: organized orders, board, counts ---- */
.stage-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.stage-tab {
  border: 1px solid #d5dae1; background: #fff; border-radius: 18px; padding: 7px 13px; font-size: 13px;
  font-weight: 600; cursor: pointer; color: #334; display: flex; gap: 6px; align-items: center; min-height: 36px;
}
.stage-tab .n { background: #eef1f4; border-radius: 10px; padding: 1px 7px; font-size: 11px; }
.stage-tab.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.stage-tab.active .n { background: rgba(255,255,255,.25); color: #fff; }
.stage-tab.alert:not(.active) .n { background: #e2434a; color: #fff; }
.orders-filters input { flex: 1; min-width: 200px; }
#requests-list { min-height: 260px; }
.list-day {
  position: sticky; top: 0; z-index: 1; background: #f4f6f8; padding: 6px 16px; font-size: 11px; font-weight: 700;
  color: #667; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid #eef1f4;
}
.orders-more { display: flex; align-items: center; gap: 12px; margin: 12px 0 4px; }
.stat-card.clickable { cursor: pointer; }
.stat-card.clickable:hover { box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.stat-card.alert .stat-value { color: #c1272d; }
.stat-card .stat-sub { font-size: 11px; color: #889; margin-top: 2px; }
.shortage-card { margin-bottom: 16px; }
.shortage-card summary { cursor: pointer; font-weight: 700; font-size: 14px; }
#orders-shortages-body { max-height: 260px; overflow-y: auto; margin-top: 8px; }
.shortage-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #eef1f4; font-size: 13px; }
.shortage-row .need { text-align: right; white-space: nowrap; color: #556; }
.shortage-row.short .need { color: #c1272d; font-weight: 700; }

.timeline { list-style: none; margin: 10px 0 4px; padding: 0 0 0 14px; border-left: 2px solid #e1e6ec; }
.timeline li { position: relative; padding: 2px 0 7px 12px; font-size: 12px; color: #556; }
.timeline li::before { content: ''; position: absolute; left: -20px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: #0a8a3b; }
.timeline li b { color: #1c2530; }
.receive-box { border: 1px solid #d5dae1; border-radius: 8px; padding: 10px 12px; margin: 10px 0; background: #f8fafc; }
.receive-box > strong { display: block; margin-bottom: 6px; }
.receive-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 13px; }
.receive-row input { width: 90px; margin: 0; padding: 7px 9px; border: 1px solid #d5dae1; border-radius: 6px; }
.receive-box input.recv-note { width: 100%; margin: 8px 0; padding: 9px 10px; border: 1px solid #d5dae1; border-radius: 6px; }

.stack-form { display: flex; flex-direction: column; gap: 4px; max-width: 420px; }
.stack-form label { font-size: 13px; font-weight: 600; color: #334; }
.stack-form input, .stack-form select { padding: 10px 12px; border: 1px solid #d5dae1; border-radius: 6px; font-size: 14px; margin-bottom: 10px; }

.count-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.count-tools input { flex: 1; min-width: 180px; }
.count-sheet { max-height: 46vh; overflow-y: auto; border: 1px solid #e1e6ec; border-radius: 8px; margin-bottom: 8px; }
.count-row { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border-bottom: 1px solid #eef1f4; }
.count-row .name { flex: 1; font-size: 13px; min-width: 0; }
.count-row .unit { color: #667; font-size: 12px; width: 56px; }
.count-row input { width: 100px; margin: 0; padding: 7px 9px; text-align: right; }
.count-row.flash { background: #fff3c4; }
.variance-neg { color: #c1272d; font-weight: 700; }
.variance-pos { color: #0a8a3b; font-weight: 700; }

/* ---- Round 2: branch messages + branch stock ---- */
.messages-layout { display: flex; gap: 14px; flex: 1; min-height: 0; }
.msg-threads { width: 250px; flex: 0 0 250px; }
.msg-thread.selected { background: #fbeaea; }
.msg-main { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.msg-thread-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.msg-tag { margin: 8px 0 0; padding: 8px 10px; border: 1px solid #d5dae1; border-radius: 6px; font-size: 13px; background: #fff; }
.msg-order { font-size: 11px; font-weight: 700; color: inherit; text-decoration: underline; }
.chat-msg.own .msg-order { color: #fff; }
@media (max-width: 820px) {
  .messages-layout { flex-direction: column; }
  .msg-threads { width: auto; flex: 0 0 auto; max-height: 170px; }
}

.bd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-bottom: 16px; }
.bd-card { background: #fff; border: 2px solid transparent; border-radius: 8px; padding: 12px 14px; cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.bd-card:hover { box-shadow: 0 2px 10px rgba(0,0,0,.18); }
.bd-card.selected { border-color: var(--brand-red); background: var(--brand-red-light); }
.bd-card-line { font-size: 13px; margin: 3px 0; }
.bd-note { background: #fff7e0; border: 1px solid #f0d98a; border-radius: 8px; padding: 9px 12px; margin-bottom: 8px; font-size: 13px; }
.bd-note a { font-weight: 700; }
.bd-par { display: block; font-size: 11px; color: #667; margin-top: 2px; }
.stat-card.warn .stat-value { color: #b8860b; }
.bd-order { min-height: 38px; padding: 6px 14px; }

/* Tablet / touch: four summary cards in a row, finger-sized controls */
#bd-stats .stat-card { min-width: 120px; padding: 16px; }
@media (pointer: coarse) {
  .bd-order, .stage-tab, .line-actions .btn, .chat-compose .btn { min-height: 44px; }
  .list-row { min-height: 60px; }
}

/* ===== Branch POS ===== */
.pos-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border-radius: 10px; padding: 10px 16px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.pos-bar-title strong { font-size: 18px; }
.pos-bar-title span { color: var(--brand-red); font-weight: 700; margin-left: 6px; }
.pos-bar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pos-who { font-size: 14px; color: #445; }
.pos-body { min-height: 0; }
.pos-empty { padding: 40px 20px; font-size: 16px; line-height: 1.6; }

.pos-signin { text-align: center; padding: 20px 0; }
.pos-signin h2 { margin-bottom: 18px; }
.pos-staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; max-width: 760px; margin: 0 auto; }
.pos-staff-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; background: #fff; border: 2px solid #e1e6ec; border-radius: 14px; padding: 18px 10px; font-size: 16px; font-weight: 700; cursor: pointer; min-height: 130px; color: #1c2530; font-family: inherit; }
.pos-staff-tile:active, .pos-staff-tile:hover { border-color: var(--brand-red); background: var(--brand-red-light); }
.pos-staff-tile small { color: #667; font-weight: 500; font-size: 12px; }
.pos-staff-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; }

.pos-cats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 8px; }
.pos-cat { flex: 0 0 auto; border: 2px solid #d5dae1; background: #fff; border-radius: 22px; padding: 10px 20px; font-size: 15px; font-weight: 600; cursor: pointer; min-height: 46px; color: #1c2530; font-family: inherit; }
.pos-cat.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.pos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pos-tile { position: relative; display: flex; flex-direction: column; align-items: stretch; background: #fff; border: 2px solid #e1e6ec; border-radius: 14px; padding: 0; overflow: hidden; cursor: pointer; text-align: left; color: #1c2530; font-family: inherit; }
.pos-tile:active { transform: scale(.97); border-color: var(--brand-red); }
.pos-tile.sold-out { opacity: .5; cursor: not-allowed; }
.pos-tile-photo { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: #f0f3f6; overflow: hidden; }
.pos-tile-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pos-tile-name { padding: 8px 10px 0; font-weight: 700; font-size: 14px; line-height: 1.25; min-height: 38px; }
.pos-tile-price { padding: 2px 10px 10px; color: var(--brand-red); font-weight: 800; font-size: 15px; }
.pos-tile-flag { position: absolute; top: 8px; left: 8px; background: #c1272d; color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 10px; }
.menu-initials { color: #8a97a6; font-weight: 800; font-size: 28px; letter-spacing: 1px; }
.menu-initials.big { font-size: 44px; }

/* menu manager */
.menu-toolbar select { max-width: 240px; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.menu-cat-head { grid-column: 1 / -1; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .5px; color: #667; margin-top: 8px; }
.menu-card { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #e1e6ec; border-radius: 10px; padding: 8px; cursor: pointer; text-align: left; font-family: inherit; color: #1c2530; min-height: 76px; }
.menu-card:hover { border-color: var(--brand-red); }
.menu-card.inactive { opacity: .6; }
.menu-thumb { flex: 0 0 60px; width: 60px; height: 60px; border-radius: 8px; background: #f0f3f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.menu-thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-thumb .menu-initials { font-size: 18px; }
.menu-card-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.menu-card-name { font-weight: 700; font-size: 14px; }
.menu-card-price { font-size: 14px; color: var(--brand-red); font-weight: 700; }
.menu-card-price small { color: #889; font-weight: 500; }
.menu-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.menu-tag { font-size: 11px; background: #eef1f4; color: #445; border-radius: 10px; padding: 2px 8px; font-weight: 600; }
.menu-tag.warn { background: #fff3c4; color: #7a5b00; }
.menu-tag.off { background: #fbeaea; color: #c1272d; }

/* dialogs */
.pos-modal { width: 420px; max-width: 96vw; }
.pos-modal.wide { width: 720px; }
.pos-modal h3 { font-size: 15px; margin: 0 0 8px; }
.pos-modal h3 small { font-weight: 500; color: #667; }
.pos-label { font-size: 13px; color: #667; display: block; margin: 8px 0 4px; }
.pos-input { width: 100%; padding: 11px 12px; border: 1px solid #d5dae1; border-radius: 8px; font-size: 16px; margin-bottom: 6px; min-height: 44px; font-family: inherit; background: #fff; }
.pos-check { display: flex; align-items: center; gap: 8px; font-size: 14px; margin: 8px 0; min-height: 40px; }
.pos-check input { width: 22px; height: 22px; margin: 0; }
.pos-confirm-text { font-size: 15px; line-height: 1.5; margin: 4px 0 12px; }
.pos-edit-grid { display: flex; gap: 18px; flex-wrap: wrap; }
.pos-photo-col { flex: 0 0 170px; display: flex; flex-direction: column; gap: 8px; align-items: stretch; }
.pos-photo-preview { width: 170px; height: 170px; border-radius: 12px; background: #f0f3f6; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pos-photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.pos-file-btn { text-align: center; cursor: pointer; }
.pos-fields-col { flex: 1; min-width: 220px; }
.pos-section { border-top: 1px solid #e6eaf0; margin-top: 14px; padding-top: 12px; }
.pos-override-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.pos-override-row > * { flex: 1; min-width: 140px; }
.pos-override-row .btn { flex: 0 0 auto; }
.recipe-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.recipe-row .ing-name { flex: 1; margin: 0; }
.recipe-row .ing-qty { width: 100px; margin: 0; text-align: right; }
.recipe-row .ing-unit { width: 56px; font-size: 12px; color: #667; }
.staff-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 4px; border-bottom: 1px solid #eef1f4; }
.staff-row.inactive { opacity: .6; }
.staff-main { font-size: 14px; }
.staff-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.staff-actions .btn { min-height: 38px; padding: 6px 12px; font-size: 13px; }

/* PIN pad */
.pos-modal.pinpad { width: 330px; }
.pos-modal.pinpad h2 { text-align: center; }
.pinpad-sub { text-align: center; color: #667; font-size: 14px; margin-bottom: 8px; }
.pinpad-dots { display: flex; justify-content: center; gap: 12px; margin: 6px 0 16px; }
.pinpad-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #b8c1cc; }
.pinpad-dots span.on { background: var(--brand-red); border-color: var(--brand-red); }
.pinpad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pinpad-key { min-height: 62px; font-size: 24px; font-weight: 700; border-radius: 12px; border: 1px solid #d5dae1; background: #f8fafc; cursor: pointer; color: #1c2530; font-family: inherit; }
.pinpad-key:active { background: var(--brand-red-light); border-color: var(--brand-red); }
.pinpad-key.alt { font-size: 20px; }
.pinpad-key.ok { background: var(--brand-red); border-color: var(--brand-red); color: #fff; font-size: 20px; }

@media (max-width: 700px) {
  .pos-modal.wide { width: 96vw; }
  .pos-photo-col { flex: 1 1 100%; flex-direction: row; align-items: center; }
  .pos-photo-preview { width: 110px; height: 110px; }
}

.pos-input:disabled { background: #eef1f4; color: #667; cursor: not-allowed; }

/* ===== POS selling screen ===== */
.pos-sell { display: flex; gap: 14px; height: calc(100vh - 118px); min-height: 420px; }
.pos-left { flex: 1; min-width: 0; overflow-y: auto; padding-right: 4px; }
.pos-left .pos-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); }
.pos-tile-qty { position: absolute; top: 8px; right: 8px; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px; background: var(--brand-red); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }

.pos-cart { flex: 0 0 340px; display: flex; flex-direction: column; background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(0,0,0,.12); overflow: hidden; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #e6eaf0; }
.cart-head .btn { min-height: 34px; padding: 4px 12px; font-size: 13px; }
.cart-lines { flex: 1; overflow-y: auto; padding: 4px 10px; }
.cart-line { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid #f0f3f6; }
.cart-line-name { flex: 1; min-width: 0; font-weight: 700; font-size: 14px; line-height: 1.25; }
.cart-line-name small { display: block; font-weight: 500; color: #667; font-size: 12px; }
.cart-line-total { width: 72px; text-align: right; font-weight: 700; font-size: 14px; }
.cart-stepper { display: flex; align-items: center; gap: 4px; }
.cart-stepper button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #d5dae1; background: #f8fafc; font-size: 22px; line-height: 1; cursor: pointer; color: #1c2530; font-family: inherit; }
.cart-stepper button:active { background: var(--brand-red-light); border-color: var(--brand-red); }
.cart-stepper span { min-width: 24px; text-align: center; font-weight: 800; font-size: 16px; }
.cart-totals { padding: 8px 14px; border-top: 1px solid #e6eaf0; }
.cart-row { display: flex; justify-content: space-between; font-size: 14px; padding: 2px 0; color: #445; }
.cart-row.disc { color: #0a8a3b; font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; font-size: 24px; font-weight: 800; padding-top: 4px; }
.cart-buttons { display: flex; flex-direction: column; gap: 8px; padding: 10px 14px 14px; }
.cart-buttons .btn { min-height: 52px; font-size: 16px; border-radius: 10px; }
.cart-pay { font-size: 20px !important; }
.cart-pay:disabled { opacity: .45; cursor: not-allowed; }
.cart-discount.on { background: #eafaf0; color: #0a8a3b; border: 2px solid #0a8a3b; }

@media (max-width: 860px) {
  .pos-sell { flex-direction: column; height: auto; }
  .pos-left { overflow: visible; }
  .pos-cart { flex: none; position: sticky; bottom: 0; max-height: 55vh; }
}

/* discount dialog */
.disc-types { display: flex; gap: 8px; margin-bottom: 12px; }
.disc-type { flex: 1; min-height: 56px; border: 2px solid #d5dae1; background: #fff; border-radius: 12px; font-size: 16px; font-weight: 700; cursor: pointer; color: #1c2530; font-family: inherit; }
.disc-type.active { border-color: var(--brand-red); background: var(--brand-red-light); color: var(--brand-red); }
#disc-lines { max-height: 200px; overflow-y: auto; border: 1px solid #e1e6ec; border-radius: 8px; padding: 2px 10px; }

/* payment dialog */
.pos-modal.pay-modal { width: 420px; }
.pay-total { text-align: center; font-size: 38px; font-weight: 800; color: var(--brand-red); margin: 0 0 8px; }
.pay-methods { display: flex; gap: 8px; margin-bottom: 12px; }
.pay-method { flex: 1; min-height: 54px; border: 2px solid #d5dae1; background: #fff; border-radius: 12px; font-size: 18px; font-weight: 800; cursor: pointer; color: #1c2530; font-family: inherit; }
.pay-method.active { border-color: var(--brand-red); background: var(--brand-red); color: #fff; }
.pay-received { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; color: #667; padding: 0 4px; }
.pay-received strong { font-size: 30px; color: #1c2530; }
.pay-change { text-align: center; font-size: 22px; font-weight: 800; min-height: 30px; margin: 4px 0; }
.pay-change.ok { color: #0a8a3b; }
.pay-change.short { color: #c1272d; }
.pay-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
.pay-quick .btn { min-height: 44px; padding: 4px; font-size: 14px; }
.pay-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pay-keys .pinpad-key { min-height: 54px; font-size: 22px; }
.pay-go { min-height: 54px; font-size: 17px; }
.pay-go:disabled { opacity: .45; cursor: not-allowed; }

/* receipt dialog */
.pos-modal.receipt-modal { width: 400px; }
.receipt-summary { display: flex; justify-content: space-between; align-items: baseline; background: #eafaf0; color: #0a8a3b; border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; font-size: 16px; font-weight: 700; }
.receipt-summary strong { font-size: 30px; }
.receipt-frame { width: 100%; height: 340px; border: 1px solid #e1e6ec; border-radius: 8px; background: #fff; margin-bottom: 8px; }

/* today's sales */
.today-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
.today-summary div { background: #f4f6f8; border-radius: 10px; padding: 8px 10px; }
.today-summary span { display: block; font-size: 12px; color: #667; }
.today-summary strong { font-size: 16px; }
.today-list { max-height: 50vh; overflow-y: auto; }
.today-row { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid #eef1f4; }
.today-row.voided { opacity: .65; }
.today-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; font-size: 13px; }
.today-main small { color: #667; }
.today-main .void-note { color: #c1272d; }
.today-amount { font-weight: 800; font-size: 16px; }
.today-amount.struck { text-decoration: line-through; }
.today-actions { display: flex; gap: 6px; }
.today-actions .btn { min-height: 40px; padding: 4px 12px; font-size: 13px; }
@media (max-width: 600px) { .today-summary { grid-template-columns: repeat(2, 1fr); } .today-row { flex-wrap: wrap; } }

/* ===== POS: drawer, amount pad, reports ===== */
.open-register { min-height: 64px; font-size: 20px; padding: 0 36px; border-radius: 14px; }
.drawer-actions { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 10px; }
.drawer-actions .btn { min-height: 64px; font-size: 17px; text-align: left; padding: 8px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; border-radius: 12px; }
.drawer-actions .btn small { font-weight: 500; font-size: 12px; opacity: .8; }

.pos-modal.amountpad { width: 340px; }
.amountpad-display { text-align: center; font-size: 38px; font-weight: 800; color: var(--brand-red); margin: 4px 0 12px; }

.report-toolbar { align-items: center; }
.rp-date { font-size: 13px; color: #667; display: flex; align-items: center; gap: 6px; }
.rp-date input { padding: 8px 10px; border: 1px solid #d5dae1; border-radius: 6px; font-size: 14px; min-height: 42px; }
.rp-scope { margin: 4px 0 10px; font-size: 15px; color: #445; }
.rp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rp-card { background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.rp-card span { font-size: 12px; color: #667; }
.rp-card strong { font-size: 22px; margin: 2px 0; }
.rp-card small { font-size: 12px; color: #889; min-height: 14px; }
.rp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rp-table th { text-align: left; font-size: 12px; color: #667; font-weight: 600; padding: 6px 8px; border-bottom: 2px solid #e6eaf0; white-space: nowrap; }
.rp-table td { padding: 7px 8px; border-bottom: 1px solid #eef1f4; vertical-align: top; }
.rp-table th.r, .rp-table td.r { text-align: right; white-space: nowrap; }
.rp-csv { margin-top: 8px; min-height: 38px; padding: 4px 14px; font-size: 13px; }
#tab-sales .card, #pos-manager-body .card { margin-bottom: 14px; }
@media (max-width: 700px) { .rp-cards { grid-template-columns: repeat(2, 1fr); } }

/* ===== Cashier tablet page (/pos) ===== */
body.pos-page { background: #f4f6f8; }
.pos-app { padding: 12px 16px; min-height: 100vh; }
.pos-page .pos-sell { height: calc(100vh - 100px); }
.pos-status { border: 0; border-radius: 16px; padding: 6px 14px; font-size: 13px; font-weight: 700; cursor: pointer; min-height: 34px; font-family: inherit; }
.pos-status.online { background: #eafaf0; color: #0a8a3b; }
.pos-status.offline { background: #fbeaea; color: #c1272d; }
.pos-status.pending { background: #fff3c4; color: #7a5b00; }
.late-layout { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.late-items { flex: 2 1 380px; max-height: 70vh; overflow-y: auto; }
.late-details { flex: 1 1 300px; }
.late-when { display: flex; gap: 8px; }
.late-when > div { flex: 1; }
.late-row { display: flex; align-items: center; gap: 8px; padding: 6px 4px; border-bottom: 1px solid #eef1f4; }
.late-row.on { background: #fbeaea; }
.late-name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; }
.late-name small { display: block; font-weight: 400; color: #667; font-size: 12px; }
.late-price { width: 90px; margin: 0; }
.late-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; margin: 12px 0; }
.late-total strong { font-size: 26px; color: var(--brand-red); }

/* One sign-in card, two destinations */
.login-switch { display: flex; background: #eef1f4; border-radius: 12px; padding: 4px; gap: 4px; margin: 0 0 14px; }
.login-switch button { flex: 1; min-height: 46px; border: 0; border-radius: 9px; background: transparent; font-size: 15px; font-weight: 700; color: #556; cursor: pointer; font-family: inherit; }
.login-switch button.active { background: var(--brand-red); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); }

/* The two front doors: staff (inventory.*) and branches (branchinventory.*) */
.portal-staff .branch-only, .portal-branch .staff-only { display: none !important; }

/* Stock labels */
.lb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.lb-preview { background: #eef1f4; border-radius: 10px; padding: 12px; overflow-x: auto; min-height: 60px; }
.pos-modal.lb-modal { width: 700px; }
@media (max-width: 640px) { .lb-grid { grid-template-columns: 1fr; } }

/* Staff & Time (attendance, schedule, employees, holidays, pay rates) */
.hr-tabs { margin-bottom: 14px; }
.hr-search { min-width: 200px; padding: 7px 10px; border: 1px solid #cfd6de; border-radius: 8px; }
.hr-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.hr-mini { padding: 4px 10px; font-size: 12px; min-height: 0; }
.hr-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 10px; }
.hr-card { background: #fff; border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hr-card b { display: block; font-size: 26px; color: var(--brand-red); }
.hr-card span { font-size: 12px; color: #667; }
.hr-card.warn b { color: #b45309; }
.hr-who { background: #fff; border-radius: 10px; padding: 8px 14px; margin-bottom: 14px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hr-who summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 4px 0; }
.hr-state { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #eef1f4; white-space: nowrap; }
.hr-state.in { background: #dcfce7; color: #166534; }
.hr-state.on_break { background: #fef3c7; color: #92400e; }
.hr-state.out { background: #e0e7ff; color: #3730a3; }
.hr-state.late { background: #fee2e2; color: #991b1b; }
.hr-badge { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #eef1f4; color: #556; letter-spacing: .4px; }
.hr-badge.cover { background: #ede9fe; color: #5b21b6; }
.hr-sumhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.hr-sumhead h3, .hr-rules h3 { margin: 0; font-size: 16px; }
.hr-open { color: #b45309; font-weight: 700; margin-right: 10px; font-size: 13px; }
.hr-table td { vertical-align: middle; }
.hr-flag { border: 1px solid #cfd6de; background: #fff; border-radius: 12px; padding: 2px 9px; font-size: 12px; margin: 1px 2px 1px 0; cursor: pointer; white-space: nowrap; }
.hr-flag.info { background: #f3f4f6; color: #667; cursor: default; }
.hr-flag.open { background: #fee2e2; border-color: #fca5a5; color: #991b1b; font-weight: 600; }
.hr-flag.wait { background: #fef3c7; border-color: #fcd34d; color: #92400e; font-weight: 600; }
.hr-flag.ok { background: #dcfce7; border-color: #86efac; color: #166534; }
.hr-flag.bad { background: #fee2e2; border-color: #f87171; color: #7f1d1d; text-decoration: line-through; }
.hr-holrow td:first-child { border-left: 3px solid #f59e0b; }
.hr-hol { font-size: 11px; color: #b45309; }
.hr-reason { background: #f8fafc; border-left: 3px solid var(--brand-red); padding: 8px 10px; border-radius: 4px; margin-bottom: 8px; }
.hr-reason small { display: block; color: #889; margin-top: 2px; }
.hr-decide { display: flex; justify-content: flex-end; gap: 8px; margin-top: 12px; }
.hr-month { display: inline-flex; align-items: center; gap: 8px; }
.hr-month strong { min-width: 150px; text-align: center; }
.hr-roster { max-width: 100%; }
.hr-grid { border-collapse: separate; border-spacing: 0; }
.hr-grid th, .hr-grid td { text-align: center; padding: 4px 3px; border-bottom: 1px solid #eef1f4; }
.hr-grid .hr-sticky { position: sticky; left: 0; background: #fff; text-align: left; min-width: 150px; z-index: 1; border-right: 2px solid #e6eaf0; }
.hr-day { min-width: 38px; font-size: 11px; font-weight: 600; }
.hr-day b { display: block; font-size: 14px; }
.hr-day.sun { color: #b91c1c; }
.hr-day.hol { background: #fff7ed; }
.hr-day i { color: #f59e0b; font-style: normal; font-size: 11px; }
.hr-cell { display: inline-block; min-width: 32px; padding: 6px 4px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; user-select: none; }
td.hr-cell { display: table-cell; background: #f8fafc; border-radius: 0; }
.hr-cell.opening { background: #dbeafe; color: #1e3a8a; }
.hr-cell.closing { background: #fde68a; color: #78350f; }
.hr-cell.off { background: #e5e7eb; color: #6b7280; }
.hr-cell.away { background: #ede9fe; color: #5b21b6; font-size: 10px; }
td.hr-cell:hover { outline: 2px solid var(--brand-red); outline-offset: -2px; }
.hr-count { font-size: 12px; font-weight: 700; color: #445; }
.hr-count small { font-weight: 400; color: #889; }
.hr-setall { font-size: 11px; padding: 3px; max-width: 92px; }
.hr-legend { margin-top: 10px; font-size: 12px; color: #556; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hr-legend .hr-cell { cursor: default; }
.hr-holtag { display: inline-block; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: #fee2e2; color: #991b1b; }
.hr-holtag.special { background: #fef3c7; color: #92400e; }
.hr-holtag.special_working { background: #e0f2fe; color: #075985; }
.hr-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.hr-cal-h { text-align: center; font-weight: 700; font-size: 12px; color: #667; padding: 4px; }
.hr-cal-c { background: #fff; border-radius: 8px; min-height: 92px; padding: 6px; cursor: pointer; border: 1px solid #e6eaf0; display: flex; flex-direction: column; gap: 3px; }
.hr-cal-c.empty { background: transparent; border: 0; cursor: default; }
.hr-cal-c:not(.empty):hover { border-color: var(--brand-red); }
.hr-cal-c.today { border: 2px solid var(--brand-red); }
.hr-cal-n { font-weight: 700; font-size: 14px; }
.hr-cal-t { display: flex; flex-wrap: wrap; gap: 3px; margin-top: auto; }
.hr-cal-t .hr-cell { cursor: pointer; min-width: 0; padding: 2px 6px; font-size: 11px; }
.hr-former { opacity: .6; }
.hr-rules { background: #fff; border-radius: 10px; padding: 12px 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.hr-rulegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin: 8px 0; }
.hr-rule { background: #f8fafc; border-radius: 8px; padding: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.hr-rule input { width: 70px; padding: 4px 6px; border: 1px solid #cfd6de; border-radius: 6px; }

/* Time clock on the tablet */
.hrk { position: fixed; inset: 0; z-index: 90; background: linear-gradient(160deg, #1c2530, var(--brand-red-dark)); color: #fff; display: flex; flex-direction: column; padding: 14px 22px; overflow: auto; }
.hrk-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 18px; }
.hrk-top span { color: #fca5a5; font-weight: 700; margin-left: 6px; }
.hrk-main { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.hrk-left { text-align: center; }
.hrk-clock { font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -1px; }
.hrk-date { font-size: 20px; opacity: .85; margin: 6px 0 22px; }
.hrk-prompt { font-size: 34px; font-weight: 700; margin-bottom: 10px; }
.hrk-steps { display: flex; gap: 8px; justify-content: center; align-items: center; font-size: 13px; opacity: .8; margin-bottom: 18px; flex-wrap: wrap; }
.hrk-steps span { background: rgba(255,255,255,.14); padding: 4px 10px; border-radius: 12px; }
.hrk-form { display: flex; gap: 8px; justify-content: center; margin-bottom: 10px; }
.hrk-form input { width: 260px; font-size: 20px; padding: 12px 14px; border-radius: 10px; border: 0; text-align: center; }
.hrk-form .btn { min-height: 52px; min-width: 80px; }
.hrk-cam-row { margin-bottom: 8px; }
.hrk-cam { width: 260px; margin: 6px auto; border-radius: 10px; overflow: hidden; background: #000; }
.hrk-wait { font-size: 13px; color: #fcd34d; min-height: 18px; margin-top: 8px; }
.hrk-card { background: #fff; color: #1c2530; border-radius: 18px; padding: 26px; text-align: center; min-height: 360px; display: flex; flex-direction: column; justify-content: center; gap: 6px; box-shadow: 0 12px 40px rgba(0,0,0,.35); }
.hrk-card.idle { background: rgba(255,255,255,.1); color: #fff; box-shadow: none; }
.hrk-idle { font-size: 20px; opacity: .85; line-height: 1.4; }
.hrk-kind { font-size: 44px; font-weight: 900; letter-spacing: 1px; }
.hrk-card.in .hrk-kind { color: #15803d; }
.hrk-card.bo .hrk-kind { color: #b45309; }
.hrk-card.bi .hrk-kind { color: #1d4ed8; }
.hrk-card.out .hrk-kind { color: #b91c1c; }
.hrk-card.in { border-top: 10px solid #22c55e; }
.hrk-card.bo { border-top: 10px solid #f59e0b; }
.hrk-card.bi { border-top: 10px solid #3b82f6; }
.hrk-card.out { border-top: 10px solid #ef4444; }
.hrk-card.error { border-top: 10px solid #7f1d1d; }
.hrk-time { font-size: 30px; font-weight: 700; }
.hrk-name { font-size: 30px; font-weight: 800; margin-top: 8px; }
.hrk-role { font-size: 16px; color: #667; }
.hrk-big { font-size: 34px; font-weight: 800; color: #7f1d1d; }
.hrk-msg { font-size: 16px; margin-top: 6px; }
.hrk-msg.warn { color: #b45309; }
.hrk-msg.ok { color: #15803d; font-weight: 600; }
.hrk-cover { display: inline-block; align-self: center; background: #ede9fe; color: #5b21b6; font-weight: 800; padding: 4px 14px; border-radius: 14px; font-size: 14px; margin-top: 4px; }
.hrk-flag { text-align: left; background: #fff7ed; border: 2px solid #fdba74; border-radius: 12px; padding: 12px; margin-top: 10px; }
.hrk-flag-t { font-weight: 700; margin-bottom: 8px; }
.hrk-flag textarea { width: 100%; padding: 8px; border: 1px solid #cfd6de; border-radius: 8px; margin-bottom: 8px; font: inherit; }
.hrk-quickrow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hrk-quick { border: 1px solid #cfd6de; background: #fff; border-radius: 16px; padding: 7px 12px; font-size: 14px; cursor: pointer; }
.hrk-alt, .hrk-done { align-self: center; margin-top: 12px; min-height: 46px; }
@media (max-width: 900px) { .hrk-main { grid-template-columns: 1fr; } .hrk-clock { font-size: 60px; } }

/* Schedule calendar: drag names onto dates */
.hr-schedmain { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; align-items: start; }
.hr-calgrid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid #e6eaf0; border-radius: 12px; overflow: hidden; background: #fff; }
.hr-dh { padding: 7px 4px; text-align: center; font-size: 12px; color: #667; border-bottom: 1px solid #e6eaf0; background: #f8fafc; font-weight: 600; }
.hr-c { min-height: 104px; padding: 4px; border-right: 1px solid #eef1f4; border-bottom: 1px solid #eef1f4; display: flex; flex-direction: column; gap: 2px; }
.hr-c:nth-child(7n) { border-right: 0; }
.hr-c.out { background: #f8fafc; }
.hr-c.over { background: #fbeaea; outline: 2px dashed var(--brand-red); outline-offset: -3px; }
.hr-c.today .hr-dn { background: var(--brand-red); color: #fff; border-radius: 10px; padding: 0 7px; }
.hr-dn { font-size: 12px; color: #556; align-self: flex-start; line-height: 18px; font-weight: 600; }
.hr-hol2 { font-size: 10px; line-height: 1.25; padding: 1px 4px; border-radius: 4px; background: #fee2e2; color: #991b1b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-hol2.sp { background: #fef3c7; color: #92400e; }
.hr-pill { display: flex; align-items: center; gap: 3px; font-size: 12px; line-height: 1.35; padding: 2px 5px; border-radius: 5px; cursor: grab; white-space: nowrap; overflow: hidden; user-select: none; }
.hr-pill:active { cursor: grabbing; }
.hr-pill.dragging { opacity: .35; }
.hr-pill .x { margin-left: auto; opacity: .55; font-size: 13px; cursor: pointer; padding-left: 4px; }
.hr-pill .x:hover { opacity: 1; }
.hr-pill.O { background: #dbeafe; color: #1e3a8a; }
.hr-pill.C { background: #fde68a; color: #78350f; }
.hr-pill.F { background: #e5e7eb; color: #4b5563; }
.hr-pill.cv { box-shadow: inset 3px 0 0 #7c3aed; }
.hr-more { font-size: 11px; color: var(--brand-red); cursor: pointer; font-weight: 600; }
.hr-side { background: #fff; border: 1px solid #e6eaf0; border-radius: 12px; padding: 10px; position: relative; }
.hr-side h3 { font-size: 14px; margin: 0 0 6px; }
.hr-rmz { display: none; position: absolute; inset: 0; border-radius: 12px; background: #fee2e2; color: #991b1b; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 14px; font-weight: 600; z-index: 3; border: 2px dashed #f87171; }
.hr-side.show .hr-rmz { display: flex; }
.hr-rmz.hot { background: #b91c1c; color: #fff; }
.hr-seg { display: flex; border: 1px solid #cfd6de; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.hr-seg button { flex: 1; border: 0; background: #fff; padding: 6px 2px; cursor: pointer; font-size: 13px; border-right: 1px solid #e6eaf0; }
.hr-seg button:last-child { border-right: 0; }
.hr-seg button.on { background: var(--brand-red); color: #fff; font-weight: 600; }
.hr-emp { display: flex; align-items: center; gap: 7px; padding: 7px; border: 1px solid #e6eaf0; border-radius: 8px; margin-bottom: 5px; cursor: grab; background: #fff; user-select: none; }
.hr-emp:hover { border-color: #b8c0cc; }
.hr-emp.picked { border-color: var(--brand-red); background: #fbeaea; }
.hr-av { width: 26px; height: 26px; border-radius: 50%; background: #dbeafe; color: #1e3a8a; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: none; }
.hr-emp.cv .hr-av { background: #ede9fe; color: #5b21b6; }
.hr-emp small { display: block; color: #667; font-size: 11px; line-height: 1.2; }
.hr-emp b { font-weight: 600; font-size: 13px; line-height: 1.2; }
.hr-cnt { margin-left: auto; font-size: 11px; color: #667; }
.hr-mkpanel { border: 1px solid var(--brand-red); background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 12px; }
.hr-mkrow { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.hr-mkrow label { display: block; font-size: 12px; color: #667; margin-bottom: 3px; }
.hr-mkrow select { padding: 8px; border: 1px solid #cfd6de; border-radius: 8px; min-width: 140px; }
.hr-draft { display: flex; align-items: center; gap: 10px; background: #fef3c7; color: #78350f; border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-size: 13px; flex-wrap: wrap; }
.hr-undo { display: flex; align-items: center; gap: 10px; background: #1c2530; color: #fff; border-radius: 8px; padding: 8px 12px; margin-top: 10px; font-size: 13px; }
@media (max-width: 900px) { .hr-schedmain { grid-template-columns: 1fr; } }

/* Time clock, two steps: ID number then selfie */
.hrk-right { display: flex; justify-content: center; }
.hrk-stage { background: #fff; color: #1c2530; border-radius: 18px; padding: 22px 22px 18px; width: 100%; max-width: 460px; min-height: 440px; display: flex; flex-direction: column; align-items: center; gap: 10px; box-shadow: 0 12px 40px rgba(0,0,0,.35); text-align: center; }
.hrk-stage.result.in { border-top: 10px solid #22c55e; }
.hrk-stage.result.bo { border-top: 10px solid #f59e0b; }
.hrk-stage.result.bi { border-top: 10px solid #3b82f6; }
.hrk-stage.result.out { border-top: 10px solid #ef4444; }
.hrk-stage.error { border-top: 10px solid #7f1d1d; }
.hrk-stage.result.in .hrk-kind { color: #15803d; }
.hrk-stage.result.bo .hrk-kind { color: #b45309; }
.hrk-stage.result.bi .hrk-kind { color: #1d4ed8; }
.hrk-stage.result.out .hrk-kind { color: #b91c1c; }
.hrk-dots { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #667; margin-bottom: 4px; flex-wrap: wrap; justify-content: center; }
.hrk-dot { width: 22px; height: 22px; border-radius: 50%; border: 1px solid #b8c0cc; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.hrk-dot.on { background: #1c2530; color: #fff; border-color: #1c2530; }
.hrk-dot.done { background: #dcfce7; color: #166534; border-color: #86efac; }
.hrk-dline { width: 22px; height: 1px; background: #b8c0cc; }
.hrk-h { font-size: 22px; font-weight: 700; }
.hrk-idinput { width: 260px; font-size: 38px; font-weight: 700; letter-spacing: 8px; text-align: center; border: 0; border-bottom: 3px solid #b8c0cc; padding: 4px 6px; outline: none; background: transparent; color: #1c2530; }
.hrk-idinput:focus { border-bottom-color: var(--brand-red); }
.hrk-err { color: #b91c1c; font-size: 13px; min-height: 18px; }
.hrk-pad { display: grid; grid-template-columns: repeat(3, 78px); gap: 8px; }
.hrk-pad button { height: 56px; font-size: 22px; border: 1px solid #cfd6de; background: #fff; border-radius: 10px; cursor: pointer; }
.hrk-pad button:active { background: #eef1f4; }
.hrk-next { min-width: 240px; min-height: 50px; font-size: 17px; }
.hrk-link { background: none; border: 0; color: #667; text-decoration: underline; cursor: pointer; font-size: 13px; }
.hrk-who { display: flex; align-items: center; gap: 10px; background: #dcfce7; color: #166534; padding: 8px 14px; border-radius: 10px; font-size: 15px; text-align: left; }
.hrk-camwrap { width: 260px; height: 260px; border-radius: 14px; background: #1c2530; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.hrk-camwrap video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.hrk-camwrap img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.hrk-oval { position: absolute; left: 50%; top: 50%; width: 150px; height: 200px; transform: translate(-50%, -50%); border: 3px dashed rgba(255,255,255,.85); border-radius: 50%; pointer-events: none; }
.hrk-count { position: absolute; font-size: 84px; font-weight: 800; color: #fff; text-shadow: 0 2px 12px rgba(0,0,0,.6); }
.hrk-camerr { color: #fff; padding: 16px; font-size: 14px; line-height: 1.5; }
.hrk-hint { font-size: 13px; color: #667; min-height: 18px; }
.hrk-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.hrk-snap { min-width: 200px; min-height: 50px; font-size: 17px; }
.hrk-notice { font-size: 11px; color: #889; max-width: 340px; margin-top: auto; }
.hrk-person { display: flex; align-items: center; gap: 12px; margin-top: 4px; text-align: left; }
.hrk-pic { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; transform: scaleX(-1); border: 3px solid #e6eaf0; }
.hrk-person .hrk-name { margin-top: 0; font-size: 26px; }
@media (max-width: 900px) { .hrk-stage { max-width: none; } }
.hr-th { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; vertical-align: middle; cursor: zoom-in; border: 1px solid #cfd6de; background: #eef1f4; margin-left: 4px; }
.hr-nop { font-size: 10px; color: #9a3412; background: #ffedd5; padding: 1px 6px; border-radius: 8px; margin-left: 4px; white-space: nowrap; }

/* POS selling on / off banner (POS Menu tab) */
.pos-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; font-size: 14px; }
.pos-switch.on { background: #dcfce7; color: #166534; }
.pos-switch.off { background: #fef3c7; color: #78350f; }

/* Stock labels on an A4 sheet */
.lb-a4 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4px 12px; margin-top: 6px; }
.lb-sheetwrap { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.lb-sheetinfo { flex: 1; min-width: 200px; }
@media (max-width: 640px) { .lb-a4 { grid-template-columns: 1fr; } }

/* POS devices */
.pos-devname { margin-left: 8px; color: #667; font-weight: 600; }
.dev-modal .dv-sys { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; background: #f4f6f8; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 13px; }
.dv-st { font-size: 11px; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.dv-st.p { background: #fef3c7; color: #92400e; } .dv-st.r { background: #dcfce7; color: #166534; } .dv-st.x { background: #eef1f4; color: #667; border: 1px solid #d9dee5; }
.dv-sel td { background: #fbeaea; }
.dv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 4px 12px; }

/* Raw meat catalog + freezer */
.mt-mono { font-family: var(--font-mono, monospace); font-size: 11px; color: #667; }
.mt-wait { background: #fef3c7; color: #92400e; padding: 1px 8px; border-radius: 9px; font-weight: 600; }
.mt-chip { font-size: 11px; padding: 1px 8px; border-radius: 9px; background: #eef1f4; color: #667; white-space: nowrap; }
.mt-chip.ok { background: #dcfce7; color: #166534; } .mt-chip.warn { background: #fef3c7; color: #92400e; }
.mt-in { width: 74px; padding: 5px 6px; border: 1px solid #cfd6de; border-radius: 6px; text-align: right; }
.mode-btn.freezer_in.selected { border-color: #0e7490; color: #0e7490; background: #e0f7fa; }
.data-table th.r, .data-table td.r { text-align: right; white-space: nowrap; }
.mode-card.freezer_in { background: #e0f7fa; border-color: #0e7490; }

/* Freezer IN: categorized cards + per-box pop-up */
.fz-group { margin: 14px 0; }
.fz-group-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; color: #0e7490; }
.fz-cardrow { display: flex; flex-wrap: wrap; gap: 10px; }
.fz-card { text-align: left; background: #fff; border: 2px solid #cfe3ea; border-radius: 12px; padding: 12px 14px; min-width: 200px; cursor: pointer; font: inherit; }
.fz-card:hover { border-color: #0e7490; background: #f0fbfd; }
.fz-card-main { font-size: 17px; }
.fz-card-sub { font-size: 12px; color: #667; margin-top: 2px; }
.fz-bar { height: 8px; border-radius: 6px; background: #e5eaee; overflow: hidden; margin-top: 8px; }
.fz-bar.big { height: 12px; }
.fz-bar i { display: block; height: 100%; width: 0; background: #0e7490; transition: width .2s; }
.fz-prog-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.fz-scanrow { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; align-items: flex-end; }
.fz-scanrow #fz-scan { flex: 1; min-width: 220px; font-size: 17px; }
.fz-def { width: 250px; }
.fz-rows { max-height: 320px; overflow: auto; }
.mt-in.bad { border-color: #c1272d; background: #fff1f1; }

/* Freezer IN: categorized cards + per-box pop-up */
.fz-group { margin: 14px 0; }
.fz-group-title { font-weight: 700; font-size: 15px; margin-bottom: 6px; color: #0e7490; }
.fz-cardrow { display: flex; flex-wrap: wrap; gap: 10px; }
.fz-card { text-align: left; background: #fff; border: 2px solid #cfe3ea; border-radius: 12px; padding: 12px 14px; min-width: 200px; cursor: pointer; font: inherit; }
.fz-card:hover { border-color: #0e7490; background: #f0fbfd; }
.fz-card-main { font-size: 17px; }
.fz-card-sub { font-size: 12px; color: #667; margin-top: 2px; }
.fz-bar { height: 8px; border-radius: 6px; background: #e5eaee; overflow: hidden; margin-top: 8px; }
.fz-bar.big { height: 12px; }
.fz-bar i { display: block; height: 100%; width: 0; background: #0e7490; transition: width .2s; }
.fz-prog-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.fz-scanrow { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; align-items: flex-end; }
.fz-scanrow #fz-scan { flex: 1; min-width: 220px; font-size: 17px; }
.fz-def { width: 250px; }
.fz-rows { max-height: 320px; overflow: auto; }
.mt-in.bad { border-color: #c1272d; background: #fff1f1; }

/* Freezer IN as one entry + dashboard card */
.fz-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.fz-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 6px 0; }
.fz-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.mr-list { display: grid; }
.mr-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 9px 0; border-top: 1px solid #e5eaee; }
.mr-price { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mr-in { width: 110px; }
.mr-total { min-width: 90px; font-weight: 600; }

/* Full out: list of scanned boxes */
.fo-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin: 8px 0; }
.fo-group { border: 1px solid #dde3e8; border-radius: 10px; padding: 10px 12px; background: #fff; }
.fo-group-head { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 14px; }
.fo-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.fo-table td { padding: 5px 4px; border-top: 1px solid #edf0f3; }
.fo-table td.r { text-align: right; }
.fo-warn td { background: #fef3c7; }
.fo-older { font-size: 11px; color: #92400e; }
.fo-bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.fo-bar #fo-note { flex: 1; min-width: 200px; }

/* Raw Meat: Catalog | Deliveries */
.fz-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.fz-tabs button { border: 1px solid #cfd6de; background: #fff; border-radius: 8px; padding: 7px 16px; font: inherit; cursor: pointer; }
.fz-tabs button.on { background: #e0f2f6; border-color: #0e7490; color: #0e5a70; font-weight: 600; }
.dv-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 12px; }
.dv-pair { display: flex; gap: 6px; }
.dv-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 10px; }
.dv-card { background: #f4f6f8; border-radius: 8px; padding: 10px 12px; }
.dv-card span { display: block; font-size: 12px; color: #667; }
.dv-card strong { font-size: 19px; font-weight: 600; }
.fo-brand { font-size: 11px; color: #667; }

/* Payroll */
.pos-modal.pp-modal { width: 820px; max-width: 96vw; }
.pp-modal .rp-table input[type=number] { max-width: 140px; }
.hr-rulegrid .rp-table td, .hr-rulegrid .rp-table th { padding: 4px 6px; }

/* Freezer IN: type the number when the barcode will not scan */
.fz-scanbox { flex: 1; min-width: 260px; }
.fz-scanline { display: flex; gap: 8px; }
.fz-scanline input { flex: 1; }

/* Same serial on several boxes (a lot) */
.fz-modes { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 6px; }
.fz-mode { border: 1px solid #cfd6de; background: #fff; border-radius: 8px; padding: 7px 14px; font: inherit; cursor: pointer; }
.fz-mode.on { background: #e0f2f6; border-color: #0e7490; color: #0e5a70; font-weight: 600; }
.fz-lot { display: grid; grid-template-columns: 1.4fr 0.8fr 0.8fr auto; gap: 10px; align-items: end; margin: 6px 0; }
.fz-lot.hidden { display: none; }
.fz-lot-hint { grid-column: 1 / -1; margin: 0; }
.fz-actions-left { display: flex; gap: 8px; flex-wrap: wrap; }
.mt-chip.lot { background: #e0e7ff; color: #3730a3; }
.fz-lothead td { background: #f4f6ff; }
@media (max-width: 700px) { .fz-lot { grid-template-columns: 1fr 1fr; } }

/* shift times by branch + schedule reminder */
.hr-timesline { font-size: 13px; background: #eef1f5; border-radius: 8px; padding: 7px 12px; margin: 8px 0; color: #1c2530; }
.hr-timesnew { color: #7a1318; font-weight: 600; }
.hr-remind { display: flex; align-items: center; gap: 12px; border-radius: 8px; padding: 10px 14px; margin: 0 0 12px; font-size: 14px; background: #fff7ed; border: 1px solid #fdba74; color: #7c2d12; }
.hr-remind.urgent { background: #fef2f2; border-color: #fca5a5; color: #7f1d1d; }
.hr-remind span { flex: 1; }

/* ---------- loading and progress feedback (busy.js) ---------- */
@keyframes hhspin { to { transform: rotate(360deg); } }
@keyframes hhslide { 0% { margin-left: -35%; } 100% { margin-left: 100%; } }
@keyframes hhpulse { 50% { opacity: .55; } }
.hh-top { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: rgba(122, 19, 24, .15); z-index: 9998; overflow: hidden; }
.hh-top i { display: block; height: 100%; width: 35%; background: #7a1318; animation: hhslide 1.1s ease-in-out infinite; }
.hh-spin { width: 14px; height: 14px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; display: inline-block; animation: hhspin .7s linear infinite; flex: none; }
.hh-slow, .hh-banner { position: fixed; left: 50%; transform: translateX(-50%); z-index: 9997; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; font-size: 14px; max-width: min(92vw, 560px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.hh-slow { top: 14px; background: #eef6ff; color: #0c447c; border: 1px solid #b5d4f4; }
.hh-banner { top: 14px; background: #fff; color: #1c2530; border: 1px solid #cbd2dc; }
.hh-slow:not(.hidden) ~ .hh-banner { top: 62px; }
.hh-banner.ok { background: #ecfdf5; color: #14532d; border-color: #86efac; }
.hh-banner.warn { background: #fffbeb; color: #78350f; border-color: #fcd34d; }
.hh-banner.bad { background: #fef2f2; color: #7f1d1d; border-color: #fca5a5; }
.hh-banner.info { background: #eef6ff; color: #0c447c; border-color: #b5d4f4; }
.hh-ico { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #fff; background: #2f7d4f; flex: none; }
.hh-banner.warn .hh-ico { background: #b7791f; } .hh-banner.bad .hh-ico { background: #c0392b; }
/* the button that was pressed */
.hh-busy { cursor: progress !important; opacity: .88; }
.hh-busy::before, .hh-ok::before, .hh-err::before { content: ''; width: 13px; height: 13px; margin-right: 8px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; display: inline-block; vertical-align: -2px; animation: hhspin .7s linear infinite; }
.hh-ok::before { content: '\2713'; border: 0; animation: none; font-weight: 700; width: auto; height: auto; color: #86efac; }
.hh-err::before { content: '\2715'; border: 0; animation: none; font-weight: 700; width: auto; height: auto; color: #fca5a5; }
.btn.secondary.hh-ok::before { color: #2f7d4f; } .btn.secondary.hh-err::before { color: #c0392b; }
/* progress card */
.hh-card-wrap { position: fixed; inset: 0; background: rgba(30, 37, 48, .42); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.hh-card-wrap.hidden, .hh-top.hidden, .hh-slow.hidden, .hh-banner.hidden { display: none; }
.hh-card { background: #fff; color: #1c2530; border-radius: 14px; padding: 18px 20px; width: min(100%, 380px); box-shadow: 0 14px 40px rgba(0,0,0,.28); }
.hh-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 16px; }
.hh-card-head span { font-size: 13px; color: #5c6672; }
.hh-bar { height: 8px; border-radius: 99px; background: #e5e9ef; overflow: hidden; margin: 12px 0 10px; }
.hh-bar i { display: block; height: 100%; width: 0; background: #2f7d4f; border-radius: 99px; transition: width .3s; }
.hh-bar.ind i { width: 35%; background: #7a1318; animation: hhslide 1.1s ease-in-out infinite; transition: none; }
.hh-card-note { font-size: 13px; color: #5c6672; line-height: 1.45; }
.hh-card.ok .hh-card-head strong::before { content: '\2713 '; color: #2f7d4f; }
.hh-card.bad .hh-card-head strong::before { content: '\2715 '; color: #c0392b; }
.hh-card.bad .hh-bar i { background: #c0392b; }
.hh-card-act { display: flex; justify-content: flex-end; margin-top: 12px; }
.hh-card-act.hidden { display: none; }
/* grey placeholder lines for a screen that is still loading */
.hh-skel { color: transparent !important; min-height: 110px; border-radius: 8px; background-color: #f3f5f8; background-repeat: no-repeat; background-image: linear-gradient(#e1e6ed, #e1e6ed), linear-gradient(#e1e6ed, #e1e6ed), linear-gradient(#e1e6ed, #e1e6ed), linear-gradient(#e1e6ed, #e1e6ed); background-size: 82% 12px, 64% 12px, 74% 12px, 48% 12px; background-position: 14px 16px, 14px 44px, 14px 72px, 14px 100px; animation: hhpulse 1.3s ease-in-out infinite; user-select: none; }
.hh-soundbtn { font-size: 12px !important; opacity: .75; }
@media (prefers-reduced-motion: reduce) { .hh-top i, .hh-spin, .hh-busy::before, .hh-bar.ind i, .hh-skel { animation-duration: 3s; } }

.mt-chip.st { background: #7a1318; color: #fff; }

/* ---------- Starting Stock ---------- */
.nav-section { font-size: 10px; letter-spacing: .6px; text-transform: uppercase; color: #7d8794; padding: 12px 18px 2px; }
.nav-section.hidden { display: none; }
.st-head { display: flex; gap: 22px; font-size: 14px; margin: 0 0 4px; flex-wrap: wrap; }
.st-bar { height: 7px; border-radius: 99px; background: #e5e9ef; overflow: hidden; margin: 4px 0; }
.st-bar i { display: block; height: 100%; background: #2f7d4f; }
.st-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.st-card { background: #f3f5f8; border-radius: 10px; padding: 10px 14px; }
.st-card span { display: block; font-size: 12px; color: #5c6672; }
.st-card b { font-size: 20px; font-weight: 600; }
.st-card small { display: block; font-size: 12px; color: #5c6672; margin-top: 2px; }
.st-warn { color: #c0392b; }
.st-line { display: inline-flex; align-items: center; gap: 6px; background: #eef1f5; border-radius: 8px; padding: 3px 8px; margin: 2px 4px 2px 0; font-size: 13px; }
.st-line.on { outline: 2px solid #7a1318; }
.st-in { white-space: nowrap; }
.st-in .pos-input { display: inline-block; width: 110px; margin: 0 4px 0 0; padding: 6px 8px; }
.st-in input[type=date] { width: 150px; }
.st-need td:first-child { border-left: 3px solid #b7791f; }
.st-table td { vertical-align: top; }
.st-locks { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.st-lock .hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.st-ul { margin: 6px 0 10px 18px; padding: 0; font-size: 13px; }
.st-confirm { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
#starting-dash-card { margin: 10px 0 14px; }
#starting-dash-card .hd { display: flex; justify-content: space-between; align-items: baseline; }
.rp-table .pos-input[data-p] { display: inline-block; width: 140px; margin: 0 4px 0 0; padding: 6px 8px; }

/* weekday / weekend shift times form */
.bs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 6px 0; }
.chk-day { display: inline-flex; align-items: center; gap: 4px; margin: 2px 10px 2px 0; font-size: 13px; }
#bs-sp .pos-input { padding: 6px 8px; }
.st-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.st-cats .stage-tab { padding: 6px 12px; font-size: 13px; }
.st-cn { opacity: .65; font-weight: 600; margin-left: 2px; }
.st-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #d9822b; margin-left: 4px; vertical-align: middle; }
.hrk-appr { flex: 1; margin: 0 16px; padding: 6px 12px; border-radius: 10px; background: #fef3c7; color: #7a4b00; font-size: 14px; display: flex; align-items: center; gap: 10px; justify-content: center; }
.hrk-appr.ok { background: #dcfce7; color: #14532d; }
.hrk-appr.hidden { display: none; }
.hrk-top .hrk-appr span { color: inherit; margin: 0; font-weight: 600; }

/* ---- Owner monitoring screens ---- */
.ow-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ow-periods { margin: 0; }
.ow-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ow-tile { background: #fff; border: 1px solid #e6eaf0; border-radius: 10px; padding: 10px 12px; }
.ow-tile small { display: block; font-size: 12px; color: #667; }
.ow-tile b { display: block; font-size: 22px; font-weight: 700; margin: 2px 0; }
.ow-tile i { font-style: normal; font-size: 12px; color: #889; }
.ow-up { color: #166534 !important; }
.ow-dn { color: #b42318 !important; }
.ow-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 14px; }
.ow-card { background: #fff; border: 1px solid #e6eaf0; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; min-width: 0; }
.ow-two .ow-card { margin-bottom: 0; }
.ow-card h3 { margin: 0 0 8px; font-size: 14px; color: #445; }
.ow-h2 { font-size: 20px; margin: 4px 0 10px; }
.ow-h2 small { font-size: 13px; color: #889; font-weight: 400; }
.ow-brow { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 0; }
.ow-bname { width: 110px; flex-shrink: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ow-bar { flex: 1; height: 9px; background: #eef1f4; border-radius: 5px; overflow: hidden; }
.ow-bar i { display: block; height: 100%; background: #2a78d6; border-radius: 5px; }
.ow-bval { min-width: 86px; text-align: right; }
.ow-mini { font-size: 12px; color: #667; margin-bottom: 6px; }
.ow-feed { font-size: 13px; max-height: 420px; overflow-y: auto; }
.ow-feed > div { display: flex; gap: 8px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid #eef1f4; }
.ow-feed time { color: #889; min-width: 62px; font-size: 12px; }
.ow-feed small { color: #889; margin-left: 4px; }
.ow-kind { font-size: 10px; text-transform: uppercase; letter-spacing: .4px; min-width: 46px; color: #556; }
.ow-k-sale { color: #166534; } .ow-k-void { color: #b42318; } .ow-k-shift { color: #92400e; }
.ow-click tbody tr { cursor: pointer; }
.ow-click tbody tr:hover { background: #f6f8fb; }
.ow-hours { display: flex; align-items: flex-end; gap: 4px; height: 112px; }
.ow-hours > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; flex: 1; font-size: 10px; color: #889; }
.ow-hours i { display: block; width: 100%; max-width: 22px; background: #2a78d6; border-radius: 3px 3px 0 0; }
.ow-wrow { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid #eef1f4; font-size: 13px; }
.ow-wrow:last-child { border-bottom: 0; }
.ow-wrow small { color: #889; }
.mt-chip.ow-check { background: #fee2e2; color: #b42318; }
@media (max-width: 700px) { .ow-bname { width: 80px; } .ow-tile b { font-size: 18px; } }

/* ---- shift times: the week at a glance, the per-day form, closed days ---- */
.hr-wk { display: grid; grid-template-columns: repeat(7, minmax(62px, 1fr)); gap: 4px; }
.hr-wkc { border: 1px solid #e3e8ee; border-radius: 6px; padding: 3px 4px; font-size: 11px; line-height: 1.35; background: #f8fafc; text-align: center; min-width: 0; }
.hr-wkc b { display: block; font-size: 11px; color: #445; }
.hr-wkc span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hr-wkc .o { color: #1d4ed8; } .hr-wkc .c { color: #92400e; }
.hr-wkc.diff { background: #eef2ff; border-color: #c7d2fe; }
.hr-wkc.closed { background: #fee2e2; border-color: #fecaca; color: #b42318; }
.hr-wkc .mut { color: #aab; }
.bs-week input[type="time"] { width: 112px; padding: 5px 6px; }
.bs-week tr.we td { background: #f8fafc; }
.bs-week td { vertical-align: top; }
.bs-ok { color: #166534; font-size: 12px; white-space: nowrap; } .bs-warn { color: #92400e; font-size: 12px; white-space: nowrap; } .bs-bad { color: #b42318; font-size: 12px; white-space: nowrap; } .bs-mut { color: #889; font-size: 12px; }
.bs-copy { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.bs-spform { border: 1px solid #e6eaf0; border-radius: 8px; padding: 10px 12px; margin-top: 8px; background: #fafbfc; }
.bs-sprow { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.bs-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 8px; }
.bs-pick { border: 1px solid #e6eaf0; border-radius: 8px; padding: 8px 10px; background: #fff; }
.bs-sptimes { display: flex; gap: 8px; margin-left: 20px; }
.hr-c.closed { background: #fdecec; }
.hr-closed { font-size: 11px; color: #b42318; font-weight: 600; }
.hr-spday { font-size: 10px; color: #7a4b00; background: #fef3c7; border-radius: 4px; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hr-day.closedday { background: #fdecec; }
td.hr-cell.closedday { background: #fdecec; cursor: not-allowed; }
@media (max-width: 700px) { .hr-wk { grid-template-columns: repeat(4, minmax(60px, 1fr)); } }
.pos-modal.xwide { width: 1000px; max-width: 96vw; }
.bs-week input[type="time"] { width: 104px; }

/* ---- branch expenses (POS tablet and head office) ---- */
.ex-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ex-photo { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ex-photo img { width: 64px; height: 80px; object-fit: cover; border-radius: 6px; border: 1px solid #d5dae1; }
.ex-th { width: 42px; height: 52px; object-fit: cover; border-radius: 4px; border: 1px solid #d5dae1; display: block; }
.ex-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.ex-void td { opacity: .55; text-decoration: line-through; }
.ex-steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; font-size: 12px; }
.ex-steps span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: #eef1f4; color: #667; }
.ex-steps span i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: #d9dee5; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.ex-steps span.on { background: #1c2530; color: #fff; } .ex-steps span.on i { background: #fff; color: #1c2530; }
.ex-steps span.done { background: #dcfce7; color: #166534; } .ex-steps span.done i { background: #bbf7d0; }
.ex-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin-bottom: 10px; }
.ex-tiles > div { background: #fff; border: 1px solid #e6eaf0; border-radius: 8px; padding: 8px 10px; }
.ex-tiles small { display: block; font-size: 11px; color: #667; } .ex-tiles b { font-size: 18px; }

.ex-det { display: grid; grid-template-columns: minmax(160px, 260px) 1fr; gap: 16px; }
.ex-big img { width: 100%; max-height: 380px; object-fit: contain; border: 1px solid #d5dae1; border-radius: 8px; background: #f8fafc; }
@media (max-width: 640px) { .ex-det { grid-template-columns: 1fr; } }

/* ---- History: the "Show POS sales" tick ---- */
.hist-sales { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #556; white-space: nowrap; }
.hist-sales input { width: auto; min-height: 0; }

/* ---- Phone: the side menu is a drawer (opened with the Menu button) ---- */
.menu-toggle, .menu-backdrop { display: none; }
@media (max-width: 700px) {
  .menu-toggle { display: block; position: fixed; top: 8px; left: 8px; z-index: 60; background: #1c2530; color: #fff; border: none; border-radius: 8px; padding: 10px 14px; font-size: 14px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: min(78vw, 280px); z-index: 70; transform: translateX(-104%); transition: transform .2s ease; box-shadow: 0 0 30px rgba(0,0,0,.45); }
  .app.menu-open .sidebar { transform: none; }
  .app.menu-open .menu-backdrop { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 65; }
  .content { padding: 58px 14px 20px; }
  .stat-value { font-size: 22px; overflow-wrap: anywhere; }
}

/* ---- Branch Accounts (head office) and My Staff (branch) ---- */
.ba-card { margin-bottom: 12px; }
.ba-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ba-h h2 { margin: 0; font-size: 16px; }
.ba-h h2 small { font-weight: 400; color: #667; font-size: 12px; }
.ba-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.ba-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 8px 12px; border: 1px solid #d5dae1; border-radius: 8px; background: #fff; cursor: pointer; text-align: left; font-size: 14px; position: relative; }
.ba-chip small { font-size: 11px; color: #667; }
.ba-chip.on { border: 2px solid var(--brand-red); padding: 7px 11px; }
.ba-chip.off { border-style: dashed; color: #667; }
.ba-chip.add { border-style: dashed; color: #185fa5; justify-content: center; font-weight: 700; }
.ba-warn { display: inline-flex; width: 16px; height: 16px; border-radius: 50%; background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 700; align-items: center; justify-content: center; font-style: normal; }
.ba-ask { position: static; display: inline-block; }
.ba-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #eef1f4; flex-wrap: wrap; }
.ba-row:first-of-type { border-top: none; }
.ba-row.ba-off { opacity: .7; }
.ba-av { width: 34px; height: 34px; border-radius: 50%; background: #dcfce7; color: #166534; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.ba-av.mgr { background: #fef3c7; color: #92400e; }
.ba-main { flex: 1 1 200px; min-width: 0; }
.ba-main small { display: block; color: #667; font-size: 12px; margin-top: 2px; }
.ba-oldnote { color: #92400e !important; }
.ba-pincell { display: flex; align-items: center; gap: 6px; min-width: 120px; justify-content: flex-end; }
.ba-pin { font-family: ui-monospace, Consolas, monospace; letter-spacing: 3px; background: #f0f3f7; border-radius: 6px; padding: 5px 10px; min-width: 74px; text-align: center; font-size: 15px; }
.ba-pin.on { background: #fef3c7; color: #1c2530; font-weight: 700; }
.ba-eye { border: 1px solid #d5dae1; background: #fff; border-radius: 6px; width: 32px; height: 32px; cursor: pointer; font-size: 16px; }
.ba-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.ba-sub { margin: 12px 0 2px; font-size: 12px; color: #667; text-transform: uppercase; letter-spacing: .4px; }
.ba-line { font-size: 15px; }
.ba-note { background: #fff7e0; border: 1px solid #f0d98a; border-radius: 8px; padding: 9px 12px; margin-bottom: 12px; font-size: 13px; }
.ba-danger { color: #c1272d; }
.ba-done { opacity: .65; }
.ba-bigpin { font-family: ui-monospace, Consolas, monospace; font-size: 44px; letter-spacing: 10px; text-align: center; padding: 14px 0; }
.ba-err { background: #fdecec; color: #c1272d; padding: 9px 12px; border-radius: 6px; font-size: 13px; margin: 8px 0; }
.ba-to { margin-bottom: 8px; }
.ba-mail { border: 1px solid #e5e9ef; border-radius: 8px; padding: 12px 14px; margin: 10px 0; font-size: 14px; }
.ba-mail p { margin: 8px 0; }
.ba-links { background: #f3f5f8; border-radius: 6px; padding: 8px 12px; font-size: 13px; }
.ba-links span { display: inline-block; width: 120px; color: #667; }
.ba-attach { display: inline-block; border: 1px solid #d5dae1; border-radius: 6px; padding: 6px 10px; font-size: 13px; }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.ab-sec { font-weight: 700; margin: 16px 0 6px; font-size: 14px; }
.ab-sec small { font-weight: 400; color: #667; }
.ab-n { display: inline-flex; width: 22px; height: 22px; border-radius: 50%; background: #e6f1fb; color: #185fa5; font-size: 12px; align-items: center; justify-content: center; margin-right: 6px; }
.ab-person { display: grid; grid-template-columns: 150px 1.2fr 1fr 90px 34px; gap: 6px; margin-bottom: 6px; }
.ab-opts { display: flex; gap: 18px; flex-wrap: wrap; margin: 6px 0; font-size: 14px; }
.ab-hide { max-height: 150px; overflow-y: auto; border: 1px solid #e5e9ef; border-radius: 6px; padding: 8px 10px; columns: 2; font-size: 13px; margin-bottom: 8px; }
.ab-hide label { display: block; }
@media (max-width: 700px) { .pf-grid { grid-template-columns: 1fr; } .ab-person { grid-template-columns: 1fr 1fr; } .ba-pincell { justify-content: flex-start; } }

/* ---- First-visit welcome card ---- */
.welcome-link { display: block; margin-top: 14px; font-size: 13px; color: #185fa5; text-align: center; }
.hh-welcome { z-index: 300; }
.hh-welcome-box { max-width: 460px; text-align: center; padding: 26px 28px; }
.hh-welcome-logo { max-width: 150px; margin: 0 auto 8px; display: block; }
.hh-welcome-box h2 { margin: 4px 0; font-size: 20px; }
.hh-welcome-sub { color: #667; font-size: 13px; margin: 0 0 14px; }
.hh-welcome-steps { text-align: left; padding-left: 22px; margin: 0 0 18px; font-size: 14px; line-height: 1.5; }
.hh-welcome-steps li { margin-bottom: 8px; }
.hh-welcome-acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hh-welcome-acts .btn { text-decoration: none; display: inline-flex; align-items: center; }

/* ---- POS: Dine in / Take out on the order ---- */
.order-type { display: flex; gap: 6px; margin: 8px 0 6px; }
.order-type button { flex: 1; min-height: 44px; border: 2px solid #d5dae1; border-radius: 8px; background: #fff; font-size: 15px; font-weight: 700; color: #556; cursor: pointer; }
.order-type button.on { border-color: #185fa5; background: #e6f1fb; color: #185fa5; }
.order-type button.on.take { border-color: #b45309; background: #fef3c7; color: #92400e; }

/* ---- Recipe editor: when / unit / chart coverage ---- */
.recipe-row .ing-uom { width: 92px; margin: 0; }
.recipe-row .ing-when { width: 130px; margin: 0; }
.chart-cover { display: flex; align-items: center; gap: 10px; margin: 4px 0 10px; font-size: 13px; }
.chart-cover-bar { flex: 0 0 160px; height: 10px; background: #e5e9ef; border-radius: 6px; overflow: hidden; }
.chart-cover-bar i { display: block; height: 100%; background: #1d9e75; }
.chart-later { margin-top: 10px; padding: 10px; background: #fafaf5; border: 1px dashed #d8d3b8; border-radius: 8px; font-size: 13px; }
.chart-later-row { display: flex; gap: 8px; align-items: center; margin-top: 6px; }
.chart-later-row > span { flex: 1; }
.chart-later-row .cl-item { width: 180px; margin: 0; }
@media (max-width: 700px) { .recipe-row { flex-wrap: wrap; } .recipe-row .ing-name { flex: 1 1 100%; } }

/* ---- Import portion chart / take-out extras ---- */
.im-counts { margin: 10px 0; padding: 8px 10px; background: #eef5ff; border-radius: 8px; font-size: 13px; }
.im-map { display: flex; flex-direction: column; gap: 4px; max-height: 220px; overflow: auto; margin-bottom: 8px; }
.im-row { display: flex; gap: 8px; align-items: center; }
.im-row > span { flex: 1; font-size: 13px; }
.im-row select { width: 260px; margin: 0; }
.im-done { padding: 12px; background: #e8f6ef; border-radius: 8px; }
.im-skip { margin-top: 8px; font-size: 13px; color: #92400e; }

/* ---- Item modal: portion chart sizes ---- */
.item-kitchen { margin-top: 14px; padding-top: 10px; border-top: 1px solid #e5e9ef; }
.item-kitchen h3 { margin: 0 0 8px; font-size: 14px; }
.ik-row, .ik-line { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.ik-row label { flex: 0 0 auto; font-size: 13px; margin: 0; }
.ik-row input { width: 110px; margin: 0; }
.ik-line .ik-raw { flex: 1 1 0; min-width: 0; margin: 0; }
.ik-line .ik-grams { flex: 0 0 80px; width: 80px; min-width: 0; margin: 0; }
.ik-line .ik-del { flex: 0 0 auto; padding: 6px 10px; }
.ik-row { flex-wrap: wrap; }
.produce-hint { margin: 8px 0 12px; padding: 8px 10px; background: #eef5ff; border-radius: 8px; font-size: 13px; line-height: 1.5; }
.ik-suffix { font-size: 12px; color: #667; }
.ik-sub { display: block; margin: 10px 0 4px; font-size: 13px; font-weight: 600; }

/* ---- Kitchen Check ---- */
.kc-bar { flex-wrap: wrap; gap: 8px; align-items: center; }
.kc-chip.on { background: #185fa5; color: #fff; border-color: #185fa5; }
.kc-h { margin: 18px 0 6px; font-size: 15px; }
.kc-piece { margin: 10px 0 14px; padding: 10px; border: 1px solid #e5e9ef; border-radius: 8px; }
.kc-piece-head { margin-bottom: 6px; }

/* ---- Phase 2: ingredient count on the tablet ---- */
.pc-table td, .pc-table th { white-space: nowrap; }

/* ---- Phase 2: Track ingredients board ---- */
.bd-row { display: grid; grid-template-columns: minmax(130px, 1.2fr) minmax(160px, 1.5fr) 110px auto auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px solid #eef0f4; }
.bd-name small { display: block; color: #667; font-size: 12px; }
.bd-row select, .bd-row input.pos-input { margin: 0; }
.bd-buy { font-size: 12px; color: #445; display: flex; gap: 4px; align-items: center; margin: 0; }
@media (max-width: 760px) { .bd-row { grid-template-columns: 1fr 1fr; } }

/* ---- Hoon, the mascot who roams the sign-in screen (hoon.js) ---- */
#hoon-layer { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
#hoon-layer svg { display: block; width: 100%; height: 100%; }
.login-screen .login-card { position: relative; z-index: 10; }

/* ---- Korean food doodles behind the sign-in card (doodles.js), shown at 40% ---- */
.login-screen { position: relative; overflow: hidden; }
.doodles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0.4; z-index: 0; }
.doodles svg.dd { position: absolute; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; animation: ddfloat var(--t, 9s) ease-in-out var(--dl, 0s) infinite; }
.doodles .ac { stroke: #ff9a90; }
.doodles .steam { stroke-dasharray: 5 6; animation: ddsteam 2.2s linear infinite; }
@keyframes ddfloat { 0%, 100% { transform: translateY(0) rotate(calc(var(--r, 3deg) * -1)); } 50% { transform: translateY(-12px) rotate(var(--r, 3deg)); } }
@keyframes ddsteam { to { stroke-dashoffset: -22; } }
@media (prefers-reduced-motion: reduce) { .doodles svg.dd, .doodles .steam { animation: none; } }

/* ---- Production Log + Stock Used in Prep (prod-log.js, prep-use.js) ---- */
.pl-sel { max-width: 220px; }
.pl-chk { font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.pl-day { margin: 20px 0 8px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pl-day h3 { margin: 0; font-size: 16px; } .pl-day small { color: #667; }
.pl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 12px; }
.pl-card { display: grid; grid-template-columns: 78px 1fr auto; gap: 14px; align-items: center; background: #fff; border: 1px solid #e6eaf0; border-left: 6px solid #2a7a4a; border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: box-shadow .15s, transform .15s, border-color .15s; }
.pl-card.warn { border-left-color: #d9a21b; } .pl-card.check { border-left-color: #c1272d; } .pr-card { border-left-color: #0e7490; } .pr-card.warn { border-left-color: #d9a21b; } .pr-card.check { border-left-color: #c1272d; } .pr-card.void { border-left-color: #aab; opacity: .75; }
.pl-card:hover { box-shadow: 0 6px 18px rgba(28,37,48,.14); transform: translateY(-2px); border-color: #c9d1db; }
.pl-date { text-align: center; background: #f4f6f8; border-radius: 10px; padding: 6px 4px 5px; }
.pl-date .m { font-size: 11px; font-weight: 700; color: #820000; letter-spacing: .06em; } .pl-date .d { font-size: 24px; font-weight: 700; line-height: 1.05; } .pl-date .w { font-size: 11px; color: #667; }
.pl-date.mini { display: inline-flex; flex-direction: column; min-width: 40px; padding: 3px 4px; } .pl-date.mini .d { font-size: 17px; }
.pl-time { margin-top: 5px; font-size: 11.5px; font-weight: 700; background: #fff; border: 1px solid #e0e5ec; border-radius: 20px; padding: 1px 0; }
.pl-item { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.pl-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .pl-fact { font-size: 12px; background: #eef1f4; border-radius: 8px; padding: 2px 8px; color: #334; } .pl-fact b { color: #1c2530; } .pl-fact-prep { background: #e0f2f7; color: #0b5a70; }
.pl-note { font-size: 12px; color: #7a5b00; margin-top: 5px; }
.pl-who { font-size: 12px; color: #667; margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pl-av { width: 20px; height: 20px; border-radius: 50%; background: #33465b; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.pl-right { text-align: right; } .pl-yield { font-size: 22px; font-weight: 700; line-height: 1; } .pl-yield.pl-none { color: #aab; } .pl-go { color: #99a; font-size: 20px; margin-top: 4px; }
.pl-cost { font-size: 20px; font-weight: 700; } .pl-cost.small { font-size: 18px; } .pl-cost.struck { text-decoration: line-through; color: #889; }
.pl-warn { color: #a15c00; }
.ow-tile b { display: block; font-size: 22px; }
.pl-chart h2 small { font-weight: 400; }
.pl-bars { display: flex; gap: 3px; align-items: flex-end; border-bottom: 1px solid #d5dae1; padding-top: 6px; min-height: 170px; }
.pl-bar-col { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.pl-bar-top { font-size: 10px; color: #667; height: 14px; white-space: nowrap; } .pl-bar { width: 100%; background: #820000; border-radius: 3px 3px 0 0; } .pl-bar.none { background: #d5dae1; } .pl-bar.today { background: #d9858a; border: 1px dashed #820000; }
.pl-bar-day { font-size: 10px; color: #667; margin-top: 3px; } .pl-legend { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 8px; }
.pl-trace .pos-modal-body, .u-modal .pos-modal-body { max-height: 74vh; overflow-y: auto; }
.pl-step { display: flex; gap: 12px; } .pl-step-rail { display: flex; flex-direction: column; align-items: center; }
.pl-step .b { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #820000; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; } .pl-step .b.none { background: #aab; }
.pl-step .l { width: 2px; flex: 1; background: #d5dae1; margin: 2px 0; } .pl-step-body { padding-bottom: 14px; flex: 1; min-width: 0; } .pl-step-body > small { color: #667; margin-left: 4px; } .pl-step-text { font-size: 13.5px; margin-top: 2px; }
.pl-prep { margin: 4px 0; } .pl-prep.void { opacity: .6; text-decoration: line-through; } .pl-warn-note { color: #7a5b00; font-size: 12.5px; margin-top: 3px; }
.pd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; } .pd-links { display: flex; gap: 6px; }
.pd-recent-h { margin: 12px 0 6px; } .pd-soon { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.u-seg { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 14px; } .u-seg button { border: 1.5px solid #cfd6df; background: #fff; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.u-seg button small { display: block; font-weight: 400; color: #667; font-size: 12px; } .u-seg button.on { border-color: #185fa5; background: #e8f1fb; color: #0c447c; }
.u-lab { font-size: 13px; color: #667; margin: 10px 0 4px; font-weight: 600; } .u-lab small { font-weight: 400; }
.u-full { width: 100%; max-width: 100%; }
.u-batch { display: flex; gap: 12px; align-items: center; border: 1.5px solid #185fa5; background: #f3f8fd; border-radius: 10px; padding: 8px 12px; }
.u-link { margin-left: auto; background: none; border: 0; color: #185fa5; font-weight: 700; cursor: pointer; font: inherit; }
.u-pick { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; } .u-pickrow { display: flex; gap: 10px; align-items: center; text-align: left; border: 1.5px solid #e0e5ec; background: #fff; border-radius: 10px; padding: 6px 10px; cursor: pointer; font: inherit; } .u-pickrow.on, .u-pickrow:hover { border-color: #185fa5; background: #f3f8fd; } .u-pickrow small { display: block; color: #667; font-size: 12px; }
.u-warnbox { background: #fff8e1; border: 1px solid #f0dca0; color: #6b5200; padding: 8px 12px; border-radius: 8px; font-size: 13px; }
.u-tbl { width: 100%; border-collapse: collapse; font-size: 14px; } .u-tbl th { text-align: left; font-size: 12px; color: #667; padding: 6px 8px; border-bottom: 2px solid #e6eaf0; white-space: nowrap; } .u-tbl td { padding: 6px 8px; border-bottom: 1px solid #eef1f4; vertical-align: middle; } .u-tbl .r { text-align: right; white-space: nowrap; }
.u-name { min-width: 220px; margin: 0; } .u-in { width: 96px; padding: 7px 8px; border: 1.5px solid #cfd6df; border-radius: 8px; font: inherit; text-align: right; } .u-unit { color: #667; font-size: 13px; margin-left: 4px; display: inline-block; min-width: 34px; text-align: left; } .u-mut { color: #667; } .u-hint { font-size: 12px; color: #667; }
.u-x { border: 0; background: none; font-size: 20px; color: #99a; cursor: pointer; } .u-x:hover { color: #c1272d; }
.u-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; } .u-add { border: 1.5px dashed #aab6c4; background: #fff; border-radius: 8px; padding: 7px 12px; color: #445; cursor: pointer; font: inherit; } .u-add.solid { border-style: solid; }
.u-tot { display: flex; gap: 18px; flex-wrap: wrap; background: #f4f6f8; border-radius: 10px; padding: 10px 14px; margin: 12px 0; align-items: baseline; } .u-tot b { font-size: 20px; }
.u-msg { margin-top: 8px; color: #c1272d; font-size: 13px; } .u-ok { color: #2a7a4a; }
.rolechip { font-size: 11px; font-weight: 700; border-radius: 10px; padding: 1px 8px; margin-left: 4px; } .r-prod { background: #fdebd0; color: #7a4a00; } .r-stock { background: #dff1e6; color: #1f6a3d; } .r-purch { background: #e5e1fa; color: #4338a3; }
.ic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; } .ic { background: #fff; border: 1px solid #e6eaf0; border-radius: 12px; padding: 12px 14px; } .ic h4 { margin: 0 0 2px; font-size: 15px; } .ic small { color: #667; }
.ic .bar { height: 8px; background: #e6eaf0; border-radius: 6px; overflow: hidden; margin: 8px 0 5px; } .ic .bar i { display: block; height: 100%; }
@media (max-width: 700px) { .pl-card { grid-template-columns: 64px 1fr; } .pl-right { grid-column: 1 / -1; text-align: left; display: flex; gap: 10px; align-items: center; } }

.mode-card.prep_use { background: #f0f9ff; border-color: #0e7490; }
.mode-btn.prep_use.selected { border-color: #0e7490; color: #0e7490; background: #e0f7fa; }
.mt-chip.ow-ok { background: #dcfce7; color: #166534; }

.u-unitsel { margin-left: 4px; padding: 7px 6px; border: 1.5px solid #cfd6df; border-radius: 8px; background: #fff; font: inherit; font-size: 13px; min-width: 74px; }
.u-tbl td .u-hint { display: block; text-align: right; }
.u-unitsel { width: auto; max-width: 110px; }

.ps-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ps-body { margin-top: 8px; }
.ps-body .u-tbl td { padding: 5px 8px; }

/* ---- recipe line units (pos-admin.js) ---- */
.rm-line { margin-bottom: 8px; } .rm-line .recipe-row { margin-bottom: 2px; }
.rm-hint { font-size: 12px; color: #667; margin: 0 0 0 2px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; } .rm-hint b { color: #1c2530; } .rm-hint:empty { display: none; }
.rm-ok { color: #2a7a4a; } .rm-warn { background: #fff8e1; border: 1px solid #f0dca0; color: #6b5200; border-radius: 8px; padding: 3px 8px; }
.rm-set { display: inline-flex; gap: 6px; align-items: center; background: #fff8e1; border: 1px solid #f0dca0; border-radius: 8px; padding: 4px 8px; }
.rm-set input { width: 78px; padding: 4px 6px; border: 1.5px solid #cfd6df; border-radius: 6px; font: inherit; text-align: right; }
.rm-set button { border: 0; background: #820000; color: #fff; border-radius: 6px; padding: 4px 10px; font: inherit; font-weight: 700; cursor: pointer; }
.rm-tot { background: #f4f6f8; border-radius: 10px; padding: 8px 12px; margin: 10px 0; font-size: 13px; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.recipe-row .ing-uom { width: 100px; }

.rm-pack input { width: 76px; } .rm-or { color: #6b5200; font-size: 12px; }
.rm-pack-toggle { border: 0; background: none; color: #185fa5; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0 2px; }

/* Time clock: the "are you sure?" card before Break out, Break in and Time out */
.hrk-stage.confirm.bo { border-top: 10px solid #f59e0b; }
.hrk-stage.confirm.bi { border-top: 10px solid #3b82f6; }
.hrk-stage.confirm.out { border-top: 10px solid #ef4444; }
.hrk-stage.confirm.bo .hrk-kind { color: #b45309; }
.hrk-stage.confirm.bi .hrk-kind { color: #1d4ed8; }
.hrk-stage.confirm.out .hrk-kind { color: #b91c1c; }
.hrk-cq { font-size: 15px; color: #667; }
.hrk-cnote { font-size: 16px; color: #333; text-align: center; }
.hrk-cwarn { font-size: 16px; font-weight: 600; background: #fff4d6; color: #6b4a00; border: 2px solid #f3c969; border-radius: 12px; padding: 10px 14px; text-align: center; max-width: 100%; }
.hrk-cno { min-width: 240px; min-height: 46px; font-size: 16px; }
.hrk-ctimer { width: 100%; max-width: 320px; margin-top: auto; text-align: center; font-size: 13px; color: #778; }
.hrk-cbar { height: 6px; background: #e8ecf1; border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.hrk-cbar i { display: block; height: 100%; width: 100%; background: #8a0000; transition: width 1s linear; }

/* ===== Daily sales entry (dailysales.js) ===== */
.ds-table td.ds-q, .ds-table th.ds-q { text-align: center; width: 150px; }
.ds-st { display: inline-flex; align-items: center; gap: 4px; }
.ds-st .pos-input { width: 56px; text-align: center; padding: 4px 2px; }
.ds-st .hr-mini { min-width: 30px; }
.ds-cat td { background: #f4f6f9; font-size: 12px; font-weight: 600; color: #667; }
.ds-sum td { font-weight: 600; border-top: 2px solid #e6eaf0; }
.ds-table { max-width: 820px; }
.ds-table td { vertical-align: middle; }
.ds-table td.ds-q input::-webkit-outer-spin-button, .ds-table td.ds-q input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ds-table td.ds-q input { -moz-appearance: textfield; appearance: textfield; }
@media (max-width: 700px) { .ds-table td.ds-q, .ds-table th.ds-q { width: auto; } .ds-st .pos-input { width: 44px; } .ds-st .hr-mini { min-width: 34px; min-height: 40px; } }
@media (max-width: 480px) { .ds-st .hr-mini { display: none; } .ds-st .pos-input { width: 58px; } }

/* Time clock: lunch break, coffee break, and the "What are you doing now?" card */
.hrk-stage.confirm.co, .hrk-stage.result.co { border-top: 10px solid #14b8a6; }
.hrk-stage.confirm.ci, .hrk-stage.result.ci { border-top: 10px solid #8b5cf6; }
.hrk-stage.confirm.co .hrk-kind, .hrk-stage.result.co .hrk-kind { color: #0f766e; }
.hrk-stage.confirm.ci .hrk-kind, .hrk-stage.result.ci .hrk-kind { color: #6d28d9; }
.hrk-stage.choice { border-top: 10px solid #1c2530; text-align: center; }
.hrk-choices { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 340px; margin: 12px 0 8px; }
.hrk-choice { min-height: 64px; font-size: 20px; font-weight: 700; border-radius: 14px; border: 2px solid #cfd6de; background: #fff; cursor: pointer; }
.hrk-choice.hrk-c-lunch { border-color: #f59e0b; background: #fff7e6; color: #92400e; }
.hrk-choice.hrk-c-coffee { border-color: #14b8a6; background: #e6fffb; color: #115e59; }
.hrk-choice.hrk-c-out { border-color: #ef4444; background: #fff0f0; color: #991b1b; }
.hrk-cnote.small { font-size: 14px; color: #667; }

/* ===== Equipment (equipment.js) ===== */
.eqc { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 99px; margin: 1px 3px 1px 0; white-space: nowrap; background: #eef1f4; color: #556; }
.eqc.ok { background: #dcfce7; color: #166534; } .eqc.rep { background: #fef3c7; color: #92400e; } .eqc.out { background: #fee2e2; color: #b42318; } .eqc.rpt { background: #dbeafe; color: #1d4ed8; } .eqc.warn { background: #fef3c7; color: #92400e; } .eqc.gy { background: #eef1f4; color: #667; }
.eq-msg { background: #dcfce7; color: #166534; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: 14px; }
.eq-err { color: #b42318; font-size: 13px; margin-top: 6px; min-height: 0; }
.eq-prob { display: grid; grid-template-columns: 1.3fr 1.6fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #eef1f4; }
.eq-matrix th, .eq-matrix td { text-align: center; padding: 6px 4px; font-size: 13px; }
.eq-matrix th:first-child, .eq-matrix td:first-child { text-align: left; }
.eq-matrix td.bad { background: #fee2e2; color: #b42318; font-weight: 700; } .eq-matrix td.zero { color: #aab; }
.eq-br { cursor: pointer; color: #185fa5; }
.eq-cat td { background: #f4f6f9; font-size: 12px; font-weight: 600; color: #667; }
.eq-tot td { font-weight: 700; border-top: 2px solid #e6eaf0; }
.eq-row { cursor: pointer; } .eq-row:hover td { background: #f8fafc; }
.eq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.eq-grid3 { display: grid; grid-template-columns: 1.6fr 90px auto; gap: 8px; align-items: center; }
.eq-grid label, .eq-grid3 label { margin-top: 0; }
.eq-prog { height: 8px; background: #e6eaf0; border-radius: 99px; overflow: hidden; margin: 8px 0 4px; } .eq-prog i { display: block; height: 100%; background: #8a0000; }
.eq-count .pos-input { max-width: 120px; } .eq-count .pos-input.eq-c { max-width: 175px; }
.eq-tl { border-left: 2px solid #e1e6ed; margin-left: 6px; padding-left: 14px; } .eq-ev { position: relative; margin-bottom: 10px; }
.eq-ev:before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: #b8c0cc; }
@media (max-width: 700px) { .eq-prob { grid-template-columns: 1fr; } .eq-grid { grid-template-columns: 1fr; } .eq-grid > [style*='grid-column'] { grid-column: auto !important; } .eq-grid3 { grid-template-columns: 1fr 70px auto; } }

/* ===== Website (website-admin.js) ===== */
.ws-head { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ws-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-saved { color: #166534; font-size: 12px; margin-left: 8px; }
.ws-ph { color: #92400e; font-weight: 600; }
.ws-tabs { margin: 0 0 10px; }
.ws-cols { display: grid; grid-template-columns: 190px 1fr; gap: 14px; align-items: start; }
.ws-pages { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 8px; }
.ws-pg { text-align: left; border: 1px solid #dfe3ea; background: #fff; border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
.ws-pg.active { background: var(--brand-red); border-color: var(--brand-red); color: #fff; }
.ws-pg i { font-style: normal; font-size: 11px; background: #fde68a; color: #92400e; border-radius: 10px; padding: 1px 7px; margin-left: 4px; }
.ws-g summary { cursor: pointer; list-style: none; padding: 2px 0 6px; } .ws-g summary::-webkit-details-marker { display: none; }
.ws-f { margin: 8px 0; position: relative; } .ws-f .ws-in { width: 100%; max-width: none; resize: vertical; }
.ws-f.chg .ws-in { border-color: #f59e0b; background: #fffbeb; }
.ws-tag { display: inline-block; font-size: 11px; background: #fef3c7; color: #92400e; border-radius: 10px; padding: 1px 8px; margin-top: 3px; }
.ws-chk { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; }
.ws-pics { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.ws-pic { border: 1px solid #e6eaf0; border-radius: 10px; overflow: hidden; background: #fff; } .ws-pic.chg { border-color: #f59e0b; }
.ws-pic img { width: 100%; height: 120px; object-fit: cover; display: block; background: #eee; }
.ws-pic-t { padding: 6px 8px 0; font-size: 13px; } .ws-pic-b { padding: 6px 8px 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.ws-msg { border-top: 1px solid #eef1f4; } .ws-msg:first-child { border-top: 0; }
.ws-msg-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 4px; cursor: pointer; } .ws-msg-h:hover { background: #f8fafc; }
.ws-when { margin-left: auto; }
.ws-msg-b { padding: 4px 6px 12px; } .ws-kv { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; } .ws-kv i { font-style: normal; color: #667; font-size: 12px; margin-right: 4px; }
.ws-msg-t { white-space: pre-wrap; background: #f5f6f8; border-radius: 8px; padding: 10px 12px; margin: 8px 0; font-size: 14px; }
.ws-route { display: grid; grid-template-columns: 140px 1fr 1fr; gap: 8px; align-items: center; margin: 6px 0; } .ws-route-h { font-size: 12px; color: #667; }
.ws-hist { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid #eef1f4; }
.ws-warn { background: #fef3c7; color: #92400e; border-radius: 8px; padding: 8px 12px; margin-bottom: 10px; font-size: 14px; }
@media (max-width: 760px) { .ws-cols { grid-template-columns: 1fr; } .ws-pages { flex-direction: row; flex-wrap: wrap; position: static; } .ws-route { grid-template-columns: 1fr; } }

.ws-flag { font-size: 12px; color: #92400e; background: #fef3c7; border-radius: 6px; padding: 1px 8px; margin-top: 3px; display: inline-block; font-weight: 600; }
.ws-off td { opacity: .6; } .ws-off td:last-child, .ws-off td:nth-last-child(2) { opacity: 1; }

.ws-steps { margin: 10px 0 6px; padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: 13px; }

/* ===== Website Design tab (website-admin.js): the font names are shown in their own fonts, loaded from the website folder only when used ===== */
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/site/assets/fonts/dmsans-latin.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 400; font-display: swap; src: url(/site/assets/fonts/poppins-400.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 500; font-display: swap; src: url(/site/assets/fonts/poppins-500.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 600; font-display: swap; src: url(/site/assets/fonts/poppins-600.woff2) format('woff2'); }
@font-face { font-family: 'Poppins'; font-style: normal; font-weight: 700; font-display: swap; src: url(/site/assets/fonts/poppins-700.woff2) format('woff2'); }
@font-face { font-family: 'Nunito Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/site/assets/fonts/nunito-sans.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/site/assets/fonts/manrope.woff2) format('woff2'); }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/site/assets/fonts/montserrat.woff2) format('woff2'); }
@font-face { font-family: 'Outfit'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/site/assets/fonts/outfit.woff2) format('woff2'); }
@font-face { font-family: 'Quicksand'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/site/assets/fonts/quicksand.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/site/assets/fonts/cormorant-garamond.woff2) format('woff2'); }
@font-face { font-family: 'Playfair Display'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/site/assets/fonts/playfair-display.woff2) format('woff2'); }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/site/assets/fonts/lora.woff2) format('woff2'); }
.ds-cols { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 14px; align-items: start; }
.ds-left { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ds-right { position: sticky; top: 74px; }
.ds-frame { border: 1px solid #dfe3ea; border-radius: 12px; overflow: hidden; margin: 10px auto 0; max-width: 100%; background: #fff; }
.ds-frame iframe { width: 100%; height: 680px; border: 0; display: block; }
.ds-pres { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.ds-pre { border: 1px solid #dfe3ea; background: #fff; border-radius: 10px; padding: 5px 10px; cursor: pointer; display: flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; font-size: 13px; }
.ds-pre i { display: inline-block; width: 15px; height: 15px; border-radius: 50%; }
.ds-pre.on, .ds-font.on { border-color: var(--brand-red); box-shadow: inset 0 0 0 1px var(--brand-red); }
.ds-clr { display: flex; align-items: center; gap: 10px; margin: 10px 0; }
.ds-clr input[type=color] { width: 46px; height: 36px; padding: 0; border: 1px solid #dfe3ea; border-radius: 8px; background: none; cursor: pointer; }
.ds-strip { display: flex; border-radius: 8px; overflow: hidden; border: 1px solid #dfe3ea; margin-top: 4px; } .ds-strip i { flex: 1; height: 22px; display: block; }
.ds-fonts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; }
.ds-font { border: 1px solid #dfe3ea; background: #fff; border-radius: 10px; padding: 7px 10px; cursor: pointer; text-align: left; }
.ds-font b { display: block; font-size: 17px; line-height: 1.2; font-weight: 500; } .ds-font small { color: #667; font-size: 11.5px; }
.ds-sec { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #eef1f4; } .ds-sec.off > span:first-child { opacity: .5; text-decoration: line-through; }
@media (max-width: 1000px) { .ds-cols { grid-template-columns: minmax(0, 1fr); } .ds-right { position: static; } }

/* ===== Website Blog tab (website-admin.js) ===== */
.bl-cols { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: start; }
.bl-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bl-side .ws-pg { text-align: left; }
.bl-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.bl-cover { display: flex; gap: 10px; align-items: center; } .bl-cover img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid #dfe3ea; background: #eee; }
.bl-stock { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; margin: 8px 0; max-height: 220px; overflow: auto; }
.bl-st { border: 2px solid transparent; border-radius: 8px; padding: 0; cursor: pointer; background: none; overflow: hidden; } .bl-st img { width: 100%; height: 60px; object-fit: cover; display: block; } .bl-st.on { border-color: var(--brand-red); }
.bl-write { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.bl-write textarea { min-height: 300px; resize: vertical; line-height: 1.5; }
.bl-pv { border: 1px solid #dfe3ea; border-radius: 10px; background: #fff; padding: 12px 16px; min-height: 300px; max-height: 520px; overflow: auto; font-size: 15px; line-height: 1.65; }
.bl-pv h2 { font-size: 21px; font-weight: 600; margin: 14px 0 4px; } .bl-pv h3 { font-size: 17px; margin: 12px 0 2px; } .bl-pv p { margin: 8px 0; } .bl-pv ul { margin: 8px 0; padding-left: 22px; }
.bl-pv blockquote { margin: 12px 0; padding: 6px 14px; border-left: 4px solid #FFA800; background: #f5f3f1; border-radius: 0 10px 10px 0; } .bl-pv a { color: #7a0c10; text-decoration: underline; }
.bl-pv figure { margin: 12px 0; } .bl-pv img { max-width: 100%; border-radius: 10px; } .bl-pv figcaption { font-size: 12px; color: #667; }
.ws-sched { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; margin-top: 12px; padding: 10px 12px; background: #f6f7f9; border-radius: 10px; }
.bl-serp { border: 1px solid #dfe3ea; border-radius: 10px; padding: 10px 12px; background: #fff; margin-top: 12px; max-width: 560px; } .bl-serp .u { font-size: 12px; color: #4b6a4f; } .bl-serp .t { font-size: 16px; color: #1a0dab; margin: 2px 0; } .bl-serp .d { font-size: 13px; color: #4d5156; }
@media (max-width: 900px) { .bl-cols, .bl-write, .bl-two { grid-template-columns: minmax(0, 1fr); } }
.bl-stock[hidden] { display: none; }

/* ===== Website Pop-ups & ads tab (website-admin.js) ===== */
.ad-two { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .9fr); gap: 14px; align-items: start; }
.ad-pvcard { position: sticky; top: 74px; }
.ad-fmts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ad-fmt { border: 2px solid #dfe3ea; background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; text-align: left; font: inherit; }
.ad-fmt.on { border-color: var(--brand-red); } .ad-fmt b { display: block; font-size: 13px; } .ad-fmt small { color: #667; font-size: 11.5px; }
.ad-pages { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.ad-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.ad-stats div { background: #f3f4f7; border-radius: 10px; padding: 8px 10px; } .ad-stats b { display: block; font-size: 18px; } .ad-stats span { font-size: 11.5px; color: #667; }
.ad-stage { position: relative; margin: 10px auto 0; max-width: 100%; border: 1px solid #dfe3ea; border-radius: 14px; overflow: hidden; background: #fff; color: #1a1614; height: 430px; }
.ad-stage.phone { width: 300px; height: 520px; }
.ad-site { position: absolute; inset: 0; overflow: hidden; }
.ad-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: space-between; padding: 12px 16px; font-size: 11px; }
.ad-hero { margin: 0 16px; padding: 16px; background: #f5f3f1; border-radius: 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ad-ph { flex: 1 1 100px; min-height: 100px; border-radius: 12px; background: linear-gradient(135deg, #6b3317, #c47a3a 55%, #f2c37a); }
.ad-cards { display: flex; gap: 10px; padding: 14px 16px; } .ad-cards i { flex: 1; height: 64px; background: #f5f3f1; border-radius: 12px; display: block; }
@media (max-width: 1100px) { .ad-two { grid-template-columns: minmax(0, 1fr); } .ad-pvcard { position: static; } }
@media (max-width: 600px) { .ad-fmts { grid-template-columns: minmax(0, 1fr); } .ad-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ===== Website Sections tab (website-admin.js) ===== */
.sx-cols { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
.sx-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sx-pv { position: relative; }
.sx-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; }
.sx-type { border: 2px solid #dfe3ea; background: #fff; border-radius: 10px; padding: 8px 10px; cursor: pointer; text-align: left; font: inherit; }
.sx-type.on { border-color: var(--brand-red); } .sx-type b { display: block; font-size: 13px; } .sx-type small { color: #667; font-size: 11.5px; line-height: 1.3; display: block; }
.sx-rep { border: 1px solid #e6eaf0; border-radius: 10px; padding: 10px; margin: 8px 0; background: #f8f9fb; }
.sx-gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.sx-g { border: 1px solid #e6eaf0; border-radius: 8px; padding: 4px; background: #fff; } .sx-g img { width: 100%; height: 70px; object-fit: cover; border-radius: 6px; display: block; background: #eee; margin-bottom: 4px; }
@media (max-width: 900px) { .sx-cols { grid-template-columns: minmax(0, 1fr); } }

.ws-att { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; border: 1px solid #dfe3ea; border-radius: 10px; padding: 10px 12px; margin: 8px 0; background: #fff; }
.ws-ext { width: 38px; height: 44px; border-radius: 6px; background: var(--brand-red); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }

/* Featured dishes picker (Website > Sections) */
.sx-dishes { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.sx-dish { display: inline-flex !important; align-items: center; gap: 8px; margin: 0; border: 1px solid var(--border, #cfc8c3); border-radius: 10px; padding: 7px 10px; font-size: 13px; background: var(--surface, #fff); cursor: pointer; }
.sx-dish.on { border-color: #7a0c10; background: rgba(122, 12, 16, 0.08); }
.sx-dish i { font-style: normal; opacity: 0.7; font-size: 12px; margin-left: 2px; }
.sx-dish input { width: auto; margin: 0; }
.sx-dish .n { background: #7a0c10; color: #fff; border-radius: 999px; width: 18px; height: 18px; font-size: 11px; display: inline-grid; place-items: center; }

/* Visitors tab (Website) */
.vs-tiles { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 14px; }
.vs-tile { flex: 1 1 180px; border: 1px solid var(--border, #e4dfdb); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.vs-tile small { font-size: 12px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.05em; }
.vs-tile b { font-size: 28px; line-height: 1.2; }
.vs-tile span { font-size: 12px; opacity: 0.75; }
.vs-chart { display: flex; align-items: flex-end; gap: 2px; height: 120px; padding: 4px 0; border-bottom: 1px solid var(--border, #e4dfdb); }
.vs-bar { flex: 1 1 0; min-width: 1px; height: 100%; display: flex; align-items: flex-end; }
.vs-bar i { display: block; width: 100%; background: #7a0c10; border-radius: 2px 2px 0 0; }
.vs-axis { display: flex; justify-content: space-between; font-size: 11px; opacity: 0.7; margin-top: 2px; }

/* Website screen: grouped tab menu */
.ws-nav { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px 28px; margin: 0 0 16px; padding: 12px 18px 0; background: #fff; border: 1px solid #e4dfdb; border-radius: 14px; }
@media (min-width: 1500px) { .ws-nav { grid-template-columns: 1.5fr 1fr 1.3fr 1.1fr; } }
.ws-ng { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ws-ngl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: #8a817b; padding-bottom: 2px; }
.ws-ngi { display: flex; flex-wrap: wrap; gap: 0 4px; }
.ws-nt { appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-size: 14px; font-weight: 500; color: #3a3430; padding: 6px 10px 9px; margin: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; border-radius: 6px 6px 0 0; }
.ws-nt:hover { background: rgba(122, 12, 16, 0.06); }
.ws-nt:focus-visible { outline: 2px solid #7a0c10; outline-offset: -2px; }
.ws-nt.active { color: #7a0c10; font-weight: 700; border-bottom-color: #7a0c10; }
.ws-nt .n { background: #d92d20; color: #fff; border-radius: 999px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
@media (max-width: 720px) { .ws-nav { grid-template-columns: 1fr; gap: 6px; padding: 10px 12px 0; } .ws-nt { padding: 6px 8px 8px; font-size: 13px; } }

/* ===== Test branch (practice only) ===== */
.beta-strip { background: #fff3cd; color: #664d03; border: 1px solid #ffe69c; border-radius: 10px; padding: 8px 14px; margin-bottom: 10px; font-size: 14px; text-align: center; }
body.beta-test::before { content: "BETA TEST. Practice only. Nothing here is real."; display: block; position: sticky; top: 0; z-index: 50; background: #fff3cd; color: #664d03; border-bottom: 1px solid #ffe69c; padding: 6px 12px; font-size: 13px; font-weight: 700; text-align: center; }
.ba-test { background: #fff8e1; border: 1px solid #ffe69c; }
.ba-test .field-hint { margin-top: 6px; }
.ba-wipe-list { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }

/* ===== BIR readings (pos-readings.js) and the business-customer button ===== */
.bir-card .bir-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.bir-card .bir-status > div { background: var(--surface-2, #f6f4f1); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.bir-card .bir-status span { font-size: 12px; opacity: .7; }
.bir-card .bir-status strong { font-size: 16px; }
.bir-card .bir-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.bir-card .bir-actions .btn small { display: block; font-weight: 400; font-size: 12px; opacity: .8; }
.bir-card .bir-actions .btn:disabled { opacity: .45; cursor: not-allowed; }
.bir-problems { margin: 8px 0 0 18px; padding: 0; font-size: 14px; }
.bir-problems li { margin: 4px 0; }
.cart-buyer { min-height: 40px !important; font-size: 14px !important; }
.cart-buyer.on { background: #eafaf0; color: #0a8a3b; border: 2px solid #0a8a3b; }
.bir-codes { display: grid; grid-template-columns: 1fr 110px; gap: 6px 10px; align-items: center; margin: 6px 0 4px; }
.bir-codes label { font-size: 14px; }

/* ===== Card payment and delivery-app orders ===== */
.order-from { margin: 0 0 8px; }
.order-from small { display: block; font-size: 12px; color: #667; margin: 0 0 4px; }
.order-from > div { display: flex; gap: 6px; }
.order-from .from { flex: 1; min-height: 42px; border: 2px solid #d5dae1; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 700; color: #556; cursor: pointer; }
.order-from .from.walk.on { border-color: #556; background: #eef0f3; color: #223; }
.order-from .from.grab { background: #00B14F; border-color: #007A37; color: #fff; }
.order-from .from.panda { background: #D70F64; border-color: #9E0B4A; color: #fff; }
.order-from .from.grab.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #00B14F; }
.order-from .from.panda.on { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #D70F64; }
.order-from .from.dim { opacity: .55; }
.cart-pay.pay-grab { background: #00B14F !important; border-color: #00B14F !important; }
.cart-pay.pay-panda { background: #D70F64 !important; border-color: #D70F64 !important; }
.pay-app-tag { display: inline-block; color: #fff; font-weight: 700; font-size: 13px; padding: 3px 12px; border-radius: 8px; margin: 0 0 8px; }
.pay-modal .pay-method.pay-method-app { flex: 1; }
#pay-card .pay-methods { margin: 4px 0 8px; }
