/**
 * Central Builders Grocery Ordering System
 * Administrator Dashboard Stylesheet
 * Handcrafted Pure CSS with Bootstrap 5 integration (No Tailwind)
 */

:root {
  --admin-sidebar-width: 272px;
  --admin-topbar-height: 72px;
  --admin-primary: #e10600;
  --admin-primary-dark: #c40000;
  --admin-dark: #1a1d26;
  --admin-bg: #f4f6fb;
  --admin-border: #e9ecef;
}

body.admin-layout {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--admin-dark);
  min-height: 100vh;
  background-color: #f4f6fb;
  overflow-x: hidden;
}

.admin-layout > .d-flex {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Sidebar */
.admin-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--admin-sidebar-width);
  z-index: 1030;
  padding: 0;
  background: #fff;
  border-right: 1px solid #eef1f6;
  color: #1a1d26;
  overflow: hidden;
  box-shadow: 8px 0 30px rgba(26, 29, 38, 0.03);
}

.cg-brand {
  display: flex;
  align-items: center;
  padding: 18px 20px 12px;
  text-decoration: none;
  color: inherit;
}

.cg-brand-name {
  display: block;
  max-width: 100%;
  color: var(--admin-primary);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.admin-sidebar .sidebar-menu {
  padding: 6px 0 8px;
}

.admin-sidebar .sidebar-link,
.admin-sidebar .nav-link {
  min-height: 46px;
  color: #3c4353;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 14px;
  margin: 3px 14px;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-sidebar .sidebar-link:hover,
.admin-sidebar .nav-link:hover {
  color: #e10600;
  background: #fff4f4;
}

.admin-sidebar .sidebar-link.active,
.admin-sidebar .nav-link.active {
  color: #fff;
  background: linear-gradient(90deg, #e10600 0%, #ff2a2a 100%);
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(225, 6, 0, 0.22);
}

.admin-sidebar .sidebar-link i,
.admin-sidebar .nav-link i {
  flex: 0 0 18px;
  color: #5d6678;
  font-size: 1.12rem;
  text-align: center;
}

.admin-sidebar .nav-link.active i,
.admin-sidebar .nav-link:hover i {
  color: inherit;
}

.admin-sidebar .nav-link > span:first-of-type {
  min-width: 0;
  flex: 1;
  line-height: 1.2;
  white-space: normal;
}

.admin-sidebar .sidebar-link {
  text-decoration: none;
}

.sidebar-count {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff1f1;
  color: #e10600;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 22px;
  text-align: center;
}

.sidebar-count-alert {
  background: #e10600;
  color: #fff;
}

.admin-sidebar .nav-link.active .sidebar-count-alert {
  background: #fff;
  color: #e10600;
}

.admin-sidebar-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  min-height: 210px;
  margin-top: auto;
  padding: 8px 14px 18px;
  overflow: hidden;
  border-top: 0;
}

.cg-side-user {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 8px 8px 8px 4px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border-radius: 16px;
}

.cg-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff4545, #d10000);
  color: #fff;
  font-size: 1.15rem;
  box-shadow: 0 6px 14px rgba(225, 6, 0, 0.25);
}

.cg-side-user-copy {
  display: grid;
  min-width: 0;
  flex: 1;
  line-height: 1.15;
}

.cg-side-user-copy strong {
  overflow: hidden;
  color: #1a1d26;
  font-size: 0.86rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cg-side-user-copy span {
  color: #8b93a7;
  font-size: 0.75rem;
  font-weight: 600;
}

.cg-side-user .bi-chevron-down {
  color: #9aa3b5;
  font-size: 0.8rem;
}

.cg-wave-link {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.cg-wave-link:hover {
  color: #fff;
  opacity: 0.88;
}

.cg-side-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 156px;
  pointer-events: none;
}

.admin-header-bell {
  position: absolute;
  top: 12px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #fff4f4;
  color: #c62828;
  font-size: 1.15rem;
  line-height: 1;
}

.admin-header-bell[hidden] {
  display: none !important;
}

.admin-header-bell:hover,
.admin-header-bell:focus-visible {
  background: #ffe4e4;
  color: #a91f24;
}

.admin-header-bell .notification-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid #fff;
  font-size: 0.62rem;
  line-height: 14px;
}

/* Main Content Area */
.admin-main-wrapper {
  margin-left: var(--admin-sidebar-width);
  width: calc(100% - var(--admin-sidebar-width));
  max-width: calc(100% - var(--admin-sidebar-width));
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Top Navigation Bar */
.admin-topbar {
  height: auto;
  min-height: var(--admin-topbar-height);
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding-top: 10px;
  padding-bottom: 10px;
  background: #fff;
  border-bottom: 1px solid var(--admin-border);
  padding-right: 80px !important;
  position: sticky;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.025);
}

.admin-menu-toggle,
.admin-sidebar-backdrop {
  display: none;
}

.reports-topbar {
  height: auto;
  min-height: var(--admin-topbar-height);
  gap: 12px 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}

.reports-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.reports-filter,
.reports-exports {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.reports-filter .form-control {
  width: 9.75rem;
  flex: 0 0 auto;
}

.reports-filter .btn,
.reports-exports .btn {
  white-space: nowrap;
  flex: 0 0 auto;
}

.admin-content-body {
  padding: 26px 30px;
  flex-grow: 1;
  min-width: 0;
  max-width: 100%;
}

/* Metric / KPI Cards */
.stat-kpi-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  padding: 19px;
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.025);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.stat-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(31, 41, 55, 0.07);
  border-color: #f0c7c8;
}

a.stat-kpi-card,
a.stat-kpi-trigger {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

a.stat-kpi-card:hover,
a.stat-kpi-card:focus,
a.stat-kpi-trigger:hover,
a.stat-kpi-trigger:focus {
  color: inherit;
  text-decoration: none;
}

a.stat-kpi-card:focus-visible,
a.stat-kpi-trigger:focus-visible {
  outline: 2px solid var(--admin-primary);
  outline-offset: 2px;
}

.dashboard-kpi-modal .modal-content {
  border: 0;
  border-radius: 16px;
  overflow: hidden;
}

.dashboard-kpi-modal .modal-header,
.dashboard-kpi-modal .modal-footer {
  padding: 16px 20px;
}

.dashboard-kpi-modal .modal-title {
  color: #1f2937;
}

.kpi-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.bubble-red {
  background: #fff0f0;
  color: #c62828;
}

.bubble-green {
  background: #fff4f4;
  color: #bd3034;
}

.bubble-blue {
  background: #fff7f7;
  color: #a91f24;
}

.bubble-amber {
  background: #fff1f1;
  color: #d14347;
}

.bubble-purple {
  background: #fff5f5;
  color: #8f2529;
}

/* Tables */
.admin-table-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.025);
}

.admin-table-card > .bg-light {
  background-color: #fff !important;
  border-color: var(--admin-border) !important;
}

.admin-table th {
  background-color: #fff7f7;
  color: #606978;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #f0dada;
  padding: 13px 16px;
}

.admin-table td {
  padding: 13px 16px;
  vertical-align: middle;
  font-size: 0.9rem;
  border-bottom: 1px solid #f1f2f4;
}

.admin-table tbody tr:hover {
  background-color: #fffafa;
}

.customer-address-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--admin-border, #e7e8ea);
  border-radius: 10px;
  background: #fff;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.5rem;
}

.customer-address-line-text {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow: hidden;
}

.customer-address-line-text strong,
.customer-address-line-text .badge {
  flex-shrink: 0;
}

.customer-address-line-text .text-muted {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-layout .table tbody tr.needs-action > * {
  --bs-table-bg: #fff4e0;
  --bs-table-accent-bg: #fff4e0;
  background-color: #fff4e0;
}

.admin-layout .table tbody tr.needs-action:hover > * {
  --bs-table-bg: #ffe4c2;
  --bs-table-accent-bg: #ffe4c2;
  background-color: #ffe4c2;
}

.admin-layout .table tbody tr.needs-action > *:first-child {
  border-left: 4px solid #e8890c;
}

.admin-table-card.needs-action-card,
.list-group-item.needs-action {
  background: #fff4e0;
  border-color: #f5c07a;
  box-shadow: inset 4px 0 0 #e8890c, 0 2px 8px rgba(31, 41, 55, 0.025);
}

/* Compact order and payment queue */
.orders-live-card {
  border-radius: 12px;
  max-width: 100%;
}

.orders-live-card .table-responsive {
  max-width: 100%;
}

.orders-live-heading {
  min-height: 48px;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #334155;
  font-size: 0.76rem;
  font-weight: 700;
}

.orders-live-heading small {
  color: #718096;
  font-size: 0.68rem;
  font-weight: 400;
}

.orders-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 0 16px 12px;
}

.orders-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.orders-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  width: min(100%, 280px);
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d5deea;
  border-radius: 999px;
  background: #fff;
  color: #94a3b8;
}

.orders-search:focus-within {
  border-color: #e8b4b4;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.08);
}

.orders-search input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1f2937;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 0;
}

.orders-search input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.orders-filter-chip {
  border: 1px solid #d5deea;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 5px 10px 5px 12px;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
}

.orders-filter-chip span {
  display: inline-block;
  margin-left: 6px;
  min-width: 1.25rem;
  padding: 0 6px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.68rem;
  text-align: center;
}

.orders-filter-chip:hover {
  border-color: #e8b4b4;
  color: var(--admin-primary);
}

.orders-filter-chip.is-active {
  background: var(--admin-primary);
  border-color: var(--admin-primary);
  color: #fff;
}

.orders-filter-chip.is-active span {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.orders-live-table {
  width: 100%;
  table-layout: fixed;
}

.orders-live-table th:nth-child(1) { width: 16%; }
.orders-live-table th:nth-child(2) { width: 16%; }
.orders-live-table th:nth-child(3) { width: 20%; }
.orders-live-table th:nth-child(4) { width: 16%; }
.orders-live-table th:nth-child(5) { width: 16%; }
.orders-live-table th:nth-child(6) { width: 16%; }

.orders-live-table thead th {
  background: #f8fafc;
  border-bottom-color: #dce3eb;
  color: #53657d;
  font-size: 0.68rem;
  letter-spacing: 0;
  padding: 11px 8px;
  white-space: normal;
}

.orders-live-table tbody td {
  padding: 12px 8px;
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.orders-live-table tbody tr:hover {
  background: #fbfdff;
}

.orders-live-number {
  color: #c62828;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.orders-live-number:hover {
  text-decoration: underline;
}

.orders-destination-button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.orders-destination-button .bi-geo-alt-fill {
  color: #c62828;
}

.orders-destination-button:hover .orders-destination-label,
.orders-destination-button:focus-visible .orders-destination-label {
  color: #c62828;
  text-decoration: underline;
}

.orders-destination-button:focus-visible {
  outline: 2px solid #c62828;
  outline-offset: 2px;
  border-radius: 4px;
}

.destination-map-modal .modal-body {
  padding-top: 0.75rem;
}

.destination-map-address {
  font-weight: 700;
  color: #1e293b;
}

.destination-map-stage {
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #e8eef4;
}

.destination-map-canvas {
  height: 360px;
  width: 100%;
  background: #dbe7ee;
}

.destination-map-canvas.leaflet-container {
  font-family: inherit;
  background: #dbe7ee;
}

.leaflet-marker-icon.destination-map-marker {
  background: none;
  border: 0;
}

.destination-map-pin {
  position: relative;
  width: 46px;
  height: 58px;
  pointer-events: none;
  filter: drop-shadow(0 6px 6px rgba(0, 0, 0, 0.32));
}

.destination-map-pin svg {
  display: block;
  width: 46px;
  height: 58px;
}

.destination-map-pin-tip {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(28, 28, 28, 0.28);
  transform: translate(-50%, 50%);
}

.destination-map-status {
  margin: 0;
  padding: 8px 12px;
  background: #fff;
  color: #64748b;
  font-size: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.destination-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, 0.85fr);
  gap: 12px;
  align-items: stretch;
}

.destination-map-layout.is-map-only {
  grid-template-columns: minmax(0, 1fr);
}

.destination-route {
  max-height: 420px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 12px 14px;
}

.destination-route-kicker {
  margin: 0 0 2px;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.destination-route-distance {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.destination-route-fee {
  margin: 4px 0 0;
  font-weight: 700;
  color: #b42318;
}

.destination-route-meta {
  margin: 4px 0 12px;
  color: #64748b;
  font-size: 0.8rem;
}

.destination-route-steps {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 8px;
}

.destination-route-steps li {
  color: #1e293b;
  font-size: 0.86rem;
}

.destination-route-steps small {
  display: block;
  color: #64748b;
}

.store-location-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.store-location-toolbar .form-control {
  flex: 1 1 220px;
}

.store-location-results {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
}

.store-location-result {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  font: inherit;
  font-size: 0.82rem;
  text-align: left;
}

.store-location-result:hover,
.store-location-result:focus-visible {
  border-color: #15803d;
  background: #f0fdf4;
}

.store-location-map {
  height: 360px;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #dbe7ee;
}

.store-location-map.leaflet-container {
  font-family: inherit;
  background: #dbe7ee;
}

@media (max-width: 767px) {
  .destination-map-layout,
  .destination-map-layout.is-map-only {
    grid-template-columns: minmax(0, 1fr);
  }

  .destination-route {
    max-height: 260px;
  }
}

.orders-view-button {
  border: 1px solid #fecaca;
  background: #fff5f5;
  color: #b42318;
}

.orders-view-button:hover {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
}

.orders-items-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.orders-items-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f6;
}

.orders-items-list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.orders-items-list .catalog-photo {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 8px;
  object-fit: cover;
}

.orders-items-name {
  min-width: 0;
  font-weight: 600;
  color: #1f2937;
}

.orders-items-qty {
  margin-left: auto;
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}

.orders-items-price {
  min-width: 5.5rem;
  font-weight: 700;
  color: #1f2937;
  text-align: right;
  white-space: nowrap;
}

.orders-items-summary {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e5e7eb;
}

.orders-items-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #64748b;
  font-size: 0.9rem;
}

.orders-items-summary .orders-items-grand {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #eef2f6;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 700;
}

.orders-items-summary .orders-items-grand span:last-child {
  color: #b42318;
}

.payment-proof-link {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 100%;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b42318;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.payment-proof-link:hover {
  text-decoration: underline;
}

.payment-proof-thumb {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.payment-proof-modal .modal-body {
  display: flex;
  justify-content: center;
  background: #fff;
}

.payment-proof-full {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(75vh, 820px);
  object-fit: contain;
  border-radius: 8px;
}

.orders-live-total {
  white-space: nowrap;
}

.payment-state {
  display: inline-block;
  max-width: 100%;
  margin-left: 5px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: lowercase;
  vertical-align: 1px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.payment-state-verified {
  background: #d1fae5;
  color: #047857;
}

.payment-state-pending {
  background: #fef3c7;
  color: #a16207;
}

.payment-state-failed,
.payment-state-refunded {
  background: #fee2e2;
  color: #b91c1c;
}

.orders-status-form {
  min-width: 0;
  width: 100%;
}

.orders-status-select {
  width: 100%;
  min-height: 31px;
  padding: 4px 20px 4px 8px;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 600;
}

.orders-status-select.status-pending {
  border-color: #fbbf24;
  background-color: #fffbeb;
  color: #92400e;
}

.orders-status-select.status-confirmed,
.orders-status-select.status-preparing {
  border-color: #f59e0b;
  background-color: #fff7ed;
  color: #9a3412;
}

.orders-status-select.status-ready-for-pickup,
.orders-status-select.status-out-for-delivery {
  border-color: #60a5fa;
  background-color: #eff6ff;
  color: #1d4ed8;
}

.orders-status-select.status-completed {
  border-color: #34d399;
  background-color: #ecfdf5;
  color: #047857;
}

.orders-status-select.status-cancelled,
.orders-status-select.status-rejected {
  border-color: #fca5a5;
  background-color: #fef2f2;
  color: #b91c1c;
}

.orders-reject-note {
  margin-top: 6px;
  padding: 8px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fff7f7;
}

.orders-reject-label {
  margin: 0 0 6px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b91c1c;
}

.orders-reject-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 6px;
}

.orders-reject-chips button {
  border: 1px solid #fecaca;
  background: #fff;
  color: #991b1b;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 8px;
}

.orders-reject-chips button.is-active {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.orders-reject-error {
  margin: 4px 0 0;
  color: #b91c1c;
  font-size: 0.68rem;
  font-weight: 600;
}

.orders-reject-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
}

.orders-reject-actions .btn {
  font-size: 0.68rem;
  font-weight: 700;
}

.orders-reject-back {
  color: #64748b;
  text-decoration: none;
  padding-inline: 6px;
}

.orders-status-reason {
  display: block;
  margin-top: 4px;
  color: #b91c1c;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.35;
}

.orders-live-actions {
  min-width: 0;
  text-align: right;
  white-space: normal;
}

.orders-action-button {
  margin: 2px;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.orders-driver-button {
  border: 1px solid #dbeafe;
  background: #eff6ff;
  color: #1d4ed8;
}

.orders-driver-button:hover {
  border-color: #bfdbfe;
  background: #dbeafe;
  color: #1e40af;
}

.orders-driver-button:disabled,
.orders-driver-button:disabled:hover {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}

.orders-driver-lock {
  display: block;
  margin: 2px 2px 0;
  color: #b45309;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
}

.driver-roster-details {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.85rem;
}

.orders-driver-note {
  display: block;
  margin: 2px 2px 0;
  color: #1d4ed8;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
}

.assign-mode {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.assign-finding-fields {
  display: grid;
  gap: 1rem;
}

[data-assign-panel][hidden],
[data-partner-other][hidden] {
  display: none !important;
}

.assign-mode-option {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.assign-mode-option input {
  margin-top: 3px;
}

.assign-mode-option:has(input:checked) {
  border-color: #c62828;
  background: #fff5f5;
}

.assign-mode-option strong,
.assign-found-option strong {
  display: block;
  font-size: 0.92rem;
}

.assign-mode-option small,
.assign-found-option small {
  display: block;
  color: #64748b;
  line-height: 1.35;
}

.assign-found-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0;
  padding: 12px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff7f7;
  cursor: pointer;
}

.assign-found-option input {
  margin-top: 3px;
}

@media (max-width: 520px) {
  .assign-mode {
    grid-template-columns: 1fr;
  }
}

.orders-verify-button {
  border: 1px solid #d1fae5;
  background: #ecfdf5;
  color: #047857;
}

.orders-verify-button:hover {
  border-color: #a7f3d0;
  background: #d1fae5;
  color: #065f46;
}

.orders-delivered-button {
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  color: #15803d;
}

.orders-delivered-button:hover {
  border-color: #86efac;
  background: #dcfce7;
  color: #166534;
}

.orders-print-button,
.orders-more-toggle {
  width: 28px;
  height: 28px;
  margin: 2px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 7px;
  background: #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.orders-print-button:hover,
.orders-more-toggle:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.orders-more-actions {
  position: relative;
  display: inline-block;
}

.orders-more-toggle {
  cursor: pointer;
  list-style: none;
}

.orders-more-toggle::-webkit-details-marker {
  display: none;
}

.orders-more-panel {
  position: static;
  width: 100%;
  min-width: 0;
  display: grid;
  gap: 8px;
  margin-top: 6px;
  padding: 10px;
  border: 1px solid var(--admin-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.14);
  text-align: left;
  white-space: normal;
}

.orders-more-panel form + form {
  padding-top: 8px;
  border-top: 1px solid var(--admin-border);
}

/* Status Badges */
.status-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  display: inline-block;
  text-transform: capitalize;
}

/* Filter Card */
.filter-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.025);
}

.admin-layout .form-control:focus,
.admin-layout .form-select:focus {
  border-color: #df8b8e;
  box-shadow: 0 0 0 0.2rem rgba(198, 40, 40, 0.12);
}

.admin-layout .btn-danger {
  background-color: var(--admin-primary);
  border-color: var(--admin-primary);
}

.admin-layout .btn-danger:hover {
  background-color: var(--admin-primary-dark);
  border-color: var(--admin-primary-dark);
}

/* Responsive adjustment for Mobile screens */
@media (max-width: 991.98px) {
  .admin-menu-toggle {
    display: inline-flex;
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1040;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e6e8eb;
    border-radius: 10px;
    background: #fff;
    color: #1f2937;
    font-size: 1.35rem;
    line-height: 1;
  }

  .admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1025;
    background: rgba(15, 27, 50, 0.45);
  }

  .admin-sidebar-backdrop:not([hidden]) {
    display: block;
  }

  .admin-sidebar {
    z-index: 1035;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }

  .admin-sidebar.show {
    transform: translateX(0);
  }

  .admin-main-wrapper {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }

  .admin-topbar {
    padding-left: 64px !important;
  }

  .admin-content-body {
    padding: 20px;
  }
}

@media (max-width: 575.98px) {
  .admin-content-body {
    padding: 16px 12px;
  }

  .admin-topbar {
    padding-left: 62px !important;
    padding-right: 64px !important;
  }

  .admin-topbar h5 {
    font-size: 1rem;
  }

  .stat-kpi-card {
    padding: 16px;
  }

  .filter-card {
    padding: 16px;
  }
}

/* Product catalogue */
.products-main {
  min-width: 0;
}

.products-page {
  min-width: 0;
  padding: 28px 30px 36px;
}

.products-page .admin-topbar .badge {
  padding: 7px 12px;
  background: #fff0f0 !important;
  color: var(--admin-primary) !important;
  font-size: 0.75rem;
  font-weight: 700;
}

.product-preview-card {
  position: sticky;
  top: calc(var(--admin-topbar-height) + 20px);
}

.admin-layout .product-form-modal.modal-dialog {
  max-width: min(1080px, calc(100vw - 2rem));
}

.product-form-modal .modal-content {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(31, 41, 55, 0.18);
}

.product-form-modal .modal-header,
.product-form-modal .modal-footer {
  padding: 16px 20px;
  border-color: #f1f3f5;
}

.product-form-modal .modal-title {
  color: #1f2937;
}

.product-form-modal .modal-body {
  padding: 18px 20px;
}

.product-form-modal .product-preview-card {
  position: static;
}

.product-preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 240px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
}

.product-preview-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.product-preview-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #94a3b8;
  font-size: 0.78rem;
}

.product-preview-placeholder i {
  font-size: 2rem;
}

.catalogue-card {
  border-color: #e7ebf0;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.025);
}

.catalogue-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 14px;
  background: #fff;
}

.catalogue-description {
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 500;
}

.catalogue-card-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.catalogue-card-actions .btn {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 10px;
  font-size: 0.76rem;
  font-weight: 650;
  box-shadow: 0 3px 8px rgba(198, 40, 40, 0.12);
}

.catalogue-card .table-responsive {
  scrollbar-color: #cbd2dc #f5f6f8;
  scrollbar-width: thin;
}

.catalogue-table {
  min-width: 1140px;
  table-layout: fixed;
}

.catalogue-table th,
.catalogue-table td {
  padding-right: 12px;
  padding-left: 12px;
}

.catalogue-table th {
  padding-top: 10px;
  padding-bottom: 10px;
  background: #f8fafc;
  color: #526174;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.catalogue-table th:nth-child(1) { width: 19%; }
.catalogue-table th:nth-child(2) { width: 12%; }
.catalogue-table th:nth-child(3) { width: 7%; }
.catalogue-table th:nth-child(4) { width: 10%; }
.catalogue-table th:nth-child(5) { width: 9%; }
.catalogue-table th:nth-child(6) { width: 12%; }
.catalogue-table th:nth-child(7) { width: 14%; }
.catalogue-table th:nth-child(8) { width: 17%; }

.catalogue-table td {
  padding-top: 9px;
  padding-bottom: 9px;
  color: #293548;
  font-size: 0.75rem;
  line-height: 1.4;
}

.catalogue-table td,
.catalogue-table th {
  border-color: #edf1f5;
}

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

.catalogue-table tbody tr:hover {
  background: #f8fafc;
}

.catalogue-table tbody tr.low-stock-row > * {
  --bs-table-bg: #fff1f2;
  --bs-table-accent-bg: #fff1f2;
  --bs-table-hover-bg: #ffe4e6;
  background-color: #fff1f2;
}

.catalogue-table tbody tr.low-stock-row:hover > * {
  --bs-table-bg: #ffe4e6;
  --bs-table-accent-bg: #ffe4e6;
  background-color: #ffe4e6;
}

.catalogue-table tbody tr.low-stock-row > *:first-child {
  box-shadow: inset 3px 0 0 #e11d48;
}

.catalogue-table td small {
  margin-top: 3px;
  color: #8993a2 !important;
  font-size: 0.64rem;
  line-height: 1.45;
}

.product-identity strong {
  display: block;
  color: #202b3c;
  font-size: 0.76rem;
  font-weight: 700;
}

.product-image {
  display: block;
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e8edf2;
}

.product-image-placeholder {
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.9rem;
}

.product-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
  color: #8993a2;
  font-size: 0.62rem;
}

.product-meta .badge {
  padding: 2px 5px;
  border-radius: 4px;
  color: #657184 !important;
  font-size: 0.55rem;
  font-weight: 650;
  text-transform: capitalize;
}

.product-prices strong {
  color: #202b3c;
  font-size: 0.74rem;
  font-weight: 650;
  white-space: nowrap;
}

.product-retail-price strong {
  color: #c62828;
  font-weight: 800;
}

.product-stock .badge {
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  white-space: nowrap;
}

.product-stock .stock-pill-ok {
  background: #d1fae5;
  color: #047857;
}

.product-stock .stock-pill-low {
  background: #fee2e2;
  color: #b91c1c;
}

.product-supplier {
  overflow: hidden;
  color: #526174 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-actions {
  white-space: nowrap;
}

.product-actions form {
  margin: 0;
}

.product-icon-button {
  display: inline-flex;
  flex: 0 0 30px;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.8rem;
  line-height: 1;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.product-icon-button:hover {
  transform: translateY(-1px);
}

.product-icon-button:active {
  transform: translateY(0) scale(0.96);
}

.product-icon-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.product-stock-button {
  border-color: #dbeafe;
  background: #eff6ff;
  color: #2563eb;
}

.product-stock-button:hover {
  border-color: #bfdbfe;
  background: #dbeafe;
  color: #1d4ed8;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.12);
}

.product-restock-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.product-restock-button:hover {
  border-color: #fca5a5;
  background: #fee2e2;
  color: #991b1b;
  box-shadow: 0 3px 8px rgba(185, 28, 28, 0.12);
  transform: translateY(-1px);
}

.product-restock-button:active {
  transform: translateY(0) scale(0.96);
}

.product-restock-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.2);
}

.product-edit-button {
  border-color: #e0e7ff;
  background: #eef2ff;
  color: #4f46e5;
}

.product-edit-button:hover {
  border-color: #c7d2fe;
  background: #e0e7ff;
  color: #4338ca;
  box-shadow: 0 3px 8px rgba(79, 70, 229, 0.12);
}

.product-discontinue-button {
  border-color: #fee2e2;
  background: #fef2f2;
  color: #b91c1c;
}

.product-discontinue-button:hover {
  border-color: #fecaca;
  background: #fee2e2;
  color: #991b1b;
  box-shadow: 0 3px 8px rgba(185, 28, 28, 0.12);
}

.stock-modal-form + .stock-modal-form {
  padding-top: 18px;
  border-top: 1px solid #e9ecef;
}

.restock-price-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.restock-price-card div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #fecdd3;
  border-radius: 10px;
  background: #fff1f2;
}

.restock-price-card span {
  display: block;
  margin-bottom: 3px;
  color: #9f1239;
  font-size: 0.68rem;
  font-weight: 650;
}

.restock-price-card strong {
  color: #1f2937;
  font-size: 0.92rem;
}

.restock-next-note {
  color: #be123c;
  font-weight: 650;
}

@media (max-width: 575.98px) {
  .restock-price-card {
    grid-template-columns: 1fr;
  }
}

.delivery-form-modal .modal-content {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(31, 41, 55, 0.18);
}

.delivery-form-modal .modal-header,
.delivery-form-modal .modal-footer {
  padding: 16px 20px;
  border-color: #f1f3f5;
}

.delivery-form-modal .modal-title {
  color: #1f2937;
}

.delivery-form-modal .modal-body {
  padding: 18px 20px;
}


.recipe-form-modal .modal-dialog {
  max-width: min(1040px, calc(100vw - 2rem));
}

.recipe-form-modal .modal-content {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(31, 41, 55, 0.18);
}

.recipe-form-modal .modal-header,
.recipe-form-modal .modal-footer {
  padding: 16px 20px;
  border-color: #f1f3f5;
}

.recipe-form-modal .modal-title {
  color: #1f2937;
}

.recipe-form-modal .modal-body {
  padding: 18px 20px;
}

.recipe-picture-preview,
.recipe-admin-thumb {
  display: block;
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
}

.recipe-picture-preview {
  margin-top: 0.5rem;
}

.recipe-admin-thumb-empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  flex: 0 0 56px;
}

.recipe-form-modal .recipe-admin-ingredient-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) 92px 46px;
  gap: 0.5rem;
  align-items: end;
}

.recipe-form-modal .recipe-admin-ingredient-row > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
}

@media (max-width: 575.98px) {
  .recipe-form-modal .recipe-admin-ingredient-row {
    grid-template-columns: 1fr 1fr;
  }

  .recipe-form-modal .recipe-admin-ingredient-row > :first-child,
  .recipe-form-modal .recipe-admin-ingredient-row > :nth-child(2) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .products-page {
    padding: 20px 16px 28px;
  }

  .catalogue-card-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .catalogue-card-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .catalogue-table {
    min-width: 0;
  }
}

/* Keep every admin page inside the viewport when the window is resized. */
.admin-topbar form.d-flex {
  flex: 1 1 16rem;
  min-width: 0;
}

.admin-topbar form.d-flex .form-control {
  flex: 1 1 8rem;
  width: auto;
  min-width: 0;
}

.admin-topbar h5 {
  overflow-wrap: anywhere;
}

.admin-topbar .d-flex,
.admin-content-body .d-flex,
.admin-table-card .d-flex,
.orders-live-heading,
.filter-card form {
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.admin-content-body .row,
.admin-content-body .row > [class*="col"] {
  min-width: 0;
  max-width: 100%;
}

.admin-content-body,
.filter-card,
.stat-kpi-card,
.tab-content,
.tab-pane {
  min-width: 0;
  max-width: 100%;
}

.stat-kpi-card h3,
.stat-kpi-card span,
.admin-content-body p,
.admin-content-body li,
.admin-content-body td,
.admin-content-body th {
  overflow-wrap: break-word;
}

.admin-content-body .table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.admin-table-card:not(:has(.table-responsive)) {
  overflow-x: auto;
}

.admin-table:not(.catalogue-table):not(.orders-live-table):not(.inventory-editor-table):not(.inventory-line-table):not(.click-line-table):not(.in-fit):not(.staff-accounts-table) {
  width: max-content;
  min-width: 100%;
}

.click-line-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.click-line-table td {
  padding: 0;
}

.line-open {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.line-open:hover,
.line-open:focus-visible {
  color: inherit;
  background: transparent;
}

.line-open:focus-visible {
  outline: 2px solid var(--admin-primary, #dc3545);
  outline-offset: -2px;
}

.line-open .inventory-line {
  width: 100%;
}

.line-open-chevron {
  flex: 0 0 auto;
  color: #b0b7c3;
  font-size: 0.85rem;
}

.inventory-line-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.inventory-line-table th:last-child,
.inventory-line-table td:last-child {
  width: 72px;
  white-space: nowrap;
  vertical-align: middle;
}

.inventory-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.inventory-line strong {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #202b3c;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-line-meta {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  color: #8993a2;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inventory-line .badge {
  flex: 0 0 auto;
  font-weight: 650;
}

.inventory-editor-table {
  width: 100%;
  min-width: 720px;
  table-layout: auto;
}

.inventory-editor-table .form-control,
.inventory-editor-table .form-select {
  width: 100%;
}

.inventory-editor-table th:last-child,
.inventory-editor-table td:last-child {
  width: 1%;
  white-space: nowrap;
}

.admin-content-body .nav-tabs {
  flex-wrap: wrap;
  row-gap: 4px;
}

.admin-section-tabs .nav-link {
  color: #5c6778;
  font-weight: 600;
}

.admin-section-tabs .nav-link:hover,
.admin-section-tabs .nav-link.active {
  color: var(--admin-primary);
}

.admin-content-body .nav-tabs .nav-link {
  white-space: normal;
}

.admin-content-body img:not(.product-image):not(.catalog-photo):not(.payment-proof-thumb):not(.bp-item-photo),
.admin-content-body canvas,
.admin-content-body svg {
  max-width: 100%;
}

.admin-content-body pre,
.admin-content-body code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.admin-content-body details form,
.admin-content-body form[style*="min-width"] {
  min-width: 0 !important;
  width: min(100%, 420px);
  max-width: 100%;
}

.admin-content-body input,
.admin-content-body select,
.admin-content-body textarea,
.admin-content-body .form-control,
.admin-content-body .form-select {
  max-width: 100%;
  min-width: 0;
}

.filter-card form.d-flex > .form-control {
  flex: 1 1 12rem;
}

.line-product {
  min-width: 0;
  max-width: 100%;
}

.line-product > span,
.line-product > div {
  min-width: 0;
}

.orders-more-panel {
  width: min(245px, 100%);
  max-width: 100%;
}

.admin-layout .modal-dialog {
  max-width: min(var(--bs-modal-width, 500px), calc(100vw - 1.5rem));
  margin-left: auto;
  margin-right: auto;
}

.admin-layout .modal-body,
.stock-modal-form .d-flex > * {
  min-width: 0;
}

@media (max-width: 1199.98px) {
  .orders-live-table,
  .catalogue-table {
    min-width: 0;
    width: 100%;
  }

  .catalogue-table {
    table-layout: auto;
  }

  .orders-live-actions,
  .orders-status-form {
    min-width: 0;
  }

  .orders-live-actions,
  .orders-live-table thead th,
  .product-actions {
    white-space: normal;
  }

  .reports-toolbar,
  .reports-filter,
  .reports-exports {
    width: 100%;
    justify-content: flex-start;
  }

  .reports-filter .form-control {
    flex: 1 1 8.5rem;
    width: auto;
    min-width: 0;
  }
}

@media (max-width: 767.98px) {
  .orders-search {
    margin-left: 0;
    width: 100%;
  }

  .orders-live-table {
    min-width: 760px;
  }

  .catalogue-table {
    min-width: 860px;
    table-layout: fixed;
  }
}

@media (max-width: 575.98px) {
  .stat-kpi-card h3 {
    font-size: 1.25rem;
  }

  .admin-table th,
  .admin-table td {
    padding-right: 10px;
    padding-left: 10px;
  }

  .orders-live-heading,
  .admin-table-card > .border-bottom,
  .admin-table-card > .p-3.d-flex {
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .admin-topbar {
    align-items: flex-start;
  }

  .admin-topbar .btn,
  .admin-content-body .btn,
  .filter-card .btn {
    min-height: 40px;
  }

  .products-page,
  .admin-content-body {
    padding: 16px 12px 28px;
  }

  .filter-card .row > [class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .line-product img,
  .catalog-photo,
  .recipe-admin-thumb,
  .recipe-picture-preview {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
    object-fit: cover;
  }

  .stat-kpi-card {
    min-height: 88px;
  }

  .admin-layout .modal-dialog {
    margin: 0.75rem;
  }

  .recipe-form-modal .recipe-admin-ingredient-row {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    width: min(86vw, 280px);
  }
}

.payment-method-card {
  height: 100%;
  padding: 1.15rem 1.15rem 1.25rem;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: #fff;
}

.payment-method-card .form-check-input:checked {
  background-color: var(--admin-primary);
  border-color: var(--admin-primary);
}

.payment-method-qr {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--admin-border);
}

.payment-qr-admin-card {
  height: 100%;
  padding: 1rem;
  border: 1px solid var(--admin-border);
  border-radius: 16px;
  background: #fff;
}

.payment-qr-admin-image {
  display: block;
  width: min(220px, 100%);
  height: auto;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid #e7e5e4;
  border-radius: 14px;
  background: #fff;
  object-fit: contain;
}

.payment-qr-admin-empty {
  padding: 1.25rem 1rem;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
  text-align: center;
}

body.admin-layout:has(.staff-login) {
  background: #fff;
}

.staff-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 36px 48px;
  background: #fff var(--portal-bg) center / cover no-repeat;
}

.staff-login-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  align-items: center;
  gap: 72px;
  width: min(1080px, 100%);
}

.staff-login-brand,
.staff-login-card {
  min-width: 0;
}

.staff-login-brand {
  text-align: center;
}

.staff-login-wordmark {
  margin: 0;
  color: var(--admin-primary);
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.staff-login-rule {
  display: block;
  width: 46px;
  height: 3px;
  margin: 18px auto 16px;
  border-radius: 3px;
  background: #e10600;
}

.staff-login-brand h1 {
  margin: 0;
  color: #1c2430;
  font-size: clamp(2.15rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.staff-login-brand h1 span {
  color: #e10600;
}

.staff-login-brand p {
  margin: 10px 0 0;
  color: #8e97a3;
  font-size: 1rem;
  font-weight: 500;
}

.staff-login-card {
  width: 100%;
  padding: 32px 28px 22px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(28, 36, 48, 0.1);
}

.staff-login-card h2 {
  margin: 0 0 6px;
  color: #1c2430;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.staff-login-lead {
  margin: 0 0 20px;
  color: #8b939e;
  font-size: 0.9rem;
}

.staff-login-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fff1f1;
  color: #b42318;
  font-size: 0.8rem;
}

.portal-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-bottom: 12px;
  padding: 0 14px;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  background: #fff;
}

.portal-field:focus-within {
  border-color: #f3b4b4;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.08);
}

.portal-field > i {
  flex: 0 0 auto;
  color: #a0a8b3;
  font-size: 1.05rem;
}

.portal-field input,
.portal-field .password-field,
.portal-field .password-field input {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #1c2430;
  font-size: 0.92rem;
}

.portal-field input::placeholder {
  color: #b4bcc6;
}

.portal-field .password-field {
  position: relative;
}

.portal-field .password-field input {
  padding-right: 28px;
}

.portal-field .password-toggle {
  color: #a0a8b3;
}

.portal-field .password-toggle:hover,
.portal-field .password-toggle:focus-visible {
  color: #e10600;
}

.portal-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 16px;
}

.portal-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #3d4654;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}

.portal-remember input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1.5px solid #d5d9e0;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
}

.portal-remember input:checked {
  border-color: #e10600;
  background: #e10600 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='white' d='M6.2 11.4 2.9 8.1l1.2-1.2 2.1 2.1 5.7-5.7 1.2 1.2z'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.portal-forgot {
  color: #e10600;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.portal-forgot:hover {
  color: #c40000;
}

.portal-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 8px;
  background: #e10600;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(225, 6, 0, 0.18);
}

.portal-submit:hover {
  background: #c40000;
  color: #fff;
}

.portal-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0 12px;
  color: #c5cad3;
  font-size: 0.75rem;
}

.portal-or::before,
.portal-or::after {
  flex: 1;
  height: 1px;
  background: #eceff3;
  content: '';
}

.staff-login-links {
  color: #8b939e;
  font-size: 0.78rem;
  text-align: center;
}

.staff-login-links p {
  margin: 0 0 4px;
}

.staff-login-links a {
  color: #e10600;
  font-weight: 700;
  text-decoration: none;
}

.staff-login-links a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .staff-login {
    align-items: flex-start;
    padding: 28px 20px 40px;
    overflow-x: hidden;
  }

  .staff-login-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    width: min(420px, 100%);
  }

  .staff-login-wordmark {
    font-size: 2rem;
  }

  .staff-login-card {
    padding: 26px 18px 18px;
  }

  .portal-row {
    gap: 8px;
    max-width: 100%;
  }

  .portal-forgot,
  .portal-remember {
    font-size: 0.78rem;
  }

  .portal-forgot {
    white-space: normal;
    text-align: right;
  }
}

.staff-sidebar-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.staff-sidebar-option {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--admin-border);
  border-radius: 10px;
  background: #fff;
  font-size: 0.86rem;
  font-weight: 600;
}

.staff-sidebar-option:has(input:checked) {
  border-color: #d30912;
  background: #fff5f5;
}

.staff-sidebar-option input {
  accent-color: #d30912;
}

.staff-add-btn {
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.staff-accounts-table {
  width: 100%;
  min-width: 720px;
}

.staff-account-name {
  font-weight: 600;
  color: #1f2430;
}

.staff-account-sub,
.staff-access-note {
  margin-top: 2px;
  color: #8b909a;
  font-size: 0.78rem;
}

.staff-access {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}

.staff-access-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.staff-access-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin: 0;
  padding: 3px 10px;
  border: 1px solid #e24b55;
  border-radius: 999px;
  background: #fff;
  color: #d30912;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
}

.staff-access-pill i {
  font-size: 0.72rem;
  line-height: 1;
}

.staff-access-count,
.staff-access-full,
.staff-access-more-link {
  font-family: inherit;
}

.staff-access-count {
  cursor: pointer;
  font-weight: 700;
}

.staff-access-full {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 12px;
  border: 0;
  border-radius: 999px;
  background: #e10600;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

.staff-access-full i {
  font-size: 0.5rem;
}

.staff-access-more-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #d30912;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  cursor: pointer;
}

.staff-access-more-link:hover {
  text-decoration: underline;
}

.staff-access-extra {
  display: none;
}

.staff-access.is-open .staff-access-summary {
  display: none;
}

.staff-access.is-open .staff-access-extra {
  display: flex;
}

.staff-status {
  color: #6b7280;
  font-size: 0.88rem;
}

.staff-status.is-inactive {
  color: #b42318;
}

.staff-signed-in {
  color: #9aa0a8;
  font-size: 0.86rem;
}

.admin-table-card .staff-row-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}

.staff-row-delete {
  margin: 0;
}

.staff-row-btn {
  padding: 4px 12px;
  border: 1px solid #f0a8ad;
  border-radius: 8px;
  background: #fff;
  color: #e11d2e;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
}

.staff-row-btn:hover {
  background: #fff5f5;
  border-color: #e11d2e;
  color: #c40812;
}

@media (max-width: 575.98px) {
  .staff-sidebar-options {
    grid-template-columns: 1fr;
  }
}

/* Dashboard shell matched to the red-and-white overview */
.admin-topbar.cg-shell {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 18px 26px 6px !important;
  background: #f4f6fb;
  border: 0;
  box-shadow: none;
}

.cg-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid #f0f2f6;
  border-radius: 16px;
  background: #fff;
  color: #1a1d26;
  font-size: 1.45rem;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(26, 29, 38, 0.06);
}

.cg-icon-btn:hover,
.cg-icon-btn:focus-visible {
  background: #fff;
  color: #e10600;
  box-shadow: 0 8px 18px rgba(225, 6, 0, 0.14);
}

.cg-shell-title {
  min-width: 0;
  flex: 1 1 auto;
}

.cg-shell-title h5 {
  margin: 0;
  color: #1a1d26;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cg-shell-title p {
  margin: 2px 0 0;
  color: #8b93a7;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cg-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 180px;
  height: 46px;
  padding: 0 18px;
  border: 1px solid #eef1f6;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(26, 29, 38, 0.04);
}

.cg-search i {
  color: #e10600;
  font-size: 1rem;
}

.cg-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #1a1d26;
  font: inherit;
  font-size: 0.92rem;
}

.cg-search input::placeholder {
  color: #b0b7c6;
}

.cg-shell-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.cg-shell .admin-header-bell {
  position: relative;
  top: auto;
  right: auto;
  width: 44px;
  height: 44px;
  border: 1px solid #f3d2d2;
  background: #fff;
  color: #e10600;
  box-shadow: 0 6px 16px rgba(26, 29, 38, 0.04);
}

.cg-userchip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 5px 16px 5px 5px;
  border: 1px solid #eef1f6;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(26, 29, 38, 0.04);
}

.cg-userchip small,
.cg-userchip strong {
  display: block;
  line-height: 1.15;
}

.cg-userchip small {
  color: #9aa3b5;
  font-size: 0.68rem;
  font-weight: 600;
}

.cg-userchip strong {
  color: #1a1d26;
  font-size: 0.86rem;
  font-weight: 800;
  white-space: nowrap;
}

.cg-userchip .cg-avatar {
  width: 36px;
  height: 36px;
  font-size: 1rem;
}

.admin-content-body.cg-dashboard {
  padding: 8px 26px 40px;
}

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

.cg-page-head h1 {
  margin: 0;
  color: #1a1d26;
  font-size: 1.72rem;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.cg-page-head p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  color: #8b93a7;
  font-size: 0.92rem;
  font-weight: 600;
}

.cg-accent-dash {
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: #e10600;
}

.cg-page-head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cg-chip,
.cg-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  border: 1px solid #eef1f6;
  border-radius: 12px;
  background: #fff;
  color: #3c4353;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(26, 29, 38, 0.04);
  white-space: nowrap;
}

.cg-chip i {
  color: #e10600;
}

.cg-live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e10600;
  box-shadow: 0 0 0 0 rgba(225, 6, 0, 0.55);
  animation: cg-pulse 1.6s ease-out infinite;
}

@keyframes cg-pulse {
  70% { box-shadow: 0 0 0 7px rgba(225, 6, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(225, 6, 0, 0); }
}

.cg-heroes,
.cg-metrics,
.cg-charts {
  display: grid;
  gap: 16px;
}

.cg-heroes {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cg-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 16px;
}

.cg-charts {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  margin-top: 16px;
}

.cg-hero,
.cg-metric,
.cg-panel {
  border: 1px solid #eef1f6;
  background: #fff;
  box-shadow: 0 10px 28px rgba(26, 29, 38, 0.045);
}

.cg-hero,
.cg-metric {
  color: inherit;
  text-decoration: none;
}

.cg-hero:hover,
.cg-metric:hover,
.cg-hero:focus,
.cg-metric:focus {
  color: inherit;
  text-decoration: none;
  transform: translateY(-2px);
}

.cg-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 178px;
  padding: 18px 18px 16px;
  overflow: hidden;
  border-radius: 22px;
}

.cg-hero-sales {
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, #ff3d32 0%, #e10600 46%, #b40000 100%);
  box-shadow: 0 16px 32px rgba(225, 6, 0, 0.28);
}

.cg-hero-sales:hover,
.cg-hero-sales:focus {
  color: #fff;
}

.cg-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.cg-hero-icon,
.cg-metric-ico,
.cg-hero-go,
.cg-card-ico {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.cg-hero-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff0f0;
  color: #e10600;
  font-size: 1.15rem;
}

.cg-hero-sales .cg-hero-icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.cg-hero-go {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff5f5;
  color: #e10600;
  font-size: 0.85rem;
}

.cg-kicker {
  display: block;
  margin-top: 16px;
  color: #8b93a7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cg-hero-sales .cg-kicker {
  color: rgba(255, 255, 255, 0.88);
}

.cg-hero strong {
  margin-top: 6px;
  color: #1a1d26;
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.cg-hero-sales strong {
  color: #fff;
  font-size: 2.45rem;
}

.cg-hero strong.is-hot {
  color: #e10600;
}

.cg-hero-sub,
.cg-hero-meta {
  margin-top: 8px;
  color: #8b93a7;
  font-size: 0.82rem;
  font-weight: 600;
}

.cg-hero-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
}

.cg-hero-line {
  width: 68%;
  height: 3px;
  margin-top: auto;
  border-radius: 99px;
  background: linear-gradient(90deg, #e10600, #ffb4b4);
}

.cg-hero-wave {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 68%;
  height: 82%;
  pointer-events: none;
}

.cg-metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 122px;
  padding: 16px 14px 14px;
  border-radius: 20px;
}

.cg-metric-copy {
  min-width: 0;
}

.cg-metric .cg-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  font-size: 0.64rem;
  letter-spacing: 0.04em;
}

.cg-metric-ico {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffe8e8;
  color: #e10600;
  font-size: 0.82rem;
}

.cg-metric strong {
  display: block;
  margin-top: 10px;
  color: #1a1d26;
  font-size: 1.42rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.cg-metric strong.is-hot,
.cg-metric-sub.is-hot {
  color: #e10600;
}

.cg-metric-sub {
  display: flex;
  align-items: center;
  margin-top: 8px;
  color: #8b93a7;
  font-size: 0.74rem;
  font-weight: 600;
}

.cg-metric-sub.is-up {
  color: #1f9d4d;
}

.cg-metric-sub.is-amber {
  color: #d89a14;
}

.cg-spark {
  width: 74px;
  height: 36px;
  flex: 0 0 auto;
}

.cg-panel {
  min-width: 0;
  padding: 18px 18px 16px;
  border-radius: 22px;
}

.cg-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.cg-card-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #1a1d26;
  font-size: 1.02rem;
  font-weight: 800;
}

.cg-card-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #ffe8e8;
  color: #e10600;
  font-size: 0.9rem;
}

.cg-chart-frame {
  height: 286px;
}

.cg-empty {
  margin: 28px 0;
  color: #8b93a7;
  text-align: center;
}

.cg-bars {
  display: grid;
  gap: 14px;
}

.cg-bar-row,
.cg-bar-scale {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) 54px;
  gap: 12px;
  align-items: center;
}

.cg-bar-label {
  color: #4b5568;
  font-size: 0.86rem;
  font-weight: 600;
}

.cg-bar-track {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 22px;
}

.cg-bar-fill {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  border-radius: 7px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

.cg-bar-fill.is-light {
  color: #9a3030;
}

.cg-bar-pct {
  color: #9aa3b5;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: right;
}

.cg-bar-scale {
  margin-top: 8px;
}

.cg-bar-ticks {
  display: flex;
  justify-content: space-between;
  color: #b0b7c6;
  font-size: 0.72rem;
  font-weight: 600;
}

.cg-dashboard .admin-table-card {
  margin-top: 16px;
  border-color: #eef1f6;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(26, 29, 38, 0.045);
}

.cg-hero:focus-visible,
.cg-metric:focus-visible,
.cg-userchip:focus-visible,
.cg-icon-btn:focus-visible,
.cg-search:focus-within {
  outline: 2px solid #e10600;
  outline-offset: 2px;
}

@media (min-width: 992px) {
  .admin-sidebar,
  .admin-main-wrapper {
    transition: transform 0.25s ease, margin-left 0.25s ease, width 0.25s ease;
  }

  body.is-sidebar-collapsed .admin-sidebar {
    transform: translateX(-100%);
  }

  body.is-sidebar-collapsed .admin-main-wrapper {
    margin-left: 0;
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 1399.98px) {
  .cg-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .cg-heroes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cg-charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  body:has(.cg-shell) #adminMenuToggle {
    display: none;
  }

  .admin-topbar.cg-shell {
    padding: 14px 16px 8px !important;
  }
}

@media (max-width: 767.98px) {
  .admin-content-body.cg-dashboard {
    padding: 8px 14px 28px;
  }

  .cg-page-head {
    flex-wrap: wrap;
  }

  .admin-topbar.cg-shell {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .admin-topbar.cg-shell .cg-icon-btn {
    width: 42px;
    height: 42px;
  }

  .cg-shell-title {
    flex: 1 1 auto;
    min-width: 4.5rem;
  }

  .cg-shell-tools {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    max-width: 62%;
  }

  .cg-shell .admin-header-bell {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
  }

  .cg-userchip {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    padding-right: 10px;
  }

  .cg-userchip > span:not(.cg-avatar) {
    min-width: 0;
    overflow: hidden;
  }

  .cg-userchip small,
  .cg-userchip strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cg-heroes,
  .cg-metrics {
    grid-template-columns: 1fr;
  }

  .cg-search {
    flex: 1 1 100%;
    order: 3;
  }

  .cg-shell-tools {
    margin-left: auto;
  }

  .cg-bar-row,
  .cg-bar-scale {
    grid-template-columns: 92px minmax(0, 1fr) 48px;
    gap: 8px;
  }

  .cg-hero strong,
  .cg-hero-sales strong {
    font-size: 2rem;
  }
}

@media (max-width: 420px) {
  .cg-userchip small {
    display: none;
  }
}

.ar-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ar-guide div,
.ar-stat,
.ar-detail,
.ar-soa,
.ar-empty-card {
  background: #fff;
  border: 1px solid #e9ecef;
  border-radius: 16px;
}

.ar-guide div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 12px;
  padding: 14px 16px;
}

.ar-guide span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff1f1;
  color: #e10600;
  font-weight: 800;
}

.ar-guide strong,
.ar-detail h2,
.ar-soa h2 {
  font-weight: 800;
}

.ar-guide p,
.ar-card-head p,
.ar-hint,
.ar-meta,
.ar-note {
  margin: 0;
  color: #6b7280;
  font-size: 0.86rem;
}

.ar-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.ar-stat {
  padding: 16px 18px;
}

.ar-stat span,
.ar-kicker,
.ar-detail-balance span {
  display: block;
  color: #8b93a7;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ar-stat strong,
.ar-detail-balance strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
  font-weight: 800;
}

.ar-stat em,
.ar-detail-balance em {
  color: #8b93a7;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 650;
}

.ar-stat-action {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ar-card-head,
.ar-form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.ar-form-card .ar-card-head,
.ar-form-foot {
  padding-left: 0;
  padding-right: 0;
}

.ar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  padding: 8px 12px;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  background: #f8f9fc;
}

.ar-search input {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
}

.ar-row-actions,
.ar-filters {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ar-filters {
  flex-wrap: wrap;
  align-items: center;
}

.ar-filters .form-control {
  min-width: 220px;
}

.ar-date-field {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 700;
}

.ar-filters .ar-date {
  min-width: 148px;
  width: 148px;
}

.ar-balance {
  font-weight: 800;
}

.ar-empty {
  padding: 28px 16px !important;
  text-align: center;
  color: #8b93a7;
}

.ar-pill {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef1f6;
  color: #3c4353;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 800;
}

.ar-pill-open { background: #fff1f1; color: #c40000; }
.ar-pill-partial { background: #fff6e8; color: #9a6200; }
.ar-pill-paid,
.ar-pill-posted { background: #eefbf3; color: #0f7a45; }
.ar-pill-void { background: #f3f4f6; color: #6b7280; }

.admin-table tr.ar-row-void td {
  color: #6b7280;
}

.ar-link {
  color: #e10600;
  font-weight: 800;
  text-decoration: none;
}

.ar-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ar-choice {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  cursor: pointer;
}

.ar-choice input { margin-bottom: 4px; }
.ar-choice span { color: #6b7280; font-size: 0.86rem; }
.ar-choice.is-on {
  border-color: #e10600;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.12);
}

.ar-lines input,
.ar-void-form {
  min-width: 110px;
}

.ar-finder-search {
  display: block;
}

.ar-finder-search span,
.ar-finder-kicker {
  display: block;
  margin-bottom: 6px;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
}

.ar-finder-search input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid #d5dbe6;
  border-radius: 14px;
  background: #fff;
  font-size: 1rem;
}

.ar-finder-search input:focus {
  border-color: #e10600;
  outline: 3px solid rgba(225, 6, 0, 0.12);
}

.ar-finder-results {
  margin-top: 10px;
  max-height: 440px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
}

.ar-finder-table {
  width: 100%;
  border-collapse: collapse;
}

.ar-finder-table th,
.ar-finder-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f6;
  vertical-align: middle;
  font-size: 0.92rem;
}

.ar-finder-table th {
  position: sticky;
  top: 0;
  background: #f7f8fb;
  color: #8b93a7;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ar-finder-table th:first-child,
.ar-finder-table td:first-child {
  width: 44px;
  text-align: center;
}

.ar-finder-table th.num,
.ar-finder-table td.num {
  text-align: right;
  white-space: nowrap;
}

.ar-finder-table tr.is-checked {
  background: #fff6f6;
}

.ar-finder-table tbody tr {
  cursor: pointer;
}

.ar-finder-product {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 240px;
}

.ar-finder-product strong,
.ar-finder-pick strong {
  display: block;
  font-weight: 800;
}

.ar-finder-product small,
.ar-finder-pick small {
  color: #667085;
}

.ar-finder-photo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 12px;
  object-fit: cover;
  background: #f3f4f6;
  border: 1px solid #eef1f6;
}

.ar-finder-photo.is-empty {
  display: grid;
  place-items: center;
  color: #9aa3b5;
  font-size: 1.15rem;
}

.ar-finder-qty,
.ar-finder-price {
  width: 92px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid #d5dbe6;
  border-radius: 8px;
  text-align: right;
}

.ar-finder-check {
  width: 18px;
  height: 18px;
  accent-color: #e10600;
}

.ar-finder-note,
.ar-finder-empty {
  margin: 10px 0 0;
  color: #667085;
}

.ar-finder-picked {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.ar-finder-pick {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 92px 92px auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  background: #fff;
}

.ar-finder-amount {
  font-weight: 800;
  text-align: right;
}

.ar-finder-remove {
  border: 0;
  background: transparent;
  color: #e10600;
  font-weight: 700;
}

@media (max-width: 760px) {
  .ar-finder-pick {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .ar-finder-qty,
  .ar-finder-price,
  .ar-finder-amount,
  .ar-finder-remove {
    grid-column: 2;
  }
}

.ar-pick {
  position: relative;
  min-width: 260px;
}

.ar-results {
  position: absolute;
  z-index: 5;
  left: 0;
  right: 0;
  max-height: 240px;
  overflow: auto;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(26, 29, 38, 0.12);
}

.ar-results button,
.ar-results p {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-bottom: 1px solid #f3f4f6;
  background: #fff;
  color: #1a1d26;
  font-size: 0.86rem;
  text-align: left;
}

.ar-results button:hover {
  background: #fff4f4;
}

.ar-pick small {
  display: block;
  margin-top: 4px;
  color: #0f7a45;
  font-weight: 700;
}

.ar-void-form {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.ar-form-foot {
  margin-top: 16px;
}

.ar-form-foot span {
  margin-right: 12px;
  font-weight: 800;
}

.ar-check {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #3c4353;
  font-weight: 650;
}

.ar-detail {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  padding: 20px;
}

.ar-detail h2 { margin: 4px 0; }
.ar-detail-balance { text-align: right; }
.ar-back { margin-bottom: 12px; }
.ar-back a { color: #6b7280; font-weight: 700; text-decoration: none; }
.ar-actions .ar-hint { margin-top: 8px; }
.ar-apply { margin: 16px 0 8px; }

.collect-step {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.collect-step > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff1f1;
  color: #e10600;
  font-weight: 800;
}

.collect-step-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.collect-step-title strong,
.collect-kicker,
.collect-amount span,
.collect-date span,
.collect-ref span,
.collect-note span {
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
}

.collect-help,
.collect-empty,
.collect-ref small {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 0.86rem;
}

.collect-charges {
  display: grid;
  gap: 10px;
  max-height: 520px;
  margin-top: 10px;
  overflow: auto;
}

.collect-bill {
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.collect-bill header {
  padding: 8px 14px;
  background: #f7f8fb;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 800;
}

.collect-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid #eef1f6;
}

.collect-bill.is-due {
  border-color: #86efac;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
}

.collect-bill.is-due header {
  background: #f0fdf4;
  color: #166534;
}

.collect-item.is-due,
.collect-item.is-on {
  background: #f7fef9;
}

.collect-bill.is-due header .collect-balance,
.collect-figures b.collect-balance {
  color: #c40000;
}

.collect-item-name small.collect-figures {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 4px;
  color: #3c4353;
  font-size: 0.82rem;
  font-weight: 700;
}

.collect-figures b {
  color: #111827;
  font-weight: 800;
}

.collect-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #86efac;
  border-radius: 14px;
  background: #f0fdf4;
  color: #166534;
  font-weight: 800;
}

.collect-total strong {
  color: #111827;
  font-size: 1.15rem;
}

#collectOwed {
  color: #111827;
  font-size: 1rem;
}

.collect-item-name strong,
.collect-item-name small {
  display: block;
}

.collect-item-name small {
  color: #667085;
}

.collect-item-pay span {
  display: block;
  margin-bottom: 4px;
  color: #667085;
  font-size: 0.72rem;
  font-weight: 800;
}

.collect-item-pay div {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #d5dbe6;
  border-radius: 10px;
  background: #fff;
}

.collect-item.is-on .collect-item-pay div {
  border-color: #e10600;
}

.collect-item-pay div:focus-within {
  border-color: #e10600;
  outline: 3px solid rgba(225, 6, 0, 0.12);
}

.collect-item-pay b {
  color: #98a2b3;
  font-weight: 800;
}

.collect-item-pay input {
  width: 100%;
  border: 0;
  background: transparent;
  font-weight: 800;
  text-align: right;
  outline: none;
}

.collect-note {
  display: block;
  margin-top: 14px;
}

.collect-note input {
  width: 100%;
}

.collect-paid-items {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 500;
}

.collect-paid-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #3c4353;
  font-size: 0.8rem;
}

.collect-paid-items b {
  font-weight: 800;
  white-space: nowrap;
}

.collect-product {
  min-width: 160px;
  max-width: 280px;
}

.collect-products {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #3c4353;
  font-size: 0.84rem;
  font-weight: 650;
}

.collect-products li + li {
  margin-top: 3px;
}

.collect-charge {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #e6e8ee;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.collect-charge:has(.collect-check:checked) {
  border-color: #e10600;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.08);
}

.collect-check {
  width: 18px;
  height: 18px;
  accent-color: #e10600;
}

.collect-charge-body strong {
  display: block;
  font-weight: 800;
}

.collect-charge-body small,
.collect-charge-owed small {
  color: #667085;
}

.collect-charge-body ul {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  color: #667085;
  font-size: 0.82rem;
}

.collect-charge-owed {
  text-align: right;
}

.collect-charge-owed b {
  display: block;
  font-weight: 800;
}

.collect-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(180px, 0.6fr);
  gap: 12px;
}

.collect-grid + .collect-kicker,
.collect-methods + .collect-grid {
  margin-top: 14px;
}

.collect-follow {
  margin-top: 18px;
}

.collect-kicker {
  display: block;
  margin-bottom: 8px;
}

.collect-amount div {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  margin-top: 6px;
  padding: 0 14px;
  border: 1px solid #d5dbe6;
  border-radius: 14px;
  background: #fff;
}

.collect-amount div:focus-within {
  border-color: #e10600;
  outline: 3px solid rgba(225, 6, 0, 0.12);
}

.collect-amount b {
  color: #98a2b3;
  font-size: 1.2rem;
}

.collect-amount input {
  width: 100%;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  font-weight: 800;
  outline: none;
}

.collect-date input,
.collect-note input,
.collect-ref input {
  margin-top: 6px;
}

.collect-date input,
.collect-note input,
.collect-ref input {
  height: 52px;
}

.collect-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.collect-method {
  position: relative;
}

.collect-method input {
  position: absolute;
  opacity: 0;
  inset: 0;
}

.collect-method span {
  display: block;
  min-width: 92px;
  padding: 10px 14px;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  background: #fff;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
}

.collect-method input:checked + span {
  border-color: #e10600;
  background: #fff1f1;
  color: #c40000;
  box-shadow: 0 0 0 3px rgba(225, 6, 0, 0.12);
}

.collect-method input:focus-visible + span {
  outline: 2px solid #e10600;
  outline-offset: 2px;
}

.collect-ref .form-control {
  font-weight: 800;
  letter-spacing: 0.02em;
  background: #f8f9fc;
}

.collect-save {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #eef1f6;
}

.collect-save .btn {
  min-width: 180px;
  padding: 12px 18px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .collect-grid,
  .collect-save {
    grid-template-columns: 1fr;
    display: grid;
  }

  .collect-charge,
  .collect-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .collect-item-pay {
    grid-column: 2;
  }

  .collect-charge-owed {
    grid-column: 2;
    text-align: left;
  }

  .collect-save {
    text-align: left;
  }
}

.ar-statement-page {
  width: min(1100px, 100%);
  margin-inline: auto;
}

.ar-soa {
  max-width: none;
  padding: 28px;
}

.ar-soa header > div:last-child {
  text-align: right;
}

.ar-soa td:first-child,
.ar-soa th:first-child,
.ar-soa td:nth-child(2),
.ar-soa .text-end {
  white-space: nowrap;
}

.ar-soa td.ar-soa-product {
  white-space: normal;
  min-width: 9rem;
}

.ar-soa header,
.ar-soa footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.ar-soa header { margin-bottom: 18px; }
.ar-soa header p,
.ar-soa footer p { margin: 0; color: #6b7280; }
.ar-soa-brand { margin: 0 0 8px; color: var(--admin-primary); font-size: 1.35rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.ar-soa h2 { margin: 0 0 6px; }
.ar-soa h3 { margin: 22px 0 8px; font-size: 1rem; font-weight: 800; }
.ar-soa table { width: 100%; border-collapse: collapse; }
.ar-soa th,
.ar-soa td { padding: 10px 8px; border-bottom: 1px solid #eef1f6; }
.ar-soa th { color: #8b93a7; font-size: 0.75rem; letter-spacing: 0.03em; text-transform: uppercase; }
.ar-soa-open td { color: #6b7280; }
.ar-soa footer { margin-top: 18px; }
.ar-soa footer strong { display: block; font-size: 1.8rem; }
.ar-empty-card { padding: 28px; color: #6b7280; }

@media (max-width: 1280px) {
  .ar-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .ar-guide,
  .ar-stats,
  .ar-choices,
  .ar-detail,
  .ar-soa header,
  .ar-soa footer,
  .ar-card-head,
  .ar-form-foot {
    grid-template-columns: 1fr;
    display: grid;
  }
  .ar-detail-balance,
  .ar-soa footer,
  .ar-soa header > div:last-child { text-align: left; }
}

@media print {
  body.admin-layout .admin-sidebar,
  body.admin-layout .admin-topbar,
  body.admin-layout .admin-menu-toggle,
  body.admin-layout .admin-sidebar-backdrop,
  body.admin-layout .admin-section-tabs,
  body.admin-layout .admin-header-bell,
  body.admin-layout .ar-no-print {
    display: none !important;
  }
  body.admin-layout .admin-main-wrapper {
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body.admin-layout .ar-statement-page {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  body.admin-layout .ar-soa {
    border: 0;
    box-shadow: none;
  }
}

.admin-layout .modal.fade,
.admin-layout .modal.fade .modal-dialog,
.admin-layout .modal-backdrop.fade {
  transition-duration: 0.05s;
}

.product-pick { position: relative; }
.product-pick-menu {
  position: absolute;
  z-index: 40;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(20, 24, 33, 0.12);
  max-height: 240px;
  overflow: auto;
  padding: 4px;
}
.product-pick-menu button,
.product-pick-empty {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1d2433;
  font-size: 0.92rem;
  text-align: left;
}
.product-pick-menu button:hover,
.product-pick-menu button:focus {
  background: #f4f6f8;
}
.product-pick-empty { color: #6b7280; }

.rm-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rm-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.rm-pills {
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  padding-bottom: 2px;
}

.rm-place {
  position: relative;
  align-self: flex-start;
  width: 220px;
  margin: 0;
}

.rm-place i {
  position: absolute;
  left: 12px;
  top: 50%;
  color: #e10600;
  font-size: 0.95rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.rm-place select {
  width: 100%;
  min-height: 40px;
  padding: 8px 32px 8px 34px;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%236b7587' d='M1.4.8 6 5.4 10.6.8 12 2.2 6 8 0 2.2z'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none;
  color: #1f2733;
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 1px 2px rgba(22, 32, 56, 0.03);
}

.rm-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #e6ebf3;
  border-radius: 12px;
  background: #fff;
  color: #3d4658;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(22, 32, 56, 0.03);
}

.rm-pill i {
  font-size: 0.95rem;
}

.rm-tone-red i { color: #e10600; }
.rm-tone-gold i { color: #d4a017; }
.rm-tone-blue i { color: #3b6fd8; }
.rm-tone-purple i { color: #7a4de0; }
.rm-tone-amber i { color: #e0a100; }
.rm-tone-orange i { color: #ef6c00; }
.rm-tone-teal i { color: #0f8f86; }
.rm-tone-green i { color: #1b8a4a; }
.rm-tone-rose i { color: #e11d48; }

.rm-pill.active {
  background: linear-gradient(90deg, #e10600 0%, #ff2d2d 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 16px rgba(225, 6, 0, 0.22);
}

.rm-pill.active i { color: #fff; }

.rm-filters {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e7edf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(22, 32, 56, 0.04);
}

.rm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: #6b7587;
  font-size: 0.75rem;
  font-weight: 700;
}

.rm-field > span i {
  margin-right: 4px;
}

.rm-field-grow {
  flex: 1 1 150px;
  min-width: 0;
}

.rm-field-top {
  flex: 0 0 132px;
}

.rm-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  margin-left: auto;
  flex: 0 0 auto;
}

.rm-filters .rm-field select {
  border: 1px solid #e4e9f2;
  background: #fff;
}

.rm-range,
.rm-field select {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  background: #fff;
  color: #1f2733;
}

.rm-range input,
.rm-field select {
  border: 0;
  background: transparent;
  color: #1f2733;
  font-size: 0.92rem;
  font-weight: 600;
}

.rm-range input {
  width: 126px;
  padding: 8px 8px;
}

.rm-range em {
  color: #9aa3b2;
  font-style: normal;
}

.rm-field select {
  width: 100%;
  padding: 8px 12px;
  border-radius: 12px;
}

.rm-apply,
.rm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.rm-apply {
  background: #f4f6fb;
  color: #243044;
}

.rm-exports {
  display: flex;
  gap: 8px;
  margin-left: 0;
}

.rm-btn-pdf {
  background: #e10600;
  color: #fff;
  box-shadow: 0 8px 16px rgba(225, 6, 0, 0.18);
}

.rm-btn-xls {
  background: #128a43;
  color: #fff;
  box-shadow: 0 8px 16px rgba(18, 138, 67, 0.18);
}

.rm-note {
  margin: -4px 2px 0;
  color: #7b8494;
  font-size: 0.82rem;
}

.rm-card {
  border: 1px solid #e7edf5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(22, 32, 56, 0.04);
  overflow: hidden;
}

.rm-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

.rm-table th {
  padding: 14px 16px;
  background: #fbfcfe;
  color: #8b95a7;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #eef2f7;
  white-space: nowrap;
}

.rm-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f2f5f9;
  color: #2a3342;
  font-size: 0.92rem;
  vertical-align: middle;
}

.rm-table tbody tr:hover td {
  background: #fbfcfe;
}

.rm-table tfoot td {
  background: #fbfcfe;
  font-weight: 700;
}

.rm-num {
  width: 52px;
  color: #8b95a7;
  font-weight: 700;
}

.rm-end {
  text-align: right;
}

.rm-empty {
  padding: 36px 16px !important;
  text-align: center;
  color: #8b95a7;
}

.rm-sku {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.rm-sku strong,
.rm-sku small {
  display: block;
}

.rm-sku strong {
  color: #1d2430;
  font-size: 0.92rem;
}

.rm-sku small {
  color: #8b95a7;
  font-size: 0.75rem;
}

.rm-photo {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  object-fit: cover;
  background: #f3f5f9;
}

.rm-photo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e10600;
  font-weight: 800;
}

.rm-stock,
.rm-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.rm-stock-ok,
.rm-status-ok {
  background: #e9f8ef;
  color: #128a43;
}

.rm-stock-warn,
.rm-status-warn {
  background: #fff4e5;
  color: #d97706;
}

.rm-stock-bad,
.rm-status-bad {
  background: #ffecec;
  color: #d61f1f;
}

.rm-status-muted {
  background: #f1f3f7;
  color: #667084;
}

.rm-var-short { color: #d61f1f; font-weight: 700; }
.rm-var-over { color: #128a43; font-weight: 700; }

.rm-per {
  color: #8b95a7;
  font-size: 0.78rem;
  font-weight: 600;
}

.rm-reason {
  display: block;
  max-width: 100%;
  margin-top: 3px;
  color: #5d6778;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.rm-table.rm-fit {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.rm-table.rm-fit th,
.rm-table.rm-fit td {
  padding: 10px 8px;
}

.rm-table.rm-fit th {
  white-space: normal;
  letter-spacing: 0;
  line-height: 1.25;
}

.rm-table.rm-fit th:nth-child(1) { width: 4%; }
.rm-table.rm-fit th:nth-child(2) { width: 22%; }
.rm-table.rm-fit th:nth-child(3) { width: 12%; }
.rm-table.rm-fit th:nth-child(4) { width: 11%; }
.rm-table.rm-fit th:nth-child(5) { width: 8%; }
.rm-table.rm-fit th:nth-child(6) { width: 11%; }
.rm-table.rm-fit th:nth-child(7) { width: 9%; }
.rm-table.rm-fit th:nth-child(8) { width: 13%; }
.rm-table.rm-fit th:nth-child(9) { width: 10%; }

.rm-table.rm-fit th:nth-child(7),
.rm-table.rm-fit td:nth-child(7) {
  text-align: center;
}

.rm-table.rm-fit th:nth-child(8),
.rm-table.rm-fit td:nth-child(8) {
  padding-left: 22px;
}

.rm-table.rm-fit td:nth-child(3),
.rm-table.rm-fit td:nth-child(4) {
  line-height: 1.3;
}

.rm-table.rm-fit .rm-sku {
  min-width: 0;
  gap: 8px;
}

.rm-table.rm-fit .rm-sku > span {
  min-width: 0;
  flex: 1 1 auto;
}

.rm-table.rm-fit .rm-photo {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
}

.rm-table.rm-fit .rm-stock,
.rm-table.rm-fit .rm-status {
  gap: 4px;
  padding: 3px 8px;
  font-size: 0.74rem;
}

.rm-table.rm-fit .rm-view {
  gap: 4px;
  min-height: 30px;
  padding: 0 8px;
  font-size: 0.78rem;
}

.rm-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #fff1f1;
  color: #e10600;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.rm-view:hover,
.rm-view:focus {
  background: #e10600;
  color: #fff;
}

.rm-fast-modal {
  border: 0;
  border-radius: 18px;
  overflow: hidden;
}

.rm-fast-modal .modal-header {
  align-items: flex-start;
  gap: 12px;
  padding: 18px 18px 8px;
  border-bottom: 0;
}

.rm-fast-modal .modal-body {
  padding: 0 18px 18px;
}

.rm-fast-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.rm-fast-modal .modal-title {
  margin: 0;
  color: #1d2430;
  font-size: 1.05rem;
  font-weight: 800;
}

.rm-fast-meta {
  margin: 2px 0 0;
  color: #8b95a7;
  font-size: 0.8rem;
}

.rm-fast-photo {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  border-radius: 14px;
  object-fit: cover;
  background: #f3f5f9;
}

.rm-fast-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e10600;
  font-size: 1.15rem;
  font-weight: 800;
}

.rm-fast-kicker {
  margin: 0 0 6px;
  color: #e10600;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rm-fast-why {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff6f6;
  color: #3d4658;
  font-size: 0.92rem;
  line-height: 1.45;
}

.rm-fast-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.rm-fast-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7f8fb;
}

.rm-fast-stat span {
  color: #8b95a7;
  font-size: 0.72rem;
  font-weight: 700;
}

.rm-fast-stat strong {
  color: #1d2430;
  font-size: 0.95rem;
}

.rm-fast-days-title {
  margin: 0 0 4px;
  color: #1d2430;
  font-size: 0.86rem;
  font-weight: 800;
}

.rm-fast-day {
  display: grid;
  grid-template-columns: 132px 96px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f2f5f9;
  color: #2a3342;
  font-size: 0.86rem;
}

.rm-fast-day strong {
  font-weight: 700;
}

.rm-fast-note {
  color: #667084;
}

.rm-fast-day.is-again .rm-fast-note {
  color: #d61f1f;
  font-weight: 700;
}

.rm-fast-empty {
  margin: 8px 0 0;
  color: #8b95a7;
}

@media (max-width: 720px) {
  .rm-fast-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rm-fast-day {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

.rm-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: #7b8494;
  font-size: 0.86rem;
}

.rm-pager nav {
  display: flex;
  gap: 6px;
}

.rm-pager a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: 8px;
  background: #fff;
  color: #5d6778;
  text-decoration: none;
  font-weight: 700;
}

.rm-pager a.active {
  background: #e10600;
  color: #fff;
}

.st-transfer-no {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #1d2433;
  background: #f8fafc;
}

.st-pick-field {
  position: relative;
}

.st-pick-field .bi-search {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  pointer-events: none;
}

.st-pick-search {
  padding-left: 36px;
  padding-right: 36px;
}

.st-pick-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.st-pick-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  font-size: 1.15rem;
  line-height: 1;
}

.st-pick-clear:hover,
.st-pick-clear:focus {
  background: #f4f6f8;
  color: #1d2433;
}

.st-pick-meta {
  margin: 6px 0 0;
  min-height: 1.05em;
  color: #667085;
  font-size: 0.78rem;
}

.st-pick-menu {
  position: fixed;
  z-index: 1080;
  max-height: 320px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid #e6e8ee;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(20, 24, 33, 0.16);
}

.st-pick-menu button {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  text-align: left;
}

.st-pick-menu button.is-active,
.st-pick-menu button:hover,
.st-pick-menu button:focus {
  background: #fff1f0;
}

.st-pick-menu button:disabled {
  color: #98a2b3;
  background: transparent;
}

.st-pick-name {
  display: block;
  color: #1d2433;
  font-weight: 650;
}

.st-pick-sub,
.st-pick-empty {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 0.78rem;
}

.st-pick-empty {
  margin: 0;
  padding: 10px 12px;
}

.st-pick-empty.is-error,
.st-composer .st-pick-meta.is-error {
  color: #b42318;
  font-weight: 650;
}

.st-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  column-gap: 12px;
  row-gap: 6px;
  align-items: end;
}

.st-composer .form-label {
  margin-bottom: 6px;
}

.st-composer .st-pick-meta {
  grid-column: 1 / -1;
  margin: 0;
  min-height: 0;
}

.st-composer .st-pick-meta:empty {
  display: none;
}

.st-composer-action .btn {
  min-height: 38px;
}

.st-added {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #f0dada;
}

.st-added-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.st-added-name {
  color: #1d2433;
  font-weight: 650;
}

.st-added-sub {
  margin-top: 2px;
  color: #667085;
  font-size: 0.78rem;
}

.st-added-qty-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #344054;
  font-weight: 650;
}

.st-added-qty {
  width: 88px;
  font-weight: 700;
}

.st-added-empty {
  margin: 0;
  color: #667085;
  font-size: 0.9rem;
}

.st-line-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.st-added-qty[readonly] {
  background: #f8fafc;
  cursor: pointer;
}

.st-batch-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(20, 24, 33, 0.48);
}

.st-batch-modal[hidden] {
  display: none;
}

.st-batch-dialog {
  display: flex;
  flex-direction: column;
  width: min(1080px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(20, 24, 33, 0.24);
  overflow: hidden;
}

.st-batch-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px 8px;
}

.st-batch-head h6 {
  margin: 0;
  font-weight: 750;
}

.st-batch-head p {
  margin: 4px 0 0;
  color: #667085;
  font-size: 0.86rem;
}

.st-batch-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #667085;
  font-size: 1.4rem;
  line-height: 1;
}

.st-batch-x:hover,
.st-batch-x:focus {
  background: #f4f6f8;
  color: #1d2433;
}

.st-batch-note,
.st-batch-summary,
.st-batch-error {
  margin: 0;
  padding: 0 20px 12px;
  color: #667085;
  font-size: 0.84rem;
}

.st-batch-error {
  color: #b42318;
  font-weight: 650;
}

.st-batch-table-wrap {
  overflow: auto;
  border-top: 1px solid #f0f2f5;
  border-bottom: 1px solid #f0f2f5;
}

.st-batch-table-wrap .admin-table {
  width: 100%;
  min-width: 0;
}

.st-batch-table-wrap .admin-table th,
.st-batch-table-wrap .admin-table td {
  white-space: normal;
  vertical-align: middle;
}

.st-batch-table-wrap .admin-table th:nth-child(1),
.st-batch-table-wrap .admin-table td:nth-child(1) {
  width: 42px;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
}

.st-batch-table-wrap .admin-table th:nth-child(2),
.st-batch-table-wrap .admin-table td:nth-child(2) {
  min-width: 128px;
  position: sticky;
  left: 42px;
  background: #fff;
  z-index: 1;
}

.st-batch-table-wrap .admin-table thead th:nth-child(1),
.st-batch-table-wrap .admin-table thead th:nth-child(2) {
  background: #fff7f7;
  z-index: 2;
}

.st-batch-table-wrap .admin-table th:last-child,
.st-batch-table-wrap .admin-table td:last-child {
  position: sticky;
  right: 0;
  background: #fff;
  z-index: 1;
}

.st-batch-table-wrap .admin-table thead th:last-child {
  background: #fff7f7;
  z-index: 2;
}

.st-batch-number {
  font-weight: 700;
}

.st-batch-tag {
  display: inline-block;
  margin: 4px 6px 0 0;
  padding: 2px 6px;
  border-radius: 999px;
  background: #f4f6f8;
  color: #475467;
  font-size: 0.7rem;
  font-weight: 700;
}

.st-batch-tag.is-suggested {
  background: #fff1f1;
  color: var(--admin-primary);
}

.st-batch-qty {
  width: 88px;
}

.st-batch-table-wrap tr.is-suggested {
  background: #fff8f8;
}

.st-batch-table-wrap tr.is-soon td:nth-child(6) {
  color: #b54708;
  font-weight: 700;
}

.st-batch-table-wrap tr.is-expired td:nth-child(6) {
  color: #b42318;
  font-weight: 700;
}

.st-batch-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 20px 18px;
}

.st-send {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}

.st-send-dest {
  flex: 1 1 240px;
  max-width: 320px;
}

.st-send-dest .form-label {
  margin-bottom: 6px;
}

.st-send .btn {
  min-height: 38px;
}

.st-added-qty-label {
  display: none;
}

@media (max-width: 767.98px) {
  .st-composer {
    grid-template-columns: minmax(0, 1fr);
  }

  .st-composer-product,
  .st-composer-qty,
  .st-composer-action {
    grid-column: 1 / -1;
  }

  .st-composer-action .btn {
    width: 100%;
  }

  #transfer-lines.admin-table {
    width: 100%;
    min-width: 0;
  }

  #transfer-lines thead {
    display: none;
  }

  #transfer-lines,
  #transfer-lines tbody,
  #transfer-lines tr,
  #transfer-lines td {
    display: block;
    width: 100%;
  }

  #transfer-lines tr {
    padding: 12px 0;
    border-bottom: 1px solid #f1f2f4;
  }

  #transfer-lines td {
    padding: 0;
    border: 0;
  }

  #transfer-lines td + td {
    margin-top: 10px;
  }

  .st-added-qty-wrap {
    flex-wrap: wrap;
  }

  .st-added-qty-label {
    display: block;
    flex: 1 0 100%;
    margin-bottom: 6px;
    color: #606978;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }
}

@media (max-width: 991.98px) {
  .rm-place {
    width: 100%;
  }

  .rm-filters {
    flex-wrap: wrap;
  }

  .rm-actions,
  .rm-exports,
  .rm-field,
  .rm-apply {
    width: 100%;
    margin-left: 0;
  }

  .rm-actions {
    flex-wrap: wrap;
  }

  .rm-pager {
    flex-direction: column;
    align-items: flex-start;
  }
}

.in-arrival {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid #f3c7a2;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 247, 237, 0.96), rgba(255, 255, 255, 0.96)),
    #fff7ed;
  box-shadow: inset 4px 0 0 #e8890c;
}

.in-arrival.is-clear {
  border-color: #d7eadf;
  background: linear-gradient(135deg, #f3fbf6, #fff);
  box-shadow: inset 4px 0 0 #1f9d55;
}

.in-arrival-mark {
  display: inline-flex;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  color: #c2410c;
  font-size: 1.35rem;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.06);
}

.in-arrival.is-clear .in-arrival-mark {
  color: #15803d;
}

.in-arrival h6 {
  margin: 0 0 4px;
  font-weight: 700;
}

.in-arrival p:last-child {
  margin: 0;
  color: #667085;
  font-size: 0.86rem;
}

.in-kicker {
  margin: 0 0 2px;
  color: #c2410c;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.in-arrival.is-clear .in-kicker {
  color: #15803d;
}

.in-count {
  margin-left: auto;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: #9a3412;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.admin-table.in-fit {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.admin-table.in-fit th.in-actions,
.admin-table.in-fit td.in-actions {
  width: 108px;
  white-space: nowrap;
  text-align: right;
}

.admin-table.in-fit th.in-result,
.admin-table.in-fit td.in-result {
  width: 188px;
  white-space: nowrap;
}

.in-meta {
  margin-top: 2px;
  color: #667085;
  font-size: 0.78rem;
  line-height: 1.35;
}

.in-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid #f0d0d0;
  border-radius: 999px;
  background: #fff;
  color: #b42318;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
}

.in-view:hover {
  background: #fff1f0;
  color: #9f1d14;
}

.in-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.in-status.is-wait {
  background: #fff7ed;
  color: #c2410c;
}

.in-status.is-ok {
  background: #ecfdf3;
  color: #027a48;
}

.in-status.is-no {
  background: #fef3f2;
  color: #b42318;
}

.in-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  color: #475467;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.in-back:hover {
  color: #b42318;
}

.in-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--admin-border);
}

.in-sheet-head h6 {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 800;
}

.in-sheet-head p:last-child {
  margin: 0;
  color: #667085;
  font-size: 0.86rem;
}

.in-lines {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.in-line {
  padding: 14px;
  border: 1px solid #f3e4e4;
  border-radius: 14px;
  background: #fffafa;
}

.in-line header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  margin-bottom: 12px;
}

.in-line header span {
  color: #667085;
  font-size: 0.8rem;
}

.in-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}

.in-side {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff;
}

.in-side span {
  color: #667085;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.in-side b {
  font-size: 1.15rem;
}

.in-side em {
  color: #344054;
  font-style: normal;
  font-weight: 700;
}

.in-side.is-new {
  background: #fff7ed;
  box-shadow: inset 0 0 0 1px #f6d7b0;
}

.in-side.is-new b,
.in-side.is-new em {
  color: #9a3412;
}

.in-arrow {
  display: flex;
  align-items: center;
  color: #c2410c;
  font-size: 1.1rem;
}

.in-note {
  margin: 10px 0 0;
  color: #667085;
  font-size: 0.82rem;
}

.in-receive {
  display: block;
}

.in-batch-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  color: #344054;
  font-weight: 700;
  white-space: nowrap;
}

.in-batch-toggle:hover,
.in-line.is-editing .in-batch-toggle {
  border-color: #f6d7b0;
  background: #fff7ed;
  color: #9a3412;
}

.in-batch-saved {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.in-batch-saved li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  padding: 8px 12px;
  border: 1px solid #f3e4e4;
  border-radius: 999px;
  background: #fff;
  color: #667085;
  font-size: 0.82rem;
}

.in-batch-saved b {
  color: #1d2939;
}

.in-batch-view {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.in-batch-fact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #f3e4e4;
  border-radius: 10px;
  background: #fff;
  color: #1d2939;
  font-size: 0.9rem;
  font-weight: 650;
}

.in-batch-fact em {
  margin-right: 6px;
  color: #667085;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.in-batch-fact .is-expiry {
  color: #9a3412;
}

.in-batch-panel {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #eadfdf;
  border-radius: 14px;
  background: #fff;
}

.in-batch-panel[hidden] {
  display: none !important;
}

.in-batch-head {
  display: grid;
  gap: 2px;
  margin-bottom: 14px;
}

.in-batch-head strong {
  font-size: 0.98rem;
}

.in-batch-head span,
.in-batch-alloc {
  color: #667085;
  font-size: 0.82rem;
}

.in-batch-labels,
.in-batch-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(140px, 1fr) minmax(90px, 0.7fr) auto;
  gap: 10px;
  align-items: center;
}

.in-batch-labels {
  margin-bottom: 6px;
  color: #475467;
  font-size: 0.82rem;
  font-weight: 600;
}

.in-batch-row {
  margin-bottom: 10px;
}

.in-batch-row label {
  margin: 0;
}

.in-batch-add {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  padding: 8px 12px;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  background: #fff;
  color: #344054;
  font-weight: 700;
}

.in-batch-add:hover {
  border-color: #f6d7b0;
  background: #fff7ed;
  color: #9a3412;
}

.in-batch-alloc {
  margin: 12px 0 0;
}

.in-batch-alloc.is-ok {
  color: #067647;
  font-weight: 700;
}

.in-batch-alloc.is-short {
  color: #b42318;
  font-weight: 700;
}

.in-batch-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 16px;
}

.in-decide {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--admin-border);
  background: #fff;
}

.in-reject-note {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--admin-border);
  color: #b42318;
  font-size: 0.86rem;
}

@media (max-width: 767.98px) {
  .in-arrival {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .in-count {
    margin-left: 64px;
  }

  .in-compare {
    grid-template-columns: 1fr;
  }

  .in-batch-labels,
  .in-batch-row {
    grid-template-columns: 1fr;
  }

  .in-batch-labels {
    display: none;
  }

  .in-batch-toggle,
  .in-batch-row [data-batch-remove] {
    width: 100%;
  }

  .in-arrow {
    justify-content: center;
    transform: rotate(90deg);
  }

  .in-sheet-head {
    flex-direction: column;
  }

  .admin-table.in-fit,
  .admin-table.in-fit tbody,
  .admin-table.in-fit tr,
  .admin-table.in-fit td {
    display: block;
    width: auto;
    min-width: 0;
    white-space: normal;
  }

  .admin-table.in-fit {
    table-layout: auto;
  }

  .admin-table.in-fit thead {
    display: none;
  }

  .admin-table.in-fit tr {
    padding: 12px 14px 14px;
    border-bottom: 1px solid #f1f2f4;
    background: #fff;
  }

  .admin-table.in-fit td {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .admin-table.in-fit td + td {
    margin-top: 6px;
  }

  .admin-layout .table.in-fit tbody tr.needs-action > * {
    --bs-table-bg: transparent;
    --bs-table-accent-bg: transparent;
    background-color: transparent;
  }

  .admin-layout .table.in-fit tbody tr.needs-action {
    background: #fff7ed;
  }

  .admin-table.in-fit td.in-actions,
  .admin-table.in-fit td.in-result {
    width: auto;
    text-align: left;
  }

  .admin-layout .table tbody tr.needs-action > *:first-child {
    border-left: 0;
  }

  .admin-layout .table tbody tr.needs-action {
    box-shadow: inset 4px 0 0 #e8890c;
  }
}

.gr-note {
  margin: 0 0 16px;
  color: #475467;
  font-size: 0.92rem;
}

.gr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gr-filter {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid #f0d0d0;
  border-radius: 999px;
  background: #fff;
  color: #475467;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.gr-filter.active,
.gr-filter:hover {
  background: #ff3a3a;
  border-color: #ff3a3a;
  color: #fff;
}

.gr-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.gr-btn {
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #344054;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}

.gr-btn.is-receive.is-on {
  background: #027a48;
  border-color: #027a48;
  color: #fff;
}

.gr-btn.is-return.is-on {
  background: #ff3a3a;
  border-color: #ff3a3a;
  color: #fff;
}

.gr-btn.is-receive:not(.is-on):hover {
  border-color: #027a48;
  color: #027a48;
}

.gr-btn.is-return:not(.is-on):hover {
  border-color: #ff3a3a;
  color: #ff3a3a;
}

.gr-po {
  font-weight: 800;
  color: #b42318;
  text-decoration: none;
}

.gr-po:hover {
  color: #9f1d14;
}

.gr-meta {
  display: block;
  margin-top: 2px;
  color: #667085;
  font-size: 0.75rem;
  font-weight: 600;
}

.admin-table tr.gr-current > td {
  background: #fff7f7;
}

.admin-table.gr-table th,
.admin-table.gr-table td {
  padding: 12px 10px;
}

.admin-table.gr-table td:last-child {
  min-width: 168px;
}

.printing-card {
  overflow: visible;
}

.printing-card > .printing-card-head {
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}

.printing-switch {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.printing-switch-btn {
  border: 1px solid #f0d4d4;
  background: #fff;
  color: #3d4654;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 16px;
  line-height: 1.2;
}

.printing-switch-btn:hover,
.printing-switch-btn:focus {
  background: #fff5f5;
  color: var(--admin-primary);
  border-color: #f0b4b4;
}

.printing-switch-btn.active,
.printing-switch-btn.active:hover,
.printing-switch-btn.active:focus {
  background: var(--admin-primary);
  border-color: var(--admin-primary);
  color: #fff;
}

.printing-switch .dropdown-menu {
  min-width: 220px;
  border-radius: 12px;
  border: 1px solid var(--admin-border);
  padding: 6px;
  box-shadow: 0 8px 24px rgba(31, 41, 55, 0.12);
}

.printing-switch .dropdown-item {
  border-radius: 8px;
  font-weight: 600;
  color: #3d4654;
}

.printing-switch .dropdown-item:hover,
.printing-switch .dropdown-item:focus {
  background: #fff5f5;
  color: var(--admin-primary);
}

.printing-switch .dropdown-item.active,
.printing-switch .dropdown-item:active {
  background: #fff1f1;
  color: var(--admin-primary);
}

.printing-search {
  width: min(100%, 320px);
}

.printing-pager {
  background: #fff;
  border-bottom-left-radius: 11px;
  border-bottom-right-radius: 11px;
}

.print-stock {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.print-qty-input {
  width: 7.5rem;
  min-width: 7.5rem;
}

.print-basket-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 168px;
  overflow: auto;
}

.print-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 8px 4px 12px;
  border: 1px solid #fecaca;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.print-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px;
}

.print-chip button {
  border: 0;
  background: transparent;
  color: #c40000;
  font-size: 18px;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}

body.print-pad {
  overflow-x: clip;
  background: #f3f5f8;
}

body.print-pad .admin-content-body {
  padding: 8px clamp(12px, 2.2vw, 26px) 92px;
}

.print-pad-sheet {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.print-pad-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.print-pad-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 56px;
  padding: 6px 6px 6px 16px;
  border: 1px solid #e7ebf2;
  border-radius: 16px;
  background: #fff;
}

.print-pad-search:focus-within {
  border-color: #fca5a5;
  box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.08);
}

.print-pad-search .bi-search {
  color: #a8b0be;
  font-size: 1.05rem;
}

.print-pad-search input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  height: 44px;
  border: 0;
  background: transparent;
  color: #172033;
  font-size: 16px;
  outline: none;
  text-overflow: ellipsis;
}

.print-pad-search input::placeholder {
  color: #a8b0be;
}

.print-pad-search input::-webkit-search-cancel-button,
.print-pad-search input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}

.print-pad-search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #8b95a7;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.print-pad-search-clear:hover,
.print-pad-search-clear:focus-visible {
  background: #f3f4f6;
  color: #172033;
}

.print-pad-search-clear[hidden] {
  display: none !important;
}

.print-pad-search-submit {
  flex: 0 0 auto;
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #fff5f5;
  color: #e10600;
  font-weight: 800;
  cursor: pointer;
}

.print-pad-search-wrap {
  position: relative;
  z-index: 5;
  min-width: 0;
  max-width: 100%;
}

.print-suggest {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  max-height: min(360px, calc(100vh - 220px));
  overflow: auto;
  padding: 6px;
  border: 1px solid #e7ebf2;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(23, 32, 51, 0.12);
}

.print-suggest[hidden] {
  display: none !important;
}

.print-suggest-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.print-suggest-item.is-active,
.print-suggest-item:hover,
.print-suggest-item:focus-visible {
  background: #fff5f5;
}

.print-suggest-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.print-suggest-copy strong {
  color: #172033;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.print-suggest-copy mark {
  padding: 0;
  background: transparent;
  color: #e10600;
  font-weight: 800;
}

.print-suggest-meta {
  color: #8b93a3;
  font-size: 0.8rem;
  font-weight: 700;
}

.print-suggest-meta.is-out {
  color: #c40000;
}

.print-suggest-price {
  flex: 0 0 auto;
  color: #172033;
  font-size: 0.95rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.print-suggest-empty {
  margin: 0;
  padding: 14px 12px;
  color: #8b93a3;
  font-weight: 700;
  text-align: center;
}

.print-pad-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.print-pad-tools-start {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

#print-add-selected {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #e10600;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

#print-add-selected[hidden] {
  display: none !important;
}

.print-pad-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 0;
  color: #3c4353;
  font-weight: 700;
  cursor: pointer;
}

.print-pad-all input {
  width: 22px;
  height: 22px;
  margin: 0;
  accent-color: #e10600;
}

.print-pad-all:has(input:disabled) {
  opacity: 0.4;
  cursor: default;
}

.print-pad-count {
  color: #8b93a3;
  font-weight: 700;
}

.print-pad-pages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 4px;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  background: #fff;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.print-pad-pages .print-page-step,
.print-pad-pages .print-page-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  border-radius: 8px;
  color: #3f4756;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

.print-pad-pages .print-page-step {
  min-width: 64px;
  padding: 0 14px;
  border: 1px solid #e4e7ee;
  background: #fff;
}

.print-pad-pages .print-page-num {
  min-width: 34px;
  padding: 0 8px;
  border: 1px solid transparent;
  background: transparent;
}

.print-pad-pages .print-page-num.is-current {
  border-color: #e10600;
  background: #e10600;
  color: #fff;
  font-weight: 700;
}

.print-pad-pages a.print-page-step:hover,
.print-pad-pages a.print-page-step:focus-visible,
.print-pad-pages a.print-page-num:hover,
.print-pad-pages a.print-page-num:focus-visible {
  border-color: #e4e7ee;
  background: #f4f6f8;
  color: #172033;
}

.print-pad-pages .print-page-step.is-disabled {
  border-color: #e7ebf2;
  background: #f8f9fb;
  color: #b4bcc8;
  pointer-events: none;
}

.print-pad-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
  gap: 6px;
  min-width: 0;
}

.print-pad-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  padding: 8px 12px;
  border: 1px solid #e7ebf2;
  border-radius: 12px;
  background: #fff;
}

.print-pad-row.is-listed {
  background: #f4fbf6;
  border-color: #d7f0e0;
}

.print-pad-row.is-composing {
  background: #fff5f5;
  border-color: #fecaca;
  box-shadow: none;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding-top: 7px;
  padding-bottom: 7px;
}

.print-pad-row.is-composing .print-pad-action {
  flex: 1 0 100%;
  display: flex;
  justify-content: flex-end;
}

.print-pad-pick {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin: 0;
  cursor: pointer;
}

.print-pad-pick .print-pick {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  border: 1.5px solid #d5dbe6;
  border-radius: 50%;
  background: #fff;
}

.print-pad-pick .print-pick:checked {
  border-color: #e10600;
  background: #e10600 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.2 6.6 11.2 12.5 4.8'/%3E%3C/svg%3E") center / 12px 12px no-repeat;
}

.print-pad-pick .print-pick:focus-visible {
  outline: 3px solid rgba(225, 6, 0, 0.28);
  outline-offset: 2px;
}

.print-pad-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.print-pad-copy strong {
  color: #172033;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.print-sell {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  margin-left: auto;
  padding-left: 8px;
  color: #172033;
  font-size: 0.94rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.print-sell.is-sale {
  color: #e10600;
}

.print-sell del {
  color: #a8b0be;
  font-size: 0.78rem;
  font-weight: 700;
}

.print-sku {
  color: #8b93a3;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.print-pad-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  color: #667085;
  font-size: 0.8rem;
}

.print-stock-pill {
  display: inline-flex;
  align-items: center;
  color: #667085;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.print-stock-pill.is-out {
  min-height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff5f5;
  color: #c40000;
  font-size: 0.75rem;
}

.print-listed {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #e5f6eb;
  color: #157a3a;
  font-size: 0.75rem;
  font-weight: 800;
}

.print-listed[hidden] {
  display: none !important;
}

.print-pad-action {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}

.print-compose {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.print-compose-label {
  margin-right: auto;
  color: #667085;
  font-size: 0.8rem;
  font-weight: 700;
}

.print-compose[hidden] {
  display: none !important;
}

.print-add {
  min-width: 84px;
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #e10600;
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.print-compose .print-add {
  min-width: 58px;
  height: 32px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 0.84rem;
}

.print-add:active {
  background: #c40000;
}

.print-add:disabled {
  background: #e7ebf2;
  color: #9aa3b2;
}

.print-stepper {
  display: flex;
  align-items: center;
  height: 44px;
  padding: 3px;
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #e7ebf2;
}

.print-compose .print-stepper {
  height: 32px;
  padding: 2px;
  border-radius: 8px;
}

.print-stepper .print-step {
  width: 40px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #172033;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.print-compose .print-step {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 1rem;
}

.print-stepper .print-step:active {
  background: #fff5f5;
  color: #e10600;
}

.print-qty-input {
  width: 56px;
  min-width: 56px;
  height: 40px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 1.2rem;
  font-weight: 800;
  color: #e10600;
  -moz-appearance: textfield;
  appearance: textfield;
}

.print-qty-input::-webkit-outer-spin-button,
.print-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.print-compose .print-qty-input {
  width: 36px;
  min-width: 36px;
  height: 26px;
  color: #e10600;
  font-size: 0.9rem;
}

.print-pad-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 8px 0 0;
  padding: 48px 18px;
  border-radius: 20px;
  background: #fff;
  color: #6b7280;
  text-align: center;
}

.print-pad-empty .bi {
  font-size: 1.6rem;
  color: #c5cad3;
}

body.print-pad .print-basket {
  display: grid;
  gap: 0;
  padding: 6px 8px 8px;
  border: 1px solid #e7ebf2;
  border-radius: 14px;
  background: #fff;
}

body.print-pad .print-basket[hidden] {
  display: none !important;
}

.print-basket-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px 4px;
}

.print-basket-label {
  color: #172033;
  font-size: 0.88rem;
  font-weight: 800;
}

.print-basket-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.print-basket-clear {
  height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: #fff5f5;
  color: #e10600;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.print-basket-clear:hover,
.print-basket-clear:focus-visible {
  background: #e10600;
  color: #fff;
}

.print-basket-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e10600;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}

body.print-pad .print-basket-list {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0;
  max-height: 280px;
  padding: 0 4px;
  overflow: auto;
}

.print-ready {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  padding: 5px 4px;
  border-top: 1px solid #eef1f6;
  background: transparent;
}

.print-ready.is-fresh {
  background: #fff5f5;
  border-radius: 12px;
}

.print-ready-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.print-ready-copy strong {
  display: block;
  color: #172033;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.print-ready-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  margin-right: 2px;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.print-ready-amount {
  color: #e10600;
  font-size: 0.94rem;
  font-weight: 800;
}

.print-ready-math {
  color: #8b93a3;
  font-size: 0.75rem;
  font-weight: 700;
}

.print-basket-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 2px 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: #fff5f5;
}

.print-basket-total span {
  color: #c40000;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.print-basket-total strong {
  color: #e10600;
  font-size: 1rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.print-ready-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.print-ready-qty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 58px;
  min-height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fff5f5;
  color: #e10600;
  font-size: 0.9rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.print-ready-qty small {
  color: #ff2a2a;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.print-ready-edit,
.print-ready-remove {
  flex: 0 0 auto;
  height: 30px;
  border: 0;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  touch-action: manipulation;
}

.print-ready-edit {
  min-width: 52px;
  padding: 0 10px;
  background: #f3f5f8;
  color: #172033;
}

.print-ready.is-editing .print-ready-edit {
  background: #e10600;
  color: #fff;
}

.print-ready-remove {
  width: 30px;
  border-radius: 999px;
  background: #f3f5f8;
  color: #667085;
  font-size: 1.05rem;
  line-height: 1;
}

.print-ready .print-stepper {
  height: 32px;
  padding: 2px;
  border-radius: 8px;
}

.print-ready .print-step {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 1rem;
}

.print-ready .print-qty-input {
  width: 36px;
  min-width: 36px;
  height: 26px;
  font-size: 0.9rem;
}

.print-pad-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1020;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  box-sizing: border-box;
  max-width: 100%;
  padding: 12px clamp(12px, 2.2vw, 26px) calc(12px + env(safe-area-inset-bottom));
  transition: left 0.25s ease;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid #e7ebf2;
  box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.05);
  backdrop-filter: blur(12px);
}

.print-pad-status {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.print-pad-status strong {
  color: #667085;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
}

#print-clear {
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #8b93a3;
  font-weight: 800;
}

#print-clear:hover,
#print-clear:focus-visible {
  background: #f4f6fb;
  color: #1a1d26;
}

.print-pad-bar .print-go {
  flex: 0 0 auto;
  min-width: min(168px, 100%);
  min-height: 54px;
  margin-left: auto;
  padding: 0 28px;
  border: 0;
  border-radius: 14px;
  background: #e10600;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(225, 6, 0, 0.16);
}

.print-pad-bar .print-go:disabled {
  background: #e7ebf2;
  color: #9aa3b2;
  box-shadow: none;
}

.print-pad-bar .print-go:not(:disabled):active {
  background: #c40000;
}

@media (min-width: 992px) {
  body.print-pad .print-pad-bar {
    left: var(--admin-sidebar-width);
  }

  body.print-pad.is-sidebar-collapsed .print-pad-bar {
    left: 0;
  }
}

@media (max-width: 767.98px) {
  body.print-pad .admin-content-body {
    padding: 8px 14px 148px;
  }

  .print-pad-bar {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 720px) {
  .print-pad-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .print-pad-pages {
    align-self: stretch;
    width: 100%;
    justify-content: flex-end;
  }

  .print-ready {
    flex-wrap: wrap;
  }

  .print-ready-copy {
    flex: 1 1 100%;
  }

  .print-ready-actions {
    margin-left: auto;
  }

  .print-compose-label {
    flex: 1 0 100%;
  }

  .print-pad-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .print-pad-status {
    justify-content: space-between;
  }

  .print-pad-bar .print-go {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .print-pad-search {
    gap: 6px;
    padding-left: 12px;
  }

  .print-pad-search-submit {
    padding: 0 12px;
  }

  .print-pad-pages .print-page-step {
    min-width: 0;
    padding: 0 10px;
  }

  .print-pad-pages .print-page-num {
    min-width: 30px;
    padding: 0 6px;
  }

  .print-pad-row {
    padding: 8px 10px;
  }
}


