/* ═══════════════════════════════════════════════════════════════
   PASS EXPEDITER - Mobile Optimized 4-Section Layout
   ═══════════════════════════════════════════════════════════════ */

:root {
  --pass-bg-primary: #1a180f;
  --pass-bg-card: #2a2820;
  --pass-bg-dark: #151412;
  --pass-accent-yellow: #FFE66D;
  --pass-accent-green: #00BB4F;
  --pass-accent-red: #FF4444;
  --pass-accent-orange: #FF6B35;
  --pass-text-primary: #f0f0f0;
  --pass-text-muted: #888;
  --pass-border-color: #3a3830;
  --pass-touch-target: 48px;
  --pass-spacing-xs: 4px;
  --pass-spacing-sm: 8px;
  --pass-spacing-md: 12px;
  --pass-spacing-lg: 16px;
}

/* Main Container - Full height flex column */
.pass-expediter-interface {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh; /* Dynamic viewport height for mobile */
  background: linear-gradient(180deg, var(--pass-bg-primary) 0%, #0f0e0c 100%);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION BASE STYLES
   ═══════════════════════════════════════════════════════════════ */

.pass-section {
  flex-shrink: 0;
  padding: var(--pass-spacing-md);
  border-bottom: 2px solid var(--pass-border-color);
  overflow: hidden;
}

.pass-section:last-child {
  border-bottom: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--pass-spacing-sm);
}

.section-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pass-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 1: TICKET PICKER (~12%)
   ═══════════════════════════════════════════════════════════════ */

.pass-ticket-picker {
  flex: 0 0 auto;
  max-height: 15vh;
  min-height: 80px;
  background: var(--pass-bg-card);
}

.ticket-count {
  background: var(--pass-accent-yellow);
  color: var(--pass-bg-primary);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 800;
}

.ticket-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--pass-spacing-md));
  padding: 0 var(--pass-spacing-md);
}

.ticket-scroll-container::-webkit-scrollbar {
  display: none;
}

.ticket-scroll {
  display: flex;
  gap: var(--pass-spacing-sm);
  padding-bottom: var(--pass-spacing-xs);
}

.ticket-btn {
  flex: 0 0 auto;
  min-width: 120px;
  min-height: var(--pass-touch-target);
  padding: var(--pass-spacing-sm) var(--pass-spacing-md);
  background: var(--pass-bg-dark);
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--pass-text-primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  transition: all 0.2s ease;
  position: relative;
  touch-action: manipulation;
}

.ticket-btn:active {
  transform: scale(0.98);
}

.ticket-btn.active {
  border-color: var(--pass-accent-yellow);
  background: rgba(255, 230, 109, 0.1);
}

.ticket-btn.urgent {
  border-color: var(--pass-accent-red);
  animation: pulse-urgent 1.5s infinite;
}

@keyframes pulse-urgent {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 68, 68, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(255, 68, 68, 0); }
}

/* Course-specific styling */
.ticket-btn.course-appetizer {
  border-left: 4px solid #4ECDC4;
}

.ticket-btn.course-appetizer.active {
  background: rgba(78, 205, 196, 0.1);
}

.ticket-btn.course-entree {
  border-left: 4px solid var(--pass-accent-yellow);
}

.ticket-btn.course-entree.active {
  background: rgba(255, 230, 109, 0.1);
}

.ticket-btn.course-dessert {
  border-left: 4px solid #FF6B9D;
}

.ticket-btn.course-dessert.active {
  background: rgba(255, 107, 157, 0.1);
}

.ticket-course {
  font-size: 0.6875rem;
  color: var(--pass-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.urgent-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--pass-accent-red);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 800;
}

.bar-badge {
  position: absolute;
  top: -4px;
  left: -4px;
  background: #9b59b6;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.ticket-btn.bar-order {
  border-color: #9b59b6;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.15) 0%, var(--pass-bg-card) 100%);
}

.ticket-btn.bar-order.active {
  border-color: #9b59b6;
  background: linear-gradient(135deg, rgba(155, 89, 182, 0.25) 0%, rgba(255, 230, 109, 0.1) 100%);
}

.ticket-table {
  font-size: 0.9375rem;
  font-weight: 700;
}

.ticket-guests {
  font-size: 0.75rem;
  color: var(--pass-text-muted);
}

.ticket-time {
  font-size: 0.75rem;
  color: var(--pass-accent-yellow);
  font-family: monospace;
}

.no-tickets-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--pass-spacing-lg);
  color: var(--pass-text-muted);
  min-height: 60px;
}

.message-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.message-text {
  font-size: 0.8125rem;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 2: GUEST'S ORDERED PLATES (~15%)
   ═══════════════════════════════════════════════════════════════ */

.pass-guest-plates {
  flex: 0 0 auto;
  max-height: 18vh;
  min-height: 90px;
  background: var(--pass-bg-card);
}

.pass-guest-plates.empty {
  display: flex;
  align-items: center;
  justify-content: center;
}

.select-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--pass-text-muted);
}

.hint-icon {
  font-size: 1.75rem;
  margin-bottom: 4px;
}

.hint-text {
  font-size: 0.8125rem;
}

.guest-nav {
  display: flex;
  align-items: center;
  gap: var(--pass-spacing-md);
}

.nav-btn {
  width: 40px;
  height: 40px;
  min-height: var(--pass-touch-target);
  background: var(--pass-bg-dark);
  border: 2px solid var(--pass-border-color);
  border-radius: 50%;
  color: var(--pass-text-primary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.nav-btn:active:not(:disabled) {
  background: var(--pass-accent-yellow);
  color: var(--pass-bg-primary);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.guest-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--pass-text-primary);
  white-space: nowrap;
}

.course-badge {
  font-size: 0.75rem;
  color: var(--pass-text-primary);
  background: var(--pass-bg-dark);
  padding: 6px 12px;
  border-radius: 12px;
  font-weight: 600;
}

/* Steak temperature indicator - Base style */
.steak-temp {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 2px;
  font-weight: 700;
  display: inline-block;
}

/* Rare - Red text on light red background */
.steak-temp[data-temp="rare"] {
  color: #ff3333 !important;
  background: rgba(255, 51, 51, 0.2) !important;
}

/* Med-Rare - Orange text on light orange background */
.steak-temp[data-temp="med-rare"] {
  color: #ff6600 !important;
  background: rgba(255, 102, 0, 0.2) !important;
}

/* Medium - Yellow/Gold text on light yellow background */
.steak-temp[data-temp="medium"] {
  color: #ffcc00 !important;
  background: rgba(255, 204, 0, 0.25) !important;
}

/* Med-Well - Light orange text on darker background */
.steak-temp[data-temp="med-well"] {
  color: #ff9933 !important;
  background: rgba(255, 153, 51, 0.2) !important;
}

/* Well - Brown text on light brown background */
.steak-temp[data-temp="well"] {
  color: #8b4513 !important;
  background: rgba(139, 69, 19, 0.25) !important;
}

.plates-list {
  display: flex;
  flex-direction: column;
  gap: var(--pass-spacing-sm);
  overflow-y: scroll !important;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: var(--pass-spacing-xs) 0;
  max-height: 140px;
  min-height: 80px;
  flex: 1;
  touch-action: pan-y;
}

.plates-list::-webkit-scrollbar {
  width: 6px;
}

.plates-list::-webkit-scrollbar-thumb {
  background: var(--pass-border-color);
  border-radius: 3px;
}

/* Ensure pass-guest-plates section allows scrolling */
.pass-guest-plates {
  flex: 0 0 auto;
  max-height: 25vh;
  min-height: 120px;
  background: var(--pass-bg-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.plate-btn {
  flex: 0 0 auto;
  min-width: 140px;
  min-height: var(--pass-touch-target);
  padding: var(--pass-spacing-sm);
  background: var(--pass-bg-dark);
  border: 2px solid transparent;
  border-radius: 12px;
  color: var(--pass-text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--pass-spacing-sm);
  transition: all 0.2s ease;
  position: relative;
  touch-action: manipulation;
}

.plate-btn:active {
  transform: scale(0.98);
}

.plate-btn.active {
  border-color: var(--pass-accent-yellow);
  background: rgba(255, 230, 109, 0.1);
}

.plate-btn.complete {
  border-color: var(--pass-accent-green);
  background: rgba(0, 187, 79, 0.1);
}

.plate-icon {
  font-size: 1.75rem;
}

.plate-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
}

.plate-name {
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
}

.plate-requirements {
  font-size: 1rem;
  opacity: 0.7;
}

/* Plate temperature badge in guest plates list */
.plate-temp-badge {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin: 2px 0;
  display: inline-block;
}

/* Required temperature badge in checklist */
.required-temp-badge {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
  margin-left: 6px;
  display: inline-block;
}

/* Temperature colors - same as stock items */
.plate-temp-badge[data-temp="rare"],
.required-temp-badge[data-temp="rare"] {
  color: #ff3333 !important;
  background: rgba(255, 51, 51, 0.2) !important;
}

.plate-temp-badge[data-temp="med-rare"],
.required-temp-badge[data-temp="med-rare"] {
  color: #ff6600 !important;
  background: rgba(255, 102, 0, 0.2) !important;
}

.plate-temp-badge[data-temp="medium"],
.required-temp-badge[data-temp="medium"] {
  color: #ffcc00 !important;
  background: rgba(255, 204, 0, 0.25) !important;
}

.plate-temp-badge[data-temp="med-well"],
.required-temp-badge[data-temp="med-well"] {
  color: #ff9933 !important;
  background: rgba(255, 153, 51, 0.2) !important;
}

.plate-temp-badge[data-temp="well"],
.required-temp-badge[data-temp="well"] {
  color: #8b4513 !important;
  background: rgba(139, 69, 19, 0.25) !important;
}

.complete-check {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--pass-accent-green);
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.no-plates {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: var(--pass-spacing-lg);
  color: var(--pass-text-muted);
}

.no-plates-icon {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.no-plates-text {
  font-size: 0.8125rem;
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 3: KITCHEN STOCK (Largest ~43%)
   ═══════════════════════════════════════════════════════════════ */

.pass-kitchen-stock {
  flex: 1 1 auto;
  min-height: 0; /* Allow flex shrinking */
  background: var(--pass-bg-dark);
  display: flex;
  flex-direction: column;
}

.stock-count {
  font-size: 0.75rem;
  color: var(--pass-text-muted);
  background: var(--pass-bg-card);
  padding: 4px 10px;
  border-radius: 12px;
}

.stock-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--pass-spacing-md));
  padding: 0 var(--pass-spacing-md);
}

.stock-category {
  margin-bottom: var(--pass-spacing-md);
}

.category-label {
  font-size: 0.6875rem;
  color: var(--pass-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--pass-spacing-sm);
  padding-left: 4px;
}

.stock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: var(--pass-spacing-sm);
}

.stock-item {
  aspect-ratio: 1;
  min-height: var(--pass-touch-target);
  padding: var(--pass-spacing-sm);
  background: var(--pass-bg-card);
  border: 2px solid var(--pass-border-color);
  border-radius: 12px;
  color: var(--pass-text-primary);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s ease;
  position: relative;
  touch-action: manipulation;
}

.stock-item:active:not(:disabled) {
  transform: scale(0.95);
  border-color: var(--pass-accent-yellow);
}

.stock-item.added {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: var(--pass-accent-green);
}

.stock-item.hot {
  border-color: var(--pass-accent-orange);
}

.stock-item.hot:active:not(:disabled) {
  border-color: #ff8c5a;
  box-shadow: 0 0 8px rgba(255, 107, 53, 0.4);
}

.item-icon {
  font-size: 1.75rem;
}

.item-name {
  font-size: 0.6875rem;
  text-align: center;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.temp-indicator {
  position: absolute;
  top: 4px;
  right: 4px;
  font-size: 0.875rem;
  animation: pulse-fire 1s infinite;
}

@keyframes pulse-fire {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.added-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--pass-accent-green);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
}

.no-stock-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 150px;
  color: var(--pass-text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   SECTION 4: PLATE ASSEMBLY (Bottom ~30%)
   ═══════════════════════════════════════════════════════════════ */

.pass-assembly {
  flex: 0 0 auto;
  max-height: 45vh;
  min-height: 180px;
  background: var(--pass-bg-card);
  display: flex;
  flex-direction: column;
}

.pass-assembly.empty {
  align-items: center;
  justify-content: center;
}

.select-plate-hint {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--pass-text-muted);
}

.pass-assembly.complete {
  background: rgba(0, 187, 79, 0.15);
  border-top: 3px solid var(--pass-accent-green);
}

.pass-assembly.overfilled {
  background: rgba(255, 230, 109, 0.15);
  border-top: 3px solid var(--pass-accent-yellow);
}

.assembly-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--pass-spacing-sm);
}

.assembly-title {
  display: flex;
  align-items: center;
  gap: var(--pass-spacing-sm);
}

.plate-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--pass-text-primary);
}

.assembly-status {
  font-size: 0.8125rem;
  color: var(--pass-accent-yellow);
  font-weight: 700;
}

.pass-assembly.complete .assembly-status {
  color: var(--pass-accent-green);
}

.clear-btn {
  width: 44px;
  height: 44px;
  min-height: var(--pass-touch-target);
  background: rgba(255, 68, 68, 0.2);
  border: 2px solid var(--pass-accent-red);
  border-radius: 50%;
  color: var(--pass-accent-red);
  font-size: 1.125rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.clear-btn:active {
  background: var(--pass-accent-red);
  color: white;
}

/* Progress Bar */
.progress-bar {
  height: 8px;
  background: var(--pass-bg-dark);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: var(--pass-spacing-sm);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--pass-accent-yellow), var(--pass-accent-green));
  border-radius: 4px;
  transition: width 0.3s ease;
}

.pass-assembly.complete .progress-fill {
  background: var(--pass-accent-green);
}

/* Checklist */
.checklist {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  margin: 0 calc(-1 * var(--pass-spacing-md));
  padding: var(--pass-spacing-sm) var(--pass-spacing-md);
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  max-height: 200px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: var(--pass-spacing-sm);
  padding: 10px 0;
  border-bottom: 1px solid var(--pass-border-color);
  min-height: 44px;
}

.check-item:last-child {
  border-bottom: none;
}

.check-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--pass-text-muted);
}

.check-item.checked .check-icon {
  color: var(--pass-accent-green);
}

.check-content {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--pass-spacing-sm);
}

.check-content .item-icon {
  font-size: 1.25rem;
}

.check-content .item-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--pass-text-primary);
}

.check-item.checked .check-content {
  opacity: 0.7;
}

.remove-item-btn {
  width: 32px;
  height: 32px;
  background: rgba(255, 68, 68, 0.2);
  border: none;
  border-radius: 50%;
  color: var(--pass-accent-red);
  font-size: 0.875rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.remove-item-btn:active {
  background: var(--pass-accent-red);
  color: white;
}

/* Extra Items Warning */
.extra-items {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--pass-spacing-sm);
  padding: var(--pass-spacing-sm);
  background: rgba(255, 230, 109, 0.1);
  border-radius: 8px;
  margin-bottom: var(--pass-spacing-sm);
}

.extra-label {
  font-size: 0.6875rem;
  color: var(--pass-accent-yellow);
  text-transform: uppercase;
}

.extra-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: var(--pass-bg-dark);
  border-radius: 12px;
  font-size: 0.75rem;
}

.remove-extra-btn {
  width: 18px;
  height: 18px;
  background: rgba(255, 68, 68, 0.3);
  border: none;
  border-radius: 50%;
  color: var(--pass-accent-red);
  font-size: 0.625rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Ticket Actions */
.ticket-actions {
  padding-top: var(--pass-spacing-sm);
  border-top: 1px solid var(--pass-border-color);
}

.finish-ticket-btn {
  width: 100%;
  min-height: 56px;
  padding: var(--pass-spacing-md);
  background: var(--pass-bg-dark);
  border: 2px solid var(--pass-border-color);
  border-radius: 14px;
  color: var(--pass-text-muted);
  font-size: 1rem;
  font-weight: 700;
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--pass-spacing-sm);
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.finish-ticket-btn.ready {
  background: var(--pass-accent-green);
  border-color: var(--pass-accent-green);
  color: white;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 187, 79, 0.3);
}

.finish-ticket-btn.ready:active {
  transform: translateY(2px);
  box-shadow: 0 2px 6px rgba(0, 187, 79, 0.3);
}

.finish-ticket-btn .btn-icon {
  font-size: 1.25rem;
}

.finish-ticket-btn .btn-count {
  font-size: 0.8125rem;
  opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */

.pass-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--pass-accent-green);
  color: white;
  padding: var(--pass-spacing-md) var(--pass-spacing-lg);
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 1000;
  white-space: nowrap;
}

.pass-toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Larger phones */
@media (min-height: 700px) {
  .pass-ticket-picker {
    max-height: 12vh;
  }
  
  .pass-guest-plates {
    max-height: 15vh;
  }
  
  .pass-assembly {
    max-height: 32vh;
  }
  
  .stock-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}

/* Tablets / Large phones */
@media (min-height: 800px) {
  .stock-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
  
  .ticket-btn {
    min-width: 140px;
  }
  
  .plate-btn {
    min-width: 160px;
  }
}

/* Small phones */
@media (max-height: 600px) {
  .pass-section {
    padding: var(--pass-spacing-sm);
  }
  
  .ticket-btn {
    min-width: 100px;
    padding: 6px 10px;
  }
  
  .plate-btn {
    min-width: 120px;
  }
  
  .stock-grid {
    grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
    gap: 6px;
  }
  
  .stock-item {
    padding: 6px;
  }
  
  .item-icon {
    font-size: 1.5rem;
  }
  
  .item-name {
    font-size: 0.625rem;
  }
  
  .finish-ticket-btn {
    min-height: 48px;
    font-size: 0.9375rem;
  }
}

/* Landscape orientation */
@media (orientation: landscape) and (max-height: 500px) {
  .pass-expediter-interface {
    flex-direction: row;
  }
  
  .pass-section {
    flex: 1;
    border-bottom: none;
    border-right: 2px solid var(--pass-border-color);
    max-height: 100vh;
  }
  
  .pass-section:last-child {
    border-right: none;
  }
  
  .pass-ticket-picker,
  .pass-guest-plates,
  .pass-kitchen-stock,
  .pass-assembly {
    max-height: 100vh;
  }
  
  .ticket-scroll,
  .plates-list {
    flex-direction: column;
  }
  
  .ticket-btn,
  .plate-btn {
    min-width: auto;
    width: 100%;
  }
  
  .stock-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .ticket-btn.active,
  .plate-btn.active {
    border-width: 3px;
  }
  
  .stock-item {
    border-width: 2px;
  }
  
  .check-item.checked .check-icon {
    font-weight: 700;
  }
}