body {
  background:
    radial-gradient(circle at top left, rgba(72, 187, 120, 0.12), transparent 32rem),
    linear-gradient(180deg, #f7fbf9 0%, #f3f6fb 100%);
}

.navbar-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04);
}

.sidebar {
  box-shadow: 12px 0 32px rgba(15, 23, 42, 0.04);
  transition: transform 0.24s ease, width 0.24s ease, inset-inline-start 0.24s ease;
}

.sidebar-logo,
.sidebar-menu-area {
  border-inline-end-color: rgba(15, 23, 42, 0.08);
}

.sidebar-menu li > a.active-page,
.sidebar-menu li.dropdown.open > a,
.sidebar-menu li.dropdown.dropdown-open > a {
  box-shadow: 0 10px 22px rgba(72, 127, 255, 0.22);
}

.sidebar-menu li a {
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.sidebar-menu li a:hover {
  background-color: rgba(72, 127, 255, 0.08);
  color: var(--brand);
  transform: translateX(2px);
}

.sidebar-menu li a:hover .menu-icon,
.sidebar-menu li a:hover span {
  color: inherit;
}

.sidebar-menu li > a.active-page,
.sidebar-menu li.dropdown.open > a,
.sidebar-menu li.dropdown.dropdown-open > a {
  background-color: var(--brand);
  color: #fff !important;
}

.sidebar-menu li > a.active-page .menu-icon,
.sidebar-menu li > a.active-page span,
.sidebar-menu li.dropdown.open > a .menu-icon,
.sidebar-menu li.dropdown.open > a span,
.sidebar-menu li.dropdown.dropdown-open > a .menu-icon,
.sidebar-menu li.dropdown.dropdown-open > a span {
  color: inherit;
}

.sidebar-menu li > a.active-page:hover,
.sidebar-menu li.dropdown.open > a:hover,
.sidebar-menu li.dropdown.dropdown-open > a:hover {
  background-color: var(--brand);
  color: #fff !important;
}

.sidebar-menu .sidebar-submenu li.active-page a:hover {
  background-color: var(--button-secondary);
  color: var(--text-primary-light) !important;
}

.sidebar-toggle,
.sidebar-mobile-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--neutral-200);
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.sidebar-toggle {
  display: none;
}

.sidebar-mobile-toggle {
  display: inline-flex;
}

.sidebar-toggle:hover,
.sidebar-mobile-toggle:hover {
  color: var(--brand);
  border-color: rgba(72, 127, 255, 0.35);
}

.dashboard-main {
  transition: margin-inline-start 0.24s ease;
}

.dashboard-main-body > .card,
.dashboard-main-body .row > [class*="col-"] > .card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.055);
}

.dashboard-main-body .card {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.dashboard-main-body .card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.075);
}

.ecovet-page-header {
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.045);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ecovet-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary-light);
  font-size: 0.875rem;
  margin: 0;
}

.ecovet-breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 0.5rem;
  color: var(--neutral-400);
}

.ecovet-page-action {
  min-height: 2.25rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.4375rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.16);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.ecovet-page-action:hover {
  color: #fff;
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.2);
}

.ecovet-page-action iconify-icon {
  font-size: 1rem;
}

.ecovet-print-action {
  border: 1px solid rgba(72, 127, 255, 0.22);
  background: var(--primary-50);
  color: var(--primary-600);
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(72, 127, 255, 0.10);
}

.ecovet-print-action:hover,
.ecovet-print-action:focus {
  border-color: var(--primary-600);
  background: var(--primary-600);
  color: #fff;
}

.ecovet-print-action iconify-icon {
  font-size: 1rem;
}

.ecovet-hero {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.06);
  background:
    radial-gradient(circle at 86% 16%, rgba(34, 197, 94, 0.20), transparent 12rem),
    linear-gradient(135deg, #0f766e 0%, #2563eb 100%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(37, 99, 235, 0.18);
}

.ecovet-hero .text-secondary-light {
  color: rgba(255, 255, 255, 0.78) !important;
}

.ecovet-hero-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ecovet-quick-link {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.ecovet-quick-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
}

.ecovet-stat-card {
  position: relative;
  overflow: hidden;
}

.ecovet-stat-card::after {
  content: "";
  position: absolute;
  inset-inline-end: -2rem;
  inset-block-start: -2rem;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
}

.ecovet-navbar-search input {
  width: min(28rem, 42vw);
}

.ecovet-chart {
  min-height: 17.5rem;
}

.ecovet-chart-donut {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ecovet-user-button {
  height: 2.5rem;
  border: 1px solid var(--neutral-200);
  border-radius: 0.75rem;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.25rem 0.625rem 0.25rem 0.25rem;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.ecovet-user-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 0.625rem;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.ecovet-list-row {
  min-height: 4.5rem;
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  transition: background-color 0.18s ease;
}

.ecovet-list-row:hover {
  background-color: rgba(72, 127, 255, 0.06);
  color: inherit;
}

.ecovet-list-row:last-child {
  border-bottom: 0;
}

.table-responsive.scroll-sm {
  border-radius: 0.75rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  overflow-x: visible;
}

.dashboard-main-body .table-responsive {
  overflow-x: visible;
}

.dashboard-main-body table {
  table-layout: fixed;
  width: 100%;
}

.dashboard-main-body table th,
.dashboard-main-body table td {
  min-width: 0;
  max-width: 1px;
  overflow-wrap: anywhere;
  vertical-align: middle;
}

.dashboard-main-body table td > *,
.dashboard-main-body table th > * {
  max-width: 100%;
}

.dashboard-main-body .table-responsive.ecovet-products-table-wrap {
  overflow-x: visible;
}

.dashboard-main-body table.ecovet-products-table {
  table-layout: fixed;
  width: 100%;
}

.dashboard-main-body table.ecovet-products-table th,
.dashboard-main-body table.ecovet-products-table td {
  max-width: none;
  overflow-wrap: normal;
  padding-block: 0.875rem;
  white-space: normal;
}

.ecovet-product-row {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.ecovet-product-row__index {
  align-items: center;
  background: rgba(72, 127, 255, 0.1);
  border-radius: 6px;
  color: var(--primary-600);
  display: inline-flex;
  flex: 0 0 1.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  height: 1.75rem;
  justify-content: center;
  line-height: 1;
}

.ecovet-product-row__body {
  min-width: 0;
}

.ecovet-product-row__name {
  color: var(--text-primary-light);
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ecovet-product-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 0.625rem;
  margin-top: 0.25rem;
}

.ecovet-product-row__meta span,
.ecovet-product-row__description,
.ecovet-products-table__line,
.ecovet-products-price small {
  color: var(--text-secondary-light);
  font-size: 0.75rem;
  line-height: 1.35;
}

.ecovet-product-row__description {
  display: block;
  margin-top: 0.375rem;
  overflow-wrap: anywhere;
}

.ecovet-products-table__primary {
  color: var(--text-primary-light);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.ecovet-products-table__line {
  align-items: center;
  display: flex;
  gap: 0.25rem;
  margin-top: 0.375rem;
  min-width: 0;
}

.ecovet-products-table__line iconify-icon {
  flex: 0 0 auto;
}

.ecovet-products-badges {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.ecovet-products-price-list {
  display: grid;
  gap: 0.5rem;
}

.ecovet-products-price span {
  color: var(--text-primary-light);
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.3;
}

.ecovet-products-price small {
  display: block;
  margin-top: 0.125rem;
  overflow-wrap: anywhere;
}

.dashboard-main-body .btn,
.dashboard-main-body button,
.dashboard-main-body .dropdown-item {
  align-items: center;
}

.dashboard-main-body .btn iconify-icon,
.dashboard-main-body button iconify-icon {
  line-height: 1;
  vertical-align: middle;
}

.dashboard-main-body .card-body {
  min-width: 0;
}

.bordered-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--neutral-50);
  color: var(--text-primary-light);
  font-weight: 700;
}

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

.bordered-table tbody tr:hover {
  background-color: rgba(72, 127, 255, 0.045);
}

.dashboard-main-body .table-responsive.ecovet-audit-table-wrap {
  overflow-x: hidden;
  overflow-y: visible;
  border-radius: 0.5rem;
}

.dashboard-main-body table.ecovet-audit-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.6875rem;
  line-height: 1.2;
}

.dashboard-main-body table.ecovet-audit-table th,
.dashboard-main-body table.ecovet-audit-table td {
  max-width: none;
  padding: 0.3125rem 0.375rem;
  overflow-wrap: normal;
  vertical-align: top;
}

.dashboard-main-body table.ecovet-audit-table th {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--text-secondary-light);
}

.dashboard-main-body table.ecovet-audit-table tbody tr {
  height: 2.5rem;
}

.ecovet-audit-table__col-time {
  width: 7%;
}

.ecovet-audit-table__col-actor {
  width: 12%;
}

.ecovet-audit-table__col-action {
  width: 9%;
}

.ecovet-audit-table__col-module {
  width: 8%;
}

.ecovet-audit-table__col-entity {
  width: 9%;
}

.ecovet-audit-table__col-object {
  width: 13%;
}

.ecovet-audit-table__col-path {
  width: 12%;
}

.ecovet-audit-table__col-ip {
  width: 7%;
}

.ecovet-audit-table__col-changes {
  width: 18%;
}

.ecovet-audit-table__col-details {
  width: 5%;
}

.ecovet-audit-table__truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecovet-audit-table__mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.625rem;
}

.ecovet-audit-table__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  max-width: 100%;
  padding: 0.125rem 0.3125rem;
  border-radius: 0.25rem;
  font-size: 0.625rem;
  line-height: 1.2;
  white-space: nowrap;
}

.ecovet-audit-table__badge iconify-icon {
  flex: 0 0 auto;
  font-size: 0.75rem;
}

.ecovet-audit-table__items {
  display: grid;
  gap: 0.125rem;
  max-height: 2.75rem;
  overflow: hidden;
}

.ecovet-audit-table__item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecovet-audit-table__item iconify-icon {
  color: var(--text-secondary-light);
  margin: 0 0.125rem;
  vertical-align: -0.125rem;
}

.ecovet-audit-table__detail-trigger {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--neutral-100);
  color: var(--text-secondary-light);
  line-height: 1;
}

.ecovet-audit-table__detail-trigger:hover,
.ecovet-audit-table__detail-trigger:focus {
  background: var(--primary-100);
  color: var(--primary-600);
}

.ecovet-audit-table__detail-trigger iconify-icon {
  font-size: 0.9375rem;
}

.ecovet-audit-table__detail-trigger--inline {
  width: 1.125rem;
  height: 1.125rem;
  margin-inline-start: 0.125rem;
  vertical-align: -0.1875rem;
}

.ecovet-audit-table__detail-trigger--inline iconify-icon {
  font-size: 0.75rem;
}

.ecovet-money-table {
  font-size: 0.75rem;
}

.dashboard-main-body table.ecovet-money-table th,
.dashboard-main-body table.ecovet-money-table td {
  padding: 0.42rem 0.62rem;
}

.dashboard-main-body table.ecovet-money-table th {
  font-size: 0.6875rem;
  line-height: 1.2;
}

.ecovet-money-table .badge {
  font-size: 0.625rem;
  line-height: 1.15;
  padding: 0.16rem 0.34rem !important;
}

.ecovet-payment-progress {
  min-width: 10rem;
  font-size: 0.6875rem;
}

.ecovet-payment-bar {
  height: 0.28rem;
  margin: 0.14rem 0;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.16);
  overflow: hidden;
}

.ecovet-payment-bar .progress-bar {
  height: 100%;
}

.ecovet-payment-bar .progress-bar:first-child {
  border-radius: 999px 0 0 999px;
}

.ecovet-payment-bar .progress-bar:last-child {
  border-radius: 0 999px 999px 0;
}

.ecovet-money-table .ecovet-payment-progress .mb-6 {
  margin-bottom: 0.2rem !important;
}

.ecovet-money-table .ecovet-payment-progress .mt-6 {
  margin-top: 0.2rem !important;
}

.ecovet-money-table .ecovet-payment-progress .gap-2 {
  gap: 0.35rem !important;
}

.ecovet-payment-compact-line {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr) 2.35rem;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  line-height: 1.18;
}

.ecovet-payment-compact-line--muted {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 0.16rem;
}

.ecovet-payment-main,
.ecovet-payment-paid,
.ecovet-payment-percent,
.ecovet-payment-compact-line--muted > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecovet-payment-main {
  color: var(--text-primary-light);
  font-weight: 700;
}

.ecovet-payment-paid,
.ecovet-payment-percent {
  text-align: end;
}

.ecovet-payment-percent {
  color: var(--text-secondary-light);
}

.ecovet-payment-compact-line--muted .badge {
  max-width: 7rem;
}

.dashboard-main-body .table-responsive.ecovet-orders-table-wrap {
  overflow-x: auto;
}

.dashboard-main-body table.ecovet-orders-table {
  table-layout: fixed;
  width: 100%;
}

.dashboard-main-body table.ecovet-orders-table th,
.dashboard-main-body table.ecovet-orders-table td {
  max-width: none;
  overflow-wrap: normal;
}

.ecovet-orders-table__order-number,
.ecovet-orders-table__primary,
.ecovet-orders-table__meta,
.ecovet-orders-table__truncate,
.ecovet-orders-table__money,
.ecovet-orders-table__payment-value,
.ecovet-orders-table__badge {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecovet-orders-table__order-number,
.ecovet-orders-table__primary,
.ecovet-orders-table__meta,
.ecovet-orders-table__truncate,
.ecovet-orders-table__money {
  display: block;
}

.ecovet-orders-table__order-number {
  font-size: 0.75rem;
  line-height: 1.25;
}

.ecovet-orders-table__badge {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.ecovet-orders-table .ecovet-payment-progress {
  min-width: 0;
  width: 100%;
}

.ecovet-orders-table__payment-line {
  min-width: 0;
}

.ecovet-orders-table__payment-line > span:not(.ecovet-orders-table__payment-value) {
  flex: 0 0 auto;
}

.ecovet-orders-table__payment-value {
  display: block;
  flex: 1 1 auto;
}

@media (min-width: 768px) {
  .dashboard-main-body table.ecovet-orders-table {
    min-width: 0;
  }

  .ecovet-orders-table__col-order {
    width: 12%;
  }

  .ecovet-orders-table__col-customer {
    width: 22%;
  }

  .ecovet-orders-table__col-warehouse {
    width: 16%;
  }

  .ecovet-orders-table__col-payment {
    width: 28%;
  }

  .ecovet-orders-table__col-state {
    width: 14%;
  }

  .ecovet-orders-table__col-actions {
    width: 8%;
  }
}

.dashboard-main-body .table-responsive.ecovet-incoming-table-wrap {
  overflow-x: auto;
}

.dashboard-main-body table.ecovet-incoming-table {
  table-layout: fixed;
  width: 100%;
}

.dashboard-main-body table.ecovet-incoming-table th,
.dashboard-main-body table.ecovet-incoming-table td {
  max-width: none;
  overflow-wrap: normal;
}

.ecovet-incoming-table__receipt-number,
.ecovet-incoming-table__primary,
.ecovet-incoming-table__meta,
.ecovet-incoming-table__truncate,
.ecovet-incoming-table__money,
.ecovet-incoming-table__payment-value,
.ecovet-incoming-table__badge {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecovet-incoming-table__receipt-number,
.ecovet-incoming-table__primary,
.ecovet-incoming-table__meta,
.ecovet-incoming-table__truncate,
.ecovet-incoming-table__money {
  display: block;
}

.ecovet-incoming-table__receipt-number {
  font-size: 0.75rem;
  line-height: 1.25;
}

.ecovet-incoming-table__badge {
  display: inline-block;
  max-width: 100%;
  vertical-align: middle;
}

.ecovet-incoming-table .ecovet-payment-progress {
  min-width: 0;
  width: 100%;
}

.ecovet-incoming-table__payment-line {
  min-width: 0;
}

.ecovet-incoming-table__payment-line > span:not(.ecovet-incoming-table__payment-value) {
  flex: 0 0 auto;
}

.ecovet-incoming-table__payment-value {
  display: block;
  flex: 1 1 auto;
}

@media (min-width: 768px) {
  .dashboard-main-body table.ecovet-incoming-table {
    min-width: 0;
  }

  .ecovet-incoming-table__col-receipt {
    width: 12%;
  }

  .ecovet-incoming-table__col-counterparty {
    width: 22%;
  }

  .ecovet-incoming-table__col-warehouse {
    width: 16%;
  }

  .ecovet-incoming-table__col-payment {
    width: 28%;
  }

  .ecovet-incoming-table__col-state {
    width: 14%;
  }

  .ecovet-incoming-table__col-actions {
    width: 8%;
  }
}

.form-control,
.form-select,
textarea {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}

.form-control,
.form-select {
  min-height: 2.5rem;
}

.dashboard-main-body .form-select {
  padding-left: 0.875rem;
  padding-right: 2.75rem;
  background-position: right 0.875rem center;
  background-size: 1rem 0.75rem;
}

.dashboard-main-body .form-control {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
}

.form-control:focus,
.form-select:focus,
textarea:focus {
  box-shadow: 0 0 0 4px rgba(72, 127, 255, 0.1);
}

.modal-content {
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
}

.dashboard-main-body form.row,
.dashboard-main-body .card-body > form.d-flex,
.dashboard-main-body .ecovet-filter-form {
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(248, 250, 252, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.ecovet-management-card {
  overflow: hidden;
}

.ecovet-form-shell {
  width: min(100%, 72rem);
  margin-inline: auto;
}

.ecovet-form-shell--narrow {
  width: min(100%, 52rem);
}

.ecovet-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.ecovet-form-section {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 0.75rem;
  background: rgba(248, 250, 252, 0.72);
  padding: 1.25rem;
}

.ecovet-form-section--compact {
  padding: 1rem;
}

.ecovet-form-section__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.ecovet-section-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.25rem;
}

.ecovet-switch-tile {
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.5rem;
  background: #ffffff;
  display: flex;
  align-items: center;
  padding: 0.625rem 0.75rem;
}

.ecovet-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.75rem;
}

.ecovet-choice-grid--single {
  grid-template-columns: 1fr;
}

.ecovet-choice-grid--dense {
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
}

.ecovet-choice-grid--scroll {
  max-height: 20rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.ecovet-choice-card {
  min-width: 0;
  min-height: 3.25rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 0.5rem;
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem;
  margin: 0;
  cursor: pointer;
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.ecovet-choice-card:hover {
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.035);
}

.ecovet-choice-card:has(.form-check-input:checked) {
  border-color: rgba(37, 99, 235, 0.52);
  background: rgba(37, 99, 235, 0.075);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.ecovet-choice-card .form-check-input {
  margin-top: 0.1875rem;
  flex-shrink: 0;
}

.ecovet-choice-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  line-height: 1.25;
}

.ecovet-empty-state {
  grid-column: 1 / -1;
  min-height: 3.25rem;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 0.5rem;
  color: var(--text-secondary-light);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.875rem;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.56);
}

.ecovet-form-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.25rem -1.5rem -1.5rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), #ffffff 45%);
  backdrop-filter: blur(10px);
}

.ecovet-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.ecovet-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  align-items: end;
  gap: 0.875rem;
}

.ecovet-filter-form--dense {
  grid-template-columns: repeat(auto-fit, minmax(7.75rem, 1fr));
}

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

.ecovet-filter-field--wide {
  grid-column: span 2;
}

.ecovet-filter-field--small {
  min-width: 8.75rem;
}

.ecovet-filter-field--mini {
  min-width: 7.75rem;
}

.ecovet-filter-field--compact {
  min-width: 5.75rem;
}

.ecovet-filter-form .form-label {
  white-space: nowrap;
}

.ecovet-filter-form .form-control,
.ecovet-filter-form .form-select {
  min-height: 2.5rem;
}

.ecovet-filter-actions {
  min-width: max-content;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0.5rem;
}

.ecovet-filter-actions .btn,
.ecovet-filter-icon-btn {
  width: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  padding-inline: 0;
}

.ecovet-money-table tfoot th {
  background: rgba(248, 250, 252, 0.82);
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ecovet-table-total-strip {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.6875rem;
  line-height: 1.25;
}

.ecovet-table-total-title {
  color: var(--text-secondary-light);
  font-weight: 700;
  text-transform: uppercase;
}

.ecovet-table-total-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.analytics-chart {
  min-height: 17.5rem;
}

[data-theme=dark] .ecovet-money-table tfoot th {
  background: rgba(15, 23, 42, 0.72);
  border-top-color: rgba(148, 163, 184, 0.16);
}

.ecovet-card-stack > .card:last-child {
  margin-bottom: 0 !important;
}

.ecovet-stats-row > [class*="col-"] > .card {
  min-height: 6.75rem;
}

.ecovet-permission-layout .permission-module-btn {
  min-height: 2.5rem;
  text-align: left;
}

.ecovet-permission-layout .permission-panel-wrapper {
  max-height: 34rem;
  overflow: auto;
  padding-right: 0.25rem;
}

.ecovet-permission-layout .permission-row label {
  min-height: 4.25rem;
}

.ecovet-filter-chip {
  height: 2rem;
  border-radius: 999px;
  background: rgba(72, 127, 255, 0.1);
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0 0.75rem;
  font-weight: 600;
  font-size: 0.8125rem;
}

.ecovet-upload-dropzone {
  position: relative;
  min-height: 11rem;
  border: 1.5px dashed rgba(37, 99, 235, 0.28);
  border-radius: 1rem;
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.12), transparent 8rem),
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(241, 245, 249, 0.82));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.ecovet-upload-dropzone:hover {
  border-color: rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.1);
}

.ecovet-upload-dropzone.has-files {
  border-color: rgba(22, 163, 74, 0.58);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 8rem),
    linear-gradient(180deg, rgba(240, 253, 244, 0.95), rgba(248, 250, 252, 0.86));
}

.ecovet-upload-dropzone.is-uploading {
  border-color: rgba(37, 99, 235, 0.72);
  cursor: wait;
}

.ecovet-upload-dropzone input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ecovet-upload-icon {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #2563eb 0%, #0f766e 100%);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 0.875rem;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

.ecovet-upload-dropzone.has-files .ecovet-upload-icon {
  background: linear-gradient(135deg, #16a34a 0%, #0f766e 100%);
}

.ecovet-file-upload-status {
  display: none;
  width: 100%;
  margin-top: 0.875rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: left;
}

.ecovet-file-upload-status.has-files {
  display: block;
}

.ecovet-file-upload-status__title {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-primary-light);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.ecovet-file-upload-status__list {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ecovet-file-upload-status__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--text-secondary-light);
  font-size: 0.75rem;
}

.ecovet-file-upload-status__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecovet-file-upload-status__size {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.ecovet-upload-progress {
  display: none;
  position: relative;
  height: 0.375rem;
  overflow: hidden;
  margin-top: 0.625rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
}

.ecovet-file-upload-status.is-uploading .ecovet-upload-progress {
  display: block;
}

.ecovet-upload-progress__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -42%;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #0f766e);
  animation: ecovet-upload-progress 1.05s ease-in-out infinite;
}

.ecovet-upload-submit-spinner {
  animation: ecovet-upload-spin 0.75s linear infinite;
}

@keyframes ecovet-upload-progress {
  from {
    left: -42%;
  }
  to {
    left: 100%;
  }
}

@keyframes ecovet-upload-spin {
  to {
    transform: rotate(360deg);
  }
}

.ecovet-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
  gap: 0.75rem;
}

.ecovet-image-thumb,
.ecovet-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 0.875rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: var(--white);
}

.ecovet-image-thumb {
  aspect-ratio: 1;
}

.ecovet-image-thumb img,
.ecovet-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.ecovet-image-thumb:hover img,
.ecovet-gallery-item:hover img {
  transform: scale(1.04);
}

.ecovet-image-delete,
.ecovet-gallery-action {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
}

.ecovet-image-delete-btn {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: background-color 0.16s ease, transform 0.16s ease;
}

.ecovet-image-delete-btn:hover {
  background: #dc2626;
  transform: scale(1.04);
}

.ecovet-product-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: 0.875rem;
}

.ecovet-gallery-item {
  aspect-ratio: 4 / 3;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.07);
}

.dashboard-main-body .position-relative > iconify-icon[icon="ri:search-line"] {
  left: 0.875rem;
  margin-left: 0 !important;
  pointer-events: none;
  z-index: 2;
}

.dashboard-main-body .position-relative > input[name="q"],
.dashboard-main-body .position-relative > input[type="search"] {
  padding-left: 2.75rem !important;
}

.dashboard-main-body .position-relative > .form-control.ps-40,
.dashboard-main-body .position-relative > .form-control[style*="padding-left"] {
  padding-left: 2.75rem !important;
}

.dashboard-main-body .position-relative > input[name="q"]::placeholder,
.dashboard-main-body .position-relative > input[type="search"]::placeholder {
  color: var(--neutral-500);
}

[data-theme=dark] body {
  background:
    radial-gradient(circle at top left, rgba(20, 184, 166, 0.16), transparent 34rem),
    linear-gradient(180deg, #0f172a 0%, #111827 48%, #0b1120 100%);
  color: var(--text-primary-light);
}

[data-theme=dark] .navbar-header {
  background-color: #111827;
  border-bottom-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

[data-theme=dark] .sidebar {
  background-color: #111827;
  box-shadow: 12px 0 32px rgba(0, 0, 0, 0.28);
}

[data-theme=dark] .sidebar-logo,
[data-theme=dark] .sidebar-menu-area {
  border-inline-end-color: rgba(148, 163, 184, 0.16);
}

[data-theme=dark] .sidebar-menu li a:hover {
  background-color: rgba(96, 165, 250, 0.14);
  color: #bfdbfe;
}

[data-theme=dark] .sidebar-menu li > a.active-page,
[data-theme=dark] .sidebar-menu li.dropdown.open > a,
[data-theme=dark] .sidebar-menu li.dropdown.dropdown-open > a {
  background-color: #2563eb;
  color: #ffffff !important;
}

[data-theme=dark] .sidebar-menu li > a.active-page:hover,
[data-theme=dark] .sidebar-menu li.dropdown.open > a:hover,
[data-theme=dark] .sidebar-menu li.dropdown.dropdown-open > a:hover {
  background-color: #2563eb;
  color: #ffffff !important;
}

[data-theme=dark] .sidebar-menu .sidebar-submenu li.active-page a {
  background-color: rgba(96, 165, 250, 0.18);
  color: #f8fafc !important;
}

[data-theme=dark] .sidebar-menu .sidebar-submenu li.active-page a:hover {
  background-color: rgba(96, 165, 250, 0.24);
  color: #ffffff !important;
}

[data-theme=dark] .sidebar-menu li > a.active-page,
[data-theme=dark] .sidebar-menu li.dropdown.open > a,
[data-theme=dark] .sidebar-menu li.dropdown.dropdown-open > a {
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.28);
}

[data-theme=dark] .sidebar-toggle,
[data-theme=dark] .sidebar-mobile-toggle {
  background: #1f2937;
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

[data-theme=dark] .ecovet-user-button {
  background: #1f2937;
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.26);
}

[data-theme=dark] .dashboard-main-body > .card,
[data-theme=dark] .dashboard-main-body .row > [class*="col-"] > .card {
  background-color: #111827;
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

[data-theme=dark] .dashboard-main-body .card:hover {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.32);
}

[data-theme=dark] .ecovet-page-header {
  background: rgba(17, 24, 39, 0.84);
  border-color: rgba(148, 163, 184, 0.14);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.24);
}

[data-theme=dark] .ecovet-page-action {
  border-color: rgba(147, 197, 253, 0.24);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

[data-theme=dark] .ecovet-print-action {
  border-color: rgba(120, 157, 255, 0.32);
  background: rgba(72, 127, 255, 0.14);
  color: #dbe6ff;
  box-shadow: none;
}

[data-theme=dark] .ecovet-print-action:hover,
[data-theme=dark] .ecovet-print-action:focus {
  border-color: var(--primary-600);
  background: var(--primary-600);
  color: #fff;
}

[data-theme=dark] .ecovet-hero {
  border-color: rgba(125, 211, 252, 0.22);
  background:
    radial-gradient(circle at 86% 16%, rgba(34, 197, 94, 0.18), transparent 12rem),
    linear-gradient(135deg, #134e4a 0%, #1e3a8a 100%);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

[data-theme=dark] .ecovet-quick-link {
  border-color: rgba(226, 232, 240, 0.24);
  background: rgba(15, 23, 42, 0.24);
}

[data-theme=dark] .ecovet-quick-link:hover {
  background: rgba(226, 232, 240, 0.14);
}

[data-theme=dark] .ecovet-stat-card {
  background: linear-gradient(135deg, #162033 0%, #1f2937 100%) !important;
}

[data-theme=dark] .ecovet-stat-card::after {
  background: rgba(96, 165, 250, 0.12);
}

[data-theme=dark] .ecovet-stat-card h5,
[data-theme=dark] .ecovet-stat-card h6,
[data-theme=dark] .ecovet-stat-card .fw-semibold {
  color: #f8fafc;
}

[data-theme=dark] .ecovet-list-row {
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

[data-theme=dark] .ecovet-list-row:hover {
  background-color: rgba(96, 165, 250, 0.1);
}

[data-theme=dark] .table,
[data-theme=dark] .bordered-table {
  --bs-table-bg: #111827;
  --bs-table-color: #f8fafc;
  --bs-table-border-color: rgba(148, 163, 184, 0.18);
  --bs-table-striped-bg: rgba(148, 163, 184, 0.06);
  --bs-table-hover-bg: rgba(96, 165, 250, 0.08);
  color: var(--text-primary-light);
  background-color: #111827;
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme=dark] .table-responsive.scroll-sm {
  border-color: rgba(148, 163, 184, 0.12);
}

[data-theme=dark] .basic-table tbody th,
[data-theme=dark] .basic-table tbody td,
[data-theme=dark] .basic-border-table tbody th,
[data-theme=dark] .basic-border-table tbody td,
[data-theme=dark] .striped-table tbody th,
[data-theme=dark] .striped-table tbody td,
[data-theme=dark] .vertical-striped-table tbody th,
[data-theme=dark] .vertical-striped-table tbody td,
[data-theme=dark] .border-primary-table tbody th,
[data-theme=dark] .border-primary-table tbody td,
[data-theme=dark] .colored-row-table tbody th,
[data-theme=dark] .colored-row-table tbody td {
  background-color: #111827 !important;
  border-color: rgba(148, 163, 184, 0.16) !important;
}

[data-theme=dark] .basic-table thead th,
[data-theme=dark] .basic-border-table thead th,
[data-theme=dark] .striped-table thead th,
[data-theme=dark] .vertical-striped-table thead th,
[data-theme=dark] .border-primary-table thead th,
[data-theme=dark] .colored-row-table thead th,
[data-theme=dark] .basic-table tfoot th,
[data-theme=dark] .basic-table tfoot td,
[data-theme=dark] .basic-border-table tfoot th,
[data-theme=dark] .basic-border-table tfoot td,
[data-theme=dark] .striped-table tfoot th,
[data-theme=dark] .striped-table tfoot td,
[data-theme=dark] .vertical-striped-table tfoot th,
[data-theme=dark] .vertical-striped-table tfoot td,
[data-theme=dark] .border-primary-table tfoot th,
[data-theme=dark] .border-primary-table tfoot td,
[data-theme=dark] .colored-row-table tfoot th,
[data-theme=dark] .colored-row-table tfoot td {
  background-color: #1f2937 !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

[data-theme=dark] .bordered-table thead th,
[data-theme=dark] .bordered-table tfoot th,
[data-theme=dark] .bordered-table tfoot td {
  background: #1f2937 !important;
  background-color: #1f2937 !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

[data-theme=dark] .bordered-table tbody th,
[data-theme=dark] .bordered-table tbody td {
  background: #111827 !important;
  background-color: #111827 !important;
  border-color: rgba(148, 163, 184, 0.14) !important;
}

[data-theme=dark] .bordered-table tbody tr:nth-child(even) th,
[data-theme=dark] .bordered-table tbody tr:nth-child(even) td {
  background: #152033 !important;
  background-color: #152033 !important;
}

[data-theme=dark] .bordered-table tbody tr:hover,
[data-theme=dark] .bordered-table tbody tr:hover th,
[data-theme=dark] .bordered-table tbody tr:hover td {
  background-color: rgba(96, 165, 250, 0.1) !important;
}

[data-theme=dark] .bordered-table .text-secondary-light {
  color: #cbd5e1 !important;
}

[data-theme=dark] .bordered-table .text-primary-light {
  color: #f8fafc;
}

[data-theme=dark] .form-control:focus,
[data-theme=dark] .form-select:focus,
[data-theme=dark] textarea:focus {
  box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.16);
}

[data-theme=dark] .modal-content {
  background-color: #111827;
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.42);
}

[data-theme=dark] .dropdown-menu {
  background-color: #111827;
  border-color: rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.36);
}

[data-theme=dark] .dropdown-item {
  color: #e5e7eb;
}

[data-theme=dark] .dropdown-item iconify-icon {
  color: #93c5fd;
}

[data-theme=dark] .dropdown-item:hover {
  background-color: rgba(96, 165, 250, 0.12);
  color: #ffffff;
}

[data-theme=dark] .dropdown-item:focus,
[data-theme=dark] .dropdown-item:active {
  background-color: rgba(96, 165, 250, 0.18);
  color: #ffffff;
}

[data-theme=dark] .dropdown-menu .text-primary-light {
  color: #f8fafc !important;
}

[data-theme=dark] .dropdown-menu .text-secondary-light {
  color: #cbd5e1 !important;
}

[data-theme=dark] .dashboard-main-body form.row,
[data-theme=dark] .dashboard-main-body .card-body > form.d-flex,
[data-theme=dark] .dashboard-main-body .ecovet-filter-form {
  background: rgba(31, 41, 55, 0.72);
  border-color: rgba(148, 163, 184, 0.12);
}

[data-theme=dark] .ecovet-form-section {
  background: rgba(31, 41, 55, 0.66);
  border-color: rgba(148, 163, 184, 0.14);
}

[data-theme=dark] .ecovet-switch-tile,
[data-theme=dark] .ecovet-choice-card {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.16);
}

[data-theme=dark] .ecovet-choice-card:hover {
  background: rgba(96, 165, 250, 0.1);
  border-color: rgba(147, 197, 253, 0.34);
}

[data-theme=dark] .ecovet-choice-card:has(.form-check-input:checked) {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(147, 197, 253, 0.46);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

[data-theme=dark] .ecovet-empty-state {
  background: rgba(17, 24, 39, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme=dark] .ecovet-form-actions {
  border-top-color: rgba(148, 163, 184, 0.14);
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.82), #111827 45%);
}

[data-theme=dark] .ecovet-filter-chip {
  background: rgba(96, 165, 250, 0.16);
  color: #bfdbfe;
}

[data-theme=dark] .ecovet-upload-dropzone {
  border-color: rgba(96, 165, 250, 0.28);
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.14), transparent 8rem),
    linear-gradient(180deg, rgba(31, 41, 55, 0.92), rgba(17, 24, 39, 0.86));
}

[data-theme=dark] .ecovet-upload-dropzone:hover {
  border-color: rgba(147, 197, 253, 0.5);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

[data-theme=dark] .ecovet-image-thumb,
[data-theme=dark] .ecovet-gallery-item {
  border-color: rgba(148, 163, 184, 0.14);
  background: #111827;
}

[data-theme=dark] .ecovet-gallery-item {
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

[data-theme=dark] .dashboard-main-body .position-relative > input[name="q"]::placeholder,
[data-theme=dark] .dashboard-main-body .position-relative > input[type="search"]::placeholder {
  color: #94a3b8;
}

.ecovet-status-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.ecovet-status-flow--stack {
  grid-template-columns: 1fr;
}

.ecovet-status-step {
  min-width: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
  padding: 0.75rem;
}

.ecovet-status-step__icon {
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.ecovet-status-step__label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ecovet-status-step__hint {
  display: block;
  margin-top: 0.125rem;
  font-size: 0.75rem;
  color: #6b7280;
}

.ecovet-status-step.is-done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.ecovet-status-step.is-done .ecovet-status-step__icon {
  background: #22c55e;
  color: #ffffff;
}

.ecovet-status-step.is-current {
  border-color: #93c5fd;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.ecovet-status-step.is-current .ecovet-status-step__icon {
  background: #2563eb;
  color: #ffffff;
}

.ecovet-status-step.is-muted {
  opacity: 0.72;
}

.ecovet-status-step.is-cancelled {
  border-color: #fecaca;
  background: #fef2f2;
}

.ecovet-status-step.is-cancelled .ecovet-status-step__icon {
  background: #dc2626;
  color: #ffffff;
}

.ecovet-detail-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
}

.ecovet-detail-summary--six {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ecovet-detail-summary__item {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 8px;
  background: #f8fafc;
  padding: 0.75rem 0.875rem;
}

.ecovet-detail-summary__item span {
  display: block;
  color: var(--text-secondary-light);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.ecovet-detail-summary__item strong {
  display: block;
  color: var(--text-primary-light);
  font-size: 0.875rem;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ecovet-detail-summary__item strong.text-success-main {
  color: var(--success-main);
}

.ecovet-detail-summary__item strong.text-warning-main {
  color: var(--warning-main);
}

.ecovet-detail-summary__item strong.text-primary-600 {
  color: var(--primary-600);
}

.ecovet-status-strip {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.ecovet-status-strip--fit {
  overflow: visible;
}

.ecovet-status-flow--compact {
  grid-template-columns: repeat(4, minmax(7rem, 1fr));
  min-width: 34rem;
  gap: 0.375rem;
}

.ecovet-status-flow--compact .ecovet-status-step {
  padding: 0.625rem;
}

.ecovet-status-flow--compact .ecovet-status-step__icon {
  width: 1.625rem;
  height: 1.625rem;
  font-size: 0.875rem;
  margin-bottom: 0.375rem;
}

.ecovet-status-flow--compact .ecovet-status-step__label {
  font-size: 0.75rem;
}

.ecovet-status-flow--compact .ecovet-status-step__hint {
  font-size: 0.6875rem;
}

.ecovet-status-flow--order {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-width: 0;
  gap: 0.25rem;
}

.ecovet-status-flow--order .ecovet-status-step {
  padding: 0.5rem 0.25rem;
  text-align: center;
}

.ecovet-status-flow--order .ecovet-status-step__icon {
  width: 1.375rem;
  height: 1.375rem;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.ecovet-status-flow--order .ecovet-status-step__label {
  font-size: 0.6875rem;
}

.ecovet-status-flow--order .ecovet-status-step__hint {
  font-size: 0.625rem;
}

.ecovet-status-flow--receipt {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  min-width: 0;
  gap: 0.375rem;
}

.ecovet-status-flow--receipt .ecovet-status-step {
  padding: 0.5rem 0.375rem;
  text-align: center;
}

.ecovet-status-flow--receipt .ecovet-status-step__icon {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.ecovet-status-flow--receipt .ecovet-status-step__label {
  font-size: 0.75rem;
}

.ecovet-status-flow--receipt .ecovet-status-step__hint {
  font-size: 0.65625rem;
}

.ecovet-status-flow--product,
.ecovet-status-flow--receipt-detail {
  min-width: 0;
  gap: 0.375rem;
}

.ecovet-status-flow--product {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ecovet-status-flow--receipt-detail {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ecovet-status-flow--product .ecovet-status-step,
.ecovet-status-flow--receipt-detail .ecovet-status-step {
  padding: 0.5rem 0.375rem;
  text-align: center;
}

.ecovet-status-flow--product .ecovet-status-step__icon,
.ecovet-status-flow--receipt-detail .ecovet-status-step__icon {
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.8125rem;
  margin-bottom: 0.25rem;
}

.ecovet-status-flow--product .ecovet-status-step__label,
.ecovet-status-flow--receipt-detail .ecovet-status-step__label {
  font-size: 0.75rem;
}

.ecovet-status-flow--product .ecovet-status-step__hint,
.ecovet-status-flow--receipt-detail .ecovet-status-step__hint {
  font-size: 0.65625rem;
}

[data-theme=dark] .ecovet-status-step {
  background: #111827;
  border-color: rgba(148, 163, 184, 0.18);
}

[data-theme=dark] .ecovet-status-step__label {
  color: #f8fafc;
}

[data-theme=dark] .ecovet-status-step__hint {
  color: #cbd5e1;
}

[data-theme=dark] .ecovet-status-step__icon {
  background: rgba(148, 163, 184, 0.18);
}

[data-theme=dark] .ecovet-status-step.is-done {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

[data-theme=dark] .ecovet-status-step.is-current {
  background: rgba(37, 99, 235, 0.16);
  border-color: rgba(147, 197, 253, 0.38);
}

[data-theme=dark] .ecovet-status-step.is-cancelled {
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(248, 113, 113, 0.36);
}

[data-theme=dark] .ecovet-detail-summary__item {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.16);
}

@media (min-width: 1200px) {
  .sidebar-toggle {
    display: inline-flex;
  }

  .sidebar-mobile-toggle {
    display: none;
  }

  body.sidebar-collapsed .sidebar {
    transform: translateX(-105%);
    pointer-events: none;
  }

  body.sidebar-collapsed .dashboard-main {
    margin-inline-start: 0 !important;
  }
}

@media (max-width: 1199.98px) {
  body.sidebar-collapsed .sidebar {
    transform: none;
  }

  .ecovet-detail-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .ecovet-page-header {
    align-items: stretch;
  }

  .ecovet-page-header > div {
    width: 100%;
  }

  .ecovet-form-section,
  .ecovet-form-section--compact {
    padding: 1rem;
  }

  .ecovet-form-section__header,
  .ecovet-table-toolbar {
    align-items: stretch;
  }

  .ecovet-form-section__header > div,
  .ecovet-table-toolbar > div {
    min-width: 0;
  }

  .ecovet-choice-grid,
  .ecovet-choice-grid--dense {
    grid-template-columns: 1fr;
  }

  .ecovet-form-actions {
    position: static;
    margin: 0.25rem 0 0;
    padding: 1rem 0 0;
    background: transparent;
    backdrop-filter: none;
  }

  .ecovet-form-actions > * {
    flex: 1 1 100%;
    justify-content: center;
  }

  .ecovet-table-toolbar > .btn,
  .ecovet-table-toolbar > button,
  .ecovet-table-toolbar > a {
    width: 100%;
    justify-content: center;
  }

  .ecovet-navbar-search {
    display: none !important;
  }

  .ecovet-list-row {
    padding-inline: 1rem;
  }

  .ecovet-status-flow {
    grid-template-columns: 1fr;
  }

  .ecovet-status-flow.ecovet-status-flow--compact {
    grid-template-columns: repeat(4, minmax(7rem, 1fr));
  }

  .ecovet-status-flow.ecovet-status-flow--order {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ecovet-status-flow.ecovet-status-flow--receipt {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ecovet-status-flow.ecovet-status-flow--product {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ecovet-status-flow.ecovet-status-flow--receipt-detail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ecovet-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-main-body .table-responsive,
  .dashboard-main-body .table-responsive.scroll-sm {
    border: 0;
    overflow: visible;
  }

  .dashboard-main-body table.ecovet-stack-table,
  .dashboard-main-body table.bordered-table {
    border-collapse: separate;
    border-spacing: 0 0.75rem;
  }

  .dashboard-main-body table.ecovet-stack-table thead,
  .dashboard-main-body table.bordered-table thead {
    display: none;
  }

  .dashboard-main-body table.ecovet-stack-table,
  .dashboard-main-body table.ecovet-stack-table tbody,
  .dashboard-main-body table.ecovet-stack-table tr,
  .dashboard-main-body table.ecovet-stack-table td,
  .dashboard-main-body table.bordered-table,
  .dashboard-main-body table.bordered-table tbody,
  .dashboard-main-body table.bordered-table tr,
  .dashboard-main-body table.bordered-table td {
    display: block;
    width: 100%;
    max-width: none;
  }

  .dashboard-main-body table.ecovet-stack-table tr,
  .dashboard-main-body table.bordered-table tr {
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.5rem;
    background: var(--white);
    overflow: hidden;
  }

  .dashboard-main-body table.ecovet-stack-table td,
  .dashboard-main-body table.bordered-table td {
    display: grid;
    grid-template-columns: minmax(6.5rem, 34%) minmax(0, 1fr);
    gap: 0.75rem;
    border: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    text-align: start !important;
    white-space: normal !important;
    padding: 0.75rem 1rem;
  }

  .dashboard-main-body table.ecovet-stack-table td:last-child,
  .dashboard-main-body table.bordered-table td:last-child {
    border-bottom: 0;
  }

  .dashboard-main-body table.ecovet-stack-table td::before,
  .dashboard-main-body table.bordered-table td::before {
    content: attr(data-label);
    color: var(--text-secondary-light);
    font-size: 0.75rem;
    font-weight: 700;
  }

  .dashboard-main-body .table-responsive.ecovet-audit-table-wrap {
    border: 1px solid rgba(15, 23, 42, 0.06);
    overflow-x: hidden;
  }

  .dashboard-main-body table.ecovet-audit-table {
    display: table;
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    font-size: 0.625rem;
  }

  .dashboard-main-body table.ecovet-audit-table th,
  .dashboard-main-body table.ecovet-audit-table td {
    display: table-cell;
    width: auto;
    max-width: none;
    border: 1px solid var(--neutral-200);
    padding: 0.25rem 0.25rem;
  }

  .dashboard-main-body table.ecovet-audit-table th {
    font-size: 0.5625rem;
  }

  .dashboard-main-body table.ecovet-audit-table thead {
    display: table-header-group;
  }

  .dashboard-main-body table.ecovet-audit-table tbody {
    display: table-row-group;
  }

  .dashboard-main-body table.ecovet-audit-table tr {
    display: table-row;
    border: 0;
    border-radius: 0;
    background: transparent;
    overflow: visible;
  }

  .dashboard-main-body table.ecovet-audit-table td::before {
    content: none;
  }
}

@media (max-width: 575.98px) {
  .ecovet-detail-summary {
    grid-template-columns: 1fr;
  }

  .ecovet-filter-form,
  .ecovet-filter-form--dense {
    grid-template-columns: 1fr;
  }

  .ecovet-filter-field--wide {
    grid-column: auto;
  }

  .ecovet-filter-actions .btn {
    flex: 1 1 8rem;
    justify-content: center;
  }
}

.dashboard-main-body .table-responsive.ecovet-editor-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
}

.dashboard-main-body table.ecovet-editor-table {
  min-width: 840px;
  table-layout: auto;
  border-collapse: separate;
  border-spacing: 0;
}

.dashboard-main-body table.ecovet-editor-table thead {
  display: table-header-group;
}

.dashboard-main-body table.ecovet-editor-table tbody {
  display: table-row-group;
}

.dashboard-main-body table.ecovet-editor-table tr {
  display: table-row;
  width: auto;
  max-width: none;
}

.dashboard-main-body table.ecovet-editor-table th,
.dashboard-main-body table.ecovet-editor-table td {
  display: table-cell;
  width: auto;
  max-width: none;
  overflow-wrap: normal;
  white-space: nowrap;
}

.dashboard-main-body table.ecovet-editor-table td {
  position: relative;
  overflow: visible;
}

.dashboard-main-body table.ecovet-editor-table td:focus-within {
  z-index: 120;
}

.dashboard-main-body table.ecovet-editor-table td::before {
  content: none;
}

.dashboard-main-body table.ecovet-editor-table .product-select {
  min-width: 220px;
}

.dashboard-main-body table.ecovet-editor-table .product-picker {
  position: relative;
  z-index: 1;
  min-width: 220px;
}

.dashboard-main-body table.ecovet-editor-table .product-picker:focus-within,
.dashboard-main-body table.ecovet-editor-table .product-picker.product-picker--up {
  z-index: 130;
}

.dashboard-main-body table.ecovet-editor-table .product-picker-menu,
body > .product-picker-menu {
  position: fixed;
  z-index: 2000;
  max-height: 224px;
  overflow-y: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
  padding: 4px;
}

.dashboard-main-body table.ecovet-editor-table .product-picker.product-picker--up .product-picker-menu {
  inset-block-start: auto;
}

.dashboard-main-body table.ecovet-editor-table .product-picker-option,
body > .product-picker-menu .product-picker-option {
  width: 100%;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-primary-light);
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  text-align: start;
}

.dashboard-main-body table.ecovet-editor-table .product-picker-option:hover,
.dashboard-main-body table.ecovet-editor-table .product-picker-option.is-active,
body > .product-picker-menu .product-picker-option:hover,
body > .product-picker-menu .product-picker-option.is-active {
  background: rgba(72, 127, 255, 0.09);
  color: var(--brand);
}

.dashboard-main-body table.ecovet-editor-table .product-picker-option.is-disabled,
body > .product-picker-menu .product-picker-option.is-disabled {
  color: var(--neutral-400);
  cursor: not-allowed;
  opacity: 0.78;
}

.dashboard-main-body table.ecovet-editor-table .product-picker-option.is-disabled:hover,
.dashboard-main-body table.ecovet-editor-table .product-picker-option.is-disabled.is-active,
body > .product-picker-menu .product-picker-option.is-disabled:hover,
body > .product-picker-menu .product-picker-option.is-disabled.is-active {
  background: rgba(15, 23, 42, 0.04);
  color: var(--neutral-400);
}

.dashboard-main-body table.ecovet-editor-table .product-picker-option__name,
body > .product-picker-menu .product-picker-option__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.dashboard-main-body table.ecovet-editor-table .product-picker-option__meta,
.dashboard-main-body table.ecovet-editor-table .product-picker-empty,
body > .product-picker-menu .product-picker-option__meta,
body > .product-picker-menu .product-picker-empty {
  color: var(--text-secondary-light);
  font-size: 12px;
  line-height: 1.25;
}

.dashboard-main-body table.ecovet-editor-table .product-picker-empty,
body > .product-picker-menu .product-picker-empty {
  padding: 10px;
}

.dashboard-main-body table.ecovet-editor-table .qty-input,
.dashboard-main-body table.ecovet-editor-table .price-input,
.dashboard-main-body table.ecovet-editor-table .discount-input {
  min-width: 120px;
}

/* Standard desktop responsiveness: keep the workspace comfortable on 1200-1649px monitors. */
.navbar-header {
  height: auto;
  min-height: 4.5rem;
}

.navbar-header > .row {
  row-gap: 0.75rem;
}

.ecovet-navbar-search input {
  width: clamp(14rem, 25vw, 24.25rem);
}

.ecovet-language-menu {
  width: 5rem;
  min-width: 4.75rem;
  max-width: 5rem;
  padding: 0.25rem;
}

.ecovet-language-menu__item {
  width: 100%;
  min-height: 2rem;
  padding: 0.375rem 0.5rem;
  font-size: 0.8125rem;
  line-height: 1;
  justify-content: flex-start;
}

.ecovet-language-menu__item img {
  width: 1.125rem !important;
  height: 0.8125rem !important;
}

@media (min-width: 768px) {
  .dashboard-main-body table.ecovet-orders-table,
  .dashboard-main-body table.ecovet-incoming-table {
    min-width: 0 !important;
    width: 100%;
  }

  .ecovet-orders-table__col-order,
  .ecovet-incoming-table__col-receipt {
    width: 12%;
  }

  .ecovet-orders-table__col-customer,
  .ecovet-incoming-table__col-counterparty {
    width: 22%;
  }

  .ecovet-orders-table__col-warehouse,
  .ecovet-incoming-table__col-warehouse {
    width: 16%;
  }

  .ecovet-orders-table__col-payment,
  .ecovet-incoming-table__col-payment {
    width: 28%;
  }

  .ecovet-orders-table__col-state,
  .ecovet-incoming-table__col-state {
    width: 14%;
  }

  .ecovet-orders-table__col-actions,
  .ecovet-incoming-table__col-actions {
    width: 8%;
  }

  .dashboard-main-body table.ecovet-orders-table th,
  .dashboard-main-body table.ecovet-orders-table td,
  .dashboard-main-body table.ecovet-incoming-table th,
  .dashboard-main-body table.ecovet-incoming-table td {
    padding-inline: 0.625rem;
  }
}

@media (min-width: 1200px) {
  .dashboard-main {
    min-width: 0;
  }

  .dashboard-main-body {
    max-width: 100%;
    min-width: 0;
  }
}

@media (min-width: 1400px) and (max-width: 1649.98px) {
  .sidebar {
    width: 15rem;
  }

  .dashboard-main {
    margin-inline-start: 15rem;
  }

  .dashboard-main-body {
    padding: 1.25rem;
  }

  .sidebar.active:hover {
    width: 15rem;
  }
}

@media (min-width: 768px) {
  .dashboard-main-body .table-responsive,
  .dashboard-main-body .table-responsive.scroll-sm,
  .dashboard-main-body .table-responsive.ecovet-products-table-wrap,
  .dashboard-main-body .table-responsive.ecovet-incoming-table-wrap,
  .dashboard-main-body .table-responsive.ecovet-orders-table-wrap {
    overflow-x: visible;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .dashboard-main-body table {
    min-width: 0;
  }

  .dashboard-main-body table.ecovet-products-table,
  .dashboard-main-body table.ecovet-orders-table,
  .dashboard-main-body table.ecovet-money-table {
    min-width: 0;
  }
}

.dashboard-main-body .table-responsive.ecovet-editor-table-wrap {
  overflow-y: visible !important;
}

@media (min-width: 1200px) and (max-width: 1399.98px) {
  .dashboard-main-body {
    padding: 1.125rem;
  }

  .ecovet-filter-form--dense {
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .navbar-header {
    padding-inline: 1rem;
  }

  .dashboard-main-body {
    overflow-x: hidden;
  }
}

@media (max-width: 575.98px) {
  .navbar-header > .row > .col-auto {
    width: 100%;
  }

  .navbar-header > .row > .col-auto:last-child > .d-flex {
    justify-content: space-between;
  }
}

/* Compact operational dashboard density. */
.dashboard-main-body {
  padding: 1rem;
}

.dashboard-main-body .gy-4 {
  --bs-gutter-y: 1rem;
}

.dashboard-main-body .gx-4,
.dashboard-main-body .g-4 {
  --bs-gutter-x: 1rem;
}

.dashboard-main-body .mb-24 {
  margin-bottom: 1rem !important;
}

.dashboard-main-body .mt-24 {
  margin-top: 1rem !important;
}

.dashboard-main-body .mb-20 {
  margin-bottom: 0.875rem !important;
}

.dashboard-main-body .card {
  border-radius: 0.5rem !important;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.045) !important;
}

.dashboard-main-body .card:hover {
  transform: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.055) !important;
}

.dashboard-main-body .card.p-24,
.dashboard-main-body .card.p-20 {
  padding: 1rem !important;
}

.dashboard-main-body .card-header {
  padding: 0.75rem 1rem !important;
}

.dashboard-main-body .card-body:not(.p-0) {
  padding: 1rem !important;
}

.dashboard-main-body .p-24 {
  padding: 1rem !important;
}

.dashboard-main-body .py-24 {
  padding-top: 1rem !important;
  padding-bottom: 1rem !important;
}

.dashboard-main-body .px-24 {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

.dashboard-main-body .py-16 {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.dashboard-main-body .radius-12 {
  border-radius: 0.5rem !important;
}

.dashboard-main-body h5 {
  font-size: 1.0625rem;
  line-height: 1.3;
}

.dashboard-main-body h6 {
  font-size: 0.9375rem;
  line-height: 1.35;
}

.dashboard-main-body .text-4xl {
  font-size: 1.75rem !important;
}

.dashboard-main-body .text-xxl {
  font-size: 1.25rem !important;
}

.dashboard-main-body .w-64-px {
  width: 3rem !important;
}

.dashboard-main-body .h-64-px {
  height: 3rem !important;
}

.dashboard-main-body .w-44-px {
  width: 2.25rem !important;
}

.dashboard-main-body .h-44-px {
  height: 2.25rem !important;
}

.dashboard-main-body .bordered-table th,
.dashboard-main-body .bordered-table td {
  padding: 0.5rem 0.625rem;
  font-size: 0.8125rem;
  line-height: 1.3;
}

.dashboard-main-body .bordered-table thead th {
  font-size: 0.75rem;
}

.dashboard-main-body .badge {
  border-radius: 0.25rem !important;
  font-size: 0.6875rem;
  line-height: 1.15;
  padding: 0.25rem 0.5rem !important;
}

.dashboard-main-body .btn-sm {
  min-height: 2rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
}

.dashboard-main-body .form-control,
.dashboard-main-body .form-select {
  min-height: 2.25rem;
  font-size: 0.875rem;
}

.dashboard-main-body .ecovet-page-header {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.dashboard-main-body .ecovet-detail-summary__item {
  border-radius: 0.5rem;
  padding: 0.625rem 0.75rem;
}

.dashboard-main-body .ecovet-list-row {
  min-height: 3.75rem;
  padding: 0.625rem 1rem;
}

.navbar-header {
  min-height: 3.75rem;
  padding-block: 0.625rem;
}

.sidebar-toggle,
.sidebar-mobile-toggle {
  width: 2.125rem;
  height: 2.125rem;
}

.ecovet-user-button {
  height: 2.25rem;
  border-radius: 0.5rem;
  gap: 0.5rem;
}

.ecovet-user-avatar {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.5rem;
  font-size: 0.8125rem;
}

.sidebar-menu li a {
  min-height: 2.35rem;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
}

.sidebar-menu li a .menu-icon,
.sidebar-menu li a iconify-icon {
  font-size: 1.125rem;
}

.sidebar-menu .sidebar-submenu li a {
  min-height: 2rem;
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
  font-size: 0.8125rem;
}

.sidebar-menu-area {
  padding-top: 0.75rem;
}

@media (min-width: 1400px) and (max-width: 1649.98px) {
  .dashboard-main-body {
    padding: 1rem;
  }
}

/* Keep compact controls readable on dense list pages. */
.dashboard-main-body .ecovet-filter-actions .btn:not(.ecovet-filter-icon-btn) {
  width: auto;
  min-width: max-content;
  padding-inline: 0.75rem;
  white-space: nowrap;
}

.dashboard-main-body .ecovet-filter-actions .ecovet-filter-icon-btn {
  width: 2.25rem;
  min-width: 2.25rem;
  padding-inline: 0;
}

.dashboard-main-body .card-header .btn,
.dashboard-main-body td .btn {
  white-space: nowrap;
}

.dashboard-main-body .card-header {
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dashboard-main-body .card-header > .d-flex {
  min-width: 0;
}

.dashboard-main-body .card-header .card-title {
  min-width: 0;
}

.dashboard-main-body .table-responsive.scroll-sm,
.dashboard-main-body .table-responsive.ecovet-products-table-wrap,
.dashboard-main-body .table-responsive.ecovet-audit-table-wrap {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.dashboard-main-body .card-body.p-0 > .table-responsive.ecovet-audit-table-wrap {
  width: calc(100% - 1.5rem);
  margin: 0.75rem;
}

.ecovet-product-filter-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), #ffffff);
}

.ecovet-product-filter-head {
  display: grid;
  grid-template-columns: minmax(18rem, 1.3fr) minmax(20rem, 1fr) auto;
  gap: 0.875rem;
  align-items: end;
}

.ecovet-product-filter-search,
.ecovet-product-filter-quick > div,
.ecovet-product-filter-grid > div {
  min-width: 0;
}

.ecovet-product-filter-quick {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(8rem, 0.8fr);
  gap: 0.75rem;
}

.ecovet-product-filter-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  min-width: max-content;
}

.ecovet-product-filter-buttons .btn {
  min-height: 2.25rem;
  white-space: nowrap;
}

.ecovet-product-filter-buttons .badge {
  margin-inline-start: 0.125rem;
  padding: 0.125rem 0.375rem !important;
}

.ecovet-product-filter-advanced {
  display: grid;
  gap: 0.875rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ecovet-product-filter-section {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.875rem;
  align-items: start;
}

.ecovet-product-filter-section__title {
  min-height: 2.25rem;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.ecovet-product-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(9.5rem, 1fr));
  gap: 0.75rem;
}

.ecovet-product-filter-card .form-label {
  color: var(--text-secondary-light) !important;
  font-size: 0.75rem !important;
  margin-bottom: 0.375rem !important;
}

.ecovet-product-filter-card .form-control,
.ecovet-product-filter-card .form-select {
  min-height: 2.25rem;
}

[data-theme=dark] .ecovet-product-filter-card {
  background: linear-gradient(180deg, rgba(17, 24, 39, 0.96), #111827);
  border-color: rgba(148, 163, 184, 0.16);
}

[data-theme=dark] .ecovet-product-filter-card .card-body {
  background: transparent;
}

[data-theme=dark] .ecovet-product-filter-card .form-label,
[data-theme=dark] .ecovet-product-filter-section__title {
  color: #cbd5e1 !important;
}

[data-theme=dark] .ecovet-product-filter-card .form-control,
[data-theme=dark] .ecovet-product-filter-card .form-select {
  background-color: #1f2937;
  border-color: rgba(148, 163, 184, 0.22);
  color: #f8fafc;
}

[data-theme=dark] .ecovet-product-filter-card .form-control::placeholder {
  color: #94a3b8;
}

[data-theme=dark] .ecovet-product-filter-advanced {
  border-top-color: rgba(148, 163, 184, 0.16);
}

[data-theme=dark] .ecovet-product-filter-buttons .btn-outline-secondary,
[data-theme=dark] .ecovet-product-filter-buttons .btn-outline-neutral-500 {
  background-color: rgba(31, 41, 55, 0.72);
  border-color: rgba(148, 163, 184, 0.24);
  color: #e5e7eb;
}

[data-theme=dark] .ecovet-product-filter-buttons .btn-outline-secondary:hover,
[data-theme=dark] .ecovet-product-filter-buttons .btn-outline-neutral-500:hover {
  background-color: rgba(96, 165, 250, 0.14);
  border-color: rgba(147, 197, 253, 0.38);
  color: #ffffff;
}

[data-theme=dark] .ecovet-product-filter-buttons .badge {
  background-color: rgba(96, 165, 250, 0.18) !important;
  color: #bfdbfe !important;
}

@media (min-width: 768px) {
  .dashboard-main-body .table-responsive.scroll-sm > table.bordered-table {
    min-width: 760px;
  }

  .dashboard-main-body table.ecovet-products-table {
    min-width: 980px;
  }

  .dashboard-main-body table.ecovet-audit-table {
    min-width: 1120px;
  }
}

@media (max-width: 1399.98px) {
  .ecovet-product-filter-head {
    grid-template-columns: minmax(16rem, 1fr) minmax(20rem, 1fr);
  }

  .ecovet-product-filter-buttons {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .ecovet-product-filter-grid {
    grid-template-columns: repeat(3, minmax(9rem, 1fr));
  }
}

@media (max-width: 991.98px) {
  .ecovet-product-filter-head,
  .ecovet-product-filter-section {
    grid-template-columns: 1fr;
  }

  .ecovet-product-filter-quick,
  .ecovet-product-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ecovet-product-filter-section__title {
    min-height: auto;
  }
}

@media (max-width: 575.98px) {
  .dashboard-main-body .ecovet-filter-actions .btn:not(.ecovet-filter-icon-btn) {
    min-width: 0;
    width: auto;
  }

  .ecovet-product-filter-quick,
  .ecovet-product-filter-grid {
    grid-template-columns: 1fr;
  }

  .ecovet-product-filter-buttons {
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .ecovet-product-filter-buttons .btn {
    width: 100%;
  }
}
