/* POS Root Container - Override theme styles */
#pos-root, #kitchen-root {
  font-family: system-ui, Arial, sans-serif;
  padding: 10px;
  background-color: #ffffff !important;
  color: #333333 !important;
  min-height: 400px;
  margin: 0;
  border-radius: 0;
}

#pos-root h2, #kitchen-root h2 {
  color: #000000 !important;
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 20px;
}

#pos-feed, #kitchen-feed {
  background-color: #ffffff !important;
  color: #333333 !important;
  padding: 0;
  border-radius: 0;
  min-height: 200px;
}

#pos-feed .ticket {
  padding: 12px;
  border: 2px solid #0073aa;
  margin: 0 0 15px 0;
  border-radius: 8px;
  background-color: #ffffff !important;
  color: #000000 !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

#pos-feed .ticket-completed {
  background-color: #f0f0f0 !important;
  opacity: 0.7;
  border: 2px solid #28a745;
  border-left: 6px solid #28a745;
}

#pos-feed .ticket-completed .order-status {
  background-color: #28a745 !important;
}

.ticket-header {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 2px solid #eee;
}

.order-id {
  font-weight: bold;
  font-size: 16px;
  color: #0073aa !important;
  flex: 0 0 auto;
}

.order-status {
  background-color: #46b450;
  color: #ffffff !important;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.order-time {
  color: #666 !important;
  font-size: 13px;
  flex: 0 0 auto;
  margin-left: auto;
}

.order-items {
  list-style: none;
  padding: 0;
  margin: 10px 0;
}

.order-items li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  color: #333 !important;
  font-size: 14px;
}

.order-items li:last-child {
  border-bottom: none;
}

.item-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.order-items .qty {
  font-weight: bold;
  color: #0073aa !important;
  min-width: 30px;
  display: inline-block;
  font-size: 14px;
}

.order-items .item-name {
  flex: 1;
  color: #000 !important;
  min-width: 120px;
  font-size: 14px;
}

.order-items .item-price {
  font-weight: bold;
  color: #333 !important;
  margin-left: auto;
  font-size: 14px;
}

.item-extras {
  list-style: none;
  padding: 5px 0 5px 40px;
  margin: 0;
}

.item-extras li {
  padding: 2px 0 !important;
  font-size: 13px;
  color: #666 !important;
  font-style: italic;
  border: none !important;
}

.customer-note {
  background-color: #fff3cd;
  border-left: 4px solid #ffc107;
  padding: 10px 12px;
  margin: 10px 0;
  color: #856404 !important;
  font-size: 14px;
  border-radius: 4px;
}

.customer-note strong {
  color: #856404 !important;
  margin-right: 5px;
}

.ticket-footer {
  padding-top: 10px;
  margin-top: 10px;
  border-top: 2px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-total {
  font-weight: bold;
  font-size: 18px;
  color: #000000 !important;
  text-align: left;
}

.ticket-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}

.complete-btn {
  padding: 10px 16px;
  margin: 0;
  background-color: #28a745;
  color: #ffffff !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  flex: 1;
}

.complete-btn:hover {
  background-color: #218838;
}

.complete-btn:disabled {
  background-color: #6c757d;
  cursor: not-allowed;
}

.print-btn {
  padding: 10px 16px;
  margin: 0;
  background-color: #0073aa;
  color: #ffffff !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  flex: 1;
}

.print-btn:hover {
  background-color: #005a87;
}

button {
  padding: 10px 16px;
  margin: 10px 0;
  background-color: #0073aa;
  color: #ffffff !important;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

button:hover {
  background-color: #005a87;
}
