:root {
  --fresh-orange: #f97316;
  --fresh-green: #22c55e;
  --fresh-ink: #14171f;
}

[data-theme='light'] {
  --color-primary-50: #fff7ed;
  --color-primary-100: #ffedd5;
  --color-primary-200: #fed7aa;
  --color-primary-300: #fdba74;
  --color-primary-400: #fb923c;
  --color-primary-500: #f97316;
  --color-primary-600: #ea580c;
  --color-primary-700: #c2410c;
  --color-primary-800: #9a3412;
  --color-primary-900: #7c2d12;
  --color-primary-950: #431407;
}

[data-theme='dark'] {
  --color-primary-50: #431407;
  --color-primary-100: #7c2d12;
  --color-primary-200: #9a3412;
  --color-primary-300: #c2410c;
  --color-primary-400: #ea580c;
  --color-primary-500: #f97316;
  --color-primary-600: #fb923c;
  --color-primary-700: #fdba74;
  --color-primary-800: #fed7aa;
  --color-primary-900: #ffedd5;
  --color-primary-950: #fff7ed;
}

.bg-primary-600,
.hover\:bg-primary-700:hover {
  background-color: var(--fresh-orange) !important;
}

.text-primary-600,
.hover\:text-primary-700:hover {
  color: var(--fresh-orange) !important;
}

.border-primary-600 {
  border-color: var(--fresh-orange) !important;
}

#site-name img,
[alt='Fresh Express'] {
  max-height: 38px;
  object-fit: contain;
}

.fresh-row-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  min-width: 78px;
}

.fresh-row-action {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
  width: 34px;
}

.fresh-row-action:hover {
  transform: translateY(-1px);
}

.field-price_display,
.field-product_price,
.field-unit_price,
.field-line_total,
.field-total_amount_display,
.field-amount_display,
.column-price_display,
.column-product_price,
.column-unit_price,
.column-line_total,
.column-total_amount_display,
.column-amount_display {
  min-width: 104px;
  white-space: nowrap !important;
  word-break: keep-all;
}

.field-price_display span,
.field-product_price span,
.field-unit_price span,
.field-line_total span,
.field-total_amount_display span,
.field-amount_display span {
  white-space: nowrap !important;
}

.fresh-price-stack {
  align-items: flex-start;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
  white-space: nowrap !important;
}

.fresh-price-current,
.fresh-price-old {
  display: block;
  white-space: nowrap !important;
}

.fresh-price-old {
  color: #9ca3af;
  text-decoration: line-through;
}

.fresh-row-action-edit {
  background: #fff7ed;
  color: #f97316;
}

.fresh-row-action-edit:hover {
  background: #ffedd5;
  color: #ea580c;
}

.fresh-row-action-delete {
  background: #fef2f2;
  color: #ef4444;
}

.fresh-row-action-delete:hover {
  background: #fee2e2;
  color: #dc2626;
}

.sidebar a[href='/admin/core/category/'] svg,
.sidebar a[href='/admin/core/notification/'] svg {
  color: var(--fresh-green) !important;
}

/* Product gallery inline polish */
.inline-group .tabular table tbody tr,
.inline-group table tbody tr {
  transition: background-color 160ms ease;
}

.inline-group .tabular table tbody tr:hover,
.inline-group table tbody tr:hover {
  background: #fff7ed33;
}

.fresh-inline-image-placeholder,
.fresh-inline-image-preview {
  align-items: center;
  border-radius: 16px;
  display: inline-flex;
  height: 62px;
  justify-content: center;
  overflow: hidden;
  width: 92px;
}

.fresh-inline-image-placeholder {
  background: linear-gradient(135deg, #fff7ed, #f8fafc);
  border: 1px dashed #fdba74;
  color: #f97316;
  flex-direction: column;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.fresh-inline-image-placeholder .material-symbols-outlined {
  font-size: 22px;
  line-height: 1;
}

.fresh-inline-image-preview {
  background: #fff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.fresh-inline-image-preview img {
  height: 58px;
  object-fit: contain;
  width: 88px;
}

.inline-group input[type='file'] {
  color: #475569;
  font-size: 13px;
  max-width: 340px;
}

.inline-group input[type='file']::file-selector-button {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #ea580c;
  cursor: pointer;
  font-weight: 700;
  margin-right: 12px;
  padding: 9px 14px;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.inline-group input[type='file']::file-selector-button:hover {
  background: #ffedd5;
  border-color: #fb923c;
  transform: translateY(-1px);
}

.inline-group input[type='text'],
.inline-group input[type='number'],
.inline-group select,
.inline-group textarea {
  background: #fff !important;
  border: 1px solid #d8dee8 !important;
  border-radius: 14px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  color: #111827 !important;
  min-height: 42px !important;
  outline: none !important;
  padding: 10px 12px !important;
  transition: border-color 160ms ease, box-shadow 160ms ease !important;
}

.inline-group input[type='number'] {
  max-width: 110px;
}

.inline-group input[type='text']:focus,
.inline-group input[type='number']:focus,
.inline-group select:focus,
.inline-group textarea:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.13) !important;
}

.inline-group input[type='checkbox'] {
  accent-color: #f97316;
  cursor: pointer;
  height: 20px;
  width: 20px;
}

.inline-group .delete,
.inline-group td.delete {
  text-align: center;
}

.inline-group .delete input[type='checkbox'] {
  accent-color: #ef4444;
}

.inline-group .delete label,
.inline-group .delete .deletelink,
.inline-group .delete a {
  align-items: center;
  background: #fef2f2;
  border-radius: 999px;
  color: #ef4444 !important;
  display: inline-flex;
  font-size: 0;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.inline-group .delete label::before,
.inline-group .delete .deletelink::before,
.inline-group .delete a::before {
  content: 'delete';
  font-family: 'Material Symbols Outlined';
  font-size: 20px;
  line-height: 1;
}

.inline-group .add-row a,
.inline-group a.add-row {
  align-items: center;
  color: #f97316 !important;
  display: inline-flex;
  font-weight: 700;
  gap: 8px;
  text-decoration: none;
}
