body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #f1f5f9;
  color: #0f172a;
}
header {
  background: #0b2d66;
  color: white;
  padding: 20px;
}
header .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
header h1 {
  margin: 0;
  font-size: 1.4rem;
}
nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
nav a,
nav button {
  color: white;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}
nav a.active {
  background: rgba(255, 255, 255, 0.2);
}
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  gap: 20px;
}
section {
  background: white;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 16px;
}
form {
  display: grid;
  gap: 8px;
}
label {
  font-weight: 600;
}
input,
select,
textarea {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
}
.table-input {
  width: 100%;
  min-width: 120px;
  padding: 6px 8px;
  font-size: 0.95rem;
}
button {
  padding: 10px;
  background: #2563eb;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}
button.small {
  padding: 6px 10px;
  font-weight: 600;
}
button.ghost {
  background: white;
  color: #0b2d66;
  border: 1px solid #cbd5e1;
}
button.danger {
  background: #dc2626;
}
button.danger.ghost {
  color: #dc2626;
  border-color: #fecdd3;
  background: #fff1f2;
}
.clickable {
  cursor: pointer;
}
.card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px;
  cursor: pointer;
}
.card.product-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.table {
  width: 100%;
  border-collapse: collapse;
}
.table th,
.table td {
  padding: 8px;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: middle;
  text-align: left;
}
.table .product-row:hover {
  background: #f8fafc;
}
.table .inline-actions {
  justify-content: flex-end;
}
.order-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.inline-actions {
  display: flex;
  gap: 8px;
}
.stacked-text {
  display: grid;
  gap: 4px;
}
.list {
  display: grid;
  gap: 6px;
}
.muted {
  color: #475569;
  font-size: 0.9rem;
}
.stacked {
  display: grid;
  gap: 10px;
}
.stacked.labels {
  gap: 4px;
}
.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: #e2e8f0;
  color: #0b2d66;
}
.badge.pending {
  background: #fef9c3;
  color: #854d0e;
}
.badge.completed {
  background: #dcfce7;
  color: #166534;
}
.badge.canceled {
  background: #fee2e2;
  color: #991b1b;
}
.badge.out-of-stock {
  background: #fee2e2;
  color: #991b1b;
}
.campaign-cell {
  text-align: center;
}
.campaign-toggle {
  margin: 0;
}
.out-of-stock-row {
  opacity: 0.8;
}
.order-items {
  width: 100%;
  border-collapse: collapse;
}
.order-items th,
.order-items td {
  padding: 6px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.order-items th {
  font-size: 0.9rem;
  color: #475569;
}
.order-items .numeric {
  text-align: right;
}
.table-wrapper {
  width: 100%;
  overflow-x: auto;
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
}
.orders-table th,
.orders-table td {
  padding: 10px;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}
.orders-table th {
  font-size: 0.9rem;
  color: #475569;
  background: #f8fafc;
}
.orders-table tbody tr.order-row {
  cursor: pointer;
  transition: background 0.2s ease-in-out;
}
.orders-table tbody tr.order-row:hover {
  background: #f1f5f9;
}
.orders-table tbody tr.order-row.is-expanded {
  background: #e2e8f0;
}
.order-detail-row td {
  background: #f8fafc;
}
.order-detail-content {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.orders-table td.numeric,
.orders-table th.numeric {
  text-align: right;
}
.orders-table td.actions,
.orders-table th.actions {
  text-align: right;
  width: 1%;
  white-space: nowrap;
}
.address-block {
  display: grid;
  gap: 2px;
}
.address-label {
  font-weight: 600;
}
.order-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
hr {
  border: 0;
  border-top: 1px solid #e2e8f0;
  margin: 12px 0;
}
.page-title {
  margin-top: 0;
}
.grid-two {
  display: grid;
  gap: 16px;
}
@media (min-width: 960px) {
  .grid-two {
    grid-template-columns: 1fr 1fr;
  }
}

.search-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.search-row input {
  flex: 1;
}
