/* Mostrador: presupuesto, carrito y tarjetas de venta rápida. */
.pos-workspace > .panel,
.pos-cart-panel,
#cartLines {
  min-width: 0;
}

.pos-budget-results {
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}

.pos-budget-option {
  min-width: 0;
  padding-top: 28px;
}

.pos-budget-option > span:not(.pos-budget-option-icon) {
  min-width: 0;
}

.pos-budget-option strong {
  overflow-wrap: anywhere;
}

.pos-package-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin: 6px 0 12px;
}

.pos-package-heading h4,
.pos-package-heading p {
  margin: 0;
}

.pos-package-heading h4 {
  color: #173d2a;
  font-size: 18px;
}

.pos-package-heading p {
  color: #65776a;
  font-size: 13px;
}

.pos-package-heading > span {
  background: #e7f6eb;
  border-radius: 999px;
  color: #146b43;
  flex: none;
  font-size: 12px;
  font-weight: 900;
  padding: 6px 9px;
}

.pos-package-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(265px, 1fr));
}

.pos-package-card {
  align-items: center;
  background: #fbfef9;
  border: 1px solid #c9dfcc;
  border-radius: 12px;
  color: #173d2a;
  display: grid;
  gap: 8px;
  grid-template-columns: 86px minmax(0, 1fr);
  min-height: 135px;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.pos-package-card:hover,
.pos-package-card:focus-visible {
  background: #f0faed;
  border-color: #15935a;
  box-shadow: 0 5px 16px rgba(15, 98, 56, .12);
}

.pos-package-images {
  align-content: center;
  display: grid;
  gap: 3px;
  grid-row: span 2;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pos-package-images img,
.pos-package-images i {
  aspect-ratio: 1;
  background: #fff;
  border: 1px solid #e1ece0;
  border-radius: 6px;
  height: 40px;
  object-fit: contain;
  width: 40px;
}

.pos-package-images i {
  align-items: center;
  color: #308b56;
  display: flex;
  justify-content: center;
}

.pos-package-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.pos-package-copy strong {
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.pos-package-copy small {
  color: #627769;
  font-size: 11px;
  font-weight: 800;
}

.pos-package-price {
  align-items: center;
  color: #087648;
  display: flex;
  font-size: 20px;
  font-weight: 1000;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.pos-package-price i {
  align-items: center;
  background: #dff2e3;
  border-radius: 8px;
  display: flex;
  font-size: 14px;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.pos-cart-panel .cart-line,
.pos-burst-sheet .cart-line {
  align-items: center;
  display: grid;
  gap: 5px 9px;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  min-width: 0;
  padding: 10px 0;
}

.cart-line-media {
  align-items: center;
  background: #fffaf0;
  border: 1px solid #e6eada;
  border-radius: 8px;
  display: flex;
  grid-row: span 2;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  width: 52px;
}

.cart-line-media img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.cart-line-detail {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.cart-line-detail strong {
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cart-line-detail small {
  color: #64766a;
  font-size: 11px;
}

.cart-line-total {
  color: #116c44;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.cart-line-actions {
  display: flex;
  gap: 6px;
  grid-column: 2 / -1;
  justify-content: flex-end;
  min-width: 0;
}

.cart-line-actions button {
  align-items: center;
  display: flex;
  flex: 0 0 38px;
  height: 38px;
  justify-content: center;
  margin: 0;
  min-height: 38px;
  padding: 0;
  width: 38px;
}

.pos-burst-products > [data-pos-products-area] {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.pos-burst-body {
  grid-template-columns: minmax(0, 1fr) !important;
}

.pos-burst-products .pos-product-grid {
  align-content: start !important;
  gap: 10px !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  height: auto !important;
  overflow: visible !important;
  padding: 3px 3px 14px !important;
}

.pos-burst-products article.pos-product-tile--burst {
  align-items: stretch !important;
  display: grid !important;
  gap: 9px !important;
  grid-template-columns: minmax(90px, 40%) minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(145px, 1fr) !important;
  min-height: 215px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  padding: 0 9px 9px !important;
}

.pos-burst-products article.pos-product-tile--burst > strong.pos-burst-product-name {
  align-items: center !important;
  font-size: 16px !important;
  grid-column: 1 / -1 !important;
  grid-row: 1 !important;
  line-height: 1.15 !important;
  margin: 0 -9px !important;
  min-height: 48px !important;
  padding: 7px 10px !important;
}

.pos-burst-product-media {
  grid-column: 1 !important;
  grid-row: 2 !important;
  min-height: 145px;
}

.pos-burst-product-media > img,
.pos-burst-product-media > .pos-product-icon {
  height: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  width: 100% !important;
}

.pos-burst-product-copy {
  align-content: space-between !important;
  display: grid !important;
  gap: 8px !important;
  grid-column: 2 !important;
  grid-row: 2 !important;
  grid-template-rows: auto auto auto !important;
  min-width: 0 !important;
}

.pos-burst-product-meta {
  align-items: start !important;
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.pos-burst-product-copy > .pos-burst-product-meta .pos-product-price {
  font-size: 22px !important;
  line-height: 1 !important;
}

.pos-product-count {
  font-size: 11px !important;
}

.pos-burst-products .pos-product-quantity {
  display: grid !important;
  gap: 4px !important;
  grid-template-columns: 42px minmax(20px, 1fr) 42px !important;
  min-width: 0 !important;
}

.pos-burst-products .pos-product-quantity button {
  font-size: 18px !important;
  height: 42px !important;
  width: 42px !important;
}

.pos-burst-products .pos-product-quantity b {
  font-size: 20px !important;
}

.pos-burst-products .pos-product-subtotal {
  align-items: center !important;
  background: #f0f8ee !important;
  border: 1px solid #c6dfc8 !important;
  border-radius: 7px !important;
  display: flex !important;
  font-size: 11px !important;
  gap: 4px !important;
  justify-content: space-between !important;
  min-width: 0 !important;
  padding: 6px !important;
  white-space: nowrap;
}

.pos-burst-products .pos-product-subtotal b {
  font-size: 16px !important;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1599px) {
  .pos-burst-products .pos-product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1279px) {
  .pos-burst-products .pos-product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  .pos-budget-helper--burst .pos-budget-results {
    display: grid !important;
    max-height: 112px;
    overflow: auto;
  }
}

@media (max-width: 899px) {
  .pos-burst-products .pos-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 599px) {
  .pos-burst-products .pos-product-grid,
  .pos-package-grid {
    grid-template-columns: 1fr !important;
  }
  .pos-burst-products article.pos-product-tile--burst {
    min-height: 205px !important;
  }
  .pos-burst-products article.pos-product-tile--burst > strong.pos-burst-product-name {
    font-size: 19px !important;
  }
  .pos-cart-panel .cart-line,
  .pos-burst-sheet .cart-line {
    grid-template-columns: 46px minmax(0, 1fr);
  }
  .cart-line-media {
    height: 44px;
    width: 44px;
  }
  .cart-line-total {
    grid-column: 2;
  }
  .cart-line-actions {
    grid-column: 2;
  }
}
