/* IntelligentSERP unified operations system
 * Loaded last so legacy AdminLTE, Bootstrap, Tailwind utilities and module
 * styles share one visual language without changing their behavior.
 */
:root {
  --erp-canvas: #f6f7f9;
  --erp-surface: #ffffff;
  --erp-surface-subtle: #f9fafb;
  --erp-sidebar: #172033;
  --erp-sidebar-hover: #223049;
  --erp-ink: #182230;
  --erp-muted: #667085;
  --erp-line: #dde2e8;
  --erp-line-strong: #cbd3dd;
  --erp-primary: #16866b;
  --erp-primary-hover: #116d58;
  --erp-primary-soft: #e9f6f2;
  --erp-warning: #b7791f;
  --erp-warning-soft: #fff6df;
  --erp-danger: #c83e4d;
  --erp-danger-soft: #fff0f2;
  --erp-focus: rgba(22, 134, 107, 0.24);
  --erp-radius: 8px;
  --erp-shadow-menu: 0 14px 34px rgba(23, 32, 51, 0.16);

  /* Compatibility aliases for the previous operations layer. */
  --ops-ink: var(--erp-sidebar);
  --ops-ink-2: #223049;
  --ops-bg: var(--erp-canvas);
  --ops-surface: var(--erp-surface);
  --ops-surface-2: var(--erp-surface-subtle);
  --ops-line: var(--erp-line);
  --ops-muted: var(--erp-muted);
  --ops-accent: var(--erp-primary);
  --ops-accent-dark: var(--erp-primary-hover);
  --ops-accent-soft: var(--erp-primary-soft);
  --ops-green: var(--erp-primary);
  --ops-shadow: none;
  --ops-shadow-soft: none;
}

body.restaurant-ops-ui,
body.restaurant-ops-ui #scrollable-container,
body.restaurant-ops-ui .thetop,
body.restaurant-ops-ui .thetop > main {
  color: var(--erp-ink);
  background: var(--erp-canvas) !important;
}

body.restaurant-ops-ui {
  font-family: 'Cairo', 'Almarai', 'Source Sans Pro', Arial, sans-serif !important;
}

/* Application shell ------------------------------------------------------- */
/* Enhanced Existing ERP Sidebar Styling */
.app-sidebar,
body.restaurant-ops-ui .app-sidebar {
  width: 260px !important;
  background: #090d16 !important;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.07) !important;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.18) !important;
  transition: all 0.25s ease !important;
  z-index: 100 !important;
}

.app-sidebar-brand,
body.restaurant-ops-ui .app-sidebar-brand {
  min-height: 76px !important;
  padding: 16px 18px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  text-decoration: none !important;
}

.app-sidebar-brand-copy strong,
body.restaurant-ops-ui .app-sidebar-brand-copy strong {
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 800 !important;
  display: block !important;
  letter-spacing: -0.01em !important;
}

.app-sidebar-brand-copy small,
body.restaurant-ops-ui .app-sidebar-brand-copy small {
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  display: block !important;
  margin-top: 2px !important;
}

.app-sidebar-mark,
body.restaurant-ops-ui .app-sidebar-mark {
  width: 38px !important;
  height: 38px !important;
  color: #ffffff !important;
  background: #0d9488 !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3) !important;
  transition: transform 0.2s ease !important;
}

.app-sidebar-brand:hover .app-sidebar-mark {
  transform: scale(1.05);
}

.app-sidebar-menu,
body.restaurant-ops-ui .app-sidebar-menu {
  padding: 16px 12px 24px !important;
  overflow-y: auto !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.app-sidebar-menu::-webkit-scrollbar {
  width: 4px;
}
.app-sidebar-menu::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}

.app-sidebar-menu a,
.app-sidebar-menu .drop_down,
body.restaurant-ops-ui .app-sidebar-menu a,
body.restaurant-ops-ui .app-sidebar-menu .drop_down {
  min-height: 42px !important;
  margin: 3px 0 !important;
  padding: 10px 14px !important;
  color: #94a3b8 !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
}

.app-sidebar-menu a:hover,
.app-sidebar-menu .drop_down:hover,
.app-sidebar-menu .drop_down:focus,
body.restaurant-ops-ui .app-sidebar-menu a:hover,
body.restaurant-ops-ui .app-sidebar-menu .drop_down:hover,
body.restaurant-ops-ui .app-sidebar-menu .drop_down:focus {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06) !important;
}

.app-sidebar-menu a.is-active,
.app-sidebar-menu .is-active > .drop_down,
.app-sidebar-menu .is-active.drop_down,
body.restaurant-ops-ui .app-sidebar-menu a.is-active,
body.restaurant-ops-ui .app-sidebar-menu .is-active > .drop_down,
body.restaurant-ops-ui .app-sidebar-menu .is-active.drop_down {
  color: #ffffff !important;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.3) !important;
  border-radius: 12px !important;
  font-weight: 700 !important;
}

.app-sidebar-menu i,
.app-sidebar-menu svg,
body.restaurant-ops-ui .app-sidebar-menu i,
body.restaurant-ops-ui .app-sidebar-menu svg {
  font-size: 16px !important;
  width: 20px !important;
  text-align: center !important;
  color: #94a3b8 !important;
  transition: color 0.2s ease !important;
}

.app-sidebar-menu a:hover i,
.app-sidebar-menu a:hover svg,
.app-sidebar-menu .drop_down:hover i,
.app-sidebar-menu .drop_down:hover svg,
body.restaurant-ops-ui .app-sidebar-menu a:hover i,
body.restaurant-ops-ui .app-sidebar-menu .drop_down:hover i {
  color: #2dd4bf !important;
}

.app-sidebar-menu a.is-active i,
.app-sidebar-menu a.is-active svg,
.app-sidebar-menu .is-active > .drop_down i,
.app-sidebar-menu .is-active > .drop_down svg,
body.restaurant-ops-ui .app-sidebar-menu a.is-active i,
body.restaurant-ops-ui .app-sidebar-menu .is-active > .drop_down i {
  color: #ffffff !important;
}

.app-sidebar-menu .chiled,
body.restaurant-ops-ui .app-sidebar-menu .chiled {
  margin: 4px 0 10px !important;
  padding-inline-start: 16px !important;
  border-inline-start: 2px solid rgba(255, 255, 255, 0.1) !important;
}

.app-sidebar-menu .chiled a,
body.restaurant-ops-ui .app-sidebar-menu .chiled a {
  min-height: 34px !important;
  padding: 7px 12px !important;
  margin: 2px 0 !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.app-sidebar-menu .chiled a:hover,
body.restaurant-ops-ui .app-sidebar-menu .chiled a:hover {
  color: #2dd4bf !important;
  background: rgba(45, 212, 191, 0.08) !important;
}

.app-sidebar-menu .chiled a.tw-text-primary-700,
.app-sidebar-menu .chiled a.is-active,
body.restaurant-ops-ui .app-sidebar-menu .chiled a.tw-text-primary-700,
body.restaurant-ops-ui .app-sidebar-menu .chiled a.is-active {
  color: #ffffff !important;
  background: #0f766e !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.3) !important;
}

body.restaurant-ops-ui .app-topbar {
  height: 64px !important;
  min-height: 64px;
  background: rgba(255, 255, 255, 0.97) !important;
  border-color: var(--erp-line) !important;
  box-shadow: none;
}

body.restaurant-ops-ui .app-topbar > div {
  padding-inline: 20px !important;
}

body.restaurant-ops-ui .app-topbar button[class*='tw-bg-'],
body.restaurant-ops-ui .app-topbar a[class*='tw-bg-'],
body.restaurant-ops-ui .app-topbar summary[class*='tw-bg-'] {
  min-width: 36px;
  min-height: 36px;
  color: var(--erp-ink) !important;
  background: var(--erp-surface) !important;
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-radius) !important;
  box-shadow: none !important;
}

body.restaurant-ops-ui .app-topbar button[class*='tw-bg-']:hover,
body.restaurant-ops-ui .app-topbar a[class*='tw-bg-']:hover,
body.restaurant-ops-ui .app-topbar summary[class*='tw-bg-']:hover {
  color: var(--erp-primary-hover) !important;
  background: var(--erp-primary-soft) !important;
  border-color: #9fd3c5;
  transform: none;
}

body.restaurant-ops-ui .app-header-dropdown .tw-dw-menu,
body.restaurant-ops-ui .dropdown-menu,
body.restaurant-ops-ui .select2-dropdown {
  border-color: var(--erp-line);
  border-radius: var(--erp-radius) !important;
  box-shadow: var(--erp-shadow-menu) !important;
}

/* Global content and hierarchy ------------------------------------------- */
body.restaurant-ops-ui .content,
body.restaurant-ops-ui .content-wrapper > .content {
  padding: 24px clamp(16px, 2.2vw, 32px) 36px;
}

body.restaurant-ops-ui .content-header {
  padding: 22px clamp(16px, 2.2vw, 32px) 10px;
}

body.restaurant-ops-ui .content-header h1,
body.restaurant-ops-ui .pl-title-copy h1 {
  color: var(--erp-ink);
  font-size: clamp(24px, 2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.025em !important;
}

body.restaurant-ops-ui .content-header h1 small,
body.restaurant-ops-ui .product-page-description,
body.restaurant-ops-ui .pl-breadcrumb {
  color: var(--erp-muted);
}

body.restaurant-ops-ui .pl-page-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

body.restaurant-ops-ui .pl-title-mark {
  width: 44px;
  height: 44px;
  color: var(--erp-primary-hover) !important;
  background: var(--erp-primary-soft) !important;
  border: 1px solid #b8dfd5 !important;
  border-radius: var(--erp-radius) !important;
  box-shadow: none !important;
}

body.restaurant-ops-ui .pl-page-heading-actions,
body.restaurant-ops-ui .product-heading-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

/* Shared surfaces --------------------------------------------------------- */
body.restaurant-ops-ui .box,
body.restaurant-ops-ui .pl-table-card,
body.restaurant-ops-ui .product-filter-shell,
body.restaurant-ops-ui .product-form-card,
body.restaurant-ops-ui .nav-tabs-custom,
body.restaurant-ops-ui .info-box {
  background: var(--erp-surface) !important;
  border: 1px solid var(--erp-line) !important;
  border-radius: var(--erp-radius) !important;
  box-shadow: none !important;
}

body.restaurant-ops-ui .box-header,
body.restaurant-ops-ui .box-footer,
body.restaurant-ops-ui .product-form-card-head {
  background: var(--erp-surface) !important;
  border-color: var(--erp-line) !important;
}

body.restaurant-ops-ui .box-title,
body.restaurant-ops-ui .product-form-card-head h2 {
  color: var(--erp-ink) !important;
  font-size: 14px;
  font-weight: 800;
}

body.restaurant-ops-ui .info-box {
  min-height: 96px;
}

body.restaurant-ops-ui .info-box-icon {
  width: 72px;
  color: var(--erp-primary-hover) !important;
  background: var(--erp-primary-soft) !important;
  border-radius: var(--erp-radius) 0 0 var(--erp-radius);
}

html[dir='rtl'] body.restaurant-ops-ui .info-box-icon {
  border-radius: 0 var(--erp-radius) var(--erp-radius) 0;
}

/* Controls and feedback --------------------------------------------------- */
body.restaurant-ops-ui :is(.form-control, .select2-container .select2-selection--single, .select2-container .select2-selection--multiple) {
  min-height: 42px;
  color: var(--erp-ink);
  background: var(--erp-surface);
  border-color: var(--erp-line-strong);
  border-radius: var(--erp-radius) !important;
  box-shadow: none;
}

body.restaurant-ops-ui :is(.form-control, .select2-container .select2-selection--single, .select2-container .select2-selection--multiple):hover {
  border-color: #aeb8c5;
}

body.restaurant-ops-ui :is(.form-control:focus, .select2-container--focus .select2-selection, .select2-container--open .select2-selection) {
  border-color: var(--erp-primary) !important;
  box-shadow: 0 0 0 3px var(--erp-focus) !important;
}

body.restaurant-ops-ui :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--erp-focus) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 1px var(--erp-focus) inset !important;
}

body.restaurant-ops-ui .pl-report-page :is(a, button, input, select, textarea, summary):focus-visible,
body.restaurant-ops-ui .product-form-page :is(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--erp-focus) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 1px var(--erp-focus) inset !important;
}

body.restaurant-ops-ui .btn,
body.restaurant-ops-ui .pl-action-button {
  min-height: 40px;
  padding: 8px 14px;
  border-radius: var(--erp-radius) !important;
  font-size: 12px;
  font-weight: 800;
  box-shadow: none !important;
}

body.restaurant-ops-ui :is(.btn-primary, .btn-success, .pl-action-button-primary) {
  color: #ffffff !important;
  background: var(--erp-primary) !important;
  border-color: var(--erp-primary) !important;
}

body.restaurant-ops-ui :is(.btn-primary, .btn-success, .pl-action-button-primary):hover,
body.restaurant-ops-ui :is(.btn-primary, .btn-success, .pl-action-button-primary):focus {
  color: #ffffff !important;
  background: var(--erp-primary-hover) !important;
  border-color: var(--erp-primary-hover) !important;
}

body.restaurant-ops-ui .btn-default,
body.restaurant-ops-ui .pl-action-button:not(.pl-action-button-primary) {
  color: #344054 !important;
  background: var(--erp-surface) !important;
  border-color: var(--erp-line-strong) !important;
}

body.restaurant-ops-ui .btn-danger {
  color: #ffffff !important;
  background: var(--erp-danger) !important;
  border-color: var(--erp-danger) !important;
}

body.restaurant-ops-ui :is(.alert, .callout) {
  border-radius: var(--erp-radius);
  box-shadow: none;
}

body.restaurant-ops-ui .label,
body.restaurant-ops-ui .badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 750;
}

/* Tables and DataTables --------------------------------------------------- */
body.restaurant-ops-ui .table,
body.restaurant-ops-ui table.dataTable {
  color: var(--erp-ink);
  background: var(--erp-surface);
  border-color: var(--erp-line) !important;
}

body.restaurant-ops-ui .table > thead > tr > th,
body.restaurant-ops-ui table.dataTable > thead > tr > th {
  height: 44px;
  color: #475467;
  background: var(--erp-surface-subtle) !important;
  border-color: var(--erp-line) !important;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

body.restaurant-ops-ui .table > tbody > tr > td,
body.restaurant-ops-ui table.dataTable > tbody > tr > td {
  min-height: 52px;
  padding-block: 10px;
  vertical-align: middle;
  background: var(--erp-surface) !important;
  border-color: #e9edf2 !important;
}

body.restaurant-ops-ui .table-hover > tbody > tr:hover > td,
body.restaurant-ops-ui table.dataTable > tbody > tr:hover > td {
  background: #f7fbfa !important;
}

body.restaurant-ops-ui .dataTables_wrapper > .row:first-child,
body.restaurant-ops-ui .dataTables_wrapper > .row:last-child,
body.restaurant-ops-ui #product_table_wrapper > .row.margin-bottom-20.text-center {
  background: var(--erp-surface) !important;
  border-color: var(--erp-line) !important;
}

body.restaurant-ops-ui .dataTables_filter input,
body.restaurant-ops-ui .dataTables_length select {
  min-height: 40px;
  border-color: var(--erp-line-strong) !important;
  border-radius: var(--erp-radius) !important;
}

body.restaurant-ops-ui .pagination > li > a,
body.restaurant-ops-ui .pagination > li > span {
  min-width: 36px;
  min-height: 36px;
  color: #475467;
  background: var(--erp-surface);
  border-color: var(--erp-line);
}

body.restaurant-ops-ui .pagination > .active > a,
body.restaurant-ops-ui .pagination > .active > span {
  color: #ffffff;
  background: var(--erp-primary);
  border-color: var(--erp-primary);
}

/* Product reference workspace ------------------------------------------- */
body.restaurant-ops-ui .product-nav-section {
  display: none;
}

body.restaurant-ops-ui .product-index-page {
  padding-top: 24px;
}

body.restaurant-ops-ui .product-index-page .product-card-toolbar {
  display: none !important;
}

body.restaurant-ops-ui .product-index-page .product-filter-shell,
body.restaurant-ops-ui .product-index-page > .pl-table-card {
  background: var(--erp-surface) !important;
  border-color: var(--erp-line) !important;
  border-radius: var(--erp-radius) !important;
  box-shadow: none !important;
}

body.restaurant-ops-ui .product-index-page .product-filter-toggle {
  min-height: 56px;
}

body.restaurant-ops-ui .product-index-page .product-filter-toggle-icon {
  color: var(--erp-primary-hover);
  background: var(--erp-primary-soft);
  border-color: #b8dfd5;
  border-radius: var(--erp-radius);
}

body.restaurant-ops-ui .product-index-page .product-filter-count {
  color: #ffffff;
  background: var(--erp-primary);
}

body.restaurant-ops-ui .product-index-page .pl-filter-panel {
  background: var(--erp-surface-subtle);
  border-top: 1px solid var(--erp-line);
}

body.restaurant-ops-ui .product-index-page .pl-tabs > li > a {
  color: var(--erp-muted) !important;
}

body.restaurant-ops-ui .product-index-page .pl-tabs > li.active > a,
body.restaurant-ops-ui .product-index-page .pl-tabs > li > a:hover {
  color: var(--erp-primary-hover) !important;
  border-color: var(--erp-primary) !important;
  box-shadow: inset 0 -2px 0 var(--erp-primary) !important;
}

body.restaurant-ops-ui .product-index-page #product_table input[type='checkbox'] {
  accent-color: var(--erp-primary);
}

body.restaurant-ops-ui .product-index-page .product-image-cell {
  width: 44px;
  height: 44px;
  background: var(--erp-surface-subtle);
  border-color: var(--erp-line);
  border-radius: 6px;
}

body.restaurant-ops-ui .product-index-page .product-image-cell .product-thumbnail-small {
  width: 42px;
  height: 42px;
}

body.restaurant-ops-ui .product-form-page .pl-title-mark,
body.restaurant-ops-ui .product-form-card .product-form-step {
  color: var(--erp-primary-hover) !important;
  background: var(--erp-primary-soft) !important;
  border-color: #b8dfd5 !important;
  border-radius: var(--erp-radius) !important;
}

body.restaurant-ops-ui .product-form-card::before {
  background: var(--erp-primary) !important;
}

body.restaurant-ops-ui .product-form-card > .product-form-grid {
  gap: 16px;
  padding: 18px 18px 8px;
}

body.restaurant-ops-ui .product-form-card .form-group {
  margin-bottom: 12px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

body.restaurant-ops-ui .product-form-card .input-group-btn .btn {
  color: var(--erp-primary-hover);
  background: var(--erp-primary-soft);
  border-color: #b8dfd5;
  border-radius: var(--erp-radius);
}

body.restaurant-ops-ui .product-bulk-actions {
  display: none;
  padding: 10px;
  background: var(--erp-surface-subtle);
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-radius);
}

body.restaurant-ops-ui .product-bulk-actions.has-selection {
  display: flex;
}

body.restaurant-ops-ui .dataTables_sizing .product-bulk-actions {
  visibility: hidden !important;
}

body.restaurant-ops-ui .product-selection-count {
  color: var(--erp-primary-hover);
  background: var(--erp-primary-soft);
  border-color: #b8dfd5;
  border-radius: 6px;
}

/* Create Product reference implementation -------------------------------- */
body.restaurant-ops-ui .product-create-page {
  padding-bottom: 104px;
}

body.restaurant-ops-ui .product-create-page .pl-page-heading {
  margin-bottom: 10px;
}

body.restaurant-ops-ui .product-create-lead {
  max-width: 720px;
  margin: 5px 0 0;
  color: var(--erp-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.65;
}

body.restaurant-ops-ui .product-create-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 760px;
  margin: 2px 0 18px auto;
  padding: 0 8px;
}

body.restaurant-ops-ui .product-create-progress-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--erp-muted);
  font-size: 11px;
}

body.restaurant-ops-ui .product-create-progress-item:not(:last-child)::after {
  position: absolute;
  top: 16px;
  inset-inline-start: calc(50% + 38px);
  width: calc(100% - 58px);
  height: 1px;
  background: var(--erp-line-strong);
  content: '';
}

body.restaurant-ops-ui .product-create-progress-item > span {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--erp-muted);
  background: var(--erp-surface);
  border: 1px solid var(--erp-line-strong);
  border-radius: 50%;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 800;
}

body.restaurant-ops-ui .product-create-progress-item.is-active {
  color: var(--erp-primary-hover);
}

body.restaurant-ops-ui .product-create-progress-item.is-active > span {
  color: #fff;
  background: var(--erp-primary);
  border-color: var(--erp-primary);
}

body.restaurant-ops-ui .product-create-page #product_add_form {
  display: grid;
  gap: 12px;
}

body.restaurant-ops-ui .product-create-page .product-form-card {
  overflow: visible;
  margin: 0;
  background: var(--erp-surface);
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-radius);
  box-shadow: none;
}

body.restaurant-ops-ui .product-create-page .product-form-card::before {
  display: none;
}

body.restaurant-ops-ui .product-create-page .product-form-card-head {
  min-height: 54px;
  padding: 12px 16px;
  background: var(--erp-surface);
  border-bottom: 1px solid var(--erp-line);
}

body.restaurant-ops-ui .product-create-page .product-form-card-head h2 {
  color: var(--erp-ink);
  font-size: 15px;
  font-weight: 850;
}

body.restaurant-ops-ui .product-create-page .product-form-step {
  width: 30px;
  height: 30px;
  color: var(--erp-primary-hover) !important;
  background: var(--erp-primary-soft) !important;
  border: 1px solid #b8dfd5 !important;
  border-radius: 6px !important;
  box-shadow: none;
  font-size: 11px;
}

body.restaurant-ops-ui .product-create-page .product-form-card > .product-form-grid {
  gap: 14px 16px;
  padding: 16px;
}

body.restaurant-ops-ui .product-create-page .product-form-card .form-group {
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.restaurant-ops-ui .product-create-page .product-form-card .form-group > label,
body.restaurant-ops-ui .product-create-page .product-form-card label.form-check-label {
  margin-bottom: 6px;
  color: var(--erp-ink-soft);
  font-size: 11px;
  font-weight: 800;
}

body.restaurant-ops-ui .product-create-page .product-form-card :is(.form-control, input[type='file'], .select2-selection--single, .select2-selection--multiple) {
  min-height: 42px;
  color: var(--erp-ink);
  background: var(--erp-surface);
  border: 1px solid var(--erp-line-strong);
  border-radius: var(--erp-radius) !important;
  box-shadow: none;
  font-size: 12px;
}

body.restaurant-ops-ui .product-create-page .product-form-card :is(.form-control:focus, input[type='file']:focus, .select2-container--focus .select2-selection, .select2-container--open .select2-selection) {
  background: var(--erp-surface);
  border-color: var(--erp-primary) !important;
  box-shadow: 0 0 0 3px var(--erp-focus) !important;
}

body.restaurant-ops-ui .product-create-page .product-form-card textarea.form-control {
  min-height: 118px;
}

body.restaurant-ops-ui .product-create-page .product-form-card .help-block {
  margin-top: 6px;
  color: var(--erp-muted);
  font-size: 10px;
  line-height: 1.5;
}

body.restaurant-ops-ui .product-create-page .product-form-card .input-group-btn .btn {
  min-width: 42px;
  min-height: 42px;
  border-radius: var(--erp-radius) !important;
}

@media (min-width: 1200px) {
  body.restaurant-ops-ui .product-create-page #product_add_form > .product-form-card:nth-of-type(1) > .product-form-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-auto-flow: row dense;
  }

  body.restaurant-ops-ui .product-create-page #product_add_form > .product-form-card:nth-of-type(1) > .product-form-grid > [class*='col-'] {
    grid-column: span 3;
  }

  body.restaurant-ops-ui .product-create-page #product_add_form > .product-form-card:nth-of-type(1) > .product-form-grid > .col-sm-8:has(#product_description) {
    grid-column: 1 / 10;
  }

  body.restaurant-ops-ui .product-create-page #product_add_form > .product-form-card:nth-of-type(1) > .product-form-grid > .col-sm-4:has(#upload_image) {
    grid-column: 10 / 13;
    grid-row: 1 / span 4;
  }

  body.restaurant-ops-ui .product-create-page #product_add_form > .product-form-card:nth-of-type(1) > .product-form-grid > .col-sm-4:has(#product_brochure) {
    grid-column: 10 / 13;
    grid-row: 5 / span 2;
  }

  body.restaurant-ops-ui .product-create-page #product_add_form > .product-form-card:nth-of-type(2) > .product-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.restaurant-ops-ui .product-create-page #product_add_form > .product-form-card:nth-of-type(3) > .product-form-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.restaurant-ops-ui .product-create-page .col-sm-4:has(#upload_image),
body.restaurant-ops-ui .product-create-page .col-sm-4:has(#product_brochure) {
  align-self: stretch;
  padding: 14px !important;
  background: var(--erp-surface-subtle);
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-radius);
}

body.restaurant-ops-ui .product-create-page .col-sm-4:has(#upload_image)::before {
  display: block;
  margin-bottom: 14px;
  color: var(--erp-ink);
  content: attr(data-upload-heading);
  font-size: 13px;
  font-weight: 850;
}

body.restaurant-ops-ui .product-create-page .col-sm-4:has(#upload_image) .form-group,
body.restaurant-ops-ui .product-create-page .col-sm-4:has(#product_brochure) .form-group {
  height: 100%;
}

body.restaurant-ops-ui .product-create-page :is(#upload_image, #product_brochure) {
  width: 100%;
  min-height: 92px !important;
  padding: 16px 10px !important;
  background: var(--erp-surface) !important;
  border: 1px dashed #bdc7d4 !important;
  cursor: pointer;
}

body.restaurant-ops-ui .product-create-page #product_form_part {
  padding: 0;
  background: transparent;
  border: 0;
}

body.restaurant-ops-ui .product-create-page .product-price-card .add-product-price-table {
  margin: 0 !important;
  background: var(--erp-surface);
  border: 1px solid var(--erp-line) !important;
  border-radius: var(--erp-radius);
  box-shadow: none;
}

body.restaurant-ops-ui .product-create-page .product-price-card .add-product-price-table > tbody > tr:first-child > th,
body.restaurant-ops-ui .product-create-page .product-price-card .add-product-price-table > thead > tr > th {
  padding: 10px 12px !important;
  color: var(--erp-ink-soft);
  background: var(--erp-surface-subtle);
  border-color: var(--erp-line) !important;
  font-size: 10px;
}

body.restaurant-ops-ui .product-create-page .product-price-card .add-product-price-table > tbody > tr > td {
  padding: 12px !important;
  border-color: var(--erp-line) !important;
}

body.restaurant-ops-ui .product-create-page .product-form-actions {
  position: sticky;
  bottom: 10px;
  z-index: 25;
  margin: 0;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--erp-line);
  border-radius: var(--erp-radius);
  box-shadow: 0 -8px 24px rgba(23, 32, 51, 0.08);
  backdrop-filter: blur(10px);
}

body.restaurant-ops-ui .product-create-page .product-form-actions .btn-group {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

body.restaurant-ops-ui .product-create-page .product-form-actions .tw-dw-btn {
  min-height: 42px !important;
  padding: 8px 14px !important;
  color: var(--erp-ink-soft) !important;
  background: var(--erp-surface) !important;
  border: 1px solid var(--erp-line-strong) !important;
  border-radius: var(--erp-radius) !important;
  box-shadow: none !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

body.restaurant-ops-ui .product-create-page .product-form-actions .tw-dw-btn-primary {
  order: -10;
  min-width: 150px;
  color: #fff !important;
  background: var(--erp-primary) !important;
  border-color: var(--erp-primary) !important;
}

body.restaurant-ops-ui .product-create-page .product-form-actions .tw-dw-btn-primary:hover,
body.restaurant-ops-ui .product-create-page .product-form-actions .tw-dw-btn-primary:focus {
  background: var(--erp-primary-hover) !important;
  border-color: var(--erp-primary-hover) !important;
}

body.restaurant-ops-ui .product-create-page .product-form-cancel {
  order: 20;
  margin-inline-start: auto;
  padding: 10px 12px;
  color: var(--erp-ink-soft);
  border-radius: var(--erp-radius);
  font-size: 11px;
  font-weight: 800;
}

body.restaurant-ops-ui .product-create-page .product-form-cancel:hover,
body.restaurant-ops-ui .product-create-page .product-form-cancel:focus {
  color: var(--erp-primary-hover);
  background: var(--erp-primary-soft);
}

/* Medical modules use the shared workspace primitives -------------------- */
body.restaurant-ops-ui :is(.clinic-nav, .laboratory-nav),
body.restaurant-ops-ui .content > .box.box-solid:first-of-type > .box-body {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px;
}

body.restaurant-ops-ui :is(.clinic-nav, .laboratory-nav) .btn,
body.restaurant-ops-ui .content > .box.box-solid:first-of-type > .box-body .btn {
  min-height: 36px;
  padding: 7px 11px;
}

/* Responsive -------------------------------------------------------------- */
@media (max-width: 1024px) {
  body.restaurant-ops-ui .product-create-progress {
    max-width: none;
    margin-inline: 0;
  }

  body.restaurant-ops-ui .product-create-page .product-form-card > .product-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.restaurant-ops-ui .product-create-page .product-form-card > .product-form-grid > [class*='col-'] {
    grid-column: span 1;
  }

  body.restaurant-ops-ui .product-create-page .product-form-card > .product-form-grid > :is(.col-sm-8, .col-sm-12, .col-md-8, .col-md-12),
  body.restaurant-ops-ui .product-create-page .product-form-card > .product-form-grid > .col-sm-8:has(#product_description) {
    grid-column: 1 / -1;
  }

  body.restaurant-ops-ui .app-topbar > div {
    padding-inline: 14px !important;
  }

  body.restaurant-ops-ui .content,
  body.restaurant-ops-ui .content-wrapper > .content {
    padding-inline: 16px;
  }

  body.restaurant-ops-ui .pl-page-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  body.restaurant-ops-ui .pl-page-heading-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 767px) {
  body.restaurant-ops-ui .product-create-page {
    padding-bottom: 48px;
  }

  body.restaurant-ops-ui .product-create-lead {
    font-size: 11px;
  }

  body.restaurant-ops-ui .product-create-progress {
    margin-bottom: 14px;
    padding-inline: 0;
  }

  body.restaurant-ops-ui .product-create-progress-item {
    flex-direction: column;
    gap: 5px;
    text-align: center;
  }

  body.restaurant-ops-ui .product-create-progress-item:not(:last-child)::after {
    top: 15px;
    inset-inline-start: calc(50% + 20px);
    width: calc(100% - 40px);
  }

  body.restaurant-ops-ui .product-create-progress-item strong {
    font-size: 9px;
    line-height: 1.35;
  }

  body.restaurant-ops-ui .product-create-progress-item > span {
    width: 30px;
    height: 30px;
  }

  body.restaurant-ops-ui .product-create-page .product-form-card > .product-form-grid {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  body.restaurant-ops-ui .product-create-page .product-form-card > .product-form-grid > [class*='col-'],
  body.restaurant-ops-ui .product-create-page .product-form-card > .product-form-grid > :is(.col-sm-8, .col-sm-12, .col-md-8, .col-md-12) {
    grid-column: 1 / -1;
  }

  body.restaurant-ops-ui .product-create-page .product-form-actions {
    bottom: 0;
    padding: 8px;
  }

  body.restaurant-ops-ui .product-create-page .product-form-actions .btn-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.restaurant-ops-ui .product-create-page .product-form-actions .tw-dw-btn,
  body.restaurant-ops-ui .product-create-page .product-form-cancel {
    width: 100%;
    min-width: 0;
    margin: 0;
    text-align: center;
  }

  body.restaurant-ops-ui .product-create-page .product-form-cancel {
    grid-column: 1 / -1;
  }

  body.restaurant-ops-ui .content,
  body.restaurant-ops-ui .content-wrapper > .content {
    padding: 16px 12px 28px;
  }

  body.restaurant-ops-ui .content-header {
    padding: 16px 12px 8px;
  }

  body.restaurant-ops-ui .pl-page-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.restaurant-ops-ui .pl-title-mark {
    display: none;
  }

  body.restaurant-ops-ui .pl-page-heading-actions,
  body.restaurant-ops-ui .product-heading-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  body.restaurant-ops-ui .pl-page-heading-actions .pl-action-button {
    width: 100%;
  }

  body.restaurant-ops-ui .box-body {
    padding: 12px;
  }

  body.restaurant-ops-ui .product-index-page > .pl-table-card {
    padding-inline: 10px;
  }

  body.restaurant-ops-ui .product-index-page .product-filter-panel .pl-filter-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.restaurant-ops-ui *,
  body.restaurant-ops-ui *::before,
  body.restaurant-ops-ui *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* Approved bordered sidebar design --------------------------------------- */
.app-sidebar,
body.restaurant-ops-ui .app-sidebar {
  width: 272px !important;
  background: #081425 !important;
  border-inline-end: 1px solid #163654 !important;
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.04), 10px 0 28px rgba(2, 8, 23, 0.2) !important;
}

[dir='rtl'] .app-sidebar,
[dir='rtl'] body.restaurant-ops-ui .app-sidebar {
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.04), -10px 0 28px rgba(2, 8, 23, 0.2) !important;
}

.app-sidebar-brand,
body.restaurant-ops-ui .app-sidebar-brand {
  min-height: 92px !important;
  padding: 17px 14px !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  background: #09182b !important;
  border-bottom: 1px solid #173650 !important;
  outline: 0 !important;
}

.app-sidebar-brand:hover,
.app-sidebar-brand:focus-visible,
body.restaurant-ops-ui .app-sidebar-brand:hover,
body.restaurant-ops-ui .app-sidebar-brand:focus-visible {
  background: #0b1d33 !important;
}

.app-sidebar-brand-copy,
body.restaurant-ops-ui .app-sidebar-brand-copy {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

.app-sidebar-brand-copy strong,
body.restaurant-ops-ui .app-sidebar-brand-copy strong {
  overflow: hidden !important;
  color: #f8fafc !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.app-sidebar-brand-copy small,
body.restaurant-ops-ui .app-sidebar-brand-copy small {
  margin-top: 2px !important;
  color: #2dd4bf !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

.app-sidebar-mark,
body.restaurant-ops-ui .app-sidebar-mark {
  width: 44px !important;
  height: 44px !important;
  color: #f0fdfa !important;
  background: #0b2034 !important;
  border: 1px solid #14b8a6 !important;
  border-radius: 10px !important;
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.06), 0 8px 18px rgba(2, 8, 23, 0.24) !important;
  flex: 0 0 44px !important;
}

.app-sidebar-brand:hover .app-sidebar-mark,
.app-sidebar-brand:focus-visible .app-sidebar-mark {
  color: #ffffff !important;
  background: #0f766e !important;
  transform: translateY(-1px) !important;
}

.app-sidebar-menu,
body.restaurant-ops-ui .app-sidebar-menu {
  padding: 12px 10px 22px !important;
  border: 0 !important;
  overflow-y: auto !important;
  overscroll-behavior: contain !important;
  scrollbar-gutter: stable !important;
  scrollbar-color: #28516f transparent !important;
}

.app-sidebar-menu > * + *,
body.restaurant-ops-ui .app-sidebar-menu > * + * {
  margin-top: 7px !important;
}

.app-sidebar-menu::-webkit-scrollbar {
  width: 5px !important;
}

.app-sidebar-menu::-webkit-scrollbar-thumb {
  background: #28516f !important;
  border-radius: 999px !important;
}

.app-sidebar-menu a,
.app-sidebar-menu .drop_down,
body.restaurant-ops-ui .app-sidebar-menu a,
body.restaurant-ops-ui .app-sidebar-menu .drop_down {
  position: relative !important;
  min-height: 47px !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  color: #c0ccdb !important;
  background: #0a1a2d !important;
  border: 1px solid #245173 !important;
  border-radius: 9px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015) !important;
  font-size: 13px !important;
  font-weight: 650 !important;
  gap: 9px !important;
  line-height: 1.45 !important;
  outline: 0 !important;
  transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease !important;
}

.app-sidebar-menu a:hover,
.app-sidebar-menu .drop_down:hover,
.app-sidebar-menu .drop_down:focus,
body.restaurant-ops-ui .app-sidebar-menu a:hover,
body.restaurant-ops-ui .app-sidebar-menu .drop_down:hover,
body.restaurant-ops-ui .app-sidebar-menu .drop_down:focus {
  color: #ffffff !important;
  background: #0d2238 !important;
  border-color: #34739b !important;
  box-shadow: inset 0 1px 0 rgba(148, 210, 234, 0.04), 0 6px 14px rgba(2, 8, 23, 0.14) !important;
  transform: translateY(-1px) !important;
}

.app-sidebar-menu a:focus-visible,
.app-sidebar-menu .drop_down:focus-visible,
body.restaurant-ops-ui .app-sidebar-menu a:focus-visible,
body.restaurant-ops-ui .app-sidebar-menu .drop_down:focus-visible {
  color: #ffffff !important;
  border-color: #5eead4 !important;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18) !important;
}

.app-sidebar-menu i,
.app-sidebar-menu svg,
body.restaurant-ops-ui .app-sidebar-menu i,
body.restaurant-ops-ui .app-sidebar-menu svg {
  width: 30px !important;
  height: 30px !important;
  color: #b4c5d8 !important;
  background: #0d243a !important;
  border: 1px solid #2a5878 !important;
  border-radius: 7px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  flex: 0 0 30px !important;
}

.app-sidebar-menu .drop_down > svg:last-child,
body.restaurant-ops-ui .app-sidebar-menu .drop_down > svg:last-child {
  position: absolute !important;
  inset-inline-end: 10px !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  padding: 2px !important;
  color: #9fb3c8 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  flex-basis: 18px !important;
}

.app-sidebar-menu .drop_down,
body.restaurant-ops-ui .app-sidebar-menu .drop_down {
  padding-inline-end: 38px !important;
}

.app-sidebar-menu a.is-active,
.app-sidebar-menu .is-active > .drop_down,
.app-sidebar-menu .is-active.drop_down,
body.restaurant-ops-ui .app-sidebar-menu a.is-active,
body.restaurant-ops-ui .app-sidebar-menu .is-active > .drop_down,
body.restaurant-ops-ui .app-sidebar-menu .is-active.drop_down {
  color: #ffffff !important;
  background: #0e8f82 !important;
  border-color: #2dd4bf !important;
  border-radius: 9px !important;
  box-shadow: inset 0 1px 0 rgba(204, 251, 241, 0.18), 0 8px 18px rgba(13, 148, 136, 0.2) !important;
  font-weight: 750 !important;
  transform: none !important;
}

.app-sidebar-menu a.is-active i,
.app-sidebar-menu a.is-active svg,
.app-sidebar-menu .is-active > .drop_down i,
.app-sidebar-menu .is-active > .drop_down svg,
body.restaurant-ops-ui .app-sidebar-menu a.is-active i,
body.restaurant-ops-ui .app-sidebar-menu .is-active > .drop_down i {
  color: #ffffff !important;
  background: rgba(4, 47, 46, 0.22) !important;
  border-color: rgba(204, 251, 241, 0.36) !important;
}

.app-sidebar-menu .chiled,
body.restaurant-ops-ui .app-sidebar-menu .chiled {
  margin: 7px 0 0 !important;
  padding: 9px !important;
  background: #071322 !important;
  border: 1px solid #245173 !important;
  border-inline-start: 1px solid #245173 !important;
  border-radius: 9px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.015) !important;
}

.app-sidebar-menu .chiled > div:first-child,
body.restaurant-ops-ui .app-sidebar-menu .chiled > div:first-child {
  display: none !important;
}

.app-sidebar-menu .chiled > div:last-child,
body.restaurant-ops-ui .app-sidebar-menu .chiled > div:last-child {
  display: grid !important;
  gap: 6px !important;
}

.app-sidebar-menu .chiled a,
body.restaurant-ops-ui .app-sidebar-menu .chiled a {
  min-height: 39px !important;
  margin: 0 !important;
  padding: 7px 10px !important;
  color: #b8c5d4 !important;
  background: #091a2c !important;
  border: 1px solid #234c6b !important;
  border-radius: 7px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.012) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  transform: none !important;
}

.app-sidebar-menu .chiled a:hover,
body.restaurant-ops-ui .app-sidebar-menu .chiled a:hover {
  color: #ffffff !important;
  background: #0c2238 !important;
  border-color: #3b789d !important;
  box-shadow: inset 0 1px 0 rgba(148, 210, 234, 0.035) !important;
  transform: none !important;
}

.app-sidebar-menu .chiled a.tw-text-primary-700,
.app-sidebar-menu .chiled a.is-active,
body.restaurant-ops-ui .app-sidebar-menu .chiled a.tw-text-primary-700,
body.restaurant-ops-ui .app-sidebar-menu .chiled a.is-active {
  color: #ffffff !important;
  background: #0b3f4b !important;
  border-color: #21d4c3 !important;
  box-shadow: inset 0 1px 0 rgba(153, 246, 228, 0.08) !important;
  font-weight: 750 !important;
}

.app-sidebar-menu .chiled a.tw-text-primary-700::after,
.app-sidebar-menu .chiled a.is-active::after,
body.restaurant-ops-ui .app-sidebar-menu .chiled a.tw-text-primary-700::after,
body.restaurant-ops-ui .app-sidebar-menu .chiled a.is-active::after {
  position: absolute !important;
  inset-block: 6px !important;
  inset-inline-end: auto !important;
  left: 3px !important;
  width: 3px !important;
  background: #2dd4bf !important;
  border-radius: 999px !important;
  content: '' !important;
}

@media (max-width: 1023px) {
  .app-sidebar.small-view-side-active,
  body.restaurant-ops-ui .app-sidebar.small-view-side-active {
    position: fixed !important;
    inset-block: 0 !important;
    inset-inline-start: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    width: min(86vw, 272px) !important;
    height: 100dvh !important;
    z-index: 1000 !important;
  }

  .overlay {
    background: rgba(2, 8, 23, 0.72) !important;
    backdrop-filter: blur(2px) !important;
  }
}
