:root {
  --os-accent: #72bcd4;
  --os-accent-strong: #3a9fbf;
  --os-bg: #e8f4f8;
  --os-panel: #ffffff;
  --os-text: #111111;
  --os-muted: #666666;
  --os-border: #d3d3d3;
  --os-danger: #d11d54;
  --os-danger-soft: #f097b2;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

* { box-sizing: border-box; }

.os-page {
  margin: 0;
  min-height: 100vh;
  background: var(--os-bg);
  color: var(--os-text);
  font-family: Arial, Helvetica, sans-serif;
}

.os-shell {
  min-height: 100vh;
}

.os-print-frame {
  display: none !important;
}

.os-root {
  position: relative;
  z-index: 0;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

.os-watermark {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: grid;
  place-content: center;
  justify-items: center;
  pointer-events: none;
  opacity: 0.18;
}

.os-watermark__main {
  max-width: min(70vw, 850px);
  max-height: 62vh;
  object-fit: contain;
}

.os-watermark__main.is-tillcraft {
  max-width: min(42vw, 440px);
  max-height: 34vh;
  transform: translateY(5vh);
}

.os-watermark__tc {
  width: auto;
  max-width: min(20vw, 180px);
  max-height: 72px;
  margin-top: 36px;
  object-fit: contain;
  opacity: 0.72;
}

.os-tabs {
  display: inline-flex;
  width: 100%;
  gap: 0;
  padding: 8px;
  overflow-x: auto;
  background: #ffffff;
  white-space: nowrap;
}

.os-tabs button,
.os-nav-link {
  display: inline-grid;
  place-items: center;
  align-content: center;
  min-width: 150px;
  height: 66px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.os-tabs button img,
.os-nav-link img {
  display: block;
  width: auto;
  height: 36px;
  margin: 0 auto 3px;
  object-fit: contain;
}

.os-view-icon {
  position: relative;
  display: block;
  height: 39px;
}

.os-view-icon__back {
  position: absolute;
  left: -8px;
  top: 80%;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  color: currentColor;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .22);
}

.os-tabs button.is-active {
  border-radius: 12px;
  background: #f0f0f0;
  color: var(--os-accent);
}

.os-nav-link:hover {
  color: var(--os-accent);
}

.os-slideout-icon {
  position: fixed;
  right: 20px;
  z-index: 1000;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.os-slideout-icon.unpaid {
  top: 20%;
  background: var(--os-danger);
}

.os-slideout-icon.offline {
  top: 30%;
  background: #f0ad4e;
}

.os-slideout-icon.delivery {
  top: 40%;
  background: darkorange;
}

.os-slideout-icon.is-open {
  right: 440px;
}

.os-slideout-icon em {
  position: absolute;
  top: -6px;
  right: -4px;
  min-width: 22px;
  height: 22px;
  padding: 0 4px;
  border-radius: 11px;
  background: #ffffff;
  color: #333333;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  line-height: 22px;
}

.os-slideout-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 999;
  width: 430px;
  max-width: calc(100vw - 60px);
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  background: #f9f9f9;
  box-shadow: -2px 0 6px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
}

.os-slideout-panel.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.os-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 700;
}

.os-panel-header button {
  border: 0;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}

.os-panel-content table {
  width: 100%;
  border-collapse: collapse;
}

.os-panel-content th,
.os-panel-content td {
  padding: 8px;
  border-bottom: 1px solid #cccccc;
  text-align: left;
  font-size: 13px;
}

.os-panel-empty,
.os-panel-link,
.os-delivery-list-card p {
  color: #666666;
  font-size: 13px;
}

.os-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.os-panel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 0;
  border-radius: 6px;
  background: #5bc0de;
  color: #ffffff;
  padding: 6px 10px;
  text-decoration: none;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.os-panel-btn.is-danger {
  background: var(--os-danger);
  color: #ffffff;
}

.os-panel-btn.is-link {
  background: #f0f0f0;
  color: #333333;
}

.os-delivery-list-card {
  padding: 12px 0;
  border-bottom: 1px solid #dddddd;
}

.os-delivery-acceptance {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  background: rgba(0, 0, 0, 0.58);
}

.os-delivery-dialog {
  width: min(680px, 100%);
  max-height: min(760px, calc(100vh - 44px));
  overflow-y: auto;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
  padding: 20px;
}

.os-delivery-dialog h2 {
  margin: 0 0 6px;
  font-size: 24px;
}

.os-delivery-dialog > p {
  margin: 0 0 16px;
  color: #666666;
  font-size: 13px;
}

.os-delivery-card {
  margin-bottom: 12px;
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 14px;
}

.os-delivery-card > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.os-delivery-card p {
  color: #555555;
  font-size: 13px;
  line-height: 1.45;
}

.os-message,
.os-loading,
.os-empty {
  margin: 10px;
  border: 1px solid var(--os-border);
  border-radius: 10px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--os-muted);
  font-weight: 700;
}

.os-message.is-ok {
  color: #2e8b57;
}

.os-message.is-error {
  border-color: var(--os-danger);
  color: var(--os-danger);
}

.os-grid {
  display: block;
  padding: 0;
}

.os-card {
  float: left;
  width: 250px;
  margin: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s;
}

.os-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.os-card.is-unpaid {
  border: 4px solid var(--os-danger);
}

.os-card.is-takeaway .os-card__time {
  background: var(--os-accent-strong);
  color: #ffffff;
}

.os-card__time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 8px;
  min-height: 50px;
  padding: 13px 15px 8px;
}

.os-card__ordered-time {
  display: block;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.15;
}

.os-card__elapsed-time {
  display: grid;
  justify-items: end;
  min-width: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.os-card__elapsed-time b,
.os-card__elapsed-time small {
  display: block;
  font-weight: 400;
}

.os-card__elapsed-time b { font-size: 16px; line-height: 1; }
.os-card__elapsed-time small { font-size: 10px; line-height: 1.1; }

.os-card__time-select {
  grid-column: 1 / -1;
  width: 100%;
  height: 35px;
  margin-top: 5px;
  border: 1px solid var(--os-border) !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: var(--os-text) !important;
}

.os-card__selectors {
  display: grid;
  gap: 6px;
  padding: 0 12px 10px;
  border-bottom: 1px solid #d3d3d3;
}

.os-card__selectors label {
  display: grid;
  gap: 3px;
}

.os-card__selectors span {
  color: var(--os-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.os-card select {
  width: 100%;
  height: 35px;
  border: 0;
  border-radius: 10px;
  background: #f0f0f0;
  color: var(--os-text);
  font: inherit;
  font-size: 12px;
  text-align: center;
  outline: none;
}

.os-card select:focus-visible {
  box-shadow: 0 0 0 2px rgba(84, 202, 231, 0.45);
}

.os-card__selectors label:nth-child(2) select {
  border: 1px solid #777777;
  background: #ffffff;
}

.os-card__items {
  display: block;
  min-height: 200px;
  padding: 14px 30px;
}

.os-customer {
  margin-bottom: 8px;
  color: var(--os-accent-strong);
  font-weight: 700;
}

.os-item {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--os-text);
  padding: 4px 0;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.os-item.is-complete {
  color: var(--os-text);
  text-decoration: line-through;
}

.os-item__primary,
.os-item__modifier {
  display: block;
}

.os-item__primary strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
}

.os-item__modifier {
  padding-left: 25px;
  color: #333333;
  font-size: 13px;
}

.os-item__description {
  display: block;
  width: fit-content;
  margin-top: 2px;
  background: #f9f9f9;
  font-style: italic;
  font-weight: 400;
}

.os-item em {
  display: block;
  padding-left: 15px;
  color: var(--os-danger);
  font-style: italic;
  font-weight: 400;
}

.os-course {
  margin-top: 8px;
  padding-top: 4px;
  border-top: 2px solid #cfe3ea;
}

.os-course:first-child {
  margin-top: 0;
  border-top: 0;
}

.os-course.is-held {
  opacity: 0.55;
  filter: grayscale(35%);
}

.os-course__head {
  margin-bottom: 4px;
  border-radius: 4px;
  background: #e8f4f8;
  color: #2b6b82;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.os-course__head em {
  float: right;
  color: #9a5b1c;
  font-size: 11px;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
}

.os-card__foot {
  display: grid;
  gap: 8px;
  padding: 0 14px 12px;
}

.os-payment {
  min-height: 26px;
  border-radius: 10px;
  background: var(--os-danger);
  color: var(--os-danger-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 26px;
  text-align: center;
}

.is-paid .os-payment {
  background: #f0f0f0;
  color: #848484;
}

.os-staff {
  color: var(--os-muted);
  font-size: 12px;
  font-weight: 700;
}

.os-btn {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 10px;
  background: #5bc0de;
  color: #ffffff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}

.os-btn.is-warn {
  background: #fff3e0;
  color: #b5651d;
  border: 1px solid #e0b079;
}

.os-read-only-notice {
  margin: 10px 14px 0;
  padding: 10px 14px;
  border: 1px solid #9fdceb;
  border-radius: 6px;
  background: #e8f8fc;
  color: #185f70;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.os-root.is-read-only .os-grid button,
.os-root.is-read-only .os-grid select,
.os-root.is-read-only .os-slideout button,
.os-root.is-read-only .os-slideout select {
  pointer-events: none;
  opacity: 0.62;
}

.os-alert-overlay{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;padding:20px;background:rgba(0,0,0,.65)}
.os-alert-box{width:min(420px,100%);padding:28px;border-radius:10px;background:#fff;color:#151a1d;box-shadow:0 12px 40px rgba(0,0,0,.4);text-align:center}
.os-alert-box p{margin:0;font-size:24px;line-height:1.3}
.os-alert-box button{width:100%;min-height:52px;margin-top:22px;border:0;border-radius:6px;background:#e75480;color:#570c23;font:inherit;font-size:18px;font-weight:700;cursor:pointer}

@media (max-width: 720px) {
  .os-tabs button,
  .os-nav-link {
    min-width: 122px;
  }

  .os-card {
    float: none;
    width: auto;
  }
}
