/**
 * VENTAS / listado unificado — copia VERBATIM del bloque <style> de
 * om-agencias/includes/ventas-modulo.php (lineas 1605-2337).
 *
 * La pantalla de Ventas de OM NO es el listado de cotizaciones: usa su propia
 * familia .omv-* (KPIs con flecha, pestanas, selector de periodo, tabla con
 * pildora de estado y grafica de tendencia). Portar el listado de cotizaciones
 * y llamarlo Ventas era la pantalla equivocada.
 *
 * Si cambia alla, cambia aqui EN EL MISMO CAMBIO.
 */

    .omv-app { font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif; color: #18181b; }
    .omv-app * { box-sizing: border-box; }

    /* TABS */
    .omv-tabs {
        display: flex;
        gap: 0;
        border-bottom: 1px solid #e4e4e7;
        margin-bottom: 24px;
        padding-left: 4px;
    }
    .omv-tab {
        padding: 12px 18px;
        font-size: 14px;
        font-weight: 600;
        color: #71717a;
        text-decoration: none !important;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
        transition: color 0.15s, border-color 0.15s;
    }
    .omv-tab:hover { color: #18181b; }
    .omv-tab.is-active {
        color: #29108F;
        border-bottom-color: #29108F;
    }

    /* PAGE TITLE BAR */
    .omv-page-bar {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    .omv-page-title h2 {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #18181b;
        letter-spacing: -0.01em;
    }
    .omv-page-sub {
        display: block;
        font-size: 13px;
        color: #71717a;
        margin-top: 4px;
    }
    .omv-page-actions { display: flex; gap: 8px; flex-wrap: wrap; }

    /* PERIODO SELECTOR + CHART: compartidos con el Home (Home parte 2) */
    <?php echo omagen_pulso_shared_css(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>

    /* BUTTONS */
    .omv-btn {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        font-size: 13px;
        font-weight: 600;
        border-radius: 7px;
        border: 1px solid transparent;
        cursor: pointer;
        text-decoration: none !important;
        font-family: inherit;
        transition: all 0.15s;
    }
    .omv-btn-primary {
        background: #29108F;
        color: #fff;
        border-color: #29108F;
    }
    .omv-btn-primary:hover { background: #1d0a66; color: #fff; }
    .omv-btn-ghost {
        background: #fff;
        color: #29108F;
        border-color: #29108F;
    }
    .omv-btn-ghost:hover { background: #f1edfb; border-color: #29108F; color: #29108F; }

    /* KPIs */
    .omv-kpis {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-bottom: 20px;
    }
    @media (max-width: 900px) { .omv-kpis { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 500px) { .omv-kpis { grid-template-columns: 1fr; } }
    .omv-kpi {
        background: var(--om-surface, #fff);
        border: 1px solid var(--om-borde-tarjeta, #e4e4e7);
        border-radius: 10px;
        padding: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.15s;
    }
    .omv-kpi-link {
        text-decoration: none !important;
        color: inherit;
        cursor: pointer;
        position: relative;
    }
    .omv-kpi-link:hover {
        border-color: #C7BDEB;
        box-shadow: 0 4px 12px rgba(41,16,143,0.08);
        transform: translateY(-1px);
    }
    .omv-kpi-link .omv-kpi-arrow {
        position: absolute;
        top: 50%;
        right: 14px;
        transform: translateY(-50%);
        color: #d4d4d8;
        transition: color 0.15s, transform 0.15s;
    }
    .omv-kpi-link:hover .omv-kpi-arrow {
        color: #29108F;
        transform: translateY(-50%) translateX(2px);
    }
    .omv-kpi-icon {
        width: 36px; height: 36px;
        border-radius: 8px;
        display: flex; align-items: center; justify-content: center;
        flex-shrink: 0;
    }
    .omv-kpi-icon-purple { background: #F1EDFB; color: #29108F; }
    .omv-kpi-icon-green  { background: #d1fae5; color: #10b981; }
    .omv-kpi-icon-blue   { background: #dbeafe; color: #3b82f6; }
    .omv-kpi-icon-amber  { background: #fef3c7; color: #f59e0b; }
    .omv-kpi-body { flex: 1; min-width: 0; padding-right: 14px; }
    .omv-kpi-label {
        font-size: 10px;
        font-weight: 700;
        color: var(--om-gris-ayuda, #576478);
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 2px;
    }
    .omv-kpi-value {
        font-size: 22px;
        font-weight: 800;
        color: #18181b;
        line-height: 1.2;
        letter-spacing: -0.02em;
    }
    .omv-kpi-meta {
        font-size: 11px;
        color: #71717a;
        margin-top: 2px;
    }

    /* GRID 2 COLUMNS */
    .omv-grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    @media (max-width: 900px) { .omv-grid-2 { grid-template-columns: 1fr; } }

    /* CARD */
    .omv-card {
        background: #fff;
        border: 1px solid #e4e4e7;
        border-radius: 10px;
        padding: 18px 20px;
    }
    .omv-card-head {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
        margin-bottom: 14px;
    }
    .omv-card-title {
        margin: 0;
        font-size: 14px;
        font-weight: 700;
        color: #18181b;
    }
    .omv-card-sub {
        font-size: 11px;
        color: var(--om-gris-ayuda, #576478);
        font-weight: 500;
    }

    /* TOP LIST */
    .omv-top-list { display: flex; flex-direction: column; gap: 12px; }
    .omv-top-row {
        display: flex;
        align-items: center;
        gap: 12px;
    }
    .omv-top-rank {
        width: 26px;
        height: 26px;
        flex-shrink: 0;
        background: #F1EDFB;
        color: #29108F;
        font-size: 11px;
        font-weight: 700;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .omv-top-body { flex: 1; min-width: 0; }
    .omv-top-name {
        font-size: 13px;
        font-weight: 600;
        color: #18181b;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        margin-bottom: 5px;
    }
    .omv-top-bar-bg {
        height: 5px;
        background: #f3f4f6;
        border-radius: 3px;
        overflow: hidden;
    }
    .omv-top-bar-fill {
        height: 100%;
        background: linear-gradient(90deg, #29108F 0%, #5C1F9E 100%);
        border-radius: 3px;
    }
    .omv-top-amount {
        text-align: right;
        font-size: 12px;
        flex-shrink: 0;
        min-width: 70px;
    }
    .omv-top-amount strong {
        display: block;
        font-size: 13px;
        color: #18181b;
        font-variant-numeric: tabular-nums;
    }
    .omv-top-amount span {
        font-size: 10px;
        color: var(--om-gris-ayuda, #576478);
    }

    /* CHART: reglas movidas a omagen_pulso_shared_css() (impreso arriba, junto al
       selector de periodo) — compartidas con el Home. */

    /* Top servicios — dona */
    .omv-donut-wrap { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
    .omv-donut { width: 150px; height: 150px; flex-shrink: 0; transform: rotate(0deg); }
    .omv-donut circle { transition: stroke-dashoffset .3s; }
    .omv-donut-total { font-size: 6px; font-weight: 800; fill: #18181b; }
    .omv-donut-cap { font-size: 2.6px; font-weight: 600; fill: #9ca3af; text-transform: uppercase; letter-spacing: 0.08em; }
    .omv-donut-legend { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: 8px; }
    .omv-donut-leg-row { display: flex; align-items: center; gap: 8px; font-size: 13px; }
    .omv-donut-leg-name { color: #3f3f46; font-weight: 600; }
    .omv-donut-leg-val { margin-left: auto; color: #71717a; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .omv-rank-sub { margin: 0 0 10px; font-size: 14px; font-weight: 600; color: #29108F; }

    /* FILTROS: patrón único .omflt (om-filtros.css del theme, 16-jul).
       Las reglas propias del listado se retiraron — la hoja compartida manda. */

    /* TABLE */
    .omv-table-card {
        background: var(--om-surface, #fff);
        border: 1px solid var(--om-borde-tarjeta, #e4e4e7);
        border-radius: 10px;
        overflow: hidden;
    }
    .omv-table-wrap { overflow-x: auto; }
    .omv-table {
        width: 100%;
        border-collapse: collapse;
        font-size: 13px;
    }
    .omv-table thead {
        background: var(--om-primary);
        color: var(--om-surface);
    }
    .omv-table thead th {
        color: var(--om-surface);   /* A96: la cabecera declara su color; antes lo heredaba y el th global lo pisaba */
        text-align: left;
        padding: 9px 12px;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        white-space: nowrap;
    }
    .omv-table .omv-th-num { text-align: right; }
    .omv-table tbody td {
        padding: 10px 12px;
        border-bottom: 1px solid #f3f4f6;
        color: #3f3f46;
        vertical-align: middle;
    }
    .omv-table tbody tr.omv-row { cursor: pointer; transition: background 0.1s; }
    .omv-table tbody tr.omv-row:hover { background: #faf5ff; }
    .omv-table tbody tr:last-child td { border-bottom: none; }

    .omv-folio {
        font-family: ui-monospace, 'SF Mono', Menlo, monospace;
        font-size: 12px;
        font-weight: 700;
        color: #29108F;
    }
    .omv-tag {
        display: inline-block;
        padding: 2px 8px;
        font-size: 11px;
        font-weight: 600;
        border-radius: 5px;
        white-space: nowrap;
    }
    .omv-tag-purple { background: #f1edfb; color: #29108F; }
    .omv-tag-gray   { background: #f3f4f6; color: #52525b; }
    .omv-tag-mas    { font-weight: 700; opacity: 0.65; font-size: 10px; }
    /* CANCELADA: se baja el CONTRASTE DEL TEXTO, no la opacidad de la fila.
       La opacidad apagaba tambien la pildora de estatus —justo lo unico que
       debe seguir legible— y ensuciaba el hover. Con `color` no hace falta
       excluir nada: la pildora y el saldo del cliente llevan su color en
       atributo `style`, asi que quedan intactos por si solos. La fila conserva
       su hover.

       ESPECIFICIDAD: hay que repetir `.omv-table tbody`. La regla base
       `.omv-table tbody td` vale (0,1,2) y un `.omv-row-cancelada td` solo
       (0,1,1), asi que perdia y el gris NO se aplicaba: la fila seguia en
       #3f3f46 y solo PARECIA apagada por la pildora gris de «Cancelada».
       Medido en pantalla, no supuesto. */
    .omv-table tbody tr.omv-row-cancelada td { color: #6e7787; }
    .omv-table tbody tr.omv-row-cancelada .omc-folio-link,
    .omv-table tbody tr.omv-row-cancelada .omv-folio { color: #6e7787; }
    .omv-table tbody tr.omv-row-cancelada td strong { font-weight: 600; }

    .omv-td-cliente { display: flex; align-items: center; min-width: 0; }
    .omv-td-cliente-text { min-width: 0; flex: 1; }
    .omv-td-cliente-text strong {
        display: block;
        color: #18181b;
        font-weight: 600;
        font-size: 13px;
    }
    .omv-td-cliente-text span {
        display: block;
        color: var(--om-gris-ayuda, #576478);
        font-size: 11px;
        margin-top: 1px;
    }
    .omv-td-fecha { font-size: 12px; white-space: nowrap; }
    .omv-fecha-vencida {
        color: var(--om-danger) !important;   /* A96: #ef4444 daba 3.61:1 */
        font-weight: 700;
    }
    .omv-fecha-vencida small {
        display: block;
        font-size: 10px;
        font-weight: 600;
        opacity: 0.85;
    }
    .omv-sub-vivo { color: #18181b; font-variant-numeric: tabular-nums; }
    .omv-status-pill {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 3px 9px;
        border-radius: 10px;
        font-size: 11px;
        font-weight: 600;
        white-space: nowrap;
    }
    .omv-status-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }
    .omv-td-num {
        text-align: right;
        font-variant-numeric: tabular-nums;
        color: #18181b;
    }
    .omv-td-acciones { text-align: right; padding-right: 14px !important; }
    .omv-row-arrow {
        display: inline-flex;
        width: 28px;
        height: 28px;
        align-items: center;
        justify-content: center;
        border-radius: 6px;
        color: #71717a;
        text-decoration: none;
    }
    .omv-row-arrow:hover { background: #f1edfb; color: #29108F; }

    .omv-empty {
        padding: 50px 20px;
        text-align: center;
        color: var(--om-gris-ayuda, #576478);
    }
    .omv-empty p { margin: 12px 0 0; font-size: 13px; }
    .omv-empty-mini {
        padding: 30px 12px;
        text-align: center;
    }
    .omv-empty-mini p { margin: 0; font-size: 12px; color: var(--om-gris-ayuda, #576478); font-style: italic; }
    /* .omv-table-foot murió (16-jul): el conteo vive bajo la barra .omflt. */

    /* CALENDARIO */
    .omv-cal-nav {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: #fafafa;
        border: 1px solid #e4e4e7;
        border-radius: 8px;
        padding: 4px;
    }
    .omv-cal-arrow {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 6px;
        color: #71717a;
        text-decoration: none;
        transition: all 0.15s;
    }
    .omv-cal-arrow:hover { background: #fff; color: #29108F; }
    .omv-cal-mes {
        padding: 0 14px;
        font-size: 13px;
        font-weight: 700;
        color: #18181b;
        min-width: 140px;
        text-align: center;
        text-transform: capitalize;
    }
    .omv-cal-card { padding: 16px; }
    .omv-cal-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
    }
    .omv-cal-day-h {
        padding: 8px 4px;
        text-align: center;
        font-size: 10px;
        font-weight: 700;
        color: var(--om-gris-ayuda, #576478);
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }
    .omv-cal-cell {
        min-height: 76px;
        padding: 6px 8px;
        background: #fafafa;
        border: 1px solid #e4e4e7;
        border-radius: 6px;
        position: relative;
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    .omv-cal-empty { background: transparent; border-color: transparent; }
    .omv-cal-num {
        font-size: 12px;
        font-weight: 600;
        color: #52525b;
    }
    .omv-cal-cell.is-today {
        background: #eff6ff;
        border-color: #3b82f6;
    }
    .omv-cal-cell.is-today .omv-cal-num {
        color: var(--om-primary);   /* A96: #3b82f6 sobre #eff6ff daba 3.38:1 */
        font-weight: 800;
    }
    .omv-cal-cell.has-pendientes {
        background: #fffbeb;
        border-color: #fde68a;
    }
    .omv-cal-cell.has-pagadas {
        background: #f0fdf4;
        border-color: #bbf7d0;
    }
    .omv-cal-cell.has-vencidas {
        background: #fef2f2;
        border-color: #fecaca;
    }
    .omv-cal-info {
        display: flex;
        flex-direction: column;
        gap: 1px;
        font-size: 10px;
    }
    .omv-cal-cnt {
        font-weight: 700;
        color: #18181b;
    }
    .omv-cal-amt {
        color: #71717a;
        font-variant-numeric: tabular-nums;
    }
    .omv-cal-cell.has-pendientes .omv-cal-cnt { color: #b45309; }
    .omv-cal-cell.has-pagadas .omv-cal-cnt { color: #047857; }
    .omv-cal-cell.has-vencidas .omv-cal-cnt { color: #b91c1c; }
    .omv-cal-legend {
        display: flex;
        gap: 16px;
        margin-top: 14px;
        padding-top: 14px;
        border-top: 1px solid #f3f4f6;
        font-size: 11px;
        color: #71717a;
        flex-wrap: wrap;
    }
    .omv-cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
    .omv-cal-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
    .omv-cal-dot-amber { background: #f59e0b; }
    .omv-cal-dot-green { background: #10b981; }
    .omv-cal-dot-red   { background: #ef4444; }
    .omv-cal-dot-blue  { background: #3b82f6; }

    /* ===== Fase 5 Agenda enriquecida (viajes + toggles + detalle) ===== */
    /* 5to KPI: grid propio de 5 columnas para la Agenda (no toca .omv-kpis de Resumen) */
    .omv-kpis-cal { grid-template-columns: repeat(5, 1fr); }
    @media (max-width: 1100px) { .omv-kpis-cal { grid-template-columns: repeat(3, 1fr); } }
    @media (max-width: 760px)  { .omv-kpis-cal { grid-template-columns: repeat(2, 1fr); } }
    @media (max-width: 460px)  { .omv-kpis-cal { grid-template-columns: 1fr; } }

    /* Toggles tipo chip */
    .omv-cal-toggles { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
    .omv-cal-chip {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        padding: 6px 13px;
        border: 1px solid #e4e4e7;
        border-radius: 999px;
        background: #fff;
        color: #71717a;
        font-size: 12px;
        font-weight: 600;
        font-family: inherit;
        cursor: pointer;
        transition: background .15s, border-color .15s, color .15s, opacity .15s;
    }
    .omv-cal-chip-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
    .omv-cal-chip.is-on { background: #F1EDFB; border-color: #C7BDEB; color: #29108F; }
    .omv-cal-chip:not(.is-on) { opacity: .55; }
    .omv-cal-chip:not(.is-on) .omv-cal-chip-dot { background: #d4d4d8 !important; }

    /* Marcas dentro de la celda */
    .omv-cal-marks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
    .omv-cal-mark {
        display: inline-flex;
        align-items: center;
        gap: 2px;
        font-size: 10px;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
    }
    .omv-cal-mark-viaje svg { display: block; }

    /* Celdas con eventos: clickeables */
    .omv-cal-cell.has-eventos { cursor: pointer; }
    .omv-cal-cell.has-eventos:hover { box-shadow: 0 0 0 2px rgba(41,16,143,0.18); }
    .omv-cal-cell.is-selected { box-shadow: 0 0 0 2px #29108F; }

    /* Toggle CSS: el wrapper oculta marcas/filas por tipo */
    .omv-cal-wrap.hide-cliente   [data-tipo="cliente"],
    .omv-cal-wrap.hide-proveedor [data-tipo="proveedor"],
    .omv-cal-wrap.hide-viaje     [data-tipo="viaje"],
    .omv-cal-wrap.hide-checkin   [data-tipo="checkin"] { display: none !important; }
    .omv-cal-wrap.hide-seguimiento [data-tipo="seguimiento"] { display: none !important; }   /* A97: el sexto tipo, misma regla */
    /* el monto se oculta solo si cobros Y pagos estan apagados */
    .omv-cal-wrap.hide-cliente.hide-proveedor [data-tipo="monto"] { display: none !important; }

    /* Panel de detalle del dia */
    .omv-cal-detalle {
        margin-top: 14px;
        background: #fff;
        border: 1px solid #e4e4e7;
        border-radius: 10px;
        overflow: hidden;
    }
    .omv-cal-detalle-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        border-bottom: 1px solid #f3f4f6;
        background: #fafafa;
    }
    .omv-cal-detalle-title { margin: 0; font-size: 14px; font-weight: 700; color: #18181b; }
    .omv-cal-detalle-close {
        background: transparent; border: 0; font-size: 22px; line-height: 1;
        color: var(--om-gris-ayuda, #576478); cursor: pointer; padding: 0 4px;
    }
    .omv-cal-detalle-close:hover { color: #18181b; }
    .omv-cal-detalle-body { display: flex; flex-direction: column; }
    .omv-cal-det-row {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 11px 16px;
        border-bottom: 1px solid #f3f4f6;
    }
    .omv-cal-det-row:last-child { border-bottom: 0; }
    .omv-cal-det-icon { display: inline-flex; width: 16px; justify-content: center; flex-shrink: 0; }
    .omv-cal-det-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
    .omv-cal-det-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
    .omv-cal-det-etq { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--om-gris-ayuda, #576478); }
    .omv-cal-det-concepto { font-size: 13px; font-weight: 600; color: #18181b; }
    .omv-cal-det-monto { font-size: 13px; font-weight: 700; color: #18181b; font-variant-numeric: tabular-nums; white-space: nowrap; }
    .omv-cal-det-link {
        font-size: 12px; font-weight: 600; color: #29108F; text-decoration: none !important;
        white-space: nowrap; padding: 4px 10px; border: 1px solid #C7BDEB; border-radius: 6px;
    }
    .omv-cal-det-link:hover { background: #F1EDFB; }

    /* LISTA DE PAGOS */
    .omv-pay-list {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    .omv-pay-row {
        display: grid;
        grid-template-columns: 60px 1fr auto auto auto;
        gap: 16px;
        align-items: center;
        padding: 12px;
        background: #fafafa;
        border: 1px solid #e4e4e7;
        border-radius: 8px;
        transition: all 0.15s;
    }
    .omv-pay-row:hover {
        background: #fff;
        border-color: #C7BDEB;
        box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    }
    .omv-pay-fecha {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        background: #fff;
        border-radius: 6px;
        padding: 6px 4px;
        border: 1px solid #e4e4e7;
    }
    .omv-pay-dia {
        font-size: 18px;
        font-weight: 800;
        color: #18181b;
        line-height: 1;
    }
    .omv-pay-mes-lbl {
        font-size: 9px;
        font-weight: 600;
        color: var(--om-gris-ayuda, #576478);
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-top: 2px;
    }
    .omv-pay-info { min-width: 0; }
    .omv-pay-cliente {
        font-size: 14px;
        font-weight: 600;
        color: #18181b;
        margin-bottom: 2px;
    }
    .omv-pay-meta {
        font-size: 11px;
        color: #71717a;
    }
    .omv-pay-monto {
        text-align: right;
        font-variant-numeric: tabular-nums;
    }
    .omv-pay-monto strong {
        font-size: 14px;
        color: #18181b;
        display: block;
    }
    .omv-pay-monto span {
        font-size: 10px;
        color: var(--om-gris-ayuda, #576478);
    }
    .omv-pay-status { min-width: 130px; text-align: right; }
    .omv-pay-actions {
        display: flex;
        gap: 6px;
        align-items: center;
    }
    .omv-pay-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 7px 12px;
        font-size: 12px;
        font-weight: 600;
        border-radius: 6px;
        border: 1px solid transparent;
        cursor: pointer;
        font-family: inherit;
        transition: all 0.15s;
    }
    .omv-pay-btn-primary {
        background: #10b981;
        color: #fff;
        border-color: #10b981;
    }
    .omv-pay-btn-primary:hover { background: #047857; }
    .omv-pay-btn-secondary {
        background: #fff;
        color: #71717a;
        border-color: #d4d4d8;
    }
    .omv-pay-btn-secondary:hover { background: #fafafa; }
    .omv-pay-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        border-radius: 6px;
        color: #71717a;
        text-decoration: none;
    }
    .omv-pay-link:hover { background: #F1EDFB; color: #29108F; }

    @media (max-width: 700px) {
        .omv-pay-row {
            grid-template-columns: 50px 1fr;
            gap: 10px;
        }
        .omv-pay-monto, .omv-pay-status, .omv-pay-actions {
            grid-column: 2;
            text-align: left;
        }
        .omv-cal-cell { min-height: 56px; padding: 4px 6px; }
        .omv-cal-info { font-size: 9px; }
    }

/* Cabecera de la lista: titulo + boton de crear.
   El boton reusa .omc-btn .btn-primary de om-portal-v2.css, que traen TANTO la
   geometria como el color; aqui solo se coloca la fila. */
.omv-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 4px 0 14px; flex-wrap: wrap; }
.omv-head-title { margin: 0; font-size: 17px; font-weight: 650; color: #1D0A66; }
.omv-head-conteo { font-weight: 500; color: var(--om-gris-ayuda); font-size: 14px; margin-left: 4px; }   /* A96: #7c889b daba 3.44:1 */

    /* Formulario de devolucion al cliente (expediente). */
    .omc-devol-form { border: 1px solid #e4e4e7; border-radius: 10px; padding: 12px; margin-top: 8px; background: #fafafa; }
    .omc-devol-form label { display: block; font-size: 12px; color: #52525b; margin-bottom: 8px; }
    .omc-devol-form input, .omc-devol-form select { width: 100%; padding: 7px 9px; border: 1px solid #d4d4d8; border-radius: 7px; font-size: 13px; font-family: inherit; margin-top: 3px; }
    .omc-devol-techo { font-size: 12px; color: #52525b; margin: 0 0 10px; line-height: 1.45; }
    .omc-devol-acciones { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }
    .omc-devol-aviso { font-size: 12.5px; color: #b42318; background: #fef3f2; border: 1px solid #fecaca; border-radius: 7px; padding: 8px 10px; margin: 10px 0 0; }
