/* Live Service Requests & Live Orders / QR Scanner Styles */
/* ========================================================
   LIVE TABLE CALLS DEDICATED TAB STYLING
   ======================================================== */

.owner-live-pulse-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.owner-live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: liveDotPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes liveDotPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.owner-requests-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

#tab-pane-requests .owner-pane-header > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

#btn-requests-mark-all-attended {
  white-space: nowrap;
  flex-shrink: 0;
}

.owner-requests-heading-line {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.owner-utility-pill-group {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.owner-utility-pill-group .owner-orders-icon-btn {
  width: 38px !important;
  min-width: 38px !important;
  height: 38px;
  min-height: 38px;
  padding: 0 !important;
  border-radius: 8px;
  flex: 0 0 38px !important;
}

.owner-requests-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.owner-requests-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.owner-requests-kpi-card.is-pending {
  border-color: #fdba74;
  background: linear-gradient(180deg, #fffaf5 0%, #ffffff 100%);
  box-shadow: 0 4px 12px -2px rgba(234, 88, 12, 0.1);
}

.owner-requests-kpi-card.is-attended {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.owner-requests-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.owner-requests-kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.owner-requests-kpi-badge-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.owner-requests-kpi-value {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.owner-requests-kpi-card.is-pending .owner-requests-kpi-value {
  color: #ea580c;
}

.owner-requests-kpi-card.is-attended .owner-requests-kpi-value {
  color: #16a34a;
}

.owner-requests-kpi-sub {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Toolbar: Filter Pills & Search */
.owner-requests-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.owner-requests-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.owner-requests-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.owner-requests-filter-tab:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.owner-requests-filter-tab.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.owner-requests-tab-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.owner-requests-filter-tab.active .owner-requests-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.owner-requests-tab-count.is-warn {
  background: #fee2e2;
  color: #b91c1c;
}

.owner-requests-filter-tab.active .owner-requests-tab-count.is-warn {
  background: #ef4444;
  color: #ffffff;
}

.owner-requests-search-box {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0 0.75rem;
  height: 36px;
  flex: 0 1 260px;
  min-width: 170px;
  max-width: 300px;
  box-sizing: border-box;
}

.owner-requests-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  color: #0f172a;
  width: 100%;
  min-width: 0;
}

/* Board / Grid Layout */
.owner-requests-board {
  min-height: 250px;
}

.owner-requests-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 285px), 1fr));
  gap: 1.15rem;
}

/* Active Live Alert Card (Only for Pending Calls) */
.owner-request-alert-card {
  background: #ffffff;
  border: 1.5px solid #fb923c;
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  box-shadow: 0 4px 15px -2px rgba(234, 88, 12, 0.12), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.owner-request-alert-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -3px rgba(234, 88, 12, 0.18);
}

.owner-request-alert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4.5px;
  background: linear-gradient(90deg, #ea580c, #f97316);
}

.owner-request-alert-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.owner-request-alert-qr {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.owner-request-alert-qr-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

.owner-request-alert-time {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #c2410c;
  background: #fff7ed;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  width: fit-content;
}

.owner-request-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.owner-request-status-badge.attended {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #dc2626;
  animation: liveDotPulse 1.5s infinite;
  flex-shrink: 0;
}

/* Call Note Box (Only rendered if guest provided a note) */
.owner-request-note-box {
  background: #fffaf5;
  border: 1px solid #fed7aa;
  border-left: 3.5px solid #ea580c;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
}

.owner-request-note-heading {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ea580c;
  margin-bottom: 0.2rem;
}

.owner-request-note-msg {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.4;
  word-break: break-word;
}

.owner-request-alert-actions {
  margin-top: auto;
  padding-top: 0.4rem;
}

.owner-request-btn-attend-tab {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}

.owner-request-btn-attend-tab:hover {
  background: #166534;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(22, 101, 52, 0.25);
}

/* Order Call Specific Verification & Scan Action */
.owner-request-alert-card.is-order-call {
  border-color: #f97316;
  background: linear-gradient(180deg, #ffffff 0%, #fffbf7 100%);
}

.owner-request-alert-actions-order {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.owner-request-order-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  line-height: 1.3;
}

.owner-request-order-pill svg {
  flex-shrink: 0;
}

.owner-request-btn-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  width: 100%;
}

.owner-request-btn-scan-tab {
  flex: 1 1 165px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.25);
}

.owner-request-btn-scan-tab:hover {
  background: linear-gradient(135deg, #c2410c 0%, #9a3412 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.35);
}

.owner-request-btn-force-attend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.owner-request-btn-force-attend:hover {
  background: #e2e8f0;
  color: #334155;
  border-color: #94a3b8;
}

.owner-btn-scan-mini {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ea580c;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.65rem;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}

.owner-btn-scan-mini:hover {
  background: #c2410c;
}

/* Compact History Table */
.owner-requests-table-wrap {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow-x: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.owner-requests-table-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.15rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.owner-requests-table-heading {
  font-size: 0.88rem;
  font-weight: 800;
  color: #1e293b;
}

.owner-btn-clear-logs {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #ffffff;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.owner-btn-clear-logs:hover {
  background: #fef2f2;
  border-color: #f87171;
  color: #b91c1c;
}

.owner-requests-table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.owner-requests-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #e2e8f0;
}

.owner-requests-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}

.owner-requests-table tr:last-child td {
  border-bottom: none;
}

.owner-requests-table tr:hover td {
  background: #f8fafc;
}

.owner-request-table-note {
  display: inline-block;
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
}

.owner-btn-attend-mini {
  background: #0f172a;
  color: #ffffff;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.owner-btn-attend-mini:hover {
  background: #166534;
}

/* Attended By badge & cell in history table */
.owner-request-attender-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  align-items: flex-start;
}

.owner-request-attender-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #1e293b;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Empty State */
.owner-requests-empty-state {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}

.owner-requests-empty-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem auto;
}

.owner-requests-empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.owner-requests-empty-desc {
  font-size: 0.85rem;
  color: #64748b;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ==========================================================================
   Live Orders & Kitchen Orders System (QR Code Checkout Acceptance)
   ========================================================================== */
.owner-orders-header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  flex-shrink: 0;
}

#tab-pane-orders .owner-pane-header > div:first-child {
  min-width: 0;
  flex: 1 1 auto;
}

#btn-orders-scan-qr {
  white-space: nowrap;
  flex-shrink: 0;
}

.owner-orders-icon-btn {
  width: 38px;
  height: 38px;
  min-width: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.owner-orders-icon-btn svg {
  width: 17px;
  height: 17px;
}

.owner-orders-icon-btn.is-muted {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.owner-orders-icon-btn.is-muted:hover {
  background: #fee2e2;
  border-color: #fca5a5;
}

.owner-orders-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.owner-orders-kpi-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
}

.owner-orders-kpi-card.is-new {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
  box-shadow: 0 4px 12px -2px rgba(245, 158, 11, 0.12);
}

.owner-orders-kpi-card.is-cooking {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 100%);
  box-shadow: 0 4px 12px -2px rgba(99, 102, 241, 0.12);
}

.owner-orders-kpi-card.is-served {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
}

.owner-orders-kpi-card.is-revenue {
  border-color: #ddd6fe;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 100%);
}

.owner-orders-kpi-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  min-width: 0;
}

.owner-orders-kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.owner-orders-kpi-badge-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.owner-orders-kpi-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.1;
}

.owner-orders-kpi-card.is-new .owner-orders-kpi-value {
  color: #d97706;
}

.owner-orders-kpi-card.is-cooking .owner-orders-kpi-value {
  color: #4f46e5;
}

.owner-orders-kpi-card.is-served .owner-orders-kpi-value {
  color: #059669;
}

.owner-orders-kpi-card.is-revenue .owner-orders-kpi-value {
  color: #7c3aed;
}

.owner-orders-kpi-sub {
  font-size: 0.76rem;
  color: #94a3b8;
  font-weight: 500;
}

/* Orders Toolbar */
.owner-orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding: 0.65rem 0.85rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.owner-orders-filter-tabs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.owner-orders-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.owner-orders-filter-tab:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.owner-orders-filter-tab.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.owner-orders-tab-count {
  background: rgba(0, 0, 0, 0.08);
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.owner-orders-filter-tab.active .owner-orders-tab-count {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.owner-orders-tab-count.is-warn {
  background: #fef3c7;
  color: #b45309;
}

.owner-orders-filter-tab.active .owner-orders-tab-count.is-warn {
  background: #f59e0b;
  color: #ffffff;
}

.owner-orders-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.owner-orders-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.owner-orders-toggle-pill:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.owner-orders-toggle-pill.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
}

.owner-orders-search-box {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  min-width: 240px;
}

.owner-orders-search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 0.82rem;
  color: #0f172a;
  width: 100%;
}

/* Orders Responsive CSS Grid & Kitchen Ticket Cards */
.owner-orders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.1rem;
  align-items: start;
  width: 100%;
}

.owner-order-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.owner-order-card.is-sla-warn {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.18);
}

.owner-order-card.is-sla-urgent {
  border-color: #ef4444;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.22);
}

.owner-order-time-elapsed.is-sla-warn {
  background: #fef3c7;
  color: #b45309;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-weight: 700;
}

.owner-order-time-elapsed.is-sla-urgent {
  background: #fee2e2;
  color: #b91c1c;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-weight: 800;
}

.owner-order-action-btn.btn-undo {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  font-size: 0.76rem;
}

.owner-order-action-btn.btn-undo:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.owner-order-unpaid-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 9999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: #fef3c7;
  color: #b45309;
  margin-left: 0.4rem;
}

.owner-order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.08);
}

.owner-order-card.status-new {
  border-top: 4px solid #f59e0b;
}

.owner-order-card.status-cooking {
  border-top: 4px solid #6366f1;
}

.owner-order-card.status-served {
  border-top: 4px solid #10b981;
}

.owner-order-card.status-completed {
  border-top: 4px solid #0f766e;
}

.owner-order-card.status-cancelled {
  border-top: 4px solid #94a3b8;
  opacity: 0.75;
}

.owner-order-card-header {
  padding: 0.8rem 0.95rem;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.owner-order-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #0f172a;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  letter-spacing: 0.02em;
}
.owner-order-qr-badge.is-parcel {
  background: #7c2d12;
  color: #fff7ed;
}

.owner-order-header-right {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.owner-order-time-elapsed {
  font-size: 0.74rem;
  color: #64748b;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.owner-order-status-pill {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.owner-order-status-pill.pill-new {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.owner-order-status-pill.pill-cooking {
  background: #e0e7ff;
  color: #4338ca;
  border: 1px solid #c7d2fe;
}

.owner-order-status-pill.pill-served {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.owner-order-status-pill.pill-completed {
  background: #ecfdf5;
  color: #0f766e;
  border: 1px solid #a7f3d0;
}

.owner-order-paid-tag {
  flex: 1;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f766e;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.owner-order-status-pill.pill-cancelled {
  background: #f1f5f9;
  color: #64748b;
}

.owner-order-card-body {
  padding: 0.95rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.owner-order-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: #64748b;
}

.owner-order-id-tag {
  font-family: monospace;
  font-weight: 700;
  color: #334155;
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

/* Items in Ticket */
.owner-order-items-box {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  border-top: 1px dashed #e2e8f0;
  border-bottom: 1px dashed #e2e8f0;
  padding: 0.65rem 0;
}

.owner-order-item-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.84rem;
}

.owner-order-item-left {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  flex: 1;
}

.owner-order-item-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  background: #f1f5f9;
  color: #0f172a;
  font-weight: 800;
  font-size: 0.75rem;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.owner-order-item-name {
  font-weight: 600;
  color: #1e293b;
  line-height: 1.35;
}

.owner-order-item-price {
  font-weight: 700;
  color: #334155;
  font-size: 0.84rem;
  white-space: nowrap;
}

.owner-order-note-badge {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
  font-size: 0.76rem;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Accepted By Staff Row */
.owner-order-verifier-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.78rem;
  padding: 0.35rem 0.55rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
}

.owner-order-verifier-label {
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
}

.owner-order-verifier-info {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.owner-order-verifier-name {
  font-weight: 700;
  color: #1e293b;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Bill Footer */
.owner-order-bill-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f172a;
  padding-top: 0.2rem;
}

.owner-order-card-actions {
  padding: 0.7rem 0.95rem;
  background: #fafafa;
  border-top: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.owner-order-action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  white-space: nowrap;
}

.owner-order-action-btn.btn-cook {
  background: #4f46e5;
  color: #ffffff;
}

.owner-order-action-btn.btn-cook:hover {
  background: #4338ca;
}

.owner-order-action-btn.btn-serve {
  background: #10b981;
  color: #ffffff;
}

.owner-order-action-btn.btn-serve:hover {
  background: #059669;
}

.owner-order-action-btn.btn-print {
  background: #ffffff;
  color: #475569;
  border: 1px solid #cbd5e1;
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
}

.owner-order-action-btn.btn-print:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.owner-order-action-btn.btn-cancel {
  background: transparent;
  color: #ef4444;
  border: 1px solid #fecaca;
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
}

.owner-order-action-btn.btn-cancel:hover {
  background: #fef2f2;
}

/* Empty Orders State */
.owner-orders-empty {
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
}

.owner-orders-empty-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ecfdf5;
  color: #059669;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.85rem auto;
}

.owner-orders-empty-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
}

.owner-orders-empty-desc {
  font-size: 0.85rem;
  color: #64748b;
  max-width: 440px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Bulletproof Root Scroll Lock when Scanner Modal is Active */
html.scanner-modal-open,
body.scanner-modal-open {
  overflow: hidden !important;
  height: 100% !important;
  touch-action: none !important;
  overscroll-behavior: none !important;
}

/* Modern Dark Glassmorphism Camera Scanner */
.owner-glass-scanner-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
  overscroll-behavior: contain !important;
  touch-action: none;
  animation: scannerOverlayFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.owner-glass-scanner-overlay.is-closing {
  animation: scannerOverlayFadeOut 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  pointer-events: none;
}

.owner-glass-scanner-container {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 90vh;
  max-height: 820px;
  border-radius: 28px;
  overflow: hidden;
  background: #020617;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  animation: scannerScaleIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

.owner-glass-scanner-overlay.is-closing .owner-glass-scanner-container {
  animation: scannerScaleOut 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@media (max-width: 480px) {
  .owner-glass-scanner-overlay {
    padding: 0;
  }
  .owner-glass-scanner-container {
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    max-width: 100%;
    box-shadow: none;
    border: none;
    animation: scannerMobileSlideIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .owner-glass-scanner-overlay.is-closing .owner-glass-scanner-container {
    animation: scannerMobileSlideOut 0.16s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  }
}

@keyframes scannerOverlayFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes scannerOverlayFadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes scannerScaleIn {
  0% {
    opacity: 0;
    transform: scale(0.95) translateY(8px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes scannerScaleOut {
  0% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }
}

@keyframes scannerMobileSlideIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scannerMobileSlideOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(20px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .owner-glass-scanner-overlay,
  .owner-glass-scanner-container,
  .owner-glass-scanner-overlay.is-closing,
  .owner-glass-scanner-overlay.is-closing .owner-glass-scanner-container {
    animation: none !important;
    transform: none !important;
  }
}

.owner-glass-scanner-camera-box {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  background: #020617;
}

.owner-glass-scanner-camera-box video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
}

#order-qr-reader-container #qr-shaded-region {
  display: none !important;
  border: none !important;
  opacity: 0 !important;
}

.owner-glass-scanner-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.05) 30%, rgba(2, 6, 23, 0.6) 80%, rgba(2, 6, 23, 0.9) 100%),
              linear-gradient(180deg, rgba(2, 6, 23, 0.75) 0%, transparent 22%, transparent 68%, rgba(2, 6, 23, 0.9) 100%);
}

/* Topbar Controls */
.owner-glass-scanner-topbar {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: auto;
}

.owner-glass-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  outline: none;
}

.owner-glass-icon-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.owner-glass-icon-btn:active {
  transform: scale(0.95);
}

.owner-glass-icon-btn.active {
  background: #10b981;
  border-color: #34d399;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.7);
  color: #ffffff;
}

/* Central Viewfinder & Neon Laser */
.owner-glass-reticle-wrap {
  position: absolute;
  top: 51%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  width: 235px;
  height: 235px;
}

.owner-glass-reticle {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  box-shadow: inset 0 0 24px rgba(16, 185, 129, 0.08);
}

.owner-glass-corner {
  position: absolute;
  width: 36px;
  height: 36px;
  border-color: #00ffaa;
  border-style: solid;
  filter: drop-shadow(0 0 10px rgba(0, 255, 170, 0.85));
}

.owner-glass-corner.top-left {
  top: 0;
  left: 0;
  border-width: 5px 0 0 5px;
  border-top-left-radius: 18px;
}

.owner-glass-corner.top-right {
  top: 0;
  right: 0;
  border-width: 5px 5px 0 0;
  border-top-right-radius: 18px;
}

.owner-glass-corner.bottom-left {
  bottom: 0;
  left: 0;
  border-width: 0 0 5px 5px;
  border-bottom-left-radius: 18px;
}

.owner-glass-corner.bottom-right {
  bottom: 0;
  right: 0;
  border-width: 0 5px 5px 0;
  border-bottom-right-radius: 18px;
}

.owner-glass-laser {
  position: absolute;
  left: 6px;
  right: 6px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(0, 255, 170, 0) 0%, #00ffaa 50%, rgba(0, 255, 170, 0) 100%);
  box-shadow: 0 0 14px 3px rgba(0, 255, 170, 0.95);
  animation: glassLaserSweep 2.2s infinite ease-in-out;
}

@keyframes glassLaserSweep {
  0% { top: 8%; opacity: 0.65; }
  50% { top: 92%; opacity: 1; }
  100% { top: 8%; opacity: 0.65; }
}

/* Floating Status Pill */
.owner-glass-status-pill {
  position: absolute;
  bottom: 6.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1.15rem;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.78rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  max-width: 90%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transition: all 0.25s ease;
}

.owner-order-scanner-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00ffaa;
  box-shadow: 0 0 0 rgba(0, 255, 170, 0.4);
  animation: pulsePulseDot 1.5s infinite;
  flex-shrink: 0;
}

@keyframes pulsePulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 170, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 255, 170, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 255, 170, 0); }
}

/* Bottom Actions Bar */
.owner-glass-bottom-actions {
  position: absolute;
  bottom: 1.5rem;
  left: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.owner-glass-btn-code {
  flex: 1;
  height: 52px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.owner-glass-btn-code:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.owner-glass-btn-code:active {
  transform: translateY(1px);
}

.owner-glass-btn-switch {
  flex: 1.35;
  height: 52px;
  border-radius: 9999px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
  box-shadow: 0 4px 20px rgba(16, 185, 129, 0.45);
}

.owner-glass-btn-switch:hover {
  background: linear-gradient(135deg, #34d399 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(16, 185, 129, 0.6);
}

.owner-glass-btn-switch:active {
  transform: translateY(1px);
}

/* Slide-Up Glass Drawer: Manual 6-Digit Order Code */
.owner-glass-drawer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 25;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px 28px 0 0;
  padding: 1.25rem 1.5rem 2.25rem 1.5rem;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.75);
  animation: glassDrawerSlideUp 0.3s cubic-bezier(0.33, 1, 0.68, 1);
}

@keyframes glassDrawerSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.owner-glass-drawer-handle {
  width: 38px;
  height: 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.25);
  margin: 0 auto 1.1rem auto;
}

.owner-glass-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.owner-glass-drawer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
}

.owner-glass-drawer-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #cbd5e1;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
}

.owner-glass-drawer-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.owner-glass-drawer-hint {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0 0 1.25rem 0;
}

.owner-order-ref-boxes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  max-width: 380px;
  margin: 0 auto;
}

.owner-order-ref-digit {
  flex: 1;
  max-width: 52px;
  min-width: 36px;
  height: 52px;
  padding: 0;
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  outline: none;
  transition: all 0.15s ease-in-out;
  box-sizing: border-box;
  caret-color: #00ffaa;
}

.owner-order-ref-digit:focus {
  border-color: #00ffaa;
  box-shadow: 0 0 0 3px rgba(0, 255, 170, 0.35);
  background: rgba(0, 255, 170, 0.12);
  color: #ffffff;
}

.owner-order-ref-digit.filled {
  border-color: #00ffaa;
  background: rgba(0, 255, 170, 0.15);
  color: #00ffaa;
}

@keyframes refBoxesShake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-6px); }
  40%, 80% { transform: translateX(6px); }
}

.owner-order-ref-boxes.error-shake {
  animation: refBoxesShake 0.45s ease-in-out;
}

.owner-order-ref-boxes.error-shake .owner-order-ref-digit {
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.owner-order-ref-boxes.locked {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
  user-select: none;
}

.owner-order-ref-digit:disabled {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  cursor: not-allowed;
}

/* In-Place Verify & Accept Order View Layer (Inside Scanner Modal) - System White */
.owner-glass-scanner-container.in-preview-mode {
  background: #ffffff !important;
  border-color: #e1e3e5 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.2) !important;
}

.owner-glass-scanner-container.in-preview-mode .owner-glass-scanner-camera-box,
.owner-glass-scanner-container.in-preview-mode .owner-glass-scanner-vignette,
.owner-glass-scanner-container.in-preview-mode .owner-glass-scanner-topbar,
.owner-glass-scanner-container.in-preview-mode .owner-glass-reticle-wrap,
.owner-glass-scanner-container.in-preview-mode .owner-glass-status-pill,
.owner-glass-scanner-container.in-preview-mode .owner-glass-bottom-actions,
.owner-glass-scanner-container.in-preview-mode .owner-glass-drawer {
  display: none !important;
}

.owner-glass-preview-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  background: #ffffff;
  color: #202223;
  border-radius: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  animation: polarisScaleIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  overflow: hidden;
}

.owner-glass-preview-header {
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e1e3e5;
  background: #ffffff;
  flex-shrink: 0;
}

.owner-glass-preview-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.owner-glass-preview-meta {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.owner-glass-preview-qr {
  font-size: 1.15rem;
  font-weight: 700;
  color: #202223;
  margin: 0;
  letter-spacing: -0.01em;
}

.owner-glass-preview-ref {
  font-size: 0.82rem;
  color: #6d7175;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.owner-glass-preview-close {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  border: none;
  color: #6d7175;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  padding: 0;
}

.owner-glass-preview-close:hover {
  background: #f1f2f4;
  color: #202223;
}

.owner-glass-preview-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
}

.owner-glass-preview-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6d7175;
}

.owner-glass-preview-items-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 240px;
  overflow-y: auto;
}

.owner-glass-preview-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.owner-glass-preview-item-left {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  overflow: hidden;
}

.owner-glass-preview-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 0.15rem;
}

.owner-glass-preview-item-qty {
  background: #e2e8f0;
  color: #1e293b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
}

.owner-glass-preview-item-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.owner-glass-preview-item-note {
  font-size: 0.74rem;
  font-weight: 600;
  color: #b45309;
  line-height: 1.3;
  word-break: break-word;
}

.owner-glass-preview-customer-note {
  font-size: 0.78rem;
  color: #92400e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  line-height: 1.35;
  word-break: break-word;
}

.owner-glass-preview-item-price {
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  margin-left: 0.5rem;
}

.owner-glass-preview-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: auto;
}

.owner-glass-preview-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: #64748b;
}

.owner-glass-preview-summary-row.grand-total {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  border-top: 1px solid #e2e8f0;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

.owner-glass-preview-summary-row.grand-total span:last-child {
  color: #059669;
}

/* 3 Action Buttons: Rescan / Reject / Accept */
.owner-glass-preview-actions {
  padding: 1rem 1.25rem 1.25rem 1.25rem;
  border-top: 1px solid #e1e3e5;
  background: #f8fafc;
  display: grid;
  grid-template-columns: 1fr 1fr 1.35fr;
  gap: 0.65rem;
  flex-shrink: 0;
}

.owner-glass-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 0.45rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  border: none;
  line-height: 1;
  user-select: none;
}

.owner-glass-action-btn:active {
  transform: scale(0.97);
}

.owner-glass-action-btn.btn-rescan {
  background: #ffffff;
  color: #202223;
  border: 1px solid #c9cccf;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.owner-glass-action-btn.btn-rescan:hover {
  background: #f6f6f7;
  border-color: #babebf;
  color: #202223;
}

.owner-glass-action-btn.btn-reject {
  background: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.owner-glass-action-btn.btn-reject:hover {
  background: #ffe4e6;
  border-color: #fda4af;
  color: #be123c;
}

.owner-glass-action-btn.btn-accept {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.28);
}

.owner-glass-action-btn.btn-accept:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.38);
}

@media (max-width: 440px) {
  .owner-order-ref-boxes {
    gap: 0.4rem;
  }
  .owner-order-ref-digit {
    height: 46px;
    font-size: 1.2rem;
    border-radius: 8px;
  }
}

/* ==========================================================================
   Live Service Requests & Orders Responsive Breakdown
   ========================================================================== */
@media (max-width: 1120px) {
  .owner-requests-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .owner-requests-search-box {
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    width: 100%;
    height: 36px;
  }
  .owner-requests-table {
    min-width: 0;
  }
  .owner-requests-table th,
  .owner-requests-table td {
    padding: 0.72rem 0.7rem;
  }
}

@media (max-width: 960px) {
  .owner-requests-kpi-grid,
  .owner-orders-kpi-grid {
    gap: 0.85rem;
  }
  .owner-orders-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .owner-requests-kpi-card {
    padding: 0.95rem 1rem;
  }
}

@media (max-width: 768px) {
  .owner-requests-header-actions,
  .owner-orders-header-actions {
    width: 100%;
    gap: 0.5rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  .owner-requests-header-actions .owner-btn,
  .owner-orders-header-actions .owner-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-height: 40px;
    justify-content: center;
    font-size: 0.84rem;
  }
  .owner-requests-header-actions #btn-requests-mark-all-attended,
  .owner-orders-header-actions #btn-orders-scan-qr {
    flex: 1 1 auto;
    width: auto;
    min-height: 40px;
    justify-content: center;
  }
  .owner-requests-header-actions .owner-orders-icon-btn,
  .owner-orders-header-actions .owner-orders-icon-btn {
    flex: 0 0 40px;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
  }

  /* Responsive Card Layout for Service Requests Log Table (No Horizontal Scroll) */
  .owner-requests-table-wrap {
    overflow-x: visible;
  }
  .owner-requests-table {
    min-width: 0;
  }
  .owner-requests-table thead {
    display: none;
  }
  .owner-requests-table tbody {
    display: block;
  }
  .owner-requests-table tbody tr.owner-request-log-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    column-gap: 0.65rem;
    row-gap: 0.38rem;
    padding: 0.85rem 0.95rem;
    border-bottom: 1px solid #e2e8f0;
  }
  .owner-requests-table tbody tr.owner-request-log-row:last-child {
    border-bottom: none;
  }
  .owner-requests-table tbody tr.owner-request-log-row td {
    border-bottom: none;
    padding: 0;
    background: transparent !important;
  }
  .owner-requests-table tbody tr.owner-request-log-row td.col-qr {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.96rem;
    word-break: break-word;
  }
  .owner-requests-table tbody tr.owner-request-log-row td.col-status {
    order: 2;
    flex: 0 0 auto;
    text-align: right;
  }
  .owner-requests-table tbody tr.owner-request-log-row td.col-note {
    order: 3;
    flex: 0 0 100%;
    padding-top: 0.1rem;
  }
  .owner-requests-table tbody tr.owner-request-log-row td.col-note:has(> span:empty),
  .owner-requests-table tbody tr.owner-request-log-row td.col-note .owner-request-table-note {
    max-width: 100%;
    word-break: break-word;
  }
  .owner-requests-table tbody tr.owner-request-log-row td.col-called,
  .owner-requests-table tbody tr.owner-request-log-row td.col-resolved,
  .owner-requests-table tbody tr.owner-request-log-row td.col-attender {
    order: 4;
    flex: 0 1 auto;
    font-size: 0.74rem !important;
    line-height: 1.35;
  }
  .owner-requests-table tbody tr.owner-request-log-row td.col-called::before {
    content: "Called: ";
    color: #94a3b8;
    font-weight: 600;
  }
  .owner-requests-table tbody tr.owner-request-log-row td.col-resolved::before {
    content: "\2022  Resolved: ";
    color: #94a3b8;
    font-weight: 600;
  }
  .owner-requests-table tbody tr.owner-request-log-row.is-pending td.col-resolved::before {
    content: "\2022  ";
  }
  .owner-requests-table tbody tr.owner-request-log-row td.col-attender::before {
    content: "\2022  By: ";
    color: #94a3b8;
    font-weight: 600;
  }
  .owner-requests-table tbody tr.owner-request-log-row td.col-attender {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
  }
  .owner-requests-table tbody tr.owner-request-log-row .owner-request-attender-cell {
    display: inline-flex;
    flex-direction: row;
  }
  .owner-requests-table tbody tr.owner-request-log-row .owner-request-attender-name {
    max-width: 160px;
    font-size: 0.74rem;
  }
  .owner-btn-attend-mini,
  .owner-btn-scan-mini {
    min-height: 32px;
    padding: 0.35rem 0.75rem;
  }
}

@media (max-width: 640px) {
  .owner-requests-kpi-grid,
  .owner-orders-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-bottom: 1rem;
  }
  .owner-requests-kpi-card.is-pending,
  .owner-orders-kpi-card.is-new {
    grid-column: 1 / -1;
  }
  .owner-requests-kpi-card,
  .owner-orders-kpi-card {
    padding: 0.8rem 0.9rem;
  }
  .owner-requests-kpi-value,
  .owner-orders-kpi-value {
    font-size: 1.55rem;
  }
  .owner-requests-toolbar,
  .owner-orders-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
    padding: 0.6rem 0.7rem;
  }
  .owner-orders-grid,
  .owner-orders-masonry-col {
    gap: 0.9rem;
  }

  .owner-requests-filter-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }
  .owner-requests-filter-tab {
    min-height: 36px;
    justify-content: center;
    white-space: nowrap;
    font-size: 0.74rem;
    padding: 0.35rem 0.35rem;
    gap: 0.3rem;
    min-width: 0;
  }
  .owner-requests-filter-tab span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .owner-requests-search-box {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: 36px;
  }
  .owner-requests-grid {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }
  .owner-request-alert-card {
    padding: 0.95rem 0.9rem;
    border-radius: 12px;
    gap: 0.7rem;
  }
  .owner-request-alert-qr-title {
    font-size: 1.18rem;
  }
  .owner-request-btn-attend-tab {
    min-height: 44px;
    font-size: 0.88rem;
    padding: 0.7rem 1rem;
  }
  .owner-requests-table-header-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.7rem 0.85rem;
  }
  .owner-btn-clear-logs {
    width: auto;
    justify-content: center;
    min-height: 34px;
    padding: 0.32rem 0.7rem;
  }
  .owner-requests-empty-state {
    padding: 2.25rem 1rem;
    border-radius: 12px;
  }
  .owner-requests-empty-title {
    font-size: 1.05rem;
  }
  .owner-requests-empty-desc {
    font-size: 0.8rem;
  }
}

@media (max-width: 440px) {
  .owner-requests-header-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
  }
  .owner-requests-header-actions .owner-btn {
    width: auto !important;
    min-width: 0 !important;
  }
  .owner-requests-header-actions #btn-requests-mark-all-attended {
    flex: 1 1 auto;
  }
  .owner-requests-header-actions .owner-orders-icon-btn {
    flex: 0 0 40px;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px;
    padding: 0 !important;
  }
  .owner-requests-table-header-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .owner-btn-clear-logs {
    width: 100%;
    min-height: 36px;
  }
}

@media (max-width: 380px) {
  .owner-requests-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .owner-requests-kpi-card.is-pending {
    grid-column: 1 / -1;
  }
  .owner-requests-kpi-card {
    padding: 0.7rem 0.8rem;
  }
  .owner-requests-kpi-value {
    font-size: 1.4rem;
  }
  .owner-requests-kpi-label {
    font-size: 0.7rem;
  }
  .owner-requests-kpi-sub {
    font-size: 0.7rem;
  }
  .owner-requests-filter-tabs {
    gap: 0.25rem;
  }
  .owner-requests-filter-tab {
    font-size: 0.71rem;
    padding: 0.35rem 0.25rem;
  }
  .owner-requests-tab-count {
    padding: 0.08rem 0.32rem;
    font-size: 0.66rem;
  }
  .owner-request-alert-card {
    padding: 0.85rem 0.75rem;
    gap: 0.65rem;
  }
  .owner-request-alert-qr-title {
    font-size: 1.1rem;
  }
  .owner-request-status-badge {
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
  }
  .owner-request-note-box {
    padding: 0.5rem 0.65rem;
  }
  .owner-request-note-msg {
    font-size: 0.84rem;
  }
  .owner-request-btn-attend-tab {
    min-height: 42px;
    font-size: 0.84rem;
  }
  .owner-requests-table tbody tr.owner-request-log-row {
    padding: 0.75rem 0.75rem;
  }
}

/* Direct Printer Setup Button & Modal */
.owner-orders-printer-btn {
  position: relative;
}

.owner-orders-printer-btn.is-direct-active {
  border-color: #059669;
  color: #047857;
  background: #ecfdf5;
}

.owner-orders-printer-dot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  border: 1.5px solid #ffffff;
}

.owner-orders-printer-dot.is-ready {
  background: #10b981;
}

.printer-setup-card {
  max-width: 460px;
  padding: 1.35rem 1.45rem;
}

.printer-status-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1e293b;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  margin-bottom: 0.9rem;
}

.printer-section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.printer-section-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.printer-width-group {
  display: inline-flex;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background: #f8fafc;
}

.printer-width-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
}

.printer-width-btn.active {
  background: #0f172a;
  color: #ffffff;
}

.printer-mode-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.printer-mode-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.printer-mode-option:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}

.printer-mode-option.active {
  border-color: #2563eb;
  background: #eff6ff;
}

.printer-mode-info {
  min-width: 0;
  flex: 1;
}

.printer-mode-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.printer-mode-desc {
  font-size: 0.73rem;
  color: #64748b;
  margin-top: 2px;
}
