.inventory-topbar {
  align-items: center;
  min-height: 100%;
  gap: 1rem;
}
.inventory-topbar > div {
  min-width: 0;
}
.inventory-topbar-start {
  flex: 1 1 auto;
}
.inventory-topbar-brand {
  display: none;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}
html[data-sidenav-size="offcanvas"] .inventory-topbar-brand {
  display: flex;
}
.inventory-topbar-brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: min(20rem, 42vw);
  min-width: 0;
  text-decoration: none;
  color: var(--ins-topbar-item-color);
}
.inventory-topbar-brand-link:hover {
  color: var(--ins-topbar-item-hover-color);
}
.inventory-topbar-brand-name {
  min-width: 0;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}
.inventory-topbar-brand .inventory-brand-image {
  max-width: 4.5rem;
  max-height: 2.25rem;
}
.inventory-topbar-page {
  color: var(--ins-topbar-item-color);
  font-size: 0.875rem;
  font-weight: 600;
  max-width: 16rem;
  padding-left: 0.75rem;
  border-left: 1px solid
    color-mix(in srgb, var(--ins-topbar-item-color) 20%, transparent);
}
.inventory-topbar-actions {
  flex: 0 0 auto;
  margin-left: auto;
}
html[data-bs-theme="light"] .inventory-theme-sun,
html[data-bs-theme="dark"] .inventory-theme-moon {
  display: none;
}
.inventory-company-menu {
  padding: 0.35rem 1rem 0.6rem;
}
.inventory-company-menu .form-select {
  width: 100%;
  max-width: none;
}
.inventory-profile-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.inventory-user-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--ins-primary-bg-subtle);
  color: var(--ins-primary);
  font-size: 0.8rem;
  font-weight: 700;
}
.inventory-user-name {
  max-width: 9rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.inventory-profile-menu {
  width: 16rem;
  max-width: calc(100vw - 1rem);
}
.inventory-theme-panel {
  width: min(26rem, 100vw);
}
.inventory-toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
  width: min(22rem, calc(100vw - 2rem));
  pointer-events: none;
}
.inventory-toast-container > .inventory-toast {
  margin-bottom: 0.5rem;
}
.inventory-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  padding: 0.8rem 0.85rem;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.7rem;
  background: var(--ins-body-bg);
  color: var(--ins-body-color);
  box-shadow: 0 0.55rem 1.5rem rgba(17, 29, 53, 0.14);
  pointer-events: auto;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}
.inventory-toast.showing {
  transform: translateY(-0.45rem);
}
.inventory-toast-icon {
  display: grid;
  place-items: center;
  flex: 0 0 1.85rem;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 0.5rem;
  font-size: 1.05rem;
}
.inventory-toast-success .inventory-toast-icon {
  color: var(--ins-success);
  background: var(--ins-success-bg-subtle);
}
.inventory-toast-error .inventory-toast-icon {
  color: var(--ins-danger);
  background: var(--ins-danger-bg-subtle);
}
.inventory-toast-warning .inventory-toast-icon {
  color: var(--ins-warning);
  background: var(--ins-warning-bg-subtle);
}
.inventory-toast-info .inventory-toast-icon {
  color: var(--ins-info);
  background: var(--ins-info-bg-subtle);
}
.inventory-toast-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.inventory-toast-copy strong {
  font-size: 0.78rem;
}
.inventory-toast-copy span {
  font-size: 0.76rem;
}
.inventory-toast-close {
  flex: 0 0 auto;
  margin: 0.12rem 0 0 auto;
  width: 0.65rem;
  height: 0.65rem;
  font-size: 0.62rem;
}
@media (max-width: 575.98px) {
  .inventory-toast-container {
    top: 0.65rem;
    right: 0.65rem;
    width: calc(100vw - 1.3rem);
  }
}
@media (prefers-reduced-motion: reduce) {
  .inventory-toast {
    transition: none;
  }
}
.appearance-editor {
  max-width: 70rem;
  margin-inline: auto;
}
.appearance-intro {
  margin: 0 0 1.1rem;
  color: var(--ins-secondary-color);
  font-size: 0.82rem;
}
.appearance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(17rem, 1fr);
  align-items: start;
  gap: 1rem;
}
.appearance-main,
.appearance-side {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.appearance-section,
.appearance-preview {
  min-width: 0;
  padding: 1.2rem;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.7rem;
  background: var(--ins-body-bg);
  box-shadow: 0 2px 8px rgba(17, 29, 53, 0.025);
}
.appearance-section-head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.appearance-section-head h6 {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.appearance-section-head p {
  margin: 0;
  color: var(--ins-secondary-color);
  font-size: 0.76rem;
  line-height: 1.4;
}
.appearance-section-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: var(--ins-primary-bg-subtle);
  color: var(--ins-primary);
  font-size: 1rem;
}
.theme-preset-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.2rem 0.15rem 0.4rem;
}
.theme-preset {
  display: grid;
  place-items: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 2px solid var(--ins-body-bg);
  border-radius: 50%;
  background: var(--theme-swatch);
  box-shadow: 0 0 0 1px var(--ins-border-color);
  color: #fff;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.theme-preset:hover {
  transform: translateY(-2px);
}
.theme-preset i {
  visibility: hidden;
  font-size: 0.9rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.theme-preset.active {
  box-shadow: 0 0 0 2px var(--ins-primary);
}
.theme-preset.active i {
  visibility: visible;
}
.theme-preset:focus-visible {
  outline: 2px solid var(--ins-primary);
  outline-offset: 3px;
}
.appearance-custom-color {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ins-border-color);
}
.appearance-color-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}
.appearance-color-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.5rem;
}
.appearance-color-copy {
  display: grid;
  gap: 0.1rem;
  min-width: 0;
}
.appearance-color-copy label {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
}
.appearance-color-copy button {
  width: max-content;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ins-primary);
  font-size: 0.72rem;
  cursor: pointer;
}
.appearance-color-copy button[hidden] {
  display: none;
}
.appearance-color-input {
  flex: 0 0 2.3rem;
  width: 2.3rem;
  height: 2.3rem;
  padding: 0.2rem;
  border: 1px solid var(--ins-border-color);
  border-radius: 50%;
  background: var(--ins-body-bg);
  cursor: pointer;
}
.appearance-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}
.appearance-color-input::-webkit-color-swatch {
  border: 0;
  border-radius: 50%;
}
.appearance-color-input::-moz-color-swatch {
  border: 0;
  border-radius: 50%;
}
.appearance-section .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.appearance-section .form-range {
  accent-color: var(--ins-primary);
}
.appearance-preview {
  padding: 1rem;
}
.appearance-preview-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
}
.appearance-preview-head i {
  color: var(--ins-primary);
}
.appearance-preview-window {
  display: flex;
  height: 7.5rem;
  overflow: hidden;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.45rem;
  background: var(--appearance-preview-page);
}
.appearance-preview-sidebar {
  width: 25%;
  background: var(--appearance-preview-sidebar);
  border-right: 1px solid var(--ins-border-color);
}
.appearance-preview-content {
  flex: 1;
  min-width: 0;
}
.appearance-preview-topbar {
  height: 1.6rem;
  background: var(--appearance-preview-header);
  border-bottom: 1px solid var(--ins-border-color);
}
.appearance-preview-lines {
  display: grid;
  gap: 0.5rem;
  justify-items: start;
  padding: 1rem;
}
.appearance-preview-lines span {
  display: block;
  width: 75%;
  height: 0.35rem;
  border-radius: 1rem;
  background: var(--appearance-preview-primary);
  opacity: 0.35;
}
.appearance-preview-lines span:nth-child(2) {
  width: 50%;
  opacity: 0.2;
}
.appearance-preview-lines b {
  padding: 0.25rem 0.6rem;
  border-radius: 0.25rem;
  background: var(--appearance-preview-button);
  color: #fff;
  font-size: 0.58rem;
}
.appearance-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ins-border-color);
}
.appearance-actions [data-theme-status] {
  font-size: 0.78rem;
}
.inventory-theme-panel .appearance-layout {
  grid-template-columns: 1fr;
}
.inventory-theme-panel .appearance-editor {
  max-width: none;
}
.inventory-theme-panel .appearance-section,
.inventory-theme-panel .appearance-preview {
  padding: 1rem;
}
@media (max-width: 991.98px) {
  .appearance-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575.98px) {
  .appearance-color-grid {
    grid-template-columns: 1fr;
  }
  .appearance-section {
    padding: 1rem;
  }
}
.inventory-logo {
  text-decoration: none;
  padding: 0 1.25rem;
  text-align: left;
}
.inventory-logo .logo-lg {
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
}
.inventory-logo-mark {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: var(--ins-primary);
  color: #fff;
  line-height: 1;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.inventory-logo-mark[hidden],
.inventory-brand-image[hidden] {
  display: none !important;
}
.inventory-logo-name {
  color: var(--ins-sidenav-item-color);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.inventory-logo:hover .inventory-logo-name {
  color: var(--ins-sidenav-item-hover-color);
  opacity: 0.85;
}
.inventory-brand-image {
  display: block;
  width: auto;
  max-width: 4rem;
  height: auto;
  max-height: 2.25rem;
  object-fit: contain;
  flex: 0 1 auto;
}
.sidenav-menu .side-nav {
  padding-top: 0.65rem;
}
.sidenav-menu .side-nav-title {
  padding-top: 1rem;
}
.sidenav-menu .side-nav-item.active > .side-nav-link {
  font-weight: 600;
}
html[data-sidenav-size="condensed"] .inventory-logo {
  padding: 0;
  text-align: center;
}
html[data-sidenav-size="condensed"] .inventory-logo .logo-lg {
  display: none !important;
}
html[data-sidenav-size="condensed"] .inventory-logo .logo-sm {
  display: inline-grid;
  vertical-align: middle;
}
/* UBold's condensed preset forces 1900px, creating page overflow even when content fits. */
html[data-sidenav-size="condensed"] .content-page {
  min-height: calc(100vh - calc(var(--ins-topbar-height) + 1px));
}
/* Keep collapsed navigation anchored while long report/content pages scroll. */
html[data-sidenav-size="condensed"] .sidenav-menu {
  position: fixed;
}
[data-auth-page="true"] .otp-contact {
  color: var(--ins-body-color);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
[data-auth-page="true"] .otp-code-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
}
[data-auth-page="true"] .otp-digit {
  min-width: 0;
  height: 3.25rem;
  padding: 0.25rem;
  border-radius: 0.45rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
}
[data-auth-page="true"] .otp-digit:focus {
  border-color: var(--ins-primary);
  box-shadow: 0 0 0 0.15rem rgba(var(--ins-primary-rgb), 0.18);
}
@media (max-width: 420px) {
  [data-auth-page="true"] .otp-code-grid {
    gap: 0.35rem;
  }
  [data-auth-page="true"] .otp-digit {
    height: 2.85rem;
    font-size: 1.1rem;
  }
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.page-heading > div:first-child {
  min-width: 0;
}
.page-heading h1 {
  font-size: 1.5rem;
  margin: 0;
}
.nav-bordered {
  overflow-x: auto;
  flex-wrap: nowrap;
  white-space: nowrap;
}
.nav-bordered .nav-link {
  cursor: pointer;
}
.tab-pane .card {
  box-shadow: 0 2px 10px rgba(17, 29, 53, 0.05);
}
.settings-tabs {
  gap: 0.25rem;
  border-bottom: 1px solid var(--ins-border-color);
}
.settings-tabs .nav-link {
  padding: 0.8rem 1rem;
  font-weight: 600;
}
.settings-software .card {
  border: 1px solid var(--ins-border-color);
  box-shadow: 0 2px 10px rgba(17, 29, 53, 0.04);
}
.settings-software .card-header {
  padding: 1.15rem 1.35rem;
}
.settings-software .card-body {
  padding: 1.35rem;
}
.settings-software .form-label {
  font-weight: 600;
  margin-bottom: 0.45rem;
}
.settings-software .form-control:not(.form-control-color),
.settings-software .form-select {
  min-height: 2.5rem;
}
.settings-software .form-control-color {
  width: 3.2rem;
  min-width: 3.2rem;
  height: 2.5rem;
  padding: 0.35rem;
}
.settings-brand-preview {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.5rem;
  background: var(--ins-tertiary-bg);
}
.settings-brand-icon,
.settings-option-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  border-radius: 0.5rem;
  background: var(--ins-primary-bg-subtle);
  color: var(--ins-primary);
  font-size: 1.35rem;
}
.settings-color-preview {
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  border: 3px solid var(--ins-body-bg);
  border-radius: 0.5rem;
  box-shadow: 0 0 0 1px var(--ins-border-color);
}
.settings-company-details > div {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.4rem;
  overflow-wrap: anywhere;
}
.settings-company-details small {
  margin-bottom: 0.2rem;
}
.settings-logo-preview {
  display: grid;
  place-items: center;
  min-height: 8rem;
  border: 1px dashed var(--ins-border-color);
  border-radius: 0.5rem;
  background: var(--ins-tertiary-bg);
  color: var(--ins-secondary-color);
}
.settings-logo-preview [hidden] {
  display: none !important;
}
.settings-asset-preview {
  display: grid;
  place-items: center;
  height: 5.5rem;
  border: 1px dashed var(--ins-border-color);
  border-radius: 0.5rem;
  background: var(--ins-tertiary-bg);
  color: var(--ins-secondary-color);
}
.settings-asset-preview img {
  display: block;
  max-width: 90%;
  max-height: 4.5rem;
  object-fit: contain;
}
.settings-asset-preview [hidden] {
  display: none !important;
}
.table-actions {
  display: flex;
  gap: 0.35rem;
  white-space: nowrap;
}
.table-responsive {
  min-height: 8rem;
}
.master-card-heading {
  justify-content: space-between;
  align-items: center;
  padding: 1.1rem 1.5rem;
}
.master-toolbar {
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.5rem;
}
.master-search-wrap {
  position: relative;
  width: min(100%, 280px);
}
.master-search-wrap > i {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  color: var(--ins-secondary-color);
  font-size: 1.1rem;
  pointer-events: none;
}
.master-search-wrap .form-control {
  padding-left: 2.45rem;
}
.master-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}
.master-filters .form-select {
  width: auto;
  min-width: 8.5rem;
}
.master-filters #master-size {
  min-width: 5rem;
}
.master-table thead th {
  background: var(--ins-tertiary-bg);
  color: var(--ins-secondary-color);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.055em;
  white-space: nowrap;
  border-bottom: 1px solid var(--ins-border-color);
  padding: 0.85rem 1rem;
}
.master-table tbody td {
  padding: 0.9rem 1rem;
  vertical-align: middle;
}
.inventory-sr-number {
  width: 4.5rem;
  min-width: 4.5rem;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.master-table tbody tr:last-child td {
  border-bottom: 0;
}
.master-table .avatar-title {
  font-size: 1rem;
}
.master-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
}
.master-card .section-muted {
  color: var(--ins-secondary-color);
}
.master-footer .pagination .page-link {
  min-width: 2rem;
  text-align: center;
}
/* One pagination pattern across all registers: compact, separate square controls. */
.master-footer nav[id$="-pagination"] .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
.master-footer nav[id$="-pagination"] .page-link {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.35rem !important;
}
.master-footer nav[id$="-pagination"] .page-item.active .page-link {
  border-color: var(--ins-primary);
}
.po-list-card .card-header {
  padding: 1rem 1.5rem;
}
.po-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.po-list-toolbar #po-size {
  width: auto;
  min-width: 5rem;
}
.inward-list-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: 100%;
}
.inward-list-toolbar #inward-size {
  justify-self: end;
  width: 5.5rem;
  min-width: 5.5rem;
}
.inward-register-toolbar {
  grid-template-columns: minmax(16rem, 1fr) minmax(10rem, 12rem) minmax(
      10rem,
      12rem
    ) auto auto;
  gap: 0.6rem;
}
.inward-register-toolbar .master-search-wrap {
  width: 100%;
  min-width: 0;
}
.inward-register-toolbar .form-control,
.inward-register-toolbar .form-select,
.inward-register-toolbar .btn,
.inward-register-toolbar .input-group-text {
  min-height: 2.55rem;
}
.inward-register-toolbar .input-group {
  min-width: 0;
  flex-wrap: nowrap;
}
.inward-register-toolbar .input-group .form-control {
  min-width: 0;
}
.po-register-toolbar #po-size {
  justify-self: end;
  width: 5.5rem;
  min-width: 5.5rem;
}
.inspection-register-toolbar #inspection-size {
  justify-self: end;
  width: 5.5rem;
  min-width: 5.5rem;
}
.inspection-register-table > thead > tr > th,
.inspection-register-table > tbody > tr:not(.purchase-expanded-row) > td {
  padding: 0.65rem 0.6rem;
  vertical-align: middle;
}
.inspection-register-table > thead > tr > th {
  white-space: nowrap;
}
.inspection-register-table
  > tbody
  > tr:not(.purchase-expanded-row)
  > td:nth-child(5) {
  white-space: nowrap;
}
.inspection-register-table .purchase-item-table th,
.inspection-register-table .purchase-item-table td {
  padding: 0.5rem 0.65rem;
}
.inspection-register-table .inspection-progress-cell {
  min-width: 14rem;
}
.inspection-register-table .inspection-progress-cell .progress {
  height: 0.45rem;
  min-width: 6rem;
}
@media (max-width: 1050px) {
  .inward-register-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 12rem) minmax(
        10rem,
        12rem
      ) auto;
  }
  .inward-register-toolbar #inward-size {
    grid-column: 4;
  }
}
@media (max-width: 760px) {
  .inward-register-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .inward-register-toolbar .master-search-wrap {
    grid-column: 1 / -1;
  }
  .inward-register-toolbar #inward-size {
    grid-column: auto;
  }
}
@media (max-width: 480px) {
  .inward-register-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .inward-register-toolbar .input-group {
    grid-column: 1 / -1;
  }
}
.inward-list-toolbar #inspection-size {
  justify-self: end;
  width: 5.5rem;
  min-width: 5.5rem;
}
.inward-list-toolbar #rejection-size {
  justify-self: end;
  width: 5.5rem;
  min-width: 5.5rem;
}
.inward-list-toolbar #stock-size {
  justify-self: end;
  width: 5.5rem;
  min-width: 5.5rem;
}
.stock-filter {
  width: min(100%, 22rem);
}
.stock-filter-menu {
  min-width: min(22rem, 90vw);
}
.stock-level-cell {
  min-width: 13rem;
  white-space: normal;
}
.stock-level-progress {
  height: 0.45rem;
  flex: 1 1 4rem;
  min-width: 4rem;
  margin: 0.35rem 0;
}
.stock-level-healthy {
  background-color: var(--ins-success) !important;
  color: #fff;
}
.stock-level-adequate {
  background-color: var(--ins-purple, #6f42c1) !important;
  color: #fff;
}
.stock-level-medium {
  background-color: var(--ins-orange, #fd7e14) !important;
  color: #fff;
}
.stock-level-danger {
  background-color: var(--ins-danger) !important;
  color: #fff;
}
.stock-level-out {
  background-color: var(--ins-danger) !important;
  color: #fff;
}
.stock-level-badge {
  font-size: 0.7rem;
  white-space: normal;
  text-align: left;
  max-width: 9rem;
}
.report-filter-menu {
  min-width: min(22rem, 90vw);
}
.report-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.report-kpi-card {
  border: 1px solid var(--ins-border-color);
  box-shadow: 0 0.15rem 0.55rem rgba(17, 29, 53, 0.04);
  color: var(--ins-body-color);
}
.report-kpi-card:hover,
.report-kpi-card:focus-visible {
  border-color: var(--ins-primary);
  box-shadow: 0 0.3rem 1rem rgba(17, 29, 53, 0.1);
}
.report-kpi-card .card-body {
  padding: 0.9rem 1rem;
}
.report-kpi-card p {
  line-height: 1.3;
}
.report-donut-layout {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
}
.report-donut {
  width: 100%;
  max-width: 12rem;
}
.report-donut circle[role="button"] {
  cursor: pointer;
}
.report-donut circle[role="button"]:focus-visible {
  outline: 2px solid var(--ins-primary);
}
.report-donut-number {
  font-size: 1.7rem;
  font-weight: 700;
  fill: var(--ins-body-color);
}
.report-donut-caption,
.report-axis-label {
  font-size: 0.7rem;
  fill: var(--ins-secondary-color);
}
.report-donut-legend {
  display: grid;
  gap: 0.3rem;
}
.report-donut-legend .btn {
  padding: 0.25rem 0.45rem;
  font-size: 0.75rem;
}
.report-legend-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  flex: none;
}
.report-line-chart {
  display: block;
  width: 100%;
  height: auto;
  max-height: 14rem;
}
.report-metric-row {
  display: block;
  border: 0;
  background: transparent;
  padding: 0.3rem 0;
  color: var(--ins-body-color);
}
.report-metric-row .progress {
  height: 0.55rem;
}
@media (max-width: 575px) {
  .report-donut-layout {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .report-donut-legend {
    width: 100%;
  }
}
.report-list-toolbar #report-size {
  width: 5.5rem;
  min-width: 5.5rem;
}
#report-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
#report-pagination .page-link {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.35rem;
}
#report-pagination .page-item.active .page-link {
  border-color: var(--ins-primary);
}
#inward-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
#inward-pagination .page-link {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.35rem;
}
#inward-pagination .page-item.active .page-link {
  border-color: var(--ins-primary);
}
#inspection-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
#inspection-pagination .page-link {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.35rem;
}
#inspection-pagination .page-item.active .page-link {
  border-color: var(--ins-primary);
}
#rejection-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
#rejection-pagination .page-link {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.35rem;
}
#rejection-pagination .page-item.active .page-link {
  border-color: var(--ins-primary);
}
#stock-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
#stock-pagination .page-link {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.35rem;
}
#stock-pagination .page-item.active .page-link {
  border-color: var(--ins-primary);
}
@media (max-width: 575px) {
  .inward-list-toolbar .master-search-wrap {
    min-width: 0;
  }
}
.po-list-card .master-table:not(.purchase-list-table) tbody td:nth-child(4) {
  min-width: 13rem;
}
.po-list-card .po-list-received {
  min-width: 10rem;
  font-variant-numeric: tabular-nums;
}
.po-list-card .po-list-received-bar {
  height: 0.35rem;
  min-width: 5rem;
  max-width: 8rem;
}
.purchase-list-table thead th {
  padding: 0.7rem 0.8rem;
}
.purchase-list-table tbody td {
  padding: 0.7rem 0.8rem;
}
.po-list-card
  .purchase-list-table
  > tbody
  > tr:not(.purchase-expanded-row)
  > td:nth-child(5) {
  min-width: 10rem;
}
.purchase-list-table .po-list-items {
  max-width: 13rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.purchase-list-table .purchase-expand-cell {
  width: 2.75rem;
  min-width: 2.75rem;
  text-align: center;
  padding-inline: 0.35rem;
}
.purchase-list-table .purchase-expanded-row > td {
  padding: 0.35rem 0.8rem 0.8rem;
  background: var(--ins-tertiary-bg);
}
.purchase-list-table .purchase-expanded-content {
  background: var(--ins-body-bg);
  border: 1px solid var(--ins-border-color);
  border-radius: 0.4rem;
  padding: 0.35rem 0.5rem;
}
.purchase-list-table .purchase-item-table th {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  white-space: nowrap;
}
.purchase-list-table .purchase-item-table th,
.purchase-list-table .purchase-item-table td {
  padding: 0.5rem 0.65rem;
}
.inward-register-table {
  table-layout: fixed;
}
.inward-register-table > thead > tr > th,
.inward-register-table > tbody > tr:not(.purchase-expanded-row) > td {
  padding: 0.65rem 0.5rem;
  vertical-align: middle;
}
.inward-register-table > thead > tr > th {
  white-space: nowrap;
}
.inward-register-table > thead > tr > th:nth-child(1) {
  width: 4%;
}
.inward-register-table > thead > tr > th:nth-child(2) {
  width: 5%;
}
.inward-register-table > thead > tr > th:nth-child(3) {
  width: 14%;
}
.inward-register-table > thead > tr > th:nth-child(4) {
  width: 9%;
}
.inward-register-table > thead > tr > th:nth-child(5) {
  width: 11%;
}
.inward-register-table > thead > tr > th:nth-child(6),
.inward-register-table > thead > tr > th:nth-child(7) {
  width: 9%;
}
.inward-register-table > thead > tr > th:nth-child(8) {
  width: 14%;
}
.inward-register-table > thead > tr > th:nth-child(9) {
  width: 10%;
}
.inward-register-table > thead > tr > th:nth-child(10) {
  width: 15%;
}
.inward-register-table > tbody > tr:not(.purchase-expanded-row) > td {
  overflow-wrap: anywhere;
}
.inward-register-table
  > tbody
  > tr:not(.purchase-expanded-row)
  > td:nth-child(4) {
  white-space: nowrap;
}
.inward-register-table .inventory-sr-number {
  min-width: 0;
}
.inward-register-table .po-list-received {
  min-width: 0;
}
.inward-register-table .inward-actions {
  flex-wrap: nowrap;
  white-space: nowrap;
}
.inward-register-table .inward-actions .btn-icon {
  flex: none;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  display: inline-grid;
  place-items: center;
}
@media (max-width: 1200px) {
  .inward-register-table {
    min-width: 1200px;
  }
}
.report-list-card .master-table tbody td:nth-child(4) {
  min-width: 0;
}
.internal-list-card .master-table tbody td:nth-child(4) {
  min-width: 0;
}
.internal-register-toolbar #order-size {
  justify-self: end;
  width: 5.5rem;
  min-width: 5.5rem;
}
.internal-register-table {
  min-width: 1500px;
}
.internal-register-table
  > tbody
  > tr:not(.purchase-expanded-row)
  > td:nth-child(4) {
  min-width: 9rem;
}
.internal-register-table .internal-dispatch-progress {
  min-width: 9rem;
  font-variant-numeric: tabular-nums;
}
.internal-register-table .internal-dispatch-progress .progress {
  height: 0.35rem;
}
.internal-register-table .purchase-expanded-row > td {
  padding: 0.15rem 0.55rem 0.35rem;
}
.internal-register-table .purchase-expanded-content {
  padding: 0.1rem 0.3rem;
}
.internal-register-table .purchase-item-table th,
.internal-register-table .purchase-item-table td {
  padding: 0.25rem 0.45rem;
  line-height: 1.25;
}
.internal-list-card .po-list-toolbar #order-size {
  width: auto;
  min-width: 5rem;
}
.internal-list-card .master-table tbody td:last-child {
  min-width: 12rem;
}
.invoice-register-toolbar #order-size {
  justify-self: end;
  width: 5.5rem;
  min-width: 5.5rem;
}
.invoice-register-table {
  min-width: 1350px;
}
.invoice-register-table > thead > tr > th,
.invoice-register-table > tbody > tr:not(.purchase-expanded-row) > td {
  padding: 0.65rem 0.65rem;
  vertical-align: middle;
}
.invoice-register-table
  > tbody
  > tr:not(.purchase-expanded-row)
  > td:last-child {
  min-width: 10rem;
}
.invoice-register-table
  > tbody
  > tr:not(.purchase-expanded-row)
  > td:nth-child(5) {
  min-width: 13rem;
}
.invoice-register-table .purchase-item-table th,
.invoice-register-table .purchase-item-table td {
  padding: 0.4rem 0.55rem;
}
.invoice-register-table .invoice-dispatch-progress {
  min-width: 12rem;
  font-variant-numeric: tabular-nums;
}
.invoice-register-table .invoice-dispatch-progress .progress {
  height: 0.35rem;
}
.inward-list-toolbar #order-size {
  justify-self: end;
  width: 5.5rem;
  min-width: 5.5rem;
}
#order-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
#order-pagination .page-link {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.35rem;
}
#order-pagination .page-item.active .page-link {
  border-color: var(--ins-primary);
}
.activity-list-card .master-table tbody td:nth-child(4) {
  min-width: 0;
}
.activity-filters {
  display: grid;
  width: 100%;
  grid-template-columns: minmax(16rem, 1.7fr) repeat(4, minmax(9rem, 1fr));
  gap: 0.85rem 1rem;
  align-items: end;
}
.activity-filters > div {
  min-width: 0;
}
.activity-filters .master-search-wrap {
  width: 100%;
  min-width: 0;
}
.activity-filter-size {
  justify-self: end;
  width: min(100%, 11rem);
}
.activity-filter-from {
  grid-column: 1;
  width: min(100%, 14rem);
}
.activity-filter-to {
  grid-column: 2;
  width: min(100%, 14rem);
}
.activity-filter-clear {
  grid-column: 3;
  justify-self: start;
}
@media (max-width: 1199px) {
  .activity-filters {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .activity-filter-search {
    grid-column: span 2;
  }
  .activity-filter-clear {
    grid-column: 3;
  }
}
@media (max-width: 700px) {
  .activity-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .activity-filter-size {
    justify-self: stretch;
    width: 100%;
  }
  .activity-filter-from,
  .activity-filter-to {
    grid-column: auto;
  }
  .activity-filter-clear {
    grid-column: 1 / -1;
    justify-self: start;
  }
}
@media (max-width: 450px) {
  .activity-filters {
    grid-template-columns: minmax(0, 1fr);
  }
  .activity-filter-search,
  .activity-filter-clear {
    grid-column: auto;
  }
}
.activity-list-card .activity-detail {
  min-width: 20rem;
  max-width: 32rem;
  white-space: normal;
  overflow-wrap: anywhere;
}
#activity-pagination .pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
}
#activity-pagination .page-link {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  padding: 0;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.35rem;
}
#activity-pagination .page-item.active .page-link {
  border-color: var(--ins-primary);
}
.internal-step {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-right: 0.65rem;
  border-radius: 50%;
  background: var(--ins-primary-bg-subtle);
  color: var(--ins-primary);
  font-size: 0.8rem;
  font-weight: 700;
}
.internal-customer-preview {
  padding: 0.9rem 1rem;
  border: 1px solid var(--ins-border-color);
  border-radius: var(--ins-border-radius);
  background: var(--ins-tertiary-bg);
  font-size: 0.82rem;
}
#internal-drop.is-dragging {
  border-color: var(--ins-primary);
  background: var(--ins-primary-bg-subtle);
}
.dispatch-order-card {
  width: min(16rem, 100%);
  padding: 0.75rem;
  border: 1px solid var(--ins-border-color);
  border-radius: var(--ins-border-radius);
  background: var(--ins-body-bg);
  color: var(--ins-body-color);
  text-align: left;
}
.dispatch-order-card:hover,
.dispatch-order-card.is-selected {
  border-color: var(--ins-primary);
  background: var(--ins-primary-bg-subtle);
}
.dispatch-item-card {
  border: 1px solid var(--ins-border-color);
  border-radius: var(--ins-border-radius);
  overflow: hidden;
}
.dispatch-item-heading {
  background: var(--ins-tertiary-bg);
}
.dispatch-pending-badge,
.dispatch-selected-badge {
  font-size: 0.7rem;
}
.dispatch-item-card .table {
  min-width: 650px;
}
.dispatch-item-card .dispatch-quantity {
  min-width: 7rem;
}
.dispatch-editor-modal .dispatch-item-heading {
  padding: 0.7rem 0.85rem !important;
}
.dispatch-editor-modal .dispatch-item-card {
  margin-bottom: 0.7rem !important;
}
.dispatch-editor-modal .dispatch-item-card .table th,
.dispatch-editor-modal .dispatch-item-card .table td {
  padding: 0.5rem 0.65rem;
}
.dispatch-editor-modal .dispatch-items-table th,
.dispatch-editor-modal .dispatch-items-table td {
  padding: 0.65rem 0.75rem;
}
.dispatch-editor-modal .dispatch-items-table th:first-child {
  width: 32%;
}
.dispatch-editor-modal .dispatch-items-table .dispatch-quantity {
  min-width: 7rem;
}
@media (max-width: 767px) {
  .dispatch-editor-modal .dispatch-items-table {
    min-width: 680px;
  }
}
.dispatch-summary-hint {
  padding: 0.55rem 0.65rem;
  border-radius: var(--ins-border-radius);
  background: var(--ins-tertiary-bg);
}
.dispatch-stock-dialog {
  border: 1px solid var(--ins-border-color);
  border-radius: 0.75rem;
  box-shadow: 0 1rem 3rem rgba(17, 29, 53, 0.16);
}
.dispatch-stock-icon {
  display: grid;
  place-items: center;
  flex: 0 0 2.7rem;
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 0.7rem;
  background: var(--ins-warning-bg-subtle);
  color: var(--ins-warning);
  font-size: 1.35rem;
}
.dispatch-stock-warning-card {
  padding: 1rem;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.6rem;
  background: var(--ins-tertiary-bg);
}
.dispatch-stock-warning-card strong {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 0.92rem;
}
.dispatch-stock-warning-values {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.dispatch-stock-warning-values > div {
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.45rem;
  background: var(--ins-body-bg);
}
.dispatch-stock-warning-values small {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--ins-secondary-color);
}
.dispatch-stock-warning-values b {
  font-size: 0.95rem;
}
.dispatch-stock-warning-card p {
  margin: 0.8rem 0 0;
  color: var(--ins-warning-text-emphasis);
  font-size: 0.81rem;
}
@media (max-width: 420px) {
  .dispatch-stock-warning-values {
    grid-template-columns: 1fr;
  }
}
.po-form .po-form-card > .card-header {
  padding: 1rem 1.25rem;
}
.po-form .po-form-card > .card-body {
  padding: 1.25rem;
}
.po-editor-modal .modal-dialog {
  width: calc(100vw - 2rem);
  max-width: 1760px;
}
.po-editor-modal .modal-content {
  max-height: calc(100vh - 2rem);
}
.po-editor-modal #po-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.po-editor-modal .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  background: var(--ins-tertiary-bg);
}
.po-editor-modal .modal-body .card {
  margin-bottom: 0.85rem;
}
.po-editor-modal .modal-body .card:last-child {
  margin-bottom: 0;
}
.po-editor-modal .po-form-card {
  border: 1px solid var(--ins-border-color);
  border-radius: 0.65rem;
  background: var(--ins-body-bg);
  overflow: visible;
  box-shadow: 0 0.15rem 0.55rem rgba(17, 29, 53, 0.035);
}
.po-editor-modal .modal-header,
.po-editor-modal .modal-footer {
  flex-shrink: 0;
}
.po-editor-modal .modal-footer {
  border-top: 1px solid var(--ins-border-color);
}
.po-item-pickers {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: 0.6rem;
  align-items: start;
}
.po-item-pickers select {
  width: 100%;
  min-width: 0;
}
.po-item-pickers .po-item-choice {
  min-width: 0;
}
.po-editor-modal .po-lines-table {
  min-width: 1260px;
  table-layout: fixed;
}
.po-editor-modal .po-lines-table th:nth-child(1) {
  width: 36%;
}
.po-editor-modal .po-lines-table th:nth-child(2),
.po-editor-modal .po-lines-table th:nth-child(4) {
  width: 10%;
}
.po-editor-modal .po-lines-table th:nth-child(3),
.po-editor-modal .po-lines-table th:nth-child(5),
.po-editor-modal .po-lines-table th:nth-child(6) {
  width: 8%;
}
.po-editor-modal .po-lines-table th:nth-child(7) {
  width: 12%;
}
.po-editor-modal .po-lines-table th:nth-child(8) {
  width: 8%;
}
.po-editor-modal .po-lines-table thead th {
  padding: 0.65rem 0.6rem;
}
.po-editor-modal .po-lines-table tbody td,
.po-editor-modal .po-lines-table tbody td:first-child {
  min-width: 0;
  padding: 0.65rem 0.6rem;
  vertical-align: top;
}
.po-editor-modal .po-lines-table .form-control,
.po-editor-modal .po-lines-table .form-select {
  width: 100%;
  min-width: 0;
}
.po-editor-modal .po-lines-table .po-amount {
  padding-top: 1rem;
}
.po-editor-modal .po-form-card > .card-header {
  padding: 0.8rem 1rem;
  background: transparent;
}
.po-editor-modal .po-form-card > .card-body {
  padding: 1rem;
}
.po-editor-modal .po-form-card .form-label {
  margin-bottom: 0.35rem;
}
.po-editor-modal .po-form textarea.form-control {
  min-height: 4.25rem !important;
}
.po-date-field {
  position: relative;
}
.po-date-field input.flatpickr-input {
  display: block !important;
  width: 100%;
}
.po-date-control {
  display: flex;
  align-items: stretch;
}
.po-date-control .form-control {
  flex: 1 1 auto;
  min-width: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.po-date-control .btn {
  flex: none;
  border: 1px solid var(--ins-border-color);
  border-left: 0;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.po-date-field .flatpickr-calendar.inline {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 1080;
  display: none;
  width: min(308px, calc(100vw - 2.5rem));
  box-shadow: 0 0.8rem 2rem rgba(17, 29, 53, 0.18);
}
.po-date-field.is-open .flatpickr-calendar.inline {
  display: block;
}
.po-date-static .flatpickr-calendar.inline {
  display: none !important;
}
.po-date-static input.flatpickr-input {
  background: var(--ins-secondary-bg);
  cursor: default;
}
.po-date-field .form-control.is-invalid {
  border-color: var(--ins-danger);
}
.po-quotation-file-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.po-quotation-file-row .form-control {
  flex: 1 1 auto;
  min-width: 0;
}
.po-quotation-file-row .btn {
  flex: none;
}
.po-quotation-file-row [hidden] {
  display: none !important;
}
.po-quotation-preview .modal-dialog {
  max-width: min(1100px, calc(100vw - 1.5rem));
}
.po-quotation-preview .modal-content {
  max-height: calc(100vh - 1.5rem);
}
.po-quotation-preview .modal-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(68vh, 680px);
  padding: 0.75rem;
  background: var(--ins-tertiary-bg);
  overflow: auto;
}
.po-quotation-preview-frame {
  width: 100%;
  height: min(68vh, 680px);
  border: 0;
  border-radius: 0.35rem;
  background: var(--ins-body-bg);
}
.po-quotation-preview-image {
  display: block;
  max-width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 0.35rem;
}
@media (max-width: 575px) {
  .po-quotation-preview .modal-body {
    min-height: 55vh;
  }
  .po-quotation-preview-frame {
    height: 55vh;
  }
}
.po-detail-page #po-print {
  width: 100%;
  max-width: none;
  margin: 0;
}
.po-detail-page .page-heading {
  margin-bottom: 0.65rem;
  gap: 0.75rem;
}
.po-detail-page .page-heading h1 {
  margin: 0.15rem 0;
  font-size: 1.45rem;
}
.po-detail-page .page-heading > div:last-child {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}
.po-detail-page #po-print > .card,
.po-detail-page #po-print > .row {
  margin-bottom: 0.7rem !important;
}
.po-detail-page .card {
  margin-bottom: 0;
  border: 1px solid var(--ins-border-color);
  box-shadow: 0 0.15rem 0.55rem rgba(17, 29, 53, 0.035);
}
.po-detail-page .row > [class*="col-"] > .card {
  height: 100%;
}
.po-detail-page .card-header {
  padding: 0.55rem 0.85rem;
}
.po-detail-page .card-body {
  padding: 0.7rem 0.85rem;
}
.po-detail-page .po-journey-dot {
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.2rem;
}
.po-detail-page .po-journey::before {
  top: 1rem;
}
.po-detail-page .po-receiving-stat {
  padding: 0.5rem 0.6rem;
}
.po-detail-page .po-receiving-stat .value {
  margin-top: 0.15rem;
  font-size: 1.1rem;
}
.po-detail-page .po-item-list,
.po-detail-page .po-related-list {
  overflow: visible;
}
.po-detail-page .po-item-progress {
  padding: 0.45rem 0.65rem;
}
.po-detail-page .po-item-progress + .po-item-progress {
  margin-top: 0.4rem;
}
.po-detail-page .po-progress-trigger > div:first-child {
  margin-bottom: 0.35rem !important;
}
.po-detail-page .table th,
.po-detail-page .table td {
  white-space: nowrap;
  padding: 0.45rem 0.6rem;
}
@media (max-width: 575px) {
  .po-detail-page .page-heading > div:last-child {
    width: 100%;
  }
  .po-detail-page .po-journey-note {
    line-height: 1.15;
  }
}
.po-summary-modal .modal-body > div:last-child {
  font-size: 1.1rem;
  color: var(--ins-primary);
}
@media (max-width: 575px) {
  .po-editor-modal .modal-dialog {
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
  }
  .po-editor-modal .modal-content {
    max-height: 100vh;
    height: 100vh;
    border-radius: 0;
  }
  .po-editor-modal .modal-footer {
    align-items: stretch;
  }
  .po-editor-modal .modal-footer > div {
    width: 100%;
  }
  .po-editor-modal .modal-footer .btn {
    flex: 1 1 auto;
  }
}
.report-badge-purple {
  background: #7952b3;
  color: #fff;
}
.report-table-progress {
  min-width: 4rem;
  max-width: 7rem;
  height: 0.4rem;
}
.dispatch-form .po-form-card > .card-header {
  padding: 0.75rem 1rem;
}
.dispatch-form .po-form-card > .card-body {
  padding: 1rem;
}
@media (min-width: 1200px) {
  .dispatch-form > .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
  .dispatch-form > .row > [class*="col-"] {
    width: auto;
    min-width: 0;
  }
}
.po-form .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.po-form .form-control:not(.form-control-sm),
.po-form .form-select:not(.form-select-sm) {
  min-height: 2.55rem;
}
.po-form textarea.form-control {
  min-height: 6rem !important;
}
.po-file-field {
  padding: 1rem;
  border: 1px dashed var(--ins-border-color);
  border-radius: var(--ins-border-radius);
  background: var(--ins-tertiary-bg);
}
.po-file-field .form-control {
  background: var(--ins-body-bg);
}
.grn-po-menu {
  width: 100%;
  max-height: min(28rem, 65vh);
  overflow-y: auto;
}
.grn-po-menu .master-search-wrap {
  min-width: 12rem;
}
.grn-po-status {
  width: auto;
  min-width: 9rem;
}
.grn-po-options {
  max-height: 19rem;
  overflow-y: auto;
}
.grn-po-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--ins-border-color);
  border-radius: 0.35rem;
  cursor: pointer;
}
.grn-po-choice + .grn-po-choice {
  margin-top: 0.35rem;
}
.grn-po-choice:hover,
.grn-po-choice.is-selected {
  background: var(--ins-primary-bg-subtle);
  border-color: var(--ins-primary);
}
.grn-po-choice .form-check-input {
  flex: none;
  margin-top: 0.15rem;
}
.grn-editor-modal #grn-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.inspection-editor-modal #inspection-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.internal-editor-modal #internal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.dispatch-editor-modal #dispatch-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.dispatch-editor-modal .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
}
.dispatch-editor-modal .modal-footer {
  flex-shrink: 0;
}
.dispatch-order-options {
  max-height: 16rem;
  overflow-y: auto;
}
.dispatch-order-menu .dropdown-item {
  white-space: normal;
}
.internal-editor-modal .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
}
.internal-editor-modal .modal-footer {
  flex-shrink: 0;
}
.internal-editor-modal .internal-lines-table {
  min-width: 0;
  table-layout: fixed;
}
.internal-editor-modal .internal-lines-table th:nth-child(1) {
  width: 5%;
}
.internal-editor-modal .internal-lines-table th:nth-child(2) {
  width: 14%;
}
.internal-editor-modal .internal-lines-table th:nth-child(3) {
  width: 25%;
}
.internal-editor-modal .internal-lines-table th:nth-child(4),
.internal-editor-modal .internal-lines-table th:nth-child(5),
.internal-editor-modal .internal-lines-table th:nth-child(7) {
  width: 8%;
}
.internal-editor-modal .internal-lines-table th:nth-child(6) {
  width: 9%;
}
.internal-editor-modal .internal-lines-table th:nth-child(8) {
  width: 6%;
}
.internal-editor-modal .internal-lines-table th:nth-child(9) {
  width: 10%;
}
.internal-editor-modal .internal-lines-table th:nth-child(10) {
  width: 7%;
}
.internal-editor-modal .internal-lines-table td {
  padding: 0.65rem 0.5rem;
  vertical-align: top;
  min-width: 0;
}
.internal-editor-modal .internal-lines-table .form-control,
.internal-editor-modal .internal-lines-table .form-select {
  min-width: 0;
  width: 100%;
}
.internal-editor-modal .internal-lines-table .internal-item {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.internal-editor-modal .select2-container {
  width: 100% !important;
}
.internal-editor-modal .select2-selection--single {
  min-height: 2.55rem;
  display: flex;
  align-items: center;
  border-color: var(--ins-border-color);
  border-radius: var(--ins-border-radius);
}
.internal-editor-modal .select2-selection__rendered {
  padding-left: 0.75rem !important;
  padding-right: 2rem !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.internal-editor-modal .select2-selection__arrow {
  top: 0 !important;
  height: 100% !important;
}
.internal-editor-modal .select2-dropdown {
  z-index: 1060;
  border-color: var(--ins-border-color);
}
.internal-editor-modal .select2-results__options {
  max-height: min(16rem, 35vh) !important;
  overflow-y: auto;
}
.internal-editor-modal .internal-lines-table .select2-selection--single {
  min-height: 1.95rem;
  font-size: 0.78rem;
}
.internal-editor-modal .select2-container--focus .select2-selection--single {
  border-color: var(--ins-primary);
}
.internal-editor-modal .internal-stock-note {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.internal-editor-modal .internal-stock-note.alert {
  padding: 0.4rem 0.5rem;
  margin-bottom: 0;
}
@media (max-width: 1100px) {
  .internal-editor-modal .internal-lines-table {
    min-width: 960px;
  }
}
.inspection-editor-modal .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
}
.inspection-editor-modal .modal-footer {
  flex-shrink: 0;
}
.inspection-editor-modal .select2-container {
  width: 100% !important;
}
.inspection-editor-modal .inspection-item-field {
  position: relative;
  min-width: 0;
}
.inspection-editor-modal .inspection-item-toggle {
  min-height: 2.55rem;
  cursor: pointer;
}
.inspection-editor-modal .inspection-item-picker {
  margin-top: 0.35rem;
  background: var(--ins-body-bg);
}
.inspection-editor-modal .inspection-item-picker[hidden] {
  display: none;
}
.inspection-editor-modal .inspection-item-options {
  max-height: 12rem;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.inspection-editor-modal .inspection-item-choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  border-bottom: 1px solid var(--ins-border-color);
}
.inspection-editor-modal .inspection-item-choice:last-child {
  border-bottom: 0;
}
.inspection-editor-modal .inspection-item-choice:hover,
.inspection-editor-modal .inspection-item-choice.is-selected {
  background: var(--ins-primary-bg-subtle);
}
.inspection-editor-modal .inspection-item-choice .form-check-input {
  flex: none;
  margin: 0;
}
.inspection-editor-modal .inspection-item-chip {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inspection-editor-modal #inspection-item-count {
  min-height: 1.2rem;
  margin-top: 0.3rem;
}
.inspection-editor-modal
  .select2-selection--multiple
  .select2-selection__choice {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.inspection-editor-modal .select2-selection--single,
.inspection-editor-modal .select2-selection--multiple {
  min-height: 2.55rem;
  border-color: var(--ins-border-color);
  border-radius: var(--ins-border-radius);
}
.inspection-editor-modal .select2-selection--single .select2-selection__arrow {
  top: 0;
  height: 100%;
}
.inspection-editor-modal
  .select2-selection--single
  .select2-selection__arrow
  b {
  position: static;
  margin: 0;
}
.inspection-editor-modal
  .select2-selection--multiple
  .select2-selection__rendered {
  max-height: 5.2rem;
  overflow-y: auto;
}
.inspection-editor-modal .select2-results__options {
  max-height: min(18rem, 40vh) !important;
  overflow-y: auto;
}
.inspection-editor-modal .inspection-lines-table {
  min-width: 880px;
}
.inspection-editor-modal .inspection-lines-table th,
.inspection-editor-modal .inspection-lines-table td {
  padding: 0.55rem 0.7rem;
  vertical-align: middle;
}
.inspection-editor-modal .inspection-lines-table th:nth-child(2) {
  min-width: 16rem;
}
.inspection-editor-modal .inspection-lines-table th:nth-child(6) {
  min-width: 13rem;
}
.inspection-editor-modal .inspection-lines-table .inspection-accepted {
  min-width: 7rem;
  max-width: 9rem;
}
.grn-editor-modal .modal-body {
  flex: 1 1 auto;
  overflow-y: auto;
}
.grn-editor-modal .modal-footer {
  flex-shrink: 0;
}
.grn-editor-modal .grn-lines-table {
  min-width: 900px;
}
.grn-editor-modal .grn-lines-table th,
.grn-editor-modal .grn-lines-table td {
  padding: 0.6rem 0.7rem;
  vertical-align: middle;
}
.grn-editor-modal .grn-lines-table th:nth-child(2) {
  min-width: 17rem;
}
.grn-editor-modal .grn-lines-table th:last-child {
  min-width: 10rem;
}
.grn-editor-modal .grn-lines-table input[data-line] {
  max-width: 9rem;
}
.grn-editor-modal #grn-po-picker {
  max-width: 56rem;
}
.grn-editor-modal #grn-po-toggle {
  min-height: 2.55rem;
}
.grn-editor-modal .grn-vendor-field {
  position: relative;
  min-width: 0;
}
.grn-editor-modal .grn-vendor-field .select2-container {
  width: 100% !important;
}
.grn-editor-modal .grn-vendor-field .select2-selection--single {
  min-height: 2.55rem;
  display: flex;
  align-items: center;
  border-color: var(--ins-border-color);
  border-radius: var(--ins-border-radius);
}
.grn-editor-modal .grn-vendor-field .select2-selection__rendered {
  padding-left: 0.75rem;
  padding-right: 2rem;
}
.grn-editor-modal .grn-vendor-field .select2-selection__arrow {
  top: 0;
  height: 100%;
  transform: none;
}
.grn-editor-modal .grn-vendor-field .select2-selection__arrow b {
  position: static;
  margin: 0;
}
.grn-editor-modal .select2-dropdown {
  z-index: 1060;
  border-color: var(--ins-border-color);
}
.grn-editor-modal .select2-results__options {
  max-height: min(16rem, 35vh) !important;
  overflow-y: auto;
}
.grn-editor-modal .po-form-card > .card-body.row {
  width: 100%;
  margin: 0;
}
.grn-editor-modal #grn-invoice-preview:empty,
.grn-editor-modal #grn-mtc-previews:empty {
  display: none !important;
}
#grn-summary {
  max-height: 70vh;
  overflow-y: auto;
}
@media (max-width: 575px) {
  .grn-editor-modal .modal-footer {
    align-items: stretch;
  }
  .grn-editor-modal .modal-footer > div {
    width: 100%;
  }
  .grn-editor-modal .modal-footer .btn {
    flex: 1 1 auto;
  }
}
.po-lines-table {
  min-width: 900px;
}
.po-lines-table thead th {
  color: var(--ins-secondary-color);
  font-size: 0.7rem;
  letter-spacing: 0.055em;
  white-space: nowrap;
  padding: 0.85rem 1rem;
}
.po-lines-table tbody td {
  padding: 0.85rem 0.65rem;
  vertical-align: middle;
}
.po-lines-table tbody td:first-child {
  min-width: 15rem;
}
.po-lines-table .po-amount {
  white-space: nowrap;
  font-weight: 600;
}
.po-summary-card #po-summary > div:last-child {
  font-size: 1.1rem;
  color: var(--ins-primary);
}
.master-editor .master-form-field .form-label {
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
}
.master-editor .master-form-field .form-control,
.master-editor .master-form-field .form-select {
  min-height: 2.55rem;
}
.master-editor .master-form-field textarea.form-control {
  min-height: 6rem;
}
.master-editor .master-check-card {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 2.55rem;
  padding: 0.7rem 1rem 0.7rem 2.75rem;
  border: 1px solid var(--ins-border-color);
  border-radius: var(--ins-border-radius);
  background: var(--ins-tertiary-bg);
}
.master-editor .master-check-card .form-check-input {
  margin-top: 0;
}
.master-editor .master-modal-compact {
  max-width: 680px;
}
.master-editor .modal-header {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid var(--ins-border-color);
}
.master-editor .modal-title {
  font-weight: 700;
}
.master-editor .modal-body {
  padding: 1.5rem;
}
.master-editor .modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--ins-border-color);
}
.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.65rem;
  max-height: 55vh;
  overflow: auto;
}
.permission-grid .form-check {
  padding: 0.55rem 0.65rem 0.55rem 2.2rem;
  border: 1px solid var(--bs-border-color);
  border-radius: 0.35rem;
}
#access-flags {
  max-height: none;
  overflow: visible;
}
.module-rights-board {
  grid-column: 1/-1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 1rem;
}
.module-rights-card {
  border: 1px solid var(--bs-border-color);
  border-top: 3px solid var(--rights-accent);
  border-radius: 0.4rem;
  overflow: hidden;
  min-width: 0;
  background: var(--bs-body-bg);
  box-shadow: 0 0.125rem 0.35rem rgba(15, 30, 50, 0.06);
}
.module-rights-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--rights-accent) 7%, var(--bs-body-bg));
}
.module-rights-head > i {
  color: var(--rights-accent);
  font-size: 1.25rem;
}
.module-rights-head .badge {
  margin-left: auto;
}
.module-rights-table {
  font-size: 0.84rem;
}
.module-rights-table th:first-child {
  min-width: 9rem;
}
.module-rights-table th:not(:first-child),
.module-rights-table td {
  text-align: center;
}
.module-rights-table tbody tr {
  border-top: 1px solid var(--bs-border-color);
}
.module-rights-table tbody th {
  font-weight: 500;
}
.module-rights-table .form-check-input {
  float: none;
  margin: 0;
  cursor: pointer;
  accent-color: var(--rights-accent);
}
.settings-editor-modal #mvc-modal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 3.5rem);
}
.settings-editor-modal .modal-header,
.settings-editor-modal .modal-footer {
  flex-shrink: 0;
}
.settings-editor-modal .modal-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}
@media (max-width: 991px) {
  .module-rights-board {
    grid-template-columns: 1fr;
  }
}
.section-muted {
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
}
.master-tabs {
  max-height: calc(100vh - 230px);
  overflow: auto;
}
.cursor-pointer {
  cursor: pointer;
}
.mvc-entry-dialog {
  max-width: min(1320px, calc(100vw - 2rem));
  height: calc(100vh - 2rem);
  margin: 1rem auto;
}
.mvc-entry-dialog .modal-content,
.mvc-entry-dialog #mvc-modal-form {
  height: 100%;
}
.mvc-entry-dialog #mvc-modal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.mvc-entry-dialog .modal-body {
  overflow-y: auto;
  flex: 1;
}
.internal-detail-dialog {
  max-width: min(1540px, calc(100vw - 2rem));
}
#internal-order-detail,
#invoice-detail {
  width: 100%;
  max-width: none;
  margin: 0;
}
#internal-order-detail .page-heading,
#invoice-detail .page-heading {
  margin-bottom: 0.1rem;
}
#internal-order-detail .internal-detail-heading h2,
#invoice-detail .internal-detail-heading h2 {
  font-size: 1.55rem;
}
#internal-order-detail .internal-detail-section .card,
#invoice-detail .internal-detail-section .card {
  height: 100%;
}
#internal-order-detail .internal-detail-section .card-header,
#invoice-detail .internal-detail-section .card-header {
  padding: 0.7rem 1rem;
}
#internal-order-detail .internal-detail-section .card-body,
#invoice-detail .internal-detail-section .card-body {
  padding: 0.85rem 1rem;
}
#internal-order-detail .internal-detail-section .table th,
#internal-order-detail .internal-detail-section .table td,
#invoice-detail .internal-detail-section .table th,
#invoice-detail .internal-detail-section .table td {
  padding: 0.55rem 0.7rem;
}
.internal-detail-modal .modal-body {
  padding: 1rem;
}
.internal-detail-modal #mvc-modal-body {
  --bs-gutter-y: 0.75rem;
}
.internal-detail-heading {
  margin-bottom: 0;
}
.internal-detail-heading h2 {
  font-size: 1.35rem;
}
.internal-detail-modal .modal-footer {
  justify-content: space-between;
  gap: 0.5rem;
}
.internal-detail-section .card {
  margin: 0;
  border: 1px solid var(--ins-border-color);
  box-shadow: 0 0.15rem 0.55rem rgba(17, 29, 53, 0.035);
}
.internal-detail-section .card-header {
  padding: 0.55rem 0.85rem;
  font-weight: 600;
}
.internal-detail-section .card-body {
  padding: 0.7rem 0.85rem;
}
.internal-detail-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}
.internal-detail-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
}
.internal-detail-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem 1rem;
}
.internal-detail-fact {
  min-width: 0;
  overflow-wrap: anywhere;
}
.internal-detail-section .table-responsive,
.internal-detail-section .d-flex.mt-3 {
  margin-top: 0 !important;
}
.internal-detail-section .table {
  margin-bottom: 0;
}
.internal-detail-section .table th,
.internal-detail-section .table td {
  padding: 0.4rem 0.55rem;
}
.internal-detail-items .table td:nth-child(3) {
  min-width: 13rem;
  white-space: normal;
}
@media (max-width: 767px) {
  .internal-detail-facts,
  .internal-detail-notes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 575px) {
  .internal-detail-facts,
  .internal-detail-totals,
  .internal-detail-notes {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 767px) {
  .mvc-entry-dialog {
    max-width: 100vw;
    height: 100vh;
    margin: 0;
  }
  .mvc-entry-dialog .modal-content {
    border-radius: 0;
  }
}
@media print {
  .app-topbar,
  .sidenav-menu,
  .page-heading .btn,
  .page-heading > div:last-child,
  #mvc-notices {
    display: none !important;
  }
  .content-page {
    margin: 0 !important;
    padding: 0 !important;
  }
  .content-page .container-fluid {
    padding: 0 !important;
  }
  #po-print .card {
    box-shadow: none !important;
    border: 1px solid #d0d5dc;
    break-inside: avoid;
  }
  #po-print .table-responsive {
    overflow: visible;
  }
  #po-print .page-heading {
    display: flex !important;
  }
  .po-detail-page #po-print {
    max-width: none;
  }
  .po-detail-page .po-item-list,
  .po-detail-page .po-related-list {
    max-height: none;
    overflow: visible;
  }
}
@media (max-width: 1199px) {
  .inventory-topbar-page {
    max-width: 12rem;
  }
  .inventory-topbar-brand-name {
    max-width: 9rem;
  }
}
@media (max-width: 767px) {
  .master-toolbar {
    align-items: stretch;
  }
  .master-search-wrap {
    width: 100%;
  }
  .master-filters {
    justify-content: flex-start;
  }
  .master-footer {
    align-items: flex-start;
  }
  .inventory-topbar {
    gap: 0.5rem;
    padding-inline: 0.75rem;
  }
  .inventory-topbar-brand {
    display: flex;
  }
  .inventory-topbar-page {
    padding-left: 0.25rem;
    max-width: 9rem;
  }
  .inventory-topbar-brand-name {
    display: none;
  }
}
@media (max-width: 575px) {
  .po-form-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  .po-form-actions .btn {
    white-space: nowrap;
  }
  .po-form-actions .btn:last-child {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .inventory-topbar-page {
    display: none;
  }
  .inventory-topbar-actions {
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
  }
  .inventory-topbar-brand .inventory-brand-image,
  .inventory-topbar-brand .inventory-logo-mark {
    width: 1.9rem;
    height: 1.9rem;
  }
}


/* Purchase Order searchable dropdowns */
.po-editor-modal .select2-container {
    width: 100% !important;
}

.po-editor-modal .select2-selection--single {
    min-height: 2.55rem;
    display: flex;
    align-items: center;
    border-color: var(--ins-border-color);
    border-radius: var(--ins-border-radius);
}

.po-editor-modal .select2-selection__rendered {
    padding-left: .75rem !important;
    padding-right: 2rem !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.po-editor-modal .select2-selection__arrow {
    top: 0 !important;
    height: 100% !important;
}

.po-editor-modal .select2-dropdown {
    z-index: 1060;
    border-color: var(--ins-border-color);
}

.po-editor-modal .select2-results__options {
    max-height: min(16rem, 35vh) !important;
    overflow-y: auto;
}

/* Smaller searchable dropdowns inside PO item rows */
.po-editor-modal .po-lines-table .select2-selection--single {
    min-height: 1.95rem;
    font-size: .78rem;
}
