/* POS Orders Show Page - Modern Enterprise Design */

.pos-order-show-container {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 0;
}

/* Header Section */
.header-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 0;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.back-navigation {
  margin-bottom: 1.5rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.back-link:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(-2px);
}

.back-link i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

.page-title {
  text-align: center;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.main-title i {
  font-size: 2.2rem;
  margin-right: 1rem;
  opacity: 0.9;
}

.subtitle {
  font-size: 1.1rem;
  margin: 0.5rem 0 0 0;
  opacity: 0.9;
  font-weight: 300;
}

/* Content Layout */
.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 2rem;
}

.main-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Info Cards */
.info-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.card-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
  color: #1e293b;
}

.card-content {
  padding: 1.5rem;
}

/* Order Information Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.info-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.info-value.monospace {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  background: #f1f5f9;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

/* Status Badges */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-badge.open {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.status-badge.completed {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.status-badge.canceled {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.status-badge.proposed {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.status-badge.reserved {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.status-badge.prepared {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.status-badge.unknown {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
}

/* Line Items */
.line-items-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.line-item-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.line-item-card:hover {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.item-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #1e293b;
}

.item-variation {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
}

.item-pricing {
  text-align: right;
}

.item-total {
  font-size: 1.5rem;
  font-weight: 700;
  color: #059669;
  margin-bottom: 0.25rem;
}

.item-quantity {
  color: #64748b;
  font-size: 0.875rem;
  font-weight: 500;
}

.item-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-label {
  font-weight: 500;
  color: #64748b;
  font-size: 0.875rem;
}

.detail-value {
  font-weight: 600;
  color: #1e293b;
}

/* Modifiers Section */
.modifiers-section {
  border-top: 1px solid #e2e8f0;
  padding-top: 1rem;
}

.modifiers-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.75rem 0;
}

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

.modifier-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  background: white;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.modifier-name {
  font-weight: 500;
  color: #374151;
}

.modifier-quantity {
  color: #64748b;
  font-size: 0.875rem;
}

/* Fulfillments */
.fulfillments-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.fulfillment-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.fulfillment-card:hover {
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.fulfillment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.fulfillment-type {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #1e293b;
}

.fulfillment-uid {
  color: #64748b;
  font-size: 0.875rem;
  margin: 0;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

.fulfillment-status {
  flex-shrink: 0;
}

/* Details Sections */
.details-section {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
}

.details-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
}

.details-title i {
  color: #667eea;
  margin-right: 0.5rem;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.detail-label {
  font-weight: 500;
  color: #64748b;
  font-size: 0.875rem;
}

.detail-value {
  font-weight: 600;
  color: #1e293b;
}

.details-content {
  color: #64748b;
  font-size: 0.875rem;
}

/* Taxes and Discounts Row */
.taxes-discounts-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.tax-card, .discount-card {
  height: fit-content;
}

.taxes-list, .discounts-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tax-item, .discount-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.tax-info, .discount-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tax-name, .discount-name {
  font-weight: 600;
  color: #1e293b;
}

.tax-rate, .discount-rate {
  color: #64748b;
  font-size: 0.875rem;
}

.tax-amount, .discount-amount {
  font-weight: 700;
  color: #1e293b;
}

.discount-amount {
  color: #dc2626;
}

/* Order Summary */
.summary-card {
  position: sticky;
  top: 2rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.summary-label {
  color: #64748b;
  font-weight: 500;
}

.summary-value {
  font-weight: 600;
  color: #1e293b;
}

.summary-value.discount {
  color: #dc2626;
}

.summary-divider {
  height: 1px;
  background: #e2e8f0;
  margin: 1.5rem 0;
}

.total-row {
  margin-bottom: 0;
}

.total-label {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.1rem;
}

.total-value {
  font-weight: 700;
  color: #059669;
  font-size: 1.5rem;
}

/* Timestamps */
.timestamps-card .card-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.timestamp-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timestamp-label {
  font-weight: 500;
  color: #64748b;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timestamp-content {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.timestamp-date {
  font-weight: 600;
  color: #1e293b;
  font-size: 1rem;
}

.timestamp-time {
  color: #64748b;
  font-size: 0.875rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

/* Metadata */
.metadata-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.metadata-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.metadata-label {
  font-weight: 500;
  color: #64748b;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metadata-value {
  font-weight: 600;
  color: #1e293b;
  background: #f8fafc;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
  font-size: 0.875rem;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: #64748b;
}

.empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.empty-state h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: #374151;
}

.empty-state p {
  margin: 0;
  font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }
}

@media (max-width: 768px) {
  .header-content,
  .content-wrapper {
    padding: 0 1rem;
  }

  .main-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }

  .main-title i {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .taxes-discounts-row {
    grid-template-columns: 1fr;
  }

  .item-details {
    grid-template-columns: 1fr;
  }

  .details-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .header-section {
    padding: 1.5rem 0;
  }

  .card-header-section {
    padding: 1rem;
  }

  .card-content {
    padding: 1rem;
  }

  .line-item-card,
  .fulfillment-card {
    padding: 1rem;
  }
}
