/* ==================== POS TAB CONTAINER ==================== */
div.pos-tab-container {
  z-index: 10;
  background-color: #ffffff;
  padding: 0 !important;
  border-radius: 4px;
  border:1px solid #ddd;
  margin-bottom: 28px;
  box-shadow: 0 6px 12px rgba(0,0,0,.175);
  background-clip: padding-box;
}

div.pos-tab-menu {
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 0;
}

div.pos-tab-menu div.list-group {
  margin-bottom: 0;
}

div.pos-tab-menu div.list-group>a {
  margin-bottom: 0;
}

div.pos-tab-menu div.list-group>a .glyphicon,
div.pos-tab-menu div.list-group>a .fa {
  color: #5A55A3;
}

div.pos-tab-menu div.list-group>a:first-child {
  border-top-right-radius: 0;
}

div.pos-tab-menu div.list-group>a:last-child {
  border-bottom-right-radius: 0;
}

div.pos-tab-menu div.list-group>a.active,
div.pos-tab-menu div.list-group>a.active .glyphicon,
div.pos-tab-menu div.list-group>a.active .fa {
  background-color: #3c8dbc;
  color: #ffffff;
  border-color: #3c8dbc;
}

div.pos-tab-menu div.list-group>a.active:after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  margin-top: -13px;
  border-left: 0;
  border-bottom: 13px solid transparent;
  border-top: 13px solid transparent;
  border-left: 10px solid #3c8dbc;
}

div.pos-tab-content {
  background-color: #ffffff;
  padding-left: 20px;
  padding-top: 20px;
}

div.pos-tab div.pos-tab-content:not(.active) {
  display: none;
}

/* ==================== POS PRODUCT AREA ==================== */
.pos_product_div {
  height: auto;
  min-height: 0;
  max-height: calc(100vh - 380px);
  overflow-y: auto;
  margin-bottom: 0;
  padding-bottom: 130px; /* deja espacio para totales y botones fijos */
}

@media (max-width: 1200px) {
  .pos_product_div {
    max-height: calc(100vh - 440px);
    padding-bottom: 200px;
  }
}

.product_list_body {
    max-height: 485px;
    overflow-y: scroll;
    overflow-x: hidden;
}

/* El autocompletado de productos debe quedar por encima del panel POS. Altura máx 80% y scroll. */
body .ui-autocomplete {
  z-index: 2500 !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
}
.pos-search-en-camino { display: inline-block; margin-top: 2px; }
.pos-search-en-camino-detail { display: block; margin-top: 2px; white-space: normal; line-height: 1.25; }

/* ==================== POS BUTTONS ==================== */
.pos-express-btn {
    font-size: 23px !important;
    overflow: hidden !important;
    height: 73px !important;
    white-space: normal;
}

/* ==================== POS FORM ACTIONS ==================== */
.pos-form-actions {
  --pos-btn-quote: #f39c12;
  --pos-btn-apartado: #ff851b;
  --pos-btn-credit: #605ca8;
  --pos-btn-card: #d81b60;
  --pos-btn-finalize: #001f3f;
  --pos-btn-cash: #00a65a;
  --pos-btn-cancel: #dd4b39;
  --pos-btn-neutral: #3c8dbc;
  height: auto;
  padding: 12px 14px 16px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  box-shadow: 0 -8px 18px rgba(15, 23, 42, 0.10);
  border-radius: 0;
  overflow-x: auto;
  overflow-y: hidden;
  width: 100%;
  margin: 0;
  z-index: 1020;
}
.pos-form-actions > .col-md-12 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  width: 100%;
}
.pos-form-actions .btn {
  flex-shrink: 0;
}
.pos-form-actions #recent-transactions {
  margin-left: auto;
}
.pos-form-actions .pos-form-links {
  margin-left: auto;
}

.pos-form-actions .btn {
  background: var(--pos-btn-neutral) !important;
  border: 0 !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 8px;
  text-shadow: none;
  box-shadow:
    0 3px 8px rgba(15, 23, 42, 0.22),
    0 6px 15px rgba(0, 0, 0, 0.12) !important;
  transition: all 0.3s ease;
}

.pos-form-actions .btn:hover,
.pos-form-actions .btn:focus {
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(15, 23, 42, 0.30),
    0 8px 20px rgba(0, 0, 0, 0.18) !important;
  color: #fff !important;
}

.pos-form-actions .btn:active {
  transform: translateY(0);
}

.pos-form-actions .btn:disabled,
.pos-form-actions .btn.disabled {
  background: #94a3b8 !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none;
}

.pos-form-actions #pos-quotation {
  background: var(--pos-btn-quote) !important;
}

.pos-form-actions .pos-express-finalize[data-pay_method="apartado"] {
  background: var(--pos-btn-apartado) !important;
}

.pos-form-actions .pos-express-finalize[data-pay_method="credit_sale"] {
  background: var(--pos-btn-credit) !important;
}

.pos-form-actions .pos-express-finalize[data-pay_method="card"] {
  background: var(--pos-btn-card) !important;
}

.pos-form-actions #pos-finalize {
  background: var(--pos-btn-finalize) !important;
}

.pos-form-actions .pos-express-finalize[data-pay_method="cash"] {
  background: var(--pos-btn-cash) !important;
}

.pos-form-actions #pos-cancel,
.pos-form-actions #pos-delete {
  background: var(--pos-btn-cancel) !important;
}

.pos-form-actions #recent-transactions {
  background: var(--pos-btn-neutral) !important;
}

.pos-form-actions .pos-form-links {
  position: static;
  transform: none;
  color: #334155;
  font-size: 12px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.pos-form-actions .pos-form-links small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Espacio a la derecha = tamaño de un botón para que el FAB de 3 rayas no tape las redes */
.pos-form-actions .pos-form-links .social-icons-modern {
  margin-right: 52px;
  margin-left: 4px;
  padding: 0;
  gap: 6px;
  flex-wrap: wrap;
}

.pos-form-actions .pos-form-links .social-icon-modern {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}

.pos-form-actions .pos-form-links .social-icon-modern i {
  color: #fff !important;
  font-size: 16px;
}

.pos-form-actions .pos-form-links a {
  color: inherit !important;
  text-decoration: none;
}

.pos-form-actions .pos-form-links a:hover,
.pos-form-actions .pos-form-links a:focus {
  color: inherit !important;
}

/* Esos enlaces ahora viven dentro del contenedor de acciones */
body.lockscreen > .wrapper > footer.no-print.text-center.text-info {
  display: none;
}

.pos_form_totals {
  position: sticky;
  top: auto;
  bottom: 0;
  z-index: 50;
  background: transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  margin-top: auto;
  border-radius: 10px 10px 0 0;
}

.pos-left-panel {
  display: flex;
  flex-direction: column;
  height: 83.5vh;
  overflow: hidden;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
}

.pos-left-panel .pos_form_totals {
  flex-shrink: 0;
}

.pos-left-panel .pos_product_div {
  flex: 1;
}

/* ==================== POS TOTALS MOBILE SUMMARY ==================== */
.pos-totals-mobile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
}

.pos-totals-mobile__summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.pos-totals-mobile__summary-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.pos-totals-mobile__label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  white-space: nowrap;
}

.pos-totals-mobile__value {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
}

.pos-totals-mobile__metrics {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pos-totals-mobile__metric {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
}

.pos-totals-mobile__metric-label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  color: #334155;
}

.pos-totals-mobile__metric-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
}

.pos-totals-mobile__metric-value .fa-edit {
  color: #4b1c71;
}

.pos-right-panel {
  border-radius: 0;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

/* ==================== POS INPUT BUTTONS ==================== */
.pos-input-group .input-group-addon,
.pos-input-group .input-group-btn {
  background: transparent;
  border: 0;
  padding: 0;
  display: table-cell;
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
}

.pos-input-group .input-group-addon {
  padding-right: 6px;
}

.pos-input-group .input-group-btn:first-child {
  padding-right: 6px;
}

.pos-input-group .input-group-btn:last-child {
  padding-left: 6px;
}

.pos-input-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 11px !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  background: linear-gradient(180deg, #ffffff 0%, #f7f5fb 100%) !important;
  color: #5b21b6 !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08) !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease !important;
}

.pos-input-btn i {
  font-size: 13px !important;
  color: inherit !important;
}

.pos-input-btn .fa-lg {
  font-size: 16px !important;
}

.pos-input-btn:hover,
.pos-input-btn:focus {
  border-color: rgba(109, 40, 217, 0.5) !important;
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.18) !important;
  transform: translateY(-1px);
}

.pos-input-btn:disabled,
.pos-input-btn.disabled {
  opacity: 0.6;
  box-shadow: none !important;
  transform: none;
}

.pos-input-group .input-group-btn:last-child .pos-input-btn {
  border-top-left-radius: 10px !important;
  border-bottom-left-radius: 10px !important;
  border-left-width: 1px !important;
}

/* Asegura que los botones "modern-main-btn" del POS respeten el mismo look */
.pos-input-group .modern-main-btn.pos-input-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f7f5fb 100%) !important;
  color: #5b21b6 !important;
  border-color: rgba(15, 23, 42, 0.12) !important;
}

/* ==================== POS QTY CONTROLS (INVOICE TABLE) ==================== */
table#pos_table th {
  padding: 7px 6px !important;
  font-size: 12px !important;
  line-height: 1.2;
}

table#pos_table td {
  padding: 6px !important;
  vertical-align: top;
  font-size: 12px !important;
  line-height: 1.2;
}

table#pos_table .form-control,
table#pos_table select.form-control {
  min-height: 34px !important;
  height: 34px !important;
  font-size: 12px !important;
  padding: 5px 8px !important;
}

table#pos_table .select2-container {
  width: 100% !important;
}

table#pos_table .select2-container .select2-selection--single {
  min-height: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
}

table#pos_table .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 32px !important;
  padding-left: 10px !important;
  font-size: 12px !important;
}

table#pos_table .select2-container .select2-selection--single .select2-selection__arrow {
  height: 32px !important;
}

table#pos_table .input-number {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid #dbe2ef;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  margin-bottom: 2px;
}

table#pos_table .input-number .input-group-btn {
  display: inline-flex;
  align-items: stretch;
  width: auto;
}

table#pos_table .input-number .quantity-down,
table#pos_table .input-number .quantity-up {
  width: 30px;
  min-width: 30px;
  height: 32px;
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: linear-gradient(180deg, #ffffff 0%, #f6f4fb 100%) !important;
  color: #6d28d9 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-shadow: none !important;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease !important;
}

table#pos_table .input-number .quantity-down {
  border-right: 1px solid #e2e8f0 !important;
}

table#pos_table .input-number .quantity-up {
  border-left: 1px solid #e2e8f0 !important;
}

table#pos_table .input-number .quantity-down:hover,
table#pos_table .input-number .quantity-up:hover,
table#pos_table .input-number .quantity-down:focus,
table#pos_table .input-number .quantity-up:focus {
  background: linear-gradient(180deg, #f7f2ff 0%, #ede9fe 100%) !important;
  color: #4b1c71 !important;
}

table#pos_table .input-number .quantity-down i,
table#pos_table .input-number .quantity-up i {
  color: #6d28d9 !important;
  font-size: 12px;
}

table#pos_table .input-number .pos_quantity {
  width: calc(100% - 60px) !important;
  min-width: 48px;
  flex: 1 1 auto;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: center;
  font-weight: 700;
  font-size: 13px !important;
  min-height: 32px !important;
  height: 32px !important;
  padding: 3px 4px !important;
  color: #334155;
  background: #ffffff;
}

table#pos_table .input-number .pos_quantity:focus {
  background: #faf7ff;
  box-shadow: inset 0 0 0 1px rgba(109, 40, 217, 0.24) !important;
}

table#pos_table select.sub_unit {
  width: 100%;
  margin-top: 6px;
  border-radius: 8px;
  border: 1px solid #dbe2ef;
  min-height: 28px !important;
  height: 28px !important;
  padding: 2px 8px !important;
  font-size: 11.5px !important;
  font-weight: 600;
  color: #334155;
  background: linear-gradient(180deg, #ffffff 0%, #f8f7fc 100%);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
}

@media (max-width: 767px) {
  /* Escala tipográfica coherente en el bloque de factura (móvil) */
  .pos-left-panel .form-control,
  .pos-left-panel select.form-control,
  .pos-left-panel .input-group-addon,
  .pos-left-panel .pos-input-btn {
    font-size: 12px !important;
  }

  /* Botones laterales (cliente/correo/buscar/+) más compactos en móvil */
  .pos-left-panel .pos-input-group .input-group-addon {
    padding-right: 4px;
  }

  .pos-left-panel .pos-input-group .input-group-btn:first-child {
    padding-right: 4px;
  }

  .pos-left-panel .pos-input-group .input-group-btn:last-child {
    padding-left: 4px;
  }

  .pos-left-panel .pos-input-group .pos-input-btn {
    width: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    height: 32px !important;
    border-radius: 9px !important;
  }

  .pos-left-panel .pos-input-group .pos-input-btn i {
    font-size: 12px !important;
  }

  .pos-left-panel .select2-container--default .select2-selection--single {
    min-height: 34px !important;
    height: 34px !important;
  }

  .pos-left-panel .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 12px !important;
    line-height: 32px !important;
  }

  .pos-left-panel .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 32px !important;
  }

  table#pos_table th,
  table#pos_table td {
    padding: 5px 4px !important;
    font-size: 11.5px !important;
  }

  table#pos_table .form-control,
  table#pos_table select.form-control {
    min-height: 32px !important;
    height: 32px !important;
    font-size: 11px !important;
    padding: 4px 6px !important;
  }

  table#pos_table .select2-container .select2-selection--single {
    min-height: 32px !important;
    height: 32px !important;
  }

  table#pos_table .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 30px !important;
    font-size: 11px !important;
    padding-left: 8px !important;
  }

  table#pos_table .select2-container .select2-selection--single .select2-selection__arrow {
    height: 30px !important;
  }

  table#pos_table .input-number .quantity-down,
  table#pos_table .input-number .quantity-up,
  table#pos_table .input-number .pos_quantity {
    min-height: 30px !important;
    height: 30px !important;
  }

  table#pos_table .input-number .quantity-down,
  table#pos_table .input-number .quantity-up {
    min-width: 28px;
    width: 28px;
  }

  table#pos_table .input-number .quantity-down i,
  table#pos_table .input-number .quantity-up i {
    font-size: 11px;
  }

  table#pos_table .input-number .pos_quantity {
    font-size: 12.5px !important;
  }

  table#pos_table select.sub_unit {
    min-height: 25px !important;
    height: 25px !important;
    font-size: 11px !important;
    margin-top: 4px;
  }

  .pos-totals-mobile__label,
  .pos-totals-mobile__metric-label,
  .pos-totals-mobile__metric-value {
    font-size: 12px !important;
  }

  .pos-totals-mobile__value {
    font-size: 13px !important;
  }
}

/* Estilos del modal de edición de línea */
.row_edit_product_price_model .modal-content {
  border: none;
  border-radius: 10px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.26);
}

.row_edit_product_price_model .modal-header {
  border-bottom: 1px solid #e5e5e5;
  text-align: center;
}

.row_edit_product_price_model .modal-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

.row_edit_product_price_model .modal-footer {
  border-top: 1px solid #e5e5e5;
}

.row_edit_product_price_model input.form-control,
.row_edit_product_price_model select.form-control,
.row_edit_product_price_model textarea.form-control {
  font-weight: 600;
}

/* ============================================================
   MODAL: AGREGAR GASTO (POS) — leve (no desentona)
============================================================ */
#expense_modal .modal-body{
  padding: 16px 18px 18px;
}

#expense_modal .modal-dialog.modal-lg{
  width: 980px;
  max-width: calc(100% - 30px);
}
@media (max-width: 991px){
  #expense_modal .modal-dialog.modal-lg{ width: auto; }
}

#expense_modal .expense-help{
  margin-top: -6px;
}

#expense_modal .expense-summary{
  position: sticky;
  top: 12px;
}

/* ============================================================
   MODAL: FINALIZACIÓN DE PAGO (POS) — sutil / morado
============================================================ */
.pos-modal{
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pos-modal .modal-content{
  border: none;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 92vh;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.30);
}

.pos-modal .pos-modal-header{
  background: linear-gradient(90deg, #4B1C71, #6D28D9);
  color: #fff;
  border-bottom: none;
  padding: 14px 18px;
  min-height: 56px;
  position: relative;
  padding-right: 60px; /* espacio para la X */
}
.pos-modal .pos-modal-title{
  margin: 0;
  font-weight: 800;
  letter-spacing: .2px;
  font-size: 18px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.25);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pos-modal .pos-modal-header .modern-close{
  position: absolute !important;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  line-height: 38px;
  text-align: center;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  opacity: 1 !important;
  text-shadow: none !important;
  float: none !important;
  font-size: 30px;
  font-weight: 300;
  cursor: pointer;
  transition: transform 0.3s ease, background 0.2s ease;
}
.pos-modal .pos-modal-header .modern-close:hover,
.pos-modal .pos-modal-header .modern-close:focus{
  transform: translateY(-50%) rotate(90deg);
  background: rgba(255,255,255,0.15) !important;
  border-radius: 10px;
  outline: none;
}

.pos-modal .pos-modal-body{
  padding: 16px 18px 18px;
  background: linear-gradient(180deg,#fbf8ff 0%, #ffffff 100%);
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.pos-modal .pos-modal-footer{
  border-top: 1px solid #eef0f6;
  background: #fff;
  flex-shrink: 0;
}

.pos-modal .form-control{
  height: 40px;
  border-radius: 10px;
}
.pos-modal textarea.form-control{
  height: auto;
}
.pos-modal .input-group .input-group-addon{
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}
.pos-modal .input-group .form-control{
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}
.pos-modal .btn.btn-xs.pos-btn-secondary{
  padding: 3px 10px;
  border-radius: 8px;
}
.pos-modal .select2-container--default .select2-selection--single{
  height: 40px;
  border-radius: 10px;
  border-color: #d1d5db;
}
.pos-modal .select2-container--default .select2-selection--single .select2-selection__rendered{
  line-height: 38px;
}
.pos-modal .select2-container--default .select2-selection--single .select2-selection__arrow{
  height: 38px;
}

.pos-card{
  background: #fff;
  border: 1px solid #ececf6;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  padding: 14px 14px 8px;
  margin-bottom: 14px;
}
.pos-card__head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.pos-card__title{
  margin: 0;
  font-weight: 800;
  font-size: 14px;
  color: #1f2937;
}

.pos-summary{
  background: #fff;
  border: 1px solid rgba(109, 40, 217, 0.18);
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  padding: 14px;
  margin-bottom: 14px;
}
.pos-summary__row{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
}
.pos-summary__label{
  color: #4b5563;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.pos-summary__value{
  color: #111827;
  font-weight: 900;
  font-size: 14px;
}
.pos-summary__value--big{ font-size: 20px; }
.pos-summary__divider{
  height: 1px;
  background: #eef0f6;
  margin: 10px 0;
}

/* Resumen pago: filas con color por concepto */
.pos-pay-summary__row--items{
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(59, 130, 246, 0.04) 100%);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 -4px;
  border-left: 4px solid #3b82f6;
}
.pos-pay-summary__row--items .pos-summary__label{ color: #1d4ed8; }
.pos-pay-summary__row--items .pos-summary__value{ color: #1e40af; font-size: 16px; }

.pos-pay-summary__row--payable{
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.12) 0%, rgba(109, 40, 217, 0.06) 100%);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 -4px;
  border-left: 4px solid #6D28D9;
}
.pos-pay-summary__row--payable .pos-summary__label{ color: #4B1C71; }
.pos-pay-summary__row--payable .pos-summary__value{ color: #5b21b6; }
.pos-pay-summary__row--payable .pos-summary__value--big{ font-size: 22px; font-weight: 900; }

.pos-pay-summary__row--paying{
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.10) 0%, rgba(16, 185, 129, 0.05) 100%);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 0 -4px;
  border-left: 4px solid #10b981;
}
.pos-pay-summary__row--paying .pos-summary__label{ color: #047857; }
.pos-pay-summary__row--paying .pos-summary__value{ color: #059669; font-size: 16px; }

.pos-pay-summary__row--usd{
  background: rgba(100, 116, 139, 0.06);
  border-radius: 8px;
  padding: 8px 12px;
  margin: 0 -4px;
  border-left: 3px solid #64748b;
}
.pos-pay-summary__row--usd .pos-summary__label{ color: #475569; }
.pos-pay-summary__row--usd .pos-summary__value{ color: #334155; }

.pos-status{
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(109, 40, 217, 0.06);
  border: 1px solid rgba(109, 40, 217, 0.18);
}
.pos-status__label{
  font-size: 12px;
  font-weight: 800;
  color: #4B1C71;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.pos-status__value{
  font-size: 22px;
  font-weight: 900;
  color: #111827;
}
.pos-status--ok{
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.22);
}
.pos-status--bad{
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.22);
}
.pos-status--credit{
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.28);
}
.pos-status--ok .pos-status__label{ color: #047857; }
.pos-status--bad .pos-status__label{ color: #b91c1c; }
.pos-status--credit .pos-status__label{ color: #b45309; }

.pos-credit-note{
  margin-top: 10px;
  border-radius: 10px;
  padding: 10px 12px;
  border: 1px dashed rgba(245, 158, 11, 0.5);
  background: rgba(255, 247, 237, 0.9);
}
.pos-credit-note__title{
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #92400e;
  margin-bottom: 4px;
}
.pos-credit-note__text{
  font-size: 12px;
  color: #4b5563;
}
.pos-credit-note__amount{
  color: #92400e;
  font-weight: 900;
}

.pos-btn-primary{
  /* Match global .btn-primary (public/css/buttons.css) */
  background: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 100%);
  box-shadow:
    0 3px 8px rgba(109, 40, 217, 0.25),
    0 6px 15px rgba(0, 0, 0, 0.1);
  color: #fff !important;
}
.pos-btn-primary:hover,
.pos-btn-primary:focus{
  background: linear-gradient(135deg, #4B1C71 0%, #6D28D9 100%);
  box-shadow:
    0 4px 12px rgba(109, 40, 217, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.15);
  color: #fff !important;
}
.pos-btn-secondary{
  /* Match global .btn-default (public/css/buttons.css) */
  background: linear-gradient(135deg, #6B7280 0%, #9CA3AF 100%);
  box-shadow:
    0 3px 8px rgba(107, 114, 128, 0.25),
    0 6px 15px rgba(0, 0, 0, 0.1);
  color: #fff !important;
}
.pos-btn-secondary:hover,
.pos-btn-secondary:focus{
  background: linear-gradient(135deg, #4B5563 0%, #6B7280 100%);
  box-shadow:
    0 4px 12px rgba(107, 114, 128, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.15);
  color: #fff !important;
}

.pos-btn-danger{
  /* Match global .btn-danger (public/css/buttons.css) */
  background: linear-gradient(135deg, #EF4444 0%, #F87171 100%);
  box-shadow:
    0 3px 8px rgba(239, 68, 68, 0.25),
    0 6px 15px rgba(0, 0, 0, 0.1);
  color: #fff !important;
}
.pos-btn-danger:hover,
.pos-btn-danger:focus{
  background: linear-gradient(135deg, #DC2626 0%, #EF4444 100%);
  box-shadow:
    0 4px 12px rgba(239, 68, 68, 0.35),
    0 8px 20px rgba(0, 0, 0, 0.15);
  color: #fff !important;
}

.pos-chip{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid transparent;
}
.pos-chip--ok{
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.22);
  color: #047857;
}
.pos-chip--bad{
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.22);
  color: #b91c1c;
}

.pos-pay-modal .pos-pay-dialog {
  width: 980px;
  max-width: calc(100% - 30px);
}
@media (max-width: 991px) {
  .pos-pay-modal .pos-pay-dialog {
    width: auto;
  }
}
.pos-pay-modal .pos-pay-body {
  padding: 16px 18px 18px;
  background: linear-gradient(180deg,#fbf8ff 0%, #ffffff 100%);
}

.pos-pay-actions { margin-top: 10px; }
.pos-pay-method-totals {
  font-size: 12px;
  color: #6b7280;
  text-align: right;
}
.pos-pay-method-totals .label {
  margin-left: 6px;
  font-weight: 700;
}

.pos-pay-rows .payment_row {
  margin-bottom: 10px;
}
.pos-pay-row {
  background: #f7f7fd !important;
  border: 1px solid #ececf6;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
}
.pos-pay-row .box-body { padding: 12px 12px 2px; }
.pos-pay-row__head {
  padding: 10px 12px;
  padding-right: 46px; /* espacio para la X */
  border-bottom: 1px solid #eef0f6;
  background: rgba(109, 40, 217, 0.03);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pos-pay-badge{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2px;
  border: 1px solid rgba(17,24,39,.10);
  color: #111827;
  background: #fff;
}
/* Encabezado "Formas de pago" con totales por método */
.pos-card__head--with-totals{
  flex-wrap: wrap;
  gap: 10px;
}
.pos-pay-method-totals-wrap{
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 4px;
}
.pos-pay-method-totals-label{
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #64748b;
  flex-shrink: 0;
}
.pos-pay-method-totals{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pos-pay-method-chip{
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.pos-pay-method-chip--cash{
  background: linear-gradient(135deg, rgba(16,185,129,.18) 0%, rgba(16,185,129,.10) 100%);
  border-color: rgba(16,185,129,.35);
  color: #047857;
}
.pos-pay-method-chip--card{
  background: linear-gradient(135deg, rgba(109,40,217,.18) 0%, rgba(109,40,217,.10) 100%);
  border-color: rgba(109,40,217,.35);
  color: #4B1C71;
}
.pos-pay-method-chip--sinpe{
  background: linear-gradient(135deg, rgba(14,165,233,.18) 0%, rgba(14,165,233,.10) 100%);
  border-color: rgba(14,165,233,.35);
  color: #075985;
}
.pos-pay-method-chip--transfer{
  background: linear-gradient(135deg, rgba(100,116,139,.16) 0%, rgba(100,116,139,.08) 100%);
  border-color: rgba(100,116,139,.3);
  color: #334155;
}
.pos-pay-method-chip--other{
  background: linear-gradient(135deg, rgba(245,158,11,.18) 0%, rgba(245,158,11,.10) 100%);
  border-color: rgba(245,158,11,.35);
  color: #92400e;
}

.pos-pay-row--cash{ border-left: 5px solid #10b981; }
.pos-pay-row--card{ border-left: 5px solid #6D28D9; }
.pos-pay-row--sinpe{ border-left: 5px solid #0ea5e9; }
.pos-pay-row--transfer{ border-left: 5px solid #64748b; }
.pos-pay-row--other{ border-left: 5px solid #f59e0b; }

.pos-pay-badge--cash{
  background: rgba(16,185,129,.12);
  border-color: rgba(16,185,129,.22);
  color: #047857;
}
.pos-pay-badge--card{
  background: rgba(109,40,217,.12);
  border-color: rgba(109,40,217,.22);
  color: #4B1C71;
}
.pos-pay-badge--sinpe{
  background: rgba(14,165,233,.12);
  border-color: rgba(14,165,233,.22);
  color: #075985;
}
.pos-pay-badge--transfer{
  background: rgba(100,116,139,.14);
  border-color: rgba(100,116,139,.24);
  color: #334155;
}
.pos-pay-badge--other{
  background: rgba(245,158,11,.14);
  border-color: rgba(245,158,11,.24);
  color: #92400e;
}

.pos-pay-row .payment-amount{
  text-align: right;
  font-weight: 800;
}
.pos-pay-row__remove {
  position: absolute !important;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 8px; /* NO circular */
  border: 1px solid #ddd !important;
  background: #f5f5f5 !important;
  color: #666 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}
.pos-pay-row__remove.btn::before{ display:none !important; } /* sin shimmer */
.pos-pay-row__remove.btn:hover,
.pos-pay-row__remove.btn:active,
.pos-pay-row__remove.btn:focus{ transform: none !important; } /* sin levantar */
.pos-pay-row__remove:hover,
.pos-pay-row__remove:focus {
  background: #ffe5e5 !important;
  border-color: #f1b1b1 !important;
  color: #d9534f !important;
  box-shadow: none !important;
}
.pos-pay-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.pos-pay-right {
  position: sticky;
  top: 12px;
}
@media (max-width: 991px){
  .pos-pay-right{ position: static; top: auto; }
  #expense_modal .expense-summary{ position: static; top: auto; }
}

.pos-pay-summary{ /* compat */ }
.pos-pay-summary__row{ /* compat */ }
.pos-pay-summary__label{ /* compat */ }
.pos-pay-summary__value{ /* compat */ }
.pos-pay-summary__value--big{ /* compat */ }
.pos-pay-summary__divider{ /* compat */ }
.pos-pay-summary__status{ /* compat */ }
.pos-pay-summary__status-label{ /* compat */ }
.pos-pay-summary__status-value{ /* compat */ }
.pos-pay-summary__status--ok{ /* compat */ }
.pos-pay-summary__status--bad{ /* compat */ }

.pos-pay-cashbox {
  background: #fff;
  border: 1px solid #ececf6;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.10);
  padding: 14px;
}
.pos-pay-cashbox__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.pos-pay-cashbox__title {
  margin: 0;
  font-weight: 900;
  font-size: 14px;
  color: #111827;
}
.pos-pay-cashbox__req {
  font-size: 12px;
  color: #6b7280;
}
.pos-pay-cashbox__quick {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}
.pos-pay-cashbox__quick-group{
  background: rgba(109, 40, 217, 0.03);
  border: 1px solid #eef0f6;
  border-radius: 12px;
  padding: 10px;
}
.pos-pay-cashbox__quick-title{
  font-size: 12px;
  font-weight: 900;
  color: #4B5563;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
}
.pos-pay-cashbox__quick-grid{
  display: grid;
  gap: 8px;
}
.pos-pay-cashbox__quick-grid--coins{
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
}
.pos-pay-cashbox__quick-grid--bills{
  grid-template-columns: repeat(auto-fit, minmax(86px, 1fr));
}
.pos-pay-cashbox__quick-grid--usd{
  grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
}
.pos-pay-cashbox--usd .pos-pay-cashbox__title { color: #2d7a3e; }
.pos-pay-cashbox__quick .pos-cash-quick {
  height: 34px;
  border-radius: 10px; /* mismo radio que inputs del modal */
  border: 1px solid rgba(109, 40, 217, 0.25) !important;
  color: #4B1C71 !important;
  background: #fff !important;
  font-weight: 900;
  font-size: 12px;
  padding: 0 8px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
  font-variant-numeric: tabular-nums;
}
.pos-pay-cashbox__quick .pos-cash-quick:hover,
.pos-pay-cashbox__quick .pos-cash-quick:focus {
  background: rgba(109, 40, 217, 0.06) !important;
  border-color: rgba(109, 40, 217, 0.45) !important;
  box-shadow: 0 10px 18px rgba(109, 40, 217, 0.12);
}
.pos-pay-cashbox__quick .pos-cash-quick--big{
  grid-column: span 2;
  background: rgba(109, 40, 217, 0.10) !important;
  border-color: rgba(109, 40, 217, 0.55) !important;
}

.pos-pay-cashbox__quick-actions{
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto; /* empuja a la derecha cuando hay chips */
}
.pos-pay-cashbox__quick-actions .pos-cash-exact,
.pos-pay-cashbox__quick-actions .pos-cash-clear{
  height: 34px;
  border-radius: 10px;
  border: 1px solid #d1d5db !important;
  background: #fff !important;
  color: #374151 !important;
  font-weight: 900;
  padding: 0 14px;
  box-shadow: 0 6px 14px rgba(17, 24, 39, 0.08);
}
.pos-pay-cashbox__quick-actions .pos-cash-exact:hover,
.pos-pay-cashbox__quick-actions .pos-cash-exact:focus,
.pos-pay-cashbox__quick-actions .pos-cash-clear:hover,
.pos-pay-cashbox__quick-actions .pos-cash-clear:focus{
  background: #f9fafb !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 10px 18px rgba(17, 24, 39, 0.10);
}

/* Evitar shimmer/translate del sistema en estos botones (mejor UX en caja) */
.pos-pay-cashbox__quick .btn::before{ display:none !important; }
.pos-pay-cashbox__quick .btn:hover,
.pos-pay-cashbox__quick .btn:active{ transform:none !important; }

.pos-pay-cashbox__footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.pos-pay-cashbox__result {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pos-pay-cashbox__chip {
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 800;
  font-size: 12px;
  border: 1px solid transparent;
}
.pos-pay-cashbox__chip--ok {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.22);
  color: #047857;
}
.pos-pay-cashbox__chip--bad {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.22);
  color: #b91c1c;
}

.pos-pay-modal #pos-save.btn-primary{ /* compat */ }

#expense_modal .expense-block{
  border: 1px solid #ececf6;
  border-radius: 12px;
  padding: 14px 14px 8px;
  margin-bottom: 14px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

#expense_modal .expense-block__head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

#expense_modal .expense-block__title{
  font-size: 14px;
  font-weight: 800;
  color: #1f2937;
}

#expense_modal .expense-block .form-group{
  margin-bottom: 12px;
}

#expense_modal .expense-block label{
  font-size: 12px;
}

#expense_modal .expense-block textarea.form-control{
  resize: vertical;
}

/* Header de gastos: ya unificado via .pos-modal .pos-modal-header */

.balance_due_box >li {
    padding: 11px 5px 0px 5px;
}

.div-overlay {
    cursor: not-allowed;
    background: #e9e9e9; 
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    opacity: 0.5;
}

/* ==================== POS RESPONSIVE ==================== */
/* Tablet: bar full width, links visible */
@media (max-width: 991px) {
  .pos-form-actions {
    left: 0;
    right: 0;
    padding-left: 10px;
    padding-right: 10px;
  }
  .pos-form-actions > .col-md-12 {
    gap: 8px;
  }
}

/* Mantener separación entre columnas solo en desktop/tablet */
@media (min-width: 768px) {
  .pos-left-col {
    padding-right: 12px !important;
  }
}

/* Mobile: ocultar social/copyright en barra para no tapar; usar menú 3 rayas */
@media (max-width: 767px) {
  .pos-main-sections-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .pos-main-sections-row > .pos-mobile-section {
    float: none;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Igualar respiración interna entre factura y productos en móvil */
  .pos-main-sections-row .pos-left-panel {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }

  .pos-right-panel-mobile {
    height: auto !important;
    overflow: hidden !important;
    border: 1px solid #d9deea;
    border-radius: 12px !important;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
  }

  .pos-right-panel.pos-right-panel-mobile.padding-10 {
    padding: 0 !important;
  }

  .pos-right-panel-mobile #product_list_body,
  .pos-right-panel-mobile .product_list_body {
    height: min(46vh, 420px) !important;
    max-height: min(46vh, 420px) !important;
    min-height: 200px;
  }

  .pos-form-actions .pos-form-links {
    display: none !important;
  }

  /* En móvil el panel no debe encerrar el scroll del POS */
  .pos-left-panel {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .pos-left-panel .pos_product_div {
    flex: 0 0 auto;
  }

  .pos_product_div {
    height: auto !important;
    max-height: none !important;
    min-height: clamp(180px, 28vh, 300px);
    overflow-x: auto !important;
    overflow-y: visible !important;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 18px !important;
  }

  .pos-totals-mobile {
    border-radius: 10px;
    padding: 8px;
    gap: 6px;
  }

  .pos-totals-mobile__summary {
    gap: 6px;
  }

  .pos-totals-mobile__summary-item {
    padding: 7px 8px;
  }

  .pos-totals-mobile__label {
    font-size: 11.5px;
  }

  .pos-totals-mobile__value {
    font-size: 14px;
  }

  .pos-totals-mobile__metric {
    padding: 6px 8px;
    gap: 8px;
  }

  .pos-totals-mobile__metric-label,
  .pos-totals-mobile__metric-value {
    font-size: 12.5px;
  }

  /* Footer móvil POS: estilo compacto tipo header + scroll vertical en acciones */
  .pos-form-actions {
    padding: 8px 8px calc(10px + env(safe-area-inset-bottom));
    background: linear-gradient(135deg, #4B1C71 0%, #6D28D9 100%);
    border-top: 0;
    box-shadow: 0 -10px 24px rgba(43, 13, 73, 0.36);
    overflow: visible;
  }

  .pos-form-actions > .col-md-12 {
    display: block;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  .pos-mobile-footer-shell {
    border-radius: 14px;
    padding: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.20);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 8px 16px rgba(43, 13, 73, 0.22);
  }

  .pos-bottom-sheet {
    overflow: hidden;
    position: relative;
  }

  .pos-bottom-sheet::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 3px;
    width: 44px;
    height: 4px;
    margin-left: -22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    box-shadow: 0 1px 2px rgba(31, 41, 55, 0.18);
    pointer-events: none;
    z-index: 2;
  }

  .pos-bottom-sheet__toggle {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.20) 0%, rgba(255, 255, 255, 0.10) 100%);
    border: 1px solid rgba(255, 255, 255, 0.34);
    padding: 10px 10px 9px;
    box-shadow: 0 6px 16px rgba(43, 13, 73, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    cursor: pointer;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  }

  .pos-bottom-sheet__toggle:focus,
  .pos-bottom-sheet__toggle:focus-visible {
    outline: none;
    border-color: rgba(255, 255, 255, 0.54);
    box-shadow: 0 0 0 2px rgba(216, 180, 254, 0.28), 0 6px 16px rgba(43, 13, 73, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  }

  .pos-bottom-sheet__toggle:active {
    transform: translateY(1px);
  }

  .pos-bottom-sheet__toggle-main {
    display: flex;
    flex: 1;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }

  .pos-bottom-sheet__toggle-title {
    font-size: 13px;
    font-weight: 700;
    color: #f5f3ff;
    text-shadow: 0 1px 1px rgba(31, 41, 55, 0.24);
    white-space: nowrap;
  }

  .pos-bottom-sheet__toggle-total {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
  }

  .pos-bottom-sheet__toggle-icon {
    font-size: 14px;
    color: #f5f3ff;
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }

  .pos-bottom-sheet.is-open .pos-bottom-sheet__toggle-icon {
    transform: rotate(180deg);
  }

  .pos-bottom-sheet__content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transform: translateY(8px);
    transition: max-height 0.28s ease, opacity 0.2s ease, transform 0.28s ease, margin-top 0.28s ease;
    margin-top: 0;
  }

  .pos-bottom-sheet.is-open .pos-bottom-sheet__content {
    max-height: min(46vh, 360px);
    opacity: 1;
    transform: translateY(0);
    margin-top: 8px;
  }

  .pos-bottom-sheet.is-collapsed .pos-bottom-sheet__content {
    pointer-events: none;
  }

  .pos-mobile-total-label {
    font-size: 12.5px;
    font-weight: 700;
    color: #e9d5ff;
    text-shadow: 0 1px 1px rgba(31, 41, 55, 0.2);
  }

  .pos-mobile-total-value {
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    color: #34d399 !important;
    text-shadow: 0 1px 1px rgba(15, 23, 42, 0.22);
    letter-spacing: 0.01em;
  }

  .pos-mobile-footer-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    max-height: min(34vh, 270px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    -webkit-overflow-scrolling: touch;
  }

  .pos-mobile-footer-actions::-webkit-scrollbar {
    width: 5px;
  }

  .pos-mobile-footer-actions::-webkit-scrollbar-thumb {
    background: rgba(75, 28, 113, 0.35);
    border-radius: 999px;
  }

  .pos-mobile-action-btn {
    width: 100%;
    min-height: 46px;
    margin: 0 !important;
    padding: 9px 10px;
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
    font-size: 15px;
  }

  .pos-mobile-action-btn i {
    font-size: 13px;
  }

  .pos-mobile-action-btn.hide {
    display: none !important;
  }

  .pos-mobile-action-btn--wide {
    grid-column: 1 / -1;
  }

  .pos-form-actions #recent-transactions,
  .pos-form-actions #recent-transactions.pull-right {
    float: none !important;
    margin-left: 0;
  }

  body.lockscreen .quick-menu-toggle {
    bottom: calc(var(--pos-actions-safe-space, 210px) + env(safe-area-inset-bottom));
  }

  body.lockscreen .quick-menu-options {
    bottom: calc(var(--pos-actions-safe-space, 210px) + 62px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 420px) {
  .pos-totals-mobile__summary {
    grid-template-columns: 1fr;
  }

  .pos-bottom-sheet__toggle-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .pos-bottom-sheet__toggle-total {
    justify-content: flex-start;
  }
}

@media (min-width: 460px) and (max-width: 767px) {
  .pos-mobile-footer-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media only screen and (max-width: 600px) {
  .pos-form-actions {
    left: 0;
    right: 0;
    width: 100%;
    padding: 8px 7px calc(10px + env(safe-area-inset-bottom));
  }

  .pos-mobile-total-label {
    font-size: 12px;
  }

  .pos-mobile-total-value {
    font-size: 20px;
  }

  .pos-mobile-action-btn {
    min-height: 44px;
    font-size: 14px;
    padding: 8px 8px;
  }

  .pos-mobile-footer-actions {
    max-height: min(32vh, 240px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pos-bottom-sheet__toggle-icon,
  .pos-bottom-sheet__content {
    transition: none !important;
  }
}

@media (max-width: 420px) {
  .pos-mobile-footer-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
   .pos_form_totals {
        margin-bottom: 40px;
    }
}



/* ============================================================
   ESTILOS BASE DE TABLA — APLICADOS DIRECTO A POS
============================================================ */

/* Contenedor general */
.pos-table-products {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #FFF;
    font-size: 12px; /* un poco más compacto */
}

/* ==================== HEADER ==================== */

/* Header sticky */
.pos-table-products thead {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
}

/* Header igual al .table th pero compacto */
.pos-table-products th {
    padding: 6px 8px;               /* MISMO padding que las celdas */
    font-size: 14px;
    text-align: center;
    vertical-align: middle;

    background: linear-gradient(90deg, #4B1C71, #6D28D9) !important;
    color: #FFF !important;
    border-bottom: 2px solid #6D28D9;
}


/* ==================== CELDAS ==================== */

.pos-table-products td {
    padding: 6px 8px;              /* igual que el header = misma altura */
    font-size: 12px;
    font-weight: 600 !important;
    text-align: center;
    vertical-align: middle;
}

/* Celdas de la columna X en el body */
.pos-table-products tbody td:last-child {
    width: 32px;
    padding: 0;
    text-align: center;
}

/* ==================== FILAS ==================== */

/* Zebra igual al .table */
.pos-table-products tbody tr:nth-child(even) {
    background-color: #F9FAFB;
}

.pos-table-products tbody tr:nth-child(odd) {
    background-color: #FFFFFF;
}

/* Hover igual al .table */
.pos-table-products tbody tr:hover {
    background-color: #EDE9FE !important;
    cursor: pointer;
}

/* ============================================================
   EXTRAS ESPECÍFICOS DEL POS (se respetan)
============================================================ */

/* Bordes internos estilo POS */
.pos-table-products th{
      border: 1px solid #FFF !important;

}
.pos-table-products td {
    border: 1px solid #6D28D9 !important;
}

/* Colores de stock: estilo discreto (borde lateral, fondo neutro) */
.pos-table-products td.stock-zero {
    background-color: #fafafa !important;
    color: #b91c1c !important;
    font-weight: 600;
    border-left: 3px solid #dc2626 !important;
}

.pos-table-products td.stock-low {
    background-color: #fafafa !important;
    color: #b45309 !important;
    font-weight: 600;
    border-left: 3px solid #f59e0b !important;
}

.pos-table-products td.stock-good {
    background-color: #fafafa !important;
    color: #15803d !important;
    font-weight: 600;
    border-left: 3px solid #22c55e !important;
}



/* Responsive */
@media (max-width: 1200px) {
    .pos-table-products {
        font-size: 11px !important;
    }
    
    .pos-table-products th,
    .pos-table-products td {
        padding: 4px 6px !important;
    }
}

@media (max-width: 768px) {
    .pos-table-products {
        min-width: 600px !important;
        font-size: 10px !important;
    }
    
    .pos-table-products th,
    .pos-table-products td {
        padding: 3px 4px !important;
    }
}

/* Contenedor que ENVUELVE la tabla */
.product_list_body {
    max-height: 80vh !important;  /* el tamaño que quieres */
    overflow-y: auto !important;   /* scroll vertical interno */
    overflow-x: auto !important;   /* scroll horizontal interno */
    background: #fff;
    border-radius: none;
    padding: 0;
}

/* Colores de stock en tabla POS: estilo discreto (solo borde lateral fino) */
.table td.stock-zero {
    background-color: #fafafa !important;
    color: #b91c1c !important;
    font-weight: 600;
    border-left: 3px solid #dc2626 !important;
}

.table td.stock-low {
    background-color: #fafafa !important;
    color: #b45309 !important;
    font-weight: 600;
    border-left: 3px solid #f59e0b !important;
}

.table td.stock-good {
    background-color: #fafafa !important;
    color: #15803d !important;
    font-weight: 600;
    border-left: 3px solid #22c55e !important;
}

/* Faja de título del panel derecho POS: usa el mismo tramo del gradiente del header */
.pos-right-panel .pos-right-panel-header {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, #4B1C71 0%, #6D28D9 100%) !important;
    background-color: #4B1C71 !important;
    background-repeat: no-repeat;
    background-size: var(--pos-right-panel-gradient-size, 100% 100%);
    background-position: var(--pos-right-panel-gradient-position, 0 0);
    padding: 12px 14px 14px;
    margin: -10px -10px 14px -10px;
    border-radius: 0 !important;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}
.pos-right-panel .pos-right-panel-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: posPanelShimmer 3s infinite;
    pointer-events: none;
}
.pos-right-panel .pos-right-panel-header > * {
    position: relative;
    z-index: 1;
}
@keyframes posPanelShimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}
.pos-right-panel .pos-right-panel-title {
    color: #ffffff !important;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 12px 0;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 24px rgba(255, 255, 255, 0.12);
}
.pos-right-panel .pos-right-panel-header .form-control {
    border-radius: 10px;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}
.pos-right-panel .pos-right-panel-header .form-control:focus {
    border-color: #a855f7;
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25), 0 2px 8px rgba(15, 23, 42, 0.18);
}
.pos-right-panel:not(.pos-right-panel-mobile) .pos-right-panel-header .input-group-btn .btn {
    font-weight: 700;
    border: 0;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.22);
}
.pos-right-panel-mobile .pos-right-panel-header .input-group-btn .btn {
    font-weight: 700;
    border-radius: 9px;
    border: 1px solid rgba(255, 255, 255, 0.34) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
    color: #f8fafc !important;
    text-shadow: 0 1px 1px rgba(31, 41, 55, 0.24);
    box-shadow: 0 3px 10px rgba(43, 13, 73, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 34px;
    padding: 6px 7px;
    font-size: 11.5px;
    line-height: 1.05;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.pos-right-panel-mobile .pos-right-panel-header .input-group-btn .btn:hover,
.pos-right-panel-mobile .pos-right-panel-header .input-group-btn .btn:focus {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.52) !important;
    box-shadow: 0 5px 12px rgba(43, 13, 73, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.20) !important;
}
.pos-right-panel-mobile .pos-right-panel-header .input-group-btn .btn i {
    font-size: 11px;
}
.pos-right-panel-mobile .pos-right-panel-header .input-group-btn .btn:disabled {
    opacity: 1;
    cursor: default;
    color: #4b1c71 !important;
    text-shadow: none;
    border-color: rgba(255, 255, 255, 0.62) !important;
    background: linear-gradient(145deg, #ffffff 0%, #ede9fe 100%) !important;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

/* Replica compacta para el modal móvil de productos */
#mobile_product_suggestion_modal .input-group-btn .btn {
    font-weight: 700;
    border-radius: 9px;
    border: 1px solid #d8d7e6 !important;
    background: linear-gradient(145deg, #f7f5ff 0%, #ece8ff 100%) !important;
    color: #4b1c71 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 34px;
    padding: 6px 7px;
    font-size: 11.5px;
    line-height: 1.05;
    white-space: nowrap;
}
#mobile_product_suggestion_modal .input-group-btn .btn i {
    font-size: 11px;
}
#mobile_product_suggestion_modal .input-group-btn .btn:disabled {
    opacity: 1;
    cursor: default;
    color: #ffffff !important;
    border-color: rgba(75, 28, 113, 0.28) !important;
    background: linear-gradient(145deg, #5b21b6 0%, #6d28d9 100%) !important;
    box-shadow: 0 4px 10px rgba(43, 13, 73, 0.24) !important;
}
.pos-header-search-row {
    margin-bottom: 0;
}

/* ========== POS Panel derecho: header Productos (2 filas, Flex/Grid limpio) ========== */
.pos-right-panel .pos-right-panel-header .pos-products-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

/* Fila 1: Título a la izquierda + badges a la derecha */
.pos-right-panel .pos-right-panel-header .pos-products-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 0;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.pos-right-panel .pos-right-panel-header .pos-products-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
}
.pos-right-panel .pos-right-panel-header .pos-products-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.pos-right-panel .pos-right-panel-header .pos-products-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    color: #ffffff !important;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.pos-right-panel .pos-right-panel-header .pos-products-meta-pill i {
    opacity: 0.95;
    font-size: 0.9rem;
}

/* Fila 2: Buscador + 3 botones */
.pos-right-panel .pos-right-panel-header .pos-products-actions {
    width: 100%;
    min-width: 0;
}
.pos-right-panel .pos-right-panel-header .pos-products-actions-inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    min-width: 0;
}
.pos-right-panel .pos-right-panel-header .pos-products-search {
    width: 100%;
    min-width: 0;
    border-radius: 10px;
    min-height: 38px;
}
.pos-right-panel .pos-right-panel-header .pos-products-actions-btns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}
.pos-right-panel .pos-right-panel-header .pos-products-action-btn {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    border-radius: 8px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Desktop: una fila para buscador + botones, mismo alto, sin montarse */
@media (min-width: 768px) {
    .pos-right-panel .pos-right-panel-header .pos-products-actions-inner {
        flex-direction: row;
        align-items: stretch;
        gap: 10px;
    }
    .pos-right-panel .pos-right-panel-header .pos-products-search {
        flex: 1 1 auto;
        min-width: 0;
        margin-bottom: 0;
    }
    .pos-right-panel .pos-right-panel-header .pos-products-view-toggle {
        display: none !important;
    }
    .pos-right-panel .pos-right-panel-header .pos-products-actions-btns {
        display: flex !important;
        flex-shrink: 0;
        width: auto;
        grid-template-columns: unset;
        gap: 10px;
    }
    .pos-right-panel .pos-right-panel-header .pos-products-action-btn {
        min-width: 82px;
        flex: 0 0 auto;
    }
}

.pos-products-view-toggle {
    display: none;
}

.pos-products-view-toggle-icon {
    transition: transform 0.2s ease;
}

@media (max-width: 767px) {
  .pos-right-panel .pos-right-panel-header {
        padding: 8px 10px 8px;
        margin: 0 0 6px 0;
    }

    .pos-right-panel .pos-right-panel-title,
    .pos-right-panel .pos-right-panel-header .pos-products-title {
        margin: 0 0 6px 0;
        font-size: 1.35rem;
    }
    .pos-right-panel .pos-right-panel-header .pos-products-meta-pill {
        font-size: 0.85rem;
        padding: 6px 12px;
    }

    .pos-right-panel-mobile .pos-right-panel-header {
        border-bottom: 1px solid rgba(255, 255, 255, 0.24);
        box-shadow: none;
    }

    .pos-right-panel-mobile .pos-header-search-row {
        margin-left: 0;
        margin-right: 0;
    }

    .pos-right-panel-mobile .pos-header-search-row > .col-md-12 {
        padding-left: 0;
        padding-right: 0;
    }

    .pos-right-panel-mobile > .row {
        margin-left: 0;
        margin-right: 0;
    }

    .pos-right-panel-mobile > .row > [class^="col-"],
    .pos-right-panel-mobile > .row > [class*=" col-"] {
        padding-left: 10px;
        padding-right: 10px;
    }

    .pos-right-panel-mobile .product_list_container {
        border: 1px solid #e2e8f0;
        border-radius: 10px;
        overflow: hidden;
        background: #fff;
    }

    .pos-right-panel-mobile #suggestion_page_loader {
        padding: 8px 10px 12px;
    }

    .pos-right-panel .pos-right-panel-header .pos-products-actions-inner {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .pos-right-panel .pos-right-panel-header .pos-products-search {
        width: 100%;
        border-radius: 10px !important;
        font-size: 13px;
        min-height: 36px;
    }

    .pos-right-panel .pos-right-panel-header .pos-products-view-toggle,
    #mobile_product_suggestion_modal .pos-products-view-toggle {
        width: 100%;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        min-height: 28px;
        margin-bottom: 0;
        border-radius: 9px;
        border: 1px solid rgba(255, 255, 255, 0.34) !important;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
        color: #f8fafc !important;
        font-size: 11.5px;
        font-weight: 700;
        box-shadow: 0 3px 10px rgba(43, 13, 73, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
        text-shadow: 0 1px 1px rgba(31, 41, 55, 0.24);
        padding: 4px 8px;
    }

    #mobile_product_suggestion_modal .pos-products-view-toggle {
        border-color: #d8d7e6 !important;
        background: linear-gradient(145deg, #f7f5ff 0%, #ece8ff 100%) !important;
        color: #4b1c71 !important;
        text-shadow: none;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14) !important;
    }

    .pos-right-panel .pos-right-panel-header .pos-products-actions-btns.is-collapsed,
    #mobile_product_suggestion_modal .pos-products-actions-btns.is-collapsed,
    #mobile_product_suggestion_modal .pos-products-view-options.is-collapsed {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        margin-top: 0;
        margin-bottom: 0;
        padding: 0;
        border: none;
        pointer-events: none;
        transition: max-height 0.25s ease, opacity 0.2s ease;
    }
    .pos-right-panel .pos-right-panel-header .pos-products-actions-btns.is-open,
    #mobile_product_suggestion_modal .pos-products-actions-btns.is-open,
    #mobile_product_suggestion_modal .pos-products-view-options.is-open {
        max-height: 120px;
        opacity: 1;
        margin-top: 4px;
        pointer-events: auto;
    }
    .pos-right-panel .pos-right-panel-header .pos-products-view-toggle[aria-expanded="true"] .pos-products-view-toggle-icon,
    #mobile_product_suggestion_modal .pos-products-view-toggle[aria-expanded="true"] .pos-products-view-toggle-icon {
        transform: rotate(180deg);
    }
    .pos-right-panel .pos-right-panel-header .pos-products-actions-btns .pos-products-action-btn {
        min-height: 32px;
        padding: 6px 8px;
        font-size: 11px;
    }
}

/* Forzar que la columna de sugerencias (listado / imágenes) no desborde */
#product_list_body,
.product_list_body {
    display: block;
    height: calc(100vh - 245px) !important;
    max-height: calc(100vh - 245px) !important;
    min-height: 220px;
    overflow-y: auto !important;
    overflow-x: auto !important;
    padding-right: 8px;
    padding-left: 4px;
    box-sizing: border-box;
}

@media (max-width: 1200px) {
    #product_list_body,
    .product_list_body {
        height: calc(100vh - 340px) !important;
        max-height: calc(100vh - 340px) !important;
    }
}

@media (max-width: 767px) {
    .pos-right-panel-mobile .product_list_container {
        overflow: auto !important;
    }

    #product_list_body,
    .product_list_body {
        height: auto !important;
        max-height: calc(100vh - var(--pos-actions-safe-space, 210px) - 170px) !important;
        min-height: 180px;
        overflow-y: auto !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        padding-right: 0;
        padding-left: 0;
    }

    .pos-right-panel-mobile #tabProductos {
        min-width: 560px;
    }
}

/* ==================== BOTONES SINPE (Crear, Revisar correo, Recargar) ==================== */
.sinpe-btn-create,
.btn.sinpe-btn-create {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: #059669 !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
}
.sinpe-btn-create:hover,
.sinpe-btn-create:focus,
.btn.sinpe-btn-create:hover,
.btn.sinpe-btn-create:focus {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    border-color: #047857 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(16, 185, 129, 0.45);
}

.sinpe-btn-fetch-email,
.btn.sinpe-btn-fetch-email {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%) !important;
    border-color: #0284c7 !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(14, 165, 233, 0.35);
}
.sinpe-btn-fetch-email:hover,
.sinpe-btn-fetch-email:focus,
.btn.sinpe-btn-fetch-email:hover,
.btn.sinpe-btn-fetch-email:focus {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%) !important;
    border-color: #0369a1 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(14, 165, 233, 0.45);
}

.sinpe-btn-refresh,
.btn.sinpe-btn-refresh {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    border-color: #475569 !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.35);
}
.sinpe-btn-refresh:hover,
.sinpe-btn-refresh:focus,
.btn.sinpe-btn-refresh:hover,
.btn.sinpe-btn-refresh:focus {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    border-color: #334155 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(100, 116, 139, 0.45);
}

/* ==================== BOTONES DEPÓSITO BANCARIO (Crear, Recargar) – mismo estilo que SINPE ==================== */
.deposit-btn-create,
.btn.deposit-btn-create {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    border-color: #7c3aed !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.35);
}
.deposit-btn-create:hover,
.deposit-btn-create:focus,
.btn.deposit-btn-create:hover,
.btn.deposit-btn-create:focus {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
    border-color: #6d28d9 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(139, 92, 246, 0.45);
}

.deposit-btn-refresh,
.btn.deposit-btn-refresh {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
    border-color: #475569 !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 2px 6px rgba(100, 116, 139, 0.35);
}
.deposit-btn-refresh:hover,
.deposit-btn-refresh:focus,
.btn.deposit-btn-refresh:hover,
.btn.deposit-btn-refresh:focus {
    background: linear-gradient(135deg, #475569 0%, #334155 100%) !important;
    border-color: #334155 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(100, 116, 139, 0.45);
}

/* ==================== ENVIAR FACTURA (Correo + WhatsApp) en Finalizar pago ==================== */
.pos-send-invoice-card {
    background: linear-gradient(145deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 0;
}
.pos-send-invoice-card__head {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
}
.pos-send-invoice-card__title {
    margin: 0 0 4px 0;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pos-send-invoice-card__sub {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}
/* Mismo alto para las dos tarjetas (correo y WhatsApp) */
.pos-send-invoice-row {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    margin-left: 0;
    margin-right: 0;
}
.pos-send-invoice-row::before,
.pos-send-invoice-row::after {
    display: none;
}
.pos-send-invoice-col {
    display: flex;
    float: none;
    flex: 1 1 280px;
    min-width: 0;
    padding-left: 0;
    padding-right: 0;
}
.pos-send-invoice-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px;
    width: 100%;
    min-height: 200px;
    display: flex;
    flex-direction: column;
}
.pos-send-invoice-section .pos-send-invoice-emails,
.pos-send-invoice-section .form-group {
    flex: 1;
    min-height: 0;
}
.pos-send-invoice-section__title {
    margin: 0 0 10px 0;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}
.pos-send-invoice-input {
    border-radius: 8px;
    border: 1px solid #cbd5e1;
}
.pos-send-invoice-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.pos-send-invoice-help {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.35;
}

/* Filas de correo (uno + agregar más) */
.pos-send-invoice-emails {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.pos-send-invoice-email-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.pos-send-invoice-email-row .pos-send-invoice-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-width: 220px;
}
.pos-send-invoice-emails-extra {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 164px;
    overflow-y: auto;
    padding-right: 2px;
}
.pos-send-invoice-email-remove {
    flex-shrink: 0;
    min-width: 78px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #f8fafc;
    color: #475569;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.pos-send-invoice-email-remove i {
    font-size: 14px;
}
.pos-send-invoice-email-remove:hover {
    background: #fee2e2;
    color: #dc2626;
    border-color: #fecaca;
}
.pos-send-invoice-email-remove.is-disabled,
.pos-send-invoice-email-remove:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #94a3b8;
    border-color: #e2e8f0;
}
.pos-send-invoice-add-email {
    align-self: flex-start;
    margin-top: 4px;
    border-radius: 10px;
    border: 1px dashed #94a3b8;
    background: #fff;
    color: #475569;
    font-weight: 600;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.pos-send-invoice-add-email:hover {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #2563eb;
}
.pos-send-invoice-add-email i {
    font-size: 14px;
}
@media (max-width: 991px) {
    .pos-send-invoice-row {
        gap: 10px;
    }
    .pos-send-invoice-col {
        flex-basis: 100%;
    }
    .pos-send-invoice-section {
        min-height: 0;
    }
}
@media (max-width: 480px) {
    .pos-send-invoice-email-row {
        align-items: stretch;
        flex-wrap: wrap;
    }
    .pos-send-invoice-email-remove {
        width: 100%;
        min-width: 0;
        justify-content: center;
    }
    .pos-send-invoice-add-email {
        width: 100%;
        justify-content: center;
    }
}
