:root {
  --sandol-red: #0785bd;
  --sandol-red-dark: #005f95;
  --sandol-blue-soft: #e8f7ff;
  --sandol-blue-line: #cdeafa;
  --sandol-danger: #d9342a;
  --sandol-danger-dark: #b42318;
  --sandol-danger-soft: #fff1f0;
  --sandol-ink: #202833;
  --sandol-muted: #667085;
  --sandol-line: #e6e9ef;
  --sandol-panel: #ffffff;
  --sandol-bg: #f2f7fb;
  --sandol-green: #004f7a;
  --primary: var(--sandol-red);
  --primary-border: var(--sandol-red-dark);
  --primary-hover: var(--sandol-red-dark);
  --primary-hover-border: #004f7a;
}

body {
  background: var(--sandol-bg);
  color: var(--sandol-ink);
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 0;
  height: 5px;
  background: var(--sandol-green);
}

a {
  color: var(--sandol-red);
}

a:hover,
a:focus {
  color: var(--sandol-red-dark);
}

.wrapper {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 245, 248, 0.92)),
    var(--sandol-bg);
}

.main-panel {
  background: transparent;
}

.main-panel > .content {
  margin-top: 0;
  min-height: calc(100vh - 92px);
  padding: 36px 30px 28px;
}

.main-panel > .footer {
  position: static;
  border-top: 1px solid var(--sandol-line);
  background: rgba(255, 255, 255, 0.82);
}

.footer .copyright {
  color: var(--sandol-muted);
}

.sidebar {
  width: 280px;
  background: #fff;
  box-shadow: 12px 0 34px rgba(31, 40, 54, 0.08);
}

.main-panel {
  width: calc(100% - 280px);
}

.sidebar .logo {
  padding: 24px 20px 18px;
  text-align: left;
}

.sidebar .logo::after {
  right: 20px;
  width: calc(100% - 40px);
  background: var(--sandol-line);
}

.sandol-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--sandol-ink);
  text-decoration: none;
}

.sandol-sidebar-brand:hover,
.sandol-sidebar-brand:focus {
  color: var(--sandol-ink);
  text-decoration: none;
}

.sandol-sidebar-brand img {
  width: 178px;
  max-height: 118px;
  height: auto;
  flex: 0 0 auto;
  border-radius: 8px;
  object-fit: contain;
}

.sandol-sidebar-brand span {
  display: none;
  max-width: 120px;
  color: var(--sandol-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar .sidebar-wrapper {
  width: 280px;
  padding: 18px 18px 28px;
}

.sidebar .nav {
  margin-top: 0;
}

.sidebar .nav .nav-item {
  margin: 2px 0 6px;
}

.sidebar .nav .nav-item .nav-link {
  min-height: 48px;
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  color: #6b7280;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sidebar .nav .nav-item .nav-link:hover,
.sidebar .nav .nav-item .nav-link:focus {
  background: var(--sandol-blue-soft);
  color: var(--sandol-ink);
  transform: translateX(2px);
}

.sidebar[data-background-color="white"] .nav .nav-item:not(.active):hover > .nav-link,
.sidebar[data-background-color="white"] .nav .nav-item:not(.active) > .nav-link:hover,
.sidebar[data-background-color="white"] .nav .nav-item:not(.active) > .nav-link:focus {
  background: var(--sandol-blue-soft) !important;
  color: var(--sandol-ink) !important;
  box-shadow: 0 10px 22px rgba(7, 133, 189, 0.10) !important;
}

.sidebar[data-background-color="white"] .nav .nav-item:not(.active):hover > .nav-link i,
.sidebar[data-background-color="white"] .nav .nav-item:not(.active):hover > .nav-link p,
.sidebar[data-background-color="white"] .nav .nav-item:not(.active):hover > .nav-link .sidebar-normal,
.sidebar[data-background-color="white"] .nav .nav-item:not(.active):hover > .nav-link .caret,
.sidebar[data-background-color="white"] .nav .nav-item:not(.active) > .nav-link:hover i,
.sidebar[data-background-color="white"] .nav .nav-item:not(.active) > .nav-link:hover p,
.sidebar[data-background-color="white"] .nav .nav-item:not(.active) > .nav-link:hover .sidebar-normal,
.sidebar[data-background-color="white"] .nav .nav-item:not(.active) > .nav-link:hover .caret {
  color: var(--sandol-ink) !important;
}

.sidebar .nav .nav-item i,
.sidebar .nav .nav-item .nav-link svg {
  width: 28px;
  min-width: 28px;
  margin-right: 12px;
  color: #9aa3b2;
  font-size: 22px;
  text-align: center;
}

.sidebar .nav .nav-item .nav-link p,
.sidebar .nav .nav-item .nav-link .sidebar-normal {
  color: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  white-space: normal;
}

.sidebar .nav .nav-item .caret {
  top: 17px;
  color: #7a8493;
}

.sidebar li.active > a,
.sidebar li.active > a:hover,
.sidebar[data-color="purple"] li.active > a {
  background: var(--sandol-red);
  box-shadow: 0 12px 24px rgba(7, 133, 189, 0.24);
}

.sidebar .nav .nav-item.active > .nav-link,
.sidebar .nav .nav-item.active > .nav-link i,
.sidebar .nav .nav-item.active > .nav-link p,
.sidebar .nav .nav-item.active > .nav-link .caret {
  color: #fff;
}

.sidebar .sidebar-wrapper > .nav > .nav-item.active > .nav-link[data-toggle="collapse"] {
  background: #f6f7f9;
  color: var(--sandol-ink);
  box-shadow: none;
}

.sidebar .sidebar-wrapper > .nav > .nav-item.active > .nav-link[data-toggle="collapse"] i,
.sidebar .sidebar-wrapper > .nav > .nav-item.active > .nav-link[data-toggle="collapse"] p,
.sidebar .sidebar-wrapper > .nav > .nav-item.active > .nav-link[data-toggle="collapse"] .caret {
  color: var(--sandol-ink);
}

.sidebar .collapse .nav {
  position: relative;
  margin: 6px 0 6px 28px;
  padding: 4px 0 4px 14px;
  border-left: 1px solid var(--sandol-line);
}

.sidebar .collapse .nav .nav-item {
  margin-bottom: 2px;
}

.sidebar .collapse .nav .nav-item .nav-link {
  min-height: 40px;
  padding: 9px 12px;
  background: transparent;
  box-shadow: none;
}

.sidebar .collapse .nav .nav-item .nav-link i {
  width: 22px;
  min-width: 22px;
  margin-right: 10px;
  font-size: 15px;
}

.sidebar .collapse .nav .nav-item.active > .nav-link {
  background: var(--sandol-blue-soft);
  color: var(--sandol-red-dark);
  box-shadow: none;
}

.sidebar .collapse .nav .nav-item.active > .nav-link i,
.sidebar .collapse .nav .nav-item.active > .nav-link .sidebar-normal {
  color: var(--sandol-red-dark);
}

.card {
  border: 1px solid rgba(230, 233, 239, 0.86);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(31, 40, 54, 0.06);
}

.card .card-header.card-header-primary,
.card.bg-primary,
.card.card-rotate.bg-primary .front,
.card.card-rotate.bg-primary .back {
  background: var(--sandol-red);
  box-shadow: 0 10px 22px rgba(7, 133, 189, 0.20);
}

.card .card-header {
  border-radius: 8px 8px 0 0;
}

.card .card-header .card-title {
  font-weight: 700;
}

.card .card-header.card-header-primary .card-category {
  color: rgba(255, 255, 255, 0.82);
}

.card:not(.card-stats) .card-body {
  padding: 24px;
}

.sandol-page-shell {
  max-width: 100%;
}

.sandol-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
  padding: 24px 28px;
  border: 1px solid rgba(230, 233, 239, 0.9);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 58%, #f7fafc 100%);
  box-shadow: 0 14px 34px rgba(31, 40, 54, 0.06);
}

.sandol-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--sandol-red-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sandol-hero h1 {
  margin: 0;
  color: var(--sandol-ink);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.1;
}

.sandol-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--sandol-muted);
  font-size: 15px;
  line-height: 1.55;
}

.sandol-hero .btn {
  flex: 0 0 auto;
  min-height: 44px;
  margin: 0;
  padding: 11px 18px;
  border-radius: 8px;
  box-shadow: 0 14px 26px rgba(7, 133, 189, 0.20);
  font-weight: 800;
  text-transform: none;
}

.sandol-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.sandol-metric-card {
  min-height: 108px;
  padding: 18px;
  border: 1px solid rgba(230, 233, 239, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(31, 40, 54, 0.055);
}

.sandol-metric-card span,
.sandol-metric-card strong {
  display: block;
}

.sandol-metric-card span {
  color: var(--sandol-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sandol-metric-card strong {
  margin-top: 10px;
  color: var(--sandol-ink);
  font-size: 28px;
  font-weight: 900;
  line-height: 1.05;
}

.sandol-panel {
  overflow: hidden;
  border: 1px solid rgba(230, 233, 239, 0.92);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(31, 40, 54, 0.06);
}

.sandol-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--sandol-line);
}

.sandol-panel-toolbar h2 {
  margin: 0;
  color: var(--sandol-ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.sandol-panel-toolbar p {
  margin: 6px 0 0;
  color: var(--sandol-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sandol-search-wrap {
  position: relative;
  min-width: 320px;
  max-width: 420px;
  flex: 0 1 420px;
}

.sandol-search-wrap i {
  position: absolute;
  top: 50%;
  left: 13px;
  color: #98a2b3;
  transform: translateY(-50%);
}

.sandol-search-wrap .form-control {
  min-height: 42px;
  padding-left: 40px;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background-image: none;
}

.sandol-table-title {
  color: var(--sandol-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}

.sandol-table-title + small,
.sandol-data-table small {
  color: var(--sandol-muted);
  font-size: 12px;
  line-height: 1.35;
}

.btn {
  border-radius: 7px;
  letter-spacing: 0;
  text-transform: none;
}

.btn.btn-primary {
  background: var(--sandol-red);
  border-color: var(--sandol-red);
  box-shadow: 0 8px 18px rgba(7, 133, 189, 0.22);
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
  background: var(--sandol-red-dark);
  border-color: var(--sandol-red-dark);
  box-shadow: 0 10px 22px rgba(0, 95, 149, 0.26);
}

.table {
  color: var(--sandol-ink);
}

.table thead th {
  border-bottom: 1px solid var(--sandol-line);
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.table > tbody > tr > td,
.table > tbody > tr > th,
.table > tfoot > tr > td,
.table > tfoot > tr > th,
.table > thead > tr > td,
.table > thead > tr > th {
  padding: 14px 10px;
  border-color: #edf0f4;
}

.table-hover tbody tr:hover,
.table tbody tr:hover {
  background: #fafbfc;
}

.form-control,
.select2-container--bootstrap4 .select2-selection {
  border-color: #d9dde4;
  border-radius: 7px;
}

.form-control:focus,
.select2-container--bootstrap4.select2-container--focus .select2-selection {
  border-color: var(--sandol-red);
  box-shadow: 0 0 0 4px rgba(7, 133, 189, 0.10);
}

.modal-content,
.dropdown-menu {
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(31, 40, 54, 0.18);
}

.sandol-dashboard-hero {
  display: flex;
  align-items: center;
  min-height: 230px;
  margin-bottom: 24px;
  padding: 42px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.88)),
    url("../img/login.jpg") center 58% / cover;
  box-shadow: 0 12px 32px rgba(31, 40, 54, 0.08);
}

.sandol-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--sandol-red-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sandol-dashboard-hero h1 {
  max-width: 720px;
  margin: 0 0 10px;
  color: var(--sandol-ink);
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
}

.sandol-dashboard-hero p {
  max-width: 560px;
  margin: 0;
  color: var(--sandol-muted);
  font-size: 16px;
  line-height: 1.5;
}

.sandol-shortcuts {
  margin-right: -10px;
  margin-left: -10px;
}

.sandol-shortcuts > [class*="col-"] {
  padding-right: 10px;
  padding-left: 10px;
}

.sandol-shortcut-card {
  display: block;
  min-height: 160px;
  margin-bottom: 20px;
  padding: 24px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: var(--sandol-panel);
  color: var(--sandol-ink);
  box-shadow: 0 10px 28px rgba(31, 40, 54, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.sandol-shortcut-card:hover,
.sandol-shortcut-card:focus {
  border-color: rgba(7, 133, 189, 0.28);
  color: var(--sandol-ink);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 16px 38px rgba(31, 40, 54, 0.10);
}

.sandol-shortcut-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--sandol-blue-soft);
  color: var(--sandol-red-dark);
  font-size: 18px;
}

.sandol-shortcut-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 17px;
  line-height: 1.25;
}

.sandol-shortcut-card small {
  display: block;
  color: var(--sandol-muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 991px) {
  .main-panel {
    width: 100%;
  }

  .main-panel > .content {
    padding: 88px 18px 24px;
  }

  .sidebar,
  .sidebar .sidebar-wrapper {
    width: 280px;
  }

  .navbar.navbar-transparent {
    background: #fff;
    box-shadow: 0 10px 28px rgba(31, 40, 54, 0.08);
  }

  .navbar .navbar-brand {
    color: var(--sandol-ink);
    font-weight: 700;
  }

  .sandol-dashboard-hero {
    min-height: 0;
    padding: 28px 24px;
  }

  .sandol-dashboard-hero h1 {
    font-size: 28px;
  }
}

@media (max-width: 575px) {
  .main-panel > .content {
    padding-right: 12px;
    padding-left: 12px;
  }

  .sandol-dashboard-hero {
    padding: 24px 18px;
  }

  .sandol-dashboard-hero h1 {
    font-size: 24px;
  }

  .card:not(.card-stats) .card-body {
    padding: 18px;
  }
}

.sandol-table-shell {
  overflow: hidden;
  margin: 6px auto 32px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: var(--sandol-panel);
  box-shadow: 0 16px 42px rgba(31, 40, 54, 0.08);
}

.sandol-table-hero {
  display: flex;
  min-height: 126px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  border-bottom: 1px solid var(--sandol-line);
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 100%);
}

.sandol-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--sandol-red-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sandol-table-hero h4 {
  margin: 0 0 6px;
  color: var(--sandol-ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.sandol-table-hero p {
  margin: 0;
  color: var(--sandol-muted);
  font-size: 15px;
  line-height: 1.45;
}

.sandol-primary-action,
.sandol-danger-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 8px;
  text-transform: none;
  white-space: nowrap;
}

.sandol-primary-action.btn-primary {
  background: var(--sandol-red) !important;
  box-shadow: 0 12px 26px rgba(7, 133, 189, 0.22);
}

.sandol-alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px 28px 0;
  padding: 13px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.sandol-alert-success {
  border: 1px solid #b7e4c7;
  background: #f1fff6;
  color: #1f7a42;
}

.sandol-alert-danger {
  border: 1px solid #ffcdc7;
  background: #fff5f4;
  color: #b42318;
}

.sandol-inline-form,
.sandol-confirm-strip {
  margin: 24px 28px 0;
  padding: 20px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fff;
}

.sandol-inline-form-header,
.sandol-confirm-strip,
.sandol-form-actions,
.sandol-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.sandol-inline-form-header strong,
.sandol-confirm-strip strong {
  display: block;
  color: var(--sandol-ink);
  font-size: 16px;
  line-height: 1.35;
}

.sandol-inline-form-header small,
.sandol-confirm-strip span {
  display: block;
  color: var(--sandol-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sandol-icon-button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sandol-muted);
  cursor: pointer;
}

.sandol-form-row {
  margin-top: 18px;
}

.sandol-form-row label {
  display: block;
  margin-bottom: 8px;
  color: var(--sandol-ink);
  font-size: 13px;
  font-weight: 800;
}

.sandol-form-row .form-control,
.sandol-table-search .form-control,
.sandol-per-page .form-control {
  height: 42px;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background-image: none;
  color: var(--sandol-ink);
}

.sandol-form-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.sandol-muted-action {
  color: var(--sandol-muted);
  font-weight: 700;
  text-transform: none;
}

.sandol-danger-action {
  background: #d92d20 !important;
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(217, 45, 32, 0.18);
}

.sandol-table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 28px 18px;
}

.sandol-toolbar-summary strong {
  display: block;
  color: var(--sandol-ink);
  font-size: 24px;
  line-height: 1;
}

.sandol-toolbar-summary span {
  display: block;
  color: var(--sandol-muted);
  font-size: 13px;
}

.sandol-toolbar-summary small {
  display: block;
  margin-top: 2px;
  color: #9aa3b2;
  font-size: 12px;
}

.sandol-toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.sandol-per-page {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--sandol-muted);
  font-size: 13px;
  font-weight: 500;
}

.sandol-per-page .form-control {
  width: 82px;
  padding: 0 12px;
}

.sandol-table-search {
  position: relative;
  display: block;
  min-width: 280px;
  margin: 0;
}

.sandol-table-search i {
  position: absolute;
  top: 50%;
  left: 14px;
  color: #9aa3b2;
  transform: translateY(-50%);
}

.sandol-table-search .form-control {
  padding-left: 40px;
}

.sandol-table-responsive {
  padding: 0 28px;
}

.sandol-data-table {
  margin-bottom: 0;
}

.sandol-data-table thead th {
  border-top: 0;
  border-bottom: 1px solid #dfe4ec;
  color: var(--sandol-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sandol-data-table tbody td {
  padding-top: 18px;
  padding-bottom: 18px;
  border-top: 1px solid #edf0f5;
  color: var(--sandol-ink);
  vertical-align: middle;
}

.sandol-data-table tbody tr:hover {
  background: #fffafa;
}

.sandol-col-id {
  width: 110px;
}

.sandol-col-actions {
  width: 230px;
}

.sandol-sort-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.sandol-sort-button i {
  color: #b1b8c6;
  font-size: 12px;
}

.sandol-id-pill {
  display: inline-flex;
  min-width: 52px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f4f6f9;
  color: var(--sandol-muted);
  font-weight: 800;
}

.sandol-supplier-cell {
  display: flex;
  align-items: center;
  gap: 13px;
}

.sandol-avatar {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--sandol-blue-soft);
  color: var(--sandol-red-dark);
  font-weight: 900;
}

.sandol-supplier-cell strong {
  display: block;
  color: var(--sandol-ink);
  font-size: 15px;
  line-height: 1.3;
}

.sandol-supplier-cell small {
  display: block;
  color: var(--sandol-muted);
  font-size: 12px;
}

.sandol-table-actions {
  display: inline-flex;
  justify-content: flex-end;
  gap: 8px;
}

.sandol-action-edit,
.sandol-action-delete {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 8px 12px !important;
  border-radius: 8px;
  font-weight: 800;
  text-transform: none;
}

.sandol-action-edit {
  background: #f4f6f9;
  color: var(--sandol-ink);
}

.sandol-action-delete {
  background: var(--sandol-danger-soft);
  color: var(--sandol-danger-dark);
}

.sandol-empty-state {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--sandol-muted);
  text-align: center;
}

.sandol-empty-state i {
  margin-bottom: 6px;
  color: #b9c0cd;
  font-size: 34px;
}

.sandol-empty-state strong {
  color: var(--sandol-ink);
  font-size: 17px;
}

.sandol-data-table td.sandol-empty-state {
  display: table-cell;
  height: 240px;
  min-height: 0;
  padding: 48px 24px !important;
  color: var(--sandol-muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center !important;
  vertical-align: middle;
}

.sandol-data-table td.sandol-empty-state i,
.sandol-data-table td.sandol-empty-state strong,
.sandol-data-table td.sandol-empty-state::before {
  display: flex;
  margin-right: auto;
  margin-left: auto;
}

.sandol-pagination {
  display: flex;
  justify-content: flex-end;
  padding: 20px 28px 28px;
}

.sandol-pagination .pagination {
  margin: 0;
}

.sandol-pagination .page-link {
  border-color: var(--sandol-line);
  color: var(--sandol-ink);
}

.sandol-pagination .page-item.active .page-link {
  border-color: var(--sandol-red);
  background: var(--sandol-red);
}

@media (max-width: 1199px) {
  .sandol-metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sandol-hero,
  .sandol-panel-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sandol-hero {
    padding: 20px;
  }

  .sandol-hero h1 {
    font-size: 30px;
  }

  .sandol-metrics-grid {
    grid-template-columns: 1fr;
  }

  .sandol-search-wrap {
    width: 100%;
    min-width: 0;
    max-width: none;
    flex-basis: auto;
  }

  .sandol-table-hero,
  .sandol-table-toolbar,
  .sandol-inline-form-header,
  .sandol-confirm-strip,
  .sandol-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .sandol-table-hero {
    padding: 24px 20px;
  }

  .sandol-toolbar-controls {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .sandol-table-search {
    min-width: 0;
    width: 100%;
  }

  .sandol-table-toolbar,
  .sandol-table-responsive,
  .sandol-pagination {
    padding-right: 18px;
    padding-left: 18px;
  }

  .sandol-inline-form,
  .sandol-confirm-strip,
  .sandol-alert {
    margin-right: 18px;
    margin-left: 18px;
  }

  .sandol-col-actions {
    width: 170px;
  }

  .sandol-action-edit span,
  .sandol-action-delete span {
    display: none;
  }
}

.sandol-insums-shell {
  max-width: 100%;
}

.sandol-insums-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 62%, #f6fbf7 100%);
}

.sandol-rate-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.25fr) repeat(2, minmax(180px, 1fr));
  gap: 14px;
  padding: 24px 28px 0;
}

.sandol-rate-card {
  padding: 18px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fff;
}

.sandol-rate-card-featured {
  border-color: rgba(7, 133, 189, 0.28);
  background: #fffafa;
}

.sandol-rate-card span,
.sandol-rate-card small {
  display: block;
  color: var(--sandol-muted);
  font-size: 12px;
  line-height: 1.4;
}

.sandol-rate-card strong {
  display: block;
  margin: 4px 0;
  color: var(--sandol-ink);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.sandol-insums-controls .sandol-table-search {
  min-width: 360px;
}

.sandol-currency-filter {
  width: 112px !important;
}

.sandol-wide-table-responsive {
  overflow-x: auto;
}

.sandol-insums-table {
  min-width: 1180px;
}

.sandol-insums-table thead th {
  white-space: nowrap;
}

.sandol-insums-table tbody td {
  white-space: nowrap;
}

.sandol-insums-table tbody td:nth-child(2) {
  min-width: 340px;
  white-space: normal;
}

.sandol-insum-cell .sandol-avatar {
  flex: 0 0 auto;
}

.sandol-soft-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f4f6f9;
  color: var(--sandol-muted);
  font-size: 12px;
  font-weight: 800;
}

.sandol-money-cell strong,
.sandol-final-value {
  display: block;
  color: var(--sandol-ink);
  font-weight: 900;
}

.sandol-money-cell small {
  display: block;
  color: var(--sandol-muted);
  font-size: 12px;
}

.sandol-final-value {
  color: #1f7a42;
}

.sandol-insum-actions {
  flex-wrap: nowrap;
}

.sandol-insum-actions .btn {
  min-width: 38px;
}

@media (max-width: 1199px) {
  .sandol-insums-controls {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .sandol-insums-controls .sandol-table-search {
    min-width: 260px;
  }
}

@media (max-width: 767px) {
  .sandol-rate-grid {
    grid-template-columns: 1fr;
    padding-right: 18px;
    padding-left: 18px;
  }

  .sandol-insums-table {
    min-width: 1080px;
  }

  .sandol-insum-actions span {
    display: none;
  }
}

.sandol-cotations-shell,
.sandol-cotation-table-card {
  overflow: hidden;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: var(--sandol-panel);
  box-shadow: 0 16px 42px rgba(31, 40, 54, 0.08);
}

.sandol-cotations-shell {
  margin: 6px auto 32px;
}

.sandol-cotations-hero {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  border-bottom: 1px solid var(--sandol-line);
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 62%, #f6fbf7 100%);
}

.sandol-cotations-hero h4 {
  margin: 0 0 6px;
  color: var(--sandol-ink);
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.sandol-cotations-hero p {
  max-width: 640px;
  margin: 0;
  color: var(--sandol-muted);
  font-size: 15px;
  line-height: 1.45;
}

.sandol-cotations-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.sandol-cotation-filter {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(320px, 520px);
  gap: 22px;
  align-items: end;
  padding: 24px 28px 0;
}

.sandol-filter-copy strong {
  display: block;
  color: var(--sandol-ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.25;
}

.sandol-filter-copy span {
  display: block;
  margin-top: 4px;
  color: var(--sandol-muted);
  font-size: 13px;
  line-height: 1.45;
}

.sandol-filter-control label {
  display: block;
  margin-bottom: 8px;
  color: var(--sandol-ink);
  font-size: 13px;
  font-weight: 800;
}

.sandol-filter-control .form-control,
.sandol-filter-control .select2-container--default .select2-selection--single {
  min-height: 42px;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background-image: none;
}

.sandol-filter-control .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-top: 6px;
  padding-left: 14px;
  color: var(--sandol-ink);
}

.sandol-filter-control .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 8px;
  right: 8px;
}

.sandol-cotation-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 22px 28px 0;
}

.sandol-cotation-table-card {
  margin: 24px 28px 28px;
  box-shadow: none;
}

.sandol-cotation-datatable-search {
  min-width: 300px;
}

.sandol-cotations-table {
  min-width: 1060px;
}

.sandol-cotations-table tbody td:nth-child(2),
.sandol-cotations-table tbody td:nth-child(3) {
  min-width: 220px;
  white-space: normal;
}

.sandol-cotations-table .delete-form {
  display: inline-flex;
  margin: 0;
}

.sandol-datatable-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 28px 26px;
  color: var(--sandol-muted);
  font-size: 13px;
}

.sandol-datatable-footer .dataTables_info {
  padding: 0;
}

.sandol-datatable-footer .dataTables_paginate {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sandol-datatable-footer .paginate_button {
  min-width: 34px;
  padding: 7px 10px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  color: var(--sandol-ink) !important;
  cursor: pointer;
}

.sandol-datatable-footer .paginate_button.current {
  border-color: var(--sandol-red);
  background: var(--sandol-red);
  color: #fff !important;
}

@media (max-width: 991px) {
  .sandol-cotations-hero,
  .sandol-cotation-filter {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .sandol-cotation-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sandol-cotations-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 24px 20px;
  }

  .sandol-cotations-actions {
    justify-content: stretch;
  }

  .sandol-cotations-actions .btn {
    flex: 1 1 100%;
  }

  .sandol-cotation-filter,
  .sandol-cotation-metrics {
    padding-right: 18px;
    padding-left: 18px;
  }

  .sandol-cotation-metrics {
    grid-template-columns: 1fr;
  }

  .sandol-cotation-table-card {
    margin-right: 18px;
    margin-left: 18px;
  }

  .sandol-cotation-datatable-search {
    min-width: 0;
    width: 100%;
  }

  .sandol-datatable-footer {
    align-items: stretch;
    flex-direction: column;
    padding-right: 18px;
    padding-left: 18px;
  }

  .sandol-cotations-table .sandol-table-actions span {
    display: none;
  }
}

.sandol-purchase-shell .select2-container--default .select2-selection--single {
  min-height: 42px;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background-image: none;
}

.sandol-purchase-shell .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding-top: 6px;
  padding-left: 14px;
  color: var(--sandol-ink);
}

.sandol-purchase-shell .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 8px;
  right: 8px;
}

.sandol-purchase-table {
  min-width: 1120px;
}

.sandol-purchase-table tbody td:nth-child(2),
.sandol-purchase-table tbody td:nth-child(3) {
  min-width: 230px;
  white-space: normal;
}

.sandol-status-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 900;
}

.sandol-status-badge.is-success {
  background: #e8f7ef;
  color: #16794c;
}

.sandol-status-badge.is-muted {
  background: #eef1f5;
  color: var(--sandol-muted);
}

.sandol-status-badge.is-warning {
  background: #fff7e6;
  color: #ad6800;
}

.sandol-status-open {
  background: #fff8e6;
  color: #946200;
}

.sandol-status-received {
  background: #f1fff6;
  color: #1f7a42;
}

.sandol-status-canceled {
  background: var(--sandol-danger-soft);
  color: var(--sandol-danger-dark);
}

.sandol-purchase-form {
  padding: 28px;
}

.sandol-purchase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
}

.sandol-form-section {
  padding: 22px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fff;
}

.sandol-form-section label {
  color: var(--sandol-ink);
  font-size: 13px;
  font-weight: 800;
}

.sandol-form-section .form-control {
  min-height: 42px;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background-image: none;
  color: var(--sandol-ink);
}

.sandol-form-section textarea.form-control {
  min-height: 96px;
}

.sandol-purchase-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.sandol-purchase-summary > div {
  padding: 18px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fff;
}

.sandol-purchase-summary span {
  display: block;
  color: var(--sandol-muted);
  font-size: 12px;
}

.sandol-purchase-summary strong {
  display: block;
  margin-top: 4px;
  color: var(--sandol-ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.sandol-purchase-actions {
  margin-top: 22px;
}

@media (max-width: 991px) {
  .sandol-purchase-grid,
  .sandol-purchase-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .sandol-purchase-form {
    padding: 18px;
  }

  .sandol-form-section {
    padding: 18px;
  }

  .sandol-purchase-table .sandol-table-actions span {
    display: none;
  }
}

.sandol-production-shell .sandol-cotations-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 58%, #f4fbf8 100%);
}

.sandol-production-rate-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sandol-production-table {
  min-width: 1120px;
}

.sandol-production-table tbody td:nth-child(2) {
  min-width: 300px;
  white-space: normal;
}

.sandol-modal-content {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(31, 40, 54, 0.20);
}

.sandol-modal-content .modal-header {
  border-bottom: 1px solid var(--sandol-line);
}

.sandol-modal-content .modal-title {
  color: var(--sandol-ink);
  font-weight: 800;
}

.sandol-modal-content .modal-body {
  max-height: none;
  padding: 24px;
}

.sandol-modal-content label {
  color: var(--sandol-ink);
  font-size: 13px;
  font-weight: 800;
}

.sandol-modal-content .form-control {
  min-height: 42px;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background-image: none;
  color: var(--sandol-ink);
}

.finished-product-form {
  width: 100%;
}

.sandol-finished-product-dialog {
  width: min(1180px, calc(100vw - 56px));
  max-width: min(1180px, calc(100vw - 56px));
}

.sandol-finished-product-modal .modal-header {
  padding: 24px 28px;
}

.sandol-finished-product-modal .modal-header p {
  max-width: 720px;
  margin: 6px 0 0;
  color: var(--sandol-muted);
  font-size: 15px;
  line-height: 1.45;
}

.sandol-finished-product-modal .modal-body {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
  padding: 24px 28px;
}

.sandol-finished-product-modal .modal-footer {
  padding: 18px 28px;
}

.sandol-finished-product-modal-grid {
  row-gap: 18px;
}

.sandol-finished-product-fields .form-row {
  margin-right: -8px;
  margin-left: -8px;
}

.sandol-finished-product-fields .form-row > [class*="col-"] {
  padding-right: 8px;
  padding-left: 8px;
}

.sandol-finished-product-fields label {
  margin-bottom: 6px;
  line-height: 1.25;
}

.sandol-finished-product-fields .form-control {
  min-height: 44px;
}

.sandol-finished-product-fields textarea.form-control {
  min-height: 112px;
}

@media (max-width: 991px) {
  .sandol-production-rate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sandol-production-rate-grid {
    grid-template-columns: 1fr;
  }

  .sandol-production-table .sandol-table-actions span {
    display: none;
  }
}

.sandol-formules-shell .sandol-cotations-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 58%, #f4f8fb 100%);
}

.sandol-formules-rate-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sandol-formules-table {
  min-width: 1180px;
}

.sandol-formules-table tbody td:nth-child(2) {
  min-width: 240px;
  white-space: normal;
}

.sandol-formules-table tbody td:nth-child(3) {
  min-width: 260px;
  white-space: normal;
}

.sandol-formules-table tbody td:nth-child(5) {
  min-width: 360px;
  white-space: normal;
}

.sandol-formule-insums {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.sandol-formule-insums span,
.sandol-formule-insums small {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f4f6f9;
  color: var(--sandol-muted);
  font-size: 12px;
  font-weight: 800;
}

.sandol-formule-insums small {
  background: var(--sandol-blue-soft);
  color: var(--sandol-red-dark);
}

@media (max-width: 991px) {
  .sandol-formules-rate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sandol-formules-rate-grid {
    grid-template-columns: 1fr;
  }

  .sandol-formules-table .sandol-table-actions span {
    display: none;
  }
}

.sandol-formule-detail-shell .sandol-cotations-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 58%, #f4fbf8 100%);
}

.sandol-formule-detail-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sandol-formule-cost-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 20px 28px 0;
}

.sandol-formule-cost-strip > div {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fff;
}

.sandol-formule-cost-strip span,
.sandol-formule-cost-strip small {
  display: block;
  color: var(--sandol-muted);
  font-size: 12px;
  line-height: 1.35;
}

.sandol-formule-cost-strip strong {
  display: block;
  margin: 8px 0 3px;
  color: var(--sandol-ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.1;
}

.sandol-composition-table {
  min-width: 1260px;
}

.sandol-composition-table tbody td:nth-child(2) {
  min-width: 300px;
  white-space: normal;
}

.sandol-composition-table tbody td:nth-child(3) {
  min-width: 160px;
}

.sandol-share-bar {
  overflow: hidden;
  width: 92px;
  height: 8px;
  margin-bottom: 5px;
  border-radius: 999px;
  background: #eef1f5;
}

.sandol-share-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--sandol-red);
}

@media (max-width: 1199px) {
  .sandol-formule-cost-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .sandol-formule-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .sandol-formule-detail-grid,
  .sandol-formule-cost-strip {
    grid-template-columns: 1fr;
  }

  .sandol-formule-cost-strip {
    padding-right: 18px;
    padding-left: 18px;
  }

  .sandol-composition-table .sandol-table-actions span {
    display: none;
  }
}

.sandol-component-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sandol-packagings-shell .sandol-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 58%, #f8fbf9 100%);
}

.sandol-packagings-panel .table-responsive {
  padding: 0 24px 24px;
}

.sandol-packagings-table {
  min-width: 1180px;
}

.sandol-packagings-table tbody td:nth-child(1) {
  min-width: 300px;
  white-space: normal;
}

.sandol-packagings-table tbody td:nth-child(2) {
  min-width: 130px;
  font-weight: 800;
}

.sandol-packagings-table tbody td:nth-child(4) {
  min-width: 380px;
}

.sandol-packagings-table tbody td:nth-child(5) {
  min-width: 160px;
}

.sandol-packagings-table .sandol-empty-state {
  min-height: 260px;
  border-top: 1px solid var(--sandol-line);
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.sandol-packagings-table .sandol-empty-state::before {
  content: "\f466";
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border-radius: 8px;
  background: var(--sandol-blue-soft);
  color: var(--sandol-red-dark);
  font-family: "Font Awesome 6 Free";
  font-size: 20px;
  font-weight: 900;
}

.sandol-component-chip {
  display: inline-flex;
  max-width: 250px;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f4f6f9;
  color: var(--sandol-ink);
  font-size: 12px;
  font-weight: 800;
}

.sandol-component-chip strong {
  color: var(--sandol-muted);
  font-weight: 800;
}

.sandol-components-cell {
  min-width: 360px;
  white-space: normal;
}

.sandol-detail-row td {
  padding-top: 0 !important;
  border-top: 0 !important;
  background: #fbfcfd;
}

.sandol-component-table {
  display: grid;
  gap: 8px;
  padding: 10px 12px 16px;
}

.sandol-component-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 170px 150px 170px;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fff;
}

.sandol-component-row strong,
.sandol-component-row span {
  display: block;
}

.sandol-component-row > div:first-child span {
  margin-top: 2px;
  color: var(--sandol-muted);
  font-size: 12px;
}

.sandol-muted-text {
  color: var(--sandol-muted);
  font-weight: 700;
}

.sandol-actions-cell .btn {
  margin: 2px;
}

.sandol-packagings-table .sandol-actions-cell {
  min-width: 270px;
  white-space: nowrap;
}

.sandol-packagings-table .sandol-actions-cell .btn {
  min-height: 34px;
  padding: 8px 11px;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 800;
  text-transform: none;
}

.sandol-packagings-table .sandol-actions-cell .btn-info {
  background: #eef9fb;
  color: #087f95;
}

.sandol-packagings-table .sandol-actions-cell .btn-warning {
  background: #fff7e6;
  color: #a15c00;
}

.sandol-packagings-table .sandol-actions-cell .btn-danger {
  background: var(--sandol-danger-soft);
  color: var(--sandol-danger-dark);
}

.sandol-cost-preview {
  position: sticky;
  top: 20px;
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fbfcfd;
}

.sandol-cost-preview > span {
  color: var(--sandol-red-dark);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sandol-cost-preview div {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
}

.sandol-cost-preview small {
  display: block;
  color: var(--sandol-muted);
  font-weight: 700;
}

.sandol-cost-preview strong {
  display: block;
  margin-top: 5px;
  color: var(--sandol-ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.sandol-cost-preview .is-total {
  background: var(--sandol-blue-soft);
}

.sandol-cost-preview .is-total strong {
  color: var(--sandol-red-dark);
}

#embalagens-table,
#finished-products-table {
  min-width: 1180px;
}

.sandol-finished-products-shell .sandol-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 58%, #f6fbff 100%);
}

.sandol-finished-products-panel .table-responsive {
  padding: 0 24px 24px;
}

.sandol-finished-products-table {
  min-width: 1280px;
}

.sandol-finished-products-table tbody td:nth-child(1) {
  min-width: 330px;
  white-space: normal;
}

.sandol-finished-products-table tbody td:nth-child(2) {
  min-width: 170px;
}

.sandol-finished-products-table tbody td:nth-child(3),
.sandol-finished-products-table tbody td:nth-child(4) {
  min-width: 240px;
  white-space: normal;
}

.sandol-finished-products-table tbody td:nth-child(5) {
  min-width: 150px;
}

.sandol-finished-products-table .sandol-actions-cell {
  min-width: 180px;
  white-space: nowrap;
}

.sandol-finished-products-table .sandol-actions-cell .btn {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 800;
  text-transform: none;
}

.sandol-finished-products-table .sandol-actions-cell .btn-warning {
  background: #fff7e6;
  color: #a15c00;
}

.sandol-finished-products-table .sandol-actions-cell .btn-danger {
  background: var(--sandol-danger-soft);
  color: var(--sandol-danger-dark);
}

.sandol-finished-products-table .sandol-empty-state {
  height: 260px;
  min-height: 0;
  border-top: 1px solid var(--sandol-line);
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.sandol-finished-products-table .sandol-empty-state::before {
  content: "\f49e";
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--sandol-blue-soft);
  color: var(--sandol-red-dark);
  font-family: "Font Awesome 6 Free";
  font-size: 22px;
  font-weight: 900;
}

@media (max-width: 991px) {
  .sandol-component-row {
    grid-template-columns: 1fr 1fr;
  }

  .sandol-cost-preview {
    position: static;
    margin-top: 14px;
  }

  .sandol-finished-product-dialog {
    width: min(760px, calc(100vw - 28px));
    max-width: min(760px, calc(100vw - 28px));
  }

  .sandol-cost-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sandol-cost-preview > span {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .sandol-finished-product-dialog {
    width: calc(100vw - 16px);
    max-width: calc(100vw - 16px);
    margin: 8px auto;
  }

  .sandol-finished-product-modal .modal-header,
  .sandol-finished-product-modal .modal-body,
  .sandol-finished-product-modal .modal-footer {
    padding-right: 18px;
    padding-left: 18px;
  }

  .sandol-finished-product-modal .modal-body {
    max-height: calc(100vh - 180px);
  }

  .sandol-cost-preview {
    grid-template-columns: 1fr;
  }

  .sandol-component-row {
    grid-template-columns: 1fr;
  }

  .sandol-actions-cell {
    min-width: 210px;
  }
}

.sandol-customer-history {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 10px 12px 16px;
}

.sandol-customer-history article {
  padding: 16px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fff;
}

.sandol-history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.sandol-history-header h3 {
  margin: 0;
  color: var(--sandol-ink);
  font-size: 16px;
  font-weight: 900;
}

.sandol-history-header span {
  color: var(--sandol-muted);
  font-size: 12px;
  font-weight: 800;
}

.sandol-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--sandol-line);
}

.sandol-history-item:first-of-type {
  border-top: 0;
}

.sandol-history-item strong,
.sandol-history-item small {
  display: block;
}

.sandol-history-item small {
  color: var(--sandol-muted);
  font-weight: 600;
}

.sandol-order-step,
.sandol-payment-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border-radius: 8px;
  background: #eef1f5;
  color: var(--sandol-muted);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.sandol-order-step.is-solicitado {
  background: #fff7e6;
  color: #ad6800;
}

.sandol-order-step.is-pago,
.sandol-payment-status.is-pago {
  background: #e8f7ef;
  color: #16794c;
}

.sandol-order-step.is-em_rota_de_entrega {
  background: #eaf3ff;
  color: #1264a3;
}

.sandol-order-step.is-entregue {
  background: #edf7ed;
  color: #2e7d32;
}

.sandol-payment-status.is-pendente {
  background: #fff7e6;
  color: #ad6800;
}

.sandol-payment-status.is-cancelado {
  background: var(--sandol-danger-soft);
  color: var(--sandol-danger-dark);
}

.sandol-customers-shell .sandol-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f2fbff 58%, #f7fafc 100%);
}

.sandol-customers-panel .table-responsive {
  padding: 0 24px 24px;
}

.sandol-customers-table {
  min-width: 1180px;
}

.sandol-customers-table tbody td:nth-child(1),
.sandol-customers-table tbody td:nth-child(2) {
  min-width: 260px;
  white-space: normal;
}

.sandol-customers-table tbody td:nth-child(3),
.sandol-customers-table tbody td:nth-child(4) {
  min-width: 170px;
}

.sandol-customers-table .sandol-actions-cell {
  min-width: 340px;
  white-space: nowrap;
}

.sandol-customers-table .sandol-actions-cell .btn {
  min-height: 34px;
  padding: 8px 10px;
  border-radius: 8px;
  box-shadow: none;
  font-weight: 800;
  text-transform: none;
}

.sandol-customers-table .sandol-actions-cell .btn-info {
  background: #eef9fb;
  color: #087f95;
}

.sandol-customers-table .sandol-actions-cell .btn-success {
  background: #e8f7ef;
  color: #16794c;
}

.sandol-customers-table .sandol-actions-cell .btn-warning {
  background: #fff7e6;
  color: #a15c00;
}

.sandol-customers-table .sandol-actions-cell .btn-danger {
  background: var(--sandol-danger-soft);
  color: var(--sandol-danger-dark);
}

.sandol-customers-table .sandol-empty-state {
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.sandol-customers-table .sandol-empty-state::before {
  content: "\f0c0";
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--sandol-blue-soft);
  color: var(--sandol-red-dark);
  font-family: "Font Awesome 6 Free";
  font-size: 22px;
  font-weight: 900;
}

.sandol-history-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

@media (max-width: 1199px) {
  .sandol-customer-history {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .sandol-history-item {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
}

.sandol-orders-panel {
  padding-top: 18px;
}

.sandol-orders-panel .table-responsive {
  padding: 0 24px 24px;
}

.sandol-order-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 14px;
}

.sandol-order-tabs a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sandol-muted);
  font-weight: 900;
}

.sandol-order-tabs a.is-active {
  border-color: #bfe5f7;
  background: var(--sandol-blue-soft);
  color: var(--sandol-red-dark);
}

.sandol-filter-grid {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
  padding: 0 24px 22px;
  border-bottom: 1px solid var(--sandol-line);
}

.sandol-filter-grid label {
  color: var(--sandol-ink);
  font-size: 12px;
  font-weight: 900;
}

.sandol-filter-grid .form-control {
  min-height: 42px;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background-image: none;
}

.sandol-filter-actions {
  display: inline-flex;
  gap: 8px;
  padding-bottom: 1rem;
}

.sandol-orders-table {
  min-width: 1120px;
}

.sandol-orders-table .sandol-empty-state {
  height: 260px;
  border-top: 1px solid var(--sandol-line);
  background: linear-gradient(180deg, #fff 0%, #fbfcfd 100%);
}

.sandol-orders-table .sandol-empty-state::before {
  content: "\f46d";
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: 8px;
  background: var(--sandol-blue-soft);
  color: var(--sandol-red-dark);
  font-family: "Font Awesome 6 Free";
  font-size: 22px;
  font-weight: 900;
}

.sandol-order-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.sandol-order-detail-grid article {
  padding: 14px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fbfcfd;
}

.sandol-order-detail-grid span,
.sandol-order-detail-grid p {
  display: block;
  margin: 0;
  color: var(--sandol-muted);
  font-size: 12px;
  font-weight: 700;
}

.sandol-order-detail-grid strong {
  display: block;
  margin: 6px 0;
  color: var(--sandol-ink);
  font-size: 18px;
  font-weight: 900;
}

.sandol-order-items-table {
  min-width: 900px;
}

.sandol-inline-item-form {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fbfcfd;
}

.sandol-form-button-slot {
  display: flex;
  align-items: flex-end;
}

@media (max-width: 1199px) {
  .sandol-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sandol-filter-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767px) {
  .sandol-filter-grid,
  .sandol-order-detail-grid {
    grid-template-columns: 1fr;
  }

  .sandol-order-tabs,
  .sandol-filter-grid {
    padding-right: 16px;
    padding-left: 16px;
  }
}

.sandol-quote-sheet-panel {
  overflow: hidden;
  padding: 0;
}

.sandol-quote-sheet-shell .sandol-hero {
  align-items: center;
  margin-bottom: 18px;
  padding: 20px 24px;
}

.sandol-quote-sheet-shell .sandol-hero h1 {
  font-size: 34px;
}

.sandol-quote-sheet-shell .sandol-hero p {
  margin-top: 8px;
}

.sandol-quote-sheet-shell .sandol-hero .btn {
  min-width: 180px;
}

.sandol-sheet-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1.35fr) minmax(180px, 0.75fr) repeat(3, minmax(112px, auto));
  gap: 12px;
  align-items: end;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--sandol-line);
  background: #fff;
}

.sandol-sheet-filter label {
  display: block;
  margin-bottom: 6px;
  color: var(--sandol-ink);
  font-size: 12px;
  font-weight: 900;
}

.sandol-sheet-filter .form-control {
  min-height: 38px;
  border: 1px solid #d8dde7;
  border-radius: 8px;
  background-image: none;
}

.sandol-sheet-summary {
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fbfcfd;
}

.sandol-sheet-summary span,
.sandol-sheet-summary strong {
  display: block;
}

.sandol-sheet-summary span {
  color: var(--sandol-muted);
  font-size: 12px;
  font-weight: 800;
}

.sandol-sheet-summary strong {
  margin-top: 4px;
  color: var(--sandol-ink);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}

.sandol-sheet-summary.is-live {
  border-color: #bfe5f7;
  background: #f2fbff;
}

.sandol-sheet-summary.is-live strong {
  color: var(--sandol-red-dark);
}

.sandol-sheet-help {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--sandol-line);
  background: #fbfcfd;
}

.sandol-sheet-help span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sandol-muted);
  font-size: 12px;
  font-weight: 800;
}

.sandol-sheet-loading {
  padding: 32px;
  color: var(--sandol-muted);
  font-weight: 800;
  text-align: center;
}

.sandol-sheet-wrap {
  max-height: calc(100vh - 285px);
  min-height: 500px;
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(255,255,255,1), rgba(255,255,255,0)) left / 24px 100% no-repeat,
    #fff;
}

.sandol-quote-sheet {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.sandol-quote-sheet th,
.sandol-quote-sheet td {
  height: 42px;
  min-width: 128px;
  padding: 0;
  border-right: 1px solid #e7ebf2;
  border-bottom: 1px solid #e7ebf2;
  background: #fff;
  vertical-align: middle;
}

.sandol-quote-sheet thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  height: 50px;
  padding: 8px 10px;
  background: #f8fafc;
  color: var(--sandol-ink);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.sandol-quote-sheet .is-code,
.sandol-quote-sheet .is-name {
  position: sticky;
  z-index: 3;
  padding: 8px 10px;
  border-right: 1px solid #dfe4ec;
  background: #fff;
  color: var(--sandol-ink);
  font-weight: 800;
}

.sandol-quote-sheet thead .is-code,
.sandol-quote-sheet thead .is-name {
  z-index: 5;
  background: #eef1f5;
}

.sandol-quote-sheet .is-code {
  left: 0;
  width: 96px;
  min-width: 96px;
  text-align: center;
}

.sandol-quote-sheet .is-name {
  left: 96px;
  width: 280px;
  min-width: 280px;
  white-space: normal;
}

.sandol-quote-sheet tbody .is-code {
  background: #f2fbff;
}

.sandol-quote-sheet tbody tr:hover td {
  background: #fffaf9;
}

.sandol-quote-sheet tbody tr:hover .is-code,
.sandol-quote-sheet tbody tr:hover .is-name {
  background: var(--sandol-blue-soft);
}

.sandol-quote-sheet .is-editable {
  padding: 4px;
}

.quote-cell {
  width: 100%;
  height: 32px;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: #f8fafc;
  color: var(--sandol-ink);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  box-shadow: inset 0 0 0 1px #d9dfe8;
}

.quote-cell:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px #bfc7d4;
}

.quote-cell:focus,
.quote-cell.is-active {
  outline: 0;
  border-color: var(--sandol-red);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(7, 133, 189, 0.12), inset 0 0 0 1px var(--sandol-red);
}

.quote-cell.has-value {
  background: #eefaf3;
  box-shadow: inset 0 0 0 1px #8fd6aa;
  color: #155c39;
}

.sandol-trace-code {
  display: inline-flex;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 8px;
  background: #eef1f5;
  color: var(--sandol-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.sandol-stock-bar {
  overflow: hidden;
  width: 128px;
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: #eef1f5;
}

.sandol-stock-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #16a05d;
}

.sandol-finished-trace-row td {
  background: #fbfcfd;
}

.sandol-trace-grid {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(320px, 1.4fr);
  gap: 12px;
  padding: 12px;
}

.sandol-trace-grid article {
  min-height: 128px;
  padding: 14px;
  border: 1px solid var(--sandol-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(31, 40, 54, 0.045);
}

.sandol-trace-grid span,
.sandol-trace-grid p,
.sandol-trace-grid small {
  display: block;
  margin: 0;
  color: var(--sandol-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.sandol-trace-grid span {
  color: var(--sandol-red-dark);
  font-weight: 900;
  text-transform: uppercase;
}

.sandol-trace-grid strong {
  display: block;
  margin: 7px 0 5px;
  color: var(--sandol-ink);
  font-size: 16px;
  font-weight: 900;
}

.sandol-trace-components div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.sandol-trace-components em {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f4f6f9;
  color: var(--sandol-ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.sandol-finished-trace-row .sandol-trace-components em {
  background: #f2fbff;
  color: var(--sandol-red-dark);
}

@media (max-width: 1199px) {
  .sandol-trace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1199px) {
  .sandol-sheet-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sandol-quote-sheet-shell .sandol-hero {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .sandol-quote-sheet-shell .sandol-hero h1 {
    font-size: 30px;
  }

  .sandol-quote-sheet-shell .sandol-hero .btn {
    width: 100%;
  }

  .sandol-sheet-toolbar {
    grid-template-columns: 1fr;
    padding-right: 16px;
    padding-left: 16px;
  }

  .sandol-sheet-help {
    padding-right: 16px;
    padding-left: 16px;
  }

  .sandol-sheet-wrap {
    max-height: calc(100vh - 330px);
    min-height: 420px;
  }
}
