* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: linear-gradient(135deg, #0a1628 0%, #132b47 50%, #1a3a5c 100%);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow: hidden;
    height: 100vh;
}

.ws-wrap {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Header ── */
.ws-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 36px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.ws-header-left {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ws-name {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.ws-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.ws-header-right {
    text-align: right;
}

.ws-time {
    font-size: 32px;
    font-weight: 200;
    color: #fff;
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

/* ── Body: two panels ── */
.ws-body {
    flex: 1;
    display: flex;
    overflow: hidden;
}

/* ── Left panel: ticket ── */
.ws-ticket-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 40px;
    gap: 32px;
    min-width: 0;
}

.ws-ticket {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.ws-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: rgba(255,255,255,0.5);
    font-size: 26px;
    font-weight: 400;
    letter-spacing: 0.5px;
    border: 2px dashed rgba(255,255,255,0.12);
    border-radius: 20px;
    padding: 48px 64px;
    animation: ws-pulse 3s ease-in-out infinite;
}

.ws-empty i {
    font-size: 56px;
    opacity: 0.6;
}

@keyframes ws-pulse {
    0%, 100% { border-color: rgba(255,255,255,0.12); }
    50% { border-color: rgba(255,255,255,0.25); }
}

.ws-st-badge {
    font-size: 14px;
    font-weight: 700;
    padding: 6px 28px;
    border-radius: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.ws-st-called {
    background: rgba(255,193,7,0.15);
    color: #ffc107;
    border: 1px solid rgba(255,193,7,0.3);
    box-shadow: 0 0 16px rgba(255,193,7,0.06);
}

.ws-st-progress {
    background: rgba(40,167,69,0.15);
    color: #4cdf7a;
    border: 1px solid rgba(40,167,69,0.3);
    box-shadow: 0 0 16px rgba(40,167,69,0.06);
}

.ws-st-number {
    font-size: 130px;
    font-weight: 800;
    color: #ff9800;
    letter-spacing: 12px;
    line-height: 1;
    text-shadow: 0 0 50px rgba(255,152,0,0.18);
}

.ws-st-service {
    font-size: 26px;
    color: rgba(255,255,255,0.8);
    font-weight: 500;
}

.ws-st-timer {
    font-size: 36px;
    font-weight: 200;
    color: rgba(255,255,255,0.35);
    font-variant-numeric: tabular-nums;
    letter-spacing: 2px;
}

/* ── Queue badges (left panel) ── */
.ws-queues {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.ws-q-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.07);
    color: rgba(255,255,255,0.85);
    padding: 8px 20px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 0.2px;
}

.ws-q-badge i {
    font-size: 14px;
    color: rgba(255,255,255,0.35);
}

/* ── Right panel: staff ── */
.ws-staff-panel {
    width: 380px;
    flex-shrink: 0;
    background: rgba(0,0,0,0.2);
    border-left: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    padding: 24px 20px;
    gap: 20px;
    overflow-y: auto;
}

.ws-staff-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ws-staff-title {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Current employee card */
.ws-current-employee {
    display: none;
    align-items: center;
    gap: 16px;
    background: rgba(255,152,0,0.08);
    border: 1px solid rgba(255,152,0,0.25);
    border-radius: 14px;
    padding: 16px 20px;
}

.ws-ce-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255,152,0,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #ff9800;
    flex-shrink: 0;
}

.ws-ce-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.ws-ce-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    word-break: break-word;
    line-height: 1.35;
}

.ws-ce-role {
    font-size: 12px;
    font-weight: 600;
    color: #ff9800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Other employees list */
.ws-other-employees {
    flex: 1;
}

.ws-emp-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ws-emp-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 10px;
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    transition: background 0.12s;
}

.ws-emp-item i {
    font-size: 15px;
    color: rgba(255,255,255,0.25);
    flex-shrink: 0;
}

.ws-emp-item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ws-emp-empty {
    font-size: 13px;
    color: rgba(255,255,255,0.2);
    padding: 8px 12px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .ws-body { flex-direction: column; }
    .ws-staff-panel {
        width: 100%;
        max-height: 35vh;
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.06);
        padding: 16px;
    }
    .ws-ticket-panel { padding: 24px; }
    .ws-st-number { font-size: 90px; letter-spacing: 8px; }
}

@media (max-width: 600px) {
    .ws-header { padding: 10px 16px; }
    .ws-name { font-size: 17px; }
    .ws-subtitle { font-size: 10px; }
    .ws-time { font-size: 24px; }
    .ws-ticket-panel { padding: 16px; gap: 20px; }
    .ws-st-number { font-size: 64px; letter-spacing: 6px; }
    .ws-st-service { font-size: 20px; }
    .ws-st-timer { font-size: 26px; }
    .ws-q-badge { font-size: 14px; padding: 6px 14px; }
    .ws-staff-panel { max-height: 30vh; }
    .ws-ce-avatar { width: 44px; height: 44px; font-size: 20px; }
    .ws-ce-name { font-size: 16px; }
}

/* ── Предварительная запись: бейдж и подсветка ───────────────── */
.ticket-booking-badge,
.tq-booking-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 0.72em;
  font-weight: 600;
  line-height: 1.45;
  background: rgba(13, 110, 253, 0.16);
  color: #0d6efd;
  white-space: nowrap;
}
.tq-booking-badge { margin-left: 6px; }
.is-booking, .ticket-booking {
  border-left: 3px solid #0d6efd !important;
  background: rgba(13, 110, 253, 0.06) !important;
}
