.loansubmission-wrapper { border:1px solid #ccc; padding:15px; font-family:Arial,sans-serif; }
.loansubmission-tabs { list-style:none; margin:0 0 10px; padding:0; display:flex; gap:5px; }
.loansubmission-tabs li { color:#fff; cursor:pointer; }
.loansubmission-tabs li.active {  }
.loansubmission-tab-panel { display:none; }
.loansubmission-tab-panel.active { display:block; }



.loansubmission-contact-header { background:#800000; color:#fff; padding:6px 10px; font-weight:bold; }


.loansubmission-row { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:8px; }
.loansubmission-row label { flex:1 1 100%; font-size:12px; }
.loansubmission-row label input,
.loansubmission-row label textarea { width:100%; padding:5px; font-size:13px; box-sizing:border-box; }
.loansubmission-textarea { min-height:80px; resize:vertical; }

.loansubmission-assistant-header { background:#555; color:#fff; padding:4px; }
.loansubmission-assistant-title { flex:1; font-size:12px; font-weight:bold; }
.loansubmission-btn { background:#800000; color:#fff; border:none; padding:8px 16px; cursor:pointer; }
.loansubmission-btn:hover { background:#550000; }
.loansubmission-save-wrapper { margin-top:15px; }
.loansubmission-save-status { margin-left:10px; font-weight:bold; }
.loansubmission-warning { color:red; }



/* ¡CUIDADO! Esto afecta TODAS las .row que vivan dentro de .loansubmission-contact-body */
.loansubmission-contact-body .row{
  display: flex;
  flex-wrap:nowrap;
  flex-direction: row;
  align-items: center;
}



/*primer formulario*/

/* ============================================================
   Loan‑Submission – estilos de formularios
   ============================================================ */

/* ---------- 1 · Variables (fáciles de personalizar) --------- */
:root{
  --ls-primary:     #800000;   /* rojo corporativo            */
  --ls-gray-dark:   #555;      /* gris asistente              */
  --ls-gray-light:  #f9f9f9;   /* fondo formulario            */
  --ls-border:      #ccc;
  --ls-font:        "Roboto", Arial, sans-serif;
}

/* ---------- 2 · Contenedor externo 5‑2‑5 -------------------- */
.loansubmission-contacts-grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);  /* 12 columnas Bootstrap‑style */
  column-gap:1rem;
  row-gap:1.5rem;
  margin-bottom:1.5rem;
}

/* Cada formulario ocupa 5 columnas */
.loansubmission-contact-form{ grid-column:span 5; }

/* Hueco (columnas 6‑7) entre pares e impares */
.loansubmission-contact-form:nth-of-type(odd){  grid-column:1 / span 5; }
.loansubmission-contact-form:nth-of-type(even){ grid-column:8 / span 5; }

/* Responsive < lg: un formulario por fila */
@media (max-width:991.98px){
  .loansubmission-contact-form{ grid-column:1 / span 12; }
}

/* ---------- 3 · Tarjeta de cada formulario ------------------ */
.loansubmission-contact-form{
  background:var(--ls-gray-light);
  border:1px solid var(--ls-border);
  font-family:var(--ls-font);
}
.loansubmission-contact-header{
  background:var(--ls-primary);
  color:#fff;
  font-weight:700;
  padding:6px 10px;
  font-size:.9rem;
}
.loansubmission-contact-body{ padding:10px; }

/* ---------- 4 · Filas internas ------------------------------ */
.ls-row{ margin-bottom:.45rem; }

/* Lateral label (100 px fijo, alineado a la derecha) */
.ls-lateral{
  width:100px;
  flex-shrink:0;
  font-size:.8rem;
  font-weight:600;
  text-align:right;
  padding-right:.5rem;
  line-height:1.4;
}



/* Etiqueta “encima” del input */
.ls-top{
  font-size:.75rem;
  font-weight:600;
  margin-bottom:2px;
}

/* Campos de entrada */
.loansubmission-contact-body .form-control,
.loansubmission-contact-body textarea{
  font-size:.8rem;
  padding:.35rem .5rem;
  border:1px solid var(--ls-border);
  border-radius:2px;
  width:100%;
  box-sizing:border-box;
}
.loansubmission-contact-body .form-control:focus,
.loansubmission-contact-body textarea:focus{
  border-color:var(--ls-primary);
  outline:0;
  box-shadow:0 0 0 .15rem rgba(128,0,0,.25);
}
textarea.form-control{ min-height:90px; resize:vertical; }

/* Assistant grey block */
.ls-assistant-block{
  margin:.5rem 0;
  padding:.5rem;
  background:var(--ls-gray-dark);
}
.ls-assistant-block .ls-lateral{ color:#fff; }
.ls-assistant-block .form-control{ background:#fff; }

/* Todos los .form-control dentro de .ls-row al 100 % */
.ls-row .form-control{ width:100%!important; color: black; }

/* ---------- 5 · Responsive etiquetas laterales --------------- */
@media (max-width:575.98px){
  .ls-lateral{
    width:auto;
    text-align:left;
    padding-right:0;
    margin-bottom:2px;
  }
  .d-flex>.flex-grow-1{ width:100%; }
}

/* ---------- 6 · Utilidades menores --------------------------- */
.d-flex.flex-column>.form-label{ margin-bottom:2px; }

/* Solo se vuelve invisible, pero sigue ocupando altura */
.loansubmission-contact-form:not([data-form="escrow"]) .ls-escrow-label{
  visibility:hidden;          /* en lugar de display:none */
}

/* Desplaza la etiqueta lateral “Company:” para que se alinee
   con el centro vertical del input, no con el label flotante  */
.ls-company-row .ls-lateral{
  margin-top:2rem;          /*  ≈ altura del .ls-top           */
}

/* RESPONSIVO*/

/* ──────────────────────────────────────────────────────────────
   1 formulario por fila: aplica desde 0 px hasta 991.98 px
   ────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px){

  /* Todos los formularios deben ocupar las 12 columnas */
  .loansubmission-contact-form{
    grid-column:1 / span 12 !important;
  }

  /* Sobrescribe las reglas específicas odd/even */
  .loansubmission-contact-form:nth-of-type(odd),
  .loansubmission-contact-form:nth-of-type(even){
    grid-column:1 / span 12 !important;
  }
}


/* ───────────────────────────────────────────────
   Fila interna: wrap según el tamaño de pantalla
   ───────────────────────────────────────────────*/

/* Escritorio (≥ 992 px): seguimos con nowrap para
   mantener alineaciones horizontales */
@media (min-width: 992px){
  .loansubmission-contact-body .row{
    display:flex;
    flex-wrap:nowrap;
    align-items:center;
    justify-content: flex-end;
  }
}

/* Tablet + móvil (≤ 991.98 px): permitimos wrap */
@media (max-width: 991.98px){
  .loansubmission-contact-body .row{
    display:flex;
    flex-wrap:wrap;       /* ¡clave! */
    align-items:flex-start;
  }
}

@media (max-width: 991.98px){
  /* cualquier col-lg-* dentro de Loan‑Submission ocupa 100 % */
  .loansubmission-contact-body [class*="col-lg-"]{
    flex:0 0 100% !important;
    max-width:100% !important;
  }
}

/*ocultar los formularios sin borrar datos*/
.ls-hidden{ display:none !important; }



/* ============================================================
   LEADSHEET – Estilo refinado
   ============================================================ */

/* Contenedor general: tarjeta sutil */
.ls-wrapper{
  background:#fff;
  padding:2rem 1.5rem;
  border:1px solid #e6e6e6;
  border-radius:.75rem;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
}

/* Distribución responsiva */
.ls-row{
  display:flex;
  flex-wrap:wrap;
  gap:1.25rem;
  margin-bottom:1.5rem;
}

/* Cada campo */
.ls-field{
  flex:1 1 200px;          /* crece pero no baja de 200 px */
  display:flex;
  flex-direction:column;
}

/* Inputs edición */
.ls-input{
  /* usa Bootstrap .form-control base como punto de partida */
  @extend .form-control;
  border-radius:.5rem;
  font-weight:500;
  transition:border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

/* Efecto focus elegante */
.ls-input:focus{
  border-color:#5c7cfa;    /* índigo Bootstrap 5 */
  box-shadow:0 0 0 .15rem rgba(92,124,250,.25);
}

/* Inputs SOLO LECTURA */
.ls-input[readonly]{
  background:transparent !important;
  border:none !important;
  padding-left:0;          /* alineados al texto */
  font-weight:600;
  color:#000;
  pointer-events:none;     /* evita selección accidental */
}

/* Fechas calculadas azules (simulamos link) */
.ls-input[readonly].ls-date,
.ls-input[readonly]#ls-closing-date{
  color:#0d6efd;           /* Bootstrap primary */
}

/* Etiqueta inferior */
.ls-label{
  font-size:.75rem;
  color:#000000;           /* Bootstrap text‑secondary */
  margin-top:.25rem;
}

/* Reduce la altura del input tipo date (Bootstrap lo sube) */
input[type="date"].ls-input{
  line-height:calc(1.5em + .75rem + 2px);
}

/* Ajustes para números cortos */
.ls-input[type="number"]{
  text-align:right;
}



/* ============================================================
   LEADSHEET – Fila de Contingencias
   ============================================================ */

/* Mantener todo en una sola línea (con scroll horizontal si es muy angosto) */
.ls-row-contingencies{
  flex-wrap:nowrap;
  overflow-x:auto;
  gap:1rem;
}

/* Las celdas de esta fila ya no se expanden; respetan su ancho */
.ls-row-contingencies .ls-field{
  flex:0 0 auto;
}

/* Campos numéricos (días) – compactos y fondo azul suave */
.ls-input.ls-days{
  max-width:4rem;          /* ≈64 px */
  flex:0 0 4rem;
  background:#eef6ff;      /* azul claro */
  border:1px solid #b6d4fe;
  border-radius:.45rem;
  text-align:center;
  font-weight:600;
  padding:.25rem .5rem;
}

/* Realza al enfocar */
.ls-input.ls-days:focus{
  background:#e4f0ff;
  border-color:#5c7cfa;
  box-shadow:0 0 0 .15rem rgba(92,124,250,.25);
}

/* Fechas calculadas: ancho mínimo para no romper la línea */
.ls-row-contingencies .ls-input.ls-date{
  min-width:7rem;          /* 07‑25‑2025 */
}


/* ============================================================
   LEADSHEET – Contingency groups
   ============================================================ */

.ls-cont-group{
  display:flex;
  flex-direction:column;
  align-items:center;
  flex:0 0 auto;
  min-width:12rem;           /* ancho mínimo del conjunto */
}

/* Pair de inputs (Bootstrap utilidades) ya en una sola línea */
.ls-cont-group .d-flex{
  gap:.5rem;
}

/* Campo “días” compacto y azul suave */
.ls-cont-group .ls-input.ls-days{
  max-width:3.5rem;
  flex:0 0 3.5rem;
  background:#eef6ff;
  border:1px solid #b6d4fe;
  text-align:center;
  padding:.25rem .4rem;
  color: #000;
}

/* Campo fecha */
.ls-cont-group .ls-input.ls-date{
  min-width:7rem;
}

/* ------------- Label y su línea superior ------------- */
.ls-cont-label{
  display:block;             /* ocupa todo el ancho del grupo */
  width:100%;
  font-size:.8rem;
  font-weight:600;
  text-align:center;
  margin-top:.75rem;         /* separación con los inputs */
  position:relative;
}

.ls-cont-label::before{
  content:'';
  position:absolute;
  top:-.75rem;               /* mismo valor que el margin-top */
  left:0;
  width:100%;
  height:2px;
  background:#000;
}


/*linea 2*/

/* ============================================================
   LEADSHEET – Fila básica (File Start, COE, Closing, Escrow)
   ============================================================ */

/* Evita que los campos se estiren; se apilan si no caben */
.ls-row-basic{
  gap:2rem;
  flex-wrap:wrap;
}

.ls-row-basic .ls-field{
  flex:0 0 auto;               /* ancho justo al contenido */
}

/* ---------- File Start Date ---------- */
#ls-file-start.ls-input{
  max-width:12rem;              /* ~150 px */
  padding-right:2.2rem;        /* espacio para el ícono */
  position:relative;
  color: #000;
}

/* Ícono de calendario con pseudo‑elemento (solo visual) */


/* ---------- COE Days ---------- */
#ls-coe-days.ls-input{
  max-width:4.5rem;            /* hasta 3 dígitos */
  text-align:center;
  background:#eef6ff;
  border:1px solid #b6d4fe;
  border-radius: .45rem;
  color: #000;
}

/* ---------- Closing Date ---------- */
#ls-closing-date.ls-input{
  max-width:9rem;
  color:#0d6efd;
}

/* ---------- Day in Escrow ---------- */
#ls-day-escrow.ls-input{
  max-width:5rem;              /* 3 dígitos */
  text-align:center;
  font-weight:600;
}

/* Ajuste general de inputs NUM pequeños */
.ls-row-basic input[type="number"]::-webkit-inner-spin-button,
.ls-row-basic input[type="number"]::-webkit-outer-spin-button{
  margin:0;
}



/*fila #1*/

/* ============================================================
   LEADSHEET – Fila Header (Last, First, Escrow)
   ============================================================ */

.ls-row-header{
  gap:.75rem;                       /* separación menor */
  flex-wrap:wrap;
}

/* Cada celda NO se estira; usa ancho justo */
.ls-row-header .ls-field{
  flex:0 0 auto;
}

/* Anchos máximos razonables */
#ls-file-start.ls-input,
.ls-row-header [data-leadsheet="last_name"].ls-input,
.ls-row-header [data-leadsheet="first_name"].ls-input{
  max-width:11rem;                  /* ≈ 176 px */
  padding-bottom: 0;
}

.ls-row-header [data-leadsheet="escrow_number"].ls-input{
  max-width:8rem;                   /* ≈ 128 px */
  padding-bottom: 0;
}



/* ============================================================
   LEADSHEET – Parte #2  (Tablón contactos)
   ============================================================ */
.ls-table-wrapper{
  overflow-x:auto;
}
.ls-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}
.ls-table thead th{
  background:#004f8d;
  color:#fff;
  text-align:center;
  font-weight:600;
  padding:.45rem .25rem;
  border:2px solid #0d6efd;
}
.ls-table tbody th{
  width:110px;
  text-align:right;
  padding-right:.5rem;
  font-weight:700;
  border-right:2px solid #0d6efd;
}
.ls-table td {
  padding: 1px 4px; /* 1px arriba/abajo, 4px izquierda/derecha */
  border: 1px solid #0d6efd;
  white-space: nowrap; /* evita que el texto se divida en varias líneas */
  width: auto; /* permite que el ancho se ajuste al contenido */
}
.ls-table tbody tr:nth-child(even){
  background:#eaf1fb;
}
.ls-td-input{
  width:100%;
  background:transparent;
  border:none;
  font-weight:600;
  color:#000;
  pointer-events:none;
}


/* ============================================================
   LEADSHEET – Parte #3
   ============================================================ */

/* Bloques */
.ls-blue{
  background:#004f8d;
  color:#fff;
  padding:.75rem 1rem;
  margin-top:1rem;
  border-radius:.5rem .5rem 0 0;
}
.ls-white{
  background:#fff;
  padding:1rem;
  border:1px solid #e6e6e6;
  border-top:none;
  border-radius:0 0 .5rem .5rem;
}

/* Encabezado */
.ls-h2{
  font-size:1.15rem !important;
  margin:0 0 .5rem 0;
  color: white !important;
}

/* Inputs inline */
.ls-row-one{ margin-bottom:.75rem; }
.ls-label-inline{
  font-weight:600;
  margin-right:.5rem;
}
.ls-input-inline{
  background:transparent;
  border:none;
  border-bottom:1px solid #b8c1c9;
  font-weight:600;
  color:#000;
  width:auto;
  min-width:120px;
  padding:.25rem .5rem;
}
.ls-input-inline:focus{ outline:none; }

/* Comp Plan */
.ls-comp-plan .ls-cp{ min-width:120px; }

/* Textarea verde */
.ls-textarea,
.ls-green{
  background:#0d6e42;
  border:1px solid #05522f;
  color:#fff;
  border-radius:.35rem;
  padding:.4rem .6rem;
}
.ls-textarea::placeholder{ color:#cfe5d8; }
.ls-removing-text{
  color:#0d6efd;
  font-weight:600;
}


/*INICIA EL UPLOAD*/

/* ==========================
   Loan-Submission — Uploads
   Scope: styles for elements rendered by js/loansubmission-tab-uploads.js
   Bootstrap 5 friendly — avoids global resets
   ========================== */

/* ----- Theme tokens (scoped) ----- */
.lsu-root {
  --lsu-bg: #f6f7fb;
  --lsu-card-bg: #ffffff;
  --lsu-text: #0f172a;
  --lsu-muted: #6b7280;
  --lsu-border: #e5e7eb;
  --lsu-accent: #7c0000;       /* brand red */
  --lsu-accent-2: #b31217;     /* gradient end */
  --lsu-accent-3: #334155;     /* lock header / cool gray */
  --lsu-glass: rgba(255,255,255,.7);
  --lsu-shadow-sm: 0 6px 18px rgba(0,0,0,.08);
  --lsu-shadow-lg: 0 12px 30px rgba(0,0,0,.12);
  --lsu-radius-lg: 1rem;
  --lsu-radius-md: .75rem;
  --lsu-radius-sm: .5rem;
}

/* Root spacing */
#ls-uploads-root.lsu-root {
  margin-top: 1rem;
  color: var(--lsu-text);
}

/* ==========================
   Banner (Submitted / Locked)
   ========================== */
.lsu-banner {
  background: linear-gradient(90deg, var(--lsu-accent), var(--lsu-accent-2));
  color: #fff;
  padding: .75rem 1rem;
  border-radius: var(--lsu-radius-md);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-shadow: var(--lsu-shadow-lg);
  position: sticky;
  top: 0;
  z-index: 50;
}
.lsu-hidden { display: none !important; }
.lsu-lock { font-size: 1.1rem; margin-right: .5rem; }

/* ==========================
   Sections & Headers
   ========================== */
.lsu-section {
  margin-bottom: 1rem;
  border: 0;
  border-radius: var(--lsu-radius-lg);
  overflow: hidden;
  background: var(--lsu-card-bg);
  box-shadow: var(--lsu-shadow-sm);
}
.lsu-sec-header {
  background: #0000ff !important;
  color: #ffffff !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lsu-border);
  gap: 10px;
}
.lsu-title { display: flex; align-items: center; gap: .5rem; }
.lsu-sec-name { font-weight: 700; font-size: 1.05rem; letter-spacing: .2px; }
.lsu-sec-body {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
}

/* ==========================
   Folder tiles (Home view)
   ========================== */
.lsu-folders-grid { margin-top: .25rem; }
.lsu-folder-tile.card {
  border: 1px solid var(--lsu-border);
  border-radius: var(--lsu-radius-lg);
  padding: .9rem .9rem 1rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  background: var(--lsu-card-bg);
 
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.lsu-folder-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--lsu-shadow-lg);
  border-color: #d1d5db;
}

.lsu-folder-name {
  line-height: 1.25;
  margin-top: .25rem;
  font-size: 12px;
  text-align: center;
}
.lsu-folder-meta { color: var(--lsu-muted); display: flex; align-items: center; gap: .5rem; }
.lsu-folder-tile .btn.lsu-open-folder {
  margin-top: auto;
  border-radius: .6rem;
  padding: .35rem .6rem;
}

/* ==========================
   Folder detail view
   ========================== */
.lsu-folder-view {
  border: 0;
  border-radius: var(--lsu-radius-lg);
  overflow: hidden;
  background: var(--lsu-card-bg);
  box-shadow: var(--lsu-shadow-lg);
  width: 100%;
}
.lsu-folder-view .card-header {
  background: #0f172a;
  color: #fff;
}
.lsu-folder-view .lsu-folder-title {
  font-weight: 700;
  letter-spacing: .2px;
}

/* Back button spacing */
.lsu-folder-view .lsu-back {
  border-radius: .5rem;
  background-color: #550000 !important;
  color: #ffffff !important;
}

/* ==========================
   Dropzone
   ========================== */
.lsu-folder-dropwrap { padding: 1rem; background: rgba(255,255,255,.6); backdrop-filter: blur(6px); border-bottom: 1px solid var(--lsu-border); }
.lsu-drop {
  border: 2px dashed #b0b7c3;
  border-radius: var(--lsu-radius-lg);
  padding: 1.2rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  background: #ffffff;
}
.lsu-drop:hover { border-color: var(--lsu-accent); transform: translateY(-1px); }
.lsu-over { border-color: var(--lsu-accent) !important; background: #fff3f3; }
.lsu-drop-ico { font-size: 2rem; }
.lsu-drop-txt { font-weight: 700; margin-top: .25rem; }
.lsu-file-input { display: none; }
.lsu-hint { font-size: .86rem; color: var(--lsu-muted); margin-top: .35rem; }

/* Upload progress */
.lsu-progress {
  position: relative;
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  margin-top: .65rem;
  overflow: hidden;
}
.lsu-bar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0%;
  background: var(--lsu-accent);
}
.lsu-pct { font-size: .8rem; color: var(--lsu-muted); margin-left: .5rem; }

/* ==========================
   Files table
   ========================== */
.lsu-list-wrap { background:#fff; }
.lsu-table thead th {
  color: var(--lsu-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--lsu-border) !important;
}
.lsu-table tbody td { vertical-align: middle; }
.lsu-ico { margin-right: .5rem; }
.lsu-name {
  max-width: 520px;
  display: inline-block;
  vertical-align: middle;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 768px){
  .lsu-name { max-width: 220px; }
}
.lsu-name.lsu-editing {
  outline: 2px solid #2575fc;
  background: #eef6ff;
  border-radius: .25rem;
  padding: 0 .25rem;
}

/* Actions spacing */
.lsu-table .btn { margin-left: .25rem; }
.lsu-table .btn:first-child { margin-left: 0; }

/* ==========================
   Submit area
   ========================== */
.lsu-submit-wrap { text-align: right; margin-top: 1rem; }
.lsu-submit-wrap .lsu-submit-btn { border-radius: .6rem; padding: .45rem .8rem; }
.lsu-submit-log { margin-top: .5rem; font-size: .92rem; color: #334155; }
.lsu-log-item { padding: .25rem 0; }

/* ==========================
   Locked state (after SUBMIT)
   ========================== */
.lsu-root.lsu-locked .lsu-drop,
.lsu-root.lsu-locked .lsu-act-rename,
.lsu-root.lsu-locked .lsu-act-del {
  display: none !important;
}
.lsu-root.lsu-locked .lsu-folder-view .card-header {
  background: var(--lsu-accent-3);
}

/* ==========================
   Micro-interactions / focus
   ========================== */
.lsu-folder-tile:focus-within,
.lsu-folder-tile .lsu-open-folder:focus {
  outline: none;
  box-shadow: 0 0 0 .2rem rgba(179,18,23,.25);
}

.lsu-open-folder:hover{
background-color: #550000 !important;
color: #ffffff !important;
border: solid 1px;
border-color: #b40303 !important;
box-shadow: 0 0 0 .2rem rgba(179,18,23,.25);
 } 
 
 .lsu-zip{
     
     color: #fff !important;
    border: none !important;
    border-bottom: solid 1px !important;
    border-radius: 0 !important;
 }

.lsu-zip.btn:focus,
#lsu-unfreeze-btn:focus,
#lsu-submit-loan:focus {
  outline: none;
  box-shadow: 0 0 0 .2rem rgba(179,18,23,.25);
}

/* ==========================
   Helpers (spacing/visibility)
   ========================== */
.lsu-hidden { display: none !important; }



/*pruebas*/
/* Forzar grid propio en el listado de folders */
.lsu-folders-grid {
  display: grid !important;
  gap: 1rem;                 /* separación entre cards */
  margin: 0 !important;      /* anula márgenes de .row de Bootstrap */
  grid-template-columns: repeat(1, minmax(240px, 1fr)); /* XS: 1 por fila */
}

/* Evitar que las clases .col-* de Bootstrap controlen ancho/padding */
.lsu-folders-grid > [class*="col-"] {
  flex: none !important;
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Cambia los números para ajustar columnas por breakpoint */
@media (min-width: 576px) {  /* SM */
  .lsu-folders-grid { grid-template-columns: repeat(2, minmax(240px, 1fr)); }
}
@media (min-width: 768px) {  /* MD */
  .lsu-folders-grid { grid-template-columns: repeat(3, minmax(240px, 1fr)); }
}
@media (min-width: 992px) {  /* LG */
  .lsu-folders-grid { grid-template-columns: repeat(4, minmax(240px, 1fr)); }
}
@media (min-width: 1200px) { /* XL */
  .lsu-folders-grid { grid-template-columns: repeat(5, minmax(240px, 1fr)); } /* p. ej. 5 por fila */
}
/* Opcional: que se auto-ajuste según espacio disponible
.lsu-folders-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
*/



/*ICONO Y OPEN JUNTOS*/



/*PARA LA ELIMINACION DE LOS ARCHIVOS EL REGISTRO*/
.lsu-delete-log{
  border-top: 1px dashed #e5e7eb;
  margin-top: .5rem;
  padding-top: .5rem;
}
.lsu-delete-log .lsu-log-li + .lsu-log-li{
  margin-top: .25rem;
}
.lsu-delete-log .lsu-log-li small{
  font-size: .85rem;
}




/* ============================================================
   LOAN SUBMISSION – Uploads / Folders (estilo macOS)
   Solo apariencia. No cambia la funcionalidad ni el DOM.
   ============================================================ */

/* Grid limpio con folders centrados */
.lsu-folders-grid{
  display: flex !important;
  gap: 5px !important;
  justify-items: center !important;
  align-items: flex-start;
  margin-top: 10px;
  flex-direction: column;
}

/* Tile suelto (sin “card” visual), centrado en columna */
.lsu-folder-tile.card{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;

  position: relative !important;          /* para overlay del botón Open */
  display: flex !important;
  flex-direction: row;
  align-items: flex-end;
  flex-wrap: wrap;
  min-height: auto !important;
  cursor: pointer !important;
  transition: transform .16s ease;
  justify-content: space-between;
}
.lsu-folder-tile.card:hover{ transform: translateY(-1px); }

/* ============================
   ICONO DE FOLDER (proporcional)
   ============================ */

/* Contenedor del icono: controlado por width + aspect-ratio */
/* Icono proporcional con SVG de Font Awesome desde assets */
.lsu-folder-tile.card .lsu-folder-ico{
  display:block;
  width:34px;            /* ajusta tamaño */
  aspect-ratio: 1 / 1;   /* FA folder suele ser 512x512 (cuadrado) */
  height:auto;
  background-image: url('../assets/img/folderazulito.svg') !important; /* ← ruta relativa al CSS */
  background-repeat:no-repeat;
  background-position:center bottom;
  background-size:contain;
  margin-bottom:2px;
  font-size:0; line-height:0; color:transparent; /* oculta el emoji 📁 del JS */
}


/* Si por algo hubiera <img> dentro, también queda proporcional */
.lsu-folder-tile.card .lsu-folder-ico img{
  display: block !important;
  width: 100% !important;
  height: 100% !important;     /* usa el alto que marca el aspect-ratio */
  object-fit: contain !important;
  position: static !important;
}

/* Responsivo: icono algo más pequeño en móvil */
@media (max-width: 600px){
  .lsu-folder-tile.card .lsu-folder-ico{ width: 78px !important; }
}

/* ============================
   Nombre + contador (debajo)
   ============================ */

/* Nombre debajo: permitir hasta 2 líneas con ellipsis */
.lsu-folder-tile.card .lsu-folder-name{
  text-align: center !important;
  font-size: 12px !important;
  color: #0f0f0f !important;
  margin: 0 6px 2px 6px !important;
  max-width: 180px !important;

  /* 👇 clave para 2 líneas + ellipsis */

  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden !important;
  text-overflow: ellipsis;

  /* permitir corte natural de palabras largas */
  white-space: normal !important;
  overflow-wrap: break-word;
  line-height: 1.2;
  min-height: calc(1em * 1.2 * 2); /* mantiene altura pareja en todas las cards */
}

/* Fallback si el navegador no soporta line-clamp (mantiene altura/recorte) */
@supports not (-webkit-line-clamp: 2){
  .lsu-folder-tile.card .lsu-folder-name{
    max-height: calc(1em * 1.2 * 2);
  }
}


.lsu-folder-tile.card .lsu-folder-meta{
  display: block !important;
}
.lsu-folder-tile.card .lsu-folder-meta .badge{
  display: inline-block !important;
  background: #e6f4ff !important;
  color: #0b63b6 !important;
  border-radius: 999px !important;
  padding: 4px 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

/* ============================
   Botón Open como overlay
   ============================ */
.lsu-folder-tile.card .lsu-open-folder{
  position: absolute !important;
  inset: 0 !important;                /* cubre todo el folder */
  opacity: 0 !important;              /* invisible */
  border: none !important;
  background: transparent !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* ============================
   Dark mode (opcional)
   ============================ */
@media (prefers-color-scheme: dark){
  .lsu-folder-tile.card .lsu-folder-name{ color: #333333 !important; }
  .lsu-folder-tile.card .lsu-folder-meta .badge{
    background: rgba(125,211,252,.18) !important;
    color: #333333 !important;
  }
}

#lsu-sections {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
}    

.lsu-count {
    color: #fff;
    background-color: rgb(43 164 191) !important;
}



/* ============== LEADSHEET – Parte #4 ============== */
.ls-ls4 .ls-card{
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(16,24,40,.04);
}

.ls-ls4 .form-label{
  font-weight: 500;
  color: #000000; /* slate-700 */
}

/* Apariencia de readonly clara y consistente */
.ls-ls4 input[type="text"],
.ls-ls4 input[type="number"],
.ls-ls4 input[readonly]{
  background-color: #f8fafc;
    color: #000000;
    border-color: #1c1c1c;
    cursor: default;
    border: 0px;
    border-bottom: solid 1px !important;
    border-radius: 0;
}

/* Grupos en línea reutilizables */
.ls-inline-2,
.ls-inline-3,
.ls-inline-4,
.ls-inline-5{
  display: grid;
  gap: .75rem;
}

.ls-inline-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.ls-inline-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.ls-inline-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
.ls-inline-5{ grid-template-columns: repeat(5, minmax(0,1fr)); }

/* Ajustes responsive para móviles */
@media (max-width: 768px){
  .ls-inline-3{ grid-template-columns: 1fr; }
  .ls-inline-4{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ls-inline-5{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Pequeños refinamientos visuales */
.ls-ls4 .form-select,
.ls-ls4 .form-control{
  border-radius: .25rem;
  border: solid 1px #696969;
}

.ls-ls4 .fw-medium{ font-weight: 600; }


/*MISMA FILA*/
/* ======== LABEL + INPUT en la misma fila ======== */
.ls4-mismafila {
  display: flex;
  align-items: center;
  gap: 0.75rem;             /* espacio entre label e input */
}

.ls4-mismafila .form-label {
  flex: 0 0 220px;          /* ancho fijo del label */
  white-space: nowrap;      /* evita que el label se parta en dos líneas */
  text-align: right;        /* alinea el texto del label a la derecha */
  margin: 0;
}

.ls4-mismafila .form-control,
.ls4-mismafila .form-select {
  flex: 1;                  /* input ocupa el resto del espacio */
  min-width: 0;             /* evita que se desborde */
}

/* Apariencia más limpia en pantallas pequeñas */
@media (max-width: 768px) {
  .ls4-mismafila {
    flex-direction: column; /* label arriba en móvil */
    align-items: stretch;
  }
  .ls4-mismafila .form-label {
    flex: none;
    width: 100%;
    text-align: left;
  }
}


/* ======== LABEL + INPUT (dos pares en la misma línea) ======== */
.ls4-doblefila {
  display: flex;
  align-items: center;
  gap: 2rem; /* separación entre los dos grupos */
  flex-wrap: wrap;
}

/* Cada grupo label+input */
.ls4-doblefila .grupo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;                 /* ambos ocupan el mismo ancho */
  min-width: 0;
}

/* Label alineado y sin salto de línea */
.ls4-doblefila .grupo .form-label {
  flex: 0 0 160px;         /* ancho fijo del label dentro del grupo */
  white-space: nowrap;
  text-align: right;
  margin: 0;
}

/* Input ocupa el resto */
.ls4-doblefila .grupo .form-control,
.ls4-doblefila .grupo .form-select {
  flex: 1;
  min-width: 0;
}

/* Versión móvil: stack vertical */
@media (max-width: 768px) {
  .ls4-doblefila {
    flex-direction: column;
    gap: 1rem;
  }
  .ls4-doblefila .grupo {
    flex-direction: column;
    align-items: stretch;
  }
  .ls4-doblefila .grupo .form-label {
    text-align: left;
    flex: none;
    width: 100%;
  }
}


/* ======== LABEL + DOS SELECTS en la misma línea ======== */
.ls4-label-dos-selects {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ls4-label-dos-selects .form-label {
  flex: 0 0 220px;        /* ancho fijo del label */
  white-space: nowrap;
  text-align: right;
  margin: 0;
}

.ls4-dos-selects {
  display: flex;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.ls4-dos-selects .form-select {
  flex: 1;
  min-width: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .ls4-label-dos-selects {
    flex-direction: column;
    align-items: stretch;
  }
  .ls4-label-dos-selects .form-label {
    text-align: left;
  }
  .ls4-dos-selects {
    flex-direction: column;
  }
}

/*controla el alto de los input*/
.ls-ls4 input.form-control {
  height: 28px;
  padding: 6px 8px;
}


/*PRUEBA*/
/* ===================== LABEL + SELECT + INPUT (30/70) ===================== */
.ls4-label-select-input {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ls4-label-select-input .form-label {
  flex: 0 0 220px;          /* mismo ancho de label que en el resto */
  white-space: nowrap;
  text-align: right;
  margin: 0;
}

/* Contenedor del select + input */
.ls4-select-input-group {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 0.75rem;
  min-width: 0;
}

/* Select = 30%  |  Input = 70% */
.ls4-select-input-group .form-select {
  flex: 0 0 30%;
  min-width: 0;
  height: 38px;
  padding: 4px 8px;
}

.ls4-select-input-group .form-control {
  flex: 1; /* ocupa el 70% restante */
  min-width: 0;
  height: 38px;
  padding: 4px 8px;
}

/* estilo línea inferior como los demás */
.ls4-inputline {
  background-color: #f8fafc;
  color: #000;
  border: 0;
  border-bottom: solid 1px #1c1c1c !important;
  border-radius: 0;
}

/* responsive */
@media (max-width: 768px) {
  .ls4-label-select-input {
    flex-direction: column;
    align-items: stretch;
  }
  .ls4-label-select-input .form-label {
    text-align: left;
  }
  .ls4-select-input-group {
    flex-direction: column;
  }
  .ls4-select-input-group .form-select,
  .ls4-select-input-group .form-control {
    flex: 1 1 100%;
  }
}

/*COM PLAN*/
/* ===== COMP PLAN INLINE STYLE ===== */
.ls-comp-plan {
  display: flex;
  align-items: center;
  gap: 0.75rem;         /* espacio entre elementos */
  flex-wrap: nowrap;    /* evita saltos de línea */
  color: #000;
  font-weight: 500;
}

.ls-comp-plan span {
  white-space: nowrap;  /* que no se dividan los textos */
  font-size: 0.95rem;
  color: #000;
}

/* inputs en línea, solo borde inferior */
.ls-comp-plan .ls-input-inline {
  border: none;
  border-bottom: 1px solid #000;
  border-radius: 0;
  background: transparent;
  color: #000;
  padding: 4px 6px;
  height: 34px;
  line-height: 1.2;
  font-size: 0.95rem;
}

.ls-comp-plan .ls-input-inline:focus {
  outline: none;
  box-shadow: none;
  border-bottom: 1px solid #000;
}

/* opcional: mantener proporción de anchos y evitar que se rompan */
.ls-comp-plan .w-25 {
  width: 25% !important;
  min-width: 100px;
}

.ls-comp-plan .flex-grow-1 {
  flex-grow: 1;
  min-width: 120px;
}

/* responsive para pantallas pequeñas */
@media (max-width: 768px) {
  .ls-comp-plan {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .ls-comp-plan .ls-input-inline {
    flex: 1 1 100%;
  }
}

/*EL RESTO*/
#ls-lender-name {
    background: none !important;
    border: 0;
    color: #000000;
    padding: 1px;
  }

#title-concat  {
    background: none !important;
    border: 0;
    color: #000000;
    padding: 1px;
  } 
  
 #loan-number {
    background: none !important;
    border: 0;
    color: #ffffff;
    padding: 1px;
  } 

 .ls-row-one {
    display: flex;
    margin-bottom: 0;
  }   
  
  
 /*EL TOOLTIP DEL PDF*/
/* === Barra de botones del PDF === */
.ls-pdfbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  margin-bottom: 20px;
}

/* Botón principal: Export PDF */
.ls-pdfbar .loansubmission-export-pdf {
  background: linear-gradient(135deg, #1e73be, #0056b3);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease-in-out;
}

.ls-pdfbar .loansubmission-export-pdf:hover {
  background: linear-gradient(135deg, #0056b3, #003d80);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Botón del log */
.ls-pdfbar .ls-pdf-log-btn {
  background: #fff;
  border: 1.5px solid #1e73be;
  color: #1e73be;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease-in-out;
}

.ls-pdfbar .ls-pdf-log-btn:hover {
  background: #1e73be;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 86, 179, 0.3);
  transform: translateY(-1px);
}

/* === Tooltip del log === */
#ls-pdf-tooltip {
  position: absolute;
  z-index: 9999;
  background: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
  font-size: 13px;
  color: #333;
  min-width: 260px;
  max-width: 500px;
  line-height: 1.5;
  animation: fadeInTooltip 0.2s ease-in-out;
}

#ls-pdf-tooltip[hidden] {
  display: none;
}

#ls-pdf-tooltip strong {
  font-size: 14px;
  color: #0056b3;
  display: block;
  margin-bottom: 5px;
}

#ls-pdf-tooltip ul {
  margin: 8px 0 0 15px;
  padding: 0;
  list-style-type: disc;
}

#ls-pdf-tooltip li {
  margin-bottom: 4px;
}

#ls-pdf-tooltip li a {
  color: #1e73be;
  text-decoration: none;
}

#ls-pdf-tooltip li a:hover {
  text-decoration: underline;
  color: #004a93;
}

#ls-pdf-tooltip small {
  color: #777;
  font-size: 11px;
}

/* Animación suave del tooltip */
@keyframes fadeInTooltip {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === Toast notification for PDF actions === */
.ls-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  min-width: 240px;
  max-width: 320px;
  background: #333;
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease-in-out;
  z-index: 9999;
}

.ls-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.ls-toast.success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
}

.ls-toast.error {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.loansubmission-save-all   { position: fixed !important;
    bottom: 25% !important;
    left: 3.5% !important;
    transform: none !important;
    z-index: 9999;
    width: 60px !important;
    height: 60px !important;
    background: #7c0000;
    color: #fff;
    border: solid 1px #350000;
    border-radius: 50% !important;
    text-align: center !important;
    text-decoration: none !important;
    font-size: 12px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2), 0 6px 20px rgba(0, 0, 0, .15) !important;
    transition: transform .3s 
ease-in-out !important;
    padding: 0 !important;
}


/*ICONO DEL MENU DE TABS*/
/* ======= NAV TABS – Minimal Premium ======= */
:root{
  --ls-accent: #16a34a;      /* emerald */
  --ls-ink:    #1f2937;      /* slate-800 */
  --ls-ink-2:  #475569;      /* slate-600 */
  --ls-card:   #ffffff;
  --ls-edge:   #e5e7eb;      /* gray-200 */
  --ls-glow:   0 6px 20px rgba(22,163,74,.08);
}

#ls-nav-tabs.loansubmission-tabs{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap: 28px;
  margin: 28px 0 18px;
  padding: 0;
  list-style:none;
}

/* Card button */
#ls-nav-tabs .ls-tab-btn{
  all: unset;
  display:flex;
  align-items:center;
  gap:18px;
  cursor:pointer;
  min-width: 100px;
  padding: 1px 5px;
  background: var(--ls-card);
  position: relative;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

/* subtle accent bar (hidden by default) */
#ls-nav-tabs .ls-tab-btn::after{
  content:"";
  position:absolute;
  left:12px; right:12px; bottom:-1px;
  height:3px;
  background: var(--ls-accent);
  border-radius: 2px;
  opacity:0;
  transform: translateY(4px);
  transition: transform .18s ease, opacity .18s ease;
}

/* icon */
#ls-nav-tabs .ls-tab-icon{
  width: 46px;
  height: 46px;
  object-fit: contain;
  display:block;
}

/* two-line label */
#ls-nav-tabs .ls-tab-btn span{
  display:flex;
  flex-direction:column;
  justify-content:center;
  line-height: 1.08;
  color: var(--ls-ink);
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 16px;   /* tweak here for bigger/smaller */
}

/* hover */
#ls-nav-tabs .ls-tab-btn:hover{
  transform: translateY(-2px);
  border-color: #d1d5db;
  box-shadow: var(--ls-glow);
}
#ls-nav-tabs .ls-tab-btn:hover::after{
  opacity:1;
  transform: translateY(0);
}

/* active (your <li class="active">…) */
#ls-nav-tabs li.active .ls-tab-btn{
  border-color: rgba(22,163,74,.35);
  box-shadow: 0 6px 24px rgba(22,163,74,.12);
}
#ls-nav-tabs li.active .ls-tab-btn::after{
  opacity:1;
  transform: translateY(0);
}

/* focus (keyboard) */
#ls-nav-tabs .ls-tab-btn:focus-visible{
  outline: 3px solid rgba(22,163,74,.35);
  outline-offset: 3px;
  box-shadow: 0 0 0 4px rgba(22,163,74,.16);
}

/* responsive: tighten at smaller widths */
@media (max-width: 720px){
  #ls-nav-tabs .ls-tab-btn{ min-width: 100%; }
  #ls-nav-tabs .ls-tab-icon{ width: 48px; height: 48px; }
  #ls-nav-tabs .ls-tab-btn span{ font-size: 16px; }
}

/* motion-friendly */
@media (prefers-reduced-motion: reduce){
  #ls-nav-tabs .ls-tab-btn,
  #ls-nav-tabs .ls-tab-btn::after{ transition: none; }
}

/*EL ICONO DOWLOAND*/
.lsu-tools .lsu-zip i {
  font-size: 16px;
  color: #ffffff; /* azul primario */
  transition: transform .2s ease, color .2s ease;
}
.lsu-tools .lsu-zip:hover i {
  color: #1e40af;
  transform: translateY(2px);
}
