:root {
  --bg: #0b1220;
  --panel: #0f1b33;
  --panel2: #111f3b;
  --text: #e8eefc;
  --muted: #a9b7d9;
  --accent: #4f8cff;
  --accent2: #27d3a2;
  --danger: #ff4d6d;
  --warn: #ffcc00;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --radius2: 12px;
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
}
html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    "Apple Color Emoji",
    "Segoe UI Emoji";
  background:
    radial-gradient(
      1200px 600px at 20% 10%,
      rgba(79, 140, 255, 0.18),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 80% 30%,
      rgba(39, 211, 162, 0.12),
      transparent 55%
    ),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

/* =============================
   Layout / wrappers
   ============================= */

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(12px, 3vw, 24px);
}

.card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
}

.header {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.h-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.h-title h1 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0.2px;
}

.h-title .sub {
  color: var(--muted);
  font-size: 13px;
}

.hr {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.hidden {
  display: none !important;
}

.small {
  font-size: 12px;
  color: var(--muted);
}

/* =============================
   Badges / Buttons
   ============================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 13px;
}

.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);

  font-size: 14px;
  font-weight: 650;

  border-radius: 14px;
  padding: 12px 14px;

  cursor: pointer;
  user-select: none;
  transition:
    transform 0.06s ease,
    background 0.15s ease,
    border-color 0.15s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: linear-gradient(
    180deg,
    rgba(79, 140, 255, 0.92),
    rgba(79, 140, 255, 0.7)
  );
  border-color: rgba(79, 140, 255, 0.45);
}
.btn.primary:hover {
  background: linear-gradient(
    180deg,
    rgba(79, 140, 255, 1),
    rgba(79, 140, 255, 0.78)
  );
}

.btn.good {
  background: linear-gradient(
    180deg,
    rgba(39, 211, 162, 0.92),
    rgba(39, 211, 162, 0.7)
  );
  border-color: rgba(39, 211, 162, 0.45);
  color: #06131c;
}
.btn.good:hover {
  background: linear-gradient(
    180deg,
    rgba(39, 211, 162, 1),
    rgba(39, 211, 162, 0.8)
  );
}

.btn.danger {
  background: linear-gradient(
    180deg,
    rgba(255, 77, 109, 0.92),
    rgba(255, 77, 109, 0.7)
  );
  border-color: rgba(255, 77, 109, 0.55);
}

.btn.ghost {
  background: transparent;
}

/* =============================
   Grids / tables
   ============================= */

.grid {
  display: grid;
  gap: 12px;
}
.grid.two {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 860px) {
  .grid.two {
    grid-template-columns: 1fr;
  }
}

.table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.table th,
.table td {
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table th {
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.3px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  position: sticky;
  top: 0;
  z-index: 1;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

/* =============================
   Pills (generic + pickup/delivery)
   ============================= */

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.pill.ok {
  color: #06131c;
  background: rgba(39, 211, 162, 0.9);
  border-color: rgba(39, 211, 162, 0.5);
}
.pill.warn {
  color: #1b1403;
  background: rgba(255, 204, 0, 0.92);
  border-color: rgba(255, 204, 0, 0.5);
}
.pill.done {
  color: #06131c;
  background: rgba(79, 140, 255, 0.9);
  border-color: rgba(79, 140, 255, 0.55);
}

/* pickup/delivery pills */
.pickup-pill {
  background: rgba(46, 125, 50, 0.15);
  color: #2e7d32;
  border-color: rgba(46, 125, 50, 0.25);
}
.delivery-pill {
  background: rgba(21, 101, 192, 0.15);
  color: #1565c0;
  border-color: rgba(21, 101, 192, 0.25);
}

.pickup-label {
  color: #2e7d32;
  font-weight: 700;
}
.delivery-label {
  color: #1565c0;
  font-weight: 700;
}

/* =============================
   Forms (unified controls)
   ============================= */

.field label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.input,
input,
select,
textarea {
  width: 100%;
  background: rgba(10, 16, 30, 0.55);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 12px;
  color: var(--text);
  outline: none;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.4;
  box-sizing: border-box;
}

input,
select {
  height: 48px;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.input:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(79, 140, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.14);
}

/* Select: dark + arrow */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='22,50 70,92 118,50' fill='none' stroke='%23a9b7d9' stroke-width='16' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
  padding-right: 44px;
}

/* dropdown options */
select option {
  background: #1f1f1f;
  color: #ffffff;
}

/* select placeholder */
select.input:invalid {
  color: rgba(232, 238, 252, 0.25);
}

/* when user has selected a real option */
select.input:valid {
  color: var(--text);
}

/* placeholders */
::placeholder,
::-webkit-input-placeholder,
:-ms-input-placeholder,
::-ms-input-placeholder {
  color: rgba(232, 238, 252, 0.25);
}
/* errors */
.error {
  margin-top: 6px;
  font-size: 14px;
  color: #ff6b6b;
  min-height: 18px;
}
.input.is-error {
  outline: 2px solid #ff6b6b;
  outline-offset: 2px;
}

.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 14px;
}

/* =============================
   Suggest dropdown
   ============================= */

.suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;

  background: rgba(10, 16, 30, 0.95);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);

  max-height: 220px;
  overflow: auto;
}

.suggest .item {
  padding: 12px 12px;
  cursor: pointer;
  color: var(--text);
}
.suggest .item:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* =============================
   Kiosk
   ============================= */

.kiosk-wrap {
  min-height: 100vh;
  min-height: 100svh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 18px);
}

.kiosk-card {
  width: min(820px, 96vw);
  padding: 26px;
}

.big-btn {
  width: 100%;
  padding: 26px 18px;
  font-size: 28px;
  border-radius: 20px;
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 700px) {
  .choice-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.notice {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

/* submit overlay/spinner */
#form {
  position: relative;
}

.submit-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 32, 0.75);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.submit-overlay.hidden {
  display: none !important;
}

.spinner {
  width: 64px;
  height: 64px;
  border: 6px solid rgba(255, 255, 255, 0.25);
  border-top-color: #4f8cff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner-text {
  margin-top: 14px;
  text-align: center;
  color: #e8eefc;
  font-size: 16px;
  letter-spacing: 0.3px;
}

/* =============================
   Topbar
   ============================= */

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.topbar .right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* =============================
   Queue header
   ============================= */

.queue-header {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: start;
}

.queue-logo {
  position: absolute;
  top: 0;
  left: 12px;
  height: 125px;
  width: auto;
  display: block;
  margin-top: -25px;
  margin-left: -25px;
  filter: drop-shadow(0 0 6px rgba(143, 162, 255, 0.22))
    drop-shadow(0 3px 3px rgba(0, 0, 0, 0.45));
}

.queue-clock {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1;
  text-align: center;
  padding-top: 2px;
}

.queue-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  text-align: right;
}

.queue-date {
  font-size: 14px;
  opacity: 0.75;
}

#queue-table-wrap {
  margin-top: 8px;
}

/* Queue: completed rows look inactive */
.row-completed td {
  background: rgba(255, 255, 255, 0.03);
  color: rgba(232, 238, 252, 0.55);
}
.row-completed {
  opacity: 0.85;
}

/* =============================
   Admin (mobile-first cards)
   ============================= */

.admin-shell {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-filters {
  position: sticky;
  top: 0;
  z-index: 20;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--border);

  background: linear-gradient(
    180deg,
    rgba(11, 18, 32, 0.92),
    rgba(11, 18, 32, 0.72)
  );

  backdrop-filter: blur(6px);
}

.filter-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
}

.chip {
  width: auto;

  appearance: none;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 12px;
  font-weight: 650;
  font-size: 14px;
  cursor: pointer;
  user-select: none;

  display: inline-flex;
  align-items: center;
  justify-content: center; /* ✅ ЦЕНТР */
  text-align: center; /* ✅ ЦЕНТР */

  gap: 8px;
  white-space: nowrap;
}

.chip:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}
.chip:active {
  transform: translateY(1px);
}

.chip-ghost {
  background: transparent;
}

.chip-toggle.is-on {
  background: linear-gradient(
    180deg,
    rgba(79, 140, 255, 0.92),
    rgba(79, 140, 255, 0.7)
  );
  border-color: rgba(79, 140, 255, 0.45);
}

.chip-caret {
  opacity: 0.75;
  font-size: 12px;
}

.filter-pop {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-start; /* ← теперь сверху */
  justify-content: center;
  padding-top: 72px; /* ← отступ от верха (под шапку) */
  background: rgba(0, 0, 0, 0.55);
}

.filter-pop-inner {
  width: min(640px, 100%);
  border: 1px solid var(--border);
  background: rgba(15, 27, 51, 0.95);
  border-radius: 18px; /* ← было 18px 18px 0 0 */
  padding: 14px;
  box-shadow: var(--shadow);
}

.filter-pop-title {
  font-weight: 800;
  margin-bottom: 10px;
}

.filter-pop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-pop-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.admin-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 760px) {
  .admin-cards {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1100px) {
  .admin-cards {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.admin-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  padding: 14px;
}

.admin-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.admin-time {
  color: var(--muted);
  font-size: 12px;
}

.admin-type {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.admin-company {
  font-weight: 850;
  font-size: 16px;
  margin-top: 6px;
}

.admin-ref-label {
  color: var(--muted);
  font-size: 12px;
  margin-top: 10px;
}

.admin-ref {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.4px;
  margin-top: 2px;
  word-break: break-word;
}

.admin-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin-top: 10px;
}
.admin-meta .line {
  display: flex;
  gap: 8px;
  align-items: baseline;
}
.admin-meta .k {
  color: var(--muted);
  font-size: 12px;
  min-width: 78px;
}
.admin-meta .v {
  font-weight: 650;
  font-size: 14px;
}

/* Status button + icon bar */
.status-wrap {
  position: relative;
  margin-top: 12px;
}

.status-btn {
  width: 100%;
  margin-top: 12px;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 900;
  letter-spacing: 0.8px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.status-btn:active {
  transform: translateY(1px);
}

.status-btn.status-checkedin,
.status-btn.status-inprogress,
.status-btn.status-completed {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.status-caret {
  margin-left: 10px;
  opacity: 0.75;
  font-size: 12px;
}

.status-menu {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 200;
  border: 1px solid var(--border);
  background: rgba(15, 27, 51, 0.98);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.status-opt {
  width: 100%;
  text-align: left;
  padding: 12px 12px;
  background: transparent;
  border: 0;
  color: var(--text);
  font-weight: 750;
  cursor: pointer;
}
.status-opt:hover {
  background: rgba(255, 255, 255, 0.08);
}
.status-opt:active {
  transform: translateY(1px);
}

.admin-iconbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
}
.icon-btn:active {
  transform: translateY(1px);
}

.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  opacity: 0.95;
}

.icon-btn.danger {
  border-color: rgba(255, 80, 80, 0.35);
  background: rgba(255, 80, 80, 0.1);
}

.icon-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

/* Inline editor */
.admin-inline-editor {
  margin-top: 10px;
  margin-bottom: 6px;
}

.admin-editor-card {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.admin-mini {
  font-weight: 800;
  font-size: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.toast-host {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  pointer-events: none;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(15, 27, 51, 0.95);
  box-shadow: var(--shadow);
  color: var(--text);
  font-weight: 750;
  display: flex;
  align-items: center;
  gap: 10px;
}

.toast.ok {
  border-color: rgba(39, 211, 162, 0.45);
}
.toast.err {
  border-color: rgba(255, 77, 109, 0.55);
}

.admin-close-x {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 40px;
  height: 40px;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  font-size: 18px;
  line-height: 1;
}

.select-wrap {
  position: relative;
  width: 100%;
}

.select-wrap select {
  padding-right: 46px;
}

.select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-52%);
  pointer-events: none;
  color: rgba(232, 238, 252, 0.25);
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
}

.container-field-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.container-field-placeholder.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.admin-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.admin-list-item {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.03)
  );
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
  overflow: visible;
}

.admin-list-head {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}

.admin-list-main {
  min-width: 0;
  flex: 1;
}

.admin-list-topline {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.admin-list-time-wrap {
  justify-self: start;
  min-width: 0;
}

.admin-list-time {
  font-size: 12px;
  color: var(--muted);
}

.admin-list-ref-inline {
  justify-self: center;
  text-align: center;
  min-width: 0;
}

.admin-list-ref-value {
  color: var(--text);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.admin-list-type-wrap {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.admin-list-type {
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.admin-list-company-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-list-company {
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
  min-width: 0;
}

.admin-list-side {
  display: none;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.25);
}

.status-dot.checkedin {
  background: #27d3a2;
  box-shadow: 0 0 0 4px rgba(39, 211, 162, 0.12);
}

.status-dot.inprogress {
  background: #ffb020;
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.12);
}

.status-dot.completed {
  background: #4f8cff;
  box-shadow: 0 0 0 4px rgba(79, 140, 255, 0.12);
}

.admin-list-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
}

.admin-list-details {
  display: grid;
  gap: 6px;
  margin-top: 12px;
  font-size: 14px;
}

.admin-list-details .k {
  color: var(--muted);
  font-size: 12px;
}

.admin-list-details .v {
  color: var(--text);
  font-weight: 650;
}

.admin-list-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}

.admin-list-actions .icon-btn {
  flex: 0 0 auto;
}

@media (min-width: 760px) {
  .admin-list-head {
    padding: 14px 16px;
  }

  .admin-list-company {
    font-size: 16px;
  }
}

/* editor container is already relative in твоём варианте */
.admin-editor-relative {
  position: relative;
}

/* Close pill: маленькая как бейдж типа */
.admin-close-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px; /* как pill */
  font-size: 14px; /* как pill (у тебя pill местами 14px) */
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  user-select: none;
}

.busy.hidden {
  display: none;
}

.busy {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.busy-box {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.busy-text {
  font-size: 13px;
  font-weight: 600;
  color: #222;
}

.busy-spinner {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(0, 0, 0, 0.18);
  border-top-color: rgba(0, 0, 0, 0.7);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =============================
   Responsive (mobile)
   ============================= */

@media (max-width: 520px) {
  .card {
    padding: 16px;
  }
  .admin-filters {
    backdrop-filter: none;
  }

  .header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .actions {
    flex-direction: column;
  }
  .actions .btn {
    width: 100%;
  }

  .topbar {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .topbar .right {
    width: 100%;
    justify-content: flex-start;
  }

  .kiosk-card {
    padding: 18px;
    width: min(820px, 100%);
  }

  .big-btn {
    padding: 18px 16px;
    font-size: 22px;
    border-radius: 18px;
  }

  /* tables on mobile */
  .table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .table th {
    position: static;
  }
  .table th,
  .table td {
    white-space: nowrap;
  }
}

/* =============================
   Large screens / TV scaling
   ============================= */

@media (min-width: 1200px) {
  .container {
    max-width: 1400px;
  }

  body {
    font-size: 18px;
  }

  .table th,
  .table td {
    padding: 14px 14px;
    font-size: 16px;
  }

  .h-title h1 {
    font-size: 28px;
  }
  .h-title .sub,
  .badge {
    font-size: 16px;
  }

  .pill {
    font-size: 16px;
    padding: 6px 12px;
  }
}

@media (min-width: 1800px) {
  body {
    font-size: 20px;
  }
  .container {
    max-width: 1600px;
  }

  .table th,
  .table td {
    padding: 16px 16px;
    font-size: 18px;
  }

  .h-title h1 {
    font-size: 34px;
  }
}

@media (min-width: 2000px) {
  .queue-header {
    margin-bottom: 18px;
    padding-top: 24px;
  }
  .topbar {
    margin-bottom: 18px;
  }
  .table {
    margin-top: 10px;
  }
}
