/* MVarela 09/Nov/26 Estilos del modulo de CRM que viajan con su RCL (mismo patron que produccion.css, 04/Nov/26).
   Los cargan los dos hosts que montan estas pantallas:
       <link rel="stylesheet" href="_content/ibSoft.ERPCRM.UI/css/crm.css" />
   El host propio (ibSoft.ERPCRM) los tiene en su app.css, pero GLOBALES (td sin padding, todo th en azul, tablas a
   12 px): copiados asi al shell ERPv2 habrian cambiado todas sus tablas. Aqui van limitados a las tablas del modulo,
   marcadas con la clase crm-grid, asi que en el shell solo afectan a CRM. */

/* Iconos SVG (<Icon> de ibSoft.UI.Shared). El shell ya lo trae en su app.css; el host propio no. */
.icon-svg {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    fill: currentColor;
}

/* Tabla compacta */
table.crm-grid {
    font-size: 12px;
    height: 1px;
}

    table.crm-grid th {
        background-color: #cfe2ff !important;
    }

    table.crm-grid tr,
    table.crm-grid td {
        height: 100%;
    }

    table.crm-grid td {
        padding: 0 !important;
    }

        table.crm-grid td > div {
            height: 100%;
            padding-top: 8px !important;
            padding-bottom: 8px !important;
        }

    table.crm-grid .col-title {
        font-weight: bold !important;
        text-align: center !important;
        padding: 0 !important;
    }

    table.crm-grid .col-header-content {
        padding: 0 !important;
    }

    table.crm-grid .col-title-text {
        text-overflow: ellipsis;
        overflow: initial !important;
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }

    /* Renglon seleccionado: la celda marcada con .selected pinta todo su renglon */
    table.crm-grid tr:has(.selected),
    table.crm-grid tr:has(.selected) td,
    table.crm-grid tr.selected {
        background: #cfe2ff !important;
    }

    table.crm-grid .seleccionar {
        overflow-wrap: break-word !important;
    }

    /* Documento pendiente (Estatus P) en la edicion del prospecto */
    table.crm-grid .amarillo {
        background-color: rgb(255, 255, 0);
    }
