/* ============================
   BASE
============================ */
@font-face {
  font-family: "Feature Mono";
  src: url("../fonts/featuremono-bold.ttf") format("truetype");
  font-style: normal;
  font-display: swap;
}
.balam-mobile-only {
  display: none !important;
}
body.balam-modal-open {
  overflow: hidden !important;
  overscroll-behavior: contain;
}
.balam-front-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  box-sizing: border-box;
}
.balam-client-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 40px;
  font-size: 14px;
  color: #333;
}
.balam-client-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
.balam-client-grid--equal {
  grid-template-columns: repeat(2, 1fr);
}
.balam-flex-between-start {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.balam-flex-row {
  display: flex;
}
.balam-flex-none {
  flex: 0 0 auto;
}
.balam-flex-auto {
  flex: 1 1 auto;
}
.balam-items-center {
  align-items: center;
}
.balam-items-start {
  align-items: flex-start;
}
.balam-items-end {
  align-items: flex-end;
}
.balam-width-full {
  width: 100%;
}
.balam-width-full > .balam-select {
  width: 100%;
}
.balam-cell-10 {
  width: 10%;
}
.balam-cell-20 {
  width: 20%;
}
.balam-cell-30 {
  width: 30%;
}
.balam-cell-40 {
  width: 40%;
}
.balam-cell-50 {
  width: 50%;
}
.balam-cell-60 {
  width: 60%;
}
.balam-cell-70 {
  width: 70%;
}
.balam-cell-80 {
  width: 80%;
}
.balam-cell-90 {
  width: 90%;
}
.balam-cell-100 {
  width: 100%;
}
.balam-cell-nowrap {
  white-space: nowrap;
}
.balam-table-fixed {
  table-layout: fixed;
}
.balam-min-w-180 {
  min-width: 180px;
}
.balam-grid-span-full {
  grid-column: 1 / -1;
}
.balam-grid-span-2 {
  grid-column: span 2;
}
.balam-grid-span-3 {
  grid-column: span 3;
}
.balam-m-0 {
  margin: 0;
}
.balam-mt-0 {
  margin-top: 0;
}
.balam-mb-4 {
  margin-bottom: 4px;
}
.balam-mb-8 {
  margin-bottom: 8px;
}
.balam-mb-10 {
  margin-bottom: 10px;
}
.balam-mt-10 {
  margin-top: 10px;
}
.balam-mb-20 {
  margin-bottom: 20px;
}
.balam-mt-20 {
  margin-top: 20px;
}
.balam-mt-30 {
  margin-top: 30px;
}
.balam-mr-auto {
  margin-right: auto;
}
.balam-self-center {
  align-self: center;
}
.balam-block {
  display: block;
}
.balam-min-w-0 {
  min-width: 0;
}
.balam-pt-10 {
  padding-top: 10px;
}
.balam-pt-20 {
  padding-top: 20px;
}
.balam-text-center {
  text-align: center;
}
.balam-textarea-150 {
  height: 150px;
  resize: vertical;
}
.balam-text-meta-12 {
  color: #333;
  font-size: 12px;
}
.balam-text-muted-reset {
  margin: 0;
  color: #959595;
}
.balam-heading-md {
  font-size: 20px;
  font-weight: 800;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.balam-heading-sm {
  font-size: 14px;
  font-weight: 700;
}
.balam-label-md {
  color: #333;
  display: block;
  font-size: 13px;
  line-height: 1.25;
  text-transform: uppercase;
}
.balam-card-band-title {
  background: #50b428;
  color: #fff;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
}
.balam-client-col div {
  margin-bottom: 10px;
  line-height: 1;
  margin-top: 10px;
}
.balam-client-col strong {
  display: inline-block;
  min-width: 160px;
  font-weight: 600;
  color: #333;
}
.balam-min-price-exception-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 6px;
  padding: 5px 15px;
  border-radius: 999px;
  background: #fff2d8;
  color: #cc8413;
  font-size: 13.6px;
  font-weight: 700;
}
.balam-quote-totals {
  width: 25em;
}
.balam-btn.color-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #25d366;
}
.balam-btn.color-whatsapp:hover {
  background: #1fb85a;
  border-color: #1fb85a;
  color: #fff;
}
.balam-whatsapp-quote-btn {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  padding: 0 !important;
  border-radius: 50% !important;
  justify-content: center;
  align-items: center;
}
.balam-whatsapp-quote-btn svg {
  width: 14px;
  height: 14px;
  display: block;
  color: #fff;
  fill: #fff;
}
/* ============================
   HEADER PRINCIPAL
============================ */
.balam-front-header {
  margin-bottom: 1.5em;
}
.balam-front-header-inner {
  background: #333;
  border-radius: 18px;
  padding: 18px 26px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  color: #fff;
}
.balam-front-header-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.balam-front-header-title {
  font-family: "Feature Mono", "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 28.8px;
  white-space: nowrap;
}
.balam-front-header-logo {
  height: 36px;
  width: auto;
}
.balam-front-header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
  color: #fff;
}
/* ============================
   BARRA DE ESTADO
============================ */
.balam-front-status {
  margin-top: 10px;
  border-radius: 16px;
  padding: 14px 0px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  color: #333;
}
.balam-front-user {
  font-weight: 600;
  color: #fff;
}
.balam-front-user-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.05;
}
.balam-front-role-badge {
  display: inline-flex;
  align-items: center;
  min-height: 16px;
  padding: 0 8px;
  border-radius: 999px;
  background: #c5f5c5;
  color: #2d5a27;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.balam-front-logout-btn {
  align-items: center;
  align-self: center;
  border-radius: 999em;
  color: #fff !important;
  display: inline-flex;
  font-size: 11px;
  font-family: monospace;
  font-weight: 600;
  gap: 1em;
  text-transform: uppercase;
  transition: all .2s ease;
  white-space: nowrap;
}
.balam-front-logout-btn:hover {
  filter: brightness(0.88);
}
.balam-front-logout-btn svg {
  flex-shrink: 0;
  height: 15px;
  width: 15px;
}
.balam-front-passkey-wrap {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
}
.balam-front-passkey-btn {
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}
.balam-front-passkey-btn:disabled {
  opacity: .72;
  cursor: not-allowed;
}
.balam-front-passkey-btn.is-active {
  border-color: transparent;
  background: #878787;
  color: #ffffff;
}
.balam-front-passkey-message {
  min-height: 14px;
  max-width: 140px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}
.balam-front-passkey-message:empty {
  display: none;
}
.balam-front-passkey-message.is-error {
  color: #c12d2d;
}
.balam-front-passkey-message.is-ok {
  color: #2d7f2f;
}
.nav-modal-passkey-wrap {
  align-items: center;
  margin-top: 4px;
  margin-bottom: 10px;
  width: 100%;
}
/* --- BOTON LOGOUT ESTANDARIZADO --- */
/* ============================
   NAVEGACION GENERAL
============================ */
.balam-front-nav-wrapper {
  margin: 0px 0px 20px 0px;
  border-radius: 20px;
  padding: unset;
  display: grid;
  align-items: center;
  gap: 10px;
}
.balam-front-nav-wrapper .balam-step, .balam-front-nav-wrapper .balam-module {
  line-height: 1;
  min-height: 30px;
}
.balam-front-nav-wrapper .balam-step svg, .balam-front-nav-wrapper .balam-module svg {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px;
  max-width: 18px;
  min-height: 18px;
  max-height: 18px;
  flex: 0 0 18px;
  display: block;
}
/* ============================
   FLUJO PRINCIPAL (STEPS / PIPELINE)
============================ */
.balam-front-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: 100%;
}
.balam-step {
  padding: 0.8em;
  background: #FFF;
  border-radius: 999em;
  font-size: 12.8px;
  font-weight: 600;
  color: #333 !important;
  text-transform: uppercase;
  transition: all .2s ease;
  flex: 1 1 0;
}
.balam-step, .balam-module {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px; /* espacio entre icono y texto */
  position: relative;
  box-sizing: border-box;
}
/* Mantener efecto hover */
.balam-step:hover {
  filter: brightness(0.80);
}
.balam-step.active {
  background: #333;
  color: #fff !important;
}
/* ============================
   MODULOS COMPLEMENTARIOS
============================ */
.balam-front-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6em;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.balam-module {
  padding: 5px;
  background: #c5f5c5;
  border-radius: 30px;
  text-decoration: none;
  font-size: 12px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  color: #44a620 !important;
  text-transform: uppercase;
  transition: all .2s ease;
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
}
.balam-module:hover {
  filter: brightness(0.80);
}
.balam-module.active {
  background: #333;
  color: #fff !important;
}
/* ============================
   CONTENIDO PRINCIPAL
============================ */
.balam-front-content {
  background: #fff;
  border-radius: 22px;
  padding: 30px;
  margin-top: 10px;
}
.balam-front-content.balam-preinvoice-edit-content, .balam-front-content.balam-shipment-edit-content {
  border: 1px solid #333;
  padding: 2em;
  border-radius: 1em;
}
.balam-front-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 30px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  color: #333 !important;
  margin: 0 0 20px;
  text-transform: uppercase;
}
.balam-front-title.has-icon {
  gap: 14px;
}
.balam-front-title-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: #333;
  flex: 0 0 auto;
  line-height: 1;
}
.balam-front-title-icon svg {
  width: 24px;
  height: 24px;
  display: block;
}
.balam-title-mobile-label {
  display: none;
}
.balam-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5em;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.balam-tab-header .balam-front-title {
  margin: 0;
}
.balam-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.balam-actions-end-row, .balam-dest-card-actions {
  justify-content: flex-end;
}
.balam-actions-inline {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.balam-actions-inline-nowrap {
  flex-wrap: nowrap;
  white-space: nowrap;
}
.balam-actions-nowrap .balam-btn {
  white-space: nowrap;
}
.balam-actions-compact {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: center;
}
.balam-purchase-orders-table .col-productos {
  width: 28%;
}
.balam-formats-actions {
  justify-content: flex-end;
  margin-bottom: 12px;
}
.balam-formats-topbar {
  margin-bottom: 18px;
}
.balam-formats-topbar .balam-front-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.balam-format-search-input {
  min-width: 220px;
  width: 220px;
}
.balam-formats-grid {
  align-items: start;
  display: grid;
  gap: 22px 18px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
}
.balam-format-tile {
  gap: 10px;
  text-align: center;
}
.balam-format-tile-link {
  align-items: center;
  color: #333;
  gap: 8px;
  text-decoration: none;
}
.balam-format-thumb {
  align-items: center;
  background: #fff;
  border: 1px solid #333;
  border-radius: 0.5em;
  display: inline-flex;
  height: 90px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 65px;
}
.balam-format-thumb::after {
  background: linear-gradient(135deg, transparent 0 49%, #ececec 50% 100%);
  content: "";
  height: 18px;
  position: absolute;
  right: 0;
  top: 0;
  width: 18px;
}
.balam-format-thumb-lines {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 32px;
}
.balam-format-thumb-lines span {
  background: #d9d9d9;
  border-radius: 999px;
  display: block;
  height: 4px;
  width: 100%;
}
.balam-format-thumb-lines span:first-child {
  background: #333;
  height: 5px;
  width: 28px;
}
.balam-format-thumb-lines span:nth-child(2), .balam-format-thumb-lines span:nth-child(3) {
  width: 30px;
}
.balam-format-thumb-lines span:last-child {
  width: 24px;
}
.balam-format-type-mark {
  background: #c5f5c5;
  border-radius: 999px;
  bottom: 8px;
  color: #44a620;
  font-size: 9px;
  font-weight: 800;
  left: 8px;
  line-height: 1;
  overflow: hidden;
  padding: 4px 6px;
  position: absolute;
  right: 8px;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.balam-format-tile-name {
  color: #333;
  font-size: 11px;
  font-weight: 600;
  text-wrap: balance;
  font-family: monospace;
  text-transform: uppercase;
  margin-top: 1em;
}
.balam-format-tile-meta {
  color: #959595;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}
.balam-format-card-actions {
  justify-content: center;
}
.balam-actions-end {
  justify-content: flex-end;
  margin-left: auto;
}
.balam-actions-center {
  justify-content: center;
}
.balam-actions-between {
  justify-content: space-between;
}
.balam-gap-10 {
  gap: 10px !important;
}
.balam-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.balam-pill {
  background: #E5E5E5;
  border-radius: 999px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.04);
  color: #959595;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
}
.balam-media-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.balam-badge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.balam-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: #bdf3bd;
  color: #2d7b23;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 8px 10px;
  text-transform: uppercase;
}
.balam-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border: 0;
  border-radius: 999px;
  background: #76b874;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.balam-btn-circle {
  align-items: center;
  background: #f1f1f1;
  border: 0;
  border-radius: 50%;
  color: #333;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 38px;
  font-size: 28px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  transition: all .15s ease;
  width: 38px;
}
.balam-btn-circle:hover {
  background: #333;
  color: #b4fb52;
  transform: scale(1.04);
}
.balam-stack {
  display: flex;
  flex-direction: column;
}
.balam-stack.is-disabled {
  opacity: .55;
}
.balam-stack.is-disabled input, .balam-stack.is-disabled select, .balam-stack.is-disabled textarea, .balam-stack.is-disabled button {
  cursor: not-allowed;
}
.balam-stack-centered {
  align-items: center;
  justify-content: center;
}
.balam-stack-start {
  align-items: flex-start;
}
.balam-actions-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.balam-gap-5 {
  gap: 5px !important;
}
.balam-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: 100%;
}
.balam-toolbar-between {
  justify-content: space-between;
}
.balam-toolbar-fields {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.balam-filters-row, .balam-backorders-filters .balam-filters-row, .balam-clients-map-filters .balam-filters-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.balam-filter-grid {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: var(--balam-filter-grid-columns, 1fr);
  justify-content: start;
  min-width: 0;
  width: auto;
}
.balam-panel-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
@media (min-width: 769px) {
  .balam-filter-action-row {
    column-gap: 1.5em;
    padding: 0em 0em 1.5em 0em;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 1.5em;
    border-bottom: 1px solid #333;
  }
  .balam-filter-action-row > .balam-export-actions {
    float: none;
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
    justify-self: end;
    align-self: start;
    margin: 0;
    max-width: none;
  }
  .balam-filter-action-row > .balam-export-actions ~ .balam-front-filters {
    align-items: flex-start;
    grid-column: 1;
    grid-row: 1;
    min-height: 42px;
    margin-bottom: 0;
  }
}
@media (min-width: 769px) {
  .balam-filters-divider-block {
    border-bottom: 1px solid #333;
    margin-bottom: 1.5em;
    padding-bottom: 1.5em;
    border-radius: 0 !important;
  }
}
@media (min-width: 1025px) {
  .balam-front-content {
    padding: 28px 42px 42px;
  }
  .balam-tab-header {
    margin-bottom: 1.5em;
    min-height: 3em;
  }
  .balam-tab-header .balam-front-title {
    line-height: 1.05;
  }
  .balam-tab-header .balam-export-actions {
    align-self: center;
    justify-content: flex-end;
    margin-left: auto;
  }
}
.balam-modal-header {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 20px;
}
.balam-modal-header--lined, .balam-modal-header--lined-soft {
  border-bottom: 2px solid #333;
  padding-bottom: 14px;
}
.balam-modal-header--lined-soft {
  border-bottom-color: #e1e1e1;
}
.balam-modal-header--spacious {
  margin-bottom: 28px;
}
.balam-modal-header--compact {
  margin-bottom: 12px;
  padding-bottom: 12px;
}
.balam-modal-header--close-offset {
  padding-right: 44px;
}
.balam-modal-title {
  color: #333;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 18px;
  text-transform: uppercase;
}
.balam-modal-header .balam-modal-title, .balam-panel-head .balam-modal-title {
  margin-bottom: 0;
}
.balam-modal-header p {
  margin: 0;
  color: #333;
}
.balam-divider {
  border: 1px solid #333;
  margin: 2em 0em 2em 0em;
  width: 100%;
}
/* ============================
   MINI LISTA DE PRODUCTOS (LISTADO)
============================ */
.balam-mini-products {
  list-style: none;
  padding: 0;
  margin: 0px !important;
  font-size: 11px;
  font-family: monospace;
  display: block;
  font-weight: 600;
  color: #333;
}
.balam-mini-products li {
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
}
.balam-mini-product-note {
  display: block;
  margin-top: 3px;
  color: #333;
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}
.balam-quote-internal-note {
  margin-top: 8px;
  color: #333;
  font-size: 10px;
  line-height: 1.35;
}
.balam-quote-internal-note-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 4px;
  padding: 10px 10px;
  border-radius: 0px;
  background: #efefef;
  color: #333;
  font-size: 9px;
  font-weight: 600;
  line-height: 1.2;
  white-space: normal;
}
/* ============================
   FILTROS
============================ */
.balam-front-filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-radius: 20px;
  font-weight: 300;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.balam-filters-controls {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
}
.balam-filters-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
}
.balam-filters-row.search-row input[name="q"] {
  width: min(360px, 100%);
  min-width: 260px;
  flex: 1 1 320px;
}
.balam-filters-row.search-row select {
  min-width: 0;
  flex: 0 1 180px;
}
.balam-filters-row.search-row .balam-btn {
  margin-left: auto;
}
.balam-filters-row.balam-filter-grid.search-row {
  width: 100%;
}
.balam-filters-row.balam-filter-grid.search-row input[name="q"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.balam-projects-filters .balam-filters-row.search-row {
  width: 100% !important;
  max-width: 100% !important;
}
.balam-projects-filters .balam-filters-row.search-row input[name="q"] {
  width: var(--balam-projects-filter-width, 360px) !important;
  max-width: 100% !important;
  flex: 0 1 var(--balam-projects-filter-width, 360px) !important;
  box-sizing: border-box !important;
}
.balam-projects-filters .balam-filters-row.search-row .balam-btn {
  margin-left: auto;
  flex: 0 0 auto;
  white-space: nowrap;
}
.balam-clients-filter-layout {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
.balam-clients-filter-fields {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  width: min(590px, 100%);
}
.balam-clients-filters .balam-filters-row.search-row {
  --balam-filter-grid-columns: 1fr;
  width: 100%;
}
.balam-clients-filters .balam-filters-row.balam-clients-secondary-row {
  display: grid !important;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
}
.balam-clients-filters .balam-filters-row.balam-clients-secondary-row select {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.balam-clients-filters .balam-filters-row.balam-clients-secondary-row > .balam-select {
  width: 100%;
  max-width: none;
  min-width: 0;
}
.balam-clients-filters .balam-filters-row.balam-clients-secondary-row > * {
  min-width: 0;
}
.balam-clients-mobile-actions {
  display: none;
}
@media (min-width: 769px) {
  .balam-clients-filters .balam-clients-filter-layout {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    width: 100% !important;
  }
}
.balam-client-statements .balam-client-statements-search-input {
  box-sizing: border-box !important;
  height: 31px !important;
  line-height: 1 !important;
  min-height: 0 !important;
  padding: 6px 10px !important;
  width: 260px;
}
.balam-client-statements-filter-action-row {
  padding: 0 0 1.5em 0;
  margin-bottom: 1.5em;
  border-bottom: 1px solid #333;
}
.balam-client-statements-filter-action-row > .balam-front-filters {
  margin-bottom: 0;
  align-items: center;
}
.balam-list-filters-controls {
  flex-direction: row;
  align-items: flex-start;
  gap: 1.5em;
  margin-top: 2em;
}
.balam-list-filters-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 720px;
  max-width: 100%;
}
.balam-list-filters-grid-primary {
  display: grid;
  grid-template-columns: 175px 175px 220px auto;
  gap: 10px;
  width: 100%;
}
.balam-list-filters-grid-search {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 590px;
  max-width: 100%;
}
.balam-list-filters-grid-search-status {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 175px;
  gap: 10px;
  width: 590px;
  max-width: 100%;
}
.balam-purchase-orders-search-row, .balam-list-filters-grid-search-compact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
  width: 590px;
  max-width: 100%;
}
.balam-list-filters-grid-primary input, .balam-list-filters-grid-primary select, .balam-list-filters-grid-search input, .balam-list-filters-grid-search-status input, .balam-list-filters-grid-search-status select, .balam-purchase-orders-search-row input, .balam-list-filters-grid-search-compact input, .balam-purchase-orders-search-row select, .balam-list-filters-grid-search-compact select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.balam-list-filters-grid-search-status .balam-select {
  min-width: 0;
  width: 100%;
}
.balam-warranties-filters input[name="from"], .balam-warranties-filters input[name="to"], .balam-warranties-filters .balam-filter-date-input, .balam-warranties-filters .balam-warranty-search-filter, .balam-purchase-orders-filters input[name="from"], .balam-purchase-orders-filters input[name="to"], .balam-purchase-orders-filters .balam-filter-date-input, .balam-purchase-orders-filters .balam-purchase-order-search-filter, .balam-supplier-entries-filters input[name="f_start"], .balam-supplier-entries-filters input[name="f_end"], .balam-supplier-entries-filters .balam-supplier-entry-concept-filter, .balam-report-date-input {
  box-sizing: border-box !important;
  height: 31px !important;
  line-height: 1 !important;
  min-height: 0 !important;
  padding: 6px 10px !important;
}
.balam-supplier-entries-filters .balam-suppliers-filter-date, .balam-supplier-entries-filters .balam-suppliers-filter-supplier, .balam-supplier-entries-filters .balam-suppliers-filter-type {
  box-sizing: border-box !important;
  height: 31px !important;
  line-height: 1 !important;
  min-height: 0 !important;
}
.balam-supplier-entries-filters .balam-suppliers-filter-supplier {
  min-width: 170px;
}
.balam-supplier-entries-filters-controls {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 590px;
  max-width: 100%;
}
.balam-supplier-entries-grid-primary {
  display: grid;
  grid-template-columns: 175px 175px 220px;
  gap: 10px;
  width: 590px;
  max-width: 100%;
}
.balam-supplier-entries-grid-primary input, .balam-supplier-entries-grid-primary select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.balam-supplier-entries-filters .balam-supplier-entry-search-row {
  width: 590px;
  max-width: 100%;
}
.balam-supplier-entries-filters .balam-supplier-entry-search-row .balam-supplier-entry-concept-filter {
  flex: 1 1 0;
  min-width: 0;
}
.balam-supplier-entries-filters .balam-supplier-entry-search-row .balam-suppliers-filter-type {
  flex: 0 0 220px;
  width: 220px;
  min-width: 220px;
}
@media (min-width: 761px) {
  .balam-warranties-filters .balam-filters-controls {
    max-width: 100%;
    width: 590px;
  }
  .balam-warranties-filters .balam-warranties-filter-primary-row {
    display: grid;
    gap: 10px;
    grid-template-columns: 175px 175px minmax(0, 1fr);
    width: 100%;
  }
  .balam-warranties-filters .balam-warranties-filter-primary-row > * {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
  }
  .balam-warranties-filters .balam-warranties-filter-search-row {
    display: flex;
    flex-wrap: nowrap;
    max-width: 100%;
    width: 100%;
  }
  .balam-warranties-filters .balam-warranty-search-filter {
    flex: 1 1 auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}
.balam-report-date-field {
  display: inline-flex !important;
  margin: 0;
}
.balam-list-filters-period {
  margin-left: auto;
}
.balam-list-filters-period select {
  width: 220px;
  box-sizing: border-box;
}
.balam-filters-spacer {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
  flex-wrap: wrap;
}
.balam-front-filters select, .balam-front-filters input {
  padding: 1em;
  height: 33px !important;
  border: 1px solid #333;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #333 !important;
}
/* ============================
   SISTEMA DE BOTONES BALAM (VERSION 1.1)
============================ */
.balam-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s ease;
  border-radius: 999em;
  box-sizing: border-box;
  white-space: nowrap;
  height: 2.5em;
}
.balam-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.balam-btn:active {
  transform: translateY(0);
}
.balam-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}
/* --- TAMANOS --- */
.balam-btn.size-micro {
  padding: 6px 10px;
  font-size: 10px;
}
.balam-btn.size-nano {
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 800;
  height: auto;
  min-height: 0;
  line-height: 1;
}
.balam-btn.size-small {
  padding: 0 15px;
  font-size: 11.2px;
  height: 30px !important;
  min-height: 30px;
}
.balam-btn.size-normal {
  padding: 0 20px;
  font-size: 12px;
  height: 34px !important;
  min-height: 34px;
  line-height: 1;
}
.balam-btn.size-large {
  padding: 1em;
  font-size: 16px;
}
/* --- COLORES --- */
.balam-btn.color-black {
  background: #333;
  color: #FFF !important;
  border-color: #333;
}
.balam-btn.color-green {
  background: #E5E5E5;
  color: #333 !important;
  border-color: #E5E5E5;
}
.balam-btn.color-blue {
  background: #618c8b;
  color: #fff !important;
  border-color: #618c8b;
}
.balam-btn.color-grey {
  background: #ffffff;
  color: #333 !important;
  border-color: #333;
}
.balam-btn.balam-clear-filters-btn {
  background: #E5E5E5 !important;
  border-color: #E5E5E5 !important;
  color: #333 !important;
  font-size: 11px !important;
  height: 30px !important;
  padding: 5px 15px !important;
}
.balam-title-reset {
  margin: 0 !important;
}
.balam-btn.color-white {
  background: #fff;
  color: #333 !important;
  border: 1px solid #333;
}
/* ============================
    TABLA
============================ */
.balam-front-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin-bottom: 1.5em;
}
.balam-front-table th {
  background: #333;
  color: #fff;
  padding: 1em;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  font-size: 11px;
  text-align: center;
  text-transform: uppercase;
  font-family: monospace;
  font-weight: 600;
}
.balam-front-table th:last-child {
  border-right: none;
}
.balam-preinvoices-table th {
  text-align: center;
}
.balam-preinvoices-table .balam-preinvoices-col-client {
  width: 30%;
}
.balam-preinvoices-table .balam-preinvoices-col-products {
  width: 16%;
}
.balam-preinvoices-table .balam-preinvoices-col-status {
  text-align: center;
  width: 15%;
}
.balam-preinvoices-table .balam-preinvoice-folio-cell {
  text-align: center;
  vertical-align: middle;
}
.balam-table-center-cell, .balam-table-status-cell, .balam-table-actions-cell {
  text-align: center;
  vertical-align: middle;
}
.balam-table-center-cell > div {
  align-items: center;
  display: flex;
  justify-content: center;
}
.balam-table-status-cell > div, .balam-table-actions-cell > div {
  align-items: center;
  justify-content: center;
}
.balam-table-actions-cell .balam-actions-row {
  align-items: center;
  justify-content: center;
}
.balam-front-table td {
  padding: 1em;
  border-right: 1px solid #333;
  border-bottom: 1px solid #333;
  font-size: 12px;
  font-weight: 600;
  color: #333;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.balam-front-table td:last-child {
  border-right: none;
}
.balam-front-table tr:last-child td {
  border-bottom: none;
}
.balam-quote-totals-table td {
  padding: 10px 15px;
  16px !important;
  color: #333;
}
.balam-front-table tr:hover {
  background: #E5E5E5;
}
.balam-quote-items-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  margin-bottom: 25px;
}
.balam-quote-items-scroll .balam-quote-items-table {
  margin-bottom: 0;
}
@media (min-width: 981px) {
  .balam-quote-items-scroll .balam-quote-items-table {
    min-width: 980px;
    table-layout: fixed;
  }
  .balam-quote-items-scroll .balam-quote-items-table th, .balam-quote-items-scroll .balam-quote-items-table td {
    box-sizing: border-box;
    vertical-align: middle;
  }
  .balam-quote-items-scroll .balam-row-price {
    max-width: 100%;
  }
}
.balam-file-picker {
  width: 100%;
  position: relative;
}
.balam-file-picker-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.balam-file-picker-control {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 5px 14px;
  border: 2px solid #ddd;
  border-radius: 999px;
  background: #fff;
  box-sizing: border-box;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.balam-file-picker-control:hover {
  border-color: #cfcfcf;
}
.balam-file-picker-input:focus + .balam-file-picker-control, .balam-file-picker-control:focus-within {
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, .08);
}
.balam-file-picker-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  min-height: 31px;
  padding: 0 16px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #333;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  flex-shrink: 0;
}
.balam-file-picker-name {
  min-width: 0;
  color: #959595;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.balam-file-thumb-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #333;
  border-radius: 8px;
  cursor: zoom-in;
  display: inline-flex;
  height: 70px;
  justify-content: center;
  overflow: hidden;
  padding: 4px;
  width: 58px;
}
.balam-file-thumb-trigger img, .balam-file-thumb-trigger canvas {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.balam-file-thumb-pdf {
  align-items: center;
  color: #333;
  display: flex;
  font-size: 10px;
  font-weight: 900;
  height: 100%;
  justify-content: center;
  line-height: 1;
  width: 100%;
}
.balam-actions-row {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 5px !important;
}
.balam-clients-table .balam-clients-name-col {
  width: 43%;
}
.balam-clients-table .balam-clients-quotes-col {
  width: 10%;
}
.balam-clients-table th.balam-clients-actions-col, .balam-clients-table td.balam-clients-actions-col {
  width: 120px;
  min-width: 120px;
  white-space: nowrap;
}
/* ============================
   IMAGENES
============================ */
.balam-product-img {
  width: 58px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #fff;
  padding: 5px;
}
.balam-client-seller-cell {
  min-width: 125px;
}
.balam-inventory-table [data-card-slot="media"] .balam-product-img {
  width: 48px;
  max-width: 48px;
  height: 48px;
  max-height: 48px;
  object-fit: contain;
  box-sizing: content-box;
  display: inline-block;
}
.balam-inventory-mobile-stock {
  margin-top: 10px;
  color: #333;
  font-size: 16px;
  font-weight: 800;
}
.balam-inventory-stock-value {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}
.balam-vw-grid-wrap {
  position: relative;
  overflow: hidden;
}
.balam-vw-grid-wrap.is-collapsed .balam-vw-grid {
  max-height: 284px;
  overflow: hidden;
}
.balam-vw-grid-wrap.is-collapsed .balam-vw-grid-fade {
  display: flex;
}
.balam-vw-grid-wrap.is-collapsed::before {
  content: none;
}
.balam-vw-grid-wrap.is-collapsed::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 170px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.08) 16%, rgba(255, 255, 255, 0.22) 30%, rgba(255, 255, 255, 0.44) 46%, rgba(255, 255, 255, 0.68) 62%, rgba(255, 255, 255, 0.86) 76%, rgba(255, 255, 255, 0.95) 86%, rgba(255, 255, 255, 0.995) 94%, #fff 100%);
}
.balam-vw-grid-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 146px;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  pointer-events: none;
  z-index: 5;
}
.balam-vw-grid-more {
  pointer-events: auto;
  border: 0;
  background: #101010;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 28px;
  line-height: 1;
  font-weight: 700;
  box-shadow: none;
  cursor: pointer;
  margin-bottom: 10px;
  position: relative;
  z-index: 6;
}
.balam-vw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(42px, 1fr));
  gap: 12px;
  transition: max-height 0.25s ease;
  padding-bottom: 6px;
  padding-right: 4px;
}
.balam-vw-cell {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  min-height: 50px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 0;
  box-sizing: border-box;
  font-size: 8px;
  line-height: 1.05;
  padding: 7px 4px 5px;
  font-family: inherit;
  text-align: center;
  border: 2px solid rgba(0, 0, 0, 0.06);
  border-top-color: rgba(255, 255, 255, 0.5);
  border-left-color: rgba(255, 255, 255, 0.5);
  box-shadow: 3px 4px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  overflow: hidden;
}
.balam-vw-cell::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid rgba(0, 0, 0, 0.03);
  margin: 3px;
  border-radius: 2px;
  pointer-events: none;
}
.balam-vw-cell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  margin-left: -1px;
  background: rgba(0, 0, 0, 0.03);
  pointer-events: none;
}
.balam-vw-cell.available {
  background-color: #bdf3bd;
  color: #405539;
}
.balam-vw-cell.used {
  background-color: #E5E5E5;
  color: #5b5b5b;
}
.balam-vw-cell.used-manual, .balam-vw-legend .is-manual {
  background-color: #eadcc9;
  color: #5a5247;
}
.balam-vw-cell.used-manual-folio, .balam-vw-legend .is-manual-folio {
  background-color: #d0c5e8;
  color: #52486a;
}
.balam-vw-cell:hover {
  transform: translate(2px, 3px);
  box-shadow: 1px 1px 0 rgba(0, 0, 0, 0.1);
  z-index: 2;
}
.balam-vw-folio {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
  margin-top: 5px;
  margin-bottom: 2px;
  text-align: center;
}
.balam-vw-index {
  position: relative;
  font-size: 6px;
  opacity: 0.85;
  z-index: 1;
  text-align: center;
}
.balam-vw-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.balam-vw-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #333;
}
.balam-vw-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 2px;
  position: relative;
  margin-top: 0;
  margin-right: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top-color: rgba(255, 255, 255, 0.5);
  border-left-color: rgba(255, 255, 255, 0.5);
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.1);
}
.balam-vw-legend .is-available {
  background-color: #bdf3bd;
}
.balam-vw-legend .is-used {
  background-color: #E5E5E5;
}
.balam-vw-modal-grid {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 10px 16px;
  font-size: 13px;
}
.balam-vw-modal-grid strong {
  color: #363636;
  font-weight: 800;
}
.balam-vw-modal-grid > div {
  color: #333;
  overflow-wrap: anywhere;
  line-height: 1.4;
}
.balam-vw-detail-products {
  margin: 0;
  padding-left: 18px;
}
.balam-vw-detail-products li {
  margin: 0 0 4px;
}
.balam-vw-detail-return {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #333;
}
.balam-wms-legend-swatch {
  background: var(--legend-color, #E5E5E5);
}
.balam-wms-legend-swatch.is-available {
  --legend-color: #35b642;
}
.balam-wms-legend-swatch.is-reserved {
  --legend-color: #407de4;
}
.balam-wms-legend-swatch.is-backorder {
  --legend-color: #ffc400;
}
.balam-wms-legend-swatch.is-warranty {
  --legend-color: #f08a1a;
}
.balam-wms-legend-swatch.is-drop {
  --legend-color: #ef2525;
}
.balam-wms-legend-swatch.is-empty {
  --legend-color: #dadde0;
}
.balam-wms-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
}
.balam-wms-search {
  width: 100%;
  position: relative;
}
.balam-wms-search .balam-input-lg {
  height: 46px !important;
  padding-right: 48px !important;
  font-size: 15px !important;
}
.balam-wms-search .balam-input-lg:focus {
  border-color: #50b428 !important;
  box-shadow: 0 0 0 4px rgba(80, 180, 40, 0.12);
}
.balam-wms-search::after {
  content: "";
  position: absolute;
  right: 17px;
  bottom: 14px;
  width: 14px;
  height: 14px;
  border: 3px solid #333;
  border-radius: 50%;
  box-sizing: border-box;
}
.balam-wms-search::before {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 10px;
  width: 10px;
  height: 3px;
  background: #333;
  border-radius: 999px;
  transform: rotate(45deg);
  z-index: 1;
}
.balam-wms-map-toolbar {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  width: auto;
  flex-wrap: nowrap;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  margin: 0;
}
.balam-wms-map-toolbar button {
  height: 42px;
  min-width: 82px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid #333;
  background: transparent;
  font: 800 12px "DM Sans", sans-serif;
  cursor: pointer;
  white-space: nowrap;
}
.balam-wms-map-toolbar button:last-child {
  border-right: 0;
}
.balam-wms-map-wrap {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(circle at 50% 30%, #fff 0%, #E5E5E5 48%, #E5E5E5 100%);
  border: 1px solid #333;
}
.balam-wms-three-map {
  position: absolute;
  inset: 0;
  min-height: 660px;
}
.balam-wms-three-map canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}
.balam-wms-map-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #959595;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  pointer-events: none;
}
.balam-wms-map-tooltip {
  position: absolute;
  z-index: 4;
  display: none;
  min-width: 170px;
  padding: 13px 15px;
  border-radius: 14px;
  background: #242428;
  color: #fff;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.balam-wms-map-tooltip strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
}
.balam-wms-map-tooltip span {
  display: block;
  color: #d8d8d8;
  margin-top: 3px;
}
.balam-wms-map-legend {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  z-index: 3;
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #333;
  border-radius: 18px;
  padding: 12px 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}
.balam-wms-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #333;
  white-space: nowrap;
}
.balam-wms-map-legend i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  flex: 0 0 auto;
}
.balam-wms-panel-list {
  display: grid;
  gap: 10px;
  max-height: 380px;
  overflow: auto;
}
.balam-wms-mini-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 8px;
  margin-top: 12px;
}
.balam-wms-mini-table td {
  background: #E5E5E5;
  padding: 10px;
  font-size: 11px;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}
.balam-wms-mini-table td:first-child {
  border-left: 1px solid #333;
  border-radius: 12px 0 0 12px;
  font-weight: 900;
}
.balam-wms-mini-table td:last-child {
  border-right: 1px solid #333;
  border-radius: 0 12px 12px 0;
}
@media (max-width: 1100px) {
  .balam-vw-modal-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .balam-wms-shell {
    grid-template-columns: 1fr;
  }
  .balam-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .balam-metric-item {
    border-right: 0;
    border-bottom: 1px solid #333;
  }
  .balam-wms-map-wrap {
    min-height: 520px;
  }
  .balam-wms-map-legend {
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .balam-vw-grid-wrap {
    border: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }
  .balam-vw-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
  }
  .balam-vw-legend span {
    justify-content: flex-start;
    min-width: 0;
  }
}
.balam-client-line {
  display: block;
  color: #333;
  line-height: 1.25;
  margin-bottom: 6px;
}
.balam-client-card-id {
  display: none;
}
.balam-client-card-name {
  display: block;
}
.balam-shipment-invoice-cell {
  min-width: 0;
}
.balam-shipment-invoice-doc, .balam-shipment-invoice-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}
.balam-proof-upload-form {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
}
.balam-proof-file-input {
  display: none;
}
.balam-proof-loader {
  display: none;
  margin-top: 8px;
}
.balam-proof-loader-track {
  background: #e6e6e6;
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  width: 160px;
}
.balam-proof-loader-track-small {
  width: 120px;
}
.balam-proof-loader-bar {
  background: #2fbf4a;
  height: 100%;
  width: 0%;
}
.balam-invoice-open {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-align: left;
}
.balam-invoice-open.balam-btn {
  display: inline-flex;
}
.balam-empty-dash {
  color: #999;
  font-weight: 700;
}
.balam-fiscal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 18px;
  align-items: end;
}
.balam-fiscal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.balam-fiscal-field-wide {
  grid-column: 1 / -1;
}
.balam-fiscal-field label {
  font-size: 11px;
  font-weight: 700;
}
.balam-fiscal-field select, .balam-fiscal-field .balam-select {
  width: 100% !important;
  max-width: 100% !important;
}
@media (max-width: 900px) {
  .balam-fiscal-grid {
    grid-template-columns: 1fr;
  }
}
.balam-shipments-table {
  table-layout: fixed;
  width: 100%;
}
.balam-shipments-table th, .balam-shipments-table td {
  overflow-wrap: anywhere;
}
.balam-shipments-table th {
  text-align: center;
}
.balam-prefactura-cell-inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 100%;
  text-align: center;
}
.balam-shipment-products-cell, .balam-shipment-products-cell .balam-mini-products, .balam-shipment-products-cell .balam-mini-products li {
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.balam-shipment-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  margin-bottom: 8px;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.balam-shipment-source-badge svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}
.balam-badge.status-garantia {
  background: #fff0e5;
  color: #c45a05;
}
.balam-shipments-table th.balam-prefactura-th {
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.15;
}
.balam-shipments-table th.balam-prefactura-th span {
  display: block;
}
.balam-shipments-table th.balam-shipment-tracking-th, .balam-shipment-tracking-cell {
  width: 10%;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: middle;
}
.balam-shipment-tracking-cell .balam-toggle-meta {
  line-height: 1.35;
  white-space: normal;
}
.balam-shipment-meta-date, .balam-shipment-meta-time {
  display: block;
  white-space: nowrap;
}
.balam-shipments-table th.balam-shipment-docs-th {
  width: 136px;
  min-width: 136px;
  max-width: 136px;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.balam-shipment-docs-cell {
  width: 136px;
  min-width: 136px;
  max-width: 136px;
  white-space: nowrap;
  vertical-align: middle !important;
  overflow-wrap: normal;
  word-break: normal;
  box-sizing: border-box;
  text-align: center;
}
.balam-shipment-docs-row {
  align-items: center;
  display: flex;
  justify-content: center;
}
.balam-shipment-doc-slot {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  margin-right: 1em;
}
.balam-shipment-docs-cell .balam-shipment-proof, .balam-shipment-docs-cell .balam-shipment-invoice-cell, .balam-shipment-docs-cell .balam-shipment-invoice-doc {
  align-items: center;
  justify-content: center;
}
.balam-shipment-docs-cell .balam-shipment-proof > div {
  margin-top: 0 !important;
}
.balam-shipment-docs-cell .balam-product-img {
  width: 58px;
  height: 76px;
  object-fit: cover;
  padding: 0;
}
.balam-shipment-doc-slot:last-child {
  margin-right: 0;
}
.balam-shipment-doc-slot + .balam-shipment-doc-slot {
  margin-left: 0;
}
.balam-shipment-docs-cell .balam-btn {
  padding-left: 10px;
  padding-right: 10px;
  justify-content: center;
}
/* ============================
   AVISOS
============================ */
.balam-notice {
  background: #f3ffef;
  border-radius: 999px;
  padding: 10px 20px;
  margin: 0px 0px 40px 0px;
  border: 0;
  font-size: 16px;
  filter: blur(0);
  transition: opacity 0.45s ease, filter 0.45s ease;
  opacity: 1;
}
.balam-notice.success {
  color: #2e7d32;
}
.balam-notice.error {
  color: #b71c1c;
}
.balam-notice.balam-notice-hide {
  opacity: 0;
  filter: blur(10px);
  pointer-events: none;
}
.balam-notice--compact {
  margin-bottom: 16px;
}
/* ============================
   FOOTER
============================ */
.balam-front-footer {
  font-family: "Feature Mono", "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin-top: 28px;
  text-align: center;
  font-size: 14px;
  color: #959595;
  font-weight: 700;
  letter-spacing: 0 !important;
}
.balam-front-footer a {
  color: #333;
  font-weight: 600;
  text-decoration: none;
}
/* ============================
   TABLA FILAS ALTERNADAS
============================ */
.balam-front-table tbody tr:nth-child(even) {
  background: #E5E5E5; /* gris extra suave para reducir contraste */
}
.balam-front-table tbody tr:nth-child(odd) {
  background: #ffffff;
}
/* Mantener efecto hover */
.balam-front-table tbody tr:hover {
  background: #c5f5c5;
}
/* ============================
   FILTROS INVENTARIO (LAYOUT)
============================ */
.balam-filters-toggle-mobile {
  display: none !important;
}
.balam-system-filters {
  display: flex;
  gap: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.balam-filter-submit-hidden {
  display: none;
}
.balam-filters-clear-row {
  flex: 0 0 100%;
  display: flex;
  justify-content: flex-start;
  margin-top: 4px;
}
/* Empuja el boton PDF al extremo derecho */
.balam-filters-spacer {
  margin-left: auto;
}
/* ============================
   BADGES DE ESTATUS 
============================ */
.balam-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 15px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 680;
  text-transform: lowercase;
  white-space: nowrap;
}
.balam-badge svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.8;
  flex-shrink: 0;
}
.balam-mail-autosave-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  justify-content: center;
  line-height: 1;
  max-width: 100%;
  white-space: nowrap;
  width: max-content;
}
/* PENDIENTE */
.balam-badge.status-pendiente {
  background: #f1f1f1;
  color: #7e7e7e;
}
.balam-badge.status-preinvoice-pendiente {
  background: #d92323;
  color: #fff;
}
/* LEIDO */
.balam-badge.status-leido {
  background: #e8f4ff;
  color: #0056b3;
}
/* HECHO */
.balam-badge.status-hecho {
  background: #c5f5c5;
  color: #44a620;
}
.balam-preinvoice-product-name {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.balam-preinvoice-billing-toggle {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  margin-top: 8px;
}
.balam-preinvoice-split-layout {
  align-items: stretch;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr auto 1fr;
  margin-top: 24px;
}
.balam-preinvoice-split-section, .balam-preinvoice-fiscal-section {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.balam-preinvoice-split-card--left {
  margin-right: 24px;
}
.balam-preinvoice-split-card--right {
  margin-left: 24px;
}
.balam-preinvoice-split-divider {
  background: #E5E5E5;
  margin: 10px 0;
  width: 2px;
}
.balam-preinvoice-fiscal-section {
  margin-bottom: 0;
}
.balam-preinvoice-fiscal-divider {
  margin: 25px 0;
}
.balam-preinvoice-notes-wrap {
  margin: 25px 0 0;
}
.balam-preinvoice-notes-input {
  min-height: 68px;
  padding: 1em 1.5em !important;
  width: 100%;
}
.balam-preinvoice-products-card {
  margin-top: 30px;
}
.balam-preinvoice-totals-layout {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 25em);
  margin-top: 24px;
}
.balam-preinvoice-summary-stack {
  justify-self: start;
  width: 100%;
}
.balam-preinvoice-summary-stack .balam-quote-totals {
  max-width: 25em;
  width: 100%;
}
.balam-preinvoice-action-btn, #balam-ship-action-wrap, #balam-local-action-wrap {
  width: 100%;
}
.balam-quote-form .balam-preinvoice-products-inputs {
  align-items: flex-end;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px !important;
  margin-bottom: 20px;
}
.balam-preinvoice-type-field {
  flex-shrink: 0;
  width: 150px;
}
.balam-preinvoice-field-top-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 4px;
  text-align: center;
}
.balam-preinvoice-full-input {
  width: 100%;
}
.balam-preinvoice-stock-field {
  flex-shrink: 0;
  width: 70px;
}
.balam-preinvoice-add-wrap {
  min-width: 0;
}
.balam-preinvoice-add-spacer {
  height: 15px;
  margin-bottom: 4px;
}
.balam-preinvoice-add-btn {
  width: 100%;
}
@media (min-width: 981px) {
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs > div, .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-mobile-row-group {
    min-width: 0 !important;
    width: 100% !important;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-mobile-row-group:not(.balam-stock-add-group) {
    align-items: end !important;
    display: flex !important;
    gap: 10px !important;
    grid-column: 3 !important;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-stock-add-group {
    align-items: end !important;
    display: flex !important;
    gap: 10px !important;
    grid-column: 4 !important;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-preinvoice-stock-field {
    flex: 0 0 64px !important;
    width: 64px !important;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-preinvoice-stock-field label {
    white-space: nowrap;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-preinvoice-add-wrap {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-preinvoice-add-wrap .balam-preinvoice-add-btn {
    min-width: 96px !important;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-preinvoice-add-btn {
    min-width: 0 !important;
    width: 100% !important;
  }
}
.balam-preinvoice-assembly-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: normal;
}
.balam-preinvoice-assembly-badge.is-required {
  background: #ffe2e2;
  color: #b3261e;
}
.balam-preinvoice-assembly-badge.is-ready {
  background: #c5f5c5;
  color: #2d7b20;
}
.balam-preinvoices-table .balam-badge.status-entregado.balam-preinvoice-assembly-completed-badge {
  background: #333;
  color: #fff;
}
.balam-preinvoice-assembly-modal {
  width: min(620px, calc(100vw - 48px));
}
.balam-preinvoice-assembly-message {
  color: #959595;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 14px;
}
.balam-preinvoice-assembly-checklist {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: none;
  overflow: visible;
  padding-right: 0;
}
.balam-preinvoice-assembly-product {
  background: transparent;
  border: 1px solid #333;
  border-radius: 1em;
  padding: 14px 16px;
}
.balam-preinvoice-assembly-product-title {
  align-items: center;
  color: #333;
  display: flex;
  font-size: 13px;
  font-weight: 900;
  gap: 8px;
  justify-content: space-between;
  line-height: 1.25;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.balam-preinvoice-assembly-product-title span {
  color: #959595;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.balam-preinvoice-assembly-item {
  align-items: center;
  border-top: 1px solid #333;
  display: grid;
  gap: 10px;
  grid-template-columns: 24px minmax(0, 1fr) auto auto;
  min-height: 38px;
  padding: 8px 0;
}
.balam-preinvoice-assembly-item:first-of-type {
  border-top: 0;
}
.balam-preinvoice-assembly-state {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 16px;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  line-height: 1;
  width: 22px;
}
.balam-preinvoice-assembly-item.is-ok .balam-preinvoice-assembly-state {
  background: #d9f7d6;
  color: #2f8b25;
}
.balam-preinvoice-assembly-item.is-missing .balam-preinvoice-assembly-state {
  background: #ffe1e1;
  color: #b3261e;
}
.balam-preinvoice-assembly-item-name {
  min-width: 0;
}
.balam-preinvoice-assembly-item-name strong, .balam-preinvoice-assembly-item-name small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.balam-preinvoice-assembly-item-name strong {
  color: #333;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.25;
}
.balam-preinvoice-assembly-item-name small, .balam-preinvoice-assembly-qty {
  color: #333;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}
.balam-preinvoice-assembly-qty {
  white-space: nowrap;
}
.balam-preinvoice-assembly-item em {
  color: #b3261e;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}
.balam-preinvoice-assembly-commitment {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 14px;
  padding: 0;
}
.balam-preinvoice-assembly-commitment label {
  color: #333;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}
.balam-preinvoice-assembly-commitment-label {
  color: #333;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
  text-transform: uppercase;
}
.balam-preinvoice-assembly-commitment-input {
  width: auto;
  max-width: 100%;
}
@media (max-width: 640px) {
  .balam-preinvoice-split-layout {
    grid-template-columns: 1fr;
    row-gap: 18px;
  }
  .balam-preinvoice-split-card--left, .balam-preinvoice-split-card--right {
    margin-left: 0;
    margin-right: 0;
  }
  .balam-preinvoice-split-divider {
    display: none;
  }
  .balam-preinvoice-totals-layout {
    grid-template-columns: 1fr;
  }
  .balam-preinvoice-assembly-commitment {
    align-items: stretch;
    flex-direction: column;
  }
  .balam-preinvoice-assembly-commitment-input {
    width: 100%;
  }
}
/* PEDIDO */
.balam-badge.status-pedido {
  background: #f5f3c5;
  color: #a6a420;
}
.balam-badge.status-prefactura {
  background: #ece9ff;
  color: #6250c9;
}
/* EMBARQUE */
.balam-badge.status-embarque {
  background: #e8f4ff;
  color: #0056b3;
}
.balam-stock-badge {
  width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #f0f0f0;
  color: #959595;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  padding: 5px 8px;
  box-sizing: border-box;
  white-space: nowrap;
}
.balam-products-inputs #balam-stock-display {
  min-height: 42px;
  border-radius: 0;
  background: transparent;
  color: #333;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}
.balam-products-inputs .balam-quote-product-select-field {
  flex: 1 1 470px;
  min-width: 240px;
  max-width: none;
}
.balam-products-inputs .balam-select {
  display: block;
  min-width: 0;
  width: 100%;
}
.balam-products-inputs .balam-select-panel {
  min-width: 100%;
}
.balam-products-inputs .balam-quote-qty-field {
  flex: 0 0 110px;
  width: 110px;
}
.balam-products-inputs .balam-quote-price-field {
  flex: 0 0 150px;
  width: 150px;
}
.balam-num-control {
  box-sizing: border-box;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 1.5em !important;
}
.balam-num-control input, .balam-num-control .balam-num-btn {
  height: 100% !important;
  min-height: 0 !important;
}
.balam-products-inputs .balam-stock-add-group .balam-field > label {
  transform: translateY(8px);
}
@media (min-width: 981px) {
  .balam-quote-form .balam-products-inputs > div:first-child {
    flex: 0 0 180px !important;
    width: 180px !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .balam-quote-form .balam-products-inputs .balam-quote-product-select-field {
    flex: 1 1 420px !important;
    width: auto !important;
    min-width: 280px !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
  .balam-quote-form .balam-products-inputs .balam-mobile-row-group:not(.balam-stock-add-group) {
    display: flex !important;
    flex: 0 0 308px !important;
    width: 308px !important;
    gap: 12px !important;
    align-items: flex-end !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .balam-quote-form .balam-products-inputs .balam-quote-qty-field {
    flex: 0 0 116px !important;
    width: 116px !important;
    min-width: 0 !important;
  }
  .balam-quote-form .balam-products-inputs .balam-quote-price-field {
    flex: 1 1 180px !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .balam-quote-form .balam-products-inputs .balam-stock-add-group {
    display: flex !important;
    flex: 0 0 256px !important;
    width: 256px !important;
    gap: 12px !important;
    align-items: flex-end !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
  .balam-quote-form .balam-preinvoice-products-inputs {
    align-items: flex-end !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: minmax(130px, 0.9fr) minmax(250px, 2.2fr) minmax(180px, 1.3fr) minmax(145px, 0.95fr) !important;
    width: 100% !important;
  }
  .balam-quote-form .balam-preinvoice-products-inputs > div:first-child, .balam-quote-form .balam-preinvoice-products-inputs .balam-quote-product-select-field, .balam-quote-form .balam-preinvoice-products-inputs .balam-mobile-row-group, .balam-quote-form .balam-preinvoice-products-inputs .balam-stock-add-group {
    flex: none !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .balam-quote-form .balam-preinvoice-products-inputs .balam-mobile-row-group {
    align-items: flex-end !important;
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .balam-quote-form .balam-preinvoice-products-inputs .balam-stock-add-group {
    align-items: flex-end !important;
    display: flex !important;
    gap: 12px !important;
    width: 100% !important;
  }
  .balam-quote-form .balam-preinvoice-products-inputs .balam-quote-qty-field {
    flex: 0 0 116px !important;
    width: 116px !important;
  }
  .balam-quote-form .balam-preinvoice-products-inputs .balam-quote-price-field {
    flex: 1 1 180px !important;
    min-width: 0 !important;
    width: auto !important;
  }
  .balam-quote-form .balam-preinvoice-products-inputs .balam-stock-add-group > .balam-field {
    flex: 0 0 70px !important;
    width: 70px !important;
  }
  .balam-quote-form .balam-preinvoice-products-inputs .balam-stock-add-group > div:last-child {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .balam-quote-form .balam-preinvoice-products-inputs .balam-stock-add-group .balam-btn {
    width: 100% !important;
  }
}
.balam-row-backorder {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
  color: #959595;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.balam-row-backorder {
  margin-top: 8px;
  text-transform: none;
}
.balam-quote-items-table td.balam-quote-qty-cell {
  text-align: center;
  vertical-align: middle;
}
.balam-quote-items-table td.balam-quote-line-total {
  text-align: center;
  vertical-align: middle;
}
.balam-quote-items-table td.balam-line-total, .balam-quote-items-table td.balam-preinvoice-cell-center {
  text-align: center;
  vertical-align: middle;
}
.balam-quote-qty-cell .balam-row-backorder {
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 0;
}
.balam-quote-qty-cell .balam-qty-group {
  justify-content: center;
}
.balam-row-stock-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  border-radius: 999px;
  background: #f0f0f0;
  color: #333;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  padding: 4px 7px;
  white-space: nowrap;
}
/* CERRADO */
.balam-badge.status-cerrado {
  background: #E5E5E5;
  color: #333;
}
button.balam-badge {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
button.balam-badge:hover {
  filter: brightness(.96);
}
/* INCOMPLETO */
.balam-badge.status-incompleto {
  background: #ffe5e5;
  color: #c62828;
}
.balam-carrier-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}
/* APROBADA */
.balam-badge.status-aprobada {
  background: #e8f4ff;
  color: #0056b3;
}
/* ENVIO LOCAL */
.balam-badge.status-local {
  background: #fde9ff;
  color: #cc6aa9;
}
.balam-badge.status-client-guide {
  background: #ffe7cc;
  color: #c46613;
}
.balam-badge.status-foranea {
  background: #e8f4ff;
  color: #0056b3;
}
.balam-badge.status-prospect-pending {
  background: #fff1b8;
  color: #9a6b00;
}
.balam-badge.status-prospect-results {
  background: #c5f5c5;
  color: #2f7f32;
}
.balam-badge.status-prospect-incomplete {
  background: #ffe7cc;
  color: #c46613;
}
.balam-badge.status-prospect-date {
  background: #f1f1f1;
  color: #333;
}
.balam-badge.status-project {
  background: #fff1db;
  color: #c77413;
}
.balam-projects-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  line-height: 1.35;
  color: #333;
}
.balam-projects-meta strong {
  color: #333;
}
.balam-projects-stack, .balam-project-status-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.balam-table-status-cell .balam-projects-stack, .balam-table-status-cell .balam-project-status-stack {
  align-items: center;
  justify-content: center;
}
.balam-project-close-reason {
  display: block;
  max-width: 140px;
  line-height: 1.25;
}
.balam-project-pdf-modal {
  width: min(58vh, 80vw);
  max-width: 88vw;
  height: min(78vh, 980px);
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.balam-project-pdf-canvas-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
  background: transparent;
}
.balam-project-pdf-pages {
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 0;
  background: transparent;
}
.balam-project-pdf-page-canvas {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  max-height: 100%;
  background: #fff;
  flex: 0 0 auto;
}
.balam-project-pdf-loading {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
#balamProjectQuotePdfModal .balam-close {
  top: 12px;
  right: 12px;
  background: #f0f0f0;
}
.balam-folio-preview-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  margin-top: 6px;
  border: none;
  background: transparent;
  color: #6e6e6e;
  cursor: pointer;
  transition: color .18s ease, transform .18s ease;
}
.balam-folio-preview-trigger svg {
  width: 16px;
  height: 16px;
}
.balam-folio-preview-trigger:hover {
  color: #2f2f2f;
  transform: scale(1.06);
}
.balam-quick-pdf-modal {
  width: min(58vh, 80vw);
  max-width: 88vw;
  height: min(78vh, 980px);
  padding: 0;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}
.balam-quick-pdf-canvas-wrap {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
  background: transparent;
}
.balam-quick-pdf-pages {
  min-height: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  padding: 0;
  background: transparent;
}
.balam-quick-pdf-page-canvas {
  display: block;
  width: auto;
  max-width: none;
  height: 100%;
  max-height: 100%;
  background: #fff;
  flex: 0 0 auto;
}
.balam-quick-pdf-loading {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}
.balam-badge.status-entregado {
  background: #c5f5c5;
  color: #2e7d32;
}
.balam-badge.status-cancelado {
  background: #ffe5e5;
  color: #b71c1c;
}
.balam-shipment-cancel-note {
  margin-top: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  background: #ffeaea;
  color: #9b2020;
  font-size: 11px;
  line-height: 1.35;
}
/* ============================
   TOGGLE ALMACEN
============================ */
.balam-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.balam-toggle {
  position: relative;
  width: 54px;
  height: 25px;
  border-radius: 999px;
  border: 0;
  background: #cfd8d3;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.balam-toggle.is-on {
  background: #44a620;
  border-color: #44a620;
}
.balam-toggle-meta {
  font-size: 11px;
  color: #333;
  margin-top: 4px;
  font-family: monospace;
}
/* ============================
   TOGGLES
============================ */
.balam-toggle.is-off {
  background: #dfdfdf;
}
.balam-toggle.is-disabled {
  opacity: 0.65;
  cursor: default;
}
.balam-toggle-knob {
  position: absolute;
  top: 5px;
  left: 5px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.balam-toggle.is-on .balam-toggle-knob {
  transform: translateX(24px);
}
/* Opcional: Hover sutil */
.balam-badge:hover {
  filter: brightness(0.80);
}
/* ============================
   INPUTS GRANDES COTIZACIONES
============================ */
.balam-input-lg {
  display: block;
  width: 100%;
  font-size: 12px !important;
  padding: 1em;
  height: 2.5em !important;
  font-weight: 600;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  border-radius: 999em;
  border: 1px solid #333 !important;
  background: #fff;
  box-sizing: border-box !important;
  text-overflow: ellipsis;
  transition: all .2s ease;
}
textarea.balam-input-lg {
  height: auto !important;
  border-radius: 1em !important;
  padding: 15px 20px !important;
}
/* ============================
   SELECTS BALAM
============================ */
.balam-select {
  box-sizing: border-box;
  display: inline-block;
  max-width: 100%;
  min-width: 150px;
  position: relative;
  vertical-align: middle;
  width: auto;
  z-index: 20;
}
.balam-select.is-open {
  z-index: 9998;
}
.balam-select-native {
  inset: 0;
  opacity: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
  z-index: -1 !important;
}
.balam-select-trigger {
  align-items: center;
  background: #fff;
  border: 1px solid #333 !important;
  border-radius: 999em;
  box-sizing: border-box;
  color: #333;
  cursor: pointer;
  display: flex;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
  height: 33px !important;
  justify-content: space-between;
  letter-spacing: 0 !important;
  line-height: 1;
  min-height: 33px !important;
  overflow: hidden;
  padding: 1em 1.5em 1em 1.5em;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background-color .18s ease;
  width: 100%;
  font-size: 12px !important;
}
.balam-select.is-input-lg .balam-select-trigger {
  font-size: 12px !important;
  font-weight: 600;
  height: 33px !important;
  min-height: 33px !important;
  padding: 1em !important;
}
.balam-select-trigger:hover {
  border-color: #cfcfcf !important;
}
.balam-select-trigger:focus, .balam-select-trigger:focus-visible, .balam-select.is-open .balam-select-trigger {
  border-color: #333 !important;
  box-shadow: none;
}
.balam-select-value {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.balam-select-chevron {
  border-bottom: 2px solid #333;
  border-right: 2px solid #333;
  display: block;
  flex: 0 0 auto;
  height: 0.8em;
  margin-top: -6px;
  transform: rotate(45deg);
  transition: transform .22s ease, margin-top .22s ease;
  width: 0.8em;
  margin-left: 1em;
}
.balam-select.is-open .balam-select-chevron {
  margin-top: 4px;
  transform: rotate(225deg);
}
.balam-select-panel {
  background: #fff;
  border: 1px solid #333;
  border-radius: 1em;
  box-shadow: 0 18px 32px rgba(0, 0, 0, .12);
  box-sizing: border-box;
  display: grid;
  grid-template-rows: 28px auto minmax(0, auto) 28px;
  left: 0;
  max-height: 0;
  min-width: 100%;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 7px);
  transform: translateY(-6px);
  transform-origin: top center;
  transition: max-height .24s ease, opacity .16s ease, transform .22s ease, visibility .16s ease;
  visibility: hidden;
  width: max-content;
  z-index: 9999;
}
.balam-select-panel.is-portal {
  position: fixed;
  z-index: 100000;
}
.balam-select-options {
  box-sizing: border-box;
  display: grid;
  gap: 0;
  max-height: 194px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0;
  scrollbar-color: #E5E5E5 transparent;
  scrollbar-width: thin;
  width: 100%;
}
.balam-select-search-wrap {
  background: #fff;
  box-sizing: border-box;
  display: block;
  padding: 0 12px 8px;
  width: 100%;
  z-index: 21;
}
.balam-select-search {
  background: #fff;
  border: 1px solid #333;
  border-radius: 999px;
  box-sizing: border-box;
  color: #333;
  display: block;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 700;
  height: 34px;
  letter-spacing: 0 !important;
  outline: 0;
  padding: 0 13px;
  width: 100%;
}
.balam-select-search:focus {
  border-color: #bcd0df;
  box-shadow: 0 0 0 3px rgba(188, 208, 223, .28);
}
.balam-select-empty {
  color: #888;
  display: block;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 14px 14px;
  text-align: center;
}
.balam-select-options::-webkit-scrollbar {
  width: 8px;
}
.balam-select-options::-webkit-scrollbar-track {
  background: transparent;
  margin: 14px 0;
}
.balam-select-options::-webkit-scrollbar-thumb {
  background: #E5E5E5;
  border: 0;
  border-radius: 999px;
}
.balam-select-scroll-cue {
  align-items: center;
  background: #fff;
  box-sizing: border-box;
  color: #959595;
  display: flex;
  font-size: 15px;
  font-weight: 800;
  height: 28px;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
  position: relative;
  width: 100%;
  z-index: 20;
}
.balam-select-scroll-cue::before {
  border-color: #959595;
  border-style: solid;
  border-width: 0 3px 3px 0;
  content: "";
  display: block;
  height: 7px;
  width: 7px;
}
.balam-select-scroll-cue.is-top {
  background: #fff;
  left: 0;
  top: 0;
}
.balam-select-scroll-cue.is-top::before {
  transform: rotate(225deg);
}
.balam-select-scroll-cue.is-bottom {
  background: #fff;
  bottom: 0;
  left: 0;
}
.balam-select-scroll-cue.is-bottom::before {
  transform: rotate(45deg);
}
.balam-select.is-open .balam-select-panel {
  max-height: 320px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}
.balam-select-panel.is-portal.is-open {
  max-height: 320px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}
.balam-select-option {
  align-items: center;
  background: #fff;
  border: 0;
  border-radius: 0;
  color: #333;
  cursor: pointer;
  display: flex;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 600;
  justify-content: flex-start;
  letter-spacing: 0 !important;
  line-height: 1.2;
  min-height: 32px;
  padding: 8px 14px;
  text-align: left;
  opacity: .65;
  transition: background-color .16s ease, color .16s ease, opacity .18s ease, transform .18s ease;
  transform: translateY(-4px);
  white-space: nowrap;
  width: 100%;
}
.balam-select-option-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.balam-select-option-badge {
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 800;
  justify-content: center;
  line-height: 1;
  margin-left: 10px;
  padding: 5px 8px;
  text-transform: uppercase;
}
.balam-select-option-badge.is-out-of-stock {
  background: #ffe1e1;
  color: #d42222;
}
.balam-select-value {
  align-items: center;
  display: inline-flex;
  min-width: 0;
}
.balam-select.is-open .balam-select-option {
  opacity: 1;
  transform: translateY(0);
}
.balam-select-panel.is-open .balam-select-option {
  opacity: 1;
  transform: translateY(0);
}
.balam-select.is-open .balam-select-option:nth-of-type(2) {
  transition-delay: .015s;
}
.balam-select.is-open .balam-select-option:nth-of-type(3) {
  transition-delay: .03s;
}
.balam-select.is-open .balam-select-option:nth-of-type(4) {
  transition-delay: .045s;
}
.balam-select.is-open .balam-select-option:nth-of-type(5) {
  transition-delay: .06s;
}
.balam-select.is-open .balam-select-option:nth-of-type(6) {
  transition-delay: .075s;
}
.balam-select.is-open .balam-select-option:nth-of-type(n+7) {
  transition-delay: .09s;
}
.balam-select-option:nth-of-type(even) {
  background: #E5E5E5;
}
.balam-select-option:hover, .balam-select-option:focus-visible {
  background: #edf8ed;
  outline: 0;
  transform: translateX(2px);
}
.balam-select-option.is-active {
  background: #c5f5c5;
  color: #2f8a1f;
  border-radius: 0px;
  font-weight: 700;
}
.balam-select-option.is-active[data-value=""] {
  background: #333;
  color: #fff;
}
.balam-select-option.is-active::before {
  content: "\2713";
  display: inline-block;
  font-size: 14px;
  font-weight: 900;
  margin-right: 9px;
}
.balam-select-option.is-active[data-value=""]::before {
  content: none;
}
.balam-select-option:disabled {
  color: #aaa;
  cursor: not-allowed;
  transform: none;
}
.balam-select.is-disabled {
  opacity: .62;
}
.balam-select.is-disabled .balam-select-trigger {
  cursor: not-allowed;
}
.balam-prospect-results-modal .balam-select.is-input-lg .balam-select-trigger {
  min-height: 2.5em !important;
  height: 2.5em !important;
  padding: 0 16px !important;
  font-size: 12.8px !important;
  border-radius: 999px !important;
}
.balam-list-filters-grid-primary .balam-select, .balam-select[data-select-class*="balam-calendar-month-select"], .balam-select[data-select-class*="balam-calendar-seller-select"] {
  min-width: 0;
}
.balam-list-filters-grid-primary .balam-select {
  width: 100%;
}
.balam-list-filters-period .balam-select {
  width: 220px;
}
.balam-client-col > .balam-select, .balam-rrss-filter-fields .balam-select, .balam-form .balam-select, .balam-field .balam-select, .balam-modal .balam-select {
  width: 100%;
}
.balam-select[data-select-class*="balam-calendar-month-select"], .balam-select[data-select-class*="balam-calendar-seller-select"] {
  width: auto;
}
/* Ocultar flechas nativas (spinners) */
input[type=number]::-webkit-inner-spin-button, input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type=number] {
  -moz-appearance: textfield;
}
/* Controles personalizados +/- */
.balam-custom-num-input {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #333;
  border-radius: 999em;
  padding: 0 10px;
  height: 2em;
  box-sizing: border-box;
}
.balam-custom-num-input input {
  border: none !important;
  background: transparent !important;
  text-align: center !important;
  width: 100% !important;
  flex: 1;
  margin: 0 !important;
  padding: 0 !important;
  height: 100% !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  font-family: "DM Sans", sans-serif !important;
  color: #333 !important;
  box-shadow: none !important;
}
.balam-num-btn {
  background: none !important;
  border: none !important;
  font-size: 20px !important;
  font-weight: 400 !important;
  cursor: pointer;
  padding: 0 5px;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
  user-select: none;
  height: 100%;
}
.balam-num-btn:hover {
  color: #333;
}
/* ============================
   TITULOS DE SECCION
============================ */
.balam-section-header, .balam-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #E5E5E5;
  padding: 0.5em 1.5em 0.5em 1.5em;
  border-radius: 999em;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.balam-subsection-title, .balam-vehicle-section-title, .balam-petty-section-title {
  font-size: 18px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #333 !important;
}
.balam-section-header-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}
/* Condensacion para Cotizaciones - Ajustada para mejor respiro */
.balam-quote-form h4.balam-subsection-title {
  margin-top: 15px !important;
  margin-bottom: 10px !important;
}
.balam-quote-form .balam-front-filters {
  margin-bottom: 15px !important;
}
.balam-project-registration {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.balam-project-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-family: monospace;
  font-weight: 600;
  color: #333;
  cursor: pointer;
}
.balam-project-toggle input {
  width: 18px;
  height: 18px;
}
.balam-quote-form-card .balam-project-registration {
  margin: 18px 0 6px !important;
}
.balam-quote-form-card .balam-project-registration + .balam-project-registration {
  margin: 0 0 18px !important;
}
.balam-is-hidden {
  display: none;
}
.balam-nowrap {
  white-space: nowrap;
}
.balam-quote-form-error {
  display: none;
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #ffe5e5;
  backdrop-filter: blur(4px);
  color: #c62828;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
  width: 100%;
}
.balam-client-notice {
  display: none;
  margin: 16px 0;
  padding: 12px 16px;
  border-radius: 999px;
  background: #eaf7e6;
  border: 0;
  color: #256029;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .06);
}
.balam-quote-half-wrap-fixed {
  display: block;
  width: 50%;
  max-width: 50%;
  flex: 0 0 50%;
}
.balam-quote-select-full {
  width: 100%;
}
.balam-client-info-panel {
  display: none;
  margin-top: 16px;
}
.balam-client-info-name {
  font-weight: 700;
  margin-bottom: 6px;
}
.balam-min-price-exception-badge {
  display: inline-flex;
  margin-left: 10px;
}
.balam-min-price-exception-badge.balam-is-hidden, .balam-min-price-exception-badge.balam-hidden {
  display: none;
}
.balam-toggle-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-left: 6px;
}
.balam-project-comment {
  width: 100%;
  min-height: 64px;
  resize: vertical;
}
.balam-prospecting-empty-label {
  margin-top: 8px;
  color: #959595;
}
.balam-client-edit-box {
  display: none;
  margin-top: 16px;
}
.balam-client-edit-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  max-width: 720px;
}
.balam-client-edit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.balam-client-edit-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.balam-client-edit-field-full {
  grid-column: 1 / -1;
}
.balam-client-edit-label {
  font-size: 11px;
  font-weight: 600;
  color: #333;
}
.balam-quote-form .balam-products-inputs {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  gap: 12px !important;
  margin-bottom: 20px;
}
.balam-product-type-field {
  width: 150px;
  flex-shrink: 0;
}
.balam-products-input-label {
  display: block;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 1em;
  font-family: monospace;
  color: #333;
}
.balam-stock-field-fixed {
  width: 70px;
  flex-shrink: 0;
}
.balam-stock-add-spacer {
  height: 15px;
  margin-bottom: 4px;
}
.balam-add-product-btn {
  width: 100%;
}
.balam-quote-col-product, .balam-quote-col-features, .balam-quote-col-qty, .balam-quote-col-price, .balam-quote-col-total, .balam-quote-col-actions {
  text-align: center;
}
.balam-quote-col-product {
  width: 16%;
}
.balam-quote-col-features {
  width: 36%;
}
.balam-quote-col-qty {
  width: 15%;
}
.balam-quote-col-price {
  width: 15%;
}
.balam-quote-col-total {
  width: 13%;
}
.balam-quote-col-actions {
  width: 5%;
}
.balam-quote-summary {
  display: flex;
  gap: 50px;
  margin-top: 0;
  align-items: flex-start;
}
.balam-quote-summary-note {
  flex: 1;
  margin-left: 0;
  padding-left: 0;
}
.balam-quote-special-note {
  width: 100%;
  min-height: 58px;
  max-height: 58px;
  border: none;
  background: transparent;
  resize: none;
  font-size: 14px;
  font-weight: 400;
  padding: 1em 1.5em !important;
  box-sizing: border-box;
  line-height: 1.4;
  display: block;
  overflow: hidden;
}
.balam-quote-total-row-muted {
  background: #ececec;
}
.balam-quote-discount-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.balam-quote-discount-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.balam-quote-discount-controls #balam-discount-amount {
  max-width: 80px;
  padding: 6px 10px !important;
}
.balam-quote-totals-amount {
  font-size: 16px;
}
.balam-quote-submit {
  width: 100%;
}
.balam-project-fields {
  background: #E5E5E5;
  border: 1px solid #333;
  border-radius: 16px;
  padding: 16px;
}
.balam-project-fields-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.balam-project-span-2 {
  grid-column: span 2;
}
.balam-project-full {
  grid-column: 1 / -1;
}
.balam-quote-form-card .balam-project-fields {
  box-sizing: border-box;
  width: 50%;
}
.balam-quote-form-card .balam-project-fields-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.balam-quote-form-card .balam-project-fields .balam-label {
  display: block;
  margin: 0 0 6px;
}
.balam-quote-form-card .balam-project-fields .balam-input-lg {
  width: 100% !important;
}
.balam-quote-form-card .balam-project-field, .balam-quote-form-card .balam-project-full {
  min-width: 0;
}
.balam-quote-form-card .balam-project-fields .balam-select {
  display: block;
  max-width: 100%;
  width: 100% !important;
}
.balam-quote-form-card .balam-project-fields .balam-select-trigger {
  width: 100% !important;
}
.balam-quote-form-card .balam-project-fields .balam-select-panel {
  min-width: 100%;
}
.balam-quote-form-card .balam-client-selection-row {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  max-width: 50%;
  width: 50%;
}
.balam-quote-form-card .balam-quote-seller-row {
  max-width: 50%;
  width: 50%;
}
.balam-quote-form-card .balam-system-filters:not(.balam-client-selection-row) {
  max-width: 50%;
  width: 50%;
}
.balam-quote-form-card {
  --balam-quote-control-height: var(--balam-control-height);
  --balam-quote-control-font-size: 12.8px;
  --balam-quote-control-font-weight: 600;
  --balam-quote-control-inline-padding: 1em;
}
.balam-quote-form-card .balam-system-filters select.balam-input-lg, .balam-quote-form-card .balam-system-filters input.balam-input-lg, .balam-quote-form-card .balam-products-inputs select.balam-input-lg, .balam-quote-form-card .balam-system-filters .balam-select.is-input-lg .balam-select-trigger, .balam-quote-form-card .balam-products-inputs .balam-select.is-input-lg .balam-select-trigger, .balam-quote-form-card .balam-client-selection-row .balam-select.is-input-lg .balam-select-trigger {
  font-size: var(--balam-quote-control-font-size) !important;
  font-weight: var(--balam-quote-control-font-weight) !important;
  height: var(--balam-quote-control-height) !important;
  line-height: 1 !important;
  min-height: var(--balam-quote-control-height) !important;
  padding: var(--balam-quote-control-inline-padding) !important;
}
.balam-quote-form-card .balam-system-filters .balam-select.is-input-lg .balam-select-value, .balam-quote-form-card .balam-client-selection-row .balam-select.is-input-lg .balam-select-value, .balam-quote-form-card .balam-products-inputs .balam-select.is-input-lg .balam-select-value {
  font-size: var(--balam-quote-control-font-size) !important;
  font-weight: var(--balam-quote-control-font-weight) !important;
}
.balam-quote-form-card .balam-products-inputs .balam-select.is-input-lg .balam-select-trigger {
  font-size: var(--balam-quote-control-font-size) !important;
  font-weight: var(--balam-quote-control-font-weight) !important;
  height: var(--balam-quote-control-height) !important;
  min-height: var(--balam-quote-control-height) !important;
  padding: var(--balam-quote-control-inline-padding) !important;
}
.balam-quote-form-card .balam-quote-inline-btn {
  align-items: center;
  display: inline-flex;
  font-size: 12px !important;
  font-weight: 600;
  height: 33px !important;
  justify-content: center;
  line-height: 1;
  min-height: 33px;
  padding: 0 20px;
  white-space: nowrap;
}
.balam-quote-form-card .balam-client-selection-row .balam-quote-half-wrap {
  flex: 1 1 auto !important;
  max-width: none !important;
  min-width: 0;
  width: auto !important;
}
.balam-quote-form-card .balam-quote-half-wrap-fixed, .balam-quote-form-card .balam-quote-half-wrap-fixed .balam-select, .balam-quote-form-card .balam-quote-half-wrap-fixed .balam-select-trigger, .balam-quote-form-card .balam-quote-half-wrap-fixed .balam-input-lg {
  width: 100% !important;
}
.balam-quote-form-card .balam-quote-seller-row .balam-quote-half-wrap, .balam-quote-form-card .balam-quote-seller-row .balam-quote-half-wrap-fixed {
  flex: 1 1 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  width: 100% !important;
}
@media (min-width: 981px) {
  .balam-quote-form .balam-products-inputs {
    flex-wrap: nowrap !important;
  }
  .balam-quote-form .balam-products-inputs .balam-quote-product-select-field {
    flex: 1 1 360px !important;
    min-width: 240px !important;
  }
  .balam-quote-form .balam-products-inputs .balam-stock-add-group {
    flex: 0 0 154px !important;
    width: 154px !important;
    gap: 10px !important;
  }
  .balam-quote-form .balam-products-inputs .balam-stock-add-group > .balam-field {
    flex: 0 0 54px !important;
    width: 54px !important;
  }
  .balam-quote-form .balam-products-inputs .balam-stock-add-group > div:last-child {
    flex: 0 0 90px !important;
    width: 90px !important;
  }
  .balam-quote-form .balam-products-inputs .balam-stock-add-group .balam-btn {
    min-width: 90px !important;
    width: 90px !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
.balam-quote-form-card .balam-client-selection-row #balam-btn-new-client {
  flex: 0 0 auto;
}
@media (max-width: 800px) {
  .balam-project-fields-grid {
    grid-template-columns: 1fr;
  }
  .balam-quote-form-card .balam-project-fields {
    width: 100%;
  }
  .balam-quote-form-card .balam-client-selection-row {
    align-items: stretch;
    flex-direction: column;
    max-width: 100%;
    width: 100%;
  }
  .balam-quote-form-card .balam-client-selection-row #balam-btn-new-client {
    width: 100%;
  }
  .balam-project-span-2, .balam-project-full {
    grid-column: auto;
  }
}
/* ============================
   CONTROLES DE CANTIDAD
============================ */
.balam-qty-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.balam-qty-group.balam-qty-group-input {
  width: max-content;
}
.balam-qty-group button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #f1f1f1;
  color: #333;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.balam-qty-group button:hover {
  background: #333;
  color: #b4fb52; /* tu verde */
}
.balam-row-qty {
  width: 42px;
  min-width: 42px;
  height: 28px;
  border: 0;
  background: transparent;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  text-align: center;
  font-weight: 400;
  padding: 0;
  color: #333;
  -moz-appearance: textfield;
}
.balam-qty-group input[type="number"] {
  width: 42px;
  min-width: 42px;
  height: 28px;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  text-align: center;
  font-weight: 400;
  padding: 0 !important;
  color: #333;
  -moz-appearance: textfield;
}
.balam-row-qty::-webkit-outer-spin-button, .balam-row-qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.balam-quote-item-details {
  vertical-align: middle;
}
.balam-quote-item-features {
  margin-bottom: 14px;
  line-height: 1.35;
}
.balam-quote-item-details .balam-row-delivery, .balam-quote-item-details .balam-row-item-note {
  width: 100%;
  box-sizing: border-box;
}
.balam-quote-item-details .balam-row-item-note {
  margin-top: 8px;
}
/* ============================
   BOTON ELIMINAR (X)
============================ */
.balam-front-table button[onclick*="balamRemoveRow"] {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #f1f1f1;
  color: #959595;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.balam-front-table button[onclick*="balamRemoveRow"]:hover {
  background: #ff4d4d;
  color: #fff;
}
/* ============================
   TAREAS
============================ */
.balam-task-card {
  background: #fff;
  border-radius: 18px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .2s ease;
}
.balam-task-card:hover {
  transform: translateY(-2px);
}
.balam-task-body strong {
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}
.balam-task-body p {
  font-size: 12px;
  color: #333;
  margin: 0 0 6px;
}
.balam-task-date {
  font-size: 11px;
  color: #999;
}
.balam-task-link {
  color: #1a73e8;
  cursor: pointer;
  font-size: 16px;
}
.balam-card--spaced {
  margin-bottom: 20px;
}
.balam-card--quotes-board {
  background: #f9fff6;
  border: 2px solid #e0f0d8;
}
.balam-subsection-title--quotes {
  color: #51b327;
}
.balam-grid-auto-300 {
  display: grid;
  gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.balam-task-card--quote {
  border-left: 4px solid #51b327;
  cursor: pointer;
}
.balam-task-quote-mark {
  color: #51b327;
  font-family: serif;
  font-size: 24px;
  line-height: 1;
  margin-bottom: -10px;
  opacity: 0.4;
}
.balam-task-quote-text {
  color: #333;
  font-size: 15px;
  font-style: italic;
  font-weight: 500;
}
.balam-task-quote-meta {
  color: #888;
  font-size: 11px;
  margin-top: 10px;
}
.balam-stack-12 {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.balam-tab-panel {
  display: none;
  flex-direction: column;
  gap: 8px;
  min-height: 0;
}
.balam-tab-panel.is-active {
  display: flex;
  flex: 1 1 auto;
}
.balam-shipment-footer-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 25px;
}
.balam-shipment-footer-notes {
  flex: 1;
}
@media (min-width: 1025px) {
  .balam-shipment-footer-layout {
    flex-direction: row;
    gap: 30px;
    align-items: stretch;
  }
  .balam-shipment-footer-actions {
    min-width: 280px;
    justify-content: flex-end;
  }
}
/* ============================
   TRANSICION AL EDITAR CLIENTE
============================ */
#balam-client-info, #balam-client-edit-box {
  transition: opacity .25s ease, transform .25s ease;
}
.balam-client-name {
  display: grid;
  grid-template-columns: 180px 1fr;
  row-gap: 8px;
  column-gap: 16px;
  font-size: 12px;
  color: #333;
  max-width: 100%;
}
/* ============================
   ESCONDE FIELDS DATOS FISCALES
============================ */
.balam-hidden {
  display: none !important;
}
.balam-display-block {
  display: block !important;
}
.balam-display-flex {
  display: flex !important;
}
.balam-display-inline-flex {
  display: inline-flex !important;
}
.balam-text-muted-strong {
  color: #888;
  font-weight: 800;
}
.balam-text-faint-strong {
  color: #bbb;
  font-weight: 800;
}
.balam-text-muted-semibold {
  color: #959595;
  font-weight: 700;
}
.balam-table-empty-cell {
  text-align: center;
  color: #888;
  font-weight: 800;
}
.balam-empty-state {
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  padding: 52px 24px;
  text-align: center;
}
/* ============================
   AVISO FIELD
============================ */
.balam-error {
  border: 2px solid #e63946 !important;
  background: #fff5f5;
}
/* ============================
   LABEL
============================ */
.balam-label, .balam-label-big {
  display: block;
  font-weight: 600;
  color: #333;
  font-family: monospace;
  text-transform: uppercase;
  margin-bottom: 1em;
}
.balam-label {
  font-size: 11px;
}
.balam-label-big {
  font-size: 13px;
}
.balam-check-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.balam-checkline {
  display: inline-flex;
  flex-direction: row !important;
  align-items: center;
  gap: 8px !important;
  min-height: 24px;
  padding: 2px 0;
  color: #959595;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}
.balam-checkline.balam-hidden {
  display: none;
}
.balam-checkline input[type="checkbox"], .balam-checkline input[type="radio"] {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  flex: 0 0 16px;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #333;
  cursor: pointer;
}
/* ============================
   CARD
============================ */
.balam-card, .balam-block-card {
  box-sizing: border-box;
  padding: 20px;
  border: 1px solid #333;
  border-radius: 0.5em;
  background: #fff;
}
.balam-metric-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}
.balam-metric-item {
  background: #fff;
  border-right: 1px solid #333;
  min-height: 72px;
  padding: 8px 18px;
}
.balam-metric-item:last-child {
  border-right: 0;
}
.balam-metric-item > span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #333;
  font-size: 12px;
  font-weight: 900;
}
.balam-metric-item > strong {
  display: block;
  margin-top: 8px;
  color: #333;
  font-size: 25px;
  line-height: 1.1;
}
.balam-metric-item small {
  margin-left: 4px;
  color: #959595;
  font-size: 12px;
  text-transform: none;
}
.balam-metric-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #c5f5c5;
  color: #333;
}
.balam-metric-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}
.balam-info-box {
  padding: 15px;
  border-radius: 15px;
  background: #c5f5c5;
}
.balam-info-box b,
.balam-info-box strong {
  display: block;
  color: #333;
  font-size: 13px;
}
.balam-info-box span,
.balam-info-box p {
  display: block;
  margin: 3px 0 0;
  color: #333;
  font-size: 11px;
}
.balam-progress-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.balam-progress-item label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  color: #959595;
  font-size: 10px;
  font-weight: 800;
}
.balam-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
}
.balam-progress-track svg {
  display: block;
  width: 100%;
  height: 100%;
}
.balam-progress-fill {
  transition: width .18s ease;
}
.balam-summary-card {
  border-radius: 8px !important;
  margin: 0 !important;
  padding: 14px !important;
}
.balam-summary-card-label {
  color: #959595;
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.balam-summary-card-value {
  color: #333;
  display: block;
  font-size: 20px;
  line-height: 1;
}
.balam-control-card {
  align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid #333333;
  border-radius: 16px;
  display: flex;
  flex-direction: column !important;
  gap: 8px;
  justify-content: center;
  padding: 14px 16px;
}
.balam-control-card--metric {
  align-items: center;
  text-align: center;
}
.balam-control-card--check {
  flex-direction: row !important;
  align-items: center;
  justify-content: center;
  gap: 12px !important;
}
.balam-control-card span {
  color: #959595;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.balam-control-card strong {
  color: #333;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}
.balam-control-card--metric strong {
  font-size: 28px;
  line-height: 1;
}
.balam-data-row {
  display: grid;
  gap: 8px;
  align-items: center;
  padding: 9px 12px;
  border: 2px solid #e3e3e3;
  border-radius: 12px;
  background: #e5e5e5;
  color: #333;
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
}
.balam-data-row--batch {
  grid-template-columns: .75fr minmax(0, 1.35fr) repeat(3, .78fr) auto;
}
.balam-data-row--location {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
}
.balam-data-row > span, .balam-data-row > strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.balam-data-row > em {
  color: #50b428;
  font-style: normal;
}
.balam-form-grid, .balam-warranty-form-grid, .balam-vehicle-form-grid, .balam-task-form-grid, .balam-rrss-modal-grid, .balam-mail-grid, .balam-po-email-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.balam-form-grid--1 {
  grid-template-columns: minmax(0, 1fr);
}
.balam-form-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.balam-form-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.balam-form-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.balam-form-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.balam-form-grid--with-action {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.35fr) minmax(0, .75fr) auto;
}
.balam-form-grid.is-disabled {
  opacity: .45;
}
.balam-form-grid.is-disabled input, .balam-form-grid.is-disabled select, .balam-form-grid.is-disabled textarea {
  cursor: not-allowed;
}
@media (max-width: 760px) {
  .balam-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .balam-data-row--batch, .balam-data-row--location {
    grid-template-columns: minmax(0, 1fr);
  }
  .balam-grid-span-2, .balam-grid-span-3 {
    grid-column: auto;
  }
}
.balam-drive-status-grid, .balam-drive-credentials-grid, .balam-billing-stats, .balam-backorders-summary {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.balam-backorders-wrapper {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.balam-tracking-detail-grid, .balam-system-detail-grid, .balam-vehicle-detail-grid, .balam-petty-detail-grid {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.balam-mail-panel label, .balam-drive-credentials-grid label, .balam-whatsapp-grid label, .balam-system-google-maps .balam-whatsapp-grid label, .balam-formats-panel .balam-format-editor label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.balam-mail-panel label > span, .balam-drive-credentials-grid span, .balam-whatsapp-grid label > span, .balam-system-google-maps .balam-whatsapp-grid label > span {
  color: #959595;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.balam-modal-footer, .balam-task-detail-footer, .balam-modal-footer-split {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.balam-text-preline {
  white-space: pre-line;
}
.balam-scroll-x {
  overflow: auto;
}
.balam-reports-wrapper > .balam-block-card + .balam-block-card, .balam-reports-wrapper > .balam-report-sections + .balam-block-card, .balam-reports-wrapper > .balam-block-card + .balam-report-sections {
  margin-top: 20px !important;
}
/* Evitar que el wrapper de movil rompa la fila en desktop */
.balam-mobile-row-group, .balam-stock-add-group {
  display: contents;
}
.balam-stock-add-group > div:last-child {
  width: 100px;
}
/* En desktop, balam-form-card no debe anadir estilos extra para evitar duplicar el borde de front-content */
@media (min-width: 1025px) {
  .balam-front-content.balam-form-card {
    background: transparent !important;
    border: 1px solid #333;
    border-radius: 1em !important;
    padding: 1.5em;
  }
  .balam-front-content.balam-client-form-content {
    background: transparent !important;
    border: 1px solid #333 !important;
    border-radius: 1em !important;
    box-shadow: none !important;
    margin-top: 0 !important;
    padding: 1.5em !important;
  }
  .balam-front-content.balam-client-form-content .balam-client-form > .balam-client-form-panel, .balam-front-content.balam-client-form-content .balam-client-form > .balam-card {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    transition: none !important;
  }
}
.balam-client-form-info-row {
  margin-bottom: 10px;
}
.balam-client-form-info-card {
  padding: 10px 14px;
  background: #f6f6f6;
  border-radius: 10px;
  font-size: 13px;
  color: #959595;
  flex: 1;
}
.balam-client-form-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.balam-client-constancia-field {
  flex: 1;
}
.balam-client-constancia-preview-link {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #333;
}
.balam-client-constancia-preview-img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border: 1px solid #333;
  border-radius: 8px;
  background: #f4f4f4;
}
.balam-client-constancia-preview-text {
  font-size: 12px;
}
.balam-client-constancia-help {
  color: #333;
  font-size: 11px;
}
.balam-client-save-notice {
  margin-bottom: 16px;
}
.balam-client-constancia-preview-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  min-width: 110px;
}
.balam-client-constancia-preview-frame {
  display: block;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 10px;
  background: #f4f4f4;
}
.balam-client-constancia-preview-object {
  width: 220px;
  height: 220px;
  border: 0;
  transform: scale(.38);
  transform-origin: top left;
  pointer-events: none;
  display: block;
}
.balam-client-constancia-preview-fallback {
  display: flex;
  width: 84px;
  height: 84px;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 18px;
  font-weight: 800;
}
.balam-client-uppercase-field {
  text-transform: uppercase;
}
.balam-client-fields-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
  flex-wrap: wrap;
}
.balam-client-field-span-2 {
  flex: 2 1 320px;
}
.balam-client-field-span-1 {
  flex: 1 1 220px;
}
.balam-client-field-span-06 {
  flex: 0.6 1 140px;
}
.balam-client-fields-row-halves .balam-client-field-span-1 {
  flex: 1 1 calc(50% - 7px);
  min-width: 280px;
}
.balam-client-fiscal-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px !important;
  width: 100% !important;
}
.balam-client-fiscal-row .balam-client-field-span-1, .balam-client-fiscal-row .balam-select, .balam-client-fiscal-row select.balam-input-lg, .balam-client-fiscal-row .balam-input-lg {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  justify-self: stretch !important;
}
.balam-client-fiscal-row .balam-select .balam-select-trigger {
  width: 100% !important;
  max-width: none !important;
}
.balam-client-subsection-gap {
  margin-top: 25px;
}
.balam-client-edit-footer {
  margin-top: 25px;
  width: 100%;
}
.balam-client-edit-footer .balam-btn {
  white-space: nowrap;
}
.balam-supplier-preinvoice-native, .balam-supplier-file-input {
  display: none !important;
}
.balam-suppliers-entry-summary-grid {
  display: grid;
  gap: 8px 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.balam-suppliers-entry-summary-grid > div {
  font-size: 11px;
  line-height: 1.2;
}
.balam-suppliers-entry-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.balam-suppliers-entry-summary-grid strong {
  display: inline;
  font-size: 11px;
  margin: 0;
}
.balam-suppliers-entry-summary-item span {
  display: block;
  margin: 0;
}
.balam-supplier-preinvoice-picker {
  position: relative;
}
.balam-photo-dropzone {
  align-items: start;
  background: #fff;
  border: 1px dashed #ccc;
  border-radius: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(80px, 80px));
  padding: 15px;
}
.balam-photo-upload-trigger {
  align-items: center;
  border: 2px dashed #bbb;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  height: 80px;
  justify-content: center;
  width: 80px;
}
.balam-photo-upload-plus {
  color: #bbb;
  font-size: 30px;
}
.balam-photo-status-copy {
  align-self: center;
  display: flex;
  flex-direction: column;
  grid-column: 2 / -1;
  justify-content: center;
  min-width: 220px;
  padding-left: 10px;
}
.balam-photo-item-thumb {
  border-radius: 10px;
  height: 80px;
  overflow: hidden;
  position: relative;
  width: 80px;
}
.balam-photo-item-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.balam-date-display-input {
  cursor: pointer;
}
.balam-date-picker-popover {
  background: #fff;
  border: 2px solid #E5E5E5;
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .14);
  box-sizing: border-box;
  display: none;
  left: var(--balam-date-picker-left, 12px);
  max-width: var(--balam-date-picker-max-width, none);
  min-width: var(--balam-date-picker-min-width, 0);
  padding: 14px;
  position: fixed;
  top: var(--balam-date-picker-top, 12px);
  width: var(--balam-date-picker-width, 254px);
  z-index: 1000000;
}
.balam-date-picker-popover.is-open {
  display: block;
}
.balam-date-picker-popover.is-mobile {
  border: 2px solid #E5E5E5;
}
.balam-date-picker-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}
.balam-date-picker-title {
  color: #333;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .03em;
}
.balam-date-picker-nav {
  border: 0;
  background: #E5E5E5;
  border-radius: 999px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 18px;
  line-height: 1;
  color: #333;
}
.balam-date-picker-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  text-align: center;
  font-size: 10px;
  color: #959595;
  font-weight: 800;
  margin-bottom: 3px;
  font-family: "DM Sans", Arial, sans-serif;
}
.balam-date-picker-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.balam-date-picker-day {
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #333;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.balam-date-picker-day.is-selected {
  background: #333;
  color: #fff;
  font-weight: 800;
}
.balam-date-picker-day.is-today {
  background: #c5f5c5;
  color: #44a620;
  font-weight: 800;
}
.balam-date-picker-day.is-reference {
  background: #e6e8eb;
  color: #333;
  font-weight: 800;
}
.balam-date-picker-day.is-outside {
  color: #9aa0a6;
}
.balam-date-picker-clear {
  border: 0;
  background: transparent;
  color: #333;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.balam-date-picker-today {
  border: 0;
  background: #c5f5c5;
  color: #44a620;
  border-radius: 999px;
  padding: 8px 14px;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.balam-client-free-price-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px 0 14px;
  color: #333;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
  cursor: pointer;
}
.balam-client-free-price-control input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #51b327;
  cursor: pointer;
}
.balam-client-assigned-seller-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 28px;
  max-width: 420px;
}
.balam-client-name-rfc-row {
  display: grid !important;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr) !important;
  gap: 14px !important;
  align-items: start !important;
}
.balam-client-name-rfc-name {
  position: relative;
  min-width: 0;
}
.balam-client-name-rfc-rfc {
  min-width: 0;
}
.balam-client-name-rfc-row .balam-input-lg {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.balam-client-name-suggest {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #c5f5c5;
  border: 1px solid #9adf9a;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
  max-height: 230px;
  overflow: auto;
  z-index: 120;
}
.balam-client-name-suggest.is-open {
  display: block;
}
.balam-client-suggest-item {
  display: block;
  width: 100%;
  text-align: left;
  background: #c5f5c5;
  border: 0;
  padding: 10px 12px;
  cursor: pointer;
  border-bottom: 1px solid #a8e3a8;
}
.balam-client-suggest-item-name {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}
.balam-client-suggest-item-meta {
  font-size: 11px;
  color: #333;
  margin-top: 2px;
}
.balam-client-dup-hint {
  display: none;
  color: #b71c1c;
  font-size: 11px;
  margin-top: 6px;
}
.balam-client-dup-hint.is-visible {
  display: block;
}
.balam-client-delete-modal {
  display: none;
}
@media (max-width: 780px) {
  .balam-client-name-rfc-row {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 760px) {
  .balam-client-edit-footer {
    flex-wrap: wrap;
  }
  .balam-client-edit-footer-left, .balam-client-edit-footer-right {
    width: 100%;
  }
  .balam-client-edit-footer-right {
    justify-content: flex-start;
  }
}
.balam-states-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  align-items: stretch;
}
.balam-states-col {
  height: 100%;
  display: flex;
}
.balam-states-col .balam-front-table {
  height: 100%;
  margin-top: 0;
}
.balam-states-chart-card {
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}
.balam-states-pie-wrap {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  position: relative;
}
#balamStatesSalesChart {
  width: 100% !important;
  height: 100% !important;
}
.balam-states-legend {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.2;
  height: auto;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}
.balam-summary-table {
  table-layout: fixed;
}
.balam-reports-col-vendor {
  width: 24%;
}
.balam-reports-col-sales {
  width: 17%;
}
.balam-reports-col-orders-sm {
  width: 9%;
}
.balam-reports-col-quotes-sm {
  width: 10%;
}
.balam-reports-col-clients {
  width: 14%;
}
.balam-reports-col-performance {
  width: 26%;
}
.balam-reports-col-product-lg {
  width: 34%;
}
.balam-reports-col-units {
  width: 11%;
}
.balam-reports-col-money-md {
  width: 15%;
}
.balam-reports-col-margin {
  width: 10%;
}
.balam-reports-col-product-md {
  width: 34%;
}
.balam-reports-col-category {
  width: 24%;
}
.balam-reports-col-frequency {
  width: 14%;
}
.balam-reports-col-share {
  width: 14%;
}
.balam-reports-col-stock {
  width: 14%;
}
.balam-reports-col-days {
  width: 14%;
}
.balam-reports-col-category-lg {
  width: 34%;
}
.balam-reports-col-offered {
  width: 22%;
}
.balam-reports-col-frequency-total {
  width: 22%;
}
.balam-reports-col-share-total {
  width: 22%;
}
.balam-reports-col-state {
  width: 42%;
}
.balam-reports-col-state-sales {
  width: 33%;
}
.balam-reports-col-state-clients {
  width: 12%;
}
.balam-reports-col-state-orders {
  width: 13%;
}
.balam-reports-col-carrier {
  width: 50%;
}
.balam-reports-col-deliveries {
  width: 20%;
}
.balam-reports-col-otd {
  width: 30%;
}
.balam-reports-cell-compact {
  font-size: 10px;
  padding: 6px 9px;
}
.balam-reports-hidden-ranking-card {
  background: #fff;
  border: 2px solid #dfe7db;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.balam-reports-hidden-ranking-body {
  background: #fff;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.balam-reports-hidden-ranking-table {
  border-bottom: none;
  height: 100%;
  margin-top: 0;
}
.balam-reports-hidden-ranking-col-model {
  font-size: 11px;
  padding: 8px 10px;
  width: 70%;
}
.balam-reports-hidden-ranking-col-units {
  font-size: 11px;
  padding: 8px 10px;
  width: 30%;
}
.balam-reports-hidden-ranking-cell {
  font-size: 11px;
  padding: 7px 10px;
}
.balam-reports-map-shell {
  background: transparent;
  padding: 0;
  position: relative;
}
.balam-reports-map-controls-card {
  margin-bottom: 8px;
  padding: 8px;
}
.balam-reports-map-controls-row {
  align-items: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.balam-reports-map-control-label {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.balam-reports-map-state-select {
  min-width: 180px;
}
.balam-reports-map-help {
  color: #333;
  font-size: 11px;
  margin-top: 6px;
}
.balam-reports-map-stage {
  aspect-ratio: 50500 / 36000;
  margin: 0 auto;
  max-width: 760px;
  position: relative;
  width: 100%;
}
.balam-reports-map-image {
  display: block;
  height: 100%;
  inset: 0;
  object-fit: contain;
  position: absolute;
  width: 100%;
}
.balam-reports-map-calibration-svg {
  cursor: crosshair;
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 3;
}
.balam-reports-map-arrows-svg {
  height: 100%;
  inset: 0;
  overflow: visible;
  pointer-events: none;
  position: absolute;
  width: 100%;
  z-index: 2;
}
.balam-reports-map-card-item {
  font-weight: 500;
}
.balam-reports-map-state-card {
  left: 0;
  position: absolute;
  text-align: left;
  top: 0;
  transform: translate(-50%, -50%);
  width: 150px;
  z-index: 3;
}
.balam-reports-map-state-card-box {
  background: #fff;
  border: 2px solid #d9e1db;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .06);
  box-sizing: border-box;
  display: block;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.15;
  padding: 5px 7px;
  width: 100%;
}
.balam-reports-map-output {
  font-family: monospace;
  font-size: 11px;
  margin-top: 8px;
  min-height: 120px;
  width: 100%;
}
.balam-vendor-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}
.balam-vendor-stat-card {
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 14px 16px;
}
.balam-vendor-stat-card-list {
  justify-content: flex-start;
  text-align: left;
}
.balam-vendor-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: #959595;
  line-height: 1.1;
}
.balam-vendor-stat-value-small {
  font-size: 20px;
}
.balam-vendor-stat-list {
  margin: 4px 0 0;
  padding-left: 16px;
  font-size: 11px;
  line-height: 1.2;
}
.balam-vendor-stat-empty {
  margin-top: 6px;
  color: #888;
  font-size: 12px;
}
@media (max-width: 1024px) {
  .balam-vendor-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .balam-vendor-stats-grid {
    grid-template-columns: 1fr;
  }
}
.balam-summary-table th, .balam-summary-table td {
  vertical-align: middle;
}
.balam-performance {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.balam-performance-pct {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  color: #3b3b3b;
}
.balam-performance-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: #E5E5E5;
  overflow: hidden;
}
.balam-performance-fill {
  height: 100%;
  background: linear-gradient(90deg, #7fdc7f 0%, #38b84b 100%);
  border-radius: 999px;
}
.balam-logistics-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 10px 0 18px;
}
.balam-logistics-kpi {
  border: 1px solid #333;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}
.balam-logistics-kpi span {
  color: #333;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.balam-logistics-kpi strong {
  color: #333;
  font-size: 28px;
  line-height: 1;
}
.balam-logistics-kpi small {
  color: #959595;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}
.balam-logistics-sections {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}
.balam-profitability-table td {
  vertical-align: middle;
}
@media (max-width: 1024px) {
  .balam-logistics-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .balam-logistics-sections {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .balam-logistics-kpi-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================
   VENTANA DE CONFIRMACION (ANIMACIONES MODAL)
============================ */
@keyframes balamFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes balamModalZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.balam-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  overflow: auto;
  padding: 24px;
  animation: balamFadeIn 0.3s ease forwards;
}
.balam-modal {
  background: #fff;
  backdrop-filter: blur(4px);
  border-radius: 1em;
  padding: 2.5em;
  width: 420px;
  max-width: 92%;
  animation: balamModalZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  position: relative;
  border: 1px solid #333;
  box-shadow: 8px 8px 0px #00000050;
}
.balam-modal-400 {
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  max-height: min(400px, calc(100vh - 48px));
  max-height: min(400px, calc(100dvh - 48px));
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: auto;
  scrollbar-color: #333 transparent;
}
.balam-modal-400 .balam-actions {
  flex-wrap: nowrap;
  width: 100%;
}
.balam-modal-400 .balam-actions > .balam-btn {
  flex: 1 1 0;
  justify-content: center;
  min-width: 0;
  width: 100%;
}
.balam-modal-400 .balam-actions > .balam-btn.color-black {
  flex-grow: 2;
}
.balam-modal-600 {
  width: 100%;
  max-width: 600px;
  max-height: min(600px, calc(100vh - 48px));
  max-height: min(600px, calc(100dvh - 48px));
}
.balam-modal-800 {
  width: 100%;
  max-width: 800px;
  max-height: min(800px, calc(100vh - 48px));
  max-height: min(800px, calc(100dvh - 48px));
}
.balam-modal-scroll {
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
}
.balam-modal-scroll-600 {
  max-height: calc(min(600px, calc(100vh - 48px)) - 76px);
  max-height: calc(min(600px, calc(100dvh - 50px)) - 80px);
}
.balam-modal-scroll-800 {
  max-height: calc(min(800px, calc(100vh - 48px)) - 76px);
  max-height: calc(min(800px, calc(100dvh - 50px)) - 80px);
}
.balam-modal-scroll-600, .balam-modal-scroll-800 {
  scrollbar-width: auto;
  scrollbar-color: #333 transparent;
}
.balam-modal-flex-1 {
  flex: 1;
}
.balam-modal-flex-2 {
  flex: 2;
}
.balam-inline-flex-gap-6 {
  display: flex;
  align-items: center;
  gap: 6px;
}
.balam-btn-block {
  width: 100%;
}
.balam-table-14 th, .balam-table-14 td {
  font-size: 14px !important;
}
.balam-subsection-tight {
  margin-bottom: 5px;
}
.balam-textarea-min-92 {
  height: auto;
  min-height: 92px;
  resize: vertical;
}
.balam-shipment-notes-textarea {
  width: 100%;
  display: block;
  min-height: 135px;
  padding: 1.5em !important;
}
.balam-close {
  position: absolute;
  top: calc(20px + env(safe-area-inset-top));
  right: 20px;
  width: 32px;
  height: 32px;
  background: #E5E5E5;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100;
}
.balam-close:hover {
  background: #e0e0e0;
  transform: rotate(90deg);
}
/* Imagen clickable */
.balam-zoomable {
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.balam-zoomable:hover {
  transform: scale(1.05);
}
/* MODAL */
.balam-image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
}
.balam-image-modal img {
  max-width: 50%;
  max-height: 50%;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
}
/* BOTON CERRAR */
.balam-image-close {
  display: none;
  position: absolute;
  font-size: 100px;
  color: #fff;
  cursor: pointer;
}
/* ============================
   GALERIA EMBARQUES
============================ */
.balam-gallery-modal {
  max-width: 980px;
  width: 95%;
}
.balam-gallery-layout {
  display: grid;
  grid-template-columns: 0.6fr 0.8fr;
  gap: 20px;
}
.balam-gallery-guide {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}
.balam-gallery-proof-wrap {
  position: relative;
  display: inline-block;
}
.balam-proof-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
}
.balam-gallery-proof {
  width: 100%;
  max-width: 420px;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid #333;
  background: #E5E5E5;
  padding: 0px;
}
.balam-gallery-photos {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.balam-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.balam-photo-thumb {
  border: 2px solid #333;
  border-radius: 10px;
  overflow: hidden;
  background: #E5E5E5;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: relative;
}
.balam-photo-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: transform 0.2s ease;
}
.balam-photo-thumb img:hover {
  transform: scale(1.05);
}
.balam-photo-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
}
.balam-photo-action {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}
.balam-gallery-zoom {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #333;
  border-radius: 12px;
  background: #E5E5E5;
  padding: 8px;
  min-height: 220px;
}
.balam-gallery-zoom img {
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
}
.balam-gallery-upload {
  display: flex;
  justify-content: center;
}
.balam-gallery-zoom-overlay {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, .6);
  z-index: 10090;
}
.balam-gallery-zoom-stage {
  align-items: center;
  display: flex;
  gap: 18px;
  height: 100%;
  justify-content: center;
  padding: 20px;
  width: 100%;
}
.balam-gallery-zoom-image {
  background: #fff;
  border-radius: 10px;
  height: auto;
  max-height: 90vh;
  max-width: 92vw;
  object-fit: contain;
  width: auto;
}
.balam-gallery-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}
.balam-invoice-modal {
  width: fit-content !important;
  max-width: 94vw !important;
  max-height: 90vh;
  padding: 24px 24px 32px !important;
  position: relative;
}
.balam-invoice-preview {
  width: fit-content;
  max-width: calc(94vw - 48px);
  height: min(72vh, 760px);
  min-height: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid #333;
  border-radius: 12px;
  background: #fff;
}
.balam-invoice-preview-img, .balam-invoice-pdf-canvas {
  width: auto;
  max-width: calc(94vw - 52px);
  max-height: 100%;
  display: block;
  background: #fff;
  cursor: zoom-in;
  transition: transform .12s ease-out;
  will-change: transform;
}
.balam-invoice-preview-img.balam-pan-enabled, .balam-invoice-pdf-canvas.balam-pan-enabled {
  cursor: grab;
}
.balam-invoice-preview-img.balam-pan-enabled.is-panning, .balam-invoice-pdf-canvas.balam-pan-enabled.is-panning {
  cursor: grabbing;
  transition: none;
}
.balam-invoice-frame {
  width: auto;
  max-width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}
.balam-invoice-loading {
  color: #959595;
  font-weight: 800;
  text-transform: uppercase;
}
/* ============================
   CALENDARIO
============================ */
.balam-calendar-wrap {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.balam-calendar-head {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}
.balam-calendar-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
}
.balam-calendar-month-select, .balam-calendar-seller-select {
  width: 240px;
  max-width: 100%;
  height: 42px;
  line-height: 1.2;
  padding: 0 42px 0 18px;
}
.balam-calendar-seller-select {
  width: 260px;
}
.balam-calendar-clear {
  margin-left: auto;
  white-space: nowrap;
}
.balam-calendar-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.balam-calendar-filter {
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity .2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.balam-calendar-filter:not(.is-active) {
  opacity: .35;
}
.balam-calendar-event-group-icon, .balam-calendar-event-icon {
  display: inline-flex;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.balam-calendar-event-group-icon svg, .balam-calendar-event-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}
.balam-company-side-mini-icon, .balam-company-event-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.balam-company-event-copy {
  min-width: 0;
  flex: 1 1 auto;
}
.balam-company-day-event-arrow {
  flex: 0 0 auto;
}
.balam-company-toolbar {
  align-items: center;
  gap: 14px;
}
.balam-company-filter-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.balam-company-actions {
  align-items: center;
  flex-wrap: wrap;
}
.balam-company-month-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 18px;
}
.balam-company-month-title-row h4 {
  margin: 0;
  color: #333;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.balam-company-maximize-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #E5E5E5;
  border-radius: 999px;
  background: #fff;
  color: #333;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}
.balam-company-maximize-btn svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.balam-company-top-summary {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 260px);
  gap: 14px;
  align-items: stretch;
}
.balam-company-top-summary-section {
  border: 1px solid #333;
  border-radius: 15px;
  background: #fff;
  padding: 10px 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.balam-company-top-summary-title {
  color: #959595;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.balam-company-top-kpi {
  border-radius: 14px;
  background: #E5E5E5;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.balam-company-top-kpi span, .balam-company-top-next span {
  color: #333;
  font-size: 12px;
  line-height: 1.35;
}
.balam-company-top-event-row {
  margin-top: 0px;
  border-radius: 999em;
  background: color-mix(in srgb, var(--event-color, #E5E5E5) 10%, #ffffff);
  padding: 5px 10px;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-width: 0;
}
.balam-company-top-event-row > span:not(.balam-company-side-mini-icon) {
  min-width: 0;
  color: #333;
  font-size: 11px;
}
.balam-company-top-event-row strong {
  color: #333;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}
.balam-company-top-event-row .balam-company-side-mini-icon {
  color: var(--event-color, #959595);
}
.balam-company-top-next {
  border-radius: 14px;
  background: #E5E5E5;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.balam-company-top-next strong {
  color: #333;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
}
.balam-company-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
}
.balam-company-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #333;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}
.balam-company-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #E5E5E5;
  flex: 0 0 auto;
}
.balam-company-legend-swatch[data-legend-color="#333"] {
  background: #333;
}
.balam-company-legend-swatch[data-legend-color="#c5f5c5"] {
  background: #c5f5c5;
}
.balam-company-legend-swatch[data-legend-color="#0891b2"] {
  background: #0891b2;
}
.balam-company-legend-swatch[data-legend-color="#fc944c"] {
  background: #fc944c;
}
.balam-company-legend-swatch[data-legend-color="#9260e8"] {
  background: #9260e8;
}
.balam-company-legend-swatch[data-legend-color="#b7ddf2"] {
  background: #b7ddf2;
}
.balam-company-legend-swatch[data-legend-color="#E5E5E5"] {
  background: #E5E5E5;
}
.balam-company-legend-swatch[data-legend-color="#f25c9f"] {
  background: #f25c9f;
}
.balam-company-legend-swatch[data-legend-color="#facc15"] {
  background: #facc15;
}
.balam-company-feature-row {
  min-height: var(--company-calendar-panel-height, auto);
}
.balam-company-calendar .balam-task-calendar-month.is-feature-month {
  width: 100%;
}
.balam-company-day-event-card {
  border: 1px solid color-mix(in srgb, var(--event-color, #2f80ed) 24%, #E5E5E5);
  border-left: 3px solid var(--event-color, #2f80ed);
  border-radius: 10px;
  background: color-mix(in srgb, var(--event-color, #2f80ed) 12%, #ffffff);
  overflow: hidden;
}
.balam-company-day-event-summary {
  list-style: none;
  margin: 0;
  padding: 6px 8px;
  background: transparent;
  cursor: pointer;
}
.balam-company-day-event-summary::-webkit-details-marker {
  display: none;
}
.balam-company-event-type, .balam-company-event-title, .balam-company-event-time, .balam-company-event-badge, .balam-company-event-attendee, .balam-company-day-event-empty {
  font-size: 11px;
  line-height: 1.25;
}
.balam-company-event-badge {
  color: #333;
  font-weight: 700;
}
.balam-company-day-event-arrow {
  color: #959595;
  font-size: 12px;
  line-height: 1;
  margin-left: auto;
  transition: transform .2s ease;
}
.balam-company-day-event-panel {
  padding: 0 8px 8px 34px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.balam-company-day-event-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.balam-company-event-open {
  align-self: flex-start;
}
.balam-vacation-status-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.balam-vacation-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #959595;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}
.balam-vacation-status svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
  stroke-width: 2.2;
}
.balam-vacation-status.approved {
  color: #44a620;
}
.balam-vacation-status.pending {
  color: #959595;
}
.balam-calendar-grid-wrap {
  border: 1px solid #333;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}
.balam-calendar-grid {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.balam-calendar-grid.balam-shared-month-grid td.is-muted, .balam-calendar-grid.balam-shared-month-grid td.is-weekend, .balam-calendar-grid.balam-shared-month-grid td.is-occupied.is-weekend {
  background: #E5E5E5 !important;
}
.balam-calendar-col-workday {
  width: 15.38%;
}
.balam-calendar-col-sunday {
  width: 7.72%;
}
.balam-calendar-grid th {
  background: #333;
  color: #fff;
  padding: 10px 6px;
  text-align: center;
  font-size: 12px;
}
.balam-calendar-grid td {
  vertical-align: top;
  border: 1px solid #efefef;
  height: 126px;
  padding: 6px;
}
.balam-calendar-grid td.is-muted {
  background: #E5E5E5;
}
.balam-calendar-day-num {
  font-size: 22px;
  color: #959595;
  margin-bottom: 6px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 5px;
}
.balam-calendar-mobile-day-label {
  display: none;
}
.balam-calendar-today-star {
  color: inherit;
  font-size: 15px;
  line-height: 1;
}
.balam-calendar-day-events {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.balam-calendar-event-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.balam-calendar-event-group-toggle {
  border: 0;
  border-radius: 999px;
  min-height: 26px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  cursor: pointer;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}
.balam-calendar-event-group-toggle > span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.balam-calendar-event-group-arrow {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 12px;
  line-height: 1;
  transition: transform .18s ease;
}
.balam-calendar-event-group.is-open .balam-calendar-event-group-arrow {
  transform: rotate(180deg);
}
.balam-calendar-event-group-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transform: translateY(-4px);
  transition: grid-template-rows .22s ease, opacity .18s ease, transform .22s ease;
  padding-left: 4px;
  overflow: hidden;
}
.balam-calendar-event-group.is-open .balam-calendar-event-group-panel {
  grid-template-rows: 1fr;
  opacity: 1;
  transform: translateY(0);
}
.balam-calendar-event-panel-inner {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.balam-calendar-event {
  border: 0;
  border-radius: 999px;
  text-align: left;
  background: #E5E5E5;
  color: #333;
  font-size: 11px;
  font-weight: 800;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 5px 8px;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transition:
    opacity .31s ease, transform .41s cubic-bezier(.2, .85, .25, 1.15), filter .31s ease;
}
.balam-calendar-event-group.is-open .balam-calendar-event {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: var(--balam-domino-delay, 0ms);
}
.balam-calendar-event.calendar-quote, .balam-calendar-event-group.calendar-quote .balam-calendar-event-group-toggle {
  background: #fff7dc;
  color: #9a6a00;
}
.balam-calendar-event.calendar-preinvoice, .balam-calendar-event-group.calendar-preinvoice .balam-calendar-event-group-toggle {
  background: #ebf4ff;
  color: #1759b8;
}
.balam-calendar-event.calendar-shipment, .balam-calendar-event-group.calendar-shipment .balam-calendar-event-group-toggle {
  background: #fff0e8;
  color: #ba4e12;
}
.balam-calendar-event.calendar-delivered, .balam-calendar-event-group.calendar-delivered .balam-calendar-event-group-toggle {
  background: #e9f9ec;
  color: #237c35;
}
.balam-badge.balam-calendar-filter.calendar-quote {
  background: #fff7dc;
  color: #9a6a00;
}
.balam-badge.balam-calendar-filter.calendar-preinvoice {
  background: #ebf4ff;
  color: #1759b8;
}
.balam-badge.balam-calendar-filter.calendar-shipment {
  background: #fff0e8;
  color: #ba4e12;
}
.balam-badge.balam-calendar-filter.calendar-delivered {
  background: #e9f9ec;
  color: #237c35;
}
.balam-calendar-modal {
  width: 460px;
  max-width: 94%;
}
.balam-calendar-modal-type {
  margin-bottom: 12px;
}
.balam-calendar-modal-body p {
  margin: 0 0 7px;
  font-size: 13px;
}
.balam-task-calendar .balam-calendar-head {
  display: none;
}
.balam-task-calendar-year-label {
  align-items: center;
  background: #E5E5E5;
  border-radius: 999px;
  color: #333;
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  min-width: 104px;
  padding: 0 18px;
}
.balam-task-calendar-month {
  min-width: 0;
}
.balam-task-calendar-month h4 {
  color: #333;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 4px;
}
.balam-task-calendar-month.is-past {
  filter: grayscale(1);
  opacity: .46;
}
.balam-task-calendar-month.is-active {
  opacity: 1;
}
.balam-task-calendar-month .balam-calendar-grid-wrap {
  border-radius: 12px;
}
.balam-task-calendar-month .balam-calendar-grid th {
  font-size: 9px;
  padding: 5px 3px;
}
.balam-task-calendar-month .balam-calendar-grid td {
  height: 42px;
  padding: 2px 4px;
}
.balam-task-calendar-month .balam-calendar-day-num {
  font-size: 13px;
  line-height: 1;
  margin-bottom: 2px;
}
.balam-task-calendar-month .balam-calendar-day-events {
  gap: 2px;
}
.balam-task-calendar-month td.is-clickable-day {
  cursor: pointer;
}
.balam-task-calendar-month td.is-clickable-day:hover {
  background: #f7fff4;
}
.balam-task-calendar-month td.is-occupied {
  background:
    linear-gradient(90deg, var(--seller-color, #2f80ed) 0 5px, transparent 5px), color-mix(in srgb, var(--seller-color, #2f80ed) 18%, #fff);
}
.balam-task-calendar-month td.is-occupied .balam-calendar-day-num {
  color: #333;
  font-weight: 900;
}
.balam-task-calendar-event {
  align-items: flex-start;
  background: var(--seller-color, #2f80ed);
  color: #fff;
  flex-direction: column;
  gap: 1px;
  min-height: 0;
  padding: 2px 5px;
  text-align: left;
}
.balam-task-calendar-event small {
  color: rgba(255, 255, 255, .84);
  display: block;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.1;
}
.balam-task-calendar-event.status-confirmado {
  border-left-color: #16a34a;
}
.balam-task-calendar-event.status-cancelado {
  border-left-color: #dc2626;
  opacity: .68;
}
.balam-task-calendar-list .balam-front-table td {
  vertical-align: top;
}
.balam-company-feature-row > .balam-task-calendar-month {
  box-sizing: border-box;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: auto;
  min-height: var(--company-calendar-panel-height);
}
.balam-company-month-head {
  margin: 0 0 14px;
  width: 100%;
}
.balam-company-month-title-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 0 12px;
}
.balam-company-month-head h4 {
  font-size: 34px;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}
.balam-company-maximize-btn {
  align-items: center;
  background: #333;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.balam-company-maximize-btn svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.4;
  width: 20px;
}
.balam-company-maximize-btn:hover {
  background: #44a620;
}
.balam-company-legend {
  align-items: center;
  flex-wrap: wrap;
  gap: 15px 20px;
  margin: 15px 0 0;
  width: 100%;
}
.balam-company-legend-item {
  align-items: center;
  color: #333;
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  gap: 10px;
  text-transform: uppercase;
  font-family: monospace;
}
.balam-company-legend-swatch {
  background: var(--legend-color, #44a620);
  border-radius: 3px;
  display: inline-block;
  height: 13px;
  width: 13px;
}
.balam-company-top-summary {
  box-sizing: border-box;
  display: grid;
  gap: 15px;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) minmax(0, 1fr);
  width: 100%;
}
.balam-company-top-summary-section {
  min-width: 0;
}
.balam-company-top-summary-section:first-child {
  display: flex;
  flex-direction: column;
}
.balam-company-top-summary-title {
  color: #333;
  font-size: 11px;
  font-family: monospace;
  font-weight: 600;
  line-height: 1;
  margin: 5px 0 5px;
  text-transform: uppercase;
}
.balam-company-top-kpis {
  display: grid;
  flex: 1;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.balam-company-top-kpi {
  background: #c5f5c5;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
}
.balam-company-top-kpi strong {
  color: #333;
  display: block;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
}
.balam-company-top-kpi span {
  color: #333;
  display: block;
  font-size: 11px;
  font-family: monospace;
  font-weight: 600;
  margin-top: 5px;
  text-transform: uppercase;
}
.balam-company-top-event-list {
  display: grid;
  gap: 5px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.balam-company-top-event-row {
  align-items: center;
  color: #333;
  display: grid;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: monospace;
  gap: 20px;
  grid-template-columns: 15px minmax(0, 1fr) auto;
}
.balam-company-top-event-row:nth-child(-n+2) {
  border-top: 0;
  padding-top: 0;
}
.balam-company-top-event-row strong {
  color: #333;
  font-size: 12px;
  font-weight: 900;
}
.balam-company-top-next {
  background: #c5f5c5;
  border-radius: 1em;
  color: #333;
  font-family: monospace;
  text-transform: uppercase;
  margin: 0;
  padding: 15px;
  height: stretch;
  font-weight: 600;
}
.balam-company-top-next strong {
  display: block;
  font-size: 14px;
  font-weight: 900;
  margin: 0 0 4px;
}
.balam-company-top-next span {
  display: block;
}
.balam-company-feature-row > .balam-task-calendar-month .balam-calendar-grid-wrap, .balam-company-feature-row > .balam-task-calendar-month .balam-calendar-grid {
  box-sizing: border-box;
  height: auto;
  min-height: 100%;
}
.balam-company-side-mini-icon {
  align-items: center;
  color: var(--event-color, #333);
  display: inline-flex;
  height: 25px;
  justify-content: center;
  width: 25px;
}
.balam-company-side-mini-icon svg {
  color: currentColor;
  display: block;
  height: 25px;
  width: 25px;
}
.balam-company-side-mini-icon svg [fill]:not([fill="none"]) {
  fill: currentColor;
}
.balam-company-side-mini-icon svg [stroke] {
  stroke: currentColor;
}
.balam-company-calendar .balam-calendar-grid-wrap {
  border: 2px solid #333;
}
.balam-company-calendar .balam-calendar-grid {
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.balam-company-calendar .balam-calendar-grid th, .balam-company-calendar .balam-calendar-grid td {
  border: 0 !important;
  box-sizing: border-box;
}
.balam-company-calendar .balam-calendar-grid th {
  border-right: 1px solid #333 !important;
}
.balam-company-calendar .balam-calendar-grid th:last-child {
  border-right: 0 !important;
}
.balam-company-calendar .balam-calendar-grid td {
  background: #fff;
  border-bottom: 1px solid #333 !important;
  border-right: 1px solid #333 !important;
  height: auto;
  min-height: 0;
  padding: 40px 5px 5px;
  position: relative;
  vertical-align: top;
}
.balam-company-calendar .balam-calendar-grid td:last-child {
  border-right: 0 !important;
}
.balam-company-calendar .balam-calendar-grid tbody tr:last-child td {
  border-bottom: 0 !important;
}
.balam-company-calendar .balam-calendar-grid td.is-muted {
  background: #E5E5E5 !important;
}
.balam-company-calendar .balam-calendar-grid td.is-occupied {
  background: #fff !important;
}
.balam-company-calendar .balam-calendar-grid td:nth-child(6), .balam-company-calendar .balam-calendar-grid td:nth-child(7), .balam-company-calendar .balam-calendar-grid td.is-muted:nth-child(6), .balam-company-calendar .balam-calendar-grid td.is-muted:nth-child(7) {
  background: #f6f6f6 !important;
}
.balam-company-calendar .balam-calendar-day-num {
  align-items: flex-start;
  display: flex;
  justify-content: flex-end;
  left: 0;
  padding: 10px 12px 0;
  position: absolute;
  right: 0;
  top: 0;
  z-index: 2;
}
.balam-company-calendar .balam-calendar-day-num > span:first-child {
  color: #E5E5E5;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}
.balam-company-calendar .balam-calendar-day-events {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  max-height: 100%;
  min-height: 0;
  overflow: auto !important;
  position: relative !important;
  z-index: 1 !important;
}
.balam-company-calendar .balam-calendar-day-events::-webkit-scrollbar {
  width: 6px;
}
.balam-company-calendar .balam-calendar-day-events::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 999px;
}
.balam-company-day-event-card {
  background: color-mix(in srgb, var(--event-color, #333) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--event-color, #333) 18%, #E5E5E5);
  border-radius: 0px;
  display: block;
  margin: 0;
  overflow: hidden;
}
.balam-company-day-event-card[open] {
  background: color-mix(in srgb, var(--event-color, #333) 18%, #fff);
}
.balam-company-day-event-card summary {
  list-style: none;
}
.balam-company-day-event-card summary::-webkit-details-marker {
  display: none;
}
.balam-company-day-event-summary {
  align-items: flex-start;
  cursor: pointer;
  display: grid;
  gap: 5px;
  grid-template-columns: 20px minmax(0, 1fr) 12px;
  padding: 10px 10px 9px;
}
.balam-company-day-event-arrow {
  color: #333;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  padding-top: 2px;
  transition: transform .18s ease;
}
.balam-company-day-event-card[open] .balam-company-day-event-arrow {
  transform: rotate(180deg);
}
.balam-company-event-icon {
  align-items: center;
  color: var(--event-color, #333);
  display: inline-flex;
  flex: 0 0 auto;
  height: 20px;
  justify-content: center;
  overflow: visible;
  width: 20px;
}
.balam-company-event-icon svg {
  color: currentColor;
  display: block;
  height: 18px;
  overflow: visible;
  width: 18px;
}
.balam-company-event-icon svg [fill]:not([fill="none"]) {
  fill: currentColor;
}
.balam-company-event-icon svg [stroke] {
  stroke: currentColor;
}
.balam-company-event-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.balam-company-event-type {
  color: #333;
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: monospace;
}
.balam-company-event-time {
  color: #333;
  display: block;
  font-size: 11px;
  font-weight: 800;
}
.balam-company-event-title {
  color: #333;
  display: block;
  font-size: 11px;
  font-weight: 600;
  margin: 5px 0px 5px 0px;
}
.balam-company-event-badge {
  align-self: flex-start;
  display: none !important;
}
.balam-company-event-attendees {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-left: 0px;
  margin-top: 5px;
  max-width: calc(100% + 28px);
}
.balam-company-event-attendee {
  background: #FFF;
  border: 0px;
  border-radius: 999px;
  color: #333;
  display: inline-flex;
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 7px;
  text-transform: uppercase;
  white-space: nowrap;
}
.balam-company-day-event-panel {
  border-top: 1px solid rgba(51, 51, 51, .08);
  display: grid;
  gap: 8px;
  padding: 0 10px 10px;
}
.balam-company-day-event-detail {
  display: grid;
  gap: 8px;
  grid-template-columns: 74px minmax(0, 1fr);
}
.balam-company-day-event-detail strong {
  color: #959595;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}
.balam-company-day-event-detail span {
  color: #333;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.28;
}
.balam-company-day-event-empty {
  color: #a0a0a0;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
  padding: 4px 2px 0;
}
.balam-company-event-open {
  align-items: center;
  background: #fff !important;
  border: 1px solid color-mix(in srgb, var(--event-color, #333) 35%, #E5E5E5) !important;
  border-radius: 999px;
  color: #333 !important;
  cursor: grab;
  display: inline-flex;
  font-size: 10px !important;
  font-weight: 900 !important;
  gap: 6px;
  justify-content: center;
  line-height: 1.1 !important;
  margin-top: 2px;
  padding: 7px 10px !important;
  text-transform: uppercase;
}
.balam-company-calendar.is-dragging [data-company-day] {
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.balam-company-calendar.is-dragging [data-company-day]:not(.is-drag-source) {
  box-shadow: inset 0 0 0 2px rgba(68, 166, 32, .14);
}
.balam-company-calendar [data-company-day].is-drag-over {
  background: #f0ffe9 !important;
  box-shadow: inset 0 0 0 2px #44a620;
  transform: scale(1.01);
}
.balam-company-calendar [data-company-day].is-drag-source {
  filter: saturate(.8);
  opacity: .62;
}
.balam-company-calendar .balam-task-calendar-event.is-dragging {
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .28));
  opacity: .82;
  transform: scale(1.26) rotate(-4deg);
  z-index: 9;
}
.balam-company-calendar .balam-task-calendar-event.is-drop-success {
  animation: balamCompanyDropPop .42s ease;
}
.balam-company-calendar .balam-task-calendar-event.is-drop-error {
  animation: balamCompanyDropShake .32s ease;
}
.balam-rrss-toolbar {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 0 44px;
  width: 100%;
}
.balam-front-content .balam-rrss-calendar > .balam-calendar-head, .balam-front-content .balam-rrss-calendar .balam-rrss-feature-row, .balam-front-content .balam-rrss-calendar .balam-company-legend {
  display: none !important;
}
.balam-rrss-toolbar {
  margin-bottom: 20px;
}
.balam-rrss-filter-fields {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}
.balam-rrss-filter-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.balam-rrss-toolbar .balam-client-col {
  min-width: 150px;
}
.balam-rrss-event-head {
  align-items: center;
  display: flex;
  gap: 5px;
  justify-content: center;
  min-width: 0;
  width: 100%;
}
.balam-rrss-social-icon, .balam-rrss-paid-icon {
  align-items: center;
  background: transparent !important;
  border-radius: 0;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 17px;
  font-weight: 900;
  height: 20px;
  justify-content: center;
  line-height: 1;
  min-width: 0;
  padding: 0;
  text-transform: none;
}
.balam-rrss-social-icon {
  background: var(--rrss-color, #333) !important;
  -webkit-mask: var(--rrss-icon) center/contain no-repeat;
  mask: var(--rrss-icon) center/contain no-repeat;
  width: 20px;
}
.balam-rrss-social-icon.is-text {
  background: transparent !important;
  color: var(--rrss-color, #333);
  -webkit-mask: none;
  mask: none;
  width: auto;
}
.balam-rrss-paid-icon {
  background: #fff !important;
  border-radius: 50%;
  color: #333;
  font-size: 10px;
  height: 14px;
  width: 14px;
}
.balam-rrss-feature-row {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr);
  margin: 0 0 18px;
  min-width: 0;
}
.balam-rrss-calendar-column > .balam-task-calendar-month {
  box-sizing: border-box;
  width: 100%;
}
.balam-rrss-calendar-column > .balam-task-calendar-month h4 {
  height: auto;
  margin: 0;
}
.balam-rrss-month-head {
  margin: 0 0 14px;
  width: 100%;
}
.balam-rrss-month-head h4 {
  font-size: 34px;
  line-height: 1;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.balam-rrss-content-list {
  margin-top: 18px;
}
.balam-rrss-inline-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.balam-task-card.balam-task-calendar-card.balam-rrss-list-card {
  grid-template-columns: 300px minmax(0, 1fr) 240px 130px;
}
.balam-rrss-list-kind {
  color: #959595;
  font-size: 11px;
  font-weight: 800;
  margin-top: 6px;
  text-transform: uppercase;
}
.balam-rrss-network-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.balam-rrss-network-badge {
  background: #f3f3f3;
  border-radius: 999px;
  color: #959595;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 9px;
  text-transform: uppercase;
}
.balam-rrss-calendar-column {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.balam-mkt-icon {
  align-items: center;
  background: transparent;
  color: #facc15;
  display: inline-flex;
  flex: 0 0 auto;
  height: 20px;
  justify-content: center;
  line-height: 1;
  width: 20px;
}
.balam-mkt-icon svg {
  display: block;
  height: 19px;
  width: 19px;
}
.balam-company-legend .balam-rrss-social-icon {
  height: 16px;
  width: 16px;
}
.balam-company-legend .balam-rrss-social-icon.is-text {
  font-size: 12px;
  height: 16px;
  width: auto;
}
.balam-company-legend .balam-mkt-icon {
  height: 16px;
  width: 16px;
}
.balam-company-legend .balam-mkt-icon svg {
  height: 15px;
  width: 15px;
}
.balam-rrss-calendar {
  container-type: inline-size;
}
.balam-rrss-calendar .balam-calendar-event {
  opacity: 1;
  transform: none;
  transition: none;
}
.balam-rrss-calendar .balam-task-calendar-month h4 {
  font-size: 16px;
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.balam-rrss-calendar .balam-task-calendar-month.is-feature-month h4 {
  font-size: 26px;
}
.balam-rrss-calendar .balam-task-calendar-month {
  transition: opacity .18s ease;
}
.balam-rrss-calendar .balam-calendar-grid-wrap {
  background: #fff;
  border: 2px solid #333;
  border-radius: 12px;
  overflow: hidden;
}
.balam-rrss-calendar .balam-calendar-grid th {
  font-size: 9px;
  padding: 5px 3px;
}
.balam-rrss-calendar .balam-calendar-grid td {
  background: #fff !important;
  border-bottom: 1px solid #d9d9d9 !important;
  border-right: 1px solid #e3e3e3 !important;
  height: 176px !important;
  padding: 44px 8px 10px !important;
  position: relative;
  vertical-align: top;
}
.balam-rrss-feature-row .balam-task-calendar-month .balam-calendar-grid td {
  height: 176px !important;
}
.balam-rrss-calendar .balam-calendar-grid td.is-muted {
  background: #E5E5E5 !important;
}
.balam-rrss-calendar .balam-calendar-grid td:nth-child(6), .balam-rrss-calendar .balam-calendar-grid td:nth-child(7), .balam-rrss-calendar .balam-calendar-grid td.is-muted:nth-child(6), .balam-rrss-calendar .balam-calendar-grid td.is-muted:nth-child(7), .balam-rrss-calendar .balam-calendar-grid td.is-occupied:nth-child(6), .balam-rrss-calendar .balam-calendar-grid td.is-occupied:nth-child(7) {
  background: #f6f6f6 !important;
}
.balam-rrss-calendar .balam-calendar-cell-bg {
  display: none !important;
}
.balam-rrss-calendar .balam-task-calendar-month .balam-calendar-day-num, .balam-rrss-calendar .balam-task-calendar-month td.is-occupied .balam-calendar-day-num {
  align-items: flex-start;
  display: flex;
  justify-content: flex-end;
  left: 0 !important;
  margin: 0 !important;
  padding: 10px 12px 0 !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  z-index: 2;
}
.balam-rrss-calendar .balam-task-calendar-month .balam-calendar-day-num > span:first-child {
  color: #E5E5E5;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}
.balam-rrss-calendar .balam-calendar-day-events, .balam-rrss-calendar .balam-task-calendar-month td.is-occupied .balam-calendar-day-events, .balam-rrss-calendar .balam-task-calendar-month td.is-occupied:not(.is-multi-event) .balam-calendar-day-events, .balam-rrss-calendar .balam-task-calendar-month td.is-multi-event .balam-calendar-day-events, .balam-rrss-calendar .balam-task-calendar-month.is-feature-month td.is-occupied:not(.is-multi-event) .balam-calendar-day-events {
  align-items: stretch !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  height: auto !important;
  left: auto !important;
  max-height: none;
  min-height: 0;
  overflow: visible !important;
  padding-right: 2px;
  position: relative !important;
  top: auto !important;
  transform: none !important;
  width: auto !important;
  z-index: 1 !important;
}
.balam-rrss-calendar .balam-calendar-day-events::-webkit-scrollbar {
  width: 6px;
}
.balam-rrss-calendar .balam-calendar-day-events::-webkit-scrollbar-thumb {
  background: #d0d0d0;
  border-radius: 999px;
}
.balam-rrss-calendar .balam-task-calendar-month td.is-occupied {
  background: #fff !important;
  box-shadow: none !important;
  overflow: visible;
}
.balam-rrss-calendar .balam-task-calendar-month td.is-occupied:nth-child(6), .balam-rrss-calendar .balam-task-calendar-month td.is-occupied:nth-child(7) {
  background: #f6f6f6 !important;
}
.balam-rrss-calendar .balam-task-calendar-month td.is-multi-event::after, .balam-rrss-calendar .balam-task-calendar-month td.is-multi-event.has-paid-event::after {
  display: none !important;
}
.balam-rrss-calendar .balam-task-calendar-month td.is-multi-event .balam-task-calendar-event, .balam-rrss-calendar .balam-task-calendar-month td.event-count-3 .balam-task-calendar-event, .balam-rrss-calendar .balam-task-calendar-month td.event-count-4 .balam-task-calendar-event, .balam-rrss-calendar .balam-task-calendar-month.is-feature-month td.is-occupied:not(.is-multi-event) .balam-task-calendar-event, .balam-rrss-calendar .balam-task-calendar-month.is-feature-month td.is-multi-event .balam-task-calendar-event {
  bottom: auto !important;
  height: auto !important;
  left: auto !important;
  position: relative !important;
  right: auto !important;
  top: auto !important;
  transform: none !important;
  width: 100% !important;
}
.balam-rrss-calendar .balam-task-calendar-event.balam-rrss-day-event-card {
  align-items: flex-start !important;
  background: color-mix(in srgb, var(--seller-color, #facc15) 13%, #fff) !important;
  border: 1px solid color-mix(in srgb, var(--seller-color, #facc15) 25%, #E5E5E5) !important;
  border-radius: 14px !important;
  box-sizing: border-box;
  color: #333 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  justify-content: flex-start !important;
  margin: 0 !important;
  opacity: 1 !important;
  overflow: hidden;
  padding: 10px !important;
  text-align: left !important;
  transform: none !important;
  white-space: normal !important;
}
.balam-rrss-calendar .balam-task-calendar-event.balam-rrss-day-event-card .balam-rrss-event-head {
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  width: 100%;
}
.balam-rrss-calendar .balam-task-calendar-event.balam-rrss-day-event-card .balam-rrss-event-title, .balam-rrss-calendar .balam-task-calendar-month.is-feature-month .balam-task-calendar-event.balam-rrss-day-event-card .balam-rrss-event-title, .balam-rrss-calendar .balam-task-calendar-month.is-feature-month td.is-multi-event .balam-task-calendar-event.balam-rrss-day-event-card .balam-rrss-event-title {
  color: #333;
  display: block !important;
  flex: 1 1 100%;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.18;
  max-width: 100%;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: none;
  white-space: normal;
}
.balam-rrss-calendar .balam-task-calendar-event.balam-rrss-day-event-card small, .balam-rrss-calendar .balam-task-calendar-month.is-feature-month .balam-task-calendar-event.balam-rrss-day-event-card small, .balam-rrss-calendar .balam-task-calendar-month.is-feature-month td.is-multi-event .balam-task-calendar-event.balam-rrss-day-event-card small {
  color: #333;
  display: block !important;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  max-width: 100%;
  text-align: left;
  white-space: normal;
}
.balam-rrss-event-status {
  align-self: flex-start;
  background: rgba(255, 255, 255, .86);
  border: 1px solid rgba(51, 51, 51, .08);
  border-radius: 999px;
  color: #959595;
  display: inline-flex;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  padding: 3px 6px;
  text-transform: uppercase;
}
.balam-rrss-calendar .balam-rrss-social-icon {
  height: 16px;
  width: 16px;
}
.balam-rrss-calendar .balam-rrss-social-icon.is-text {
  font-size: 11px;
  height: 16px;
  width: auto;
}
.balam-rrss-calendar .balam-mkt-icon {
  height: 18px;
  width: 18px;
}
.balam-rrss-calendar .balam-mkt-icon svg {
  height: 17px;
  width: 17px;
}
.balam-rrss-calendar.is-dragging .balam-task-calendar-month td[data-rrss-day] {
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.balam-rrss-calendar.is-dragging .balam-task-calendar-month td[data-rrss-day]:not(.is-drag-source) {
  box-shadow: inset 0 0 0 2px rgba(68, 166, 32, .14);
}
.balam-rrss-calendar .balam-task-calendar-month td.is-drag-over {
  background: #f0ffe9 !important;
  box-shadow: inset 0 0 0 2px #44a620;
  transform: scale(1.015);
}
.balam-rrss-calendar .balam-task-calendar-month td.is-drag-source {
  filter: saturate(.8);
  opacity: .62;
}
.balam-rrss-calendar .balam-task-calendar-event.is-dragging {
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, .28));
  opacity: .82;
  transform: scale(1.26) rotate(-4deg);
  z-index: 9;
}
.balam-rrss-calendar .balam-task-calendar-event.is-drop-success {
  animation: balamRrssDropPop .42s ease;
}
.balam-rrss-calendar .balam-task-calendar-event.is-drop-error {
  animation: balamRrssDropShake .32s ease;
}
@keyframes balamRrssDropPop {
  0% {
    transform: scale(.72);
  }
  60% {
    transform: scale(1.34);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes balamRrssDropShake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
@media (max-width: 900px) {
  .balam-rrss-feature-row {
    grid-template-columns: 1fr;
  }
  .balam-rrss-filter-actions {
    justify-content: flex-start;
    width: 100%;
  }
  .balam-rrss-toolbar {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 30px;
  }
}
@container (max-width: 900px) {
  .balam-rrss-feature-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .balam-rrss-modal-grid {
    grid-template-columns: 1fr;
  }
  .balam-rrss-recurrence-modal .balam-rrss-network-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .balam-rrss-toolbar .balam-client-col, .balam-rrss-filter-fields, .balam-rrss-filter-actions {
    width: 100%;
  }
  #balamRrssFilterForm .balam-btn {
    margin-left: 0 !important;
    width: 100%;
  }
}
.balam-task-seller-badge {
  align-items: center;
  background: color-mix(in srgb, var(--seller-color, #51b327) 26%, #fff);
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  gap: 10px;
  font-weight: 800;
  padding: 5px 10px;
  white-space: nowrap;
}
.balam-task-seller-badge::before {
  background: var(--seller-color, #333);
  border-radius: 999px;
  content: "";
  height: 7px;
  flex: 0 0 7px;
  width: 7px;
}
.balam-seller-badge-label {
  color: inherit !important;
  display: inline !important;
  font: inherit !important;
  letter-spacing: normal !important;
  line-height: 1.1 !important;
  opacity: 1 !important;
  text-indent: 0 !important;
  visibility: visible !important;
  white-space: nowrap !important;
  -webkit-text-fill-color: currentColor;
}
.balam-shipment-seller-badge {
  margin-top: 2px;
  margin-bottom: 2px;
  text-transform: none !important;
}
.balam-quotes-table th {
  text-align: center;
}
.balam-quotes-table .balam-quotes-col-folio, .balam-quotes-table .balam-quotes-col-total, .balam-quotes-table .balam-quotes-col-actions {
  width: 10%;
}
.balam-quotes-table .balam-quotes-col-client {
  width: 37%;
}
.balam-quotes-table .balam-quotes-col-products, .balam-quotes-table .balam-quotes-col-status {
  width: 15%;
}
.balam-folio-meta {
  margin-top: 6px;
}
.balam-quote-actions-stack {
  grid-column: 2;
}
.balam-quote-actions-row .balam-whatsapp-quote-btn {
  margin-top: 0;
}
.balam-warranties-table {
  table-layout: fixed;
  width: 100%;
}
.balam-warranties-table th {
  text-align: center;
}
.balam-warranties-table td {
  vertical-align: middle;
}
@media (min-width: 761px) {
  .balam-warranties-table th:nth-child(3), .balam-warranties-table td:nth-child(3) {
    width: 21%;
  }
  .balam-warranties-table th:nth-child(6), .balam-warranties-table td:nth-child(6) {
    width: 19%;
  }
}
.balam-warranty-order-seller-cell {
  overflow-wrap: anywhere;
}
.balam-warranty-order-folio {
  display: block;
  margin-bottom: 8px;
}
.balam-warranty-seller-badge {
  justify-content: center;
  max-width: 100%;
  text-align: left;
  width: max-content;
}
.balam-warranty-doc-btn {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  justify-content: center;
}
.balam-warranty-doc-btn svg {
  height: 13px;
  width: 13px;
}
.balam-front-content.balam-warranty-new-content {
  border: 0;
  border-radius: 0;
  margin-top: 0;
  padding: 0;
}
.balam-warranty-new-card {
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 14px;
  box-sizing: border-box;
  min-height: 720px;
  padding: 22px;
}
.balam-warranty-mode-toggle {
  align-items: flex-start;
  border-bottom: 1px solid #bdbdbd;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 24px;
  padding-bottom: 18px;
}
.balam-warranty-mode-toggle small, .balam-warranty-manual-fields .balam-help-text {
  color: #333;
  font-size: 12px;
  margin: 0;
}
.balam-warranty-manual-fields {
  border-bottom: 1px solid #bdbdbd;
  margin-bottom: 24px;
  padding-bottom: 22px;
}
.balam-warranty-manual-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}
.balam-warranty-manual-product-picker {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  margin-top: 18px;
}
.balam-warranty-manual-product-picker > .balam-label {
  min-width: 0;
  width: 100%;
}
.balam-warranty-manual-fields .balam-label > .balam-select {
  display: block !important;
  max-width: none !important;
  min-width: 0 !important;
  width: 100% !important;
}
.balam-warranty-manual-qty .balam-num-control {
  width: 100%;
}
.balam-warranty-manual-qty input {
  text-align: center;
}
.balam-warranty-manual-product-picker > .balam-btn {
  margin-bottom: 0;
  white-space: nowrap;
}
.balam-warranty-new-card .balam-warranty-submit-wrap {
  min-height: 72px;
}
@media (max-width: 700px) {
  .balam-warranty-new-card {
    background: transparent;
    border: 0;
    border-radius: 0;
    min-height: 900px;
    padding: 0;
  }
  .balam-warranty-manual-grid, .balam-warranty-manual-product-picker {
    grid-template-columns: 1fr;
  }
  .balam-warranty-manual-product-picker > .balam-btn {
    width: 100%;
  }
  .balam-warranty-order-fields-grid {
    grid-template-columns: 1fr;
  }
  .balam-warranty-order-fields-grid .balam-warranty-filter-field-order {
    grid-column: auto;
  }
}
.balam-warranty-reason-wrap {
  margin-bottom: 18px;
}
.balam-warranty-reason-input {
  min-height: 82px !important;
  resize: vertical;
}
#balam-warranty-products-table select.item-resolution {
  appearance: auto;
  background: #fff;
  border: 1px solid #333 !important;
  border-radius: 999px;
  color: #333;
  font-family: "DM Sans", sans-serif;
  font-size: 12px !important;
  font-weight: 700;
  height: 34px;
  outline: none;
  padding: 0 14px;
  width: 100%;
}
.balam-front-content.balam-warranty-edit-content {
  border: 0;
  box-shadow: none;
  padding: 0;
}
.balam-warranty-wizard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr) 34px minmax(0, 1fr);
  gap: 8px;
  margin: 0 0 28px;
}
.balam-warranty-step-card {
  --step-bg: #f1f1f1;
  --step-color: #333;
  --step-border: #E5E5E5;
  align-items: center;
  background: var(--step-bg);
  border: 2px solid var(--step-border);
  border-radius: 16px;
  color: var(--step-color) !important;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 78px;
  padding: 14px 16px;
  text-decoration: none !important;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.balam-warranty-step-card:not([aria-disabled="true"]):hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  transform: translateY(-1px);
}
.balam-warranty-step-card.status-pendiente {
  --step-bg: #fff1e6;
  --step-color: #c06000;
  --step-border: #ffd2ad;
}
.balam-warranty-step-card.status-leido {
  --step-bg: #e8f4ff;
  --step-color: #0056b3;
  --step-border: #cfe7ff;
}
.balam-warranty-step-card.status-prefactura {
  --step-bg: #ece9ff;
  --step-color: #6250c9;
  --step-border: #d8d1ff;
}
.balam-warranty-step-card.status-embarque {
  --step-bg: #e7f8ea;
  --step-color: #2f8c43;
  --step-border: #c1edca;
}
.balam-warranty-step-card.status-cancelado {
  --step-bg: #ffe8e8;
  --step-color: #c62828;
  --step-border: #ffc9c9;
}
.balam-warranty-step-card.is-active {
  box-shadow: inset 0 0 0 2px currentColor;
}
.balam-warranty-step-card[aria-disabled="true"] {
  cursor: default;
  opacity: .48;
  pointer-events: none;
}
.balam-warranty-step-icon {
  align-items: center;
  background: rgba(255, 255, 255, .74);
  border-radius: 999px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}
.balam-warranty-step-icon svg {
  height: 19px;
  width: 19px;
}
.balam-warranty-step-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.balam-warranty-step-copy strong {
  color: #333;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}
.balam-warranty-step-card.is-active .balam-warranty-step-copy strong, .balam-warranty-step-card.status-leido .balam-warranty-step-copy strong, .balam-warranty-step-card.status-prefactura .balam-warranty-step-copy strong, .balam-warranty-step-card.status-embarque .balam-warranty-step-copy strong, .balam-warranty-step-card.status-cancelado .balam-warranty-step-copy strong {
  color: currentColor;
}
.balam-warranty-step-copy small {
  color: currentColor;
  font-size: 10px;
  font-weight: 800;
  opacity: .78;
  text-transform: uppercase;
}
.balam-warranty-step-state {
  background: rgba(255, 255, 255, .82);
  border-radius: 999px;
  color: currentColor;
  font-size: 10px;
  font-weight: 900;
  padding: 4px 9px;
  text-transform: uppercase;
}
.balam-warranty-flow-arrow {
  align-items: center;
  color: #333;
  display: inline-flex;
  font-size: 34px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
  opacity: .65;
}
.balam-warranties-table .balam-badge.status-pendiente {
  background: #fff1e6;
  color: #c06000;
}
.balam-warranties-table .balam-badge.status-embarque {
  background: #e7f8ea;
  color: #2f8c43;
}
.balam-warranty-edit-content .balam-badge.status-pendiente {
  background: #fff1e6;
  color: #c06000;
}
.balam-warranty-edit-content .balam-badge.status-embarque {
  background: #e7f8ea;
  color: #2f8c43;
}
.balam-warranty-summary-panel, .balam-warranty-step-panel {
  background: #fff;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
}
.balam-warranty-summary-panel {
  margin-bottom: 30px;
}
.balam-warranty-stage-heading {
  align-items: baseline;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 26px;
}
.balam-warranty-stage-heading h4 {
  color: #333;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0;
  text-transform: uppercase;
}
.balam-warranty-stage-heading span {
  color: #959595;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}
.balam-warranty-stage-grid {
  align-items: start;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}
.balam-warranty-stage-grid.is-dictamen {
  grid-template-columns: minmax(0, 1fr);
}
.balam-warranty-stage-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-width: 0;
}
.balam-warranty-single-stage {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}
.balam-warranty-helper-text {
  color: #333;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.balam-warranty-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.balam-warranty-form-grid .is-wide {
  grid-column: 1 / -1;
}
.balam-warranty-form-grid textarea.balam-input-lg {
  min-height: 90px;
  resize: vertical;
}
.balam-richtext-editor-wrap {
  background: #fff;
  border: 1px solid #b8b8b8;
  border-radius: 12px;
  overflow: hidden;
}
.balam-richtext-editor-wrap:focus-within {
  border-color: #333;
  box-shadow: 0 0 0 2px rgba(51, 51, 51, .08);
}
.balam-richtext-toolbar {
  align-items: center;
  background: #E5E5E5;
  border-bottom: 1px solid #e2e2e2;
  display: flex;
  gap: 6px;
  padding: 6px 8px;
}
.balam-richtext-toolbar button {
  align-items: center;
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  color: #333;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  height: 28px;
  justify-content: center;
  line-height: 1;
  min-width: 30px;
  padding: 0 7px;
}
.balam-richtext-toolbar button:hover {
  background: #f0f0f0;
  border-color: #999;
}
.balam-richtext-editor {
  box-sizing: border-box;
  color: #333;
  font-size: 13px;
  line-height: 1.55;
  min-height: 132px;
  outline: none;
  padding: 12px 14px;
}
.balam-richtext-editor[contenteditable="false"] {
  background: #fafafa;
}
.balam-richtext-editor p {
  margin: 0 0 10px;
}
.balam-richtext-editor p:last-child {
  margin-bottom: 0;
}
.balam-richtext-editor .balam-richtext-size-small {
  font-size: 11px;
}
.balam-richtext-editor .balam-richtext-size-normal {
  font-size: 13px;
}
.balam-richtext-editor .balam-richtext-size-large {
  font-size: 17px;
}
.balam-warranty-dictamen-form .balam-warranty-form-grid {
  grid-template-columns: minmax(150px, 1fr) minmax(0, 4fr);
}
.balam-warranty-dictamen-form .balam-warranty-form-grid .is-wide {
  grid-column: 1 / -1;
}
.balam-warranty-dictamen-result-field {
  grid-column: 1;
}
.balam-warranty-dictamen-result-picker {
  margin-top: 8px;
}
.balam-warranty-dictamen-parts-field {
  grid-column: 2;
}
.balam-warranty-evidence-card {
  align-items: center;
  background: #fafafa;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin-top: 16px;
  padding: 18px;
}
.balam-warranty-evidence-card .balam-subsection-title {
  margin: 0;
}
.balam-warranty-evidence-content {
  min-width: 0;
}
.balam-warranty-parts-picker {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) 156px auto;
  margin-top: 8px;
}
.balam-warranty-part-qty-control {
  width: 156px;
}
.balam-warranty-media-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.balam-warranty-actions-row {
  margin-top: 16px;
}
.balam-warranty-edit-content .balam-form-msg {
  color: #388e3c;
  font-size: 12px;
  margin: 8px 0 0;
}
.balam-warranty-toggle-row {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-top: 14px;
}
.balam-warranty-receive-panel {
  text-align: center;
}
.balam-warranty-receive-form {
  display: grid;
  gap: 14px;
  margin-left: auto;
  margin-right: auto;
  max-width: 620px;
}
.balam-warranty-receive-form .balam-label {
  display: block;
  text-align: center;
}
.balam-warranty-receive-form textarea, .balam-warranty-receive-form input[type="text"] {
  box-sizing: border-box;
  width: 100%;
}
.balam-warranty-receive-toggle-row {
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  margin-top: 2px;
}
.balam-warranty-receive-toggle-label {
  color: #333;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.balam-warranty-summary-modal .balam-modal {
  max-height: calc(100vh - 48px);
  overflow: auto;
}
.balam-warranty-summary-modal-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 20px;
}
.balam-warranty-summary-modal-grid > div {
  background: #E5E5E5;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: flex-start;
  min-height: 58px;
  min-width: 0;
  padding: 10px 12px;
}
.balam-warranty-summary-modal-grid span, .balam-warranty-summary-modal-section h5 {
  color: #959595;
  font-size: 11px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}
.balam-warranty-summary-modal-grid strong {
  color: #333;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.balam-warranty-summary-modal-grid em {
  color: #959595;
  font-size: 11px;
  font-style: normal;
  overflow-wrap: anywhere;
}
.balam-warranty-summary-modal-section + .balam-warranty-summary-modal-section {
  margin-top: 18px;
}
.balam-warranty-summary-modal-section p {
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  margin: 7px 0 0;
}
.balam-warranty-summary-evidence-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.balam-warranty-item-qty-control {
  margin: 0 auto;
  max-width: 120px;
}
.balam-warranty-qty-value {
  display: inline-flex;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}
.balam-warranty-edit-content .balam-front-table th, .balam-warranty-edit-content .balam-front-table td {
  vertical-align: middle;
}
.balam-warranty-edit-content .balam-front-table th {
  text-align: center;
}
.balam-warranty-edit-content .balam-front-table th:nth-child(2), .balam-warranty-edit-content .balam-front-table td:nth-child(2), .balam-warranty-edit-content .balam-front-table th:nth-child(3), .balam-warranty-edit-content .balam-front-table td:nth-child(3) {
  text-align: center;
}
@media (max-width: 1100px) {
  .balam-warranty-wizard {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .balam-warranty-flow-arrow {
    display: none;
  }
  .balam-warranty-stage-grid.is-dictamen {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .balam-warranty-wizard, .balam-warranty-form-grid, .balam-warranty-dictamen-form .balam-warranty-form-grid, .balam-warranty-parts-picker {
    grid-template-columns: 1fr;
  }
  .balam-warranty-dictamen-result-field, .balam-warranty-dictamen-parts-field {
    grid-column: 1;
  }
  .balam-warranty-evidence-card {
    grid-template-columns: 1fr;
  }
  .balam-warranty-step-card {
    grid-template-columns: 34px minmax(0, 1fr);
  }
  .balam-warranty-step-state {
    grid-column: 2;
    justify-self: start;
  }
  .balam-warranty-summary-modal-grid {
    grid-template-columns: 1fr;
  }
}
#balam-warranty-products-table select.item-resolution:focus {
  border-color: #c7c7c7 !important;
  box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.08);
}
.balam-warranty-order-qty, .balam-warranty-qty-value {
  font-size: 18px !important;
  font-weight: 800 !important;
}
.balam-warranty-item-qty-input {
  box-sizing: border-box;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 10px !important;
  text-align: center;
  width: 72px !important;
}
.balam-warranty-item-reason-input {
  border-radius: 14px !important;
  box-sizing: border-box;
  min-height: 58px !important;
  padding: 10px 12px !important;
  resize: vertical;
  width: 100% !important;
}
.balam-task-seller-badge.is-active {
  background: color-mix(in srgb, var(--seller-color, #51b327) 40%, #fff);
  color: #333 !important;
}
.balam-task-seller-badge.is-active::before {
  background: var(--seller-color, #51b327);
}
.balam-session-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}
.balam-session-success-notice {
  margin-bottom: 16px;
}
.balam-session-count {
  color: #333;
  font-weight: 700;
  margin: 0 0 14px;
}
.balam-session-toolbar select.balam-input-lg {
  flex: 0 0 180px;
  max-width: 180px;
  min-height: 38px;
  width: 180px;
}
.balam-session-toolbar .balam-btn {
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 38px;
}
.balam-session-card {
  background: #fff;
  border: 1px solid #333;
  border-radius: 1em;
  margin-bottom: 1.5em;
  padding: 1.5em;
}
.balam-session-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 12px;
}
.balam-session-head h4 {
  font-size: 18px;
  margin: 0;
  text-transform: uppercase;
}
.balam-session-type-badge {
  display: inline-flex;
  margin: 6px 0 0;
}
.balam-session-meta {
  color: #959595;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}
.balam-session-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.balam-session-block {
  border-top: 2px solid #f0f0f0;
  padding-top: 10px;
}
.balam-session-block strong {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.balam-session-content {
  color: #333;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.balam-session-card h1, .balam-session-card h2, .balam-session-card h3, .balam-session-card h4, .balam-session-card h5, .balam-session-card h6 {
  font-family: inherit !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  text-transform: none !important;
}
.balam-session-content * {
  color: inherit !important;
  font-family: inherit !important;
  font-size: 13px !important;
  letter-spacing: 0 !important;
  line-height: 1.45 !important;
}
.balam-session-content p {
  margin: 0 0 8px;
}
.balam-session-content p:last-child {
  margin-bottom: 0;
}
.balam-session-content ul, .balam-session-content ol {
  margin: 0 0 8px 18px;
  padding: 0;
}
.balam-session-content li {
  margin: 0 0 4px;
}
.balam-session-content blockquote {
  border-left: 3px solid #e2e2e2;
  margin: 0 0 8px;
  padding: 0 0 0 10px;
}
.balam-session-content a {
  color: #1d4fbf !important;
  text-decoration: underline;
}
@media (max-width: 720px) {
  .balam-session-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .balam-session-toolbar select.balam-input-lg, .balam-session-toolbar .balam-btn {
    flex: 1 1 100%;
    margin-left: 0;
    max-width: none;
    width: 100%;
  }
}
/* ============================
   PUBLICIDAD
============================ */
.balam-publicity-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.balam-publicity-topbar {
  margin-bottom: 12px;
}
.balam-publicity-search-input {
  width: 240px;
}
.balam-publicity-card {
  border: 1px solid #333;
  border-radius: 1em;
  padding: 1em;
  background: #fff;
}
.balam-publicity-card-body {
  display: none;
  padding-top: 6px;
}
.balam-publicity-card.is-open .balam-publicity-card-body {
  display: block;
}
.balam-publicity-card.is-open .balam-publicity-head {
  margin-bottom: 12px;
}
.balam-publicity-accordion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex: 1 1 auto;
  min-width: 260px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.balam-publicity-modal-footer {
  justify-content: flex-end;
  margin-top: 16px;
}
.balam-publicity-accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #3b3b3b;
  font-size: 20px;
  line-height: 1;
  transition: transform .2s ease, background .2s ease;
  flex: 0 0 auto;
}
.balam-publicity-card.is-open .balam-publicity-accordion-icon {
  transform: rotate(180deg);
  background: #e8f6df;
}
.balam-publicity-toggle-label {
  font-size: 12px;
  color: #333;
  font-weight: 600;
}
.balam-publicity-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #dedede;
}
.balam-publicity-meta {
  font-size: 11px;
  font-weight: 600;
  font-family: monospace;
  color: #333;
  text-transform: uppercase;
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.balam-publicity-sections {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.balam-publicity-section {
  border: 1px solid #333;
  border-radius: 1em;
  padding: 1.5em;
  background: #fff;
}
.balam-publicity-section-head {
  margin-bottom: 8px;
  font-size: 13px;
}
.balam-publicity-empty {
  font-size: 12px;
  color: #888;
}
.balam-publicity-assets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}
.balam-publicity-asset-item {
  position: relative;
  width: 100%;
  max-width: 110px;
}
.balam-publicity-asset-thumb {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #333;
  background: #fff;
  display: block;
}
.balam-publicity-ies-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: linear-gradient(180deg, #f5f8ff 0%, #e7eefb 100%);
  color: #2f4a7f;
}
.balam-publicity-ies-icon {
  font-size: 22px;
  line-height: 1;
}
.balam-publicity-ies-text {
  font-size: 12px;
  font-weight: 700;
}
.balam-publicity-asset-download {
  display: block;
  text-decoration: none;
}
.balam-publicity-asset-name {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.2;
  color: #333;
  word-break: break-word;
  max-width: 80px;
}
.balam-publicity-product-modal {
  width: 760px;
  max-width: 96%;
}
.balam-publicity-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.balam-publicity-col-name {
  grid-column: span 3;
}
.balam-publicity-col-type {
  grid-column: span 1;
}
.balam-publicity-col-visible {
  grid-column: 1 / -1;
}
.balam-publicity-product-grid label > div {
  font-size: 12px;
  color: #333;
  margin-bottom: 4px;
  font-weight: 700;
}
.balam-publicity-product-grid label {
  display: block;
  width: 100%;
}
.balam-publicity-product-grid .balam-input-lg {
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}
.balam-publicity-modal-assets {
  grid-column: 1 / -1;
  border: 1px solid #333;
  border-radius: 12px;
  background: #E5E5E5;
  padding: 10px;
}
.balam-publicity-modal-assets-head {
  font-size: 13px;
  color: #333;
  font-weight: 700;
  margin-bottom: 8px;
}
.balam-publicity-modal-assets-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.balam-publicity-modal-asset-row {
  border: 2px solid #ececec;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: start;
  column-gap: 10px;
  row-gap: 8px;
}
.balam-publicity-modal-asset-row > strong {
  min-width: 0;
  padding-top: 5px;
  grid-column: 1 / -1;
  grid-row: 1;
}
.balam-publicity-modal-actions {
  align-self: center;
  grid-column: 2;
  grid-row: 2;
}
.balam-publicity-modal-count {
  font-size: 12px;
  color: #333;
  min-width: 88px;
  text-align: left;
}
.balam-publicity-modal-preview {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
  min-height: 56px;
  align-items: center;
}
.balam-publicity-modal-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #f5f5f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.balam-publicity-modal-thumb img, .balam-publicity-modal-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.balam-publicity-modal-thumb-file {
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  color: #959595;
  padding: 4px;
  word-break: break-word;
}
.balam-publicity-modal-remove {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: #333;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.balam-publicity-modal-remove:hover {
  filter: brightness(1.1);
}
.balam-publicity-save-loader {
  margin-top: 12px;
  border: 2px solid #dfe4e9;
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px 12px;
}
.balam-publicity-save-loader-inner {
  display: flex;
  align-items: center;
  gap: 10px;
}
.balam-publicity-save-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #d0d7de;
  border-top-color: #3e77d8;
  animation: balamSupplierSpin .8s linear infinite;
}
.balam-publicity-save-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 12px;
  color: #333;
}
.balam-publicity-save-note {
  margin-top: 6px;
  font-size: 11px;
  color: #6b7280;
}
/* ============================
   LOADER GLOBAL FRONT
============================ */
.balam-loader-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999999;
}
.balam-loader-overlay.is-visible {
  display: flex;
}
.balam-loader {
  --hue: 100;
  --size: 200px;
  --border: 25px;
  --speed: 1.2s;
  --blur: var(--border);
}
.balam-loader {
  width: var(--border);
  aspect-ratio: 1;
  background: white;
  border-radius: 50%;
  position: relative;
  --y: calc((var(--size) * -0.5) + (var(--border) * 0.5));
  transform: rotate(0deg) translateY(var(--y));
  animation: balamLoaderSpin var(--speed) infinite linear;
}
.balam-loader::before {
  content: "";
  position: absolute;
  inset: calc(var(--border) * -0.5);
  border-radius: 50%;
  background: white;
  filter: blur(var(--blur));
  z-index: -1;
}
.balam-loader::after {
  content: "";
  width: var(--size);
  aspect-ratio: 1;
  position: absolute;
  top: 0%;
  left: 50%;
  translate: -50% 0;
  background: conic-gradient(white, hsl(var(--hue), 100%, 70%), hsl(var(--hue), 100%, 10%), transparent 65%);
  border-radius: 50%;
  mask: radial-gradient(transparent calc(((var(--size) * 0.5) - var(--border)) - 1px), white calc((var(--size) * 0.5) - var(--border)));
}
@keyframes balamLoaderSpin {
  to {
    transform: rotate(-360deg) translateY(var(--y));
  }
}
/* ============================
   SHIPMENT NOTIFICATIONS PANEL
============================ */
.balam-ship-notif-panel {
  position: fixed;
  right: 1em;
  bottom: 1em;
  width: min(300px, calc(100vw - 24px));
  max-height: 72vh;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  overflow: visible;
}
.balam-ship-notif-panel--leaving-last {
  pointer-events: none;
}
.balam-task-notif-panel {
  z-index: 9999;
  left: 14px;
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
}
.balam-ship-notif-list {
  padding: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 1em;
  font-family: 'DM Sans';
  scrollbar-width: none;
}
.balam-ship-notif-list::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
.balam-ship-notif-card {
  border: 5px solid #fff;
  border-radius: 10px;
  background: #fff;
  padding: 15px 15px;
  transition: opacity .26s ease, transform .26s ease, filter .26s ease;
  will-change: opacity, transform, filter;
}
.balam-ship-notif-card--created {
  background: #e8f4ff;
}
.balam-ship-notif-card--purchase-order {
  background: #fce8ff;
}
.balam-ship-notif-card--assembly-confirmed {
  background: #fff7dc;
}
.balam-ship-notif-card--delivered {
  background: #c5f5c5;
}
.balam-ship-notif-card--calendar {
  background: color-mix(in srgb, var(--calendar-notif-color, #0891b2) 26%, #fff);
}
.balam-ship-notif-card--task {
  background: #E5E5E5;
}
.balam-popup-notice-settings {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.balam-popup-notice-copy {
  margin: 0;
  color: #333;
  font-size: 16px;
  line-height: 1.45;
}
.balam-popup-notice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.balam-popup-notice-card {
  border: 1px solid #333;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  box-sizing: border-box;
}
.balam-popup-notice-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.balam-popup-notice-group-label {
  margin-bottom: 4px;
  color: #959595;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.balam-popup-notice-card-head strong {
  display: block;
  color: #333;
  font-size: 13px;
  line-height: 1.2;
}
.balam-popup-notice-card-head code {
  display: inline-block;
  margin-top: 6px;
  color: #7b7b7b;
  font-size: 10px;
}
.balam-popup-notice-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 700;
  color: #333;
  padding-top: 2px;
}
.balam-popup-notice-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.balam-popup-notice-field > label {
  font-size: 11px;
  font-weight: 800;
  color: #333;
  text-transform: uppercase;
}
.balam-popup-role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.balam-popup-role-badge input {
  display: none;
}
.balam-popup-role-badge span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1.5px solid #d4d4d4;
  background: #f5f5f5;
  color: #333;
  font-size: 10px;
  font-weight: 700;
  text-transform: lowercase;
  cursor: pointer;
  transition: all .16s ease;
}
.balam-popup-role-badge input:checked + span {
  border-color: #44a620;
  background: #dff7d8;
  color: #2e6e11;
}
.balam-popup-notice-color-row {
  max-width: 100%;
}
.balam-popup-notice-color-input {
  display: flex;
  align-items: center;
  gap: 10px;
}
.balam-popup-notice-flash {
  margin: 12px 0 18px;
}
.balam-popup-notice-swatch {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #333;
  flex: 0 0 34px;
  box-sizing: border-box;
}
.balam-popup-notice-color-input input[type="text"] {
  width: 100%;
  min-height: 34px;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  color: #333;
  background: #fff;
  box-sizing: border-box;
}
@media (max-width: 1680px) {
  .balam-popup-notice-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 1360px) {
  .balam-popup-notice-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 980px) {
  .balam-popup-notice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .balam-popup-notice-grid {
    grid-template-columns: 1fr;
  }
}
.balam-ship-notif-card--leaving {
  pointer-events: none;
  border: none !important;
  box-shadow: none !important;
  outline: 0 !important;
  overflow: visible;
  isolation: isolate;
  animation: balamNotifBlurOut .48s ease forwards;
}
@keyframes balamNotifBlurOut {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0);
  }
  100% {
    opacity: 0;
    filter: blur(12px);
    transform: translate3d(0, 8px, 0);
  }
}
.balam-ship-notif-title {
  font-size: 13px;
  font-weight: 800;
  color: #333;
  margin-bottom: 1em;
}
.balam-ship-notif-msg {
  font-size: 12px;
  line-height: 1em;
  color: #333;
  margin-bottom: 0.5em;
}
.balam-calendar-notif-card-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.balam-calendar-notif-icon {
  align-items: center;
  color: var(--calendar-notif-color, #0891b2);
  display: inline-flex;
  flex: 0 0 auto;
  height: 24px;
  justify-content: center;
  width: 24px;
}
.balam-calendar-notif-icon svg {
  display: block;
  height: 100%;
  width: 100%;
}
.balam-calendar-notif-modal {
  z-index: 1000000;
}
.balam-calendar-notif-modal-box {
  max-width: 520px;
  padding: 26px 28px 22px;
  position: relative;
  width: min(520px, calc(100vw - 28px));
}
.balam-calendar-notif-modal-close {
  align-items: center;
  appearance: none;
  background: #f0f0f0;
  border: 0;
  border-radius: 50%;
  color: #333;
  cursor: pointer;
  display: inline-flex;
  font-size: 24px;
  font-weight: 900;
  height: 36px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 36px;
}
.balam-calendar-notif-modal-head {
  align-items: flex-start;
  background: color-mix(in srgb, var(--calendar-notif-color, #0891b2) 24%, #fff);
  border-radius: 12px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 16px 0 18px;
  padding: 18px 18px;
}
.balam-calendar-notif-modal-kicker {
  color: var(--calendar-notif-color, #0891b2);
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.balam-calendar-notif-modal-copy {
  color: #333;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}
.balam-calendar-notif-modal-details {
  background: #E5E5E5;
  border-radius: 8px;
  margin-top: 12px;
  padding: 12px;
}
.balam-btn.balam-btn-notif-view {
  font-size: 10px;
  background: #fff;
}
.balam-btn.balam-btn-notif-read {
  font-size: 10px;
  background: #fff;
}
.balam-shipment-row-highlight {
  animation: balamShipmentRowPulse 1.2s ease-in-out 0s 3;
  background: #fff6d8 !important;
}
.balam-project-row-highlight {
  animation: balamProjectRowPulse 1.2s ease-in-out 0s 3;
  background: #c5f5c5 !important;
}
@keyframes balamProjectRowPulse {
  0% {
    background: #c5f5c5;
  }
  50% {
    background: #e8fce8;
  }
  100% {
    background: #c5f5c5;
  }
}
@keyframes balamShipmentRowPulse {
  0% {
    background: #ffefb8;
  }
  50% {
    background: #fff9e6;
  }
  100% {
    background: #fff6d8;
  }
}
.balam-inv-type-characteristics {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px;
}
.balam-inv-val-characteristics {
  flex-basis: 100%;
  font-size: 12.8px;
}
.balam-inv-assembly-label {
  background: #fce8ff;
  color: #8b2397;
}
.balam-type-badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8f7e6;
  color: #2d8d21;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.balam-inv-logistics {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  line-height: 1.2;
  color: #333;
}
.balam-inv-logistics-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}
.balam-inv-logistics-label {
  color: #959595;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  font-family: monospace;
}
.balam-inv-logistics-value {
  min-width: 0;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.balam-inventory-table [data-card-slot="secondary"] .balam-inv-logistics {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 12px;
}
.balam-inventory-table [data-card-slot="secondary"] .balam-inv-logistics-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px;
  align-items: baseline;
  min-width: 0;
}
.balam-inventory-table [data-card-slot="secondary"] .balam-inv-logistics-label {
  white-space: nowrap;
}
.balam-inventory-table [data-card-slot="secondary"] .balam-inv-logistics-value {
  font-size: 10px;
  line-height: 1.25;
  color: #959595;
}
/* ============================
   SYSTEM MAP
============================ */
.balam-system-map {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.balam-system-parameters {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.balam-system-parameter-section {
  box-sizing: border-box;
  min-width: 0;
  padding: 22px;
  border: 1px solid #d9d9d9;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .05);
}
.balam-design-audit {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.balam-design-audit__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.balam-design-audit__surface {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 20px;
  padding: 18px 20px;
}
.balam-design-audit__surface h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.1;
}
.balam-design-audit__stack {
  display: grid;
  gap: 12px;
}
.balam-design-audit__span-2 {
  grid-column: 1 / -1;
}
.balam-design-audit__list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: #4b4b4b;
}
.balam-design-audit__list code {
  background: #f5f6f8;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 14px;
}
.balam-design-audit__button-row, .balam-design-audit__badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.balam-design-audit__badge-row {
  margin-top: 14px;
}
.balam-design-audit__badge-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.balam-design-audit__seller-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.balam-design-audit__note {
  margin: 14px 0 0;
  color: #707070;
  font-size: 14px;
  line-height: 1.5;
}
.balam-design-audit__toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.balam-design-audit__metric {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #333;
  border-radius: 18px;
  padding: 16px 18px;
  background: #fbfbfb;
}
.balam-design-audit__metric strong {
  font-size: 34px;
  line-height: 1;
  color: #333;
}
.balam-design-audit__modal-shell {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid #e3e3e3;
  border-radius: 20px;
  background: #fff;
}
.balam-design-audit__modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.balam-design-audit__modal-head .balam-front-title {
  margin: 0;
  font-size: 34px;
}
.balam-design-audit__close {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: #f3f3f3;
  color: #333;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}
.balam-design-audit__mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.balam-design-audit__mini-panel, .balam-design-audit__status-card {
  display: grid;
  gap: 12px;
  border: 1px solid #333;
  border-radius: 18px;
  padding: 16px 18px;
  background: #fff;
}
.balam-design-audit__status-card {
  align-items: start;
}
.balam-design-audit__sample-tabs {
  margin-top: 2px;
}
.balam-design-audit__table-wrap {
  overflow-x: auto;
}
.balam-design-audit__totals-table {
  width: min(420px, 100%);
  margin-left: auto;
}
.balam-design-audit__actions-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.balam-design-audit__token-form {
  display: grid;
  gap: 14px;
}
.balam-design-audit__component-form {
  display: grid;
  gap: 14px;
}
.balam-design-audit__token-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 14px;
}
.balam-design-audit__token-grid--typography {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.balam-design-audit__base-groups {
  display: grid;
  gap: 14px;
}
.balam-design-audit__base-secondary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.balam-design-audit__token-grid--colors {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.balam-design-audit__component-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.balam-design-audit__component-grid--micro {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.balam-design-audit__component-grid--buttons {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.balam-design-audit__component-grid--badges {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.balam-design-audit__component-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e3e3e3;
  border-radius: 18px;
  background: #fff;
}
.balam-design-audit__component-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.balam-design-audit__component-head strong {
  display: block;
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.2;
}
.balam-design-audit__component-identity {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.balam-design-audit__component-identity > code {
  overflow-wrap: anywhere;
}
.balam-design-audit__component-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: baseline;
  gap: 4px 8px;
  min-width: 0;
}
.balam-design-audit__component-meta span {
  font-size: 12px;
  font-weight: 800;
  color: #333;
  text-transform: uppercase;
}
.balam-design-audit__component-meta code {
  min-width: 0;
  overflow-wrap: anywhere;
}
.balam-design-audit__component-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.4;
  color: #333;
}
.balam-design-audit__component-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 12px;
  min-width: 0;
}
.balam-design-audit__component-fields .balam-design-audit__token-field, .balam-design-audit__component-fields input {
  min-width: 0;
}
.balam-design-audit__component-preview {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.balam-design-audit__component-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.balam-design-audit__token-field {
  display: grid;
  gap: 7px;
}
.balam-design-audit__token-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.balam-design-audit__token-input-wrap input[type="color"] {
  width: 46px;
  height: 42px;
  border: 1px solid #333;
  border-radius: 12px;
  padding: 4px;
  background: #fff;
  box-sizing: border-box;
}
.balam-design-audit__token-input-wrap input[type="text"] {
  width: 100%;
}
.balam-design-audit__normalize-form {
  display: grid;
  gap: 14px;
}
.balam-design-audit__token-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.balam-design-audit__token-row-check {
  cursor: pointer;
}
.balam-design-audit__token-row-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}
.balam-design-audit__token-row-stack {
  align-items: flex-start;
  flex-direction: column;
}
.balam-design-audit__impact-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #E5E5E5;
  border-radius: 999px;
  background: #fff;
}
.balam-design-audit__token-list {
  display: grid;
  gap: 10px;
}
.balam-design-audit__token-list--colors {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.balam-design-audit__token-row, .balam-design-audit__pair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: #fff;
}
.balam-design-audit__token-row code, .balam-design-audit__pair-row code {
  margin: 0;
}
.balam-design-audit__token-swatch {
  display: inline-block;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, .12);
  flex: 0 0 24px;
}
@media (max-width: 1480px) {
  .balam-design-audit__grid, .balam-design-audit__token-grid, .balam-design-audit__component-grid, .balam-design-audit__component-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .balam-design-audit__token-grid--typography {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .balam-design-audit__component-grid--buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .balam-design-audit__component-grid--badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .balam-design-audit__grid, .balam-design-audit__mini-grid, .balam-design-audit__token-grid, .balam-design-audit__component-grid, .balam-design-audit__component-fields {
    grid-template-columns: 1fr;
  }
  .balam-design-audit__span-2 {
    grid-column: auto;
  }
  .balam-design-audit__totals-table {
    margin-left: 0;
  }
  .balam-design-audit__token-list--colors {
    grid-template-columns: 1fr;
  }
  .balam-design-audit__token-grid--colors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .balam-design-audit__base-secondary-grid {
    grid-template-columns: 1fr;
  }
}
.balam-system-map-toolbar {
  gap: 18px;
  align-items: flex-end;
  border-bottom: 1px solid #333;
  padding-bottom: 0;
}
.balam-system-view-tabs {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.balam-system-view-tab {
  gap: 8px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  padding-left: 14px !important;
  min-height: 35px;
}
.balam-system-view-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #50b428;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  flex: 0 0 auto;
}
.balam-system-map-canvas {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(112px, auto));
  gap: 18px 18px;
  align-items: start;
  overflow: visible;
  padding: 24px 0 20px;
  min-height: 650px;
}
.balam-system-map-canvas[data-view="map"] .balam-system-node {
  width: 100%;
  justify-self: start;
}
.balam-system-lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.balam-system-line {
  fill: none;
  stroke: #2f2f2f;
  stroke-width: 2;
  stroke-linecap: square;
  stroke-linejoin: miter;
  opacity: .42;
}
.balam-system-line.is-active {
  stroke: #50b428;
  opacity: 1;
  stroke-width: 3;
}
.balam-system-node {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  border: 1px solid #333;
  border-radius: 8px;
  background: #fff;
  padding: 10px;
  min-width: 0;
  min-height: 92px;
  transition: opacity .2s ease, border-color .2s ease, background .2s ease, transform .2s ease;
}
.balam-system-node::after {
  display: none;
}
.balam-system-node[data-module-id="inventory"] {
  grid-column: 1 / span 1;
  grid-row: 1;
}
.balam-system-node[data-module-id="purchase_orders"] {
  grid-column: 3 / span 1;
  grid-row: 1;
}
.balam-system-node[data-module-id="formats"] {
  grid-column: 4 / span 1;
  grid-row: 1;
}
.balam-system-node[data-module-id="suppliers"] {
  grid-column: 5 / span 1;
  grid-row: 1;
}
.balam-system-node[data-module-id="distributor_orders"] {
  grid-column: 2 / span 1;
  grid-row: 1;
}
.balam-system-node[data-module-id="virtual_warehouse"] {
  grid-column: 1 / span 1;
  grid-row: 2;
}
.balam-system-node[data-module-id="clients"] {
  grid-column: 2 / span 1;
  grid-row: 2;
}
.balam-system-node[data-module-id="warranties"] {
  grid-column: 4 / span 1;
  grid-row: 2;
}
.balam-system-node[data-module-id="quotes"] {
  grid-column: 2 / span 1;
  grid-row: 3;
}
.balam-system-node[data-module-id="preinvoices"] {
  grid-column: 4 / span 1;
  grid-row: 3;
}
.balam-system-node[data-module-id="shipments"] {
  grid-column: 6 / span 1;
  grid-row: 3;
}
.balam-system-node[data-module-id="backorders"] {
  grid-column: 2 / span 1;
  grid-row: 4;
}
.balam-system-node[data-module-id="projects"] {
  grid-column: 2 / span 1;
  grid-row: 5;
}
.balam-system-node[data-module-id="reports"] {
  grid-column: 4 / span 1;
  grid-row: 5;
}
.balam-system-node[data-module-id="publicity"] {
  grid-column: 5 / span 1;
  grid-row: 5;
}
.balam-system-node[data-module-id="tasks"] {
  grid-column: 6 / span 1;
  grid-row: 5;
}
.balam-system-map-canvas:not([data-view="map"]) .balam-system-node[data-module-id="virtual_warehouse"] {
  grid-column: 1 / span 2;
  grid-row: 1;
}
.balam-system-map-canvas[data-view="detail"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  gap: 16px;
  min-height: 0;
  padding: 24px 0 20px;
}
.balam-system-map-canvas[data-view="detail"] .balam-system-node {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0;
}
.balam-system-map-canvas.is-searching {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto;
  min-height: 0;
}
.balam-system-map-canvas.is-searching .balam-system-node {
  grid-column: auto !important;
  grid-row: auto !important;
  min-height: 0;
}
.balam-system-node-link {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  color: #333;
  text-decoration: none;
}
.balam-system-node-link.is-disabled {
  cursor: not-allowed;
}
.balam-system-node-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}
.balam-system-node-name {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.balam-system-node-link .balam-badge {
  grid-column: 2;
  justify-self: start;
}
.balam-system-node-link .balam-badge.status-leido {
  background: #c5f5c5;
  color: #44a620;
}
.balam-system-map-canvas[data-view="map"] .balam-system-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.balam-system-map-canvas[data-view="map"] .balam-system-node-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.balam-system-map-canvas[data-view="map"] .balam-system-node-link .balam-badge {
  justify-self: center;
}
.balam-system-map-canvas[data-view="map"] .balam-system-node-summary {
  width: 100%;
  text-align: center;
}
.balam-system-node-summary {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.32;
  color: #959595;
  overflow-wrap: anywhere;
}
.balam-system-node.is-highlighted {
  border-color: #51b327;
  background: #f7fff3;
}
.balam-system-node:hover {
  border-color: #50b428;
  background: #c5f5c5;
}
.balam-system-node.is-muted {
  opacity: .34;
}
.balam-system-node.is-hidden {
  display: none !important;
}
.balam-system-node-block {
  margin-top: 12px;
}
.balam-system-node-block .balam-label {
  display: block;
  color: #333;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -.03em;
}
.balam-system-node-block ul {
  margin: 6px 0 0;
  padding-left: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #333;
  list-style: none;
}
.balam-system-node-block li {
  display: block;
  margin: 0 0 8px;
}
.balam-system-node-block li:last-child {
  margin-bottom: 0;
}
.balam-system-node-block li strong {
  display: block;
  color: #333;
  font-size: 12px;
  font-weight: 900;
}
.balam-system-node-block li span {
  display: block;
  margin-top: 2px;
  color: #333;
  font-size: 11px;
  line-height: 1.35;
}
.balam-system-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.balam-system-role-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.balam-system-role-badges span {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #959595;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 1100px) {
  .balam-system-map-canvas {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    grid-template-rows: auto;
    min-height: 0;
    padding: 20px 0;
  }
  .balam-system-node {
    grid-column: auto !important;
    grid-row: auto !important;
  }
}
@media (max-width: 760px) {
  .balam-system-map-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .balam-system-map-canvas, .balam-system-detail-grid {
    grid-template-columns: 1fr;
  }
  .balam-system-node::after {
    display: none;
  }
}
.balam-inventory-view-tabs {
  display: flex;
  align-items: flex-end;
  border-bottom: 0.4em solid #E5E5E5;
  padding: 0 0 0 0px;
  overflow: visible;
  margin-bottom: 1.5em;
}
.balam-task-view-tabs {
  flex-wrap: wrap;
  overflow: hidden;
  padding-right: 0;
  row-gap: 0;
}
.balam-task-view-tabs .balam-inventory-view-tab {
  flex: 0 1 auto;
}
.balam-task-view-tabs.is-rrss-mkt-view .balam-inventory-view-tab {
  padding-left: 18px;
  padding-right: 30px;
}
.balam-task-click-cell {
  cursor: pointer;
  color: #333;
  font-weight: 700;
}
.balam-task-report-modal {
  max-width: 980px;
}
.balam-task-results-modal {
  max-width: 760px;
}
.balam-task-response-modal {
  width: min(960px, 92vw);
  max-width: 960px;
}
.balam-prospect-results-modal {
  box-sizing: border-box;
  overflow: hidden;
  padding-right: 12px;
}
.balam-prospect-route-modal {
  box-sizing: border-box;
  width: min(980px, 92vw);
  max-width: 980px;
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 25px;
}
.balam-modal-400::-webkit-scrollbar, .balam-modal-scroll-600::-webkit-scrollbar, .balam-modal-scroll-800::-webkit-scrollbar {
  width: 12px;
}
.balam-modal-400::-webkit-scrollbar-track, .balam-modal-scroll-600::-webkit-scrollbar-track, .balam-modal-scroll-800::-webkit-scrollbar-track {
  margin: 16px 0 18px;
  background: transparent;
}
.balam-modal-400::-webkit-scrollbar-thumb, .balam-modal-scroll-600::-webkit-scrollbar-thumb, .balam-modal-scroll-800::-webkit-scrollbar-thumb {
  background: #c8cec7;
  border: 3px solid #fff;
  border-radius: 999px;
}
.balam-modal-400::-webkit-scrollbar-thumb:hover, .balam-modal-scroll-600::-webkit-scrollbar-thumb:hover, .balam-modal-scroll-800::-webkit-scrollbar-thumb:hover {
  background: #aeb7ae;
}
.balam-prospect-route-modal .balam-route-vehicle-select-row label {
  max-width: 420px;
  width: min(100%, 420px);
}
.balam-prospect-route-modal .balam-route-builder-row {
  grid-template-columns: 1.15fr 1fr 1fr;
}
.balam-prospect-route-modal .balam-route-prospect-grid {
  grid-template-columns: 1.05fr 1.4fr .8fr 1fr;
}
.balam-task-archive-actions-head, .balam-task-archive-actions-cell {
  text-align: center;
}
.balam-task-archive-table th:nth-child(3), .balam-task-archive-table td:nth-child(3), .balam-task-archive-table th:nth-child(4), .balam-task-archive-table td:nth-child(4) {
  text-align: center;
}
.balam-task-archive-date {
  font-size: 12px;
}
.balam-task-archive-date-spaced {
  margin-top: 4px;
}
.balam-task-archive-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.balam-task-archive-actions > .balam-btn, .balam-task-archive-actions > form {
  flex: 0 0 auto;
  min-width: 0;
  width: max-content;
}
.balam-task-archive-actions > form {
  margin: 0;
}
.balam-task-archive-actions > form .balam-btn {
  width: max-content;
}
.balam-task-archive-actions > form:last-child {
  flex-basis: 100%;
  display: flex;
  justify-content: center;
}
.balam-task-archive-modal {
  max-width: 980px;
}
.balam-task-archive-head {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 14px;
}
.balam-task-results-btn {
  width: 100%;
  text-align: center;
}
.balam-task-results-subtitle {
  margin: 0 0 12px;
  color: #333;
  font-size: 12px;
}
.balam-task-results-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 60vh;
  overflow: auto;
}
.balam-task-result-card {
  padding: 10px 12px;
  border: 2px solid #eee;
  border-radius: 12px;
}
.balam-task-result-card-title {
  margin-bottom: 6px;
  font-weight: 600;
}
.balam-task-result-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  row-gap: 6px;
  color: #959595;
  font-size: 12px;
}
.balam-task-actions-stack .balam-delete-entry-form {
  margin: 0;
}
.balam-task-hidden {
  display: none;
}
.balam-task-attachment-wrap {
  display: block;
}
.balam-task-attachment-label {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.balam-task-image-preview-wrap {
  position: relative;
  width: fit-content;
  margin-bottom: 12px;
}
.balam-task-image-preview {
  display: block;
  max-width: 140px;
  max-height: 140px;
  object-fit: cover;
  border: 2px solid #ddd;
  border-radius: 12px;
}
.balam-task-image-remove-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #e53935;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(0, 0, 0, .2);
}
.balam-task-file-container {
  position: relative;
}
.balam-task-file-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.balam-task-file-display {
  display: flex;
  align-items: center;
  height: 33px;
  padding: 0 15px;
  border: 2px dashed #E5E5E5;
  background: #E5E5E5;
}
.balam-task-file-pill {
  margin-right: 10px;
  padding: 2px 10px;
  border-radius: 10px;
  background: #333;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  text-transform: uppercase;
}
.balam-task-file-label-text {
  overflow: hidden;
  color: #888;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.balam-task-attachment-help {
  display: block;
  margin-top: 4px;
  color: #888;
  font-size: 10px;
}
.balam-task-form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 0 24px;
  border-top: 1px solid #eee;
  background: #fff;
  flex: 0 0 auto;
}
.balam-task-loader-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 100px 40px;
  text-align: center;
}
.balam-task-loader-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
  margin-bottom: 20px;
}
.balam-card-spaced {
  margin-bottom: 20px;
}
.balam-task-loader-spinner {
  --size: 60px;
  --border: 6px;
}
.balam-task-loader-label {
  color: #999;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
}
.balam-task-error-state {
  padding: 40px;
  color: red;
}
.balam-task-detail-wrap {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.balam-task-detail-copy-shell {
  padding: 30px 35px;
  background: #fff;
}
.balam-task-detail-copy {
  margin: 0;
  color: #959595;
  font-size: 13px;
  line-height: 1.6;
}
.balam-task-detail-image-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 80vh;
  overflow: hidden;
  background: #000;
}
.balam-task-detail-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
}
.balam-task-quote-view {
  padding: 80px 40px;
  text-align: center;
  background: #fff;
}
.balam-task-quote-copy {
  max-width: 600px;
  margin: auto;
  color: #333;
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}
.balam-task-default-view {
  padding: 45px 35px;
}
.balam-task-default-type {
  display: inline-block;
  margin-bottom: 15px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f0f0f0;
  color: #333;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}
.balam-task-default-copy {
  min-height: 60px;
  margin-bottom: 30px;
  color: #333;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-wrap;
}
.balam-task-empty-copy {
  color: #999;
}
.balam-task-default-meta {
  margin-bottom: 25px;
  padding: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  font-size: 12px;
}
.balam-task-default-meta-row {
  margin-bottom: 5px;
}
.balam-task-default-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid #eee;
  color: #888;
  font-size: 11px;
}
.balam-task-detail-action-btn {
  padding: 8px 15px;
  font-size: 10px;
}
.balam-task-detail-status-done {
  color: #4CAF50;
  font-weight: 700;
}
.balam-inventory-view-tab {
  appearance: none;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3em;
  padding: 0em 3em 0em 1.5em;
  border: 0;
  border-radius: 0.8em 0em 0em 0em;
  background: #E5E5E5;
  color: #333 !important;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  clip-path: polygon(0 0, calc(100% - 2em) 0, 100% 100%, 0 100%);
}
.balam-inventory-view-tabs .balam-inventory-view-tab {
  background: #E5E5E5 !important;
}
.balam-inventory-view-tabs, .balam-inventory-view-tab, .balam-system-view-tabs, .balam-system-view-tab, .balam-rrss-detail-tab, .balam-format-modal-tab {
  font-family: monospace;
}
.balam-inventory-view-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: -18px;
  bottom: -1px;
  height: 1px;
  background: #e3e3e3;
  opacity: 0;
}
.balam-inventory-view-tab span, .balam-inventory-view-tab {
  white-space: nowrap;
}
.balam-inventory-view-tab {
  color: #fff;
}
.balam-inventory-view-tab.is-active {
  background: #c5f5c5 !important;
  color: #44a620 !important;
  z-index: 2;
}
.balam-inventory-view-tab.is-active::after {
  opacity: 1;
}
.balam-minimum-alerts-tab-badge {
  align-items: center;
  background: #fff;
  border-radius: 999px;
  color: #333;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  gap: 4px;
  line-height: 1;
  margin-left: 8px;
  padding: 3px 7px;
}
.balam-inventory-family-stack > .balam-mobile-action-toolbar, .balam-inventory-family-stack > .balam-filters-toggle-mobile, .balam-inventory-family-stack > .balam-system-filters {
  width: 100%;
}
.balam-inventory-family-stack > .balam-system-filters {
  box-sizing: border-box;
}
.balam-product-batch-delete-modal {
  position: fixed;
  inset: 0;
  z-index: 100005;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.36);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}
.balam-product-batch-delete-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.balam-product-batch-delete-card {
  width: min(440px, 100%);
  box-sizing: border-box;
  padding: 28px 30px;
  border: 1px solid #333;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
  color: #333;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.18s ease;
}
.balam-product-batch-delete-modal.is-open .balam-product-batch-delete-card {
  transform: translateY(0) scale(1);
}
.balam-product-batch-delete-card p {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}
.balam-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  flex: 1;
}
.balam-tabs {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  border-bottom: 4px solid #E5E5E5;
  margin: 0px 0 20px;
}
.balam-tab {
  border: 0;
  border-bottom: 4px solid transparent;
  background: transparent;
  color: #959595;
  font-family: monospace;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  text-transform: uppercase;
  padding: 0 0 10px;
  cursor: pointer;
}
.balam-tab.is-active {
  border-bottom-color: #333;
  color: #333;
}
#balamFrontPurchaseSupplierWrap {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
}
#balamFrontPurchaseSupplierWrap > span {
  grid-column: 1 / -1;
}
#balamFrontPurchaseSupplierWrap[hidden] {
  display: none !important;
}
#balamFrontPurchaseSupplierWrap select {
  width: calc((100% - 14px) / 2);
  min-width: 0;
}
#balamFrontPurchaseSupplierWrap .balam-badge-list {
  width: 100%;
  margin-top: 0;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 0;
}
.balam-composite-stock {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: help;
}
.balam-composite-stock-incomplete {
  color: #50b428;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.balam-composite-stock-tooltip {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 10px);
  width: 230px;
  transform: translateX(-50%);
  display: none;
  flex-direction: column;
  gap: 5px;
  border: 1px solid #333;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
  padding: 12px;
  color: #333;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}
.balam-composite-stock:hover .balam-composite-stock-tooltip, .balam-composite-stock:focus .balam-composite-stock-tooltip {
  display: flex;
}
.balam-composite-stock-tooltip strong, .balam-composite-stock-tooltip em {
  font-style: normal;
  font-weight: 900;
}
.balam-tab-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
  font-family: monospace;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
}
.balam-tab-pagination.is-top {
  margin: 0 0 15px;
}
.balam-tab-pagination.is-bottom {
  margin-top: 15px;
}
.balam-tab-pagination-results, .balam-tab-pagination-pages {
  color: #333;
}
.balam-parts-delete-modal, .balam-parts-movement-confirm-modal {
  z-index: 100000;
  padding: 28px;
  box-sizing: border-box;
}
.balam-parts-delete-summary {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: #f6f6f6;
  border-radius: 16px;
  color: #333;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.balam-parts-movement-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: #959595;
  font-size: 12px;
  font-weight: 800;
}
.balam-parts-movement-list-title {
  grid-column: 1 / -1;
  color: #333;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.balam-parts-movement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 4px 12px;
  align-items: center;
  padding: 10px 12px;
  border: 2px solid #ececec;
  border-radius: 10px;
  background: #fff;
}
.balam-parts-movement-row span, .balam-parts-movement-row small {
  min-width: 0;
}
.balam-parts-movement-row span {
  color: #333;
  font-size: 12px;
  font-weight: 900;
}
.balam-parts-movement-row small {
  grid-column: 1;
  color: #959595;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
}
.balam-parts-movement-badge {
  grid-column: 1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 4px 10px;
  border-radius: 999px;
  background: #d8f8d8;
  color: #2f8f2f;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}
.balam-parts-movement-row strong {
  grid-column: 2;
  grid-row: 1 / span 3;
  font-size: 14px;
  font-weight: 900;
}
.balam-parts-movement-row .balam-part-movement-delete {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
  white-space: nowrap;
}
.balam-parts-movement-row.is-entry strong {
  color: #2f8f2f;
}
.balam-parts-movement-row.is-exit strong {
  color: #b3261e;
}
.balam-section-label {
  color: #333;
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5em;
}
.balam-form input:not([type="checkbox"]):not([type="hidden"]):not(.balam-row-qty), .balam-form select {
  width: 100%;
  min-height: 34px;
  height: 34px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #fff;
  color: #25272b;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.15;
  outline: none;
  padding: 0 14px;
  box-sizing: border-box;
}
.balam-form select {
  appearance: none;
  -webkit-appearance: none;
}
.balam-form textarea {
  width: 100%;
  height: auto;
  min-height: 76px;
  border: 1px solid #333;
  padding: 15px 15px;
  border-radius: 1em;
  background: #fff;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}
.balam-form input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}
.balam-image-picker {
  display: grid;
  grid-template-columns: minmax(0, 160px) 92px;
  gap: 12px;
  align-items: start;
}
.balam-image-picker .balam-btn {
  width: 100%;
  min-height: 33px;
  height: 33px !important;
  padding: 0 15px !important;
  font-size: 11px !important;
  color: #909090 !important;
}
.balam-image-preview {
  width: 90px;
  height: 90px;
  border: 1px solid #333;
  border-radius: 15px;
  background: #FFF;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E5E5E5;
}
.balam-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 760px) {
  #balamFrontPurchaseSupplierWrap {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  #balamFrontPurchaseSupplierWrap > span {
    grid-column: auto;
  }
  #balamFrontPurchaseSupplierWrap select {
    width: 100%;
  }
}
.balam-feedback {
  min-height: 18px;
  color: #2d8d21;
  font-size: 12px;
  font-weight: 800;
}
.balam-feedback:empty {
  display: none;
}
.balam-feedback.is-error {
  color: #d32f2f;
}
/* Global type rendering */
.balam-front, .balam-front * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  text-rendering: geometricPrecision;
}
.balam-front, .balam-front input, .balam-front select, .balam-front textarea, .balam-front button, .balam-front * {
  letter-spacing: 0 !important;
}
.balam-file-modal {
  box-sizing: border-box;
  max-width: calc(100vw - 80px);
  padding: 28px 32px 34px;
  width: fit-content;
}
.balam-file-modal-preview {
  align-items: center;
  border: 2px solid #333;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
  max-height: min(72vh, 760px);
  max-width: calc(100vw - 128px);
  overflow: hidden;
  background: #fff;
  width: fit-content;
}
.balam-file-skeleton {
  animation: balamFileSkeletonPulse 1.15s ease-in-out infinite;
  aspect-ratio: 8.5 / 11;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
  justify-content: center;
  padding: 28px;
  width: min(520px, calc(72vh * .7727), calc(100vw - 132px));
}
.balam-file-skeleton-bar, .balam-file-skeleton-line, .balam-file-skeleton-panel {
  background: linear-gradient(90deg, #E5E5E5 0%, #f8f8f8 45%, #E5E5E5 100%);
  background-size: 220% 100%;
  border-radius: 999px;
  animation: balamFileSkeletonShimmer 1.1s linear infinite;
}
.balam-file-skeleton-bar {
  height: 18px;
  width: 48%;
}
.balam-file-skeleton-bar.is-short {
  width: 34%;
}
.balam-file-skeleton-panel {
  border-radius: 14px;
  flex: 1 1 auto;
  min-height: 0;
}
.balam-file-skeleton-line {
  height: 12px;
  width: 62%;
}
.balam-file-skeleton-line.is-wide {
  width: 86%;
}
@keyframes balamFileSkeletonShimmer {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}
@keyframes balamFileSkeletonPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: .82;
  }
}
.balam-file-modal-preview img, .balam-file-modal-preview iframe {
  border: 0;
  display: block;
  height: min(72vh, 760px);
  max-width: 100%;
  object-fit: contain;
  width: min(100%, 760px);
}
.balam-file-modal-preview img, .balam-file-modal-preview canvas {
  height: auto;
  max-height: min(72vh, 760px);
  max-width: calc(100vw - 132px);
  width: auto;
}
.balam-file-modal-media {
  cursor: zoom-in;
  max-width: 100%;
  transition: transform .12s ease-out;
  will-change: transform;
}
.balam-file-modal-media.balam-pan-enabled {
  cursor: grab;
}
.balam-file-modal-media.balam-pan-enabled.is-panning {
  cursor: grabbing;
  transition: none;
}
.balam-file-modal-frame {
  border: 0;
  display: block;
  height: min(72vh, 760px);
  width: min(760px, calc(100vw - 132px));
}
@media (max-width: 768px) {
  .balam-front-content .balam-quotes-filters {
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
  .balam-front-content .balam-quotes-filters .balam-filters-controls, .balam-front-content .balam-quotes-filters .balam-list-filters-controls, .balam-front-content .balam-quotes-filters .balam-list-filters-main, .balam-front-content .balam-quotes-filters .balam-filters-row, .balam-front-content .balam-quotes-filters .balam-list-filters-grid-primary, .balam-front-content .balam-quotes-filters .balam-list-filters-grid-search, .balam-front-content .balam-quotes-filters .balam-list-filters-grid-search-status, .balam-front-content .balam-quotes-filters .balam-list-filters-grid-search-compact, .balam-front-content .balam-quotes-filters .balam-list-filters-period {
    align-items: stretch !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    grid-template-columns: none !important;
    margin: 0 !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow: visible !important;
    width: 100% !important;
  }
  .balam-front-content .balam-quotes-filters .balam-filters-row > *, .balam-front-content .balam-quotes-filters input, .balam-front-content .balam-quotes-filters select, .balam-front-content .balam-quotes-filters .balam-select {
    box-sizing: border-box !important;
    flex: 0 0 auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .balam-front-content .balam-quotes-filters input[name="from"], .balam-front-content .balam-quotes-filters input[name="to"], .balam-front-content .balam-quotes-filters input[name="q"], .balam-front-content .balam-quotes-filters input[name="product_q"] {
    height: 44px !important;
    line-height: 1 !important;
    min-height: 44px !important;
    padding: 0 18px !important;
  }
  .balam-front-content .balam-quotes-filters .balam-clear-filters-btn, .balam-front-content .balam-quotes-filters button[type="submit"] {
    align-self: flex-start !important;
    width: auto !important;
  }
}
.balam-modal-overlay.is-open {
  display: flex;
}
.balam-backorders-modal-overlay {
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  z-index: 99998;
}
.balam-modal.balam-backorders-modal {
  width: min(980px, calc(100vw - 56px));
  max-width: none;
  max-height: calc(100vh - 24px);
  overflow: auto;
  padding: 28px 32px;
  border-radius: 24px;
}
.balam-backorders-modal-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-right: 38px;
}
.balam-backorders-modal .balam-backorders-wrapper, .balam-backorders-modal .balam-front-table {
  min-width: 880px;
}
@media (max-width: 800px) {
  .balam-backorders-modal-overlay {
    align-items: flex-start;
    padding: 12px;
  }
  .balam-modal.balam-backorders-modal {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 22px 18px;
  }
}
.balam-seller-tone-default, .balam-seller-tone-0, .balam-seller-tone-1, .balam-seller-tone-2, .balam-seller-tone-3, .balam-seller-tone-4, .balam-seller-tone-5, .balam-seller-tone-6, .balam-seller-tone-7, .balam-seller-tone-8, .balam-seller-tone-9 {
  border: none;
  color: #333 !important;
  width: max-content;
  max-width: 100%;
}
.balam-statement-seller-cell .balam-task-seller-badge, .balam-client-detail-head .balam-task-seller-badge {
  align-items: center !important;
  display: inline-flex !important;
  justify-content: flex-start !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  gap: 7px !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  max-width: 100% !important;
  min-width: fit-content !important;
  overflow: visible !important;
  padding: 7px 12px !important;
  white-space: nowrap !important;
  width: max-content !important;
}
.balam-statement-seller-cell .balam-task-seller-badge::before, .balam-client-detail-head .balam-task-seller-badge::before {
  margin-right: 0 !important;
}
.balam-seller-tone-default {
  background: #a8e3c2 !important;
  border-color: transparent !important;
}
.balam-seller-tone-default::before {
  background: #333 !important;
}
.balam-seller-tone-0 {
  background: #bfdbfe !important;
  border-color: #93c5fd !important;
}
.balam-seller-tone-0::before {
  background: #2f80ed !important;
}
.balam-seller-tone-1 {
  background: #bbf7d0 !important;
  border-color: #86efac !important;
}
.balam-seller-tone-1::before {
  background: #16a34a !important;
}
.balam-seller-tone-2 {
  background: #fed7aa !important;
  border-color: #fdba74 !important;
}
.balam-seller-tone-2::before {
  background: #f97316 !important;
}
.balam-seller-tone-3 {
  background: #ddd6fe !important;
  border-color: #c4b5fd !important;
}
.balam-seller-tone-3::before {
  background: #9333ea !important;
}
.balam-seller-tone-4 {
  background: #fecdd3 !important;
  border-color: #fda4af !important;
}
.balam-seller-tone-4::before {
  background: #e11d48 !important;
}
.balam-seller-tone-5 {
  background: #bae6fd !important;
  border-color: #7dd3fc !important;
}
.balam-seller-tone-5::before {
  background: #0891b2 !important;
}
.balam-seller-tone-6 {
  background: #fde68a !important;
  border-color: #fcd34d !important;
}
.balam-seller-tone-6::before {
  background: #ca8a04 !important;
}
.balam-seller-tone-7 {
  background: #cbd5e1 !important;
  border-color: #94a3b8 !important;
}
.balam-seller-tone-7::before {
  background: #475569 !important;
}
.balam-seller-tone-8 {
  background: #fbcfe8 !important;
  border-color: #f9a8d4 !important;
}
.balam-seller-tone-8::before {
  background: #db2777 !important;
}
.balam-seller-tone-9 {
  background: #d9f99d !important;
  border-color: #bef264 !important;
}
.balam-seller-tone-9::before {
  background: #65a30d !important;
}
.balam-statement-seller-cell .balam-task-seller-badge.balam-seller-tone-default, .balam-client-detail-head .balam-task-seller-badge.balam-seller-tone-default {
  background: #d9dde3 !important;
  border-color: #b7c0cc !important;
}
.balam-statement-seller-cell .balam-task-seller-badge.balam-seller-tone-0, .balam-client-detail-head .balam-task-seller-badge.balam-seller-tone-0 {
  background: #bfdbfe !important;
  border-color: #93c5fd !important;
}
.balam-statement-seller-cell .balam-task-seller-badge.balam-seller-tone-1, .balam-client-detail-head .balam-task-seller-badge.balam-seller-tone-1 {
  background: #bbf7d0 !important;
  border-color: #86efac !important;
}
.balam-statement-seller-cell .balam-task-seller-badge.balam-seller-tone-2, .balam-client-detail-head .balam-task-seller-badge.balam-seller-tone-2 {
  background: #fed7aa !important;
  border-color: #fdba74 !important;
}
.balam-statement-seller-cell .balam-task-seller-badge.balam-seller-tone-3, .balam-client-detail-head .balam-task-seller-badge.balam-seller-tone-3 {
  background: #ddd6fe !important;
  border-color: #c4b5fd !important;
}
.balam-statement-seller-cell .balam-task-seller-badge.balam-seller-tone-4, .balam-client-detail-head .balam-task-seller-badge.balam-seller-tone-4 {
  background: #fecdd3 !important;
  border-color: #fda4af !important;
}
.balam-statement-seller-cell .balam-task-seller-badge.balam-seller-tone-5, .balam-client-detail-head .balam-task-seller-badge.balam-seller-tone-5 {
  background: #bae6fd !important;
  border-color: #7dd3fc !important;
}
.balam-statement-seller-cell .balam-task-seller-badge.balam-seller-tone-6, .balam-client-detail-head .balam-task-seller-badge.balam-seller-tone-6 {
  background: #fde68a !important;
  border-color: #fcd34d !important;
}
.balam-statement-seller-cell .balam-task-seller-badge.balam-seller-tone-7, .balam-client-detail-head .balam-task-seller-badge.balam-seller-tone-7 {
  background: #cbd5e1 !important;
  border-color: #94a3b8 !important;
}
.balam-statement-seller-cell .balam-task-seller-badge.balam-seller-tone-8, .balam-client-detail-head .balam-task-seller-badge.balam-seller-tone-8 {
  background: #fbcfe8 !important;
  border-color: #f9a8d4 !important;
}
.balam-statement-seller-cell .balam-task-seller-badge.balam-seller-tone-9, .balam-client-detail-head .balam-task-seller-badge.balam-seller-tone-9 {
  background: #d9f99d !important;
  border-color: #bef264 !important;
}
.balam-performance-meter {
  display: block;
  width: 100%;
  height: 10px;
}
.balam-performance-meter-bg {
  fill: #E5E5E5;
}
.balam-credit-health.good .balam-performance-meter-fill {
  fill: #39b54a;
}
.balam-credit-health.watch .balam-performance-meter-fill {
  fill: #b7e86e;
}
.balam-credit-health.medium .balam-performance-meter-fill {
  fill: #f3c44e;
}
.balam-credit-health.high .balam-performance-meter-fill {
  fill: #f08a3c;
}
.balam-credit-health.blocked .balam-performance-meter-fill {
  fill: #d9534f;
}
.balam-client-statements-table th, .balam-client-statements-table td {
  vertical-align: middle;
}
.balam-statement-client-cell strong {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.25;
}
.balam-statement-client-cell small {
  display: block;
  margin-top: 4px;
}
.balam-statement-money-cell span, .balam-statement-metric-cell span {
  display: none;
}
.balam-credit-health {
  display: grid;
  gap: 5px;
  margin-top: 8px;
  min-width: 150px;
}
.balam-credit-health span {
  font-size: 12px;
  font-weight: 800;
}
.balam-credit-health strong {
  font-size: 12px;
  color: #333;
}
.balam-credit-health.is-detail {
  margin: 18px 0;
}
.balam-statement-modal {
  max-width: 900px;
  width: 88vw;
  max-height: 88vh;
  overflow: auto;
  padding: 30px 34px;
}
.balam-statement-title-block {
  border-left: 6px solid #39b54a;
  padding: 0 42px 0 16px;
  margin: 0 0 18px;
}
.balam-statement-title-block > .balam-section-label {
  color: #39b54a;
  margin-bottom: 5px;
}
.balam-statement-modal .balam-statement-title-block .balam-modal-title {
  max-width: 760px;
}
.balam-statement-client-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 9px;
  color: #333;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.balam-statement-modal-seller {
  display: flex;
  margin: 0 0 14px 0;
}
.balam-statement-modal .balam-section-label {
  margin: 22px 0 12px;
}
.balam-statement-title-block > .balam-section-label {
  margin-top: 0;
}
.balam-statement-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.balam-credit-kpis, .balam-statement-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.balam-statement-summary-grid div {
  background: #E5E5E5;
  border-radius: 14px;
  padding: 12px 14px;
}
.balam-statement-summary-grid strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  color: #707070;
  margin-bottom: 6px;
}
.balam-statement-summary-grid span {
  font-weight: 800;
}
.balam-statement-edit-grid label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
}
.balam-statement-form label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
}
.balam-statement-invoice-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
.balam-statement-invoice-row {
  display: grid;
  grid-template-columns: 1fr 150px 150px 130px 130px 130px;
  gap: 8px;
  align-items: start;
  background: #E5E5E5;
  border-radius: 16px;
  padding: 12px;
}
.balam-statement-invoice-row textarea {
  grid-column: 1 / -1;
  min-height: 64px;
}
.balam-statement-close {
  position: absolute;
  right: 24px;
  top: 20px;
  background: #eee;
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.balam-client-seller-badge {
  align-items: center;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 1 auto;
  flex-direction: row;
  gap: 7px;
  max-width: 190px;
  padding: 7px 12px;
  text-align: left;
  white-space: nowrap;
}
.balam-client-fiscal-badge {
  margin-top: 5px;
}
.balam-client-detail-grid {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 6px;
  font-size: 14px;
  line-height: 1.15;
}
.balam-client-constancia-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.balam-client-constancia-thumb {
  display: block;
  width: 52px;
  height: 52px;
  overflow: hidden;
  border: 1px solid #333;
  border-radius: 8px;
  background: #f4f4f4;
}
.balam-client-constancia-object {
  width: 150px;
  height: 150px;
  border: 0;
  transform: scale(.35);
  transform-origin: top left;
  pointer-events: none;
  display: block;
}
.balam-client-constancia-fallback {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  color: #333;
  font-size: 12px;
  font-weight: 800;
}
.balam-client-destinations-wrap {
  margin-top: 18px;
}
.balam-client-destinations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.balam-client-destination-card {
  border: 1px solid #333;
  border-radius: 10px;
  padding: 10px;
  background: #E5E5E5;
  line-height: 1.2;
}
.balam-client-destination-label {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}
.balam-client-destination-line {
  font-size: 12px;
  margin-bottom: 3px;
}
.balam-client-history-list {
  display: grid;
  gap: 8px;
}
.balam-client-history-item {
  align-items: center;
  border: 1px solid #333;
  border-radius: 0.5em;
  column-gap: 15px;
  display: grid;
  grid-template-columns: 100px minmax(100px, 1fr) 50px auto;
  grid-template-areas:
    "type folio total date"
    "type pieces total date";
  padding: 15px 15px;
  background: #fff;
}
.balam-client-history-item.is-sale {
  border-left-color: #36b74d;
}
.balam-client-history-type {
  align-self: center;
  border-radius: 999px;
  background: #e5e5e5;
  color: #333;
  font-size: 11px;
  font-weight: 800;
  grid-area: type;
  justify-self: start;
  padding: 5px 10px;
  text-transform: uppercase;
}
.balam-client-history-folio {
  color: #333;
  font-size: 14px;
  grid-area: folio;
}
.balam-client-history-pieces {
  color: #959595;
  font-size: 14px;
  grid-area: pieces;
  font-weight: 600;
}
.balam-client-history-total {
  color: #333;
  font-size: 11px;
  font-weight: 600;
  grid-area: total;
  justify-self: end;
  font-family: monospace;
}
.balam-client-history-date {
  color: #333;
  font-size: 12px;
  grid-area: date;
  justify-self: end;
  text-align: right;
}
.balam-client-history-empty {
  border: 2px dashed #E5E5E5;
  border-radius: 8px;
  color: #959595;
  font-size: 13px;
  padding: 16px;
  text-align: center;
}
.balam-clients-map-modal {
  width: min(980px, 92vw);
  max-width: min(980px, 92vw);
  padding: 22px 24px 24px;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.balam-clients-map-inline .balam-clients-map-modal {
  width: 100%;
  max-width: 100%;
  max-height: none;
  overflow: visible;
  padding: 0;
}
#balam-clients-map-modal {
  align-items: flex-start;
  overflow-y: auto;
  padding: 28px 0;
}
.balam-clients-map-inline {
  display: block;
  overflow: visible;
  padding: 0;
}
#balam-clients-map-modal.balam-clients-map-inline {
  padding: 10px 0 0;
}
.balam-clients-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.balam-clients-map-head h4 {
  margin: 0 0 4px;
  font-size: 24px;
}
.balam-clients-map-subtitle {
  font-size: 16px;
  color: #333;
}
.balam-clients-map-view-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0;
  border: none;
  background: transparent;
}
.balam-clients-map-choice {
  text-transform: uppercase;
  letter-spacing: .03em;
  font-size: 11px;
  font-weight: 600;
  font-family: monospace;
}
.balam-clients-map-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #888;
  cursor: pointer;
  user-select: none;
}
.balam-clients-map-choice.is-on {
  color: #2f8425;
}
.balam-clients-map-choice input {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: #fff !important;
  background-image: none !important;
  border: 1.5px solid #999 !important;
  border-radius: 3px !important;
  box-sizing: border-box !important;
  cursor: pointer;
  display: inline-block !important;
  flex: 0 0 17px;
  height: 17px !important;
  margin: 0;
  min-height: 17px !important;
  padding: 0 !important;
  position: relative;
  width: 17px !important;
}
.balam-clients-map-choice input:checked {
  border-color: #2f8425 !important;
}
.balam-clients-map-choice input:checked::after {
  border: solid #2f8425;
  border-width: 0 2px 2px 0;
  content: "";
  height: 9px;
  left: 5px;
  position: absolute;
  top: 1px;
  transform: rotate(45deg);
  width: 4px;
}
.balam-clients-map-filters {
  margin: 0 0 14px;
}
.balam-clients-map-filters .balam-filters-row {
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}
.balam-clients-map-filters select {
  min-width: 240px;
  border: 1px solid #333;
  border-radius: 999px;
  background: #fff;
}
.balam-clients-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, .55fr);
  gap: 14px;
  align-items: start;
}
.balam-clients-map-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
}
.balam-clients-map-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 2029 / 1326;
  border: 1px solid #333;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8faf8 0%, #f1f4f1 100%);
  overflow: hidden;
}
.balam-clients-map-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  box-sizing: border-box;
}
.balam-clients-map-markers {
  position: absolute;
  inset: 0;
  z-index: 2;
}
.balam-clients-map-marker {
  position: absolute;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  border: 2px solid rgba(255, 255, 255, .92);
  cursor: default;
}
.balam-clients-map-marker.sales {
  background: radial-gradient(circle at 30% 30%, #9ee67f 0%, #56c436 58%, #38991f 100%);
}
.balam-clients-map-marker.quotes {
  background: radial-gradient(circle at 30% 30%, #6aa2ff 0%, #2e73ea 58%, #0f53c8 100%);
}
.balam-clients-map-marker-label {
  position: absolute;
  transform: translate(-50%, calc(-100% - 8px));
  background: rgba(255, 255, 255, .96);
  border: 1px solid #d6ddd6;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  color: #333;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .07);
}
.balam-clients-map-empty {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  font-size: 14px;
  color: #333;
}
.balam-clients-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  font-size: 12px;
  color: #676767;
}
.balam-clients-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.legend-dot.sales {
  background: #4cb72b;
}
.legend-dot.quotes {
  background: #2e73ea;
}
.balam-clients-map-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.balam-clients-map-summary-card {
  border: 1px solid #333;
  border-radius: 15px;
  background: #fff;
  padding: 10px 15px;
}
.balam-clients-map-summary-card .summary-label {
  font-size: 11px;
  color: #333;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .03em;
  font-family: monospace;
  font-weight: 600;
}
.balam-clients-map-summary-card .summary-value {
  font-size: 22px;
  line-height: 1.05;
  font-weight: 700;
  color: #2f2f2f;
}
.balam-clients-map-summary-card .summary-value.small {
  font-size: 15px;
}
.balam-clients-map-ranking {
  border: 1px solid #333;
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.balam-clients-map-ranking .ranking-title {
  padding: 15px;
  font-size: 14px;
  text-transform: uppercase;
  color: #333;
  font-weight: 600;
  background: #FFF;
  border-bottom: 1px solid #333;
  font-family: monospace;
}
.balam-clients-map-ranking-list {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.balam-clients-map-ranking-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid #333;
  font-size: 13px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.balam-clients-map-ranking-item:first-child {
  border-top: none;
}
.balam-clients-map-ranking-item-empty .balam-clients-map-ranking-state {
  grid-column: 1 / -1;
}
.balam-clients-map-ranking-rank {
  width: 25px;
  height: 25px;
  border-radius: 999px;
  background: #c5f5c5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-family: monospace;
  font-weight: 600;
  color: #333;
}
.balam-clients-map-ranking-state {
  min-width: 0;
  font-weight: 600;
  color: #2d2d2d;
}
.balam-clients-map-ranking-total {
  font-weight: 700;
  color: #4a4a4a;
}
@media (max-width: 980px) {
  .balam-clients-map-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 900px) {
  .balam-statement-summary-grid, .balam-credit-kpis, .balam-statement-edit-grid {
    grid-template-columns: 1fr 1fr;
  }
  .balam-statement-invoice-row {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .balam-clients-wrapper.balam-client-statements {
    width: 100% !important;
    max-width: 330px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  .balam-client-statements .balam-front-table.balam-client-statements-table {
    display: block !important;
    width: 100% !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
  }
  .balam-client-statements .balam-client-statements-table thead {
    display: none !important;
  }
  .balam-client-statements .balam-client-statements-table tbody {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .balam-client-statements .balam-client-statements-table tr {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 18px !important;
    margin: 0 0 14px !important;
    padding: 20px !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04) !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  .balam-client-statements .balam-client-statements-table td {
    border: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
    box-sizing: border-box !important;
  }
  .balam-client-statements .balam-client-statements-table td::before {
    display: none !important;
    content: none !important;
  }
  .balam-client-statements .balam-statement-client-cell {
    order: 1 !important;
    gap: 3px !important;
  }
  .balam-client-statements .balam-statement-client-cell strong {
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    line-height: 1.18 !important;
    text-transform: uppercase !important;
    overflow-wrap: anywhere !important;
  }
  .balam-client-statements .balam-statement-client-cell small {
    color: #333 !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    text-transform: uppercase !important;
  }
  .balam-client-statements .balam-statement-seller-cell {
    order: 2 !important;
  }
  .balam-client-statements .balam-statement-money-cell {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 2px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    order: 3 !important;
  }
  .balam-client-statements .balam-statement-metric-cell {
    display: grid !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    column-gap: 10px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.1 !important;
    order: 4 !important;
  }
  .balam-client-statements .balam-statement-money-cell span, .balam-client-statements .balam-statement-metric-cell span {
    display: block !important;
    color: #8b8b8b !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: .08em !important;
    text-transform: uppercase !important;
  }
  .balam-client-statements .balam-statement-metric-cell.is-empty-mobile {
    display: none !important;
  }
  .balam-client-statements .balam-statement-health-cell {
    order: 5 !important;
    gap: 8px !important;
  }
  .balam-client-statements .balam-statement-health-cell > .balam-badge {
    width: max-content !important;
    max-width: 100% !important;
  }
  .balam-client-statements .balam-credit-health {
    margin: 0 !important;
    min-width: 0 !important;
    gap: 5px !important;
  }
  .balam-client-statements .balam-credit-health span {
    font-size: 12px !important;
  }
  .balam-client-statements .balam-statement-actions-cell {
    order: 6 !important;
    margin-top: 6px !important;
  }
  .balam-client-statements .balam-statement-actions-cell .balam-btn {
    width: 100% !important;
    min-height: 34px !important;
  }
  .balam-statement-modal {
    width: min(330px, calc(100vw - 24px)) !important;
    max-width: min(330px, calc(100vw - 24px)) !important;
    max-height: calc(100vh - 36px) !important;
    border-radius: 18px !important;
    padding: 22px 18px !important;
    box-sizing: border-box !important;
  }
  .balam-statement-summary-grid, .balam-credit-kpis, .balam-statement-edit-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .balam-statement-summary-grid div {
    border-radius: 12px !important;
    padding: 11px 12px !important;
  }
  .balam-statement-modal .balam-modal-title {
    overflow-wrap: anywhere !important;
  }
  .balam-statement-title-block {
    margin-bottom: 14px !important;
    padding: 0 28px 0 12px !important;
  }
  .balam-statement-client-meta {
    font-size: 11px !important;
    gap: 5px 12px !important;
  }
  .balam-statement-close {
    right: 14px !important;
    top: 14px !important;
  }
  .balam-client-detail-head {
    flex-direction: row;
    gap: 10px;
  }
  .balam-client-seller-badge {
    max-width: 150px;
  }
  .balam-client-history-item {
    grid-template-columns: 1fr auto;
    grid-template-areas: "type date""folio total""pieces total";
    row-gap: 4px;
  }
  #balam-clients-map-modal.balam-clients-map-inline {
    width: 100%;
    max-width: 330px;
    margin: 0 auto;
    padding: 0;
    overflow: visible;
    box-sizing: border-box;
  }
  #balam-clients-map-modal.balam-clients-map-inline .balam-clients-map-modal {
    background: #fff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .04);
    box-sizing: border-box;
    max-height: none;
    overflow: hidden;
    padding: 24px;
  }
  .balam-clients-map-modal {
    width: 100%;
    max-width: 100%;
    padding: 24px;
    max-height: calc(100vh - 24px);
    background: #fff;
    border-radius: 18px;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .balam-clients-map-head {
    flex-direction: column;
    margin-bottom: 14px;
    min-width: 0;
  }
  .balam-clients-map-head .balam-client-view-close {
    align-self: flex-end;
  }
  .balam-clients-map-summary {
    grid-template-columns: 1fr;
  }
  .balam-clients-map-filters, .balam-clients-map-filters .balam-filters-controls, .balam-clients-map-filters .balam-filters-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .balam-clients-map-filters .balam-filters-row {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .balam-clients-map-view-switch {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    justify-content: center;
    gap: 12px;
    box-sizing: border-box;
  }
  .balam-clients-map-filters .balam-select, .balam-clients-map-filters .balam-select-trigger {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 42px !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-sizing: border-box !important;
  }
  .balam-clients-map-filters select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
  .balam-clients-map-filters .balam-select {
    border: 0 !important;
  }
  .balam-clients-map-filters .balam-select-trigger {
    border: 1px solid #333 !important;
  }
  .balam-clients-map-layout, .balam-clients-map-canvas-wrap, .balam-clients-map-sidebar, .balam-clients-map-stage, .balam-clients-map-ranking {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  .balam-clients-map-stage {
    border-radius: 14px;
  }
  .balam-clients-map-legend {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .balam-clients-map-ranking-item {
    grid-template-columns: 30px minmax(0, 1fr) auto;
    gap: 8px;
    padding-inline: 10px;
  }
  .balam-clients-map-ranking-state {
    overflow-wrap: anywhere;
  }
}
/* Garantias: layout reutilizable para filtros, evidencias y tabla de productos. */
.balam-warranty-header {
  margin-bottom: 20px;
}
.balam-warranty-order-fields-grid {
  align-items: end;
  display: grid !important;
  gap: 15px;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  margin-bottom: 15px;
}
.balam-warranty-order-fields-grid .balam-warranty-filter-field-order {
  grid-column: span 2 !important;
}
.balam-warranty-order-fields-grid .balam-warranty-filter-field {
  min-width: 0;
  width: 100% !important;
}
.balam-warranty-order-fields-grid .balam-warranty-filter-field select {
  box-sizing: border-box;
  max-width: none !important;
  width: 100% !important;
}
.balam-warranty-order-fields-grid .balam-warranty-filter-field > .balam-select {
  display: block !important;
  max-width: none !important;
  min-width: 0 !important;
  width: 100% !important;
}
.balam-warranty-filter-field {
  flex: 1;
  min-width: 0;
}
.balam-warranty-filter-field-order {
  flex: 2;
}
.balam-warranty-filter-field label {
  display: block;
  font-size: 11px;
  font-weight: bold;
  margin-bottom: 4px;
}
.balam-warranty-filter-field select {
  width: 100%;
}
.balam-warranty-section {
  margin-top: 24px;
}
.balam-warranty-products-notice {
  display: block;
  margin-bottom: 12px;
}
.balam-warranty-items-table .balam-warranty-col-check {
  width: 40px;
}
.balam-warranty-items-table .balam-warranty-col-product {
  width: 250px;
}
.balam-warranty-items-table .balam-warranty-col-order {
  text-align: center;
  width: 80px;
}
.balam-warranty-items-table .balam-warranty-col-qty {
  text-align: center;
  width: 140px;
}
.balam-warranty-manual-qty-cell {
  text-align: center;
  vertical-align: middle;
}
.balam-warranty-manual-qty-value {
  display: block;
  font-weight: 700;
  text-align: center;
}
.balam-warranty-type-cell {
  text-align: center;
  vertical-align: middle;
}
.balam-warranty-type-value {
  display: block;
  font-weight: 700;
  text-align: center;
}
.balam-warranty-items-table .balam-warranty-col-type {
  width: 150px;
}
.balam-warranty-order-qty {
  text-align: center;
}
.balam-warranty-qty-group {
  justify-content: center;
  opacity: .5;
  pointer-events: none;
}
.balam-warranty-qty-button {
  font-size: 16px;
  height: 24px;
  width: 24px;
}
.balam-warranty-qty-value {
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  min-width: 20px;
}
.balam-warranty-resolution {
  font-size: 11px;
  width: 100%;
}
.balam-warranty-media-container {
  margin-bottom: 15px;
}
.balam-warranty-add-media {
  background: #f0f0f0;
  border: 2px dashed #ccc;
  box-sizing: border-box;
  color: #333;
  height: 80px;
  width: 100%;
}
.balam-warranty-add-media-icon {
  display: block;
  font-size: 24px;
  margin-bottom: 5px;
}
.balam-warranty-submit-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}
.balam-warranty-modal {
  align-items: center;
  justify-content: center;
}
.balam-warranty-modal-card {
  text-align: center;
}
.balam-warranty-modal-card p {
  color: #333;
  font-size: 14px;
  margin-bottom: 25px;
}
.balam-warranty-modal-card .balam-btn {
  min-width: 120px;
}
.balam-warranty-placeholder {
  margin-top: 20px;
}
.balam-warranty-media-item {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  height: 100px;
  overflow: hidden;
  position: relative;
  width: 100px;
}
.balam-warranty-media-image {
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.balam-warranty-media-file {
  color: #333;
  font-size: 10px;
  height: 100%;
  padding: 5px;
  text-align: center;
}
.balam-warranty-media-file-icon {
  font-size: 20px;
  margin-bottom: 5px;
}
.balam-warranty-media-remove {
  background: rgba(255, 0, 0, .7);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 10px;
  height: 18px;
  position: absolute;
  right: 2px;
  top: 2px;
  width: 18px;
}
.balam-vehicle-alerts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 16px;
}
.balam-vehicle-alert {
  margin: 0;
}
.balam-vehicle-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 16px;
}
.balam-vehicle-section {
  margin-top: 18px;
}
.balam-vehicle-section-title {
  margin: 0;
}
.balam-vehicles-wrapper .balam-front-table thead th {
  text-align: center !important;
  vertical-align: middle !important;
}
.balam-vehicle-filters {
  --balam-filter-grid-columns: 200px 210px auto;
  margin-bottom: 16px;
}
.balam-vehicle-filters .balam-input-lg {
  font-size: 12px !important;
  height: 30px !important;
  min-width: 0 !important;
  padding: 0 14px !important;
}
/* ============================
   ACCESO FRONT
============================ */
.balam-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  zoom: 90%;
  margin-top: -5em;
  padding: 28px 16px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  text-rendering: geometricPrecision;
  letter-spacing: 0;
}
.balam-login-page * {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  text-rendering: geometricPrecision;
}
/* =========================================================
   ACTIVE MODULE OVERRIDES
   Rules grouped by module for targeted maintenance.
========================================================= */
/* =========================
   1. Login
========================= */
.balam-login-card {
  width: min(390px, 100%);
}
.balam-login-version {
  margin: 0 0 34px;
  color: #6b6f73;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}
.balam-login-version small {
  display: block;
  margin-top: 0;
  font-family: "Feature Mono", "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 30px;
  letter-spacing: 0;
  font-weight: 700;
  text-align: center;
}
.balam-login-title {
  margin: 0 0 22px;
  color: #2f3337;
  font-size: 28px;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}
.balam-login-error {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: #c12d2d;
}
.balam-login-card form {
  display: flex;
  flex-direction: column;
}
.balam-login-field {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: #2f3337;
  margin: 0 0 8px;
  letter-spacing: 0;
}
.balam-login-input {
  width: 100%;
  box-sizing: border-box;
  height: 50px;
  border: 3px solid #a9abad;
  border-radius: 50em;
  background: #fff;
  padding: 0 20px;
  font-size: 16px;
  font-family: "DM Sans";
  color: #2f3337;
  margin: 0 0 18px;
  outline: none;
}
.balam-login-input:focus {
  border-color: #8f9195;
  background: #fff;
}
.balam-login-remember {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #2f3337;
  margin: 2px 0 28px;
  font-size: 16px;
}
.balam-login-remember input {
  width: 24px;
  height: 24px;
  border: 2px solid #9fa1a4;
}
/* Login: passkey */
.balam-login-passkey-wrap {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.balam-login-passkey-message {
  min-height: 18px;
  color: #333;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}
.balam-login-passkey-message.is-error {
  color: #c12d2d;
}
.balam-login-passkey-message.is-ok {
  color: #2d7f2f;
}
/* Login: responsive */
@media (max-width: 720px) {
  .balam-login-page {
    align-items: flex-start;
    min-height: 100svh;
    margin-top: 0;
    padding: 62px 22px 34px;
    zoom: 1;
  }
  .balam-login-card {
    width: min(100%, 340px);
  }
  .balam-login-version {
    margin-bottom: 36px;
  }
  .balam-login-version small {
    font-size: 18px;
  }
  .balam-login-title {
    font-size: 24px;
    margin-bottom: 24px;
  }
  .balam-login-field {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .balam-login-input {
    height: 50px;
    font-size: 18px;
    border-width: 3px;
    margin-bottom: 22px;
  }
  .balam-login-remember {
    justify-content: center;
    margin: 0 0 28px;
    font-size: 16px;
  }
  .balam-login-remember input {
    width: 22px;
    height: 22px;
  }
}
/* Prospeccion: tarjetas de listado */
.balam-task-calendar-card {
  align-items: stretch;
  border: 1px solid #333;
  border-radius: 1em;
  box-shadow: none;
  box-sizing: border-box;
  display: grid;
  gap: 0;
  grid-template-columns: minmax(220px, 1.25fr) minmax(170px, .8fr) minmax(210px, 1fr) 180px;
  max-width: 100%;
  overflow: hidden;
  padding: 0;
  width: 100%;
}
.balam-task-calendar-body {
  display: contents;
}
.balam-task-calendar-column {
  border-right: 1px solid #333;
  box-sizing: border-box;
  color: #333;
  display: flex;
  flex-direction: column;
  font-size: 12px;
  justify-content: center;
  min-width: 0;
  padding: 15px;
}
.balam-task-calendar-column-main, .balam-task-calendar-column-status {
  overflow-wrap: anywhere;
}
.balam-task-calendar-title {
  color: #333;
  display: block;
  font-size: 15px;
  margin: 0;
  overflow-wrap: anywhere;
}
.balam-task-calendar-seller, .balam-task-calendar-column-main .balam-btn {
  margin-top: 8px;
  width: max-content;
}
.balam-task-calendar-status-badge {
  margin-top: 7px;
  width: max-content;
}
.balam-task-calendar-actions {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  padding: 11px 14px;
}
.balam-task-calendar-actions .balam-btn {
  max-width: 100%;
}
.balam-commercial-visit-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px 18px;
  color: #333;
  font-size: 12px;
  line-height: 1.35;
}
.balam-commercial-visit-field:first-child, .balam-commercial-visit-field:nth-child(2) {
  grid-column: span 2;
}
.balam-commercial-visit-field span {
  color: #959595;
  font-weight: 800;
}
.balam-commercial-visit-field strong {
  color: #959595;
  font-weight: 700;
}
.balam-commercial-visit-actions {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 180px;
}
.balam-commercial-visit-actions .balam-route-arrow {
  min-width: 30px;
  padding-left: 8px !important;
  padding-right: 8px !important;
}
.balam-commercial-visit-editing {
  background: #f7fff3 !important;
  box-shadow: inset 3px 0 0 #44a620;
}
.balam-route-planner-tabs {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 14px;
  border-bottom: 1px solid #e2e2e2;
}
.balam-route-planner-tab {
  appearance: none;
  border: 0;
  background: transparent;
  border-bottom: 3px solid transparent;
  color: #333;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 10px 4px 9px;
  text-transform: uppercase;
}
.balam-route-planner-tab.is-active {
  border-color: #333;
  color: #333;
}
.balam-route-planner-panel[hidden] {
  display: none !important;
}
.balam-route-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 14px;
  align-items: stretch;
}
.balam-route-map-canvas {
  min-height: 360px;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #f1f1f1;
  overflow: hidden;
}
.balam-route-map-sidebar {
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
}
.balam-route-map-sidebar-head {
  padding: 12px 14px;
  background: #f4f4f4;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.balam-route-map-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  overflow: auto;
}
.balam-route-map-stop {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
}
.balam-route-map-stop-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #333;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.balam-route-map-stop-main {
  min-width: 0;
  font-size: 12px;
  line-height: 1.25;
}
.balam-route-map-stop-main strong {
  display: block;
  color: #333;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.balam-route-map-stop-main span {
  display: block;
  color: #959595;
  margin-top: 2px;
}
.balam-route-map-notice {
  border: 1px solid #e5d28b;
  background: #fff6c7;
  border-radius: 12px;
  color: #7a5b00;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 12px;
  padding: 10px 12px;
}
.balam-route-map-tools {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 12px 0;
}
.balam-task-calendar-route-tools {
  align-items: center;
  flex-wrap: wrap;
}
.balam-prospecting-route-map-modal {
  box-sizing: border-box;
  width: min(1120px, 94vw);
  max-width: 1120px;
  max-height: min(520px, calc(100vh - 64px));
  overflow: hidden;
}
.balam-prospecting-route-map-modal .balam-route-map-layout {
  height: 340px;
  min-height: 0;
}
.balam-prospecting-route-map-modal .balam-route-map-canvas, .balam-prospecting-route-map-modal .balam-route-map-sidebar {
  height: 340px;
  min-height: 0;
}
.balam-prospecting-route-map-modal .balam-route-map-list {
  flex: 1 1 auto;
  min-height: 0;
}
.balam-route-vehicle-block {
  border: 1px solid #333;
  border-radius: 14px;
  background: #E5E5E5;
  margin-bottom: 14px;
  padding: 16px;
}
.balam-route-vehicle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}
.balam-route-vehicle-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.balam-route-vehicle-head h5 {
  color: #333;
  font-size: 14px;
  font-weight: 900;
  margin: 0;
  text-transform: uppercase;
}
.balam-route-vehicle-head p {
  color: #959595;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin: 4px 0 0;
}
.balam-route-vehicle-status {
  border-radius: 999px;
  background: #e9f8e8;
  color: #319421;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  padding: 7px 10px;
  text-transform: uppercase;
  white-space: nowrap;
}
.balam-route-vehicle-status.is-empty {
  background: #ffe4e4;
  color: #d02222;
}
.balam-route-vehicle-select-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}
.balam-route-vehicle-select-row label {
  display: block;
  max-width: 50%;
  width: 50%;
}
.balam-route-vehicle-layout .balam-route-vehicle-select-row label {
  max-width: none;
  width: 100%;
}
.balam-route-vehicle-select-row .balam-select {
  width: 100% !important;
}
.balam-route-vehicle-select-row .balam-select-panel {
  min-width: 100% !important;
  width: 100% !important;
}
.balam-route-vehicle-select-row small {
  color: #959595;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}
.balam-route-summary-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 12px;
}
.balam-route-summary-grid.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.balam-route-summary-grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}
.balam-route-builder {
  border: 1px solid #333;
  border-radius: 14px;
  padding: 16px;
  background: #E5E5E5;
  margin-bottom: 14px;
}
.balam-route-builder-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.balam-route-field-full {
  width: 100% !important;
}
.balam-route-client-summary {
  font-size: 11px;
  color: #333;
  margin-top: 5px;
}
.balam-route-prospect-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.balam-route-saved-list {
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.balam-route-saved-head {
  padding: 10px 12px;
  background: #f4f4f4;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
}
.balam-route-saved-row {
  padding: 12px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}
.balam-route-saved-main {
  flex: 1;
  min-width: 0;
}
.balam-route-saved-empty {
  padding: 14px;
  color: #959595;
  font-size: 12px;
  border-top: 1px solid #eee;
}
.balam-hidden-inline {
  display: none !important;
}
.balam-prospect-fields-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 20px;
}
.balam-prospect-field-full {
  grid-column: span 2;
}
.balam-prospect-summary {
  margin: 8px 0 4px;
  font-size: 12px;
  color: #959595;
}
.balam-prospect-divider {
  height: 1px;
  background: #eee;
  margin: 16px 0;
}
@media (max-width: 900px) {
  .balam-prospect-route-modal {
    width: min(100%, 92vw);
    max-width: none;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
  }
  .balam-route-map-layout {
    grid-template-columns: 1fr;
  }
  .balam-route-map-sidebar {
    min-height: 260px;
  }
}
@media (max-width: 720px) {
  .balam-route-vehicle-layout {
    grid-template-columns: 1fr;
  }
  .balam-commercial-visit-fields, .balam-route-summary-grid, .balam-route-builder-row, .balam-route-prospect-grid {
    grid-template-columns: 1fr;
  }
  .balam-commercial-visit-field:first-child, .balam-commercial-visit-field:nth-child(2) {
    grid-column: auto;
  }
  .balam-route-vehicle-select-row label {
    max-width: 100%;
    width: 100%;
  }
}
/* =========================
   3. Modal De Confirmacion
   Salidas A Prospeccion
========================= */
.balam-prospect-confirm {
  align-items: center;
  backdrop-filter: blur(4px);
  background: rgba(0, 0, 0, .42);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 100002;
}
.balam-prospect-confirm-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .24);
  box-sizing: border-box;
  color: #333;
  font-family: "DM Sans", Arial, sans-serif;
  max-width: 420px;
  padding: 26px 30px;
  width: 100%;
}
.balam-prospect-confirm-card h4 {
  font-size: 20px;
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 10px;
  text-transform: uppercase;
}
.balam-prospect-confirm-card p {
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 22px;
}
.balam-prospect-confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
/* =========================
   4. Calendario General
   Modal, Tabs Y Participantes
========================= */
.balam-company-attendees {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 20px;
  font-size: 13px;
  max-height: none;
  overflow: visible;
  padding: 10px 0 0;
}
.balam-company-session-attendees {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 18px;
  font-size: 13px;
  padding: 4px 0 0;
}
.balam-company-session-attendees label {
  align-items: flex-start;
  color: #959595;
  display: flex;
  font-weight: 700;
  gap: 8px;
  line-height: 1.25;
  margin: 0;
}
.balam-company-session-attendees input {
  flex: 0 0 auto;
  height: 14px;
  margin: 1px 0 0;
  width: 14px;
}
/* =========================
   5. Calendario General
   Editor De Sesion
========================= */
.balam-company-rich-toolbar {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.balam-company-rich-toolbar button {
  background: #fff;
  border: 1px solid #ddd;
  cursor: pointer;
  font-weight: 800;
  padding: 5px 10px;
}
.balam-company-rich-toolbar-separator {
  background: #ddd;
  margin: 0 5px;
  width: 1px;
}
.balam-company-rich-editor {
  background: #fff;
  border: 2px solid #E5E5E5;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  font-size: 14px;
  min-height: 86px;
  max-height: 160px;
  overflow-y: auto;
  padding: 15px;
  outline: none;
}
/* =========================
   6. Prefacturas
   Captura De Productos
========================= */
@media (min-width: 981px) {
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs {
    align-items: flex-end !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: 92px minmax(280px, 1.9fr) 120px 120px 70px 98px !important;
    width: 100% !important;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs > div, .balam-preinvoice-edit-content .balam-preinvoice-products-inputs > .balam-field, .balam-preinvoice-edit-content .balam-preinvoice-products-inputs > .balam-preinvoice-add-wrap {
    min-width: 0 !important;
    width: 100% !important;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-quote-qty-field, .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-quote-price-field, .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-preinvoice-stock-field, .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-preinvoice-add-wrap {
    min-width: 0 !important;
    width: 100% !important;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-quote-qty-field, .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-quote-price-field {
    flex: none !important;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs > .balam-preinvoice-type-field {
    grid-column: 1;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs > .balam-quote-product-select-field {
    grid-column: 2;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-quote-qty-field {
    grid-column: 3;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-quote-price-field {
    grid-column: 4;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-preinvoice-stock-field {
    grid-column: 5;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-preinvoice-add-wrap {
    grid-column: 6;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-quote-qty-field .balam-custom-num-input, .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-quote-price-field .balam-custom-num-input {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-preinvoice-stock-field {
    overflow: hidden;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs #balam-stock-display {
    align-items: center;
    display: flex;
    font-size: 15px;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
  }
  .balam-preinvoice-edit-content .balam-preinvoice-products-inputs .balam-preinvoice-add-btn {
    width: 100% !important;
  }
}
/* =========================
   7. Embarques
   Cards De Remitente Y Destinatario
========================= */
.balam-dest-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 0 12px;
}
.balam-dest-cards {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.balam-dest-card {
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 20px;
  transition: .2s;
}
.balam-dest-card:hover {
  border-color: #9ac47d;
}
.balam-dest-card--rem.is-active {
  background: #c5f5c5;
  border: 2px solid #50b428;
}
.balam-dest-card--dest.is-active {
  background: #e7f8f9;
  border: 2px solid #bfe6e4;
}
.balam-dest-card-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}
.balam-dest-card-lines {
  color: #333;
  font-size: 11px;
  line-height: 1.35;
}
.balam-dest-card-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 6px;
}
.balam-shipment-address-columns {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 28px;
}
.balam-shipment-address-column {
  min-width: 0;
}
.balam-shipment-address-column .balam-dest-header {
  gap: 12px;
}
.balam-shipment-address-column .balam-dest-cards {
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.balam-shipment-address-action {
  margin-top: 16px;
  width: 100%;
}
.balam-shipment-products-summary {
  margin-bottom: 24px;
}
.balam-shipment-products-summary .balam-subsection-title {
  margin-bottom: 10px;
}
.balam-shipments-items-table th, .balam-shipments-items-table td {
  font-size: 14px !important;
}
.balam-shipment-transport-layout {
  align-items: start;
  display: grid;
  gap: 22px;
  grid-template-columns: 400px minmax(0, 1fr);
  margin-bottom: 6px;
}
.balam-shipment-side-column, .balam-shipment-transport-column {
  min-width: 0;
}
.balam-shipment-transport-grid {
  align-items: end;
  display: grid !important;
  gap: 12px 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
}
.balam-shipment-transport-grid [data-transport-field] {
  min-width: 0;
  width: 100% !important;
}
.balam-shipment-client-guide {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 4px 0 0;
}
.balam-shipment-client-guide-title {
  margin: 0 !important;
}
.balam-shipment-client-guide-control {
  align-items: flex-start;
  color: #333;
  display: flex;
  font-size: 14px;
  gap: 10px;
  line-height: 1.35;
  text-transform: none;
}
.balam-shipment-client-guide-control input {
  accent-color: #4b7fe2;
  margin-top: 2px;
}
[data-transport-field] {
  min-width: 0;
}
[data-transport-row].is-disabled, [data-transport-field].is-disabled {
  opacity: .55;
}
@media (max-width: 980px) {
  .balam-shipment-address-columns {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr);
  }
  .balam-shipment-transport-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .balam-shipment-address-column .balam-dest-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .balam-dest-card {
    min-height: 0;
    padding: 16px;
  }
  .balam-shipment-transport-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* === Restored From Backup: PHP/Class Diff Audit (2026-07-14) === */
.balam-gap-12 {
  gap: 12px;
}
.balam-mt-16 {
  margin-top: 16px;
}
.balam-clients-filters .balam-filters-row.search-row select.balam-client-order-filter {
  width: 190px;
  max-width: 190px;
  flex: 0 0 190px;
  box-sizing: border-box;
}
.balam-clients-filters .balam-filters-row.balam-clients-secondary-row select.balam-client-seller-filter {
  width: 100%;
  max-width: none;
  flex: 0 1 auto;
  box-sizing: border-box;
}
.balam-clients-filters .balam-filters-row.balam-clients-secondary-row select.balam-client-state-filter {
  width: 190px;
  max-width: 190px;
  flex: 0 1 190px;
  box-sizing: border-box;
}
.balam-preinvoices-status-cell {
  text-align: center;
}
.balam-quote-status-cell .balam-projects-stack, .balam-quote-status-cell .balam-project-status-stack {
  align-items: center;
  justify-content: center;
}
.balam-quotes-table .balam-quote-folio-cell {
  text-align: center;
}
.balam-quotes-table .balam-quote-folio-cell > div {
  display: flex;
  justify-content: center;
}
.balam-quotes-table .balam-quote-actions-cell {
  text-align: center;
}
.balam-quotes-table .balam-quote-status-cell {
  text-align: center;
}
.balam-warranty-status-actions-cell {
  text-align: center;
}
.balam-warranty-status-actions-stack {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}
.balam-warranty-header-action {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
}
.balam-vehicle-summary-card {
  border-radius: 8px !important;
  margin: 0 !important;
  padding: 14px !important;
}
.balam-vehicle-summary-card span {
  color: #959595;
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.balam-vehicle-summary-card strong {
  color: #333;
  display: block;
  font-size: 20px;
}
.balam-vehicle-section-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.balam-vehicle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.balam-vehicle-action-form {
  margin: 0;
}
.balam-vehicle-provider {
  color: #959595;
  font-size: 11px;
}
.balam-vehicle-cell {
  align-items: center;
  display: flex;
  gap: 10px;
}
.balam-vehicle-cell span {
  color: #959595;
  font-size: 11px;
}
.balam-vehicle-thumb {
  align-items: center;
  background: #E5E5E5;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #959595;
  display: flex;
  font-size: 10px;
  font-weight: 900;
  height: 48px;
  justify-content: center;
  overflow: hidden;
  width: 64px;
}
.balam-vehicle-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.balam-vehicle-image-preview {
  align-items: center;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  gap: 10px;
  margin-top: 8px;
  padding: 8px;
}
.balam-vehicle-image-preview.is-hidden {
  display: none;
}
.balam-vehicle-image-preview img {
  border-radius: 6px;
  display: block;
  height: 58px;
  object-fit: cover;
  width: 82px;
}
.balam-vehicle-image-preview span {
  color: #959595;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.balam-license-plate {
  align-items: center;
  background: linear-gradient(#E5E5E5, #e7e7e7);
  border: 2px solid #cfcfcf;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, .15);
  color: #333;
  display: inline-flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  min-width: 118px;
  padding: 8px 12px 6px;
  text-align: center;
  text-transform: uppercase;
}
.balam-license-plate:before {
  color: #dc6a28;
  content: "F  |  MEX";
  display: block;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 5px;
  width: 100%;
}
.balam-license-plate small {
  color: #959595;
  display: block;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  margin-top: 5px;
}
.balam-license-plate.is-small {
  border-radius: 5px;
  display: inline-flex;
  font-size: 11px;
  min-width: 74px;
  padding: 4px 7px;
}
.balam-license-plate.is-small:before, .balam-license-plate.is-small small {
  display: none;
}
.balam-vehicle-status-badge {
  gap: 5px !important;
}
.balam-vehicle-file-badge {
  background: #333 !important;
  border: 0;
  color: #fff !important;
  cursor: pointer;
}
.balam-vehicle-file-badge.is-empty {
  background: #E5E5E5 !important;
  color: #333 !important;
  cursor: default;
}
.balam-vehicle-reservation {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.balam-vehicle-reservation strong {
  background: #eee4ff;
  border-radius: 999px;
  color: #5e49c9;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 10px;
  text-transform: uppercase;
}
.balam-vehicle-reservation span {
  color: #959595;
  font-size: 11px;
  font-weight: 800;
}
.balam-vehicle-available {
  background: #dff6df;
  border-radius: 999px;
  color: #2f8c2f;
  display: inline-flex;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 6px 10px;
  text-transform: uppercase;
}
.balam-vehicle-form-wide {
  grid-column: 1 / -1;
}
.balam-vehicle-modal {
  max-width: 780px;
  position: relative;
  width: 95%;
}
.balam-vehicle-view-modal {
  max-width: 650px;
  position: relative;
  width: 95%;
}
.balam-vehicle-modal-close {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 24px;
  position: absolute;
  right: 16px;
  top: 14px;
}
.balam-vehicle-file-picker {
  position: relative;
}
.balam-vehicle-file-input {
  cursor: pointer;
  height: 100%;
  opacity: 0;
  position: absolute;
  width: 100%;
  z-index: 2;
}
.balam-vehicle-file-trigger {
  align-items: center;
  background: #E5E5E5;
  border: 2px dashed #E5E5E5;
  display: flex;
  height: 33px;
  padding: 0 15px;
}
.balam-vehicle-file-button {
  background: #333;
  border-radius: 10px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.5;
  margin-right: 10px;
  padding: 2px 10px;
  text-transform: uppercase;
}
.balam-vehicle-file-label {
  color: #888;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.balam-vehicle-detail {
  font-size: 13px;
  line-height: 1.35;
}
.balam-vehicle-detail-grid {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}
.balam-vehicle-detail-item strong {
  color: #959595;
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.balam-vehicle-detail-item span {
  color: #333;
  font-weight: 700;
}
.balam-vehicle-detail-wide {
  grid-column: 1 / -1;
}
.balam-vehicle-detail-image {
  border-radius: 8px;
  display: block;
  margin-bottom: 12px;
  max-height: 220px;
  object-fit: cover;
  width: 100%;
}
@media (max-width: 640px) {
  .balam-vehicle-detail-grid {
    grid-template-columns: 1fr;
  }
  .balam-license-plate {
    font-size: 15px;
    min-width: 100px;
  }
}
.balam-petty-alerts {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 16px;
}
.balam-petty-alert {
  margin: 0;
}
.balam-petty-summary {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 16px;
}
.balam-petty-summary-card {
  border-radius: 8px !important;
  margin: 0 !important;
  padding: 14px !important;
}
.balam-petty-summary-card span {
  color: #959595;
  display: block;
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.balam-petty-summary-card strong {
  color: #333;
  display: block;
  font-size: 20px;
}
.balam-petty-section {
  margin-top: 18px;
}
.balam-petty-section-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
}
.balam-petty-section-title {
  margin: 0;
}
.balam-petty-header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.balam-petty-filters {
  align-items: center !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: 220px 220px 200px auto !important;
  margin-bottom: 16px;
}
.balam-petty-filters .balam-input-lg {
  font-size: 12px !important;
  height: 30px !important;
  min-width: 0 !important;
  padding: 0 14px !important;
  width: 100% !important;
}
.balam-petty-filters input[name="f_search"] {
  grid-column: 1 / 4 !important;
}
.balam-petty-filters .balam-btn {
  justify-self: start;
}
.balam-petty-beneficiary {
  color: #959595;
  font-size: 11px;
}
.balam-petty-table thead th, .balam-petty-table thead tr th, .balam-front-table.balam-petty-table thead th {
  text-align: center !important;
  vertical-align: middle !important;
}
.balam-petty-movements-table td[data-label="Fecha"], .balam-petty-movements-table td[data-label="Estatus"], .balam-petty-movements-table td[data-label="Comprobante"], .balam-petty-movements-table tbody tr td:nth-child(1), .balam-petty-movements-table tbody tr td:nth-child(5), .balam-petty-movements-table tbody tr td:nth-child(6) {
  text-align: center !important;
  vertical-align: middle !important;
}
.balam-petty-movements-table td[data-label="Estatus"] .balam-badge, .balam-petty-movements-table td[data-label="Comprobante"] .balam-badge, .balam-petty-movements-table td[data-label="Comprobante"] form {
  display: inline-flex !important;
}
.balam-petty-consult-btn {
  min-width: 74px !important;
}
.balam-petty-status-badge {
  gap: 5px !important;
}
.balam-petty-status-icon {
  align-items: center;
  color: currentColor;
  display: inline-flex;
  font-size: 10px;
  font-weight: 900;
  justify-content: center;
  line-height: 1;
}
.balam-petty-status-badge.status-pendiente .balam-petty-status-icon, .balam-petty-status-badge.status-prefactura .balam-petty-status-icon {
  font-size: 12px;
}
.balam-petty-inline-receipt-form {
  display: inline-flex;
  margin: 0;
}
.balam-petty-receipt-badge.has-receipt {
  background: #333 !important;
  color: #fff !important;
}
.balam-petty-receipt-badge.no-receipt {
  background: #E5E5E5 !important;
  color: #333 !important;
}
button.balam-petty-receipt-badge, label.balam-petty-receipt-badge {
  border: 0;
  cursor: pointer;
}
.balam-petty-detail {
  font-size: 13px;
  line-height: 1.35;
}
.balam-petty-detail-grid {
  display: grid;
  gap: 10px 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}
.balam-petty-detail-item strong {
  color: #959595;
  display: block;
  font-size: 11px;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.balam-petty-detail-item span {
  color: #333;
  font-weight: 700;
}
.balam-petty-detail-wide {
  grid-column: 1 / -1;
}
.balam-petty-view-modal {
  max-width: 620px;
  position: relative;
  width: 95%;
}
.balam-petty-modal-close {
  background: none;
  border: 0;
  cursor: pointer;
  font-size: 24px;
  position: absolute;
  right: 16px;
  top: 14px;
}
.balam-petty-receipts-dialog {
  box-sizing: border-box !important;
  max-width: 820px;
  padding: 24px 34px 34px !important;
  position: relative;
  width: 95%;
}
.balam-petty-receipts-title {
  margin: 0 !important;
  text-align: center;
}
.balam-petty-receipt-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  margin-top: 22px;
}
.balam-petty-receipt-thumb {
  align-items: center;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  color: #333;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  height: 140px;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  text-decoration: none;
  width: 140px;
}
.balam-petty-receipt-thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}
.balam-petty-receipt-slot-empty {
  background: #E5E5E5 !important;
  border: 2px dashed #cfcfcf !important;
  color: #959595 !important;
  cursor: pointer;
  font-size: 40px !important;
  font-weight: 700 !important;
}
.balam-petty-modal-receipt-form {
  display: block !important;
  margin: 0;
}
.balam-petty-modal-receipt-form.is-full {
  display: none;
}
@media (max-width: 900px) {
  .balam-petty-filters {
    grid-template-columns: 1fr !important;
  }
  .balam-petty-filters input[name="f_search"] {
    grid-column: 1 !important;
  }
  .balam-petty-filters .balam-input-lg {
    width: 100% !important;
  }
}
@media (max-width: 640px) {
  .balam-petty-detail-grid {
    grid-template-columns: 1fr;
  }
  .balam-petty-receipts-dialog {
    padding: 22px 18px 28px !important;
  }
  .balam-petty-receipt-thumb {
    height: 124px;
    width: 124px;
  }
}
.balam-warranty-empty-media {
  color: #959595;
  font-size: 13px;
}
.balam-warranty-edit-header {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 22px;
}
.balam-warranty-summary-grid {
  display: grid;
  font-size: 14px;
  gap: 14px 36px;
  grid-template-columns: 1fr 1fr;
}
.balam-warranty-edit-items-table {
  margin-top: 0;
  table-layout: fixed;
  width: 100%;
}
.balam-warranty-edit-items-table th:nth-child(1), .balam-warranty-edit-items-table td:nth-child(1), .balam-warranty-edit-items-table th:nth-child(2), .balam-warranty-edit-items-table td:nth-child(2) {
  width: 33%;
}
.balam-warranty-edit-items-table th:nth-child(3), .balam-warranty-edit-items-table td:nth-child(3), .balam-warranty-edit-items-table th:nth-child(4), .balam-warranty-edit-items-table td:nth-child(4) {
  width: 17%;
}
.balam-warranty-status-grid {
  align-items: end;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
}
.balam-warranty-status-grid select {
  width: 100%;
}
.balam-warranty-status-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}
.balam-warranty-management-card {
  margin: 0;
  padding: 22px;
}
.balam-warranty-management-textarea {
  box-sizing: border-box;
  margin-top: 12px;
  min-height: 90px;
  width: 100%;
}
.balam-warranty-success-msg {
  color: #388e3c;
  font-size: 12px;
  margin: 8px 0 0;
}
.balam-warranty-finalize-help {
  color: #333;
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px;
}
.balam-project-col-project {
  width: 16%;
}
.balam-projects-content .balam-front-table td[data-label="Proyecto"] strong {
  text-transform: uppercase;
}
.balam-project-col-client {
  width: 24%;
}
.balam-project-col-products {
  width: 15%;
}
.balam-project-col-comment {
  width: 14%;
}
.balam-project-col-status {
  width: 12%;
}
.balam-project-col-dates {
  width: 13%;
}
.balam-project-col-actions {
  width: 6%;
}
.balam-project-comment-cell {
  font-size: 12px;
}
.balam-btn-disabled-soft {
  opacity: .7;
  pointer-events: none;
}
.balam-btn-disabled-muted {
  opacity: .85;
  pointer-events: none;
}
.balam-project-empty-mark {
  opacity: .55;
}
.balam-project-modal-fields {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.balam-project-conclude-note {
  min-height: 90px;
}
.balam-po-products-heading {
  margin-top: 28px;
}
.balam-po-product-picker {
  align-items: flex-end;
  display: flex;
  flex-wrap: nowrap;
  gap: 12px !important;
  margin-bottom: 20px;
}
.balam-po-product-field {
  flex: 1;
}
.balam-po-product-select {
  width: 100%;
}
.balam-po-product-qty-field {
  flex: 0 0 140px;
  text-align: center;
}
.balam-po-product-qty-input {
  max-width: 100%;
  text-align: center;
  width: 100%;
}
.balam-po-product-add {
  align-self: flex-end;
}
.balam-po-summary-row {
  background: #ececec;
}
.balam-preinvoice-table-head, .balam-preinvoice-cell-center {
  text-align: center;
}
.balam-preinvoice-qty-group {
  justify-content: center;
}
.balam-preinvoice-price-input {
  max-width: 100px;
  text-align: center;
  width: 100%;
}
.balam-preinvoice-summary-row {
  background: #ececec;
}
.balam-preinvoice-summary-row-light {
  background: #fff;
}
.balam-preinvoice-summary-value {
  font-size: 16px;
}
.balam-preinvoice-discount-toggle {
  align-items: center;
  display: flex;
  gap: 8px;
}
.balam-preinvoice-discount-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.balam-preinvoice-discount-input {
  max-width: 80px;
  padding: 6px 10px !important;
}
.balam-proof-delete-modal {
  z-index: 10050;
}
.balam-shipment-date-text {
  display: inline-block;
  white-space: nowrap !important;
}
.balam-carrier-text--tight {
  margin-left: 2px;
}
.balam-inline-form {
  display: inline-block;
}
.balam-billing-header {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 18px;
}
.balam-billing-title-block {
  min-width: 0;
}
.balam-billing-note {
  color: #333;
  font-size: 13px;
  margin-top: 8px;
}
.balam-billing-env-badge.is-production, .balam-billing-validation-badge.is-fail {
  background: #ffeaea;
  border: 1px solid #f1b1b1;
  color: #b12f2f;
}
.balam-billing-env-badge.is-sandbox, .balam-billing-validation-badge.is-ok {
  background: #e9f8ea;
  border: 1px solid #b9e4c0;
  color: #217a32;
}
.balam-billing-provider-text {
  font-size: 19px !important;
}
.balam-billing-toolbar-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}
.balam-billing-row-selected {
  outline: 2px solid #4a7de1;
  outline-offset: -2px;
}
.balam-billing-detail-head {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 16px;
}
.balam-billing-detail-note {
  color: #333;
  font-size: 13px;
  margin-top: 7px;
}
.balam-billing-grid {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 1.1fr 1.4fr;
}
.balam-billing-stats {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}
.balam-billing-stat {
  background: linear-gradient(180deg, #fff, #E5E5E5);
  border: 2px solid #e7e7e7;
  border-radius: 22px;
  padding: 18px 20px;
}
.balam-billing-stat strong {
  color: #6f6f6f;
  display: block;
  font-size: 12px;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.balam-billing-stat span {
  color: #1b1b1b;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.balam-billing-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.balam-billing-toolbar input, .balam-billing-toolbar select {
  min-width: 180px;
}
.balam-billing-table code {
  font-size: 11px;
}
.balam-billing-checklist {
  display: grid;
  gap: 10px;
}
.balam-billing-check {
  background: #fff;
  border: 2px solid #ededed;
  border-radius: 16px;
  font-size: 13px;
  padding: 12px 14px;
}
.balam-billing-check.ok {
  background: #f4fff5;
  border-color: #b9e4c0;
}
.balam-billing-check.fail {
  background: #fff5f5;
  border-color: #f1b1b1;
}
.balam-billing-inline-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.balam-billing-inline-list .balam-block-card {
  margin: 0;
}
.balam-billing-inline-list--spaced {
  margin-bottom: 16px;
}
.balam-billing-info {
  color: #333;
  font-size: 13px;
  line-height: 1.7;
  margin-top: 8px;
}
.balam-billing-empty {
  border: 1px dashed #ddd;
  border-radius: 18px;
  color: #959595;
  padding: 18px;
  text-align: center;
}
.balam-billing-result {
  background: #E5E5E5;
  border: 2px solid #ddd;
  border-radius: 14px;
  margin-top: 14px;
  padding: 12px 14px;
}
.balam-billing-result.is-ok {
  background: #e9f8ea;
  border-color: #b9e4c0;
  color: #215f2b;
}
.balam-billing-result.is-fail {
  background: #fff1f1;
  border-color: #f1b1b1;
  color: #8b2626;
}
.balam-billing-subsection-spaced {
  margin-top: 22px;
}
.balam-backorders-card {
  background: #fff;
  border: 2px solid #e4e4e4;
  border-radius: 8px;
  padding: 14px 16px;
}
.balam-backorders-card-label {
  color: #959595;
  display: block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.balam-backorders-card strong {
  color: #333;
  display: block;
  font-size: 24px;
  line-height: 1;
}
.balam-backorders-filters .balam-backorder-date-filter {
  flex: 0 0 170px;
  max-width: 170px;
}
.balam-backorders-filters .balam-backorder-search-filter {
  flex: 0 0 220px;
  max-width: 220px;
}
.balam-backorders-table {
  background: #fff;
  border: 2px solid #ddd;
  border-collapse: separate;
  border-radius: 12px;
  border-spacing: 0;
  overflow: hidden;
}
.balam-backorders-table thead th {
  border: 0;
  text-align: center;
  vertical-align: middle;
}
.balam-backorders-table tbody td {
  border-bottom: 1px solid #ddd;
  border-right: 1px solid #ddd;
  vertical-align: middle;
}
.balam-backorders-table tbody tr:first-child td {
  border-top: 0;
}
.balam-backorders-table tbody tr:last-child td {
  border-bottom: 0;
}
.balam-backorders-table thead th:last-child, .balam-backorders-table tbody td:last-child {
  border-right: 0;
}
.balam-backorders-table td {
  text-align: center;
  vertical-align: middle;
}
.balam-backorders-table td:nth-child(2), .balam-backorders-table td:nth-child(3), .balam-backorders-table td:nth-child(6) {
  text-align: left;
}
.balam-backorder-client-stack {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 7px;
  line-height: 1.25;
}
.balam-backorder-client-stack strong {
  font-weight: 800;
}
.balam-backorder-client-stack > span:not(.balam-shipment-seller-badge) {
  font-weight: 500;
}
.balam-backorders-table .balam-shipment-seller-badge {
  align-items: center;
  background: color-mix(in srgb, var(--seller-color) 24%, #fff);
  border-radius: 999px;
  color: #333;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  gap: 7px;
  line-height: 1;
  max-width: 100%;
  padding: 8px 13px;
  width: max-content;
}
.balam-backorders-table .balam-seller-dot {
  background: var(--seller-color);
  border-radius: 999px;
  flex: 0 0 8px;
  height: 8px;
  width: 8px;
}
.balam-backorder-product-main {
  display: block;
  font-weight: 900;
  line-height: 1.25;
}
.balam-backorder-actions {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 7px;
  overflow: visible;
  position: relative;
}
.balam-backorder-actions .balam-btn {
  width: max-content;
}
.balam-backorder-status-form {
  display: flex;
  justify-content: center;
  margin: 0;
  overflow: visible;
  width: 164px;
}
.balam-backorder-status-form .balam-select {
  flex: 0 0 164px;
  max-width: 164px;
  width: 164px;
}
.balam-backorder-status-form .balam-select-trigger {
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  height: 34px;
  min-height: 34px;
  padding: 0 14px;
}
.balam-backorder-status-form .balam-select-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.balam-backorder-status-form .balam-select-panel {
  font-size: 12px;
}
.balam-backorder-status-select {
  width: 100%;
}
.balam-backorder-detail {
  background: #E5E5E5;
  border-radius: 8px;
  color: #959595;
  display: none;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
  padding: 8px 10px;
}
.balam-backorders-empty {
  align-items: center;
  color: #959595;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  min-height: 130px;
  text-align: center;
}
.balam-backorders-empty strong {
  color: #333;
  font-size: 16px;
  text-transform: uppercase;
}
.balam-backorders-empty span {
  font-size: 12px;
  max-width: 520px;
}
.balam-assembly-orders {
  width: 100%;
}
.balam-assembly-orders .balam-empty-state h3 {
  color: #333;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 18px;
  text-transform: none;
}
.balam-assembly-orders .balam-empty-state p {
  color: #959595;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  letter-spacing: 0;
  line-height: 1.4;
  margin: 0;
}
.balam-assembly-table th, .balam-assembly-table td {
  vertical-align: middle !important;
}
.balam-assembly-table th {
  text-align: center !important;
}
.balam-assembly-table th:nth-child(1), .balam-assembly-table td:nth-child(1) {
  text-align: center;
  width: 12%;
}
.balam-assembly-table th:nth-child(2), .balam-assembly-table td:nth-child(2) {
  width: 24%;
}
.balam-assembly-table th:nth-child(3), .balam-assembly-table td:nth-child(3) {
  width: 44%;
}
.balam-assembly-table th:nth-child(4), .balam-assembly-table td:nth-child(4) {
  text-align: center;
  width: 20%;
}
.balam-assembly-client {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.balam-assembly-client em {
  color: #959595;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.2;
}
.balam-assembly-client span {
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}
.balam-assembly-client small {
  background: #d7f0f7;
  border-radius: 999px;
  color: #333;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  max-width: 100%;
  padding: 5px 12px;
  width: max-content;
}
.balam-assembly-products-cell {
  color: #333;
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
}
.balam-assembly-commitment-row {
  margin: 0 0 12px;
  text-align: left;
}
.balam-assembly-commitment-row .balam-badge {
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-transform: none;
}
.balam-assembly-product-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 12px;
  text-align: left;
  text-transform: uppercase;
}
.balam-assembly-product-title span {
  color: #959595;
  font-size: 11px;
  font-weight: 700;
}
.balam-assembly-part {
  align-items: center;
  border-bottom: 1px solid #333;
  display: grid;
  gap: 1em;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  padding: .5em;
}
.balam-assembly-part:last-child {
  border-bottom: 0;
}
.balam-assembly-part input {
  accent-color: #44a620;
  height: 18px;
  width: 18px;
}
.balam-assembly-part strong {
  display: block;
  font-size: 12px;
  line-height: 1.35;
}
.balam-assembly-part small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  font-family: monospace;
  font-weight: 600;
}
.balam-assembly-part em {
  color: #b3261e;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.balam-assembly-part.is-missing input {
  accent-color: #b3261e;
}
.balam-assembly-status-actions {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.balam-assembly-completed-status {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.18;
  text-align: center;
}
.balam-assembly-completed-status .balam-badge {
  align-items: center;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  gap: 6px;
  max-width: 100%;
  text-transform: none;
  width: max-content;
}
.balam-assembly-completed-status > span:not(.balam-badge) {
  color: #333;
  display: block;
  font-size: 11px;
  margin-top: 5px;
  font-family: monospace;
  font-weight: 600;
}
.balam-mobile-inline-separator {
  margin: 0 4px;
}
.balam-carrier-destination--stacked {
  display: block;
  margin-bottom: 1em;
}
.balam-warehouse-status-badge {
  margin-bottom: 0;
}
.balam-warehouse-status-badge.is-with-meta {
  margin-bottom: 8px;
}
.balam-warehouse-status-badge.is-no-meta {
  margin-bottom: 0;
}
.balam-warehouse-status-badge--cancelled {
  display: inline-flex;
}
.balam-warehouse-status-badge--spaced {
  margin-bottom: 8px;
}
.balam-warehouse-status-badge--editor {
  margin-bottom: 10px;
}
.balam-warehouse-meta.is-visible {
  display: block;
}
.balam-warehouse-meta.is-hidden {
  display: none;
}
.balam-warehouse-meta--full {
  display: block;
  width: 100%;
}
.balam-warehouse-inline-row--compact {
  margin-top: 5px;
}
.balam-warehouse-inline-row--spaced {
  margin-top: 8px;
}
.balam-warehouse-inline-meta-wrap {
  display: block;
  margin-bottom: 10px;
  width: 100%;
}
.balam-warehouse-inline-full {
  display: block;
  width: 100%;
}
.balam-proof-thumb-wrap {
  margin-top: 8px;
}
/* Loaded shipment document indicator. */
.balam-shipment-doc-thumb {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 10px;
  border: 1px solid #333;
  border-radius: 1em;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  min-width: 60px;
  width: 60px;
  min-height: 75px;
  height: 75px;
  font: inherit;
  color: inherit;
}
.balam-shipment-doc-thumb:hover,
.balam-shipment-doc-thumb:focus-visible {
  border-color: #44a620;
  box-shadow: 0 2px 6px rgba(68, 166, 32, 0.18);
  outline: none;
}
.balam-shipment-doc-thumb:active {
  transform: translateY(1px);
}
.balam-shipment-doc-icon {
  display: block;
  width: 36px;
  height: 42px;
}
.balam-shipment-doc-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
}
.balam-formats-panel .balam-format-editor-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.balam-formats-panel .balam-format-products, .balam-formats-panel .balam-format-role-box {
  border: 2px solid #eee;
  border-radius: 12px;
  padding: 12px;
}
.balam-formats-panel .balam-format-definition-fields {
  padding: 0;
}
.balam-formats-panel .balam-format-products-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 80px 100px minmax(180px, 1fr) 140px 36px;
  margin-bottom: 8px;
}
.balam-formats-panel .balam-format-field-row {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(140px, 1fr) minmax(120px, 1fr) 140px 36px;
  margin-bottom: 8px;
}
.balam-formats-panel .balam-format-definition-modal {
  max-height: calc(100vh - 72px);
  max-width: none;
  overflow: auto;
  padding: 28px 32px;
  width: min(760px, calc(100vw - 48px));
}
.balam-formats-panel .balam-format-definition-modal .balam-format-editor {
  border: 0;
  margin: 0;
  padding: 0;
}
.balam-formats-panel .balam-format-definition-head {
  padding-right: 40px;
}
.balam-formats-panel .balam-format-modal-tabs {
  border-bottom: 2px solid #E5E5E5;
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
}
.balam-formats-panel .balam-format-modal-body {
  min-height: 300px;
}
.balam-formats-panel .balam-format-modal-panel {
  display: none;
  min-height: 300px;
}
.balam-formats-panel .balam-format-modal-panel.is-active {
  display: block;
}
.balam-formats-panel .balam-format-meta-row {
  display: grid;
  gap: 14px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.balam-formats-panel .balam-format-role-box {
  margin-top: 14px;
}
.balam-formats-panel .balam-format-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.balam-formats-panel .balam-format-roles label {
  align-items: center;
  display: inline-flex;
  flex-direction: row;
  gap: 6px;
  text-transform: none;
}
.balam-formats-panel .balam-format-roles input {
  width: auto;
}
.balam-formats-panel .balam-format-roles-spaced {
  margin-top: 10px;
}
.balam-formats-panel .balam-format-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.balam-formats-panel .balam-format-actions-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}
.balam-formats-panel .balam-formats-modal {
  max-height: calc(100vh - 72px);
  max-width: none;
  overflow: auto;
  padding: 28px 32px;
  width: min(1180px, calc(100vw - 48px));
}
.balam-formats-panel .balam-formats-modal-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-right: 34px;
}
.balam-formats-panel .balam-format-muted {
  color: #959595;
  font-size: 12px;
}
.balam-formats-panel .balam-format-manage-name {
  align-items: center;
  display: flex;
  gap: 10px;
}
.balam-formats-panel .balam-format-inline-form {
  display: inline;
}
.balam-formats-panel .balam-format-thumb-small {
  height: 52px;
  width: 42px;
}
.balam-formats-panel .balam-format-thumb-lines-small {
  gap: 4px;
  width: 26px;
}
.balam-formats-panel .balam-format-modal-actions-bar {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 10px;
}
@media (max-width: 780px) {
  .balam-formats-panel .balam-format-editor-grid, .balam-formats-panel .balam-format-products-row, .balam-formats-panel .balam-format-field-row {
    grid-template-columns: 1fr;
  }
  .balam-formats-panel .balam-format-products-row button, .balam-formats-panel .balam-format-field-row button {
    width: 100%;
  }
  .balam-formats-panel .balam-formats-actions {
    justify-content: flex-start;
  }
}
.balam-custom-scroll::-webkit-scrollbar {
  width: 6px;
}
.balam-custom-scroll::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}
.balam-custom-scroll::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}
.balam-custom-scroll::-webkit-scrollbar-thumb:hover {
  background: #bbb;
}
.balam-supplier-preinvoice-results {
  background: #fff;
  border: 2px solid #E5E5E5;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, .1);
  left: 0;
  max-height: 250px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 120;
}
.balam-supplier-preinvoice-result {
  border-bottom: 1px solid #f5f5f5;
  color: #333;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 18px;
  text-transform: uppercase;
}
.balam-supplier-preinvoice-result:hover {
  background: #f9f9f9;
  color: #333;
}
.balam-supplier-preinvoice-result:last-child {
  border-bottom: 0;
}
.balam-supplier-preinvoice-badge {
  align-items: center;
  cursor: default;
  display: inline-flex;
  gap: 10px;
  text-transform: none;
}
.balam-supplier-preinvoice-remove {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  opacity: .65;
  padding: 0;
}
.balam-supplier-preinvoice-remove:hover {
  opacity: 1;
}
.balam-suppliers-entry-submit {
  min-width: 180px;
}
.balam-suppliers-inline-loader {
  animation: balamSupplierSpin .8s linear infinite;
  border: 2px solid #d8dde3;
  border-radius: 50%;
  border-top-color: #3572dd;
  height: 18px;
  width: 18px;
}
.balam-supplier-photos-open {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-width: 80px;
  white-space: nowrap;
}
.balam-supplier-entry-folio-cell {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.balam-supplier-entry-delete-form {
  margin: 0;
}
@media (min-width: 769px) {
  .balam-front-table.balam-supplier-entries-table .balam-supplier-entry-received-label, .balam-front-table.balam-supplier-entries-table .balam-supplier-entry-presented-label {
    display: none;
  }
}
.balam-supplier-popup-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.balam-supplier-popup-grid .balam-photo-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
.balam-supplier-zoom-nav {
  align-items: center;
  background: #fff;
  border: 2px solid #333;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  color: #333;
  cursor: pointer;
  display: flex;
  font-size: 18px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  opacity: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity .22s ease, filter .22s ease, transform .22s ease;
  width: 36px;
  z-index: 2;
}
.balam-supplier-zoom-nav:hover {
  background: #f1f1f1;
}
.balam-supplier-zoom-nav.prev {
  left: 10px;
}
.balam-supplier-zoom-nav.next {
  right: 10px;
}
.balam-supplier-zoom-nav.is-faded {
  filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) scale(.92);
}
.balam-suppliers-filter-concept {
  width: 315px;
}
.balam-suppliers-list-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 20px;
}
@media (max-width: 980px) {
  .balam-suppliers-inline-item {
    flex-basis: 56px;
    height: 56px;
    width: 56px;
  }
  .balam-supplier-popup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .balam-suppliers-entry-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
}
@media (max-width: 600px) {
  .balam-supplier-popup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .balam-suppliers-filter-date, .balam-suppliers-filter-supplier, .balam-suppliers-filter-type, .balam-suppliers-filter-concept {
    width: 100%;
  }
}
.balam-preinvoice-edit-content .balam-preinvoice-header-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.balam-preinvoice-edit-content .balam-preinvoice-client-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}
.balam-quote-form .balam-quote-item-type {
  margin-top: 4px;
}
.balam-quote-form .balam-quote-remove-cell {
  background: transparent !important;
  text-align: center;
}
.balam-quote-form #balam-products-table tbody > tr:hover > td, .balam-quote-form #balam-products-table tbody > tr:hover > td.balam-quote-remove-cell {
  background-color: #c5f5c5 !important;
}
.balam-quote-form .balam-quote-discount-amount {
  max-width: 80px;
  padding: 6px 10px !important;
}
.balam-quote-form .balam-quote-secondary-action {
  margin-top: 10px;
}
.balam-reports-wrapper .reports-card-spacing-top {
  margin-top: 20px;
}
.balam-reports-wrapper .reports-card-spacing-bottom {
  margin-bottom: 20px;
}
.balam-reports-wrapper .reports-filter-form {
  align-items: flex-end;
  margin-bottom: 10px;
}
.balam-reports-wrapper .reports-filter-field-seller {
  min-width: 220px;
}
.balam-reports-wrapper .reports-filter-field-type {
  min-width: 180px;
}
.balam-reports-wrapper .reports-filter-field-client {
  min-width: 240px;
}
.balam-reports-wrapper .reports-filter-field-category {
  min-width: 220px;
}
.balam-reports-wrapper .reports-filter-field-product {
  min-width: 260px;
}
.balam-reports-wrapper .reports-filter-field-status {
  min-width: 220px;
}
.balam-reports-wrapper .reports-chart-title {
  margin-top: 24px;
}
.balam-reports-wrapper .reports-grid-top-spacing {
  margin-top: 10px;
}
.balam-reports-wrapper .reports-coverage-metrics {
  gap: 16px;
  margin-top: 14px;
}
.balam-reports-wrapper .reports-three-column-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.balam-reports-wrapper .reports-coverage-metrics .reports-metric-card {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}
.balam-reports-wrapper .reports-table-no-top-margin {
  margin-top: 0;
}
.balam-reports-wrapper .reports-coverage-summary-table th:nth-child(n + 3), .balam-reports-wrapper .reports-coverage-summary-table td:nth-child(n + 3) {
  text-align: center;
}
.balam-reports-wrapper .reports-table-total {
  margin-top: 12px;
}
.balam-reports-wrapper .reports-help-copy {
  color: #333;
  line-height: 1.45;
  margin: 0 0 14px;
}
.balam-reports-wrapper .reports-section-spacing {
  margin-top: 18px;
}
.balam-reports-wrapper .reports-subtitle-spacing {
  margin-bottom: 8px;
}
.balam-reports-wrapper .reports-metric-card {
  margin-top: 0;
  padding: 14px 16px;
}
.balam-reports-wrapper .reports-metric-label {
  color: #333;
  display: block;
  font-size: 12px;
  text-transform: uppercase;
}
.balam-reports-wrapper .reports-metric-value {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  margin-top: 8px;
}
.balam-reports-wrapper .reports-client-chart-card {
  margin-top: 16px;
  padding-bottom: 8px;
  padding-top: 8px;
}
.balam-reports-wrapper .reports-client-chart-title {
  margin-bottom: 6px;
  margin-top: 0;
}
.balam-reports-wrapper .reports-empty-copy {
  color: #959595;
  font-size: 12px;
  padding: 6px 0;
}
.balam-reports-wrapper .reports-empty-copy-muted {
  color: #333;
}
.balam-reports-wrapper .reports-state-products-title {
  margin: 0 0 18px;
}
.balam-reports-wrapper .reports-logistics-filter-form {
  margin-bottom: 16px;
}
.balam-reports-wrapper .reports-logistics-debug-notice {
  background: #fff9df;
  border: 2px solid #f4c430;
  border-radius: 8px;
  color: #3a3a3a;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 16px;
  padding: 12px 16px;
}
.balam-reports-wrapper .reports-col-model {
  width: 75%;
}
.balam-reports-wrapper .reports-col-units {
  width: 25%;
}
.balam-reports-wrapper .reports-col-client {
  width: 55%;
}
.balam-reports-wrapper .reports-col-total {
  width: 25%;
}
.balam-reports-wrapper .reports-col-orders {
  width: 20%;
}
.balam-reports-wrapper .reports-cell-padded {
  padding: 8px 10px;
}
.balam-reports-wrapper .reports-total-model, .balam-reports-wrapper .reports-total-client {
  padding: 10px;
  width: 55%;
}
.balam-reports-wrapper .reports-total-units, .balam-reports-wrapper .reports-total-total {
  padding: 10px;
  width: 25%;
}
.balam-reports-wrapper .reports-total-orders {
  padding: 10px;
  width: 20%;
}
.balam-reports-wrapper .reports-pie-column {
  align-items: center;
  display: flex;
  justify-content: center;
}
.balam-reports-wrapper .reports-pie-wrap {
  aspect-ratio: 1 / 1;
  max-width: 520px;
  position: relative;
  width: 100%;
}
.balam-reports-wrapper .reports-pie-canvas {
  height: 100%;
  width: 100%;
}
.balam-reports-wrapper .reports-pie-legend {
  font-size: 12px;
  line-height: 1.25;
}
.balam-report-products-map-layout {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 252px;
}
.balam-report-products-global {
  background: #fff;
  border: 2px solid #dfe7db;
  border-radius: 10px;
  margin-top: 12px;
  overflow: hidden;
}
.balam-report-products-global-head {
  background: #50b428;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 9px 11px;
}
.balam-report-products-global-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.balam-report-products-global-item {
  align-items: center;
  border-bottom: 2px solid #E5E5E5;
  border-right: 2px solid #E5E5E5;
  color: #333;
  display: grid;
  font-size: 11px;
  gap: 8px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  padding: 8px 10px;
}
.balam-report-products-global-item:nth-child(3n) {
  border-right: 0;
}
.balam-report-products-global-item:nth-last-child(-n+3) {
  border-bottom: 0;
}
.balam-report-products-global-item em {
  align-items: center;
  background: #edf1ed;
  border-radius: 999px;
  color: #333;
  display: inline-flex;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  height: 18px;
  justify-content: center;
  width: 18px;
}
.balam-report-products-global-item span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.balam-report-products-global-item strong {
  font-size: 11px;
}
.balam-report-products-map-main {
  min-width: 0;
}
.balam-report-products-map-stage {
  aspect-ratio: 2029 / 1420;
  background: linear-gradient(180deg, #f8faf8 0%, #f1f4f1 100%);
  border: 2px solid #E5E5E5;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  width: 100%;
}
.balam-report-products-map-stage img {
  box-sizing: border-box;
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}
.balam-report-products-map-markers {
  inset: 0;
  position: absolute;
  z-index: 2;
}
.balam-report-products-map-marker {
  align-items: center;
  background: radial-gradient(circle at 30% 30%, #76a9ff 0%, #2e73ea 58%, #0f53c8 100%);
  border: 2px solid rgba(255, 255, 255, .92);
  border-radius: 999px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
  color: #fff;
  display: flex;
  font-size: 10px;
  font-weight: 800;
  justify-content: center;
  position: absolute;
  transform: translate(-50%, -50%);
}
.balam-report-products-map-label {
  background: rgba(255, 255, 255, .96);
  border: 1px solid #d6ddd6;
  border-radius: 999px;
  color: #333;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 4px 8px;
  position: absolute;
  transform: translate(-50%, calc(-100% - 8px));
  white-space: nowrap;
  z-index: 3;
}
.balam-report-products-map-empty {
  align-items: center;
  color: #333;
  display: flex;
  font-size: 13px;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: absolute;
  text-align: center;
  z-index: 4;
}
.balam-report-products-map-legend {
  align-items: center;
  color: #333;
  display: flex;
  font-size: 12px;
  gap: 10px;
  margin-top: 10px;
}
.balam-report-products-map-legend span {
  align-items: center;
  display: inline-flex;
  gap: 7px;
}
.balam-report-products-map-legend i {
  background: #2e73ea;
  border-radius: 999px;
  display: inline-block;
  height: 10px;
  width: 10px;
}
.balam-report-products-ranking {
  background: #fff;
  border: 2px solid #E5E5E5;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}
.balam-report-products-ranking .ranking-title {
  background: #dfdfdf;
  border-bottom: 2px solid #E5E5E5;
  flex: 0 0 auto;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 13px;
}
.balam-report-products-ranking .ranking-header {
  background: #fff;
  border-bottom: 2px solid #E5E5E5;
  color: #333;
  display: grid;
  font-size: 9px;
  font-weight: 800;
  grid-template-columns: minmax(0, 1fr) 58px;
  line-height: 1.08;
  text-transform: uppercase;
}
.balam-report-products-ranking .ranking-header span {
  padding: 7px 9px;
}
.balam-report-products-ranking .ranking-header span:last-child {
  border-left: 2px solid #E5E5E5;
  text-align: center;
}
.balam-report-products-ranking .ranking-list {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  overflow: visible;
}
.balam-report-products-ranking .ranking-item {
  align-items: center;
  border-top: 2px solid #f0f0f0;
  display: grid;
  flex: 1 1 0;
  font-size: 11px;
  gap: 6px;
  grid-template-columns: 26px minmax(0, 1fr) 58px;
  min-height: 0;
  overflow: hidden;
  padding: 7px 0 7px 9px;
}
.balam-report-products-ranking .ranking-item:first-child {
  border-top: 0;
}
.balam-report-products-ranking .ranking-rank {
  align-items: center;
  background: #edf1ed;
  border-radius: 999px;
  color: #333;
  display: inline-flex;
  font-size: 10px;
  font-weight: 800;
  height: 25px;
  justify-content: center;
  width: 25px;
}
.balam-report-products-ranking .ranking-content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
}
.balam-report-products-ranking .ranking-content strong {
  color: #333;
  font-size: 11px;
  line-height: 1.1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.balam-report-products-ranking .ranking-content span {
  color: #333;
  font-size: 10px;
  line-height: 1.08;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.balam-report-products-ranking .ranking-total {
  align-items: center;
  border-left: 2px solid #E5E5E5;
  color: #333;
  display: flex;
  font-weight: 800;
  height: 100%;
  justify-content: center;
  padding: 0 8px;
  text-align: center;
}
.balam-report-products-ranking .ranking-empty {
  color: #333;
  font-size: 12px;
  padding: 16px;
}
@media (max-width: 1100px) {
  .balam-report-products-map-layout {
    grid-template-columns: 1fr;
  }
  .balam-report-products-ranking {
    height: auto;
  }
  .balam-report-products-ranking .ranking-item {
    flex: 0 0 auto;
  }
}
@media (max-width: 760px) {
  .balam-report-products-global-grid {
    grid-template-columns: 1fr;
  }
  .balam-report-products-global-item, .balam-report-products-global-item:nth-child(3n), .balam-report-products-global-item:nth-last-child(-n+3) {
    border-bottom: 2px solid #E5E5E5;
    border-right: 0;
  }
  .balam-report-products-global-item:last-child {
    border-bottom: 0;
  }
}
.balam-shipments-table .balam-shipment-col-prefactura {
  width: 8%;
}
.balam-shipments-table .balam-shipment-col-client {
  width: 19%;
}
.balam-shipments-table .balam-shipment-col-products {
  width: 15%;
}
.balam-shipments-table .balam-shipment-col-carrier {
  width: 14%;
}
.balam-shipments-table .balam-shipment-col-actions {
  width: 7%;
}
.balam-btn.balam-btn-waiting-assembly, .balam-btn.balam-btn-waiting-assembly:disabled {
  background: #c5f5c5;
  border-color: #c5f5c5;
  color: #50b428 !important;
  opacity: 1;
  text-transform: lowercase;
}
.balam-tracking-guide {
  color: #333;
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}
.balam-tracking-modal {
  max-height: 88vh;
  overflow: auto;
  width: min(820px, 92vw);
}
.balam-tracking-modal-header {
  align-items: flex-start;
  border-bottom: 2px solid #e1e1e1;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 12px;
}
.balam-tracking-muted {
  color: #333;
  font-size: 12px;
  margin-top: 3px;
}
.balam-tracking-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(250px, 0.86fr) minmax(300px, 1.14fr);
}
.balam-tracking-left {
  min-width: 0;
}
.balam-tracking-right {
  border-left: 2px solid #e4e4e4;
  max-height: 68vh;
  min-width: 0;
  overflow: auto;
  padding-left: 18px;
}
.balam-tracking-fields {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.balam-tracking-fields label {
  color: #959595;
  display: flex;
  flex-direction: column;
  font-size: 11px;
  font-weight: 800;
  gap: 5px;
  text-transform: uppercase;
}
.balam-tracking-fields .balam-tracking-input {
  border: 2px solid #E5E5E5 !important;
  border-radius: 50em !important;
  font-size: 12px !important;
  font-weight: 600;
  height: 33px !important;
  padding: 0 18px !important;
}
.balam-tracking-message {
  background: #fff3cd;
  border: 2px solid transparent;
  border-radius: 8px;
  color: #654d03;
  font-size: 13px;
  margin-top: 12px;
  padding: 10px;
}
.balam-tracking-right h5 {
  font-size: 14px;
  margin: 0 0 12px;
}
.balam-tracking-timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.balam-tracking-event {
  font-size: 13px;
  line-height: 1.35;
  padding-left: 18px;
  position: relative;
}
.balam-tracking-event:before {
  background: #333;
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 2px;
  position: absolute;
  top: 4px;
  width: 8px;
}
.balam-tracking-event:after {
  background: #d8d8d8;
  bottom: -12px;
  content: "";
  left: 5px;
  position: absolute;
  top: 15px;
  width: 2px;
}
.balam-tracking-event:last-child:after {
  display: none;
}
.balam-tracking-event-time {
  color: #333;
  font-weight: 800;
}
.balam-tracking-event-desc {
  color: #333;
}
.balam-tracking-event-location {
  color: #333;
  font-size: 12px;
}
.balam-tracking-config-tabs {
  margin: 0 0 22px;
  overflow: visible;
}
.balam-tracking-auto-toggle {
  align-items: center;
  color: #333;
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}
.balam-tracking-auto-toggle input {
  height: 16px;
  width: 16px;
}
.balam-tracking-config-columns {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
}
.balam-tracking-config-columns p, .balam-tracking-config-columns li {
  color: #333;
  font-size: 12px;
  line-height: 1.35;
}
.balam-tracking-config-columns ul {
  margin: 0 0 14px 18px;
  padding: 0;
}
.balam-tracking-config-columns table {
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 14px;
  width: 100%;
}
.balam-tracking-config-columns th, .balam-tracking-config-columns td {
  border: 2px solid #ededed;
  padding: 7px;
  text-align: left;
  vertical-align: top;
}
.balam-tracking-config-columns code {
  font-family: monospace;
  font-weight: 700;
}
.balam-gallery-zoom-nav {
  align-items: center;
  background: #fff;
  border: 2px solid #333;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  color: #333;
  cursor: pointer;
  display: flex;
  filter: blur(0);
  font-size: 28px;
  font-weight: 700;
  height: 48px;
  justify-content: center;
  line-height: 1;
  min-width: 48px;
  opacity: 1;
  transition: opacity .22s ease, filter .22s ease, transform .22s ease;
  width: 48px;
}
.balam-gallery-zoom-nav:hover {
  background: #f1f1f1;
}
.balam-gallery-zoom-nav.is-faded {
  filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transform: scale(.92);
}
.balam-warehouse-date-input {
  font-size: 14.08px !important;
  line-height: 1.1 !important;
}
@media (max-width: 800px) {
  .balam-tracking-layout {
    grid-template-columns: 1fr;
  }
  .balam-tracking-right {
    border-left: 0;
    border-top: 2px solid #e4e4e4;
    max-height: none;
    padding-left: 0;
    padding-top: 16px;
  }
  .balam-tracking-fields, .balam-tracking-detail-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 800px) {
  .balam-tracking-config-tabs {
    overflow-x: auto;
    overflow-y: hidden;
  }
  .balam-tracking-config-columns {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .balam-billing-grid, .balam-billing-stats, .balam-billing-inline-list {
    grid-template-columns: 1fr;
  }
  .balam-preinvoices-table tr td:nth-of-type(4) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    pointer-events: none !important;
  }
}
@media (max-width: 900px) {
  .balam-backorders-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .balam-backorders-filters .balam-backorder-date-filter, .balam-backorders-filters .balam-backorder-search-filter, .balam-backorders-filters select {
    flex: 1 1 100%;
    max-width: none;
  }
}
@media (max-width: 720px) {
  .balam-assembly-status-actions {
    align-items: flex-start;
  }
  .balam-assembly-table th:nth-child(n), .balam-assembly-table td:nth-child(n) {
    text-align: left;
    width: auto;
  }
}
.balam-suppliers-manager-content {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .15);
  max-width: 95%;
  padding: 30px;
  position: relative;
  width: 850px;
}
.balam-suppliers-modal-close {
  background: none;
  border: 0;
  color: #999;
  cursor: pointer;
  font-size: 24px;
  position: absolute;
  right: 15px;
  top: 15px;
}
.balam-suppliers-manager-heading {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}
.balam-suppliers-list-scroll {
  max-height: 500px;
  overflow-y: auto;
  padding-right: 15px;
}
.balam-task-calendar-notice {
  margin-bottom: 16px;
}
.balam-vacation-days-head {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 0 0 20px;
}
.balam-vacation-days-head h3 {
  color: #333;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
}
.balam-vacation-days-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}
.balam-vacation-days-notice {
  margin-bottom: 16px;
}
.balam-vacation-days-table input[type="number"] {
  text-align: center;
  width: 92px !important;
}
.balam-vacation-days-table input[type="date"] {
  font-size: 12px;
  font-weight: 800;
  width: 150px !important;
}
.balam-vacation-mini-list {
  color: #333;
  display: grid;
  font-size: 11px;
  font-weight: 800;
  gap: 4px;
  line-height: 1.25;
}
.balam-vacation-mini-list span {
  display: block;
}
.balam-vacation-empty {
  color: #888;
  font-weight: 800;
}
@media (max-width: 760px) {
  .balam-vacation-days-head {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin-bottom: 14px !important;
  }
  .balam-vacation-days-actions, .balam-vacation-days-actions select, .balam-vacation-days-table, .balam-vacation-days-table tbody {
    max-width: none !important;
    width: 100% !important;
  }
  .balam-vacation-days-table, .balam-vacation-days-table tbody {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    margin: 0 !important;
  }
  .balam-vacation-days-table thead {
    display: none !important;
  }
  .balam-vacation-days-table tbody tr {
    background: #fff !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    display: grid !important;
    gap: 8px 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 0 !important;
    max-width: none !important;
    padding: 12px !important;
    width: 100% !important;
  }
  .balam-vacation-days-table tbody td {
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
    font-size: 10px !important;
    gap: 3px !important;
    line-height: 1.2 !important;
    min-width: 0 !important;
    padding: 0 !important;
    text-align: left !important;
    width: 100% !important;
  }
  .balam-vacation-days-table tbody td::before {
    color: #888 !important;
    content: attr(data-label) !important;
    display: block !important;
    font-size: 8px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-transform: uppercase !important;
  }
  .balam-vacation-days-table tbody td:first-child, .balam-vacation-days-table tbody td:nth-child(4), .balam-vacation-days-table tbody td:nth-child(8) {
    grid-column: 1 / -1 !important;
  }
  .balam-vacation-days-table tbody td:first-child strong {
    font-size: 13px !important;
    line-height: 1.15 !important;
    overflow-wrap: anywhere !important;
  }
  .balam-vacation-days-table tbody td:nth-child(5), .balam-vacation-days-table tbody td:nth-child(6), .balam-vacation-days-table tbody td:nth-child(7) {
    align-items: center !important;
    background: #f5f5f5 !important;
    border-radius: 8px !important;
    justify-content: center !important;
    min-height: 38px !important;
    text-align: center !important;
  }
  .balam-vacation-days-table input[type="date"], .balam-vacation-days-table input[type="number"] {
    box-sizing: border-box !important;
    height: 34px !important;
    margin: 0 !important;
    max-width: none !important;
    min-width: 0 !important;
    width: 100% !important;
  }
}
.balam-task-calendar-list-items {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
  width: 100%;
}
.balam-task-calendar-list-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin: 0 0 14px;
}
.balam-task-calendar-list-head .balam-subsection-title {
  margin: 0;
}
.balam-task-calendar-list-head .balam-subsection-title {
  display: none;
}
.balam-task-calendar-list-head .balam-btn {
  flex: 0 0 auto;
  width: max-content;
}
.balam-task-calendar-objective {
  color: #333;
  font-size: 12px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.balam-task-calendar-muted {
  color: #959595;
}
.balam-task-response-title {
  margin: 0 0 10px;
}
.balam-task-calendar-results-actions {
  border-top: 2px solid #E5E5E5;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 14px;
}
.balam-rrss-confirm-overlay {
  z-index: 10020;
}
.balam-rrss-paid-toggle {
  align-items: center;
  align-self: end;
  display: flex;
  min-height: 36px;
}
.balam-rrss-detail-tabs {
  border-bottom: 2px solid #E5E5E5;
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
}
.balam-rrss-detail-tab {
  appearance: none;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #959595;
  cursor: pointer;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  padding: 9px 12px 8px;
  text-transform: uppercase;
}
.balam-rrss-detail-tab.is-active {
  border-bottom-color: #333;
  color: #333;
}
.balam-rrss-detail-panel {
  display: none;
  min-height: 0;
}
.balam-rrss-detail-panel.is-active {
  display: block;
}
.balam-rrss-detail-panel[data-rrss-panel="form"].is-active {
  overflow: auto;
  padding-right: 4px;
}
.balam-rrss-recurrence-list {
  max-height: 430px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
}
.balam-rrss-recurrence-card {
  background: #fff;
  border: 2px solid #E5E5E5;
  border-radius: 8px;
  margin-bottom: 10px;
  padding: 12px 14px;
}
.balam-rrss-recurrence-card-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 10px;
}
.balam-rrss-recurrence-card-title {
  color: #333;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}
.balam-rrss-recurrence-card-sub {
  color: #959595;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  margin-top: 2px;
}
.balam-rrss-recurrence-data {
  display: grid;
  font-size: 12px;
  gap: 5px 10px;
  grid-template-columns: 118px 1fr;
  line-height: 1.25;
}
.balam-rrss-recurrence-data strong {
  color: #333;
  font-weight: 800;
}
.balam-rrss-recurrence-list .balam-btn.size-micro {
  min-width: 82px;
  text-align: center;
}
.balam-task-result-notice {
  margin-bottom: 16px;
}
.balam-task-actions-heading {
  text-align: center;
}
.balam-task-meta-label {
  color: #333;
  font-size: 11px;
  font-weight: 600;
}
.balam-task-inline-form {
  margin: 0;
}
.balam-task-form-modal {
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 48px);
  max-width: 760px;
  overflow: hidden;
  padding: 28px 32px 0;
  position: relative;
  width: 95%;
}
.balam-task-modal-close {
  background: none;
  border: 0;
  color: #888;
  cursor: pointer;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  padding: 10px;
  position: absolute;
  right: 20px;
  top: 20px;
}
.balam-task-modal-close:hover {
  color: #000;
}
.balam-task-modal-heading {
  flex: 0 0 auto;
  margin-bottom: 18px;
}
.balam-task-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}
.balam-task-form-scroll {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: 0 4px 18px;
}
.balam-task-form-grid {
  display: grid;
  gap: 12px 16px;
  grid-template-columns: 1fr 1fr;
}
.balam-task-form-label {
  display: block;
  margin-bottom: 6px;
  text-transform: uppercase;
}
.balam-task-user-select-container {
  display: none;
}
.balam-task-extra {
  background: #f4f4f4;
  border: 2px solid #eee;
  border-radius: 14px;
  display: none;
  padding: 14px 16px;
}
.balam-task-extra-grid {
  display: grid;
  gap: 10px 14px;
  grid-template-columns: 1fr 1fr;
}
.balam-task-form-full {
  grid-column: 1 / -1;
}
.balam-task-date-input {
  background: #fff;
  cursor: pointer;
}
.balam-task-objective {
  min-height: 58px;
}
.balam-task-rich-button {
  background: #fff;
  border: 1px solid #ddd;
  cursor: pointer;
  padding: 5px 10px;
}
.balam-task-rich-button.is-bold {
  font-weight: bold;
}
.balam-task-rich-button.is-italic {
  font-style: italic;
}
.balam-task-rich-divider {
  background: #ddd;
  margin: 0 5px;
  width: 1px;
}
.balam-task-editor-content {
  background: #fff;
  border: 2px solid #E5E5E5;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  font-size: 14px;
  max-height: 160px;
  min-height: 86px;
  outline: none;
  overflow-y: auto;
  padding: 15px;
}
.balam-purchase-orders-wrapper .balam-po-list-table {
  width: 100%;
  table-layout: fixed;
  min-width: 0;
}
.balam-purchase-orders-wrapper .balam-po-list-table th, .balam-purchase-orders-wrapper .balam-po-list-table td {
  white-space: normal;
  overflow-wrap: anywhere;
  vertical-align: middle;
}
.balam-purchase-orders-wrapper .balam-po-list-table th {
  text-align: center;
}
.balam-purchase-orders-wrapper .balam-po-list-table .col-folio {
  width: 12%;
}
.balam-purchase-orders-wrapper .balam-po-list-table .col-proveedor {
  width: 15%;
}
.balam-purchase-orders-wrapper .balam-po-list-table .col-productos {
  width: 35%;
}
.balam-purchase-orders-wrapper .balam-po-list-table .col-tipo-estatus {
  width: 16%;
}
.balam-purchase-orders-wrapper .balam-po-list-table .col-acciones {
  width: 14%;
}
.balam-purchase-orders-wrapper .balam-po-list-table .balam-mini-products li {
  white-space: normal;
  overflow: visible;
}
.balam-purchase-orders-wrapper .balam-po-items-wrap {
  width: 100%;
  overflow-x: auto;
  border: 2px solid #E5E5E5;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 25px;
}
.balam-purchase-orders-wrapper .balam-products-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: separate;
  border-spacing: 0;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 11px;
}
.balam-purchase-orders-wrapper .balam-products-table th {
  background: #333;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  padding: 15px 10px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  text-align: left;
  white-space: nowrap;
}
.balam-purchase-orders-wrapper .balam-products-table th:last-child {
  border-right: 0;
}
.balam-purchase-orders-wrapper .balam-products-table td {
  padding: 15px 10px;
  border-right: 2px solid #E5E5E5;
  border-bottom: 2px solid #E5E5E5;
  color: #333;
  vertical-align: middle;
}
.balam-purchase-orders-wrapper .balam-products-table td:last-child {
  border-right: 0;
}
.balam-purchase-orders-wrapper .balam-products-table tbody tr:last-child td {
  border-bottom: 0;
}
.balam-purchase-orders-wrapper .balam-products-table tbody tr:nth-child(even) {
  background: #fbfbfb;
}
.balam-purchase-orders-wrapper .balam-products-table tbody tr:hover {
  background: #f5f5f5;
}
.balam-purchase-orders-wrapper .balam-po-empty-row td {
  color: #959595;
  font-weight: 600;
  text-align: center;
  padding: 26px 14px;
}
.balam-po-related-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.balam-po-type-status {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-height: 100%;
}
.balam-po-type-status .balam-badge {
  max-width: 100%;
  white-space: normal;
  line-height: 1.2;
  justify-content: center;
}
.balam-purchase-orders-wrapper .balam-po-list-table td.col-tipo-estatus-cell, .balam-purchase-orders-wrapper .balam-po-list-table td.col-acciones-cell {
  text-align: center;
  vertical-align: middle;
}
@media (min-width: 761px) {
  .balam-purchase-orders-wrapper .balam-po-actions-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
  }
  .balam-purchase-orders-wrapper .balam-po-actions-grid .balam-po-confirm-form {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
    margin-top: 5px;
  }
}
.balam-purchase-orders-wrapper .balam-po-related-badges .status-neutral {
  background: #f1f1f1;
  color: #959595;
}
.balam-purchase-orders-wrapper .balam-po-related-folio {
  text-transform: uppercase;
}
.balam-purchase-orders-wrapper .balam-po-creator-badge {
  margin-top: 8px;
  max-width: none;
  white-space: nowrap;
  overflow: visible;
  text-transform: none !important;
}
.balam-purchase-orders-wrapper .balam-po-creator-badge.is-seller, .balam-purchase-orders-wrapper .balam-po-creator-badge.is-seller:first-child, .balam-purchase-orders-wrapper .balam-po-creator-badge.is-seller:first-child.is-active {
  background: color-mix(in srgb, var(--seller-color, #51b327) 26%, #fff) !important;
  color: #333 !important;
}
.balam-purchase-orders-wrapper .balam-po-creator-badge.is-seller::before, .balam-purchase-orders-wrapper .balam-po-creator-badge.is-seller:first-child::before, .balam-purchase-orders-wrapper .balam-po-creator-badge.is-seller:first-child.is-active::before {
  background: var(--seller-color, #51b327) !important;
}
.balam-po-form-view {
  width: 100%;
  box-sizing: border-box;
}
.balam-po-form-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px 18px !important;
  align-items: start;
}
.balam-po-form-grid .balam-input-lg, .balam-po-form-grid .balam-select {
  width: 100% !important;
  min-width: 0 !important;
}
.balam-po-form-grid .balam-suppliers-entry-concept {
  grid-column: span 2;
  position: relative;
}
.balam-po-form-grid .balam-po-grid-col, .balam-po-form-grid .balam-po-grid-spacer {
  grid-column: span 1;
}
.balam-po-check-field {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
}
.balam-po-form-view .balam-products-table, .balam-po-form-view .balam-po-items-table {
  min-width: 0 !important;
  width: 100%;
}
.balam-po-form-view .balam-po-items-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: visible;
  padding: 0;
}
.balam-po-items-table td {
  vertical-align: middle;
}
.balam-po-items-table th:first-child, .balam-po-items-table td:first-child {
  width: 46%;
}
.balam-po-items-table .balam-po-product-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  min-height: 100%;
}
.balam-po-items-table .balam-po-cell-center {
  text-align: center;
  vertical-align: middle;
}
.balam-po-items-table .balam-po-qty-input, .balam-po-items-table .balam-po-price-input {
  min-width: 0;
  width: 100%;
  max-width: 130px;
  padding: 0 12px;
  text-align: center;
}
.balam-po-items-table .balam-custom-num-input {
  width: 100%;
  max-width: 130px;
  margin: 0 auto;
}
.balam-po-product-type-label {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #c5f5c5;
  color: #2f8f22;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}
.balam-po-product-name {
  display: block;
  font-weight: 800;
  line-height: 1.25;
}
.balam-po-item-description {
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}
.balam-po-item-note {
  min-height: 44px !important;
  width: 100%;
  resize: vertical;
}
.balam-po-item-note-readonly {
  color: #333;
  font-size: 12px;
  line-height: 1.35;
}
.balam-po-line-total {
  font-weight: 700;
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
}
.balam-po-summary {
  display: flex;
  align-items: flex-start;
  gap: 50px;
  justify-content: space-between;
  margin-top: 20px;
}
.balam-po-special-note-wrap {
  flex: 1;
  min-width: 0;
}
.balam-po-special-note-wrap .balam-subsection-title {
  margin: 0 0 10px;
}
.balam-po-special-note-box {
  background: #fff;
  border: 2px solid #E5E5E5;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  box-sizing: border-box;
  overflow: hidden;
  margin-bottom: 18px;
}
.balam-po-special-note-box textarea {
  width: 100%;
  min-height: 58px;
  max-height: 58px;
  border: none !important;
  background: transparent;
  resize: none;
  font-size: 14px !important;
  font-weight: 400;
  padding: 1em 1.5em !important;
  box-sizing: border-box;
  line-height: 1.4;
  display: block;
  overflow: hidden;
}
.balam-po-totals {
  flex: 0 0 360px;
  display: flex;
  justify-content: flex-end;
}
.balam-po-totals .balam-quote-totals-table {
  width: 360px;
  min-width: 0 !important;
}
.balam-po-email-grid-copy .balam-po-email-recipient-card {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.balam-po-email-grid > div, .balam-po-email-preview {
  border: 2px solid #E5E5E5;
  border-radius: 14px;
  background: #E5E5E5;
  padding: 12px 14px;
}
.balam-po-email-preview {
  background: #fff;
  color: #333;
  font-size: 13px;
  line-height: 1.45;
}
.balam-po-email-preview > strong {
  display: block;
  margin-bottom: 8px;
  color: #333;
  text-transform: uppercase;
}
.balam-po-email-preview p {
  margin: 6px 0;
}
.balam-po-email-preview ul {
  margin: 10px 0;
  padding-left: 18px;
}
.balam-po-email-preview li span {
  font-weight: 800;
}
.balam-po-email-section-title {
  margin-top: 12px;
  color: #333;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.balam-po-email-products {
  list-style: none;
  margin: 8px 0 10px !important;
  padding: 0 !important;
}
.balam-po-email-products li {
  border-top: 1px solid #e5e5e5;
  padding: 8px 0;
}
.balam-po-email-products strong, .balam-po-email-products small {
  display: block;
}
.balam-po-email-products strong {
  color: #333;
  font-weight: 900;
}
.balam-po-email-products em {
  display: inline-block;
  margin-top: 3px;
  color: #333;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}
.balam-po-email-products small, .balam-po-email-note {
  color: #959595;
  font-size: 12px;
}
.balam-po-quote-results {
  position: absolute;
  z-index: 120;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: #c5f5c5;
  border: 1px solid #9adf9a;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
  max-height: 230px;
  overflow: auto;
  padding: 0;
}
.balam-po-quote-option {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid #a8e3a8;
  background: #c5f5c5;
  color: #333;
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.balam-po-quote-option strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #333;
}
.balam-po-quote-option span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.2;
  color: #333;
}
.balam-po-quote-option:hover, .balam-po-quote-option:focus {
  background: #bdf0bd;
  outline: none;
}
.balam-po-quote-option.is-empty {
  color: #959595;
  cursor: default;
  font-weight: 700;
}
.balam-company-readonly-modal {
  box-sizing: border-box;
  max-height: calc(100vh - 80px) !important;
  max-width: calc(100vw - 80px) !important;
  overflow-y: auto;
  width: 560px !important;
}
.balam-company-readonly-body {
  border-top: 2px solid #d9d9d9;
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 18px;
}
.balam-company-readonly-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 150px minmax(0, 1fr);
}
.balam-company-readonly-row strong {
  color: #959595;
  font-size: 12px;
  text-transform: uppercase;
}
.balam-company-readonly-row span {
  color: #333;
  font-size: 14px;
  font-weight: 800;
}
.balam-company-focus-overlay {
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 99999;
}
.balam-company-focus-modal {
  background: #fff;
  border-radius: 8px;
  box-sizing: border-box;
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  max-width: calc(100vw - 48px);
  overflow: hidden;
  padding: 34px 38px 38px;
  position: relative;
  width: calc(100vw - 48px);
}
.balam-company-focus-close {
  align-items: center;
  background: #e1e1e1;
  border: 0;
  border-radius: 999px;
  color: #333;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  font-weight: 900;
  height: 42px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 22px;
  top: 18px;
  width: 42px;
}
.balam-company-focus-body {
  height: 100%;
  min-height: 0;
}
.balam-company-focus-body > .balam-company-calendar {
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
}
.balam-company-focus-body .balam-company-toolbar {
  display: none;
}
.balam-company-focus-body .balam-company-month-head {
  padding-right: 52px;
}
.balam-company-focus-body .balam-company-maximize-btn {
  display: none;
}
.balam-company-focus-body .balam-company-feature-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: 100%;
  margin: 0;
  min-height: 0;
}
.balam-company-focus-body .balam-task-calendar-month {
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}
.balam-company-focus-body .balam-calendar-grid-wrap, .balam-company-focus-body .balam-calendar-grid {
  height: 100%;
}
.balam-company-focus-body .balam-calendar-grid td {
  height: auto;
}
.balam-company-delete-form {
  margin: 0;
}
.balam-company-delete-form[style*="block"] {
  display: inline-flex !important;
}
.balam-vacation-balance-note {
  background: #f5f5f5;
  border-radius: 8px;
  color: #959595;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  padding: 14px 18px;
}
.balam-vacation-balance-value {
  color: #333;
  text-align: right;
  white-space: nowrap;
}
.balam-vacation-panel {
  margin-top: 28px;
  padding-top: 0;
}
.balam-vacation-panel h4 {
  font-size: 24px;
  margin: 0 0 16px;
  text-transform: uppercase;
}
.balam-vacation-table th, .balam-vacation-table td {
  text-align: center;
}
.balam-vacation-request-kind {
  color: #333;
  font-family: monospace;
  font-size: 11px;
  font-weight: 600;
  margin-top: 5px;
  text-transform: uppercase;
}
.balam-vacation-evidence-stack {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}
.balam-vacation-evidence-form {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 0;
  flex-wrap: wrap;
}
.balam-vacation-approval-form {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  margin: 0;
}
.balam-vacation-delete-form {
  margin: 0;
}
.balam-vacation-delete-form .balam-btn {
  background: #fff !important;
  border: 2px solid #E5E5E5 !important;
  color: #333 !important;
  font-size: 8px !important;
  font-weight: 800 !important;
  height: auto !important;
  line-height: 1 !important;
  min-height: 0 !important;
  padding: 3px 7px !important;
}
.balam-vacation-approval-label {
  color: #333;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .balam-dest-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .balam-shipment-address-columns {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .balam-shipment-transport-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .balam-shipment-transport-grid {
    grid-template-columns: 1fr;
  }
  .balam-company-toolbar, .balam-company-filter-form, .balam-company-actions {
    flex-wrap: wrap;
  }
  .balam-company-actions {
    justify-content: flex-start;
  }
  .balam-company-top-summary, .balam-company-top-event-list, .balam-company-feature-row, .balam-company-attendees {
    grid-template-columns: 1fr;
  }
  .balam-company-calendar .balam-calendar-grid td {
    padding: 40px 6px 8px;
  }
  .balam-company-day-event-summary {
    grid-template-columns: 18px minmax(0, 1fr) 10px;
    padding: 9px 8px;
  }
  .balam-company-day-event-detail {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .balam-po-form-grid {
    grid-template-columns: 1fr !important;
  }
  .balam-po-form-grid .balam-po-grid-col, .balam-po-form-grid .balam-po-grid-spacer, .balam-po-form-grid .balam-suppliers-entry-concept {
    grid-column: 1 / -1;
  }
  .balam-po-form-grid .balam-po-grid-spacer {
    display: none;
  }
  .balam-po-summary {
    flex-direction: column;
    gap: 18px;
  }
  .balam-po-totals {
    flex: 0 0 auto;
    width: 100%;
  }
  .balam-po-totals .balam-quote-totals-table {
    width: 100%;
  }
  .balam-products-inputs {
    flex-wrap: wrap !important;
  }
  .balam-products-inputs .balam-field, .balam-products-inputs button {
    flex: 1 1 100% !important;
  }
}
.balam-system-mail {
  padding: 22px 0 8px;
}
.balam-system-parameters input:not([type="checkbox"]):not([type="hidden"]), .balam-system-parameters select, .balam-system-parameters textarea {
  box-sizing: border-box !important;
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid #cfcfcf !important;
  border-radius: 12px !important;
  background: #fff;
  color: #333;
  font-size: 12px !important;
  font-weight: 600;
}
.balam-system-parameters input:not([type="checkbox"]):not([type="hidden"]), .balam-system-parameters select {
  padding: 10px 14px !important;
}
.balam-system-parameters textarea {
  padding: 12px 14px !important;
}
.balam-system-parameters label > span, .balam-system-parameters .balam-stack > span {
  color: #959595;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}
.balam-system-parameters label, .balam-system-parameters .balam-stack {
  gap: 7px;
}
.balam-system-parameters .balam-input-lg:focus, .balam-system-parameters select:focus, .balam-system-parameters textarea:focus {
  border-color: #50b428 !important;
  box-shadow: 0 0 0 3px rgba(80, 180, 40, .12);
  outline: 0;
}
.balam-mail-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e4e4e4;
}
.balam-mail-overview .balam-section-title {
  margin: 0 0 6px;
}
.balam-mail-overview p, .balam-mail-panel p {
  margin: 0;
  color: #333;
  font-size: 13px;
  line-height: 1.45;
}
.balam-mail-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  border-bottom: 1px solid #e4e4e4;
  padding-bottom: 18px;
}
.balam-mail-template-grid .balam-mail-panel {
  border-bottom: 0;
  min-width: 0;
}
.balam-mail-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.balam-mail-template-grid .balam-mail-panel-head {
  min-height: 76px;
}
.balam-mail-template-grid .balam-mail-panel label + label {
  margin-top: 12px;
}
.balam-mail-template-grid textarea.balam-input-lg {
  min-height: 150px;
}
.balam-mail-autosave-status {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #303033;
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 800;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}
.balam-system-drive {
  padding: 22px 0 8px;
}
.balam-drive-overview {
  padding: 0 0 22px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e4e4e4;
}
.balam-drive-front-panel {
  padding: 22px 0 0;
  margin-top: 24px;
  border-top: 1px solid #e4e4e4;
}
.balam-drive-front-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.balam-drive-front-head .balam-section-title, .balam-drive-front-head .balam-subsection-title {
  margin: 0 0 6px;
}
.balam-drive-front-head p, .balam-drive-card p {
  margin: 0;
  color: #333;
  font-size: 13px;
  line-height: 1.45;
}
.balam-drive-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: #44a620;
  white-space: nowrap;
}
.balam-drive-grid {
  display: flex;
  flex-direction: column;
  margin-bottom: 18px;
  border-top: 1px solid #e4e4e4;
}
.balam-drive-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.1fr) minmax(280px, 1fr) minmax(190px, 220px);
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid #e4e4e4;
}
.balam-drive-card h4 {
  margin: 0 0 4px;
  color: #333;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}
.balam-drive-row-copy {
  min-width: 0;
}
.balam-drive-card form {
  margin: 0;
}
.balam-drive-card .balam-btn {
  width: 100%;
  justify-content: center;
}
.balam-drive-upload-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .2s ease, color .2s ease;
}
.balam-drive-upload-btn::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--drive-progress, 0%);
  background: #baf4bb;
  z-index: -1;
  transition: width .24s ease;
}
.balam-drive-upload-btn span {
  position: relative;
  z-index: 1;
}
.balam-drive-upload-btn.is-uploading {
  border-color: #44a620;
  color: #333;
  cursor: progress;
}
.balam-drive-upload-btn.is-uploading::before {
  background: #baf4bb;
}
.balam-drive-upload-btn.is-complete::before {
  background: #44d14d;
}
.balam-drive-autosave-status {
  display: none;
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: #303033;
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 800;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .2);
}
.balam-system-whatsapp, .balam-system-google-maps {
  padding: 22px 0 8px;
}
.balam-whatsapp-front-head, .balam-system-google-maps .balam-whatsapp-front-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e4e4e4;
}
.balam-whatsapp-front-head .balam-section-title, .balam-system-google-maps .balam-whatsapp-front-head .balam-section-title {
  margin: 0 0 6px;
}
.balam-whatsapp-front-head p, .balam-whatsapp-muted, .balam-system-google-maps .balam-whatsapp-front-head p, .balam-system-google-maps .balam-whatsapp-muted {
  margin: 0;
  color: #333;
  font-size: 13px;
  line-height: 1.45;
}
.balam-whatsapp-panel, .balam-system-google-maps .balam-whatsapp-panel {
  padding: 18px 0;
  border-bottom: 1px solid #e4e4e4;
}
.balam-whatsapp-panel h4, .balam-system-google-maps .balam-whatsapp-panel h4 {
  margin: 0 0 14px;
  color: #333;
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}
.balam-whatsapp-check, .balam-system-google-maps .balam-whatsapp-check {
  align-items: center;
  flex-direction: row !important;
  gap: 10px !important;
  min-height: 42px;
}
.balam-whatsapp-check input, .balam-system-google-maps .balam-whatsapp-check input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.balam-whatsapp-check span, .balam-system-google-maps .balam-whatsapp-check span {
  color: #333 !important;
  font-size: 12px !important;
  line-height: 1.3;
  text-transform: none !important;
}
.balam-whatsapp-actions, .balam-system-google-maps .balam-whatsapp-actions {
  display: flex;
  justify-content: flex-end;
  padding: 20px 0 6px;
}
.balam-whatsapp-log-table {
  border: 2px solid #E5E5E5;
  border-radius: 14px;
  overflow: hidden;
}
.balam-whatsapp-log-table > div {
  display: grid;
  grid-template-columns: 1.2fr .75fr .65fr .75fr .9fr 2fr;
  gap: 0;
  border-top: 1px solid #e4e4e4;
}
.balam-whatsapp-log-table > div:first-child {
  border-top: 0;
}
.balam-whatsapp-log-table span {
  padding: 11px 12px;
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}
.balam-whatsapp-log-table .is-head {
  background: #303033;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
}
.balam-system-google-maps .balam-google-key-help {
  margin-top: 16px;
  border: 2px solid #E5E5E5;
  border-radius: 14px;
  background: #E5E5E5;
  padding: 16px 18px;
}
.balam-system-google-maps .balam-google-key-help h5 {
  margin: 0 0 10px;
  color: #333;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.balam-system-google-maps .balam-google-key-help ol {
  margin: 0 0 12px 18px;
  padding: 0;
  color: #959595;
  font-size: 13px;
  line-height: 1.55;
}
.balam-system-google-maps .balam-google-key-help li {
  margin: 0 0 6px;
}
.balam-system-google-maps .balam-google-key-help code {
  display: inline-block;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  background: #fff;
  padding: 3px 7px;
  color: #333;
  font-size: 12px;
  font-weight: 800;
}
.balam-system-google-maps .balam-google-help-link {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #dbe9f2;
  color: #333;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 9px 13px;
  text-decoration: none;
  text-transform: uppercase;
}
.balam-system-google-maps .balam-google-api-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.balam-system-google-maps .balam-google-api-list span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e9f8e8;
  color: #319421;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  padding: 8px 12px;
  text-transform: uppercase;
}
@media (max-width: 980px) {
  .balam-mail-grid {
    grid-template-columns: 1fr;
  }
  .balam-mail-overview, .balam-mail-panel-head {
    display: block;
  }
  .balam-mail-autosave-pill {
    margin-top: 12px;
  }
  .balam-drive-status-grid, .balam-drive-credentials-grid {
    grid-template-columns: 1fr 1fr;
  }
  .balam-drive-card {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }
  .balam-whatsapp-grid, .balam-system-google-maps .balam-whatsapp-grid {
    grid-template-columns: 1fr 1fr;
  }
  .balam-whatsapp-log-table > div {
    grid-template-columns: 1fr;
  }
  .balam-whatsapp-log-table .is-head {
    display: none;
  }
}
@media (max-width: 760px) {
  .balam-mail-template-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .balam-drive-status-grid, .balam-drive-credentials-grid, .balam-whatsapp-grid, .balam-system-google-maps .balam-whatsapp-grid {
    grid-template-columns: 1fr;
  }
  .balam-drive-front-head, .balam-whatsapp-front-head, .balam-system-google-maps .balam-whatsapp-front-head {
    display: block;
  }
  .balam-drive-switch {
    margin-top: 12px;
  }
  .balam-whatsapp-actions .balam-btn, .balam-system-google-maps .balam-whatsapp-actions .balam-btn {
    width: 100%;
    justify-content: center;
  }
}
.balam-btn-minw-140 {
  min-width: 140px;
}
.balam-task-detail-modal {
  z-index: 999999;
}
.balam-task-detail-box {
  max-width: 900px;
  width: 95%;
  position: relative;
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .5);
}
.balam-task-detail-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  font-size: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-weight: 300;
  text-shadow: 0 0 10px rgba(255, 255, 255, .8);
}
.balam-task-detail-content {
  min-height: 200px;
  display: flex;
  flex-direction: column;
}
.balam-task-detail-loading, .balam-task-detail-error, .balam-task-detail-quote {
  padding: 40px;
  text-align: center;
  background: #fff;
}
.balam-task-detail-loading {
  width: 100%;
}
.balam-task-detail-loading-stage {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.balam-loader.balam-loader-lg {
  margin: auto;
  --size: 60px;
  --border: 6px;
}
.balam-task-detail-loading-text {
  margin-top: 15px;
  font-size: 12px;
  color: #999;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.balam-task-detail-error {
  color: red;
  font-weight: 700;
}
.balam-task-detail-message-media {
  display: flex;
  flex-direction: column;
  width: 100%;
}
.balam-task-detail-message-copy {
  padding: 30px 35px;
  background: #fff;
}
.balam-task-detail-message-desc {
  margin: 0;
  font-size: 13px;
  color: #959595;
  line-height: 1.6;
}
.balam-task-detail-message-image-wrap {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  max-height: 80vh;
  overflow: hidden;
}
.balam-task-detail-message-image {
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}
.balam-task-detail-quote-copy {
  font-size: 20px;
  color: #333;
  line-height: 1.5;
  max-width: 650px;
  margin: auto;
  font-weight: 500;
  font-family: "DM Sans", sans-serif;
}
.balam-task-detail-body {
  padding: 45px 35px;
  background: #fff;
}
.balam-task-detail-kicker-wrap {
  margin-bottom: 20px;
}
.balam-task-detail-kicker {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f0f0f0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: #333;
  margin-bottom: 10px;
}
.balam-task-detail-description {
  font-size: 15px;
  color: #333;
  line-height: 1.7;
  margin-bottom: 30px;
  min-height: 60px;
}
.balam-task-detail-empty {
  color: #999;
}
.balam-task-detail-meta-box {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 25px;
  font-size: 12px;
}
.balam-task-detail-meta-line {
  margin-bottom: 5px;
}
.balam-task-detail-footer-actions {
  display: flex;
  gap: 10px;
}
.balam-task-detail-pill-btn {
  border-radius: 20px;
}
.balam-task-detail-done {
  color: #4caf50;
  font-weight: 700;
}
.balam-rich-toolbar button {
  transition: all 0.2s ease;
  color: #959595;
}
.balam-rich-toolbar button:hover {
  background: #51b327 !important;
  color: #fff !important;
  border-color: #51b327 !important;
}
.balam-prospecting-log, .balam-prospecting-intro {
  margin-top: 12px;
}
.balam-prospecting-log-title, .balam-prospecting-intro-title {
  margin-bottom: 10px;
}
.balam-prospecting-log-copy, .balam-prospecting-intro-copy {
  margin: 0 0 12px;
  font-size: 12px;
  color: #333;
}
.balam-route-consult-summary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  font-size: 12px;
  margin-bottom: 16px;
}
.balam-route-consult-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 45vh;
  overflow: auto;
}
.balam-route-consult-card {
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 12px;
  font-size: 12px;
  text-align: left;
}
.balam-route-consult-card-grid {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 6px;
  margin-top: 8px;
  text-align: left;
}
.balam-route-consult-expenses-title {
  margin-top: 16px;
}
.balam-results-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.balam-results-card {
  border: 1px solid #333;
  padding: 5px 10px;
/* Keep native dropdown menus visible outside the card content. */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.balam-results-card.is-open {
  padding: 20px;
  background: #e5e5e5;
}
.balam-results-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  cursor: pointer;
  user-select: none;
  font-family: monospace;
  font-size: 14px;
  color: #909090;
}
.balam-results-card-head:focus-visible {
  outline: 2px solid #50b428;
  outline-offset: 2px;
  border-radius: 4px;
}
.balam-results-conclusion-status {
  display: none;
  align-items: center;
  justify-content: center;
  color: #44a620;
  flex: 0 0 auto;
  line-height: 1;
}
.balam-results-conclusion-status.is-visible {
  display: inline-flex;
}
.balam-results-conclusion-status svg {
  display: block;
  width: 18px;
  height: 18px;
  stroke-width: 2.5;
}
.balam-accordion-chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-right: auto;
  margin-left: 5px;
  margin-top: -5px;
}
.balam-results-card.is-open .balam-accordion-chevron {
  transform: rotate(-135deg);
}
/* Accordion content is collapsed by default and shown with .is-open. */
.balam-results-card-body {
  display: none;
  margin-top: 8px;
}
.balam-results-card.is-open .balam-results-card-body {
  display: block;
}
.balam-results-fields-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.balam-results-fields-row--full {
  grid-template-columns: 1fr;
}
.balam-results-fields-row > * {
  min-width: 0;
}
/* Keep the visit conclusion options aligned in one row. */
.balam-results-concluded-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  margin-top: 12px;
}
.balam-results-concluded-row .balam-results-checkline {
  padding: 0;
}
.balam-results-checkline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #333;
  padding: 8px 0;
  cursor: pointer;
}
.balam-results-checkline input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}
.balam-results-grid-three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.balam-results-prospect-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.balam-results-checkline {
  align-self: end;
  font-size: 12px;
  grid-column: span 1;
  padding-bottom: 8px;
}
.balam-results-builder {
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  padding: 16px;
  background: #E5E5E5;
  margin-top: 18px;
}
.balam-results-client-summary {
  font-size: 11px;
  color: #333;
  margin-top: 5px;
}
.balam-results-new-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.balam-results-textarea {
  width: 100%;
  min-height: 72px;
}
.balam-results-expenses-title {
  margin-top: 18px;
}
.balam-results-expense-row {
  display: grid;
  grid-template-columns: 1fr 140px 1.5fr auto;
  gap: 10px;
  margin-bottom: 10px;
  align-items: end;
}
@media (max-width: 720px) {
  .balam-rrss-inline-summary {
    align-items: stretch;
    flex-direction: column;
  }
  .balam-rrss-list-card {
    grid-template-columns: 1fr;
  }
  .balam-results-card .balam-results-fields-row {
    grid-template-columns: 1fr;
  }
  .balam-results-card .balam-results-concluded-row {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px 24px;
    margin-top: 0;
  }
  .balam-results-card .balam-results-concluded-row .balam-results-checkline {
    align-self: auto;
  }
}
/* === End Restored From Backup: PHP/Class Diff Audit (2026-07-14) === */
.balam-vacation-days-head h3 {
  display: none !important;
}
.balam-front-content:has(.balam-vacation-days-table) h3 {
  display: none !important;
}
/* Cotizacion: controls evenly fill the product-entry row. */
@media (min-width: 981px) {
  .balam-quote-form .balam-products-inputs {
    align-items: end !important;
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: minmax(120px, .75fr) minmax(0, 2fr) minmax(210px, 1.4fr) minmax(190px, 1.15fr) !important;
    width: 100% !important;
  }
  .balam-quote-form .balam-products-inputs > * {
    min-width: 0 !important;
    width: 100% !important;
  }
  .balam-quote-form .balam-products-inputs .balam-quote-product-select-field, .balam-quote-form .balam-products-inputs .balam-quote-product-select-field .balam-select, .balam-quote-form .balam-products-inputs .balam-quote-product-select-field .balam-select-trigger {
    max-width: none !important;
    width: 100% !important;
  }
  .balam-quote-form .balam-products-inputs .balam-mobile-row-group:not(.balam-stock-add-group) {
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .balam-quote-form .balam-products-inputs .balam-quote-qty-field, .balam-quote-form .balam-products-inputs .balam-quote-price-field, .balam-quote-form .balam-products-inputs .balam-custom-num-input {
    min-width: 0 !important;
    width: 100% !important;
  }
  .balam-quote-form .balam-products-inputs .balam-stock-add-group {
    display: grid !important;
    gap: 12px !important;
    grid-template-columns: minmax(70px, .8fr) minmax(0, 1.2fr) !important;
  }
}
/* Final sizing safeguards must remain last in the cascade. */
@media (min-width: 981px) {
  .balam-quote-form .balam-products-inputs, .balam-quote-form #balam-products-table {
    box-sizing: border-box !important;
    max-width: none !important;
    width: 100% !important;
  }
  .balam-quote-form .balam-products-inputs {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr) repeat(4, minmax(0, 1fr)) !important;
    justify-items: stretch !important;
  }
  .balam-quote-form .balam-products-inputs .balam-mobile-row-group:not(.balam-stock-add-group), .balam-quote-form .balam-products-inputs .balam-stock-add-group {
    display: contents !important;
  }
  .balam-quote-form .balam-products-inputs > *, .balam-quote-form .balam-products-inputs .balam-mobile-row-group, .balam-quote-form .balam-products-inputs .balam-stock-add-group {
    max-width: none !important;
    width: 100% !important;
  }
  .balam-num-control {
    box-sizing: border-box !important;
    height: 33px !important;
    min-height: 33px !important;
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
  .balam-num-control input {
    font-size: 12px !important;
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: clip !important;
    white-space: nowrap !important;
  }
  .balam-num-control .balam-num-btn {
    flex: 0 0 25px !important;
    font-size: 25px !important;
    padding: 0 !important;
  }
  .balam-quote-form .balam-products-inputs .balam-stock-add-group {
    align-items: end !important;
    display: contents !important;
  }
  .balam-quote-form .balam-products-inputs .balam-stock-add-group > .balam-field, .balam-quote-form .balam-products-inputs .balam-stock-add-group > div:last-child, .balam-quote-form .balam-products-inputs .balam-stock-add-group .balam-stock-field-fixed, .balam-quote-form .balam-products-inputs .balam-stock-add-group .balam-btn {
    box-sizing: border-box !important;
    min-width: 0 !important;
    width: 100% !important;
  }
  .balam-quote-form .balam-products-inputs .balam-stock-add-group .balam-stock-field-fixed {
    text-align: center !important;
  }
}
/* Garantias: use the same desktop control height as the quote form. */
@media (min-width: 701px) {
  .balam-warranty-new-card .balam-input-lg:not(textarea), .balam-warranty-new-card .balam-select-trigger, .balam-warranty-new-card .balam-num-control, .balam-warranty-new-card .balam-btn.size-normal {
    box-sizing: border-box !important;
    height: 33px !important;
    min-height: 33px !important;
  }
  .balam-warranty-new-card .balam-num-control {
    padding-left: 3px !important;
    padding-right: 3px !important;
  }
  .balam-warranty-new-card .balam-num-control input, .balam-warranty-new-card .balam-num-control .balam-num-btn {
    height: 100% !important;
    min-height: 0 !important;
  }
}
.balam-quote-form .balam-quote-items-scroll, .balam-quote-form .balam-quote-items-table, .balam-quote-form .balam-quote-items-table thead, .balam-quote-form .balam-quote-items-table thead tr, .balam-quote-form .balam-quote-items-table thead th {
  border-radius: 0 !important;
}
/* Shared single-line control height across the front-end system. */
.balam-front {
  --balam-control-height: 35px;
  --balam-control-font-size: 12px;
  --balam-control-font-weight: 500;
  --balam-control-text-color: #333;
  --balam-control-focus-color: #50b428;
  --balam-control-focus-ring: rgba(80, 180, 40, 0.14);
}
body .balam-front .balam-front-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"]), body .balam-front .balam-front-content select:not([multiple]), body .balam-front .balam-front-content .balam-select .balam-select-trigger, body .balam-front .balam-front-content .balam-num-control, body .balam-front .balam-front-content .balam-custom-num-input, body .balam-front .balam-front-content .balam-btn.size-normal {
  box-sizing: border-box !important;
  height: var(--balam-control-height) !important;
  min-height: var(--balam-control-height) !important;
}
body .balam-front .balam-front-content .balam-num-control input, body .balam-front .balam-front-content .balam-custom-num-input input, body .balam-front .balam-front-content .balam-num-control .balam-num-btn, body .balam-front .balam-front-content .balam-custom-num-input .balam-num-btn {
  height: 100% !important;
  min-height: 0 !important;
}
body .balam-front .balam-front-content input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"]), body .balam-front .balam-front-content select:not([multiple]), body .balam-front .balam-front-content .balam-select .balam-select-trigger, body .balam-front .balam-front-content .balam-num-control input, body .balam-front .balam-front-content .balam-custom-num-input input {
  color: var(--balam-control-text-color, #333) !important;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: var(--balam-control-font-size, 12px) !important;
  font-weight: var(--balam-control-font-weight, 500) !important;
  line-height: 1.2 !important;
}
body .balam-front .balam-front-content :where(input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="range"]):not([type="color"])):focus, body .balam-front .balam-front-content select:not([multiple]):focus, body .balam-front .balam-front-content .balam-select .balam-select-trigger:focus, body .balam-front .balam-front-content .balam-select .balam-select-trigger:focus-visible, body .balam-front .balam-front-content .balam-select.is-open .balam-select-trigger, body .balam-front .balam-front-content textarea:focus, body .balam-front .balam-front-content textarea:focus-visible, body .balam-front .balam-front-content .balam-num-control:focus-within, body .balam-front .balam-front-content .balam-custom-num-input:focus-within {
  border-color: var(--balam-control-focus-color) !important;
  box-shadow: 0 0 0 3px var(--balam-control-focus-ring) !important;
  outline: 0 !important;
}
body .balam-front .balam-front-content .balam-num-control input:focus, body .balam-front .balam-front-content .balam-custom-num-input input:focus {
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}
body .balam-front .balam-front-content input::selection, body .balam-front .balam-front-content .balam-select-value::selection, body .balam-front .balam-front-content .balam-num-control input::selection, body .balam-front .balam-front-content .balam-custom-num-input input::selection {
  background: var(--balam-control-focus-ring);
  color: var(--balam-control-text-color);
}
body .balam-front .balam-front-content textarea, body .balam-select-panel .balam-select-search, body .balam-select-panel .balam-select-option:not(.is-active) {
  color: var(--balam-control-text-color, #333) !important;
  font-size: 12px;
  font-weight: 600;
}
body .balam-front .balam-front-content textarea {
  min-height: 100px !important;
}
body .balam-front .balam-front-content input::placeholder, body .balam-front .balam-front-content textarea::placeholder, body .balam-select-panel .balam-select-search::placeholder {
  color: #909090 !important;
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: var(--balam-control-font-size, 12px) !important;
  font-weight: var(--balam-control-font-weight, 500) !important;
  opacity: 1 !important;
}
body .balam-select-panel .balam-select-search:focus, body .balam-select-panel .balam-select-search:focus-visible {
  border-color: var(--balam-control-focus-color, #50b428) !important;
  box-shadow: 0 0 0 3px var(--balam-control-focus-ring, rgba(80, 180, 40, 0.14)) !important;
  outline: 0 !important;
}
body .balam-front .balam-front-content select.is-placeholder, body .balam-front .balam-front-content .balam-select.is-placeholder .balam-select-trigger, body .balam-modal select.is-placeholder, body .balam-modal .balam-select.is-placeholder .balam-select-trigger {
  color: #909090 !important;
}
body .balam-front .balam-front-content .balam-quote-form-card .balam-num-control {
  align-items: center !important;
  display: grid !important;
  gap: 10px !important;
  grid-template-columns: 25px minmax(0, 1fr) 25px !important;
  padding: 0 5px !important;
}
body .balam-front .balam-front-content .balam-quote-form-card .balam-num-control input {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
body .balam-front .balam-front-content .balam-quote-form-card .balam-num-control .balam-num-btn {
  align-items: center !important;
  align-self: center !important;
  background: #E5E5E5 !important;
  border: 0 !important;
  border-radius: 999px !important;
  color: #333 !important;
  display: flex !important;
  flex: 0 0 28px !important;
  font-size: 15px !important;
  height: 25px !important;
  justify-content: center !important;
  line-height: 1 !important;
  min-height: 25px !important;
  min-width: 25px !important;
  padding: 0 !important;
  width: 25px !important;
}
@media (min-width: 981px) {
  body .balam-front .balam-front-content .balam-quote-form-card .balam-products-inputs .balam-mobile-row-group:not(.balam-stock-add-group) {
    flex-basis: 340px !important;
    width: 340px !important;
  }
  body .balam-front .balam-front-content .balam-quote-form-card .balam-products-inputs .balam-quote-qty-field {
    flex-basis: 132px !important;
    width: 132px !important;
  }
}
