:root {
  --oe-navy: #3f4b62;
  --oe-navy-2: #344056;
  --oe-teal: #2bd4c3;
  --oe-bg: #f3f6fb;
  --oe-surface: #ffffff;
  --oe-border: #e3e8f1;
  --oe-text: #1f2a3d;
  --oe-muted: #6b7280;
  --oe-r: 14px;
  --oe-sb-w: 270px;
  --oe-sb-w-collapsed: 84px;
  --oe-topbar-h: 56px;
  --oe-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --oe-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.08);
  --oe-shadow-md: 0 10px 24px rgba(15, 23, 42, 0.12);
  --oe-table-head-bg: #454b52;
  --oe-table-head-text: #f8fafc;
  --oe-table-row-hover: #f4f6f9;
  --oe-tabsbar-h: 44px;
  --oe-tabs-gap-top: 4px;
  --oe-tab-active-bg: #19b3a5;
  --oe-tab-inactive-bg: rgba(25, 179, 165, 0.12);
  --oe-tab-active-text: var(--oe-text);
  --oe-tab-inactive-text: #6b7280;
}

@font-face {
  font-display: block;
  font-family: "bootstrap-icons";
  src: url("vendor/bootstrap-icons/fonts/bootstrap-icons.woff2?e34853135f9e39acf64315236852cd5a")
      format("woff2"),
    url("vendor/bootstrap-icons/fonts/bootstrap-icons.woff?e34853135f9e39acf64315236852cd5a")
      format("woff");
}

html,
body {
  height: 100%;
}

body.oe-app {
  background-color: var(--oe-bg);
  color: var(--oe-text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Roboto",
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol";
  margin: 0;
  padding-top: 0;
  overflow-x: hidden;
}

a {
  color: var(--oe-navy);
}

a:hover {
  color: #0a2a55;
}

.text-muted {
  color: var(--oe-muted) !important;
}

.oe-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--oe-sb-w);
  background: linear-gradient(180deg, var(--oe-navy), var(--oe-navy-2));
  color: #fff;
  z-index: 999;
  transition: width 200ms var(--oe-ease), transform 200ms var(--oe-ease);
  overflow-y: auto;
}

.oe-sidebar__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 18px 12px;
}

/* Brand / Logo (luxury) */
.oe-brand {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 6px 16px 6px 10px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 180ms var(--oe-ease), box-shadow 180ms var(--oe-ease),
    transform 180ms var(--oe-ease), border-color 180ms var(--oe-ease);
  max-width: 100%;
  overflow: hidden;
}

.oe-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.22),
    rgba(255, 255, 255, 0.02) 55%,
    rgba(255, 255, 255, 0.12)
  );
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.oe-brand:hover,
.oe-brand:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.oe-brand__mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(43, 212, 195, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.12),
    0 6px 14px rgba(0, 0, 0, 0.2);
  flex: 0 0 auto;
  z-index: 1;
}

.oe-brand__mark svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.oe-brand__text {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.oe-brand__name {
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.oe-sidebar__close {
  border: none;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 1.2rem;
  line-height: 1;
}

.oe-nav {
  padding: 8px 10px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.oe-nav__section {
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  padding: 14px 12px 6px;
}

.oe-navlink {
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 160ms var(--oe-ease), border-color 160ms var(--oe-ease),
    color 160ms var(--oe-ease);
}

.oe-navlink:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.oe-navlink.active,
.oe-navlink.is-active {
  background: rgba(19, 182, 166, 0.14);
  border-color: rgba(19, 182, 166, 0.4);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  color: #fff;
}

.oe-ico {
  width: 22px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 1.1rem;
  margin-right: 2px;
}

.oe-ico i {
  font-size: 1.1rem;
  line-height: 1;
}

.oe-shell {
  min-height: 100vh;
  margin-left: var(--oe-sb-w);
  background: var(--oe-bg);
  transition: margin-left 200ms var(--oe-ease), transform 200ms var(--oe-ease);
  display: flex;
  flex-direction: column;
}

.oe-topbar {
  height: var(--oe-topbar-h);
  display: flex;
  align-items: center;
  padding: 0 16px;
  position: fixed;
  top: 0;
  left: var(--oe-sb-w);
  right: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--oe-border);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  gap: 8px;
}

.oe-topbar .dropdown-menu {
  z-index: 1050;
}

.oe-topbar__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-weight: 600;
  color: var(--oe-text);
  text-align: center;
  max-width: min(52vw, 420px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

.oe-topbar__search form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.oe-topbar__search .form-control,
.oe-topbar__search .btn {
  height: 36px;
}

.oe-topbar__search .form-control {
  min-width: 220px;
}


.oe-topbar__search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.oe-topbar__search-input {
  min-width: 240px;
  height: 36px;
}

.oe-iconbtn {
  border: 1px solid rgba(100, 116, 139, 0.35);
  background: rgba(255, 255, 255, 0.65);
  color: #475569;
  border-radius: 12px;
  height: 36px;
  width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
}

.oe-iconbtn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.oe-iconbtn--ghost {
  border-color: transparent;
  background: transparent;
  color: #4b5563;
  box-shadow: none;
}

.oe-userbtn {
  border: 1px solid rgba(100, 116, 139, 0.3);
  background: rgba(255, 255, 255, 0.7);
  color: #334155;
  border-radius: 999px;
  padding: 4px 12px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.oe-userbtn:hover,
.oe-userbtn:focus {
  background: rgba(255, 255, 255, 0.9);
  color: #1f2937;
}

.oe-main {
  padding: calc(var(--oe-topbar-h) + 12px) 24px 24px;
  flex: 1 1 auto;
}

.oe-main.oe-page--tabs {
  padding-top: calc(var(--oe-topbar-h) + var(--oe-tabs-gap-top));
}

.oe-main--fill {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.oe-page--tabs .page-header {
  margin-bottom: 0.25rem;
}

.oe-page--tabs .oe-page-fill {
  gap: 8px;
}

.oe-page-fill {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 12px;
}

.oe-tab-fill {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.oe-tab-fill > .tab-pane {
  display: none;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  gap: 12px;
  overflow: hidden;
}

.oe-tab-fill > .tab-pane.active,
.oe-tab-fill > .tab-pane.show {
  display: flex;
}

.oe-table-fill,
.oe-table-panel,
.table-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  border-radius: var(--oe-r);
}

.oe-page-fill > .table-responsive,
.oe-page-fill .oe-tab-fill .table-responsive {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.oe-table-fill table,
.oe-table-panel table,
.table-scroll table {
  margin-bottom: 0;
}

.oe-table-fill thead th,
.oe-table-panel thead th,
.table-scroll thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background-color: var(--oe-table-head-bg);
  color: var(--oe-table-head-text);
}

html.oe-sb-collapsed .oe-sidebar {
  width: var(--oe-sb-w-collapsed);
}

html.oe-sb-collapsed .oe-shell {
  margin-left: var(--oe-sb-w-collapsed);
}

html.oe-sb-collapsed .oe-topbar {
  left: var(--oe-sb-w-collapsed);
}

html.oe-sb-collapsed .oe-navtext,
html.oe-sb-collapsed .oe-nav__section {
  display: none;
}

html.oe-sb-collapsed .oe-navlink {
  justify-content: center;
}

html.oe-sb-collapsed .oe-ico {
  margin-right: 0;
}

html.oe-sb-collapsed .oe-brand {
  width: 56px;
  height: 56px;
  min-height: 56px;
  padding: 0;
  justify-content: center;
  border-radius: 999px;
}

html.oe-sb-collapsed .oe-brand__mark {
  width: 38px;
  height: 38px;
}

html.oe-sb-collapsed .oe-brand__mark svg {
  width: 24px;
  height: 24px;
}

html.oe-sb-collapsed .oe-brand__text {
  display: none;
}

.oe-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 998;
}

@media (max-width: 991.98px) {
  .oe-sidebar {
    transform: translateX(-100%);
    width: var(--oe-sb-w);
  }

  .oe-shell {
    margin-left: 0;
  }

  .oe-topbar {
    left: 0;
  }

  html.oe-sb-open .oe-sidebar {
    transform: translateX(0);
  }

  html.oe-sb-open .oe-shell {
    transform: translateX(var(--oe-sb-w));
  }

  html.oe-sb-open .oe-backdrop {
    display: block;
  }
}

.oe-search-page .input-group-text {
  background: #eef2f8;
  border-color: var(--oe-border);
}

.card {
  border-radius: var(--oe-r);
  border: 1px solid var(--oe-border);
  box-shadow: var(--oe-shadow-sm);
}

.card-title {
  color: var(--oe-navy);
  font-weight: 600;
}

.table {
  border-color: var(--oe-border);
  table-layout: auto;
}

.table thead th {
  background-color: var(--oe-table-head-bg);
  color: var(--oe-table-head-text);
  font-weight: 600;
  border-bottom: 1px solid #3d4248;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table tbody tr:hover {
  background-color: var(--oe-table-row-hover);
}

.table thead th .sort-trigger {
  color: var(--oe-table-head-text);
  opacity: 0.85;
}

.table thead th .sort-trigger:hover,
.table thead th .sort-trigger:focus {
  opacity: 1;
  text-decoration: none;
}

.table thead th .sort-icon {
  font-size: 0.85rem;
}

.table td,
.table th {
  vertical-align: middle;
}

.oe-cell-ellipsis {
  display: block;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oe-location-filter {
  min-width: 180px;
}

.oe-location-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.table-responsive {
  border-radius: var(--oe-r);
}

.btn-primary {
  background-color: var(--oe-navy);
  border-color: var(--oe-navy);
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: #0a2a55;
  border-color: #0a2a55;
}

.btn-success {
  background-color: var(--oe-teal);
  border-color: var(--oe-teal);
}

.btn-success:hover,
.btn-success:focus {
  background-color: #0fa496;
  border-color: #0fa496;
}

.btn-outline-primary {
  color: var(--oe-navy);
  border-color: rgba(11, 31, 59, 0.4);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background-color: var(--oe-navy);
  border-color: var(--oe-navy);
}

.btn-outline-success {
  color: var(--oe-teal);
  border-color: rgba(19, 182, 166, 0.4);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
  background-color: var(--oe-teal);
  border-color: var(--oe-teal);
  color: #fff;
}

.btn-outline-secondary {
  border-color: var(--oe-border);
  color: var(--oe-text);
}

.btn-outline-secondary:hover {
  background-color: #eef2f7;
}

.form-control,
.form-select,
.input-group-text {
  border-radius: 0.6rem;
  border-color: var(--oe-border);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--oe-teal);
  box-shadow: 0 0 0 0.2rem rgba(19, 182, 166, 0.15);
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--oe-border);
  background: #fff;
  color: var(--oe-text);
}

.chip--neutral {
  background: #eef2f7;
  border-color: #e2e8f0;
  color: #334155;
}

.chip--info {
  background: rgba(19, 182, 166, 0.16);
  border-color: rgba(19, 182, 166, 0.45);
  color: #0f766e;
}

.chip--warning {
  background: #fef3c7;
  border-color: #f59e0b;
  color: #92400e;
}

.chip--danger {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.chip--success {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534;
}

.page-header {
  margin-bottom: 0.5rem;
}

.page-subtitle {
  max-width: 42rem;
}

.page-actions .form-select,
.page-actions .form-control {
  min-width: 180px;
}

.oe-tabsbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  min-height: var(--oe-tabsbar-h);
}

.oe-tabs {
  margin-bottom: 0;
  border-bottom: none;
  gap: 6px;
}

.oe-tabs .nav-item {
  margin-bottom: 0;
}

.oe-tab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: calc(var(--oe-tabsbar-h) - var(--oe-tabs-gap-top));
  padding: 0.45rem 1rem;
  border-radius: var(--oe-r) var(--oe-r) 0 0;
  border: 1px solid transparent;
  background: var(--oe-tab-inactive-bg);
  color: var(--oe-tab-inactive-text);
  font-weight: 500;
  transition: background 160ms var(--oe-ease), color 160ms var(--oe-ease),
    box-shadow 160ms var(--oe-ease), transform 160ms var(--oe-ease);
}

.oe-tabs .nav-link.oe-tab-link {
  color: var(--oe-tab-inactive-text);
}

.oe-tabs .nav-link.oe-tab-link.active {
  color: var(--oe-tab-active-text);
}

.oe-tab-link:hover,
.oe-tab-link:focus {
  color: var(--oe-text);
  background: rgba(25, 179, 165, 0.18);
}

.oe-tab-link.active {
  background: var(--oe-tab-active-bg);
  color: var(--oe-tab-active-text);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
}

.oe-tabsbar__actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.oe-tabsbar--actions-only {
  justify-content: flex-end;
}

.alert {
  border-radius: 0.75rem;
}

@media (max-width: 768px) {
  .page-actions {
    width: 100%;
  }

  .oe-topbar__title {
    max-width: 60vw;
  }

  .oe-topbar__search .form-control {
    min-width: 160px;
  }
}

@media print {
  .oe-sidebar,
  .oe-topbar,
  .oe-backdrop {
    display: none !important;
  }

  .oe-shell {
    margin-left: 0 !important;
    transform: none !important;
  }
}

/* --- Dashboard --- */
.dash-card {
  border: 1px solid var(--oe-border);
  border-radius: var(--oe-r);
  box-shadow: var(--oe-shadow-sm);
  background: var(--oe-surface);
}

.dash-grid {
  margin-top: 1rem;
  --dash-columns: 12;
  --dash-row-height: 90px;
  --dash-gap: 16px;
  display: grid;
  grid-template-columns: repeat(var(--dash-columns), minmax(0, 1fr));
  grid-auto-rows: var(--dash-row-height);
  gap: var(--dash-gap);
}

.dash-grid .grid-stack-item {
  position: relative;
  transition: all 180ms var(--oe-ease);
}

.dash-grid .grid-stack-item-content {
  height: 100%;
}

.dash-grid .grid-stack-item-content .dash-card {
  height: 100%;
}

.dash-grid .grid-stack-item-content .card-body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.dash-grid .grid-stack-item-content .dash-chart,
.dash-grid .grid-stack-item-content .table-responsive {
  flex: 1 1 auto;
}

.dash-grid .grid-stack-item-content .oe-table-panel {
  height: 100%;
  min-height: 0;
}

.dash-grid--editable .grid-stack-item-content {
  cursor: grab;
}

.dash-grid--editable .grid-stack-item-content:active {
  cursor: grabbing;
}

.dash-resize-handle {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: rgba(63, 75, 98, 0.2);
  cursor: se-resize;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--oe-navy);
  font-size: 0.7rem;
}

.dash-resize-handle::before {
  content: "↘";
}

.dash-grid--editable .grid-stack-item {
  user-select: none;
}

.dash-card .card-body {
  padding: 1.25rem 1.35rem;
}

.dash-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.dash-title {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--oe-navy);
}

.dash-subtitle {
  font-size: 0.85rem;
}

.dash-chart {
  min-height: 180px;
}

.dash-chart--legend-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.dash-chart__canvas {
  flex: 1 1 60%;
  min-width: 160px;
}

.dash-chart--legend-right .dash-legend {
  flex: 0 0 40%;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.dash-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 0.35rem;
}

.dash-select {
  max-width: 190px;
  font-size: 0.8rem;
  border-radius: 10px;
}

.dash-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--oe-muted);
}

.dash-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.dash-legend__swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--oe-border);
  flex-shrink: 0;
}

.dash-scope {
  border: 1px solid var(--oe-border);
  color: var(--oe-navy);
}

.kpi-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.kpi-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.kpi-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--oe-muted);
  font-weight: 600;
}

.kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--oe-navy);
}

.kpi-sub {
  font-size: 0.85rem;
}

.kpi-icon {
  font-size: 1.4rem;
  color: var(--oe-teal);
  background: rgba(43, 212, 195, 0.12);
  border-radius: 10px;
  padding: 0.35rem 0.45rem;
}

.dash-table thead th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--oe-muted);
}

.dash-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.65rem;
}

.dash-action {
  border: 1px solid var(--oe-border);
  background: var(--oe-surface);
  color: var(--oe-navy);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--oe-shadow-sm);
  transition: transform 160ms var(--oe-ease), box-shadow 160ms var(--oe-ease);
}

.dash-action:hover {
  color: var(--oe-navy);
  transform: translateY(-2px);
  box-shadow: var(--oe-shadow-md);
}

@media (max-width: 991.98px) {
  .dash-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .dash-grid .grid-stack-item {
    width: 100%;
  }

  .dash-resize-handle {
    display: none;
  }

  .dash-chart--legend-right {
    flex-direction: column;
    align-items: stretch;
  }

  .dash-chart--legend-right .dash-legend {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 0.6rem;
  }
}

.consumables-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.consumable-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  border: 1px solid var(--oe-border);
  background: #fff;
  font-size: 0.95rem;
}

.consumable-name {
  font-weight: 600;
  color: var(--oe-navy);
}

.consumable-count {
  font-weight: 700;
  color: var(--oe-navy);
}

.consumable-count--warning {
  color: #b45309;
}

.consumable-row--critical {
  border-color: #fecaca;
  background: #fee2e2;
  color: #991b1b;
}

.consumable-row--critical .consumable-name,
.consumable-row--critical .consumable-count {
  color: #991b1b;
}

.consumable-alert {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #dc2626;
}

.sticky-tabs {
  position: sticky;
  top: var(--oe-topbar-h, 56px);
  z-index: 1035;
  background-color: var(--oe-bg);
  padding-top: var(--oe-tabs-gap-top);
}

.oe-main--fill .sticky-tabs {
  top: 0;
}

.table-draggable th {
  cursor: move;
}

.signature-line {
  display: block;
  width: 100%;
  border-bottom: 1px solid #000;
  height: 2.5rem;
  margin-bottom: 1.5rem;
}

.qr-print-number {
  font-size: 1.6rem;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

@media print {
  .no-print {
    display: none !important;
  }
}
