
.hm-dest-filters{grid-template-columns:minmax(150px,.8fr) minmax(130px,.7fr) minmax(240px,1.5fr) auto}.dest-modal{width:min(980px,calc(100vw - 32px));max-height:90vh;overflow:auto}.dest-section{padding:4px 0 20px;margin-bottom:18px;border-bottom:1px solid #e5edf5}.dest-section h3{margin:0 0 14px;color:#16375f;font-size:15px;font-weight:600}.dest-section-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:14px}.dest-section-head h3{margin-bottom:3px}.dest-section-head p{margin:0;color:#7185a2;font-size:12px}.dest-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dest-wide{grid-column:1/-1}.dest-specialties{display:grid;gap:12px}.dest-specialty{border:1px solid #dce6f1;border-radius:10px;padding:14px;background:#fbfdff}.dest-specialty-top{display:grid;grid-template-columns:minmax(180px,1.2fr) minmax(150px,.8fr) 125px 44px;gap:10px;align-items:center}.dest-specialty .hm-field{gap:6px}.dest-specialty .hm-field select,.dest-specialty .hm-field input{height:40px}.dest-remove{height:40px;width:36px;border:1px solid #f0caca;background:#fff7f7;color:#b94b4b;border-radius:8px;cursor:pointer}.dest-doctors{margin-top:12px;padding:12px;border-radius:8px;background:#f2f7fb}.dest-doctors label{display:flex;align-items:center;gap:8px;font-size:12px;color:#38516e;padding:5px 2px}.dest-doctor-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 15px;max-height:180px;overflow:auto;margin-top:8px}.dest-no-specialty,.dest-loading{padding:28px;text-align:center;color:#7185a2}.dest-pill{display:inline-block;padding:4px 8px;border-radius:20px;background:#e8f7f6;color:#087f83;font-size:11px}.dest-actions{display:flex;gap:6px}.dest-actions button{border:1px solid #dce6f1;background:white;border-radius:7px;padding:7px;color:#31516f;cursor:pointer}.dest-actions button:hover{background:#e8f7f6}.dest-status{font-size:12px;font-weight:600}.dest-status.on{color:#16805d}.dest-status.off{color:#a56a28}.dest-modal .hm-modal-footer{position:sticky;bottom:0;background:white;padding-top:14px}.dest-modal .hm-modal-header{position:sticky;top:-1px;background:white;z-index:2}.dest-modal [hidden]{display:none!important}@media(max-width:800px){.hm-dest-filters{grid-template-columns:1fr 1fr}.dest-grid{grid-template-columns:1fr}.dest-wide{grid-column:auto}.dest-specialty-top{grid-template-columns:1fr 1fr}.dest-doctor-list{grid-template-columns:1fr}.dest-section-head{align-items:flex-start;flex-direction:column}}@media(max-width:520px){.hm-dest-filters{grid-template-columns:1fr}.dest-specialty-top{grid-template-columns:1fr 1fr}}

/* Ajustes de usabilidad: botón de eliminar centrado y campos con búsqueda */
/* Botón eliminar especialidad */
.dest-specialty .dest-remove {
    width: 38px;
    min-width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;

    border: 1px solid #f0caca;
    border-radius: 8px;
    background: #fff7f7;
    color: #dc3545;
    cursor: pointer;
    line-height: 1;
}

.dest-specialty .dest-remove svg {
    display: block;
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

.dest-specialty .dest-remove:hover {
    background: #fde8e8;
    border-color: #dc3545;
    color: #c82333;
}

#destPartnerBuscar,#destMedicoBuscar{width:100%;height:42px;padding:0 13px;border:1px solid #d5e0ee;border-radius:8px;background:#fff;color:#18385f;font:inherit;outline:none}
#destPartnerBuscar:focus,#destMedicoBuscar:focus{border-color:#35b8b5;box-shadow:0 0 0 3px rgba(53,184,181,.12)}
#destPartnerBuscar::placeholder,#destMedicoBuscar::placeholder{color:#9aa9bb}
@media(max-width:800px){.dest-specialty-top .dest-remove{margin-top:0}}

/* Presentación compacta: aprovechar el ancho y reducir el alto de las filas */
.hm-table-card .hm-table{width:100%;table-layout:auto}
.hm-table-card .hm-table th{padding:10px 12px;white-space:nowrap;font-size:12px}
.hm-table-card .hm-table td{padding:7px 12px;font-size:12px;line-height:1.25;vertical-align:middle}
.hm-table-card .hm-table tbody tr{height:48px}
.hm-table-card .hm-table td:first-child strong{font-weight:600}
.hm-table-card .dest-actions button{width:34px;height:34px;padding:6px;display:inline-flex;align-items:center;justify-content:center}
.dest-categories{display:grid;gap:8px}
.dest-category-row{display:grid;grid-template-columns:minmax(220px,1.5fr) minmax(130px,.55fr) 40px;gap:10px;align-items:end;padding:10px 12px;border:1px solid #dce6f1;border-radius:9px;background:#fbfdff}
.dest-category-row .hm-field{gap:5px}
.dest-category-row .hm-field select{height:38px}
.dest-category-row .dest-remove {
    height: 38px;
    width: 38px;
    min-width: 38px;
    align-self: end;
    justify-self: center;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    margin: 0;
    border: 1px solid #f0caca;
    border-radius: 8px;
    background: #fff7f7;
    color: #dc3545;
    cursor: pointer;
    line-height: 1;
}

.dest-category-row .dest-remove svg {
    display: block;
    width: 17px;
    height: 17px;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

.dest-category-row .dest-remove:hover {
    background: #fde8e8;
    border-color: #dc3545;
    color: #c82333;
}

.dest-no-category{padding:14px;text-align:center;color:#7185a2;border:1px dashed #dce6f1;border-radius:8px;font-size:12px}
@media(max-width:800px){.dest-category-row{grid-template-columns:1fr 1fr 40px}}
@media(max-width:520px){.dest-category-row{grid-template-columns:1fr 40px}.dest-category-row .hm-field:first-child{grid-column:1/-1}}

/* Notificaciones discretas del módulo: reemplazan los alert() del navegador */
.dest-toast-host{position:fixed;top:18px;right:20px;z-index:12000;display:flex;flex-direction:column;gap:8px;pointer-events:none;max-width:min(420px,calc(100vw - 32px))}
.dest-toast{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:10px;background:#fff;border:1px solid #dce7ef;box-shadow:0 8px 28px rgba(20,48,75,.16);color:#173b5e;font-size:13px;line-height:1.4;pointer-events:auto;animation:destToastIn .18s ease-out}
.dest-toast>svg{width:18px;height:18px;flex:0 0 18px}
.dest-toast.error{border-left:4px solid #dc3545}.dest-toast.error>svg{color:#dc3545}
.dest-toast.success{border-left:4px solid #20a477}.dest-toast.success>svg{color:#20a477}
.dest-toast span{flex:1}.dest-toast button{border:0;background:transparent;color:#718096;font-size:20px;line-height:1;cursor:pointer;padding:0 2px}
.dest-toast.hide{opacity:0;transform:translateX(12px);transition:opacity .2s,transform .2s}
@keyframes destToastIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:translateY(0)}}
/* =====================================================
   HOMOLOGACIÓN DE BOTONES - COSTOS MÉDICOS
   ===================================================== */

/* Botón Editar */
.hm-table-card .dest-actions button:first-child {
    color: #138b96;
    border-color: #dce6f1;
    background: #ffffff;
}

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

/* Botón Activar / Desactivar */
.hm-table-card .dest-actions button:nth-child(2) {
    color: #dc3545;
    border-color: #dce6f1;
    background: #ffffff;
}

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

/* Iconos */
.hm-table-card .dest-actions button svg {
    stroke: currentColor;
}