/*
 * KOrder styles · public/css/02-tablet.css
 * Guest tablet: layout, brand bar, mode / service / table pickers.
 *
 * public/css/*.css used to be one public/styles.css. The files are cut from it in order
 * and index.html loads them in that same order, which is the CSS cascade order: do not
 * reorder the <link> tags, and add a rule to the file that owns its screen.
 * Map: public/css/README.md
 */
.tablet-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
  gap: 18px;
  max-width: 1380px;
  margin: 0 auto;
}

.tablet-app {
  min-height: 100vh;
  background: #f4f1eb;
  -webkit-font-smoothing: subpixel-antialiased;
  text-rendering: geometricPrecision;
}

.tablet-main {
  min-height: 100vh;
  padding: 0;
}

.tablet-shell {
  min-height: 100vh;
  background: #f4f1eb;
}

.tablet-top {
  position: sticky;
  top: 0;
  z-index: 15;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(240px, 1fr);
  min-height: 74px;
  align-items: center;
  gap: 18px;
  padding: 10px 16px;
  color: #fff;
  background: #141414;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.tablet-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  min-width: 0;
}

.tablet-brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 10px;
  color: #fff;
  background: var(--coral);
  font-size: 22px;
  font-weight: 900;
}

.tablet-brand h1 {
  margin: 0;
  font-size: 22px;
}

.tablet-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.tablet-actions,
.tablet-mode-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tablet-mode-group {
  justify-self: center;
}

.tablet-service {
  justify-self: end;
  min-width: 0;
}

.hub-status {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
  white-space: nowrap;
}

.hub-status.hub-indicator {
  width: 22px;
  min-width: 22px;
  height: 22px;
  min-height: 22px;
  padding: 0;
  border-width: 2px;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.1);
}

.hub-status.done {
  border-color: rgba(15, 137, 126, 0.8);
  background: #0f897e;
}

.hub-status.warn {
  border-color: rgba(226, 82, 62, 0.8);
  background: #e2523e;
}

.hub-status.searching {
  border-color: rgba(245, 166, 35, 0.8);
  background: #9f6b12;
}

.tablet-actions .tablet-segmented {
  gap: 4px;
  padding: 4px;
  border-color: rgba(255, 255, 255, 0.2);
  background: #eee7db;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.08);
}

.tablet-mode-group .tablet-segmented {
  gap: 4px;
  padding: 4px;
  border-color: rgba(255, 255, 255, 0.2);
  background: #eee7db;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0.08);
}

.tablet-actions .tablet-segmented .segment,
.tablet-mode-group .tablet-segmented .segment {
  min-width: 132px;
  min-height: 56px;
  padding: 0 24px;
  border-radius: 6px;
  color: #5b5248;
  font-size: 20px;
  font-weight: 800;
  line-height: normal;
}

.tablet-actions .tablet-segmented .segment.active,
.tablet-mode-group .tablet-segmented .segment.active {
  color: #111;
  background: #fff;
  box-shadow: 0 4px 12px rgba(23, 23, 23, 0.1);
}

.tablet-service .table-controls {
  grid-template-columns: minmax(132px, 156px) minmax(126px, 146px);
}

.tablet-service .field,
.tablet-service .select,
.fixed-table-field {
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 900;
}

/* Android WebView ignores option colors in its picker, so the "●" label carries this too. */
.tablet-table-select option.table-option-open {
  color: #b23a26;
  background: #ffe6df;
  font-weight: 800;
}

.tablet-table-select {
  font-weight: 900;
}

.fixed-table-field {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.tablet-service .field::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.tablet-service .select option {
  color: var(--ink);
}

.cart-count {
  display: grid;
  min-width: 86px;
  height: 42px;
  padding: 0 14px;
  place-items: center;
  border-radius: 999px;
  color: #111;
  background: #fff;
  font-weight: 900;
  white-space: nowrap;
}
