/* ==========================================================================
   ISHITO · Lista de Cotizaciones en estilo ISOS (14/10/2026)
   Solo apariencia. Alcance: #listaCotizacionesContent
   ========================================================================== */
#listaCotizacionesContent { --lc-azul: #0E4AA4; --lc-osc: #0A2A5E; --lc-nar: #F58220; --lc-borde: #E1E7F1; --lc-t1: #15233D; --lc-t2: #42536F; --lc-t3: #5A6B88; }

/* Encabezado */
body #listaCotizacionesContent .page-header {
  background: var(--lc-osc) !important; background-image: none !important; border: 0 !important;
  border-radius: 16px !important; box-shadow: none !important; padding: 22px 26px !important; margin-bottom: 16px !important;
}
body #listaCotizacionesContent .page-header h3 { color: #FFFFFF !important; font-size: 26px !important; font-weight: 800 !important; display: flex; align-items: center; gap: 12px; }
body #listaCotizacionesContent .page-header h3 i {
  width: 42px; height: 42px; border-radius: 12px; background: var(--lc-nar); color: var(--lc-osc) !important;
  display: inline-flex; align-items: center; justify-content: center; font-size: 19px; margin: 0 !important;
}
body #listaCotizacionesContent .page-header p { color: #C7D4EE !important; font-size: 14px !important; margin-left: 54px !important; opacity: 1 !important; }
body #listaCotizacionesContent .page-header .btn {
  min-height: 42px; padding: 0 18px !important; border-radius: 10px !important; font-weight: 800 !important; font-size: 14px !important;
  display: inline-flex; align-items: center; box-shadow: none !important;
}
body #listaCotizacionesContent .page-header .btn-light { background: var(--lc-nar) !important; border: 0 !important; color: var(--lc-osc) !important; }
body #listaCotizacionesContent .page-header .btn-light:hover { background: #E2711A !important; }
body #listaCotizacionesContent .page-header .btn-outline-light { background: transparent !important; border: 1px solid rgba(255,255,255,0.45) !important; color: #FFFFFF !important; }
body #listaCotizacionesContent .page-header .btn-outline-light:hover { background: rgba(255,255,255,0.10) !important; }

/* Tarjeta principal y filtros */
body #listaCotizacionesContent .cotizaciones-card {
  background: #FFFFFF !important; border: 1px solid var(--lc-borde) !important; border-radius: 16px !important;
  box-shadow: none !important; padding: 22px !important;
}
body #listaCotizacionesContent .search-filters-enhanced {
  background: #F7F9FC !important; border: 1px solid var(--lc-borde) !important; border-radius: 14px !important;
  box-shadow: none !important; padding: 18px 20px !important;
}
body #listaCotizacionesContent .search-filters-enhanced h6 { color: var(--lc-osc) !important; font-size: 15px !important; font-weight: 800 !important; }
body #listaCotizacionesContent .search-filters-enhanced h6 i { color: var(--lc-azul) !important; }
body #listaCotizacionesContent .filter-group label,
body #listaCotizacionesContent .filter-group .form-label { color: #2A3B5A !important; font-size: 12px !important; font-weight: 700 !important; }
body #listaCotizacionesContent .filter-group label i { color: var(--lc-azul) !important; }
body #listaCotizacionesContent .search-filters-enhanced .form-control,
body #listaCotizacionesContent .search-filters-enhanced .form-select {
  min-height: 42px; border: 1px solid #D5DDEA !important; border-radius: 10px !important; background-color: #FFFFFF !important;
  color: var(--lc-t1) !important; font-size: 14px !important; box-shadow: none !important;
}
body #listaCotizacionesContent .search-filters-enhanced .form-control:focus,
body #listaCotizacionesContent .search-filters-enhanced .form-select:focus { border-color: var(--lc-azul) !important; box-shadow: 0 0 0 3px rgba(14,74,164,0.15) !important; }
body #listaCotizacionesContent .search-filters-enhanced .input-group .btn { border-radius: 0 10px 10px 0 !important; background: var(--lc-azul) !important; border-color: var(--lc-azul) !important; color: #FFFFFF !important; }

/* Fila de Buscar / Mes / Año / Dpto / Limpiar / Exportar */
body #listaCotizacionesContent .search-filters-enhanced .d-flex.justify-content-center.gap-3 {
  justify-content: flex-start !important; align-items: center; gap: 10px !important;
}
body #listaCotizacionesContent .search-filters-enhanced .d-flex.justify-content-center.gap-3 > select {
  width: auto !important; flex: 0 1 190px; min-width: 150px; border-radius: 10px !important;
}
body #listaCotizacionesContent .search-filters-enhanced .d-flex.justify-content-center.gap-3 > .btn {
  min-height: 42px; border-radius: 10px !important; font-weight: 800 !important; box-shadow: none !important; display: inline-flex; align-items: center;
}
body #listaCotizacionesContent .search-filters-enhanced .btn-primary { background: var(--lc-azul) !important; border-color: var(--lc-azul) !important; color: #FFFFFF !important; }
body #listaCotizacionesContent .search-filters-enhanced .btn-outline-secondary { background: #FFFFFF !important; border: 1px solid #C9D4E6 !important; color: var(--lc-t2) !important; }
body #listaCotizacionesContent .search-filters-enhanced .btn-outline-info { background: #FFFFFF !important; border: 1px solid #C9D4E6 !important; color: var(--lc-azul) !important; }
body #listaCotizacionesContent .search-filters-enhanced .btn-outline-info:hover,
body #listaCotizacionesContent .search-filters-enhanced .btn-outline-secondary:hover { background: #E7EEFA !important; }
body #listaCotizacionesContent #resultCount { font-weight: 800; color: var(--lc-osc); }
body #listaCotizacionesContent .search-filters-enhanced .badge.bg-light { background: #FFFFFF !important; border-color: var(--lc-borde) !important; border-radius: 999px !important; padding: 8px 14px !important; font-size: 13px !important; box-shadow: none !important; }

/* Tabla */
body #listaCotizacionesContent #tableContainer .table-responsive {
  border: 1px solid var(--lc-borde); border-radius: 14px; overflow-x: auto; background: #FFFFFF;
}
body #listaCotizacionesContent #cotizacionesTable { margin: 0 !important; font-size: 13px !important; color: var(--lc-t1) !important; }
body #listaCotizacionesContent #cotizacionesTable thead th {
  position: sticky; top: 0; z-index: 2;
  background: #F7F9FC !important; color: var(--lc-t2) !important; font-size: 11px !important; font-weight: 800 !important;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 12px 10px !important; border-bottom: 1px solid var(--lc-borde) !important; white-space: nowrap;
}
body #listaCotizacionesContent #cotizacionesTable tbody td {
  padding: 12px 10px !important; vertical-align: middle !important; border-color: #EDF1F7 !important; background-color: transparent;
}
body #listaCotizacionesContent #cotizacionesTable.table-striped > tbody > tr:nth-of-type(odd) > * { --bs-table-accent-bg: #FBFCFE !important; --bs-table-striped-bg: #FBFCFE !important; }
body #listaCotizacionesContent #cotizacionesTable.table-hover > tbody > tr:hover > * { --bs-table-accent-bg: #F1F5FC !important; --bs-table-hover-bg: #F1F5FC !important; }

/* Columna RUC: se muestra bajo la razón social (ishito-lista.js) */
body #listaCotizacionesContent #cotizacionesTable.ix-lc th:nth-child(3),
body #listaCotizacionesContent #cotizacionesTable.ix-lc td:nth-child(3) { display: none; }

.ix-lc-user { font-size: 12px; font-weight: 700; color: var(--lc-t2); white-space: nowrap; }
.ix-lc-cod { font-weight: 800; color: var(--lc-azul); white-space: nowrap; }
.ix-lc-emp { font-weight: 700; color: var(--lc-t1); line-height: 1.3; min-width: 170px; }
.ix-lc-sub { display: block; font-size: 11px; font-weight: 500; color: var(--lc-t3); margin-top: 2px; }
body #listaCotizacionesContent #cotizacionesTable td.ix-lc-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
body #listaCotizacionesContent #cotizacionesTable td.ix-lc-total { font-weight: 800; color: var(--lc-osc); }
body #listaCotizacionesContent #cotizacionesTable td.ix-lc-fecha { white-space: nowrap; color: var(--lc-t2); }
body #listaCotizacionesContent #cotizacionesTable td.col-dpto { font-size: 12px; color: var(--lc-t2); }

/* Tipo de cotización */
body #listaCotizacionesContent #cotizacionesTable td:nth-child(2) .badge {
  background-color: #E7EEFA !important; color: var(--lc-azul) !important; font-size: 10px !important; font-weight: 800 !important;
  letter-spacing: 0.03em; padding: 3px 8px !important; border-radius: 6px !important; margin-bottom: 4px !important;
}
body #listaCotizacionesContent #cotizacionesTable td:nth-child(2) .badge i { display: none; }

/* Normas como etiquetas */
.ix-lc-normas { display: flex; flex-wrap: wrap; gap: 4px; min-width: 200px; max-width: 280px; }
.ix-lc-norma { padding: 2px 7px; border-radius: 6px; background: #EEF2F8; color: #2A3B5A; font-size: 11px; font-weight: 700; white-space: nowrap; }
.ix-lc-norma.sr { background: #FFF0E3; color: #9A4708; }
.ix-lc-sep { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Estado */
body #listaCotizacionesContent .estado-container { min-width: 104px; display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
body #listaCotizacionesContent .estado-container .badge {
  width: auto !important; border-radius: 999px !important; font-size: 12px !important; font-weight: 800 !important; padding: 5px 10px !important; margin: 0 !important;
}
body #listaCotizacionesContent .estado-container .badge.ix-est-nuevo { background: #E7EEFA !important; color: #0E4AA4 !important; }
body #listaCotizacionesContent .estado-container .badge.ix-est-enviada { background: #FDEBDD !important; color: #9A4708 !important; }
body #listaCotizacionesContent .estado-container .badge.ix-est-cerrado { background: #E3F3EA !important; color: #146C43 !important; }
body #listaCotizacionesContent .estado-container .btn {
  min-height: 32px; border-radius: 8px !important; border: 1px solid #C9D4E6 !important; background: #FFFFFF !important;
  color: #146C43 !important; font-size: 11px !important; font-weight: 800 !important; box-shadow: none !important;
}
body #listaCotizacionesContent .estado-container .btn:hover { background: #E3F3EA !important; border-color: #BFE3CE !important; }

/* Acciones */
body #listaCotizacionesContent #cotizacionesTable td:last-child > .d-flex { gap: 6px !important; min-width: 160px; }
body #listaCotizacionesContent #cotizacionesTable td:last-child .btn.rounded-circle {
  width: 34px !important; height: 34px !important; border-radius: 9px !important; padding: 0 !important; margin: 0 !important;
  border: 1px solid #D5DDEA !important; background: #FFFFFF !important; color: var(--lc-azul) !important; box-shadow: none !important;
}
body #listaCotizacionesContent #cotizacionesTable td:last-child .btn.rounded-circle:hover { background: #E7EEFA !important; border-color: #9DB4DC !important; }
body #listaCotizacionesContent #cotizacionesTable td:last-child .btn.rounded-circle[title*="liminar"] { color: #A52A1A !important; }
body #listaCotizacionesContent #cotizacionesTable td:last-child .btn.rounded-circle[title*="liminar"]:hover { background: #FDECEA !important; border-color: #F2B8B0 !important; }
body #listaCotizacionesContent #cotizacionesTable td:last-child .btn.rounded-circle[title*="PDF"] { color: #9A4708 !important; }

/* Paginación */
body #listaCotizacionesContent .pagination .page-link { border-radius: 8px !important; margin: 0 2px; border-color: #D5DDEA !important; color: var(--lc-azul) !important; font-weight: 700; min-width: 36px; text-align: center; }
body #listaCotizacionesContent .pagination .page-item.active .page-link { background: var(--lc-azul) !important; border-color: var(--lc-azul) !important; color: #FFFFFF !important; }

/* Ajustes tras prueba en vivo: que la tabla entre sin desplazamiento lateral */
body #listaCotizacionesContent #cotizacionesTable { min-width: 0 !important; width: 100% !important; }
body #listaCotizacionesContent #cotizacionesTable tbody td { font-size: 13px !important; padding: 10px 8px !important; }
body #listaCotizacionesContent #cotizacionesTable thead th { padding: 11px 8px !important; }
body #listaCotizacionesContent #cotizacionesTable .ix-lc-cod { font-size: 13px !important; }
body #listaCotizacionesContent #cotizacionesTable .ix-lc-sub, body #listaCotizacionesContent #cotizacionesTable .ix-lc-norma { font-size: 11px !important; }
body #listaCotizacionesContent #cotizacionesTable .ix-lc-user { font-size: 12px !important; }
body #listaCotizacionesContent #cotizacionesTable td.ix-lc-fecha { font-size: 12px !important; }
body #listaCotizacionesContent #cotizacionesTable.ix-lc-dinero th:nth-child(8), body #listaCotizacionesContent #cotizacionesTable.ix-lc-dinero td:nth-child(8),
body #listaCotizacionesContent #cotizacionesTable.ix-lc-dinero th:nth-child(9), body #listaCotizacionesContent #cotizacionesTable.ix-lc-dinero td:nth-child(9) { display: none; }
body #listaCotizacionesContent #cotizacionesTable td.ix-lc-total .ix-lc-sub { font-weight: 600; white-space: nowrap; }
.ix-lc-normas { min-width: 180px; max-width: 230px; }
body #listaCotizacionesContent #cotizacionesTable td:last-child > .d-flex { display: grid !important; grid-template-columns: repeat(4, 34px); gap: 6px !important; min-width: 0; }

body #listaCotizacionesContent #cotizacionesTable .ix-lc-user { white-space: normal; display: inline-block; max-width: 84px; line-height: 1.3; }
body #listaCotizacionesContent #cotizacionesTable th:last-child { text-align: left; }

@media (max-width: 700px) {
  body #listaCotizacionesContent .page-header p { margin-left: 0 !important; }
}

/* Tipo auditoría anual (teal, igual que su pantalla) */
body #listaCotizacionesContent #cotizacionesTable td:nth-child(2) .badge.ix-tipo-anual { background-color: #CCFBF1 !important; color: #0D4D47 !important; }

/* Auditoría anual: color propio en la lista (15/10/2026) */
body #listaCotizacionesContent #cotizacionesTable td:nth-child(n) .badge.ix-tipo-anual.ix-tipo-anual, body #listaCotizacionesContent #cotizacionesTable td:nth-child(n) .badge.badge-auditoria-anual.badge-auditoria-anual { background: #146C43 !important; background-color: #146C43 !important; color: #FFFFFF !important; border: 1px solid #146C43 !important; }
body #listaCotizacionesContent #cotizacionesTable td:nth-child(n) .badge.ix-tipo-anual.ix-tipo-anual i, body #listaCotizacionesContent #cotizacionesTable td:nth-child(n) .badge.badge-auditoria-anual.badge-auditoria-anual i { color: #FFFFFF !important; }
body #listaCotizacionesContent #cotizacionesTable tr:has(.ix-tipo-anual) > td:first-child { box-shadow: inset 4px 0 0 #146C43; }
body #listaCotizacionesContent #cotizacionesTable tr:has(.ix-tipo-anual) .ix-lc-cod { color: #146C43 !important; }

/* Cotizaciones repetidas (15/10/2026) */
#listaCotizacionesContent .ix-dup { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: #FDECEA; color: #B42318; border: 1px solid #F3C2BD; font-size: 10.5px; font-weight: 800; white-space: nowrap; cursor: help; }
#listaCotizacionesContent tr.ix-dup-fila > td { background: #FFF8F7 !important; }
#listaCotizacionesContent .ix-dup-aviso { border: 1px solid #F3C2BD; background: #FFF6F5; border-radius: 14px; margin: 0 0 12px; overflow: hidden; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
#listaCotizacionesContent .ix-dup-cab { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
#listaCotizacionesContent .ix-dup-cab > i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: #B42318; color: #FFFFFF; display: inline-flex; align-items: center; justify-content: center; }
#listaCotizacionesContent .ix-dup-cab > div { flex: 1; }
#listaCotizacionesContent .ix-dup-cab b { display: block; color: #8A1C12; font-size: 14px; }
#listaCotizacionesContent .ix-dup-cab small { color: #6B4A47; font-size: 12px; }
#listaCotizacionesContent .ix-dup-cab button { height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid #B42318; background: #FFFFFF; color: #B42318; font: inherit; font-weight: 700; font-size: 13px; cursor: pointer; }
#listaCotizacionesContent .ix-dup-det { display: none; border-top: 1px solid #F3C2BD; max-height: 340px; overflow: auto; background: #FFFFFF; }
#listaCotizacionesContent .ix-dup-aviso.abierto .ix-dup-det { display: block; }
#listaCotizacionesContent .ix-dup-grupo { display: flex; gap: 14px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid #F5E1DF; }
#listaCotizacionesContent .ix-dup-emp { flex: 1 1 280px; }
#listaCotizacionesContent .ix-dup-emp b { display: block; font-size: 13px; color: #0A2A5E; }
#listaCotizacionesContent .ix-dup-emp small { font-size: 11.5px; color: #6B7A93; }
#listaCotizacionesContent .ix-dup-cots { display: flex; flex-direction: column; gap: 4px; flex: 1 1 280px; }
#listaCotizacionesContent .ix-dup-cots span { font-size: 12px; color: #3A4A66; }
#listaCotizacionesContent .ix-dup-cots b { color: #B42318; }
