/*
 * Valenzo POS v173 — Occupancy-first service command board
 * Active service is prominent; available tables remain compact. The v172
 * Service Radar keeps its operational layout while following the active POS palette.
 */

.table-workspace-v173 {
  --tv173-bg: #e8edf3;
  --tv173-surface: #ffffff;
  --tv173-surface-soft: #f5f7fa;
  --tv173-surface-strong: #edf1f5;
  --tv173-line: #d4dde7;
  --tv173-line-strong: #bdc9d6;
  --tv173-text: #132033;
  --tv173-muted: #66768b;
  --tv173-faint: #8a98aa;
  --tv173-navy: #091625;
  --tv173-ink: #060d16;
  --tv173-blue: #3157d5;
  --tv173-green: #13805f;
  --tv173-green-soft: #e9f7f1;
  --tv173-gold: #c08a32;
  --tv173-amber: #d87b1b;
  --tv173-amber-soft: #fff3df;
  --tv173-danger: #c9563e;
  --tv173-shadow: 0 5px 15px rgba(20, 32, 49, .055);
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100dvh !important;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--tv173-bg);
  color: var(--tv173-text);
  color-scheme: light;
  font-family: Inter, Manrope, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Masa ekranında yalnız hata/müdahale durumları görünür; sağlıklı kayıt bildirimi akışı kapatmaz. */
body.table-service-mode .reliability134-sync-indicator:is([data-phase="saving"], [data-phase="synced"]) {
  display: none !important;
}

.table-workspace-v173,
.table-workspace-v173 *,
.table-workspace-v173 *::before,
.table-workspace-v173 *::after {
  box-sizing: border-box;
}

.table-workspace-v173[hidden],
.table-workspace-v173 [hidden] {
  display: none !important;
}

.table-workspace-v173 :is(button, input, select) {
  font: inherit;
}

.table-workspace-v173 :is(button, [role="button"]) {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.table-workspace-v173.tv173-shell,
.table-workspace-v173 .tv173-shell {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--tv173-bg);
  color: var(--tv173-text);
}

/* Valenzo identity remains fixed even when the working surface is light. */
.table-workspace-v173 .tv173-topbar {
  position: relative;
  z-index: 20;
  display: flex;
  width: 100%;
  min-width: 0;
  height: 58px;
  min-height: 58px;
  flex: 0 0 58px;
  align-items: center;
  gap: 9px;
  padding: 6px clamp(12px, 1.45vw, 22px);
  border: 0 !important;
  border-bottom: 1px solid #263548 !important;
  background: var(--tv173-navy) !important;
  color: #f4f7fb !important;
  box-shadow: none !important;
}

.table-workspace-v173 .tv173-brand {
  display: flex;
  min-width: 172px;
  max-width: 250px;
  align-items: center;
  gap: 9px;
  overflow: hidden;
  color: #f4f7fb;
}

.table-workspace-v173 .tv173-brand > :is(i, .tv173-brand-mark, .tv173-brand__mark, .resto-logo-mark) {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  place-items: center;
  border: 1px solid #3a485b;
  border-radius: 10px;
  background: var(--tv173-ink);
  color: #e5ba69;
  font-style: normal;
  font-weight: 900;
  box-shadow: none;
}

.table-workspace-v173 .tv173-brand > span,
.table-workspace-v173 .tv173-brand > div {
  min-width: 0;
}

.table-workspace-v173 .tv173-brand > span:not(.tv173-brand__mark):not(.tv173-brand-mark):not(.resto-logo-mark) {
  overflow: hidden;
  color: #f4f7fb;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv173-title {
  display: block;
  min-width: 112px;
  max-width: 170px;
  margin-inline-end: auto;
  overflow: hidden;
}

.table-workspace-v173 .tv173-title :is(b, small) {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv173-title small {
  color: #c99b4e;
  font-size: 6.5px;
  font-weight: 900;
  letter-spacing: .15em;
}

.table-workspace-v173 .tv173-title b {
  margin-top: 2px;
  color: #eef2f7;
  font-size: 10px;
  font-weight: 850;
}

.table-workspace-v173 .tv173-modes {
  display: inline-flex;
  height: 40px;
  min-width: 156px;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid #324156;
  border-radius: 10px;
  background: #101e2e;
}

.table-workspace-v173 .tv173-modes button {
  height: 32px;
  min-width: 72px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #96a4b8;
  font-size: 9px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: none;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.table-workspace-v173 .tv173-modes button.active {
  background: #f2f5f9;
  color: #101925;
}

.table-workspace-v173 :is(.fast-status, .tv173-cloud) {
  display: inline-flex;
  height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #28483e;
  border-radius: 9px;
  background: #10271f;
  color: #75d5ad;
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
}

.table-workspace-v173 :is(.fast-status-dot, .tv173-cloud-dot) {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: #4fd39e;
}

.table-workspace-v173 :is(.fast-clock, .tv173-clock) {
  flex: none;
  color: #c1cad6;
  font-size: 10px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table-workspace-v173 :is(.fast-manage, .fast-logout, .tv173-manage, .tv173-logout) {
  display: inline-flex !important;
  height: 38px !important;
  min-height: 38px !important;
  flex: none;
  align-items: center;
  justify-content: center;
  padding: 0 11px !important;
  border: 1px solid #3c4b5f !important;
  border-radius: 9px !important;
  background: #101c2b !important;
  color: #e8edf4 !important;
  font-size: 8.5px !important;
  font-weight: 850 !important;
  white-space: nowrap;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.table-workspace-v173 :is(.fast-manage, .tv173-manage) {
  border-color: #c79748 !important;
  color: #f0c77d !important;
}

.table-workspace-v173 :is(.fast-logout, .tv173-logout) {
  border-color: #583038 !important;
  color: #f2a3a9 !important;
}

.table-workspace-v173 :is(.valenzo-language-selector, .tv173-language) {
  min-width: 116px;
  max-width: 128px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid #344359 !important;
  border-radius: 9px !important;
  background: #101c2b !important;
  color: #d8e0eb !important;
}

.table-workspace-v173 :is(.valenzo-language-selector, .tv173-language) :is(select, option) {
  background: #101c2b !important;
  color: #eef2f7 !important;
}

.table-workspace-v173 .tv173-main {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
  background: var(--tv173-bg);
}

.table-workspace-v173 .tv173-zonebar {
  display: grid;
  width: 100%;
  min-width: 0;
  height: 54px;
  min-height: 54px;
  flex: 0 0 54px;
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: center;
  gap: 10px;
  padding: 5px clamp(10px, 1.45vw, 20px);
  border-bottom: 1px solid var(--tv173-line);
  background: var(--tv173-surface);
}

.table-workspace-v173 .tv173-areas {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.table-workspace-v173 .tv173-areas::-webkit-scrollbar {
  display: none;
}

.table-workspace-v173 .tv173-areas > button {
  display: inline-flex;
  height: 42px;
  min-width: 112px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid var(--tv173-line);
  border-radius: 9px;
  background: var(--tv173-surface-soft);
  color: var(--tv173-muted);
  text-align: start;
  box-shadow: none;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.table-workspace-v173 .tv173-areas > button > i {
  display: block;
  width: 3px;
  height: 22px;
  flex: 0 0 3px;
  border-radius: 99px;
  background: var(--area, var(--tv173-blue));
  font-style: normal;
}

.table-workspace-v173 .tv173-areas > button :is(span, b, small) {
  min-width: 0;
}

.table-workspace-v173 .tv173-areas > button :is(b, small) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv173-areas > button b {
  color: var(--tv173-text);
  font-size: 9px;
  font-weight: 850;
}

.table-workspace-v173 .tv173-areas > button small {
  margin-top: 1px;
  color: var(--tv173-faint);
  font-size: 7px;
  font-weight: 750;
}

.table-workspace-v173 .tv173-areas > button.active {
  border-color: color-mix(in srgb, var(--area, var(--tv173-blue)) 58%, var(--tv173-line));
  background: color-mix(in srgb, var(--area, var(--tv173-blue)) 8%, var(--tv173-surface));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--area, var(--tv173-blue)) 16%, transparent);
}

.table-workspace-v173 .tv173-search {
  display: flex;
  width: 220px;
  height: 40px;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 0 6px 0 10px;
  border: 1px solid var(--tv173-line-strong);
  border-radius: 9px;
  background: var(--tv173-surface-soft);
  color: var(--tv173-muted);
}

.table-workspace-v173 .tv173-search > :is(svg, span:first-child) {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  color: var(--tv173-faint);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.table-workspace-v173 .tv173-search input {
  width: 100%;
  min-width: 0;
  height: 36px;
  border: 0 !important;
  outline: 0;
  background: transparent !important;
  color: var(--tv173-text) !important;
  font-size: 9px;
  font-weight: 750;
  box-shadow: none !important;
}

.table-workspace-v173 .tv173-search input::placeholder {
  color: var(--tv173-faint);
}

.table-workspace-v173 .tv173-search button {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--tv173-faint);
  font-size: 16px;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.table-workspace-v173 .tv173-content {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 10px;
  padding: 10px clamp(10px, 1.45vw, 20px) 12px;
  overflow: hidden;
  background: var(--tv173-bg);
}

.table-workspace-v173 .tv173-board {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tv173-line);
  border-radius: 13px;
  background: var(--tv173-surface);
  box-shadow: var(--tv173-shadow);
}

.table-workspace-v173 .tv173-board-head {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  flex: 0 0 58px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px 8px 14px;
  border-bottom: 1px solid var(--tv173-line);
  background: var(--tv173-surface);
}

.table-workspace-v173 .tv173-board-head > div:first-child {
  min-width: 0;
}

.table-workspace-v173 .tv173-board-head :is(h1, h2, p, small) {
  display: block;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv173-board-head :is(h1, h2) {
  color: var(--tv173-text);
  font-size: 14px;
  font-weight: 880;
  letter-spacing: -.015em;
}

.table-workspace-v173 .tv173-board-head :is(p, small) {
  margin-top: 2px;
  color: var(--tv173-muted);
  font-size: 7.5px;
  font-weight: 750;
}

.table-workspace-v173 .tv173-controls {
  display: inline-flex;
  height: 40px;
  min-width: 0;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  padding: 3px;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--tv173-line);
  border-radius: 9px;
  background: var(--tv173-surface-soft);
  scrollbar-width: none;
}

.table-workspace-v173 .tv173-controls::-webkit-scrollbar {
  display: none;
}

.table-workspace-v173 .tv173-controls button {
  display: inline-flex;
  height: 32px;
  min-width: 64px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--tv173-muted);
  font-size: 8px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow: none;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.table-workspace-v173 .tv173-controls button :is(i, span, b) {
  pointer-events: none;
}

.table-workspace-v173 .tv173-controls button i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.table-workspace-v173 .tv173-controls button b {
  display: inline-grid;
  min-width: 19px;
  height: 19px;
  place-items: center;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--tv173-surface-strong);
  color: var(--tv173-muted);
  font-size: 7.5px;
  font-variant-numeric: tabular-nums;
}

.table-workspace-v173 .tv173-controls button.active {
  background: var(--tv173-navy);
  color: #f4f7fb;
}

.table-workspace-v173 .tv173-controls button.active b {
  background: rgba(255, 255, 255, .14);
  color: inherit;
}

/* One controlled scroll contains both occupancy groups. */
.table-workspace-v173 .tv173-service-scroll {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px 9px;
  scrollbar-color: var(--tv173-line-strong) transparent;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
}

.table-workspace-v173 :is(.tv173-active, .tv173-available) {
  display: flex;
  width: 100%;
  min-width: 0;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 6px;
}

.table-workspace-v173 .tv173-section-head {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 25px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 2px;
}

.table-workspace-v173 .tv173-section-head :is(div, span, b, small, h2, h3) {
  min-width: 0;
  margin: 0;
}

.table-workspace-v173 .tv173-section-head :is(h2, h3, b) {
  color: var(--tv173-text);
  font-size: 9px;
  font-weight: 880;
  letter-spacing: .01em;
}

.table-workspace-v173 .tv173-section-head :is(small, span) {
  color: var(--tv173-muted);
  font-size: 7px;
  font-weight: 800;
}

.table-workspace-v173 .tv173-section-head > b {
  display: grid;
  min-width: 23px;
  height: 21px;
  place-items: center;
  padding-inline: 5px;
  border: 1px solid var(--tv173-line);
  border-radius: 7px;
  background: var(--tv173-surface-soft);
  font-size: 7.5px;
  font-variant-numeric: tabular-nums;
}

.table-workspace-v173 .tv173-active-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 118px;
  gap: 7px;
}

.table-workspace-v173 .tv173-active-grid > .tv173-empty {
  grid-column: 1 / -1;
}

.table-workspace-v173 .tv173-active-card {
  --table-accent: var(--area, var(--tv173-blue));
  position: relative;
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 118px;
  flex-direction: column;
  overflow: hidden;
  padding: 8px 9px 7px 11px;
  border: 1px solid color-mix(in srgb, var(--table-accent) 44%, var(--tv173-line)) !important;
  border-radius: 10px;
  background: color-mix(in srgb, var(--table-accent) 7%, var(--tv173-surface)) !important;
  color: var(--tv173-text) !important;
  text-align: start;
  box-shadow: none !important;
  cursor: pointer;
  animation: none !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

.table-workspace-v173 .tv173-active-card::before {
  position: absolute;
  inset-block: 8px;
  inset-inline-start: 0;
  width: 3px;
  border-radius: 0 99px 99px 0;
  background: var(--table-accent);
  content: "";
}

.table-workspace-v173 .tv173-active-card:is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--table-accent) 66%, var(--tv173-line)) !important;
  background: color-mix(in srgb, var(--table-accent) 10%, var(--tv173-surface)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--table-accent) 15%, transparent) !important;
  transform: none !important;
}

.table-workspace-v173 .tv173-active-card.is-aged:not([data-state="requested"]) {
  --table-accent: var(--tv173-danger);
  border-color: color-mix(in srgb, var(--tv173-danger) 58%, var(--tv173-line)) !important;
  background: color-mix(in srgb, var(--tv173-danger) 7%, var(--tv173-surface)) !important;
}

.table-workspace-v173 .tv173-active-card[data-state="requested"] {
  --table-accent: var(--tv173-amber);
  border-color: color-mix(in srgb, var(--tv173-amber) 72%, var(--tv173-line)) !important;
  background: var(--tv173-amber-soft) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tv173-amber) 18%, transparent) !important;
}

.table-workspace-v173 .tv173-active-card__top {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.table-workspace-v173 .tv173-active-card__status {
  display: inline-flex;
  min-height: 19px;
  max-width: 52%;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--table-accent) 30%, var(--tv173-line));
  border-radius: 99px;
  background: color-mix(in srgb, var(--table-accent) 7%, var(--tv173-surface));
  color: var(--table-accent) !important;
  font-size: 6.7px;
  font-weight: 900;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv173-active-card__status > i {
  display: block;
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border-radius: 50%;
  background: currentColor;
  font-style: normal;
}

.table-workspace-v173 .tv173-active-card__area {
  min-width: 0;
  overflow: hidden;
  color: var(--tv173-muted) !important;
  font-size: 6.5px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv173-active-card__name {
  display: block;
  min-width: 0;
  margin-top: 4px;
  overflow: hidden;
  color: var(--tv173-text) !important;
  font-size: clamp(13px, 1.05vw, 16px);
  font-weight: 900;
  letter-spacing: -.025em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv173-active-card__amount {
  display: block;
  min-width: 0;
  margin-top: 5px;
  overflow: hidden;
  color: color-mix(in srgb, var(--table-accent) 78%, var(--tv173-text)) !important;
  font-size: clamp(15px, 1.2vw, 18px);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.025em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv173-active-card[data-state="requested"] .tv173-active-card__amount {
  color: #a64d00 !important;
}

.table-workspace-v173 .tv173-active-card__meta {
  display: flex;
  width: 100%;
  min-width: 0;
  margin-top: auto;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-top: 5px;
  border-top: 1px solid color-mix(in srgb, var(--tv173-line) 82%, transparent);
  color: var(--tv173-muted) !important;
  font-size: 7px;
  font-weight: 780;
}

.table-workspace-v173 .tv173-active-card__meta > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv173-active-card__duration {
  color: var(--table-accent) !important;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.table-workspace-v173 .tv173-active-card__items {
  color: var(--tv173-muted) !important;
}

.table-workspace-v173 .tv173-active-card__action {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 3px;
  overflow: hidden;
  color: var(--tv173-faint) !important;
  font-size: 6.2px;
  font-weight: 800;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv173-active-card__action i {
  flex: none;
  color: var(--table-accent);
  font-size: 11px;
  font-style: normal;
}

.table-workspace-v173 .tv173-available-grid {
  display: grid;
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 104px;
  gap: 8px;
}

.table-workspace-v173 .tv173-available-table {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 104px;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 1fr auto;
  align-items: center;
  gap: 4px 10px;
  overflow: hidden;
  padding: 14px 15px 12px 18px;
  border: 1px solid var(--tv173-line) !important;
  border-radius: 12px;
  background: var(--tv173-surface-soft) !important;
  color: var(--tv173-text) !important;
  text-align: start;
  box-shadow: none !important;
  cursor: pointer;
  animation: none !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

.table-workspace-v173 .tv173-available-table::before {
  position: absolute;
  inset-block: 13px;
  inset-inline-start: 0;
  width: 4px;
  border-radius: 0 99px 99px 0;
  background: color-mix(in srgb, var(--area, var(--tv173-blue)) 56%, var(--tv173-line-strong));
  content: "";
}

.table-workspace-v173 .tv173-available-table:is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--area, var(--tv173-blue)) 48%, var(--tv173-line)) !important;
  background: var(--tv173-surface) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--area, var(--tv173-blue)) 12%, transparent) !important;
  transform: none !important;
}

.table-workspace-v173 .tv173-available-table__number {
  min-width: 0;
  overflow: hidden;
  color: var(--tv173-text) !important;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv173-available-table__label {
  grid-column: 1;
  min-width: 0;
  overflow: hidden;
  color: var(--tv173-muted) !important;
  font-size: 11px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv173-available-table__status {
  display: inline-flex;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-items: center;
  gap: 6px;
  color: var(--tv173-green) !important;
  font-size: 10px;
  font-weight: 900;
  white-space: nowrap;
}

.table-workspace-v173 .tv173-available-table__status > i {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: currentColor;
  font-style: normal;
}

/* v175 — state is painted inside the fixed table slot; geometry never changes. */
.table-workspace-v173 .tv173-available-table:is([data-state="open"], .is-open) {
  --tv173-slot-state: #3157d5;
  border-color: color-mix(in srgb, var(--tv173-slot-state) 46%, var(--tv173-line)) !important;
  background: color-mix(in srgb, var(--tv173-slot-state) 12%, var(--tv173-surface-soft)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tv173-slot-state) 14%, transparent) !important;
}

.table-workspace-v173 .tv173-available-table:is([data-state="requested"], .is-requested) {
  --tv173-slot-state: #d87b1b;
  border-color: color-mix(in srgb, var(--tv173-slot-state) 62%, var(--tv173-line)) !important;
  background: color-mix(in srgb, var(--tv173-slot-state) 17%, var(--tv173-surface-soft)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tv173-slot-state) 20%, transparent) !important;
}

.table-workspace-v173 .tv173-available-table:is([data-state="open"], [data-state="requested"], .is-open, .is-requested)::before {
  background: var(--tv173-slot-state);
}

.table-workspace-v173 .tv173-available-table:is([data-state="open"], [data-state="requested"], .is-open, .is-requested) .tv173-available-table__number,
.table-workspace-v173 .tv173-available-table:is([data-state="open"], [data-state="requested"], .is-open, .is-requested) .tv173-available-table__status {
  color: var(--tv173-slot-state) !important;
}

.table-workspace-v173 .tv173-available-table:is([data-state="open"], [data-state="requested"], .is-open, .is-requested):is(:hover, :focus-visible) {
  border-color: color-mix(in srgb, var(--tv173-slot-state) 70%, var(--tv173-line)) !important;
  background: color-mix(in srgb, var(--tv173-slot-state) 15%, var(--tv173-surface)) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tv173-slot-state) 18%, transparent) !important;
  transform: none !important;
}

.table-workspace-v173 .tv173-empty {
  display: grid;
  width: 100%;
  min-height: 96px;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 18px;
  border: 1px dashed var(--tv173-line-strong);
  border-radius: 9px;
  background: var(--tv173-surface-soft);
  color: var(--tv173-muted);
  text-align: center;
}

.table-workspace-v173 .tv173-empty :is(b, small, span) {
  display: block;
}

.table-workspace-v173 .tv173-empty b {
  color: var(--tv173-text);
  font-size: 10px;
}

.table-workspace-v173 .tv173-empty small {
  color: var(--tv173-muted);
  font-size: 7px;
}

.table-workspace-v173 .tv173-board-footer {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  flex: 0 0 32px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 10px;
  border-top: 1px solid var(--tv173-line);
  background: var(--tv173-surface);
  color: var(--tv173-muted);
  font-size: 7.2px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.table-workspace-v173 .tv173-board-footer > :is(div, span),
.table-workspace-v173 .tv173-legend {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.table-workspace-v173 .tv173-board-footer i {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}

.table-workspace-v173 .tv173-board-footer [data-state="available"] { color: var(--tv173-green); }
.table-workspace-v173 .tv173-board-footer [data-state="open"] { color: var(--tv173-blue); }
.table-workspace-v173 .tv173-board-footer [data-state="requested"] { color: var(--tv173-amber); }

/* v172 Service Radar — layout preserved; palette now follows the POS workspace. */
.table-workspace-v173 .tv172-radar {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--tv173-line);
  border-radius: 13px;
  background: var(--tv173-surface);
  color: var(--tv173-text);
  box-shadow: none;
}

.table-workspace-v173 .tv172-radar-head {
  display: flex;
  min-height: 58px;
  flex: 0 0 58px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--tv173-line);
}

.table-workspace-v173 .tv172-radar-head :is(small, h2, b, span) {
  display: block;
  margin: 0;
}

.table-workspace-v173 .tv172-radar-head small {
  color: var(--tv173-gold);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .14em;
}

.table-workspace-v173 .tv172-radar-head h2 {
  margin-top: 2px;
  color: var(--tv173-text);
  font-size: 13px;
  font-weight: 880;
}

.table-workspace-v173 .tv172-radar-head > :is(span, b) {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--tv173-muted);
  font-size: 7.5px;
  font-weight: 850;
}

.table-workspace-v173 .tv172-radar-head > :is(span, b) > i {
  display: block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: var(--tv173-green);
  font-style: normal;
}

.table-workspace-v173 .tv172-occupancy {
  display: grid;
  min-height: 116px;
  flex: 0 0 116px;
  grid-template-columns: 84px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border-bottom: 1px solid var(--tv173-line);
  background: var(--tv173-surface-soft);
}

.table-workspace-v173 .tv172-ring {
  position: relative;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--tv173-gold) calc(var(--occupancy, 0) * 1%), var(--tv173-line-strong) 0);
}

.table-workspace-v173 .tv172-ring::before {
  position: absolute;
  inset: 7px;
  border: 1px solid var(--tv173-line);
  border-radius: 50%;
  background: var(--tv173-surface);
  content: "";
}

.table-workspace-v173 .tv172-ring > span {
  position: relative;
  z-index: 1;
  text-align: center;
}

.table-workspace-v173 .tv172-ring :is(b, small) {
  display: block;
}

.table-workspace-v173 .tv172-ring b {
  color: var(--tv173-text);
  font-size: 15px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.table-workspace-v173 .tv172-ring small {
  margin-top: 1px;
  color: var(--tv173-muted);
  font-size: 6.5px;
  font-weight: 800;
}

.table-workspace-v173 .tv172-kpis {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
}

.table-workspace-v173 .tv172-kpis > :is(div, span) {
  min-width: 0;
  padding: 6px 7px;
  border: 1px solid var(--tv173-line);
  border-radius: 8px;
  background: var(--tv173-surface);
}

.table-workspace-v173 .tv172-kpis :is(b, small) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv172-kpis b {
  color: var(--tv173-text);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.table-workspace-v173 .tv172-kpis small {
  margin-top: 1px;
  color: var(--tv173-muted);
  font-size: 6.5px;
  font-weight: 750;
}

.table-workspace-v173 .tv172-kpis .alert {
  border-color: color-mix(in srgb, var(--tv173-amber) 56%, var(--tv173-line));
  background: color-mix(in srgb, var(--tv173-amber) 14%, var(--tv173-surface-soft));
}

.table-workspace-v173 .tv172-kpis .alert b {
  color: var(--tv173-amber);
}

.table-workspace-v173 .tv172-priority {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: hidden;
}

.table-workspace-v173 .tv172-priority > header {
  display: flex;
  min-height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--tv173-line);
}

.table-workspace-v173 .tv172-priority > header :is(small, h3, b) {
  display: block;
  margin: 0;
}

.table-workspace-v173 .tv172-priority > header small {
  color: var(--tv173-muted);
  font-size: 6.5px;
  font-weight: 900;
  letter-spacing: .12em;
}

.table-workspace-v173 .tv172-priority > header h3 {
  margin-top: 2px;
  color: var(--tv173-text);
  font-size: 9.5px;
  font-weight: 850;
}

.table-workspace-v173 .tv172-priority > header > b {
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  padding: 0 5px;
  border-radius: 7px;
  background: var(--tv173-surface-strong);
  color: var(--tv173-muted);
  font-size: 8px;
  font-variant-numeric: tabular-nums;
}

.table-workspace-v173 .tv172-priority-list {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 5px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 7px;
  scrollbar-color: var(--tv173-line-strong) transparent;
  scrollbar-width: thin;
}

.table-workspace-v173 .tv172-priority-item {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 49px;
  flex: 0 0 auto;
  grid-template-columns: 3px minmax(0, 1fr) auto 12px;
  align-items: center;
  gap: 6px;
  padding: 6px 7px 6px 6px;
  overflow: hidden;
  border: 1px solid var(--tv173-line);
  border-radius: 8px;
  background: var(--tv173-surface-soft);
  color: var(--tv173-text);
  text-align: start;
  box-shadow: none;
  animation: none !important;
  transform: none !important;
  transition: none !important;
}

.table-workspace-v173 .tv172-priority-item__mark {
  display: block;
  width: 3px;
  height: calc(100% - 4px);
  align-self: stretch;
  border-radius: 99px;
  background: var(--area, #5578e5);
}

.table-workspace-v173 .tv172-priority-item[data-state="requested"] {
  border-color: color-mix(in srgb, var(--tv173-amber) 58%, var(--tv173-line));
  background: color-mix(in srgb, var(--tv173-amber) 15%, var(--tv173-surface-soft));
}

.table-workspace-v173 .tv172-priority-item[data-state="requested"] .tv172-priority-item__mark {
  background: var(--tv173-amber);
}

.table-workspace-v173 .tv172-priority-item__body {
  display: block;
  min-width: 0;
  overflow: hidden;
}

.table-workspace-v173 .tv172-priority-item__body :is(b, small) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv172-priority-item__body b {
  color: var(--tv173-text);
  font-size: 9px;
  font-weight: 850;
}

.table-workspace-v173 .tv172-priority-item__body small {
  margin-top: 2px;
  color: var(--tv173-muted);
  font-size: 6.5px;
  font-weight: 750;
}

.table-workspace-v173 .tv172-priority-item > strong {
  color: var(--tv173-text);
  font-size: 8.5px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table-workspace-v173 .tv172-priority-item > i {
  color: var(--tv173-faint);
  font-size: 13px;
  font-style: normal;
}

.table-workspace-v173 .tv172-calm {
  display: grid;
  min-height: 112px;
  place-items: center;
  align-content: center;
  gap: 3px;
  padding: 15px;
  color: var(--tv173-muted);
  text-align: center;
}

.table-workspace-v173 .tv172-calm > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--tv173-green) 48%, var(--tv173-line));
  border-radius: 9px;
  background: var(--tv173-green-soft);
  color: var(--tv173-green);
}

.table-workspace-v173 .tv172-calm :is(b, small) {
  display: block;
}

.table-workspace-v173 .tv172-calm b {
  color: var(--tv173-text);
  font-size: 9px;
}

.table-workspace-v173 .tv172-calm small {
  font-size: 7px;
}

.table-workspace-v173 .tv172-radar-footer {
  min-height: 43px;
  flex: 0 0 43px;
  padding: 7px 10px;
  border-top: 1px solid var(--tv173-line);
  background: var(--tv173-surface-soft);
}

.table-workspace-v173 .tv172-radar-footer :is(p, span, b, small) {
  display: block;
  min-width: 0;
  margin: 0;
}

.table-workspace-v173 .tv172-radar-footer p {
  display: flex;
  align-items: center;
  gap: 7px;
}

.table-workspace-v173 .tv172-radar-footer p > i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--tv173-green);
}

.table-workspace-v173 .tv172-radar-footer b {
  overflow: hidden;
  color: var(--tv173-text);
  font-size: 7.5px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table-workspace-v173 .tv172-radar-footer small {
  margin-top: 1px;
  overflow: hidden;
  color: var(--tv173-muted);
  font-size: 6.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dark working surface; the fixed Valenzo brand stays unchanged. */
html[data-valenzo-theme="dark"] .table-workspace-v173,
.table-workspace-v173[data-theme="dark"] {
  --tv173-bg: #080d14;
  --tv173-surface: #111923;
  --tv173-surface-soft: #151f2b;
  --tv173-surface-strong: #1b2735;
  --tv173-line: #263241;
  --tv173-line-strong: #354255;
  --tv173-text: #eef2f7;
  --tv173-muted: #9aa7b8;
  --tv173-faint: #6f7d90;
  --tv173-blue: #7593ff;
  --tv173-green: #54c89d;
  --tv173-green-soft: #11271f;
  --tv173-gold: #d2a253;
  --tv173-amber: #e09a46;
  --tv173-amber-soft: #342416;
  --tv173-danger: #ef856c;
  --tv173-shadow: 0 5px 18px rgba(0, 0, 0, .18);
  color-scheme: dark;
}

html[data-valenzo-theme="dark"] .table-workspace-v173 .tv173-active-card[data-state="requested"],
.table-workspace-v173[data-theme="dark"] .tv173-active-card[data-state="requested"] {
  border-color: #8b5c27 !important;
  background: #342416 !important;
}

html[data-valenzo-theme="dark"] .table-workspace-v173 .tv173-active-card[data-state="requested"] .tv173-active-card__amount,
.table-workspace-v173[data-theme="dark"] .tv173-active-card[data-state="requested"] .tv173-active-card__amount {
  color: #ffc078 !important;
}

html[data-valenzo-theme="dark"] .table-workspace-v173 .tv173-controls button.active,
.table-workspace-v173[data-theme="dark"] .tv173-controls button.active {
  background: #edf1f6;
  color: #111925;
}

/* 1366 × 768: four active cards plus sixteen compact available tables fit. */
@media (min-width: 1200px) and (max-height: 800px) {
  .table-workspace-v173 .tv173-topbar {
    height: 56px;
    min-height: 56px;
    flex-basis: 56px;
  }

  .table-workspace-v173 .tv173-zonebar {
    height: 52px;
    min-height: 52px;
    flex-basis: 52px;
  }

  .table-workspace-v173 .tv173-content {
    padding-block: 8px 9px;
  }

  .table-workspace-v173 .tv173-board-head {
    min-height: 55px;
    flex-basis: 55px;
  }

  .table-workspace-v173 .tv173-service-scroll {
    gap: 6px;
    padding-block: 6px;
  }

  .table-workspace-v173 .tv173-active-grid {
    grid-auto-rows: 112px;
  }

  .table-workspace-v173 .tv173-active-card {
    min-height: 112px;
    padding-block: 7px 6px;
  }

  .table-workspace-v173 .tv173-available-grid {
    grid-auto-rows: 96px;
  }

  .table-workspace-v173 .tv173-available-table {
    min-height: 96px;
  }

  .table-workspace-v173 .tv172-occupancy {
    min-height: 106px;
    flex-basis: 106px;
  }

  .table-workspace-v173 .tv172-ring {
    width: 70px;
    height: 70px;
  }
}

@media (min-width: 901px) and (max-width: 1199px) {
  .table-workspace-v173 .tv173-brand {
    min-width: 138px;
    max-width: 170px;
  }

  .table-workspace-v173 .tv173-brand small,
  .table-workspace-v173 :is(.fast-status, .tv173-cloud) {
    display: none;
  }

  .table-workspace-v173 .tv173-modes {
    min-width: 138px;
  }

  .table-workspace-v173 .tv173-modes button {
    min-width: 63px;
  }

  .table-workspace-v173 .tv173-content {
    grid-template-columns: minmax(0, 1fr) 238px;
    gap: 8px;
    padding: 8px;
  }

  .table-workspace-v173 .tv173-active-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .table-workspace-v173 .tv173-available-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 96px;
  }

  .table-workspace-v173 .tv173-available-table {
    min-height: 96px;
  }

  .table-workspace-v173 .tv172-occupancy {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 6px;
    padding-inline: 8px;
  }

  .table-workspace-v173 .tv172-ring {
    width: 62px;
    height: 62px;
  }
}

/* Compact tablets keep the Radar as the same horizontal operations strip. */
@media (min-width: 701px) and (max-width: 900px) {
  .table-workspace-v173 .tv173-topbar {
    height: 56px;
    min-height: 56px;
    flex-basis: 56px;
    padding-inline: 9px;
  }

  .table-workspace-v173 .tv173-brand {
    min-width: 44px;
    width: 44px;
  }

  .table-workspace-v173 .tv173-brand > :is(span, div):not(.tv173-brand__mark):not(.tv173-brand-mark):not(.resto-logo-mark),
  .table-workspace-v173 .tv173-title,
  .table-workspace-v173 :is(.fast-status, .tv173-cloud),
  .table-workspace-v173 :is(.fast-clock, .tv173-clock) {
    display: none;
  }

  .table-workspace-v173 .tv173-modes {
    min-width: 126px;
  }

  .table-workspace-v173 .tv173-modes button {
    min-width: 57px;
  }

  .table-workspace-v173 .tv173-zonebar {
    grid-template-columns: minmax(0, 1fr) 170px;
  }

  .table-workspace-v173 .tv173-search {
    width: 170px;
  }

  .table-workspace-v173 .tv173-content {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 7px;
  }

  .table-workspace-v173 .tv173-board {
    min-height: 0;
    flex: 1 1 auto;
    order: 2;
  }

  .table-workspace-v173 .tv173-active-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .table-workspace-v173 .tv173-available-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .table-workspace-v173 .tv173-available-grid {
    grid-auto-rows: 96px;
  }

  .table-workspace-v173 .tv173-available-table {
    min-height: 96px;
  }

  .table-workspace-v173 .tv172-radar {
    display: grid;
    min-height: 116px;
    max-height: 116px;
    flex: 0 0 116px;
    order: 1;
    grid-template-columns: 150px 180px minmax(0, 1fr);
    grid-template-rows: 1fr;
  }

  .table-workspace-v173 .tv172-radar-head {
    min-height: 0;
    height: 100%;
    padding: 10px;
    border-right: 1px solid var(--tv173-line);
    border-bottom: 0;
  }

  .table-workspace-v173 .tv172-occupancy {
    min-height: 0;
    height: 100%;
    grid-template-columns: 58px minmax(0, 1fr);
    padding: 8px;
    border-right: 1px solid var(--tv173-line);
    border-bottom: 0;
  }

  .table-workspace-v173 .tv172-ring {
    width: 54px;
    height: 54px;
  }

  .table-workspace-v173 .tv172-ring b {
    font-size: 11px;
  }

  .table-workspace-v173 .tv172-priority {
    height: 100%;
  }

  .table-workspace-v173 .tv172-priority > header {
    min-height: 35px;
    flex-basis: 35px;
    padding-block: 4px;
  }

  .table-workspace-v173 .tv172-priority-list {
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px;
  }

  .table-workspace-v173 .tv172-priority-item {
    min-width: 160px;
    width: 160px;
    min-height: 64px;
  }

  .table-workspace-v173 .tv172-radar-footer {
    display: none;
  }
}

@media (max-width: 700px) {
  .table-workspace-v173 {
    height: 100dvh !important;
  }

  .table-workspace-v173 .tv173-topbar {
    height: 60px;
    min-height: 60px;
    flex-basis: 60px;
    gap: 5px;
    padding: 6px 8px;
  }

  .table-workspace-v173 .tv173-brand {
    min-width: 44px;
    width: 44px;
    flex: 0 0 44px;
  }

  .table-workspace-v173 .tv173-brand > :is(i, .tv173-brand-mark, .tv173-brand__mark, .resto-logo-mark) {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .table-workspace-v173 .tv173-brand > :is(span, div):not(.tv173-brand__mark):not(.tv173-brand-mark):not(.resto-logo-mark),
  .table-workspace-v173 .tv173-title,
  .table-workspace-v173 :is(.fast-status, .tv173-cloud),
  .table-workspace-v173 :is(.fast-clock, .tv173-clock),
  .table-workspace-v173 :is(.fast-logout, .tv173-logout) {
    display: none !important;
  }

  .table-workspace-v173 .tv173-modes {
    width: 98px;
    min-width: 98px;
    height: 42px;
  }

  .table-workspace-v173 .tv173-modes button {
    min-width: 44px;
    height: 34px;
    padding-inline: 5px;
    font-size: 8px;
  }

  .table-workspace-v173 :is(.fast-manage, .tv173-manage) {
    display: inline-flex !important;
    min-width: 58px;
    height: 42px !important;
    min-height: 42px !important;
    margin-inline-start: auto;
    padding-inline: 7px !important;
    font-size: 8px !important;
  }

  .table-workspace-v173 :is(.valenzo-language-selector, .tv173-language) {
    width: 62px;
    min-width: 62px;
    max-width: 62px;
    height: 42px;
    padding-inline: 3px !important;
  }

  .table-workspace-v173 :is(.valenzo-language-selector, .tv173-language) > span {
    display: none;
  }

  .table-workspace-v173 :is(.valenzo-language-selector, .tv173-language) select {
    width: 54px;
    min-width: 54px;
    max-width: 54px;
    font-size: 8px;
  }

  .table-workspace-v173 .tv173-zonebar {
    height: 58px;
    min-height: 58px;
    flex-basis: 58px;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 6px;
    padding: 6px 7px;
  }

  .table-workspace-v173 .tv173-areas {
    gap: 5px;
  }

  .table-workspace-v173 .tv173-areas > button {
    min-width: 100px;
    height: 44px;
    padding-inline: 8px;
  }

  .table-workspace-v173 .tv173-search {
    width: 108px;
    height: 42px;
    padding-inline: 8px 4px;
  }

  .table-workspace-v173 .tv173-search input {
    font-size: 8.5px;
  }

  .table-workspace-v173 .tv173-content {
    display: block;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-workspace-v173 .tv173-board {
    width: 100%;
    min-height: calc(100dvh - 130px);
    height: auto;
    overflow: visible;
    border-radius: 11px;
  }

  .table-workspace-v173 .tv173-board-head {
    min-height: 70px;
    flex-basis: 70px;
    padding: 7px 8px 7px 10px;
  }

  .table-workspace-v173 .tv173-board-head :is(h1, h2) {
    font-size: 12px;
  }

  .table-workspace-v173 .tv173-board-head :is(p, small) {
    max-width: 100px;
    font-size: 6.5px;
  }

  .table-workspace-v173 .tv173-controls {
    max-width: calc(100vw - 139px);
    height: 38px;
  }

  .table-workspace-v173 .tv173-controls button {
    min-width: 49px;
    height: 30px;
    padding-inline: 5px;
    font-size: 7px;
  }

  .table-workspace-v173 .tv173-controls button span {
    display: none;
  }

  .table-workspace-v173 .tv173-controls button:first-child span {
    display: inline;
  }

  .table-workspace-v173 .tv173-service-scroll {
    flex: none;
    overflow: visible;
    padding: 7px;
    scrollbar-gutter: auto;
  }

  .table-workspace-v173 .tv173-active-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 118px;
  }

  .table-workspace-v173 .tv173-available-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 96px;
  }

  .table-workspace-v173 .tv173-available-table {
    min-height: 96px;
    padding-inline: 15px 11px;
  }

  .table-workspace-v173 .tv173-available-table__number {
    font-size: 21px;
  }

  .table-workspace-v173 .tv173-available-table__status {
    display: inline-flex;
    font-size: 9px;
  }

  .table-workspace-v173 .tv173-board-footer {
    min-height: 35px;
    flex-basis: 35px;
    padding-inline: 7px;
  }

  .table-workspace-v173 .tv173-board-footer > :is(div, span),
  .table-workspace-v173 .tv173-legend {
    gap: 7px;
  }

  .table-workspace-v173 .tv172-radar {
    width: 100%;
    min-height: 546px;
    margin-top: 7px;
    border-radius: 11px;
  }
}

@media (max-width: 360px) {
  .table-workspace-v173 :is(.fast-manage, .tv173-manage) {
    min-width: 50px;
    padding-inline: 5px !important;
  }

  .table-workspace-v173 :is(.valenzo-language-selector, .tv173-language) {
    display: none !important;
  }

  .table-workspace-v173 .tv173-zonebar {
    grid-template-columns: minmax(0, 1fr) 98px;
  }

  .table-workspace-v173 .tv173-search {
    width: 98px;
  }

  .table-workspace-v173 .tv173-active-grid {
    gap: 6px;
  }

  .table-workspace-v173 .tv173-available-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

[dir="rtl"] .table-workspace-v173,
.table-workspace-v173[dir="rtl"] {
  direction: rtl;
}

[dir="rtl"] .table-workspace-v173 :is(.tv173-active-card, .tv173-available-table, .tv172-priority-item),
.table-workspace-v173[dir="rtl"] :is(.tv173-active-card, .tv173-available-table, .tv172-priority-item) {
  text-align: start;
}

[dir="rtl"] .table-workspace-v173 :is(.tv173-active-card, .tv173-available-table)::before,
.table-workspace-v173[dir="rtl"] :is(.tv173-active-card, .tv173-available-table)::before {
  border-radius: 99px 0 0 99px;
}

.table-workspace-v173 :is(button, input, select, [role="button"]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--tv173-gold) 72%, #fff) !important;
  outline-offset: 2px !important;
}

.table-workspace-v173 :is(button, input, select):disabled {
  cursor: not-allowed;
  opacity: .55;
}

@media (prefers-reduced-motion: reduce) {
  .table-workspace-v173,
  .table-workspace-v173 *,
  .table-workspace-v173 *::before,
  .table-workspace-v173 *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

@media (forced-colors: active) {
  .table-workspace-v173,
  .table-workspace-v173 :is(.tv173-topbar, .tv173-zonebar, .tv173-board, .tv173-board-head, .tv173-active-card, .tv173-available-table, .tv173-board-footer, .tv172-radar, .tv172-radar-head, .tv172-occupancy, .tv172-priority-item, .tv173-search, .tv173-controls, .tv173-areas > button) {
    border-color: CanvasText !important;
    background: Canvas !important;
    color: CanvasText !important;
    box-shadow: none !important;
  }

  .table-workspace-v173 .tv172-ring {
    border: 5px solid Highlight;
    background: Canvas !important;
  }

  .table-workspace-v173 .tv172-ring::before {
    border-color: CanvasText !important;
    background: Canvas !important;
  }

  .table-workspace-v173 .tv173-active-card::before,
  .table-workspace-v173 .tv173-available-table::before,
  .table-workspace-v173 .tv173-active-card__status > i,
  .table-workspace-v173 .tv173-available-table__status > i,
  .table-workspace-v173 .tv172-priority-item__mark,
  .table-workspace-v173 .tv173-board-footer i {
    background: currentColor !important;
  }

  .table-workspace-v173 :is(button, input, select, [role="button"]):focus-visible {
    outline-color: Highlight !important;
  }
}
