:root {
  --ink: #242a2e;
  --muted: #646b71;
  --line: #e0e4e7;
  --bg: #f7f8f9;
  --wine: #571419;
  --serif: "EB Garamond", Georgia, serif;
  --white: #fff;
  --side: #f0f2f4;
  font-family:
    "Figtree",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 3px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--wine);
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
p {
  line-height: 1.6;
}
h1,
h2,
h3 {
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.4px;
}
h1 {
  font-size: 25px;
}
h2 {
  font-size: 17px;
}
h3 {
  font-size: 14px;
}
.kicker {
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 600;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--side);
  border-right: 1px solid var(--line);
  padding: 27px 16px 16px;
  display: flex;
  flex-direction: column;
}
.brand {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -2px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 10px 30px;
}
.brand span {
  font-size: 9px;
  letter-spacing: 2px;
  border-left: 1px solid #bbc2c7;
  padding-left: 12px;
  font-weight: 500;
}
.workspace-label {
  font-weight: 600;
  font-size: 11px;
  padding: 12px 10px 22px;
}
.workspace-label small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  font-weight: 400;
  margin-top: 5px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.sidebar nav button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: none;
  padding: 10px 12px;
  border-radius: 4px;
  text-align: left;
  font-size: 12px;
  color: #5a636b;
}
.sidebar nav button:hover {
  background: #e6e9ec;
}
.sidebar nav button.selected {
  background: white;
  box-shadow: 0 1px 2px #25364410;
  color: var(--ink);
  font-weight: 600;
}
.sidebar nav b {
  background: #e8d7dd;
  color: var(--wine);
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 2px;
}
.ops-link {
  font-size: 11px;
  color: var(--wine);
  padding: 18px 10px;
}
.user-block {
  margin-top: auto;
  border-top: 1px solid #d9dfe3;
  display: flex;
  align-items: center;
  gap: 9px;
  padding-top: 16px;
  font-size: 11px;
}
.user-block small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
.user-block button {
  margin-left: auto;
  border: 0;
  background: none;
}
.avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #e2d4da;
  color: var(--wine);
  border-radius: 4px;
}
.utility {
  height: 61px;
  background: white;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  font-size: 10px;
  letter-spacing: 0.4px;
  color: var(--muted);
}
.slash {
  margin: 0 12px;
  color: #c1c8cd;
}
.connection {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #638875;
  margin-right: 6px;
}
.connection.offline {
  background: #bd6d35;
}
.testing {
  margin-left: 16px;
  padding: 4px 6px;
  font-size: 8px;
  border: 1px solid #d8dee3;
  border-radius: 3px;
}
.main {
  min-width: 0;
}
main {
  max-width: 1700px;
  margin: auto;
  padding: 32px;
}
.titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.title-actions {
  display: flex;
  gap: 8px;
}
.primary,
.secondary,
.text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 4px;
  padding: 9px 13px;
  font-size: 11px;
  min-height: 34px;
  white-space: nowrap;
  line-height: 1.4;
}
.primary {
  background: var(--wine);
  color: white;
  border: 1px solid var(--wine);
}
.primary:hover {
  background: #3d1015;
}
.secondary {
  background: white;
  border: 1px solid #d5dce1;
}
.secondary:hover {
  background: #f1f4f6;
}
.text {
  border: 0;
  background: transparent;
  color: #69767e;
  padding: 6px;
}
.wide {
  width: 100%;
}
.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.filters input,
.filters select {
  font-size: 11px;
  height: 34px;
  max-width: 230px;
  padding: 7px 10px;
  background: white;
  border: 1px solid #d9dfe4;
  border-radius: 4px;
}
.filters label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  margin-bottom: 25px;
}
.stats > div {
  padding: 20px 22px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child {
  border: 0;
}
.stats span {
  font-size: 11px;
  color: var(--muted);
}
.stats strong {
  display: block;
  font-size: 27px;
  letter-spacing: -0.9px;
  font-weight: 500;
  margin: 12px 0 8px;
  font-variant-numeric: tabular-nums;
}
.stats small {
  font-size: 9px;
  color: var(--muted);
}
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
th {
  font-size: 9px;
  color: #78838c;
  font-weight: 500;
  letter-spacing: 0.5px;
  background: #fafbfc;
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  white-space: nowrap;
}
td {
  padding: 15px 16px;
  border-bottom: 1px solid #e9edf0;
  font-size: 11px;
  line-height: 1.6;
  vertical-align: middle;
}
tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fafbfc;
}
td b {
  font-weight: 600;
}
td small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
td button {
  margin-right: 5px;
}
.status {
  font-size: 9px;
  padding: 4px 7px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 3px;
  background: #edf0f2;
  color: #56636c;
  border: 1px solid #e2e7eb;
}
.s-active,
.s-paid,
.s-acknowledged,
.s-confirmed,
.s-completed,
.s-sent {
  background: #eaf2ec;
  border-color: #d9e7dd;
  color: #456954;
}
.s-query,
.s-awaiting-approval,
.s-submitted,
.s-overdue,
.s-pending {
  background: #f8f0df;
  border-color: #eee2c6;
  color: #8b6c31;
}
.s-cancelled,
.s-rejected,
.s-failed,
.s-inactive {
  background: #f5e8eb;
  border-color: #ebd8de;
  color: #97475e;
}
.brand-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-cell img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.brand-initial {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: #f1f3f5;
  border: 1px solid #e2e6e9;
  border-radius: 3px;
  font: 15px var(--serif);
}
.notice {
  background: #edf1f4;
  border: 1px solid #dce3e9;
  border-left: 3px solid #a9bac6;
  padding: 13px 16px;
  font-size: 11px;
  color: #586872;
  line-height: 1.7;
  margin: 0 0 20px;
  border-radius: 3px;
}
.overview-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 22px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 20px;
  min-width: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.panel .table-wrap {
  border: 0;
}
.panel td,
.panel th {
  padding: 12px 8px;
}
.activity {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid #e8edf0;
  padding: 15px 0;
  font-size: 11px;
  line-height: 1.7;
}
.activity i {
  width: 5px;
  height: 5px;
  background: var(--wine);
  border-radius: 50%;
  margin-top: 7px;
  flex: none;
}
.activity small {
  display: block;
  font-size: 9px;
  color: var(--muted);
}
.empty {
  text-align: center;
  padding: 45px 22px;
  color: var(--muted);
}
.empty strong {
  font-size: 13px;
  color: #4d5b64;
  font-weight: 500;
}
.empty p {
  font-size: 11px;
  max-width: 380px;
  margin: 9px auto;
}
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 0 16px;
  font-size: 17px;
}
.section-title p,
.section-title span {
  font-size: 11px;
  color: var(--muted);
}
.main-footer {
  padding: 20px 32px;
  font-size: 9px;
  letter-spacing: 1px;
  color: #84909a;
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
}
.order-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 25px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.product {
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 20px;
}
.product h3 {
  font-size: 16px;
}
.product p {
  font-size: 11px;
  color: var(--muted);
  min-height: 35px;
}
.product > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.product b {
  font-size: 13px;
  font-weight: 500;
}
.qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.qty button {
  min-width: 30px;
  font-size: 17px;
}
.qty span {
  min-width: 25px;
  text-align: center;
  font-size: 12px;
}
.basket {
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 23px;
  align-self: start;
  position: sticky;
  top: 20px;
}
.basket label {
  margin-top: 15px;
}
.basket-lines {
  border-top: 1px solid var(--line);
  margin: 20px 0;
  padding: 12px 0;
  font-size: 11px;
}
.basket-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
label {
  font-size: 11px;
  font-weight: 500;
  display: block;
}
label input:not([type="checkbox"]),
label select,
label textarea {
  display: block;
  width: 100%;
  padding: 10px 11px;
  font-size: 12px;
  border: 1px solid #ced7dd;
  border-radius: 4px;
  background: white;
  margin-top: 7px;
  min-height: 37px;
}
.span2 {
  grid-column: span 2;
}
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}
.check input {
  accent-color: var(--wine);
}
.error {
  color: #a33751;
  font-size: 12px;
}
.scrim {
  position: fixed;
  inset: 0;
  background: #15212b60;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 18px;
}
.dialog {
  width: 720px;
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  padding: 28px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 15px 70px #14233220;
}
.dialog > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
  margin-bottom: 25px;
}
.dialog > header h2 {
  font-size: 23px;
}
.dialog > header button {
  font-size: 25px;
}
.dialog form > footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.dialog > h3 {
  margin-top: 25px;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 11px;
}
.detail-total {
  display: flex;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.detail-total strong {
  font-size: 20px;
  font-weight: 500;
}
.invoice-heading {
  display: flex;
  justify-content: space-between;
}
.invoice-heading p {
  font-size: 12px;
}
.invoice-heading small {
  font-size: 10px;
}
.event-catalog {
  border: 1px solid var(--line);
  border-radius: 4px;
  margin: 15px 0;
}
.event-catalog label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.event-catalog input {
  width: 65px !important;
  margin: 0 !important;
}
.event-catalog small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.dialog form > h3 {
  margin-top: 25px;
}
.muted {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.calendar-day {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 25px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.calendar-day > div {
  font-size: 13px;
}
.calendar-day small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 6px;
}
.calendar-event {
  display: block;
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  border-left: 3px solid var(--wine);
  background: white;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 12px;
}
.calendar-event span {
  font-size: 11px;
  color: var(--muted);
}
.calendar-event h3 {
  font-size: 17px;
  margin-top: 12px;
}
.calendar-event p,
.calendar-event div {
  font-size: 11px;
  color: var(--muted);
}
.calendar-event .status {
  margin-top: 15px;
}
.notification {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 12px;
}
.notification small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.notification.read {
  opacity: 0.65;
}
.qr-frame {
  display: flex;
  justify-content: center;
  padding: 20px;
}
.qr-frame img {
  width: 220px;
  height: 220px;
}
.signin {
  max-width: 1080px;
  margin: auto;
  padding: 40px;
  min-height: 100vh;
}
.signin .brand {
  margin: 0;
}
.signin-box {
  width: 390px;
  max-width: 100%;
  margin: 90px auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: white;
}
.signin-box h1 {
  font-size: 26px;
}
.signin-box p {
  font-size: 12px;
  color: var(--muted);
}
.signin-box label {
  margin-top: 20px;
}
.signin-box form > .primary {
  width: 100%;
  margin-top: 20px;
}
.signin-box > a {
  display: block;
  font-size: 11px;
  margin-top: 20px;
}
.signin footer {
  text-align: center;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
#os-toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #25343d;
  color: white;
  padding: 13px 20px;
  border-radius: 4px;
  box-shadow: 0 5px 25px #0002;
  opacity: 0;
  pointer-events: none;
  z-index: 30;
  font-size: 12px;
  max-width: 90vw;
}
#os-toast.show {
  opacity: 1;
}
.table-wrap a {
  color: #5a6f81;
}
.table-wrap a:hover {
  text-decoration: underline;
}
@media (min-width: 1500px) {
  main {
    padding: 38px 45px;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 10px;
  }
  .sidebar nav button {
    font-size: 11px;
    padding: 9px;
  }
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .order-layout {
    grid-template-columns: 1fr;
  }
  .basket {
    position: static;
  }
  .utility {
    padding: 0 22px;
  }
  main {
    padding: 25px 22px;
  }
  .titlebar {
    align-items: flex-start;
  }
  .title-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .stats > div {
    padding: 18px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px 14px;
    border-bottom: 1px solid var(--line);
    border-right: 0;
  }
  .sidebar .brand {
    font-size: 23px;
    margin: 0 0 14px;
  }
  .workspace-label,
  .user-block,
  .ops-link {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 5px;
  }
  .sidebar nav button {
    white-space: nowrap;
    min-height: 38px;
  }
  .utility {
    height: 45px;
    padding: 0 14px;
    font-size: 9px;
  }
  .utility .testing {
    display: none;
  }
  main {
    padding: 22px 14px;
  }
  .titlebar {
    gap: 12px;
    flex-wrap: wrap;
  }
  .titlebar h1 {
    font-size: 23px;
  }
  .title-actions {
    justify-content: flex-start;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats > div {
    padding: 16px;
    border-bottom: 1px solid var(--line);
  }
  .stats strong {
    font-size: 23px;
  }
  .stats span {
    font-size: 10px;
  }
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  .scrim {
    padding: 8px;
  }
  .dialog {
    padding: 20px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span2 {
    grid-column: auto;
  }
  .dialog form > footer {
    position: sticky;
    bottom: -20px;
    background: white;
    padding: 15px 0;
  }
  .calendar-day {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .main-footer {
    padding: 18px 14px;
    font-size: 8px;
  }
  .main-footer span {
    letter-spacing: 0;
  }
  .signin {
    padding: 25px 18px;
  }
  .signin-box {
    margin: 65px auto;
  }
  .filters input {
    max-width: 100%;
  }
  .filters label input {
    max-width: 140px;
  }
  .section-title {
    flex-wrap: wrap;
    gap: 10px;
  }
  .notification {
    align-items: flex-start;
  }
  .primary,
  .secondary {
    min-height: 38px;
  }
  td {
    white-space: normal;
    min-width: 100px;
  }
  .table-wrap {
    width: 100%;
  }
}
@media print {
  .sidebar,
  .utility,
  .filters,
  .title-actions,
  .main-footer,
  button,
  .scrim,
  #os-toast {
    display: none !important;
  }
  .shell {
    display: block;
  }
  main {
    padding: 0;
  }
  .table-wrap {
    overflow: visible;
  }
  .stats {
    break-inside: avoid;
  }
  .print-dialog #os-app {
    display: none;
  }
  .print-dialog .scrim {
    display: block !important;
    position: static;
    background: white;
    padding: 0;
  }
  .print-dialog .dialog {
    width: 100%;
    max-height: none;
    overflow: visible;
    box-shadow: none;
    border: 0;
    padding: 0;
  }
  .print-dialog .dialog > header {
    margin: 0 0 20px;
  }
  .print-dialog .detail-actions {
    display: none;
  }
  .dialog .table-wrap {
    overflow: visible;
  }
  body {
    background: white;
  }
  table {
    font-size: 10px;
  }
  tr {
    break-inside: avoid;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.12s ease;
  }
  #os-toast {
    transition: opacity 0.15s ease;
  }
}
/* SOAK.Pourtal — burgundy and cream system */
:root {
  --ink: #3d1015;
  --muted: #766a68;
  --line: #e8ddd8;
  --bg: #f7f3ea;
  --wine: #571419;
  --side: #571419;
  font-family: "Figtree", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-size: 14px;
}
.sidebar {
  background: var(--wine);
  color: #f7f3ea;
  border: 0;
  padding-top: 32px;
}
.brand {
  font-size: 27px;
  letter-spacing: -1.5px;
  gap: 0;
}
.brand span {
  font-size: 25px;
  letter-spacing: -1.5px;
  border: 0;
  padding: 0;
  font-weight: 500;
}
.sidebar .workspace-label small,
.sidebar .user-block small {
  color: #dac5bd;
}
.sidebar nav {
  gap: 3px;
}
.sidebar nav button {
  color: #eaded7;
  min-height: 42px;
  border-radius: 3px;
  font-size: 12px;
}
.sidebar nav button:hover {
  background: #ffffff10;
}
.sidebar nav button.selected {
  background: #f7f3ea;
  color: #571419;
  box-shadow: none;
}
.sidebar .ops-link {
  color: #fff2f8;
  border-top: 1px solid #ffffff22;
  margin-top: 16px;
}
.sidebar .user-block {
  border-color: #ffffff25;
}
.sidebar .user-block button {
  color: inherit;
}
.sidebar .avatar {
  background: #f7f3ea;
}
.utility {
  background: var(--bg);
  border-color: var(--line);
  height: 70px;
}
.utility .testing {
  border-color: #c9aaa2;
  color: #571419;
}
.main main {
  padding-top: 38px;
}
h1 {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -1.3px;
}
h2 {
  font-weight: 700;
}
.kicker {
  letter-spacing: 1.6px;
  font-weight: 700;
}
.titlebar {
  margin-bottom: 28px;
}
.primary {
  background: #571419;
  border-color: #571419;
}
.primary:hover {
  background: #3d1015;
}
.primary,
.secondary {
  min-height: 42px;
  padding: 11px 16px;
  font-weight: 600;
}
.secondary {
  border-color: var(--line);
}
.secondary:hover {
  background: #fff2f8;
}
.text {
  color: #571419;
}
.stats {
  border-radius: 3px;
}
.stats strong {
  font-size: 36px;
  font-weight: 700;
  color: #571419;
}
.stats > div {
  padding: 24px;
}
.panel,
.product,
.basket,
.table-wrap {
  border-radius: 3px;
}
th {
  background: #f7f3ea;
  color: #766a68;
  font-size: 10px;
  font-weight: 600;
  padding: 15px;
}
td {
  border-color: var(--line);
  padding: 17px 15px;
  font-size: 12px;
}
tbody tr:hover {
  background: #fffaf5;
}
.notice {
  background: #fff2f8;
  color: #571419;
  border-color: var(--line);
  border-left-color: #571419;
}
.signin {
  max-width: none;
  padding: 40px 6vw;
  background: #f7f3ea;
}
.signin > .brand {
  font-size: 36px;
  color: #571419;
}
.signin > .brand span {
  font-size: 36px;
}
.signin-box {
  width: 440px;
  margin: 65px auto 40px;
  padding: 38px;
  border-color: #e8ddd8;
  box-shadow: 0 12px 45px #57141908;
}
.signin-box h1 {
  font-size: 35px;
}
.signin-box label input,
.signin-box label select {
  min-height: 48px;
}
.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0;
}
.pin-keypad button {
  height: 56px;
  font-size: 20px;
  background: #f7f3ea;
  border: 1px solid #e8ddd8;
}
.pin-keypad button:hover {
  background: #fff2f8;
}
#partner-pin {
  text-align: center;
  letter-spacing: 14px;
  font-size: 28px;
}
.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.collection-card {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid #571419;
}
.glass-count {
  font-size: 40px;
  display: block;
  margin: 22px 0 10px;
}
.glass-count small {
  font-size: 12px;
  font-weight: 400;
  display: block;
  color: var(--muted);
}
.collection-clock {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  min-height: 30px;
}
.collection-card p {
  font-size: 12px;
  color: var(--muted);
}
.collection-card .kicker {
  font-size: 9px;
}
.s-overdue {
  background: #571419;
  color: #fff2f8;
  border-color: #571419;
}
.s-collection-due {
  background: #fff2f8;
  color: #571419;
}
.main-footer {
  color: #766a68;
}
.table-wrap a {
  color: #571419;
}
.dialog {
  border-radius: 4px;
}
.dialog > header h2 {
  font-weight: 700;
}
.scrim {
  background: #3d101560;
}
.brand-initial {
  background: #fff2f8;
  border-color: var(--line);
}
label input:not([type="checkbox"]),
label select,
label textarea,
.filters input,
.filters select {
  border-color: var(--line);
}
.status {
  font-weight: 600;
}
.sidebar {
  overflow-y: auto;
}
.sidebar nav {
  flex-shrink: 0;
}
@media (max-width: 700px) {
  .signin-box {
    padding: 28px;
    margin-top: 45px;
  }
  .signin > .brand,
  .signin > .brand span {
    font-size: 28px;
  }
  .sidebar {
    overflow: visible;
  }
  .sidebar .brand span {
    font-size: 23px;
  }
  .titlebar h1 {
    font-size: 28px;
  }
  .stats strong {
    font-size: 28px;
  }
  .utility {
    height: 50px;
  }
  .collection-grid {
    grid-template-columns: 1fr;
  }
  .user-block {
    display: flex;
  }
  .sidebar .user-block {
    padding-top: 10px;
    margin-top: 10px;
  }
  .main main {
    padding-top: 25px;
  }
}
.floorplan {
  position: relative;
  display: block;
  background: white;
  border: 1px solid var(--line);
}
.floorplan > img {
  width: 100%;
  display: block;
}
.floorplan > span {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #571419;
  color: white;
  padding: 7px 10px;
  border: 2px solid white;
  font-weight: 700;
  font-size: 12px;
}
.brand-cell img {
  width: 90px;
  height: 46px;
  object-fit: contain;
  background: #fff;
  padding: 6px;
  border-radius: 5px;
}

.billing-section {
  margin-top: 28px;
}
.billing-section h2 {
  margin-bottom: 12px;
}
#billing-invoices-title {
  scroll-margin-top: 16px;
}
.booking-product-group {
  margin: 10px 0;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.booking-product-group summary {
  padding: 13px 14px;
  font-weight: 700;
  cursor: pointer;
}
.booking-product-group .event-catalog {
  margin: 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.booking-product-group .event-catalog label:last-child {
  border-bottom: 0;
}
#event-form > footer {
  flex-wrap: wrap;
}
#event-form > footer .form-error {
  flex: 0 0 100%;
  margin: 0;
}
#event-form > footer .form-error:empty {
  display: none;
}
.billing-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.billing-record {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(80px, auto) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  overflow-wrap: anywhere;
}
.billing-record + .billing-record {
  border-top: 1px solid var(--line);
}
.billing-record-title small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.billing-record-amount {
  display: grid;
  justify-items: end;
  gap: 4px;
  font-variant-numeric: tabular-nums;
}
.billing-record-amount strong {
  white-space: nowrap;
}
#invoice-demo-form .form-error:empty {
  display: none;
}
@media (max-width: 480px) {
  .billing-record {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px 12px;
  }
  .billing-record > button {
    grid-column: 1 / -1;
    min-height: 44px;
  }
  .billing-record-amount {
    justify-items: end;
    text-align: right;
  }
}
@media print {
  .billing-record {
    grid-template-columns: minmax(0, 1fr) auto;
    break-inside: avoid;
  }
}

.brand-cell img[src="/brand-logos/shark.png"] {
  filter: brightness(0);
}
.partner-switch {
  margin: 0 0 20px;
  padding: 14px 0;
  border-top: 1px solid #ffffff25;
  border-bottom: 1px solid #ffffff25;
}
.partner-switch label {
  font-size: 10px;
  color: #f4d8dd;
  display: block;
  margin-bottom: 9px;
}
.partner-switch select {
  width: 100%;
  background: #fffaf6;
  color: #571419;
  border: 0;
  border-radius: 5px;
  padding: 10px 8px;
  font-size: 11px;
}
.partner-switch small {
  display: block;
  font-size: 9px;
  color: #d9b7b9;
  margin-top: 9px;
  line-height: 1.5;
}
.partner-switch button {
  font-size: 10px;
  color: white;
  margin-top: 12px;
  text-decoration: underline;
}

.floor-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.floor-tabs [aria-pressed="true"] {
  border-color: var(--wine);
  background: var(--wine);
  color: white;
}
.station-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 310px);
  align-items: start;
  gap: 20px;
}
.station-map {
  min-width: 0;
  background: #fffdf9;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.station-map-toolbar,
.station-map-zoom,
.pin-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.station-map-toolbar {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}
.station-map-zoom button {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 20px;
}
.station-map-zoom output {
  min-width: 46px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.station-map-scroll {
  max-height: min(62vh, 900px);
  overflow: auto;
  overscroll-behavior: contain;
}
.station-map-scroll:focus-visible,
.station-map-target:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: -3px;
}
.station-map-canvas {
  width: 100%;
  position: relative;
}
.station-map-canvas > img {
  width: 100%;
  height: auto;
  display: block;
}
.station-map-target {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: crosshair;
}
.station-map-pin {
  position: absolute;
  display: grid;
  place-items: center;
  z-index: 1;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
}
.station-map-pin::after {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--wine);
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--wine);
}
.station-map-pin.is-selected::after,
.station-pin-preview::after {
  width: 18px;
  height: 18px;
  box-shadow:
    0 0 0 2px var(--wine),
    0 0 0 5px #74223a45;
}
.station-pin-preview {
  pointer-events: none;
}
.station-pin-preview[hidden] {
  display: none;
}
.station-panel {
  padding: 18px;
  min-width: 0;
}
.station-details {
  padding-bottom: 14px;
}
.station-code {
  display: inline-block;
  color: var(--wine);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.station-details h2,
.station-details p {
  overflow-wrap: anywhere;
}
.station-details p {
  margin: 6px 0;
  color: var(--muted);
}
.station-details small {
  color: var(--muted);
}
.station-details .detail-actions {
  margin-top: 14px;
}
.station-panel > h3 {
  margin: 14px 0 8px;
}
.station-list {
  display: grid;
  gap: 4px;
}
.station-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  padding: 10px;
  min-height: 49px;
  gap: 10px;
  border: 1px solid transparent;
  border-top-color: var(--line);
  background: transparent;
}
.station-list-item:hover,
.station-list-item[aria-pressed="true"] {
  background: #fff3f0;
  border-color: #d6b3ad;
  border-radius: 4px;
}
.station-list-item small,
.station-identity small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}
.station-editor-dialog {
  width: min(100%, 890px);
}
.station-pin-editor {
  min-width: 0;
}
.station-pin-editor .station-map-scroll {
  max-height: 48vh;
}
.pin-instructions {
  color: var(--muted);
  margin: 0 0 8px;
}
.pin-footer {
  padding-top: 8px;
}
.station-qr-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 330px);
  margin: 0 auto;
  padding: 20px;
  color: var(--wine);
  background: #fff;
  text-align: center;
}
.station-sign-brand {
  font-size: 23px;
  font-weight: 900;
  letter-spacing: -0.03em;
}
.station-sign-brand > span {
  font-weight: 500;
}
.station-qr-card h3 {
  font-size: 20px;
  margin: 9px 0 0;
}
.station-qr-card img {
  width: min(100%, 224px);
  height: auto;
}
.station-qr-card strong,
.station-qr-card small {
  overflow-wrap: anywhere;
}
.station-qr-card strong {
  font-size: 19px;
}
.station-sign-id {
  font-size: 13px;
  margin-top: 4px;
}
.station-qr-card small {
  margin-top: 8px;
  color: var(--muted);
}
.station-qr-controls {
  margin-top: 16px;
}
.station-qr-controls p {
  color: var(--muted);
}
.counter-mobile-basket {
  display: none;
}
.counter-delivery {
  display: grid;
  gap: 4px;
  margin: 16px 0 0;
}
.counter-delivery small {
  color: var(--muted);
  font-size: 11px;
}
.counter-delivery b {
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.counter-funding-summary {
  margin: 14px 0;
  padding: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.counter-funding-summary div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  padding: 4px 0;
  font-size: 12px;
}
.counter-funding-summary dt {
  color: var(--muted);
}
.counter-funding-summary dd {
  margin: 0;
  font-weight: 600;
}
[data-counter-warning][hidden] {
  display: none;
}
.counter-receipt {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: start;
  gap: 10px 18px;
  margin-bottom: 16px;
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
}
.counter-receipt p {
  margin: 4px 0 0;
  color: var(--muted);
}
.user-stations {
  margin: 12px 0 0;
  padding: 6px 12px;
  min-inline-size: 0;
  border: 1px solid var(--line);
}
.user-stations legend {
  font-size: 11px;
  font-weight: 600;
}
.user-stations label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.user-stations input {
  flex: none;
}
@media (max-width: 1020px) {
  .station-workspace {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .station-map-scroll {
    max-height: 58vh;
  }
  .station-map-pin {
    width: 44px;
    height: 44px;
  }
  .floor-tabs > button,
  .station-panel .detail-actions > button {
    min-height: 44px;
  }
  .station-editor-dialog {
    padding: 16px;
  }
  .station-editor-dialog .station-pin-editor .station-map-scroll {
    max-height: 45vh;
  }
  .order-layout .qty .text {
    min-width: 44px;
    min-height: 44px;
  }
  .order-layout:has(.counter-mobile-basket) {
    padding-bottom: 64px;
  }
  .counter-mobile-basket {
    position: fixed;
    z-index: 8;
    inset: auto 0 0;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: #fffaf6;
    display: block;
  }
  .counter-mobile-basket .primary {
    width: 100%;
    min-height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}
@media print {
  .print-station {
    background: white;
  }
  .print-station #os-app,
  .print-station .dialog > header,
  .print-station .station-qr-controls {
    display: none !important;
  }
  .print-station .scrim {
    display: block !important;
    position: static;
    background: white;
    padding: 0;
  }
  .print-station .dialog {
    width: auto;
    max-height: none;
    overflow: visible;
    padding: 0;
    box-shadow: none;
    border: 0;
  }
  .print-station .station-qr-card {
    width: 90mm;
    max-width: 100%;
    margin: 6mm auto;
    color: black;
    break-inside: avoid;
  }
  .print-station .station-qr-card img {
    width: 54mm;
    height: 54mm;
  }
}
.station-map-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: -6px 0 17px;
  color: var(--muted);
}
.station-map-summary strong {
  color: var(--ink);
}
.station-map-pin.is-draft::after {
  background: #8a5414;
  box-shadow: 0 0 0 1px #8a5414;
}
.station-map-pin.is-draft.is-selected::after {
  box-shadow:
    0 0 0 2px #8a5414,
    0 0 0 5px #8a541440;
}
.station-review-note {
  margin-top: 12px;
  padding: 10px 12px;
  border-left: 3px solid #a6712f;
  background: #fbf0e2;
}
.station-review-note.confirmed {
  border-color: #50734f;
  background: #edf2e9;
}
.station-review-note p {
  margin-bottom: 0;
}
.station-point-list {
  padding: 0;
  list-style: none;
}
.station-point-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.station-point-list small,
.station-search {
  display: block;
}
.station-search input {
  box-sizing: border-box;
  width: 100%;
}
.station-list-item[hidden] {
  display: none;
}
.station-review-panel ul {
  padding: 0;
  list-style: none;
}
.station-review-panel li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.station-review-panel li button {
  padding: 0;
  font-weight: 700;
}
.station-review-panel li p {
  margin: 4px 0 0;
}
.catalogue-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.catalogue-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.catalogue-description > div,
.catalogue-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.catalogue-description h2 {
  font-size: 15px;
}
.catalogue-description small,
.catalogue-description p {
  color: var(--muted);
}
.catalogue-description small {
  display: block;
  margin-top: 4px;
}
.catalogue-description p {
  margin: 5px 0 0;
}
.catalogue-description .s-available {
  background: #eaf2ec;
  border-color: #d9e7dd;
  color: #456954;
}
.catalogue-description .s-sold-out {
  background: #f8f0df;
  border-color: #eee2c6;
  color: #74551e;
}
.catalogue-description .s-featured {
  background: #f7e9ec;
  border-color: #e8cfd5;
  color: var(--wine);
}
.catalogue-editor-details {
  border-top: 1px solid var(--line);
}
.catalogue-editor-details > summary {
  display: list-item;
  min-height: 44px;
  padding: 12px 0;
  color: var(--wine);
  font-weight: 600;
  cursor: pointer;
}
.catalogue-editor-details[open] > summary {
  margin-bottom: 8px;
}
@media (max-width: 760px) {
  .catalogue-item {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .catalogue-actions > button {
    min-height: 44px;
  }
}

.collection-card .s-approaching,
.collection-card .s-collection-requested {
  background: #f8f0df;
  border-color: #eee2c6;
  color: #805019;
}
.collection-card .s-snoozed {
  background: #f0ebe8;
  border-color: var(--line);
  color: var(--muted);
}

.signin.workspace-launch {
  padding-inline: max(18px, 6vw);
}
.workspace-status h1 {
  font-size: clamp(23px, 5vw, 32px);
}
.workspace-status .primary {
  min-height: 44px;
}
.load-spinner {
  display: inline-block;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  margin-bottom: 9px;
  border: 2px solid currentColor;
  border-inline-start-color: transparent;
  border-radius: 50%;
  color: var(--wine);
}
.load-spinner.inline {
  width: 15px;
  height: 15px;
  margin: 0;
  color: inherit;
}
@media (prefers-reduced-motion: no-preference) {
  .load-spinner {
    animation: loading-spin 0.75s linear infinite;
  }
  @keyframes loading-spin {
    to {
      transform: rotate(360deg);
    }
  }
}
.workspace-connection {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}
.workspace-connection [data-act="workspace-retry"][hidden] {
  display: none;
}
.workspace-connection [data-act="workspace-retry"] {
  min-height: 44px;
}

/* Keep long customer and booking names inside the current panel. */
.main,
.dialog,
.workspace-label,
.user-block {
  overflow-wrap: anywhere;
}
:is(.overview-grid, .stats, .calendar-day, .billing-record, .notification, .form-grid) > * {
  min-width: 0;
}
:is(.form-grid, .signin-box) :is(input:not([type="checkbox"]), select, textarea),
.filters :is(input, select) {
  min-width: 0;
  max-width: 100%;
}
.dialog > header > :first-child {
  min-width: 0;
}
.dialog > header > button {
  flex: 0 0 auto;
}
.notification > button,
.billing-record > button {
  align-self: start;
}
.sidebar-heading .mobile-signout {
  display: none;
}
.record-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 10px 0 18px;
  color: var(--muted);
}
.record-pages > div {
  display: flex;
  gap: 6px;
}
.record-pages button:disabled {
  cursor: default;
}
@media screen {
  body.portal-dialog-open {
    overflow: hidden;
  }
}
@media (max-width: 700px) {
  .sidebar {
    padding-top: max(16px, env(safe-area-inset-top));
    padding-inline: max(14px, env(safe-area-inset-left)) max(14px, env(safe-area-inset-right));
  }
  .sidebar nav {
    padding: 2px 2px 8px;
    scrollbar-width: thin;
    scrollbar-color: #e1b6bb transparent;
  }
  .sidebar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
  }
  .sidebar-heading .brand {
    margin: 0;
  }
  .sidebar-heading .mobile-signout {
    display: inline-flex;
    min-height: 44px;
    color: inherit;
  }
  .sidebar .user-block [data-act="logout"] {
    display: none;
  }
  .sidebar nav button,
  .sidebar .user-block button,
  .title-actions :is(.primary, .secondary),
  .dialog button,
  .record-pages button,
  .filters :is(button, input, select) {
    min-height: 44px;
  }
  .utility {
    height: auto;
    min-height: 50px;
    gap: 6px;
  }
  .utility > span {
    overflow-wrap: anywhere;
  }
  .utility .workspace-connection {
    flex-wrap: wrap;
    gap: 0 4px;
  }
  .filters :is(input, select),
  :is(.signin-box, .dialog) label :is(input:not([type="checkbox"]), select, textarea) {
    min-height: 44px;
    font-size: 16px;
  }
}

/* Counter ordering: categories, compact menu and customisation */
.counter-categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.counter-categories button {
  border: 1px solid var(--line, #e7e2da);
  background: #fffdf9;
  border-radius: 999px;
  padding: 8px 16px;
  min-height: 40px;
  cursor: pointer;
}
.counter-categories button.selected {
  background: #571419;
  border-color: #571419;
  color: #fff;
}
.counter-menu .product .qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.counter-menu .in-order,
.customise-form .in-order {
  font-size: 12px;
  font-weight: 600;
  color: #571419;
  background: #fff2f8;
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}
.basket-line {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}
.basket-line .qty {
  display: flex;
  align-items: center;
  gap: 6px;
}
.basket-line .qty button {
  min-width: 36px;
  min-height: 36px;
}
.item-detail {
  display: block;
  color: #6f6862;
  font-size: 0.86em;
  line-height: 1.4;
  margin-top: 2px;
  font-weight: 400;
}
.customise-form {
  display: grid;
  gap: 14px;
  padding: 4px 0;
}
.customise-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.option-group {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.option-group legend {
  font-weight: 700;
  color: #571419;
  margin-bottom: 6px;
  display: flex;
  gap: 8px;
  align-items: baseline;
  padding: 0;
}
.option-group legend small {
  color: #6f6862;
  font-weight: 400;
}
.option-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #e7e2da;
  border-radius: 12px;
  background: #fffdf9;
  cursor: pointer;
}
.option-choice:has(input:checked) {
  border-color: #571419;
  background: #fff2f8;
  box-shadow: inset 0 0 0 1px #571419;
}
.option-choice input {
  accent-color: #571419;
  width: 18px;
  height: 18px;
  margin: 0;
}
.option-choice span {
  flex: 1;
}
.option-choice b {
  color: #571419;
  font-weight: 600;
}
.custom-qty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-size: 18px;
  font-weight: 600;
}
.custom-qty .icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid #d8c4c4;
  background: #fffdf9;
  color: #571419;
  font-size: 20px;
}
.custom-qty .icon-btn:disabled {
  opacity: 0.4;
}
.counter-menu .product {
  padding: 14px 16px;
  min-height: 0;
  gap: 4px;
}
.counter-menu .product p {
  margin: 2px 0 8px;
}
.counter-menu .product h3 {
  margin: 2px 0 0;
}
@media (max-width: 700px) {
  .counter-categories {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -4px;
    padding: 0 4px 4px;
  }
  .counter-categories button {
    flex: none;
  }
}
.counter-menu .product p {
  min-height: 0;
}
.counter-menu .product > div {
  margin-top: 6px;
}
.sidebar nav .nav-group {
  display: block;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin: 16px 12px 4px;
}
.sidebar nav .nav-group:first-child {
  margin-top: 4px;
}
@media (max-width: 700px) {
  .sidebar nav .nav-group {
    display: none;
  }
}
.today-strip {
  margin-bottom: 18px;
}
.today-strip > .kicker {
  display: block;
  margin-bottom: 8px;
}

/* Standard options */
.standard-options-panel {
  margin-bottom: 18px;
}
.standard-options-panel .panel-head {
  align-items: flex-start;
  gap: 16px;
}
.standard-options-panel .panel-head p {
  margin: 4px 0 0;
}
.standard-option-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.standard-option-list li {
  border: 1px solid #e7e2da;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  gap: 2px;
  background: #fffdf9;
}
.standard-option-list span {
  color: #302c2a;
}
.standard-option-list small {
  color: #6f6862;
}
.catalogue-options {
  display: block;
  color: var(--wine);
  margin-top: 4px;
}
.standard-option-picker {
  border: 1px solid #e0e4e7;
  border-radius: 10px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 16px;
}
.standard-option-picker legend {
  font-weight: 600;
  padding: 0 4px;
}
.standard-option-picker .check span small {
  display: block;
  color: #646b71;
  font-size: 11px;
}
.library-form {
  display: grid;
  gap: 12px;
}
.library-form footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.library-row {
  border: 1px solid #e0e4e7;
  border-radius: 10px;
  padding: 12px;
  margin: 0 0 10px;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(220px, 2fr);
  gap: 8px 12px;
  align-items: end;
}
.library-row label {
  display: grid;
  gap: 4px;
}
.library-row .library-choices small {
  color: #646b71;
  font-weight: 400;
}
.library-row .check,
.library-row [data-act="library-remove"] {
  align-self: center;
}
.library-row [data-act="library-remove"] {
  justify-self: end;
}
@media (max-width: 600px) {
  .library-row {
    grid-template-columns: 1fr;
  }
}
.library-row label.check {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 1;
}
.library-row label.check input {
  margin: 0;
}
/* Option choices as wrapping tap-chips */
.option-group.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.option-group.chips legend {
  width: 100%;
}
.option-group.chips .option-choice {
  position: relative;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: 999px;
  gap: 6px;
  flex: 0 1 auto;
}
.option-group.chips .option-choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}
.option-group.chips .option-choice span {
  flex: none;
}
.option-group.chips .option-choice:has(input:checked) span {
  font-weight: 600;
}
.option-group.chips .option-choice:has(input[type="checkbox"]:checked)::before {
  content: "✓";
  color: #571419;
  font-weight: 700;
}
.option-choice:has(input:focus-visible) {
  outline: 2px solid #571419;
  outline-offset: 2px;
}
.pairing-picker {
  border: 1px solid #e0e4e7;
  border-radius: 10px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 16px;
}
.pairing-picker legend {
  font-weight: 600;
  padding: 0 4px;
}
.pairing-picker legend small {
  font-weight: 400;
  color: #646b71;
}
.workspace-crash {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.workspace-crash h1 {
  margin: 0;
  color: #571419;
}

/* Go-live checklist */
.readiness-panel {
  margin-bottom: 18px;
}
.readiness-panel .panel-head {
  align-items: flex-start;
  gap: 16px;
}
.readiness-panel .panel-head p {
  margin: 4px 0 0;
}
.readiness-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.readiness-group h3 {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #646b71;
  margin: 16px 0 6px;
}
.readiness-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.readiness-group li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid #e0e4e7;
  border-radius: 10px;
  background: #fff;
}
.readiness-group li b {
  display: block;
}
.readiness-group li small {
  color: #646b71;
}
.readiness-mark {
  flex: none;
  min-width: 64px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.readiness-ok .readiness-mark {
  background: #e3ebe4;
  color: #3f5d4b;
}
.readiness-warn .readiness-mark {
  background: #fbefd9;
  color: #6b4a14;
}
.readiness-missing .readiness-mark {
  background: #fbe4dc;
  color: #8a3418;
}

/* Print all QR cards: A4, four cards per page with dashed cut lines */
#qr-sheet {
  display: none;
}
@media print {
  body.print-qr-sheet > *:not(#qr-sheet) {
    display: none !important;
  }
  body.print-qr-sheet #qr-sheet {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 132mm;
    gap: 0;
  }
  body.print-qr-sheet {
    background: #fff;
  }
  .qr-sheet-card {
    break-inside: avoid;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px dashed #b9b0aa;
    padding: 8mm;
    color: #571419;
    font-family: inherit;
  }
  .qr-sheet-card h3 {
    font-size: 15pt;
    margin: 3mm 0 2mm;
  }
  .qr-sheet-card img {
    width: 62mm;
    height: 62mm;
  }
  .qr-sheet-card strong {
    font-size: 15pt;
    margin-top: 3mm;
    overflow-wrap: anywhere;
  }
  .qr-sheet-card .station-sign-id {
    font-size: 10pt;
    margin-top: 1mm;
  }
  .qr-sheet-card small {
    font-size: 9pt;
    margin-top: 2mm;
    color: #6d625c;
  }
  body.print-qr-sheet .qr-sheet-card:nth-child(4n) {
    break-after: page;
  }
}
@page {
  size: A4;
  margin: 10mm;
}
@media print {
  html:has(body.print-qr-sheet) {
    background: #fff;
  }
}

/* Daily close */
.daily-close .panel-head {
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.daily-close .panel-head h2 {
  margin: 4px 0 0;
}
.daily-close .stats {
  margin-bottom: 12px;
}
.daily-close h3 {
  margin: 0 0 8px;
  font-size: 14px;
}
.close-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
}
.close-list li span {
  display: inline-block;
  min-width: 60%;
}
.close-list li b {
  float: right;
  font-weight: 600;
}
@media print {
  .daily-close .title-actions {
    display: none;
  }
}

/* Phones and tablets first: no iOS zoom when a field is tapped (Safari zooms into any field under 16px),
   and thumb-sized pickers on the staff sign-in. */
@media (pointer: coarse) {
  /* :is() takes its strongest selector's weight, so this also beats rules such as "label select". */
  :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) {
    font-size: 16px;
  }
  select {
    min-height: 44px;
  }
}
