/* ================================================================
   STAFF ROOM UI — Phone-optimized dark theme
   ================================================================ */

/* ---- Staff Mode: hide header & tab bar ---- */
body.staff-mode .header,
body.staff-mode .tab-bar {
  display: none !important;
}
body.staff-mode main {
  padding: 0;
  max-width: 100%;
}
body.staff-mode {
  background: #1a1a2e;
  color: #e0e0e0;
}

/* ---- Staff Top Bar ---- */
.staff-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #16213e;
  border-bottom: 1px solid #2a2a4a;
  position: sticky;
  top: 0;
  z-index: 50;
}
.staff-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.staff-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #e0e0e0;
  font-size: 1.2rem;
  transition: background .2s;
}
.staff-back-btn:active {
  background: rgba(255,255,255,.2);
}
.staff-topbar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}
.staff-reload-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.1);
  color: #e0e0e0;
  font-size: 1.1rem;
  transition: background .2s;
}
.staff-reload-btn:active {
  background: rgba(255,255,255,.2);
}

/* ---- Screen 1: Floor Select ---- */
.staff-floor-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.staff-floor-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: #16213e;
  border-radius: 12px;
  border: 1px solid #2a2a4a;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  transition: background .2s, transform .1s;
}
.staff-floor-btn:active {
  background: #1a2744;
  transform: scale(0.98);
}
.staff-floor-btn .floor-label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.staff-floor-btn .floor-num {
  font-size: 1.5rem;
  font-weight: 800;
  min-width: 50px;
}
.staff-floor-btn .floor-count {
  font-size: .9rem;
  color: #9e9e9e;
  font-weight: 400;
}
.staff-floor-btn .floor-arrow {
  color: #666;
  font-size: 1.2rem;
}

/* ---- Screen 2: Room List ---- */
.staff-room-list {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.staff-room-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: #16213e;
  border-radius: 10px;
  border: 1px solid #2a2a4a;
  transition: background .2s, transform .1s;
  cursor: pointer;
  min-height: 56px;
}
.staff-room-row:active {
  background: #1a2744;
  transform: scale(0.98);
}
.staff-room-num {
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  min-width: 64px;
  text-align: center;
}
.staff-room-bar {
  flex: 1;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 14px;
}
.staff-room-status-text {
  font-size: .95rem;
  font-weight: 600;
  color: #fff;
}

/* ---- Screen 3: Status Picker (Modal) ---- */
.staff-status-picker {
  padding: 0;
}
.staff-status-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.staff-status-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #2a2a4a;
  cursor: pointer;
  transition: background .15s;
  min-height: 54px;
}
.staff-status-item:last-child {
  border-bottom: none;
}
.staff-status-item:active {
  background: rgba(255,255,255,.05);
}
.staff-status-item.current {
  background: rgba(255, 193, 7, .15);
}
.staff-status-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}
.staff-status-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e0e0e0;
}
.staff-status-item.current .staff-status-label {
  color: #ffc107;
}
.staff-status-check {
  margin-left: auto;
  font-size: 1.2rem;
  color: #ffc107;
}

/* Staff modal memo */
.staff-memo-section {
  padding: 16px 20px;
  border-top: 1px solid #2a2a4a;
}
.staff-memo-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #2a2a4a;
  background: #0f1629;
  color: #e0e0e0;
  font-size: .95rem;
  outline: none;
}
.staff-memo-input::placeholder {
  color: #666;
}

/* ---- Staff Modal Override ---- */
body.staff-mode .modal-overlay {
  background: rgba(0,0,0,.7);
}
body.staff-mode .modal-content {
  background: #1a1a2e;
  color: #e0e0e0;
  border: 1px solid #2a2a4a;
  border-radius: 16px;
  max-width: 400px;
  margin: auto;
}
body.staff-mode .modal-header {
  background: #16213e;
  border-bottom: 1px solid #2a2a4a;
  border-radius: 16px 16px 0 0;
  padding: 16px 20px;
}
body.staff-mode .modal-header h2 {
  color: #fff;
  font-size: 1.15rem;
}
body.staff-mode .btn-close {
  color: #999;
  font-size: 1.4rem;
}
body.staff-mode .modal-body {
  padding: 0;
}

/* ---- Summary bar at top of floor view ---- */
.staff-summary-bar {
  display: flex;
  gap: 8px;
  padding: 12px 16px 4px;
  flex-wrap: wrap;
}
.staff-summary-chip {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  color: #fff;
}
