/* Cheques: en cartera (/cheques/cartera), propios (/cheques/propios) y chequeras (/cheques/chequeras).
   Hoja global (los .razor.css no se cargan); prefijo ch-. Mismo lenguaje visual que
   presupuestos-lista.css (lista), preventas-lista.css (tarjetas en el celular, modales) y gastos.css (KPI).
   .ch-vars: las variables sin el padding de página, para los modales. */
.ch-pagina, .ch-vars {
    --ch-azul: #23548f;
    --ch-azul-hover: #1b4375;
    --ch-azul-claro: #eaf1fa;
    --ch-texto: #1f2328;
    --ch-atenuado: #6b7280;
    --ch-borde: #e5e7eb;
    --ch-naranja: #c2410c;
    --ch-rojo: #b91c1c;
    --ch-verde: #15803d;
    color: var(--ch-texto);
}
.ch-pagina { padding: .5rem .25rem 2rem; }

/* ── Cabecera ── */
.ch-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.ch-cab h1 { margin: 0 0 .25rem; font-size: 1.75rem; font-weight: 700; letter-spacing: -.01em; }
.ch-sub { margin: 0; color: var(--ch-atenuado); font-size: .95rem; }
.ch-cab-acciones { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.ch-link-naranja { border: 0; background: none; padding: 0; color: var(--ch-naranja); font: inherit; cursor: pointer; }
.ch-link-naranja:hover { text-decoration: underline; }

/* ── Botones ── */
.ch-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    height: 44px; padding: 0 1.1rem; border: 1px solid var(--ch-borde); border-radius: 10px;
    background: #fff; color: var(--ch-texto); font-size: .95rem; font-weight: 500; white-space: nowrap; cursor: pointer;
    text-decoration: none; transition: background-color .15s, border-color .15s;
}
.ch-btn:hover:not(:disabled) { background: #f6f7f9; color: var(--ch-texto); }
.ch-btn:disabled { opacity: .6; cursor: default; }
.ch-btn-primario { background: var(--ch-azul); border-color: var(--ch-azul); color: #fff; font-weight: 600; }
.ch-btn-primario:hover:not(:disabled) { background: var(--ch-azul-hover); border-color: var(--ch-azul-hover); color: #fff; }
.ch-btn-contorno { border-color: var(--ch-azul); color: var(--ch-azul); font-weight: 600; }
.ch-btn-contorno:hover:not(:disabled) { background: var(--ch-azul-claro); color: var(--ch-azul); }
.ch-btn-verde { border-color: var(--ch-verde); color: var(--ch-verde); font-weight: 600; }
.ch-btn-verde:hover:not(:disabled) { background: #ecfdf3; color: var(--ch-verde); }
.ch-btn-peligro { background: #dc2626; border-color: #dc2626; color: #fff; font-weight: 600; }
.ch-btn-peligro:hover:not(:disabled) { background: #b91c1c; border-color: #b91c1c; color: #fff; }
.ch-btn-sm { height: 34px; padding: 0 .8rem; border-radius: 8px; font-size: .88rem; }
.ch-mas { width: 34px; height: 34px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--ch-atenuado); font-size: 1.1rem; cursor: pointer; }
.ch-mas:hover { background: #f3f4f6; color: var(--ch-texto); }
.ch-mas-espacio { flex: 0 0 34px; width: 34px; }
.ch-pagina .form-check-input:checked { background-color: var(--ch-azul); border-color: var(--ch-azul); }
.ch-link { border: 0; background: none; padding: 0; color: var(--ch-azul); font-size: .9rem; cursor: pointer; }
.ch-link:hover { text-decoration: underline; }

/* ── KPI ── */
.ch-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.ch-kpi { min-width: 0; padding: 1rem 1.15rem; border: 1px solid var(--ch-borde); border-radius: 14px; background: #fff; }
.ch-kpi-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; color: var(--ch-atenuado); font-size: .9rem; }
.ch-kpi-top i { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 9px; background: var(--ch-azul-claro); color: var(--ch-azul); font-size: 1rem; }
.ch-kpi-valor { margin: .3rem 0 .1rem; font-size: 1.5rem; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ch-kpi small { display: block; color: var(--ch-atenuado); font-size: .84rem; }
.ch-kpi-verde .ch-kpi-top i { background: #ecfdf3; color: var(--ch-verde); }
.ch-kpi-ambar .ch-kpi-top i { background: #fff7ed; color: var(--ch-naranja); }
.ch-kpi-rojo .ch-kpi-top i { background: #fef2f2; color: var(--ch-rojo); }
.ch-kpi-rojo .ch-kpi-valor.con-valor { color: var(--ch-rojo); }
.ch-kpi-ambar .ch-kpi-valor.con-valor { color: var(--ch-naranja); }

/* ── Tarjeta, pestañas por estado y herramientas ── */
.ch-tarjeta { background: #fff; border: 1px solid var(--ch-borde); border-radius: 14px; overflow: hidden; }
.ch-tabs { display: flex; gap: 1.4rem; padding: 0 1.25rem; border-bottom: 1px solid var(--ch-borde); overflow-x: auto; scrollbar-width: none; }
.ch-tabs::-webkit-scrollbar { display: none; }
.ch-tab {
    display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; flex: 0 0 auto;
    padding: .8rem 0 .65rem; border: 0; border-bottom: 2px solid transparent; background: none;
    color: var(--ch-atenuado); font-size: .95rem; white-space: nowrap; cursor: pointer; text-align: left;
}
.ch-tab-nombre span { margin-left: .2rem; color: var(--ch-atenuado); font-weight: 400; }
.ch-tab small { font-size: .78rem; color: var(--ch-atenuado); font-variant-numeric: tabular-nums; }
.ch-tab.activa { color: var(--ch-texto); font-weight: 600; border-bottom-color: var(--ch-texto); }
.ch-tab.activa small { color: #374151; font-weight: 500; }
.ch-tab:hover:not(.activa) { color: var(--ch-texto); }

.ch-herramientas { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem .75rem; padding: .75rem 1.25rem; border-bottom: 1px solid var(--ch-borde); }
.ch-buscar { position: relative; flex: 1 1 260px; max-width: 380px; min-width: 0; }
.ch-buscar i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ch-atenuado); }
.ch-buscar input { width: 100%; height: 40px; padding: 0 .8rem 0 2.3rem; border: 1px solid var(--ch-borde); border-radius: 10px; font-size: .92rem; background: #fff; }
.ch-buscar input:focus { outline: none; border-color: var(--ch-azul); box-shadow: 0 0 0 3px rgba(35, 84, 143, .15); }
.ch-btn-filtros { height: 40px; padding: 0 .85rem; font-size: .9rem; }
.ch-btn-filtros.abierto { border-color: var(--ch-azul); color: var(--ch-azul); background: var(--ch-azul-claro); }
.ch-filtros-cant { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 .35rem; border-radius: 10px; background: var(--ch-azul); color: #fff; font-size: .75rem; font-weight: 600; }
.ch-filtros-flecha { font-size: .8rem; color: var(--ch-atenuado); }
.ch-mostrar-todos { display: inline-flex; align-items: center; gap: .5rem; margin: 0; padding-left: 0; font-size: .9rem; cursor: pointer; white-space: nowrap; }
.ch-mostrar-todos .form-check-input { float: none; margin: 0; width: 2.2rem; height: 1.2rem; cursor: pointer; }
.ch-ocultos { color: var(--ch-atenuado); font-size: .85rem; white-space: nowrap; }
.ch-herramientas-der { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-left: auto; }

.ch-filtros {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .85rem 1rem; align-items: end;
    padding: 1rem 1.25rem; background: #fafbfc; border-bottom: 1px solid var(--ch-borde);
}
.ch-filtro { display: flex; flex-direction: column; gap: .3rem; margin: 0; min-width: 0; }
.ch-filtro > span { font-size: .8rem; font-weight: 500; color: var(--ch-atenuado); }
.ch-filtro .form-control, .ch-filtro .form-select { height: 44px; border-radius: 10px; border-color: var(--ch-borde); }
.ch-filtro .input-group .form-control, .ch-filtro .input-group .input-group-text, .ch-filtro .input-group .btn { height: 44px; }
.ch-filtro-ancho { grid-column: span 2; }
.ch-filtros-limpiar { justify-self: start; align-self: center; }

/* ── Tabla ── */
.ch-tabla-contenedor { position: relative; overflow-x: auto; }
.ch-tabla { width: 100%; min-width: 760px; border-collapse: collapse; table-layout: fixed; font-size: .93rem; }
.ch-tabla th { padding: .75rem .6rem; font-size: .82rem; font-weight: 500; color: var(--ch-atenuado); text-align: left; border-bottom: 1px solid var(--ch-borde); white-space: nowrap; }
.ch-tabla td { padding: .7rem .6rem; border-bottom: 1px solid #f0f1f3; vertical-align: middle; }
.ch-tabla th:first-child, .ch-tabla td:first-child { padding-left: 1.25rem; }
.ch-tabla th:last-child, .ch-tabla td:last-child { padding-right: 1rem; }
.ch-tabla tbody tr:hover { background: #fafbfc; }
.ch-tabla td small { display: block; color: var(--ch-atenuado); font-size: .8rem; }
.ch-tabla tfoot td { border-bottom: 0; background: #fafbfc; font-weight: 600; }

.ch-numero { font-weight: 600; letter-spacing: .02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* Anchos fijos (table-layout: fixed): el cliente/proveedor toma el espacio que sobra y corta con … */
.ch-entidad { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ch-col-entidad small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-col-cheque { width: 185px; }
.ch-col-cheque small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-col-fecha { width: 105px; white-space: nowrap; color: #374151; }
.ch-col-vence { width: 180px; }
.ch-col-vence > span { font-weight: 500; white-space: nowrap; }
.ch-col-estado { width: 135px; overflow-wrap: anywhere; }
.ch-col-estado small { white-space: normal; }
.ch-col-monto { width: 140px; text-align: right !important; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.ch-col-acciones { width: 190px; white-space: nowrap; }
.ch-tabla-chequeras .ch-col-acciones { width: 150px; }
.ch-tabla-chequeras .ch-col-cheque { width: auto; }
.ch-tabla-chequeras .ch-col-ultimo { width: 130px; }
.ch-acciones { display: flex; align-items: center; justify-content: flex-end; gap: .4rem; }
/* La emisión solo con pantalla ancha: en notebooks la tabla no entra */
@media (max-width: 1439.98px) { .ch-tabla .ch-col-emision { display: none; } }

/* Aviso de vencimiento (ChequesVista.Vencimiento) */
.ch-aviso-pronto { color: #b45309 !important; font-weight: 500; }
.ch-aviso-hoy { color: var(--ch-naranja) !important; font-weight: 600; }
.ch-aviso-vencido { color: var(--ch-rojo) !important; font-weight: 600; }
.ch-aviso-cobro { color: var(--ch-azul) !important; }

/* Estado: punto de color */
.ch-estado { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; font-weight: 500; }
.ch-estado::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: #9ca3af; }
.ch-estado-pendiente::before { background: #d97706; }
.ch-estado-enfecha::before { background: #2563eb; }
.ch-estado-vencido { color: var(--ch-naranja); }
.ch-estado-vencido::before { background: var(--ch-naranja); }
.ch-estado-depositado::before { background: #0891b2; }
.ch-estado-endosado::before { background: #7c3aed; }
.ch-estado-pago::before, .ch-estado-levantado::before { background: #16a34a; }
.ch-estado-rechazado { color: var(--ch-rojo); }
.ch-estado-rechazado::before { background: #dc2626; }
.ch-estado-extraviado::before { background: #374151; }
.ch-estado-anulado, .ch-estado-eliminado, .ch-estado-inactiva { color: var(--ch-atenuado); }
.ch-estado-anulado::before, .ch-estado-inactiva::before { background: #9ca3af; }
.ch-estado-eliminado::before { background: transparent; border: 1.5px solid #9ca3af; }
.ch-estado-activa::before { background: #16a34a; }

.ch-fila-eliminada td { color: var(--ch-atenuado); }
.ch-fila-eliminada .ch-numero, .ch-fila-eliminada .ch-col-monto { text-decoration: line-through; text-decoration-color: #c4c9d0; }
.ch-fila-cerrada .ch-col-monto { font-weight: 500; color: #4b5563; }

.ch-pie { display: flex; justify-content: space-between; align-items: center; gap: .5rem 1rem; flex-wrap: wrap; padding: .8rem 1.25rem; background: #fafbfc; color: var(--ch-atenuado); font-size: .88rem; }
.ch-pie strong { color: var(--ch-texto); font-variant-numeric: tabular-nums; }
.ch-vacio { padding: 3rem 1rem; text-align: center; color: var(--ch-atenuado); }
.ch-vacio > i { display: block; font-size: 2rem; color: #c4c9d0; margin-bottom: .4rem; }
.ch-vacio .ch-btn { margin-top: .85rem; }

/* Chequeras */
.ch-proximo { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--ch-azul-claro); color: var(--ch-azul); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ── Modales (formulario, cambio de estado, confirmaciones) ── */
.ch-modal { background-color: rgba(17, 24, 39, .45); }
.ch-modal .modal-content { border: 0; border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.ch-modal .modal-header { padding: 1rem 1.25rem; border-bottom: 1px solid var(--ch-borde); }
.ch-modal .modal-title { font-weight: 700; font-size: 1.1rem; }
.ch-modal .modal-body { padding: 1.15rem 1.25rem; }
.ch-modal .modal-footer { padding: .85rem 1.25rem; border-top: 1px solid var(--ch-borde); gap: .5rem; }
.ch-modal .modal-footer > * { margin: 0; }
.ch-modal-sub { display: block; margin-top: .1rem; color: var(--ch-atenuado); font-size: .85rem; font-weight: 400; }

.ch-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1rem; }
.ch-campo { display: flex; flex-direction: column; gap: .35rem; margin: 0; min-width: 0; }
.ch-campo-ancho { grid-column: 1 / -1; }
.ch-campo > label, .ch-campo > .ch-etiqueta { margin: 0; font-size: .85rem; font-weight: 600; color: #374151; }
.ch-campo > label .ch-req, .ch-campo > .ch-etiqueta .ch-req { color: var(--ch-rojo); }
.ch-campo .form-control, .ch-campo .form-select { height: 44px; border-radius: 10px; border-color: var(--ch-borde); }
.ch-campo .input-group .form-control, .ch-campo .input-group .input-group-text, .ch-campo .input-group .btn { height: 44px; }
.ch-campo .form-control:focus, .ch-campo .form-select:focus { border-color: var(--ch-azul); box-shadow: 0 0 0 3px rgba(35, 84, 143, .15); }
.ch-ayuda { margin: 0; color: var(--ch-atenuado); font-size: .8rem; }
.ch-importe { position: relative; }
.ch-importe .form-control { padding-left: 1.9rem; font-size: 1.2rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.ch-importe::before { content: "$"; position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ch-atenuado); font-weight: 600; z-index: 1; }
.ch-segmento { display: flex; padding: .2rem; border: 1px solid var(--ch-borde); border-radius: 10px; background: #f6f7f9; height: 44px; }
.ch-segmento button { flex: 1 1 0; display: inline-flex; align-items: center; justify-content: center; gap: .35rem; border: 0; border-radius: 8px; background: transparent; color: var(--ch-atenuado); font-size: .9rem; font-weight: 500; cursor: pointer; }
.ch-segmento button.activo { background: #fff; color: var(--ch-texto); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ch-nota { display: flex; gap: .6rem; align-items: flex-start; padding: .7rem .9rem; border-radius: 10px; background: #f6f7f9; color: var(--ch-atenuado); font-size: .86rem; }
.ch-nota i { color: var(--ch-azul); margin-top: .1rem; }
.ch-error { display: flex; gap: .5rem; align-items: flex-start; padding: .65rem .85rem; border-radius: 10px; background: #fef2f2; color: var(--ch-rojo); font-size: .9rem; }
.ch-cliente-elegido { display: flex; align-items: center; justify-content: space-between; gap: .5rem; height: 44px; padding: 0 .4rem 0 .85rem; border: 1px solid var(--ch-borde); border-radius: 10px; background: #fafbfc; min-width: 0; }
.ch-cliente-elegido > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-cliente-elegido small { margin-left: .4rem; color: var(--ch-atenuado); }
.ch-sugerencias { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 1080; max-height: 300px; overflow-y: auto; border: 1px solid var(--ch-borde); border-radius: 10px; background: #fff; box-shadow: 0 10px 24px rgba(0, 0, 0, .12); }
.ch-sugerencias button { display: block; width: 100%; padding: .55rem .85rem; border: 0; border-bottom: 1px solid #f0f1f3; background: #fff; text-align: left; color: var(--ch-texto); cursor: pointer; }
.ch-sugerencias button:last-child { border-bottom: 0; }
.ch-sugerencias button.activa, .ch-sugerencias button:hover { background: var(--ch-azul-claro); }
.ch-sugerencias strong { display: block; font-weight: 600; }
.ch-sugerencias small { color: var(--ch-atenuado); }
.ch-switch { display: flex; align-items: flex-start; gap: .75rem; margin: 0; padding: .75rem .9rem; border: 1px solid var(--ch-borde); border-radius: 10px; cursor: pointer; }
.ch-switch .form-check-input { float: none; flex: 0 0 auto; margin: .15rem 0 0; width: 2.4rem; height: 1.3rem; cursor: pointer; }
.ch-switch strong { display: block; font-size: .95rem; }
.ch-switch small { color: var(--ch-atenuado); font-size: .82rem; }

/* Resumen del cheque dentro de los modales */
.ch-resumen { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .85rem 1rem; border: 1px solid var(--ch-borde); border-radius: 12px; background: #fafbfc; }
.ch-resumen > div:first-child { min-width: 0; }
.ch-resumen strong { display: block; font-variant-numeric: tabular-nums; }
.ch-resumen span { display: block; color: #4b5563; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-resumen .ch-estado { display: inline-flex; margin-top: .2rem; font-size: .85rem; }
.ch-resumen-monto { text-align: right; font-weight: 700; font-size: 1.15rem; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Opciones de estado (tarjetas tipo radio) */
.ch-opciones { display: grid; gap: .5rem; }
.ch-opcion {
    display: flex; align-items: flex-start; gap: .8rem; width: 100%; padding: .75rem .9rem; text-align: left;
    border: 1px solid var(--ch-borde); border-radius: 12px; background: #fff; color: var(--ch-texto); cursor: pointer;
}
.ch-opcion:hover { border-color: #b8cbe3; background: #f9fbfe; }
.ch-opcion.activa { border-color: var(--ch-azul); background: #f3f7fc; box-shadow: 0 0 0 1px var(--ch-azul) inset; }
.ch-opcion strong { display: block; font-size: .95rem; }
.ch-opcion small { display: block; margin-top: .1rem; color: var(--ch-atenuado); font-size: .83rem; line-height: 1.35; }
.ch-opcion-icono { flex: 0 0 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; background: #f3f4f6; color: #4b5563; font-size: 1rem; }
.ch-opcion.activa .ch-opcion-icono { background: var(--ch-azul); color: #fff; }
.ch-opcion-check { margin-left: auto; align-self: center; color: var(--ch-azul); font-size: 1.15rem; visibility: hidden; }
.ch-opcion.activa .ch-opcion-check { visibility: visible; }

/* Modales por encima de la barra lateral */
.main-content:has(.ch-pagina .modal.show), .main-content:has(.ch-pagina ~ .modal.show) { z-index: 10000; }

@media (max-width: 991.98px) {
    .ch-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Celular: cada cheque es una tarjeta ── */
@media (max-width: 767.98px) {
    .ch-cab h1 { font-size: 1.45rem; }
    .ch-cab-acciones { width: 100%; }
    .ch-cab-acciones > * { flex: 1 1 0; min-width: 0; }
    .ch-cab-acciones .ch-btn, .ch-cab-acciones .dropdown > button { width: 100%; }
    /* El botón principal primero y a todo el ancho; los secundarios comparten la fila de abajo */
    .ch-cab-acciones > .ch-btn-primario { order: -1; flex-basis: 100%; }
    .ch-kpis { gap: .6rem; }
    .ch-kpi { padding: .8rem .85rem; }
    .ch-kpi-top { font-size: .82rem; }
    .ch-kpi-top i { flex-basis: 28px; width: 28px; height: 28px; font-size: .9rem; }
    .ch-kpi-valor { font-size: 1.08rem; white-space: normal; overflow-wrap: anywhere; }
    .ch-kpi small { font-size: .78rem; }
    .ch-tabs { padding: 0 1rem; gap: 1.1rem; }
    .ch-herramientas { padding: .65rem 1rem; }
    .ch-buscar { flex: 1 1 100%; max-width: none; }
    .ch-herramientas-der { margin-left: 0; width: 100%; justify-content: space-between; }
    .ch-filtros { grid-template-columns: 1fr 1fr; padding: .85rem 1rem; }
    .ch-filtro-ancho { grid-column: 1 / -1; }
    .ch-pie { padding: .75rem 1rem; }

    .ch-tabla { min-width: 0 !important; }
    .ch-tabla thead { display: none; }
    .ch-tabla, .ch-tabla tbody, .ch-tabla tfoot { display: block; }
    .ch-tabla tr {
        display: grid; grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "cheque monto"
            "entidad estado"
            "vence vence"
            "acciones acciones";
        gap: .25rem .75rem; padding: .85rem 1rem; border-bottom: 1px solid #f0f1f3;
    }
    .ch-tabla td { display: block; padding: 0 !important; border: 0 !important; width: auto !important; min-width: 0; max-width: none; }
    .ch-tabla td.ch-col-cheque { grid-area: cheque; }
    .ch-tabla td.ch-col-cheque small { display: block; }
    .ch-tabla td.ch-col-entidad { grid-area: entidad; }
    .ch-tabla td.ch-col-emision { display: none; }
    .ch-tabla td.ch-col-vence { grid-area: vence; white-space: normal; }
    .ch-tabla td.ch-col-vence > span::before { content: attr(data-etiqueta) " "; color: var(--ch-atenuado); font-weight: 400; }
    .ch-tabla td.ch-col-vence small { display: inline; margin-left: .35rem; }
    .ch-tabla td.ch-col-vence small::before { content: "· "; color: var(--ch-atenuado); }
    .ch-tabla td.ch-col-estado { grid-area: estado; justify-self: end; max-width: 52vw; text-align: right; font-size: .87rem; }
    .ch-tabla td.ch-col-estado small { text-align: right; }
    .ch-tabla td.ch-col-monto { grid-area: monto; font-size: 1.02rem; }
    .ch-tabla td.ch-col-acciones { grid-area: acciones; margin-top: .4rem; }
    .ch-tabla .ch-acciones { justify-content: flex-start; }
    .ch-tabla .ch-acciones .ch-btn { flex: 1 1 auto; }
    .ch-tabla tbody tr:hover { background: transparent; }
    .ch-tabla tfoot tr { grid-template-areas: "cheque monto"; background: #fafbfc; }
    .ch-tabla tfoot td.ch-total-etiqueta { grid-area: cheque; text-align: left !important; }
    .ch-tabla tfoot td.ch-col-monto { grid-area: monto; }
    .ch-tabla tfoot td:not(.ch-total-etiqueta):not(.ch-col-monto) { display: none; }

    /* Chequeras: la fila tiene nombre, número y estado */
    .ch-tabla-chequeras tr {
        grid-template-areas:
            "cheque estado"
            "vence vence"
            "acciones acciones";
    }
    .ch-tabla-chequeras td.ch-col-ultimo, .ch-tabla-chequeras td.ch-col-emision { display: none; }

    .ch-form { grid-template-columns: 1fr; }
    .ch-modal .modal-dialog { margin: .75rem; }
    .ch-resumen { flex-wrap: wrap; }
}
