/* Maestro independiente de proveedores de honorarios */
.ph-filters{grid-template-columns:minmax(150px,.6fr) minmax(260px,1.6fr) auto}
.ph-search{min-width:0}
.ph-modal{width:min(720px,calc(100vw - 32px));max-height:90vh;overflow:auto}
.ph-modal .hm-modal-header{position:sticky;top:-1px;background:white;z-index:2}
.ph-modal .hm-modal-footer{position:sticky;bottom:0;background:white;padding-top:14px}
.ph-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:20px 0}
.ph-wide{grid-column:1/-1}.ph-form-grid input[type=text]{height:42px;padding:0 13px;border:1px solid #d5e0ee;border-radius:8px;background:#fff;color:#18385f;font:inherit;outline:none}.ph-form-grid input[type=text]:focus{border-color:#35b8b5;box-shadow:0 0 0 3px rgba(53,184,181,.12)}.ph-check{display:flex;align-items:center;gap:9px;color:#38516e;font-size:13px}.ph-check input{accent-color:#35b6b4;width:16px;height:16px}
.ph-loading,.ph-empty{padding:26px;text-align:center;color:#7185a2}.ph-status{font-size:12px;font-weight:600}.ph-status.on{color:#16805d}.ph-status.off{color:#a56a28}.ph-actions{display:flex;gap:6px}.ph-actions button{width:34px;height:34px;padding:6px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #dce6f1;background:#fff;border-radius:7px;color:#31516f;cursor:pointer}.ph-actions button:hover{background:#e8f7f6}.ph-actions button svg{width:16px;height:16px}.ph-toast{position:fixed;top:18px;right:20px;z-index:12000;display:none;max-width:min(420px,calc(100vw - 32px));padding:12px 15px;border-radius:10px;background:#fff;border:1px solid #dce7ef;box-shadow:0 8px 28px rgba(20,48,75,.16);color:#173b5e;font-size:13px}.ph-toast.show{display:block}.ph-toast.error{border-left:4px solid #dc3545}.ph-toast.success{border-left:4px solid #20a477}
@media(max-width:800px){.ph-filters{grid-template-columns:1fr 1fr}.ph-form-grid{grid-template-columns:1fr}.ph-wide{grid-column:auto}}@media(max-width:520px){.ph-filters{grid-template-columns:1fr}}

/* Consulta automática de RUC */
.ph-ruc-row{display:flex;align-items:center;gap:9px}.ph-ruc-row input{flex:1;min-width:0}.ph-consultar-ruc{height:42px;white-space:nowrap;display:inline-flex;align-items:center;gap:7px;padding:0 12px;font-size:12px}.ph-consultar-ruc svg{width:16px;height:16px}.ph-consultar-ruc.loading{opacity:.75;cursor:wait}.ph-consultar-ruc:disabled{opacity:.65;cursor:wait}.ph-consultar-ruc.loading svg{animation:ph-spin 1s linear infinite}@keyframes ph-spin{to{transform:rotate(360deg)}}
@media(max-width:520px){.ph-ruc-row{flex-wrap:wrap}.ph-consultar-ruc{width:100%;justify-content:center}}

/* =====================================================
   HOMOLOGACIÓN DE ACCIONES - COSTOS MÉDICOS
   ===================================================== */

.hm-table-card .ph-actions button {
    width: 34px;
    height: 34px;
    padding: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce6f1;
    background: #ffffff;
    border-radius: 7px;
    cursor: pointer;
}

/* EDITAR */
.hm-table-card .ph-actions button:first-child {
    color: #138b96;
}

.hm-table-card .ph-actions button:first-child:hover {
    background: #e8f7f6;
    border-color: #35b8b5;
    color: #087f83;
}

/* ACTIVAR / DESACTIVAR */
.hm-table-card .ph-actions button:nth-child(2) {
    color: #dc3545;
}

.hm-table-card .ph-actions button:nth-child(2):hover {
    background: #fff1f1;
    border-color: #dc3545;
    color: #c82333;
}

/* TAMAÑO DE ICONOS */
.hm-table-card .ph-actions button svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
}