
    .rounded-sm {
    border-radius: 4px;
}

.rounded-md {
    border-radius: 8px;
}

.rounded-lg {
    border-radius: 16px;
}

/* --- Contenedor general de los dos paneles --- */
.panel-equal {
    height: 600px;  /* Ajusta según tu gusto */
    display: flex;
    flex-direction: column;
}

/* --- Cuerpo del panel, se ajusta y crea scroll --- */
.panel-equal .panel-body {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 10px;
}

/* --- Tabla de productos (scroll interno) --- */
.productos-scroll {
    max-height: 450px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 5px;
}

/* --- Igualar los DIVs de cabecera --- */
.panel-equal .panel-heading {
    padding: 10px 15px;
    background: #f5f5f5;
    font-weight: bold;
}

   .modal-header {
  padding: 15px 20px;
}

.modal-header .close {
  font-size: 28px;
  line-height: 1;
  opacity: 1;
  margin: 0;
  padding: 0;
  align-self: center;   /* 👈 ESTO lo centra vertical */
}
 

#tabla-retenidos th,
#tabla-retenidos td {
  white-space: nowrap;
  padding: 10px 12px;
}



/* ====== TILE PROCESAR VENTA ====== */

section.tile {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  background: #ffffff;
}

/* Header limpio y sobrio */
section.tile .tile-header {
  background: #f8f9fa !important;
  color: #333 !important;
  padding: 18px 20px !important;
  border-bottom: 1px solid #e5e5e5;
}

/* Título */
section.tile .tile-header h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  letter-spacing: 0.5px;
  color: #333;
}

/* Body */
section.tile .tile-body {
  height: auto !important;
  max-height: 270px;
  border: none !important;
  padding: 20px;
  background: #ffffff;
  overflow-y: auto;
}

/* Inputs */
section.tile .form-control {
  border-radius: 8px;
  border: 1px solid #dcdcdc;
  height: 40px;
  font-size: 14px;
}

/* Select2 compatibilidad */
section.tile .select2-container--default .select2-selection--single {
  height: 40px;
  border-radius: 8px;
  border: 1px solid #dcdcdc;
}

section.tile .select2-selection__rendered {
  line-height: 38px;
}

section.tile .select2-selection__arrow {
  height: 38px;
}

/* Labels */
section.tile label {
  font-weight: 600;
  font-size: 13px;
  color: #555;
  margin-bottom: 6px;
}

/* Scroll limpio */
section.tile .tile-body::-webkit-scrollbar {
  width: 6px;
}

section.tile .tile-body::-webkit-scrollbar-thumb {
  background: #cfcfcf;
  border-radius: 10px;
}

section.tile .tile-body::-webkit-scrollbar-track {
  background: transparent;
}

/* ===== PANEL DETALLE VENTA ===== */

#panel-detalle {
  border-radius: 14px;
  border: 1px solid #e0e0e0;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  background: #fff;
  overflow: hidden;
}

/* Header panel */
#panel-detalle .panel-heading {
  background: #f8f9fa;
  border-bottom: 1px solid #e5e5e5;
  padding: 14px 18px;
}

#panel-detalle .panel-title {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

/* Panel body */
#panel-detalle .panel-body {
  padding: 18px;
}

/* ===== TABLA DETALLE ===== */

#tbldetalle {
  border-collapse: separate;
  border-spacing: 0 6px;
  font-size: 13px;
}

/* Head */
#tbldetalle thead tr {
  background: #f1f3f5;
}

#tbldetalle thead th {
  border: none;
  font-weight: 600;
  color: #555;
  padding: 10px;
}

/* Rows */
#tbldetalle tbody tr {
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

#tbldetalle tbody td {
  border: none;
  padding: 10px;
  vertical-align: middle;
}

/* Redondear filas */
#tbldetalle tbody tr td:first-child {
  border-radius: 8px 0 0 8px;
}
#tbldetalle tbody tr td:last-child {
  border-radius: 0 8px 8px 0;
}

/* TOTAL */
#tbldetalle tbody tr:last-child {
  background: #f8f9fa;
  box-shadow: none;
  font-weight: 700;
}

#tbldetalle tbody tr:last-child td {
  padding-top: 14px;
  padding-bottom: 14px;
}

/* Botón eliminar */
#tbldetalle button {
  border: none;
  background: transparent;
  color: #dc3545;
  font-size: 16px;
}

#tbldetalle button:hover {
  color: #b52a37;
}

/* ===== BOTONES ===== */

#panel-detalle .btn-success {
  border-radius: 10px;
  font-weight: 600;
}

#panel-detalle .btn-danger {
  border-radius: 10px;
  font-weight: 600;
}

/* Separador */
#panel-detalle hr {
  border-top: 1px solid #eee;
}


