﻿/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3VzdG9tLmNzcyIsInNvdXJjZXMiOlsiY3VzdG9tLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9 */

/*# sourceMappingURL=custom.css.map */


#previewImagen {
  border-radius: 50%;
  position: absolute;
  float: inline-start;
}

.login-page {
  overflow: hidden; /* Evita el scroll */
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
  background: linear-gradient(135deg, #3a1edd 0%, rgb(29, 199, 71) 80%) !important;
}

.login-form {
  background-color: rgba(255, 255, 255, 0.97);
  padding: 34px 32px 28px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.22);
  max-width: 400px;
  width: 90%;
  top: 60%;
  left: 50%;
  position: absolute;
  transform: translate(-50%, -50%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estilo para el resto del contenido del formulario */
.login-form input[type="text"],
.login-form input[type="password"],
.login-form button {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 22px;
  border: 1px solid #d7deea;
  border-radius: 10px;
}

.login-field-label {
  display: block;
  margin-bottom: 8px;
  color: #25324a;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.login-form input[type="text"],
.login-form input[type="password"] {
  background-color: #ffffff;
  color: #1f2b3d;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
  outline: none;
  border-color: #7e8fb8;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.12);
}

.login-form button {
  background-color: #1f2d3d;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.login-form button:hover {
  background-color: #16202c;
}

.logo-container {
  perspective: 1000px; /* Agrega perspectiva para el efecto 3D */
}

.logo {
  position: absolute;
  top: -175px;
  left: 50%;
  transform: translateX(-50%);
  width: 130px;
  height: 130px;
  background: url("../img/logo_empresa.png") no-repeat center;
  background-size: cover;
  border-radius: 50%;
  animation: swing 10s ease-in-out infinite;
  backface-visibility: hidden;
}

.login-form h2 {
  text-align: center;
  margin-bottom: 28px;
  color: #162033;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.tagline {
  text-align: center;
  font-size: 10px;
  color: #777;
}

/* Estilos para pantallas pequenas (moviles) */
@media screen and (max-width: 768px) {
  .login-page {
    width: 100%;
    min-height: 100vh;
    display: -webkit-flex;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 15px;
    background: #000000;
    background: -webkit-linear-gradient(to right, #ffffff, #999999, #424242, #000000, #000000);
    background: linear-gradient(to right, #ffffff, #999999, #424242, #000000, #000000);
  }

  .login-form {
    background-color: rgba(255, 255, 255, 0.97);
    padding: 30px 24px 24px;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 70%;
    top: 60%;
    left: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
  }
}

/* ESTILOS PROPIOS */
/* SelecciÃ³n - Forma de pago */
#num_transac:disabled {
  background-color: #e9ecef; /* Color gris */
  cursor: not-allowed;
}
/*Login*/
.password-container {
  position: relative;
}

.password-container input[type="password"] {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  user-select: none;
  font-size: 0.95rem;
  color: #5f6f86;
  background: rgba(31, 45, 61, 0.06);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.password-toggle:hover {
  color: #1f2d3d;
  background: rgba(31, 45, 61, 0.12);
}

.badge-warning {
  background-color: #ffc107; /* Amarillo */
  color: #212529;
}

.badge-danger {
  background-color: #dc3545; /* Rojo */
  color: #fff;
}

/*Deuda Vencida - NotificaciÃ³n*//* ðŸ”¹ Contenedor principal de la lista */
.dropdown-menu.dropdown-list {
  margin-left: -380px;
  width: 430px;
  max-height: unset;
  padding: 0;
  overflow: hidden;
  font-size: 12px;
  border: 1px solid #ddd;
}

/* ðŸ”¹ Encabezado */
.dropdown-menu .dropdown-header {
  font-weight: bold;
  background: #f8f9fa;
  padding: 10px;
  border-bottom: 1px solid #ddd;
}

/* ðŸ”¹ Scroll solo en los items */
.notificaciones-scroll {
  max-height: 250px;
  overflow-y: auto;
}

.notificaciones-container {
  max-height: 250px;
  overflow-y: auto;
  position: relative;
}

.notificaciones-container thead {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

/* ðŸ”¹ Footer fijo */
.dropdown-footer-fixed {
  padding: 8px;
  border-top: 1px solid #ddd;
  background: #fff;
  position: sticky;
  bottom: 0;
  z-index: 5;
}

.dropdown-footer-fixed a.text-primary {
  color: #007bff !important; /* azul Bootstrap */
}

.dropdown-footer-fixed a.text-primary:hover {
  color: #0056b3 !important;
  text-decoration: underline;
}


/* Notificaciones interactivas â€” hover + cursor */
.notificaciones-scroll .dropdown-item {
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: background-color 0.15s ease, border-left-color 0.15s ease;
}
.notificaciones-scroll .dropdown-item:hover {
    background-color: #fff3e0;
    border-left-color: #e67e22;
    text-decoration: none;
}
/* Ãtem de deuda: borde rojo al hover */
.notif-deuda-item:hover {
    background-color: #fdecea !important;
    border-left-color: #dc3545 !important;
}

.notif-deuda-item {
  gap: 10px;
  align-items: flex-start !important;
}

.notif-deuda-item.notif-unread {
  background-color: #fff9f9;
  border-left-color: #dc3545;
}

.notif-deuda-item.notif-read {
  opacity: 0.88;
}

.notif-deuda-marker {
  width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: #c7d3df;
  flex: 0 0 10px;
}

.notif-deuda-marker.notif-unread {
  background: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.notif-deuda-content {
  line-height: 1.2;
}

.notif-resumen {
  font-size: 12px;
}

/*DASHBOARD - ESTILO MANUAL*/
.dashboard-page .dashboard-kpi-card .text-right h3 {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  min-height: 1.75rem;
  margin-bottom: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.dashboard-page .dashboard-kpi-card .text-right h3 i {
  font-size: 0.92em;
}

.dashboard-page .dashboard-kpi-card .text-right h3 span,
#tventahoy,
#tcomprahoy,
#tdeudatotal,
#tclientes {
  font-size: inherit !important;
}

.dashboard-page .dashboard-kpi-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.dashboard-page .dashboard-kpi-card .card-wrap {
  flex: 1;
  display: flex;
  align-items: center;
}

.dashboard-page .dashboard-kpi-card .card-wrap .padding-20 {
  width: 100%;
}

.dashboard-page .dashboard-kpi-card > a {
  display: block;
  margin-top: auto;
}

.dashboard-page .dashboard-block-start {
  margin-top: 18px;
}

.dashboard-page .dashboard-chart-body {
  height: 380px;
}

.dashboard-page .dashboard-chart-canvas {
  width: 100% !important;
  height: 100% !important;
}

.card-icon {
  width: 45px !important;
  height: 45px !important;
  font-size: 18px !important; /* TamaÃ±o del Ã­cono */
  line-height: 45px !important;
  text-align: center;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Cabecera de la sub-tabla (pagos) con fondo gris claro y texto oscuro */
#salesTable thead th {
  background-color: #002247;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Cursor pointer para el icono + */
#salesTable td.details-control i {
  cursor: pointer;
}

/* TransiciÃ³n y cursor para el icono */
td.details-control i.toggle-icon {
  cursor: pointer;
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Al colapsar, lo giramos y cambiamos el color */
tr.shown td.details-control i.toggle-icon {
  transform: rotate(180deg);
  color: #dc3545; /* rojo suave cuando estÃ¡ abierto */
}

/* Hover para ambos estados */
td.details-control i.toggle-icon:hover {
  color: #0056b3; /* azul mÃ¡s oscuro al pasar */
}



/* ðŸ“Œ Ajuste en pantallas menores a 768px (tablets y mÃ³viles grandes) */
@media (max-width: 1024px) {
  .dropdown-menu.dropdown-list {
    width: 600px !important; /* Un poco mÃ¡s de ancho */
    max-height: 450px !important; /* Mayor altura */
  }
  .notificaciones-container table {
    font-size: 14px; /* Texto mÃ¡s visible */
  }
  .notificaciones-container th, 
  .notificaciones-container td {
    padding: 3px 6px; /* Espaciado mÃ¡s cÃ³modo */
  }
}

@media (max-width: 991.98px) {
  .dashboard-page .dashboard-chart-body {
    height: 320px;
  }
}

@media (max-width: 768px) {
  .dropdown-menu.dropdown-list div {
    padding: 0px;
  }
  .dropdown-menu.dropdown-list {
    width: 420px !important; /* Reduce el ancho */
    margin-left: -250px;
  }
  .notificaciones-container table {
    font-size: 12px; /* Reduce aún más el texto */
  }

  .notificaciones-container th,
  .notificaciones-container td {
    padding: 1px 2px; /* Reduce aún más los espacios */
  }
}

/* Panel de Configuracion */
.settings-hero {
  border: 1px solid #e9edf4;
  border-radius: 14px;
  background: linear-gradient(135deg, #f6f9ff 0%, #ffffff 65%);
  padding: 16px 18px;
}

.settings-card-link {
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.settings-card {
  border: 1px solid #e9edf4;
  border-radius: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.settings-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(18, 38, 63, 0.12);
  border-color: #d7e3f8;
}

.settings-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  margin-bottom: 10px;
}

.settings-card-title {
  margin-bottom: 6px;
  font-weight: 700;
  color: #2b3445;
}

.settings-card-text {
  color: #5b6577;
  font-size: 13px;
  line-height: 1.4;
}

/* Datos Generales - Layout en dos columnas */
.generalsetting-card {
  border: 1px solid #e6ecf5;
  border-radius: 14px;
  overflow: hidden;
}

.generalsetting-card .card-header {
  border-bottom: 0;
  min-height: 58px;
  display: flex;
  align-items: center;
}

.generalsetting-card--business .card-header {
  background: linear-gradient(135deg, #1827f1 0%, #0b16a6 100%);
}

.generalsetting-card--config .card-header {
  background: linear-gradient(135deg, #3aa9b7 0%, #2c8e9b 100%);
}

.generalsetting-card .form-group label {
  font-weight: 600;
  font-size: 13px;
  color: #2f3a4f;
}

.generalsetting-card .input-group-text {
  background: #f3f6fb;
  border-color: #dbe4f0;
  color: #566075;
  font-size: 0.76rem !important;
  line-height: 1 !important;
  padding: 0 0.55rem !important;
  min-width: 36px;
  width: 36px;
  height: 38px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem 0 0 0.25rem;
}

.generalsetting-card .input-group-text i,
.generalsetting-card .input-group-text .fab,
.generalsetting-card .input-group-text .fas,
.generalsetting-card .input-group-text .far {
  width: 12px;
  font-size: 0.76rem !important;
  line-height: 1 !important;
  text-align: center;
}

.generalsetting-card .input-group .form-control.form-control-sm:not(textarea) {
  min-height: 38px;
  height: 38px;
}

.generalsetting-card .input-group .input-group-text {
  min-height: 38px;
  max-height: 38px;
  flex: 0 0 36px;
}

.generalsetting-card .input-group.input-group-textarea .input-group-text {
  min-height: 100%;
  align-items: flex-start;
  padding-top: 0.6rem;
}

.generalsetting-card .input-group.input-group-textarea textarea.form-control.form-control-sm {
  min-height: 92px;
  resize: vertical;
}

.generalsetting-note {
  background: #fbfdff;
}

.generalsetting-logo-preview {
  position: relative;
  display: inline-block;
}

.generalsetting-logo-preview #previewImagen {
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 50%;
  line-height: 1;
  padding: 2px 6px;
}

.generalsetting-logo-preview .generalsetting-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 50%;
  line-height: 1;
  padding: 2px 6px;
  display: none;
}

@media (max-width: 768px) {
  .settings-hero {
    padding: 14px;
    border-radius: 12px;
  }
  .settings-card {
    border-radius: 12px;
  }
  .generalsetting-card {
    border-radius: 12px;
  }
}
/* ðŸ“Œ Ajuste en pantallas menores a 576px (mÃ³viles pequeÃ±os) */
@media (max-width: 576px) {
  .dropdown-menu.dropdown-list {
    width: 320px !important;
    overflow-y: auto !important;
    font-size: 12px;
    margin-left: -140px;
}
  .dropdown-list-toggle:first-child .dropdown-list{
    right: -168px!important;
  }

  .max-screen{
    display: none;
  }

}

/* ðŸ“Œ Ajuste en pantallas menores a 400px (mÃ³viles muy pequeÃ±os) */
@media (max-width: 400px) {
  .dropdown-menu.dropdown-list {
    width: 300px!important; /* Un poco mÃ¡s de margen */
    overflow-y: auto!important; /* Permite desplazamiento vertical */
    font-size: 12px;
    margin-left: -110px;
  }
}


/* ðŸ“Œ Ajuste en mÃ³viles extremadamente pequeÃ±os (320px) */
@media (max-width: 320px) {
  .dropdown-menu.dropdown-list {
    width: 280px !important;
    overflow-y: auto!important; /* Permite desplazamiento vertical */
    font-size: 12px;
  }
  .notificaciones-container table {
    font-size: 9px;
  }
  .notificaciones-container th, 
  .notificaciones-container td {
    padding: 1px 1px; /* Espaciado ultra reducido */
  }
}

/* Sidebar scroll fallback (native scrollbar) */
#sidebar-wrapper {
  scrollbar-width: thin;
  scrollbar-color: #8fa1b8 transparent;
}

#sidebar-wrapper::-webkit-scrollbar {
  width: 8px;
}

#sidebar-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

#sidebar-wrapper::-webkit-scrollbar-thumb {
  background-color: #8fa1b8;
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

#sidebar-wrapper::-webkit-scrollbar-thumb:hover {
  background-color: #6f84a0;
}

/* Ajuste visual modal de stock en edicion de articulo */
.xpress-stock-ajuste {
  text-align: left;
  max-width: 500px;
  margin: 0 auto;
}

.xpress-stock-ajuste-popup .swal2-title {
  margin-bottom: 14px;
}

.xpress-stock-ajuste-popup .swal2-html-container {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.xpress-stock-ajuste .form-group {
  margin-bottom: 12px !important;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.xpress-stock-ajuste label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.25;
}

.xpress-stock-ajuste .xpress-stock-ajuste__control.swal2-input,
.xpress-stock-ajuste .xpress-stock-ajuste__control.swal2-select,
.xpress-stock-ajuste .xpress-stock-ajuste__control.swal2-textarea {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box;
  border-radius: 8px;
  font-size: 14px;
}

.xpress-stock-ajuste .xpress-stock-ajuste__control.swal2-input,
.xpress-stock-ajuste .xpress-stock-ajuste__control.swal2-select {
  height: 42px;
  min-height: 42px;
  padding: 8px 12px;
}

.xpress-stock-ajuste .xpress-stock-ajuste__control.swal2-textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

.xpress-stock-ajuste .xpress-stock-ajuste__compra-extra {
  margin-top: 4px;
}

.xpress-stock-ajuste .xpress-stock-ajuste__hint {
  margin-top: 10px !important;
}

/* NUEVA VENTA - Mejor legibilidad de descuento y subtotal */
#detalles th,
#detalles td {
  vertical-align: middle;
}

#detalles th {
  white-space: nowrap;
}

#detalles td:nth-child(2) {
  white-space: normal;
  min-width: 220px;
}

#detalles input.form-control.form-control-sm {
  width: 90px !important;
  min-width: 90px;
  text-align: right;
}

/* NUEVA VENTA - Ambas cards con mismo alto */
.xpress-newsale-cards-row {
  align-items: stretch;
}

.xpress-newsale-card-col {
  display: flex;
  margin-bottom: 1rem;
}

.xpress-newsale-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.xpress-newsale-card .xpress-newsale-card-body {
  flex: 1 1 auto;
  min-height: 0;
}

.xpress-newsale-catalog-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.xpress-sale-form {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  height: 100%;
}

.xpress-sale-form-grid {
  flex: 1 1 auto;
  align-content: flex-start;
}

.xpress-sale-actions {
  margin-top: auto;
  margin-bottom: 0;
  padding-top: 10px;
}

.xpress-newsale-catalog-table-wrap #tblarticulos_wrapper {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.xpress-newsale-catalog-table-wrap #tblarticulos_wrapper > .row:nth-of-type(2) {
  flex: 1 1 auto;
  min-height: 0;
  margin-bottom: 8px;
}

.xpress-newsale-catalog-table-wrap #tblarticulos_wrapper > .row:nth-of-type(2) > div {
  min-height: 0;
  overflow: auto;
}

.xpress-newsale-catalog-table-wrap #tblarticulos {
  margin-bottom: 0 !important;
}

.xpress-newsale-catalog-table-wrap #tblarticulos_wrapper > .row:last-of-type {
  margin-top: auto;
}

.xpress-newsale-catalog-table-wrap .dataTables_info,
.xpress-newsale-catalog-table-wrap .dataTables_paginate {
  padding-top: 8px !important;
}

/* Totales (Nueva venta / Nuevo presupuesto) */
.xpress-totals-box {
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: nowrap;
}

.xpress-totals-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
  margin: 0;
  flex: 0 0 auto;
}

.xpress-totals-label {
  min-width: auto;
  text-align: right;
  font-size: 16px;
  line-height: 1.2;
  color: #1f2d3d;
}

.xpress-totals-value {
  min-width: 122px;
  text-align: right;
  border-radius: 6px;
  padding: 5px 10px;
  border: 1px solid #39c;
  background-color: #f6fbff;
  font-size: 16px;
  line-height: 1.1;
}

.xpress-totals-row-total {
  margin: 0;
}

.xpress-totals-row-total .xpress-totals-label {
  font-size: 18px;
  font-weight: 700;
}

.xpress-totals-value-total {
  background-color: #fadbd8;
  border-color: #39c;
  font-weight: 700;
  font-size: 18px;
}

.xpress-totals-row-cambio {
  margin: 0;
}

.xpress-totals-value-cambio {
  background-color: #d4e6f1;
  border-color: #39c;
}

.xpress-totals-row-subtotal {
  display: none;
}

.xpress-totals-box.xpress-show-subtotal .xpress-totals-row-subtotal {
  display: flex !important;
}

.xpress-totals-hidden {
  display: none !important;
}

/* Modal de cobro (Nueva venta) */
#modalCobro .modal-dialog {
  max-width: 920px;
}

#modalCobro #seccionFormasPago {
  margin-bottom: 0;
}

#modalCobro #formasPagoContainer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#modalCobro .fp-row {
  display: grid !important;
  grid-template-columns: minmax(170px, 200px) minmax(160px, 190px) minmax(140px, 1fr) 36px;
  align-items: center;
  gap: 10px !important;
}

#modalCobro .fp-forma,
#modalCobro .fp-monto-base {
  width: 100% !important;
}

#modalCobro .fp-row .form-control {
  height: 40px;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  background: #ffffff;
  color: #2b364a;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

#modalCobro .fp-row .form-control:hover {
  border-color: #b8c5d8;
}

#modalCobro .fp-row .form-control:focus {
  border-color: #5aa2ee;
  box-shadow: 0 0 0 2px rgba(90, 162, 238, 0.14) !important;
  outline: none;
}

#modalCobro .fp-row input[type="number"]::-webkit-outer-spin-button,
#modalCobro .fp-row input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#modalCobro .fp-row input[type="number"] {
  -moz-appearance: textfield;
}

#modalCobro .fp-total-wrap {
  min-width: 140px;
  font-weight: 600;
  color: #5f6b82 !important;
}

#modalCobro .fp-row .btn-outline-danger {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: #ea5b70;
  color: #ea5b70;
  box-shadow: none !important;
}

#modalCobro .fp-row .btn-outline-danger:hover,
#modalCobro .fp-row .btn-outline-danger:focus {
  background: #fff1f4;
  border-color: #d94b60;
  color: #d94b60;
  box-shadow: none !important;
}

#modalCobro #resumenFormasPago {
  justify-content: center;
  text-align: center;
  row-gap: 4px;
}

#modalCobro #resumenFormasPago strong,
#modalCobro .xpress-modal-totals .xpress-totals-value {
  font-variant-numeric: tabular-nums;
}

#modalCobro .xpress-modal-totals {
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
}

#modalCobro .xpress-modal-totals .xpress-totals-row {
  justify-content: center;
}

#modalCobro .xpress-modal-totals .xpress-totals-value {
  min-width: 150px;
}

@media (max-width: 767.98px) {
  #modalCobro .fp-row {
    grid-template-columns: 1fr;
  }

  #modalCobro .fp-row .btn-outline-danger {
    justify-self: end;
  }
}

@media (max-width: 768px) {
  .xpress-sale-actions {
    gap: 8px;
    padding-top: 8px;
  }

  .xpress-totals-box {
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
  }

  .xpress-totals-label {
    min-width: auto;
    font-size: 15px;
  }

  .xpress-totals-row-total .xpress-totals-label {
    font-size: 19px;
  }

  .xpress-totals-value,
  .xpress-totals-value-total {
    min-width: 108px;
    font-size: 18px;
  }
}

/* Catalogo en Nueva venta / Nuevo presupuesto: buscador centrado y legible */
#tblarticulos_wrapper .dataTables_filter {
  float: none !important;
  text-align: center !important;
  width: 100%;
  margin: 0 0 10px 0;
}

#tblarticulos_wrapper .dataTables_filter label {
  width: 100%;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #4b5a73;
  font-weight: 600;
}

#tblarticulos_wrapper .dataTables_filter input[type="search"],
.xpress-catalog-search-input {
  width: min(100%, 560px) !important;
  max-width: 560px;
  min-width: 320px;
  height: 40px;
  border-radius: 10px;
  padding: 8px 12px !important;
  font-size: 15px;
}

#tblarticulos_wrapper .dataTables_filter input[type="search"]::placeholder,
.xpress-catalog-search-input::placeholder {
  font-size: 14px;
  color: #7a879b;
}

@media (max-width: 768px) {
  #tblarticulos_wrapper .dataTables_filter label {
    gap: 6px;
  }

  #tblarticulos_wrapper .dataTables_filter input[type="search"],
  .xpress-catalog-search-input {
    min-width: 0;
    width: 100% !important;
  }
}

/* Acciones de ventas: iconos compactos y modernos */
.xpress-sale-actions-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.xpress-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  border: 2px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 13px;
  transition: all .18s ease;
}

.xpress-action-btn i {
  line-height: 1;
}

.xpress-action-btn-view {
  background: #eaf4ff;
  color: #1f6fd3;
  border-color: #8fb9ef;
}

.xpress-action-btn-edit {
  background: #fff5e7;
  color: #c57a07;
  border-color: #f1c06c;
}

.xpress-action-btn-notes {
  background: #eef8ee;
  color: #2e7d32;
  border-color: #8bcf91;
}

.xpress-action-btn-voucher {
  background: #f3f0ff;
  color: #5a40c9;
  border-color: #b5a3f1;
}

.xpress-action-btn:hover,
.xpress-action-btn:focus {
  transform: translateY(-1px);
  filter: brightness(0.98);
  box-shadow: 0 4px 10px rgba(20, 32, 61, 0.14);
  border-color: rgba(39, 58, 92, 0.65);
}

.xpress-action-menu {
  border-radius: 10px;
  padding: 6px;
  min-width: 200px;
}

.xpress-action-item {
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  font-size: 13px;
  padding: 8px 10px;
}

.xpress-action-item i {
  width: 16px;
  text-align: center;
  color: #56607a;
}

/* Modal detalle de ventas: compacta y elegante */
#getCodeModal .modal-content {
  border-radius: 12px;
}

.xpress-sale-detail-card {
  background: #fbfcff;
  border-color: #dbe3f2 !important;
}

.xpress-sale-detail-title {
  font-size: 13px;
  font-weight: 700;
  color: #3b4860;
  margin: 0 0 6px 0;
}

.xpress-sale-detail-table {
  font-size: 12px;
}

.xpress-sale-detail-table th,
.xpress-sale-detail-table td {
  padding: 6px 8px;
  vertical-align: middle;
}

.xpress-kv-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.xpress-kv-item {
  background: #f3f6fb;
  border: 1px solid #d6dff0;
  border-radius: 8px;
  padding: 6px 8px;
  line-height: 1.25;
}

.xpress-kv-item span {
  display: block;
  font-size: 11px;
  color: #6a7489;
  margin-bottom: 2px;
}

.xpress-kv-item strong {
  display: block;
  font-size: 12px;
  color: #313e55;
  font-weight: 600;
}

.xpress-kv-item-full {
  grid-column: 1 / -1;
}

@media (max-width: 767.98px) {
  .xpress-kv-grid {
    grid-template-columns: 1fr;
  }
}

