/* Order Detail */
.od-info-grid {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.od-info-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.od-info-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9CA3AF;
  white-space: nowrap;
  flex-shrink: 0;
  width: 5rem;
}

.od-info-val {
  color: #161A1D;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.od-delivery-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.od-delivery-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.od-delivery-row .od-info-label {
  width: 3rem;
}

.od-delivery-row .form-control {
  flex: 1;
  min-width: 0;
}

/* Tickets Table */
.od-tickets-table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: collapse;
}

.od-tickets-table td,
.od-tickets-table th {
  padding: 0.4rem 0.5rem;
  vertical-align: middle;
  border-bottom: 1px solid #F3F4F6;
}

.od-tickets-subheader th {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
  background: #F9FAFB;
  border-bottom: 1px solid #DDE0E4;
  white-space: nowrap;
}

.od-event-header td {
  background: #EFF6FF;
  border-top: 2px solid #BFDBFE;
  border-bottom: 1px solid #BFDBFE;
  font-size: 0.82rem;
  padding: 0.5rem;
}

.od-group-header td {
  background: #F0FDF4;
  border-top: 2px solid #BBF7D0;
  border-bottom: 1px solid #BBF7D0;
  font-size: 0.82rem;
  padding: 0.5rem;
}

.od-ticket-row:hover td {
  background: #F9FAFB;
}

.od-ticket-row:last-of-type td {
  border-bottom: none;
}

.od-price-cell {
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
  padding-right: 0.75rem !important;
}

.od-seat-cell {
  white-space: nowrap;
  min-width: 120px;
}

.od-scan-icon {
  cursor: pointer;
  margin-left: 0.375rem;
  vertical-align: middle;
}

.od-inline-input {
  min-width: 120px;
}

.od-cat-select {
  min-width: 140px;
}

.od-addon-cell {
  cursor: pointer;
  color: var(--primary);
  min-width: 60px;
}

.od-grouped {
  color: #9CA3AF;
  font-size: 0.75rem;
}

/* Totals rows */
.od-totals-row td {
  background: #F9FAFB;
  border-top: 1px solid #DDE0E4;
  padding: 0.5rem;
}

.od-totals-row:first-of-type td {
  border-top: 2px solid #DDE0E4;
}

.od-totals-label-cell {
  white-space: nowrap;
  color: #6B7280;
  font-size: 0.78rem;
}

.od-totals-name-cell {
  text-align: right;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6B7280;
  white-space: nowrap;
}

.od-totals-input-cell {
  min-width: 200px;
}

.od-totals-input {
  max-width: 180px;
}

.od-donation-input {
  max-width: 100px;
  display: inline-block;
}

/* Ticket footer action bar */
.od-ticket-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0 0;
  margin-top: 0.5rem;
  border-top: 1px solid #DDE0E4;
  flex-wrap: wrap;
}

/* Transactions */
.od-txn-date {
  white-space: nowrap;
  font-size: 0.75rem;
  color: #6B7280;
}

.od-txn-card {
  white-space: nowrap;
}

.od-cc-icon {
  height: 20px;
  width: auto;
  vertical-align: middle;
}

.od-cc-last4 {
  font-size: 0.75rem;
  color: #6B7280;
  margin-left: 0.25rem;
}

.od-txn-actions {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  white-space: nowrap;
}

.od-txn-total-row td {
  background: #F9FAFB;
  border-top: 1px solid #DDE0E4;
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
}

.od-txn-total-label {
  text-align: right;
  color: #6B7280;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.od-txn-due-row td {
  border-top: 2px solid #DDE0E4;
  font-weight: 700;
  color: #161A1D;
}

.od-payment-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.72rem;
  color: #6B7280;
  border-top: 1px solid #F3F4F6;
}

.od-payment-link a {
  color: var(--primary);
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.od-payment-link a:hover {
  text-decoration: underline;
}

.od-history-by {
  white-space: nowrap;
  font-size: 0.75rem;
  color: #6B7280;
}

.od-scan-input {
  width: 140px;
  font-size: 0.75rem;
}

.od-amount-input {
  max-width: 120px;
}

.od-change-display {
  font-size: 0.85rem;
  font-weight: 600;
  color: #22C55E;
}

/* Seating Chart Modal Shell */
#seating_chart {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 200;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Header bar */
.sc-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.25rem;
  background: #fff;
  border-bottom: 1px solid #DDE0E4;
  position: sticky;
  top: 0;
  z-index: 10;
  flex-wrap: wrap;
}

.sc-header-left {
  flex: 1;
  min-width: 0;
}

.sc-title {
  font-size: 1rem;
  font-weight: 600;
  color: #161A1D;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sc-title-sep {
  color: #9CA3AF;
}

.sc-date-select {
  width: auto;
  font-size: 0.85rem;
  border: 1px solid #DDE0E4;
  background: #F9FAFB;
}

.sc-header-area {
  flex-shrink: 0;
}

.sc-area-select {
  width: auto;
  font-size: 0.85rem;
}

.sc-header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  margin-left: auto;
}

/* Legend */
.sc-legend {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.5rem 1.25rem;
  background: #F9FAFB;
  border-bottom: 1px solid #DDE0E4;
  flex-wrap: wrap;
}

.sc-legend-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #6B7280;
}

/* Seat layout scroll area */
#seat_layout {
  flex: 1;
  overflow: auto;
  padding: 1.25rem;
}

/* Order status badges */
.od-status-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #E5E7EB;
  color: #374151;
}

.od-status-Confirmed  { background: #D1FAE5; color: #065F46; }
.od-status-Active     { background: #DBEAFE; color: #1D4ED8; }
.od-status-Pending    { background: #FEF3C7; color: #92400E; }
.od-status-Cancelled  { background: #FEE2E2; color: #991B1B; }


/* Quick Order */
.qo-col-ticket  { flex: 2; min-width: 100px; }
.qo-col-section { flex: 2; min-width: 100px; }
.qo-col-qty     { flex: 0 0 70px; }

.qo-ticket-name {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #161A1D;
}

.qo-ticket-price {
  display: block;
  font-size: 0.72rem;
  color: #6B7280;
}