@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --isp-bg: #f4f4f5;
  --isp-bg-alt: #eff1f2;
  --isp-surface: #ffffff;
  --isp-surface-soft: #f4f4f5;
  --isp-border: #e5e7eb;
  --isp-border-strong: #cbd5e1;
  --isp-text: #18181b;
  --isp-muted: #71717a;
  --isp-primary: #4f46e5;
  --isp-primary-strong: #3525cd;
  --isp-primary-soft: #eef2ff;
  --isp-success: #10b981;
  --isp-success-strong: #006c49;
  --isp-success-soft: #ecfdf5;
  --isp-warning: #f59e0b;
  --isp-warning-soft: #fffbeb;
  --isp-danger: #ba1a1a;
  --isp-danger-soft: #fef2f2;
  --isp-info-soft: #eff6ff;
  --isp-shadow: 0px 1px 3px rgba(0, 0, 0, .1), 0px 1px 2px rgba(0, 0, 0, .06);
  --isp-radius: 12px;
  --isp-radius-lg: 16px;
  --tblr-primary: #4f46e5;
  --tblr-primary-rgb: 79, 70, 229;
  --tblr-success: #10b981;
  --tblr-warning: #f59e0b;
  --tblr-body-font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  background: var(--isp-bg-alt);
}

body {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--isp-bg) 0%, #f8f8f8 40%, #ffffff 100%);
  color: var(--isp-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

.page {
  min-height: 100vh;
  background: transparent;
}

.app-shell {
  display: flex;
  flex-direction: column;
}

.page-wrapper {
  min-width: 0;
  flex: 1 1 auto;
  background: #f4f4f5;
}

.page-body {
  margin-top: 0;
  padding: 0 0 32px;
}

.container-xl {
  max-width: 1440px;
}

.py-4 {
  padding-top: 24px !important;
  padding-bottom: 32px !important;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 16px;
}

.page-title {
  color: var(--isp-text);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 32px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--isp-text);
  font-weight: 700;
  letter-spacing: -.01em;
}

.h1 {
  font-size: 30px;
  line-height: 38px;
}

.subheader {
  color: var(--isp-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
  line-height: 14px;
  text-transform: uppercase;
}

/* Sidebar */
.app-sidebar {
  position: relative;
  z-index: 30;
  width: 100%;
  background: #fff;
  border-right: 1px solid var(--isp-border);
}

.app-sidebar__inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  padding: 18px 10px 16px;
}

.app-sidebar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 2px 10px 12px;
  text-decoration: none;
}

.app-sidebar__brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #005b96;
  color: #fff;
  font-size: 18px;
}

.app-sidebar__brand-copy {
  display: grid;
  min-width: 0;
}

.app-sidebar__brand-title {
  color: var(--isp-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
}

.app-sidebar__brand-subtitle {
  color: var(--isp-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
}

.app-sidebar__nav {
  display: grid;
  gap: 2px;
}

.app-sidebar__footer {
  margin-top: auto;
  padding: 12px 0 0;
  border-top: 1px solid var(--isp-border);
}

.app-sidebar__user-menu {
  position: relative;
}

.app-sidebar__user-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 10px 0;
  list-style: none;
  cursor: pointer;
}

.app-sidebar__user-trigger::-webkit-details-marker {
  display: none;
}

.app-sidebar__user-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.app-sidebar__user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #3192e0;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.app-sidebar__user-meta {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.app-sidebar__user-name {
  color: #27272a;
  font-size: 15px;
  font-weight: 700;
  line-height: 18px;
}

.app-sidebar__user-email {
  color: #3f3f46;
  font-size: 11px;
  line-height: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-sidebar__user-icons {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #111827;
  font-size: 15px;
  flex-shrink: 0;
}

.app-sidebar__user-menu[open] .app-sidebar__user-chevron {
  transform: rotate(180deg);
}

.app-sidebar__user-chevron {
  transition: transform .15s ease;
}

.app-sidebar__user-dropdown {
  position: absolute;
  right: 10px;
  bottom: calc(100% + 10px);
  display: grid;
  min-width: 220px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--isp-border);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .12);
}

.app-sidebar__user-dropdown-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #27272a;
  text-decoration: none;
}

.app-sidebar__user-dropdown-link:hover,
.app-sidebar__user-dropdown-link:focus {
  background: #f8fafc;
  color: #111827;
}

.app-sidebar__user-dropdown-link--danger {
  color: #dc2626;
}

.app-sidebar__link {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  margin: 0 2px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #27272a;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}

.app-sidebar__link:hover,
.app-sidebar__link:focus {
  background: #f5f5f5;
  color: #18181b;
}

.app-sidebar__link.active {
  background: #eaf4ff;
  color: #005b96;
  font-weight: 600;
}

.app-sidebar__icon {
  color: #18181b;
  font-size: 16px;
  line-height: 1;
}

.app-sidebar__link.active .app-sidebar__icon {
  color: #005b96;
}

.app-sidebar__link-label {
  min-width: 0;
  color: inherit;
}

/* App header, breadcrumb, and shell */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 40px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--isp-border);
  backdrop-filter: blur(10px);
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  padding: 0 20px;
}

.app-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #71717a;
  font-size: 14px;
  font-weight: 500;
}

.app-breadcrumbs__back,
.app-breadcrumbs__home,
.app-breadcrumbs__link,
.app-breadcrumbs__divider,
.app-breadcrumbs__current,
.app-breadcrumbs__item {
  color: inherit;
}

.app-breadcrumbs__back,
.app-breadcrumbs__home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.app-breadcrumbs__home {
  font-size: 16px;
  color: #4b5563;
}

.app-breadcrumbs__link {
  color: #5f6b7a;
  text-decoration: none;
}

.app-breadcrumbs__link:hover,
.app-breadcrumbs__link:focus {
  color: #111827;
}

.app-breadcrumbs__item {
  color: #6b7280;
}

.app-breadcrumbs__current {
  color: var(--isp-text);
}

.app-content-shell {
  max-width: 100%;
  margin: 0 auto;
  padding: 24px 26px 0;
}

.app-page-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.app-page-intro__copy {
  display: grid;
  gap: 2px;
}

.app-page-intro__actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.app-page-intro__title {
  margin: 0;
  color: #111827;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.app-page-intro__subtitle {
  margin: 4px 0 0;
  color: #5f6b7a;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.app-content-shell__body {
  display: grid;
  gap: 16px;
}

/* Top header */
header.navbar,
.page-wrapper > .navbar {
  min-height: 64px;
  background: rgba(255, 255, 255, .94) !important;
  border-bottom: 1px solid var(--isp-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
  backdrop-filter: blur(10px);
}

header.navbar .container-xl,
.page-wrapper > .navbar .container-xl {
  min-height: 64px;
}

header.navbar .nav-item,
.page-wrapper > .navbar .nav-item {
  color: var(--isp-muted) !important;
  font-weight: 600;
}

/* Cards and sections */
.card {
  background: var(--isp-surface);
  border: 1px solid var(--isp-border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.card-header {
  min-height: 52px;
  padding: 12px 16px;
  background: transparent;
  border-bottom: 1px solid var(--isp-border);
  border-radius: 14px 14px 0 0 !important;
}

.card-title {
  color: var(--isp-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.card-body {
  padding: 16px;
}

.row-cards {
  --tblr-gutter-x: 16px;
  --tblr-gutter-y: 16px;
}

.border.rounded,
.rounded {
  border-color: var(--isp-border) !important;
  border-radius: var(--isp-radius) !important;
}

/* Tables */
.table-responsive {
  border-radius: 0;
}

.table {
  --tblr-table-color: var(--isp-text);
  --tblr-table-border-color: var(--isp-border);
  margin-bottom: 0;
  color: var(--isp-text);
  font-size: 14px;
}

.table thead th {
  height: 42px;
  padding: 10px 14px;
  background: #eef3f7;
  border-bottom: 1px solid var(--isp-border);
  color: #3f3f46;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 16px;
  white-space: nowrap;
}

.table thead th:first-child,
.table thead th:last-child {
  border-radius: 0 !important;
}

.table tbody td,
.table tbody th,
.table td,
.table th {
  min-height: 56px;
  padding: 12px 14px;
  border-color: var(--isp-border);
  vertical-align: middle;
}

.table-sm tbody td,
.table-sm tbody th,
.table-sm td,
.table-sm th {
  min-height: 48px;
  padding: 10px 12px;
}

.table tbody tr {
  transition: background-color .15s ease;
}

.table tbody tr:hover {
  background: #f1f5f9;
}

.card-table thead th:first-child,
.card-table tbody td:first-child {
  padding-left: 18px;
}

.card-table thead th:last-child,
.card-table tbody td:last-child {
  padding-right: 18px;
}

.table a:not(.btn) {
  color: var(--isp-primary-strong);
  font-weight: 600;
  text-decoration: none;
}

.table a:not(.btn):hover {
  color: var(--isp-primary);
  text-decoration: underline;
}

/* Forms */
.form-label {
  color: #334155;
  font-size: 14px;
  font-weight: 800;
  line-height: 16px;
}

.form-control,
.form-select {
  min-height: 40px;
  border-color: #d7dee7;
  border-radius: 10px;
  background: #fff;
  color: var(--isp-text);
  font-size: 14px;
  box-shadow: none;
}

.form-control-sm,
.form-select-sm {
  min-height: 32px;
  border-radius: 8px;
  font-size: 13px;
}

.form-control:focus,
.form-select:focus {
  border-color: #7ab4e0;
  box-shadow: 0 0 0 3px rgba(0, 112, 242, .12);
}

.form-control:disabled,
.form-select:disabled,
.form-control[readonly] {
  background-color: #f1f5f9;
  color: var(--isp-muted);
}

.form-hint,
.text-muted {
  color: var(--isp-muted) !important;
}

code {
  color: var(--isp-primary-strong);
  background: var(--isp-primary-soft);
  border-radius: 6px;
  padding: 2px 5px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  line-height: 20px;
  box-shadow: none;
}

.btn-sm {
  min-height: 32px;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 13px;
}

.btn:focus,
.btn:focus-visible,
.btn-check:focus + .btn {
  box-shadow: 0 0 0 2px rgba(79, 70, 229, .24) !important;
}

.btn-primary,
.btn-primary:disabled {
  border-color: #005b96;
  background: #005b96;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  border-color: #014a7b !important;
  background: #014a7b !important;
  color: #fff !important;
}

.btn-success,
.btn-success:disabled {
  border-color: var(--isp-success);
  background: var(--isp-success);
  color: #fff;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
  border-color: var(--isp-success-strong) !important;
  background: var(--isp-success-strong) !important;
  color: #fff !important;
}

.btn-warning {
  border-color: var(--isp-warning);
  background: var(--isp-warning);
  color: #1e293b;
}

.btn-danger {
  border-color: var(--isp-danger);
  background: var(--isp-danger);
  color: #fff;
}

.btn-secondary,
.btn-outline-secondary,
.btn:not([class*="btn-"]) {
  border-color: #d7dee7;
  background: #fff;
  color: #475569;
}

.btn-secondary:hover,
.btn-outline-secondary:hover,
.btn:not([class*="btn-"]):hover {
  border-color: #bfd2e4;
  background: #f7fafc;
  color: var(--isp-text);
}

.btn-outline-primary {
  border-color: rgba(0, 91, 150, .35);
  background: #fff;
  color: #005b96;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  border-color: #005b96;
  background: #eaf4ff;
  color: #005b96;
}

.resource-screen {
  display: grid;
  gap: 14px;
}

.resource-screen__copy {
  display: grid;
  gap: 4px;
}

.resource-screen__title {
  margin: 0;
  color: #111827;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}

.resource-screen__description {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 20px;
}

.resource-card {
  overflow: hidden;
}

.resource-card .table-responsive {
  border-radius: 0;
}

.resource-card .table thead th:first-child,
.resource-card .table thead th:last-child {
  border-radius: 0 !important;
}

.resource-filters {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(220px, .8fr) 160px;
  gap: 12px;
  align-items: end;
}

.resource-filters > :first-child {
  padding-left: 10px;
}

.resource-filters > :last-child {
  padding-right: 10px;
}

.resource-field {
  display: grid;
  gap: 4px;
}

.filter-field {
  display: grid;
  gap: 4px;
}

.filter-field--search {
  min-width: 0;
}

.resource-field--compact {
  max-width: 320px;
}

.resource-field--action {
  width: 100%;
}

.resource-table__image-col {
  width: 74px;
}

.resource-table__code {
  color: #111827;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
}

.resource-table__name {
  color: #111827;
  font-weight: 600;
}

.resource-table__actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 6px;
}

.resource-table thead th:first-child,
.resource-table tbody td:first-child {
  padding-left: 22px;
}

.resource-table thead th:last-child,
.resource-table tbody td:last-child {
  padding-right: 22px;
}

.resource-table tbody td,
.resource-table tbody th {
  min-height: 40px;
  padding-top: 9px;
  padding-bottom: 9px;
}

.products-admin-card {
  overflow: hidden;
  background: var(--isp-surface);
  border: 1px solid var(--isp-border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}

.products-admin-toolbar {
  padding: 16px 18px 12px;
  border-bottom: 1px solid #dbe4ee;
  background: #ffffff;
}

.products-admin-filters {
  display: grid;
  grid-template-columns: minmax(260px, 2.4fr) repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.settings-admin-filters {
  grid-template-columns: minmax(260px, 2.4fr) minmax(180px, 1fr);
}

.admin-list-table {
  margin-bottom: 0;
}

.admin-list-table thead th {
  padding: 12px 16px;
  background: #eef3f8;
  color: #344054;
  font-size: 13px;
  font-weight: 700;
  border-bottom: 1px solid #dbe4ee;
  white-space: nowrap;
}

.admin-list-table tbody td {
  padding: 14px 16px;
  color: #344054;
  vertical-align: middle;
  border-bottom: 1px solid #e6edf5;
}

.admin-list-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-list-table__code {
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.admin-list-table__name {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.admin-list-table__chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  border: 1px solid #d6dee8;
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 12px;
  font-weight: 600;
}

.admin-list-table__actions-col {
  width: 108px;
}

.admin-list-table__actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
}

.admin-list-table__empty {
  padding: 28px 16px !important;
  text-align: center;
}

.admin-list-table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-top: 1px solid #dbe4ee;
  background: #fff;
}

.admin-list-table-footer__summary {
  color: #667085;
  font-size: 14px;
  font-weight: 500;
}

.admin-list-table-footer__controls {
  display: inline-flex;
  align-items: center;
  gap: 18px;
}

.products-page-size-form,
.products-pager,
.products-pager__form {
  display: inline-flex;
  align-items: center;
}

.products-page-size-select {
  min-width: 148px;
  border-radius: 12px;
}

.products-pager {
  gap: 10px;
}

.products-pager__nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: #667085;
  font-size: 14px;
  font-weight: 500;
}

.products-pager__nav:disabled {
  opacity: .45;
  cursor: default;
}

.products-pager__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 10px;
  background: #f8fafc;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}

.product-detail-card .card-body {
  padding: 20px 24px 24px;
}

.product-section-heading {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.product-section-heading__title {
  margin: 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.product-section-heading__subtitle {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 20px;
}

.product-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
}

.product-form-field {
  display: grid;
  gap: 4px;
}

.product-form-field--full {
  grid-column: 1 / -1;
}

.product-form-textarea {
  min-height: 92px;
  resize: vertical;
}

.product-edit-form {
  display: grid;
  gap: 20px;
}

.product-edit-form > .card {
  align-self: start;
  width: 100%;
}

.transfer-split-form {
  gap: 0;
}

.product-form-footer {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 8px -24px -24px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--isp-border);
  backdrop-filter: blur(8px);
}

.icon-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #3f3f46;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}

.icon-action-btn:hover,
.icon-action-btn:focus {
  border-color: #d7dee7;
  background: #f7fafc;
  color: #111827;
}

/* Badges and status chips */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 14px;
  text-transform: uppercase;
}

.bg-green-lt,
.bg-success-lt {
  border-color: #a7f3d0 !important;
  background: var(--isp-success-soft) !important;
  color: #047857 !important;
}

.bg-blue-lt,
.bg-primary-lt,
.bg-info-lt {
  border-color: #c7d2fe !important;
  background: var(--isp-primary-soft) !important;
  color: var(--isp-primary-strong) !important;
}

.bg-yellow-lt,
.bg-warning-lt,
.bg-orange-lt {
  border-color: #fde68a !important;
  background: var(--isp-warning-soft) !important;
  color: #92400e !important;
}

.bg-red-lt,
.bg-danger-lt {
  border-color: #fecaca !important;
  background: var(--isp-danger-soft) !important;
  color: #b91c1c !important;
}

.bg-purple-lt,
.bg-secondary-lt {
  border-color: var(--isp-border) !important;
  background: #f8fafc !important;
  color: #475569 !important;
}

.text-primary { color: var(--isp-primary-strong) !important; }
.text-success { color: var(--isp-success-strong) !important; }
.text-warning { color: #b45309 !important; }
.text-danger { color: #b91c1c !important; }

.alert {
  border-radius: 12px;
  border-width: 1px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

.alert-success {
  border-color: #a7f3d0;
  background: var(--isp-success-soft);
  color: #065f46;
}

.alert-danger {
  border-color: #fecaca;
  background: var(--isp-danger-soft);
  color: #991b1b;
}

.alert-warning {
  border-color: #fde68a;
  background: var(--isp-warning-soft);
  color: #92400e;
}

/* Product imagery */
.product-thumb {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--isp-border);
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.product-thumb--placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.product-image-preview {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 16px;
  border: 1px solid var(--isp-border);
  background: #fff;
  box-shadow: var(--isp-shadow);
}

/* Progress and workflow */
.progress {
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.progress-bar {
  background-color: var(--isp-primary) !important;
}

.order-progress {
  display: flex;
  align-items: flex-start;
  width: 100%;
  gap: 0;
  padding: 10px 4px 4px;
}

.order-progress-item {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  color: var(--isp-muted);
}

.order-progress-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 3px;
  border-radius: 999px;
  background: #dbe4ee;
  z-index: 0;
}

.order-progress-item.is-complete:not(:last-child)::after,
.order-progress-item.is-current:not(:last-child)::after {
  background: var(--isp-success);
}

.order-progress-dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 2px solid #dbe4ee;
  background: #fff;
  color: var(--isp-muted);
  font-weight: 800;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.order-progress-item.is-complete .order-progress-dot,
.order-progress-item.is-current .order-progress-dot {
  border-color: var(--isp-success);
  background: var(--isp-success);
  color: #fff;
}

.order-progress-item.is-complete,
.order-progress-item.is-current {
  color: var(--isp-success-strong);
}

.order-progress-item.is-current .order-progress-dot {
  box-shadow: 0 0 0 4px rgba(16, 185, 129, .16);
}

.order-progress-item.is-terminal .order-progress-dot {
  border-color: var(--isp-danger);
  background: var(--isp-danger);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(186, 26, 26, .14);
}

.order-progress-item.is-terminal {
  color: var(--isp-danger);
}

.order-progress-terminal {
  max-width: 220px;
}

.order-progress-label {
  display: block;
  margin-top: 8px;
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .03em;
  line-height: 16px;
  text-transform: uppercase;
  white-space: nowrap;
}

.order-progress--stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 2px 0;
}

.order-progress--stacked .order-progress-item {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  text-align: left;
  padding: 7px 0;
}

.order-progress--stacked .order-progress-item:not(:last-child)::after {
  top: 38px;
  left: 17px;
  right: auto;
  bottom: -7px;
  width: 3px;
  height: auto;
}

.order-progress--stacked .order-progress-label {
  margin-top: 0;
  text-align: left;
  white-space: normal;
}

.transfer-progress-compact .order-progress-terminal {
  max-width: none;
}

.transfer-workflow-actions .btn {
  white-space: nowrap;
}

.transfer-add-products-btn {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
}

.order-terminal-status {
  border-color: #fecaca;
  color: #991b1b;
  background: var(--isp-danger-soft);
}

.timeline-event-icon {
  background: var(--isp-primary-soft);
  color: var(--isp-primary-strong);
}

.modal-content {
  border: 1px solid var(--isp-border);
  border-radius: 16px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, .16);
}

.modal-header,
.modal-footer {
  border-color: var(--isp-border);
}

@media (max-width: 1200px) {
  .products-admin-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .app-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--isp-border);
  }

  .app-sidebar__nav {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .page-body,
  .py-4 {
    padding-bottom: 24px !important;
  }

  .card-body,
  .card-header {
    padding-left: 14px;
    padding-right: 14px;
  }

  .app-header__inner,
  .app-content-shell {
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (min-width: 992px) {
  .app-shell {
    flex-direction: row;
    align-items: stretch;
  }

  .app-sidebar {
    position: sticky;
    top: 0;
    flex: 0 0 280px;
    width: 280px;
    height: 100vh;
    padding: 0;
  }
}

@media (max-width: 575.98px) {
  .page-header,
  .card-header,
  header.navbar .navbar-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-header__inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-page-intro {
    flex-direction: column;
  }

  .app-page-intro__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .resource-filters {
    grid-template-columns: 1fr;
  }

  .resource-field--compact {
    max-width: none;
  }

  .product-detail-card .card-body {
    padding: 16px;
  }

  .product-form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-form-footer {
    margin-left: -16px;
    margin-right: -16px;
    margin-bottom: -16px;
    padding: 12px 16px;
    flex-direction: column-reverse;
  }

  .product-form-footer .btn {
    width: 100%;
  }

  .app-sidebar__user-dropdown {
    left: 10px;
    right: 10px;
    min-width: 0;
  }

  .app-header__inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  header.navbar .navbar-nav {
    gap: 8px;
    width: 100%;
    padding: 10px 0;
  }

  .card-actions {
    width: 100%;
    margin-left: 0;
  }

  .card-actions .btn {
    width: 100%;
  }

  .table-responsive {
    border: 1px solid var(--isp-border);
  }

  .order-progress {
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .order-progress-item {
    min-width: 104px;
  }

  .products-admin-toolbar,
  .admin-list-table-footer {
    padding: 14px;
  }

  .products-admin-filters {
    grid-template-columns: 1fr;
  }

  .admin-list-table-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-list-table-footer__controls {
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}
