/* SMP v7.1 — Componentes de interacción y filtros; estilos encapsulados. */
.smp-app .smp-toolbar-actions{display:flex;flex-wrap:nowrap;justify-content:flex-end;align-items:center;gap:10px;min-width:max-content}
.smp-app .smp-toolbar-actions>.smp-icon-button,.smp-app .smp-toolbar-actions>.smp-primary,.smp-app .smp-toolbar-actions>.smp-account-logout{position:static;display:inline-flex;justify-content:center;align-items:center;flex:none;min-height:44px;line-height:1.25;text-decoration:none;white-space:nowrap}
.smp-app .smp-toolbar-actions>.smp-icon-button{width:46px;min-width:46px;padding:0}
.smp-app .smp-toolbar-actions>.smp-primary{width:auto;min-width:0;padding:0 16px;gap:8px}
.smp-app .smp-toolbar-actions>.smp-account-logout{width:auto;min-width:74px;padding:0 12px;gap:8px;border:1px solid #dbe4ee;background:#fff;color:#43556b;border-radius:13px}
.smp-app .smp-toolbar-actions svg{width:18px;height:18px;flex:none;vertical-align:middle}
.smp-app .smp-toolbar{min-width:0}
.smp-app .smp-toolbar>div:first-child{min-width:0;flex:1 1 auto}
/* Search fields are one grid; icon never overlays text. */
.smp-app .smp-search-control{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:0;position:relative;flex:1 1 360px;min-width:180px;min-height:50px;background:#fff;border:1px solid #d5e1ee;border-radius:15px;overflow:hidden}
.smp-app .smp-search-control>span{position:static;left:auto;top:auto;transform:none;display:flex;align-items:center;justify-content:center;width:52px;height:100%;color:#1769d2;pointer-events:none;z-index:1}
.smp-app .smp-search-control>span svg{width:20px;height:20px;display:block}
.smp-app .smp-search-control input{width:100%;min-width:0;height:48px;min-height:48px;border:0;background:transparent;box-shadow:none;border-radius:0;margin:0;padding:0 14px 0 0;font-size:16px;line-height:1.4;color:#172338;outline:none}
.smp-app .smp-search-control:focus-within{border-color:#1769d2;box-shadow:0 0 0 3px rgba(23,105,210,.12)}
.smp-app .smp-search-control input:focus{border:0;box-shadow:none;outline:none}
.smp-app .smp-filterbar{display:grid;grid-template-columns:minmax(270px,1fr) minmax(175px,220px) minmax(190px,235px) auto;gap:12px;align-items:stretch;margin:16px 0 12px}
.smp-app .smp-filterbar>*{min-width:0;width:100%;height:50px;margin:0}
.smp-app .smp-filterbar>select{padding:0 36px 0 14px;border:1px solid #d5e1ee;border-radius:15px;background:#fff;color:#172338;min-height:50px;font-size:14px}
.smp-app .smp-filter-toggle{display:flex;align-items:center;justify-content:center;gap:9px;padding:0 16px;min-width:180px!important;background:#e9f2ff;border:1px solid #bad4fa;border-radius:15px;color:#1757a1;font-size:14px;font-weight:750;white-space:nowrap}
.smp-app .smp-filter-toggle svg{display:block;flex:none;width:17px;height:17px}
.smp-app .smp-filter-toggle.is-active{background:#1769d2;color:white;border-color:#1769d2}
.smp-app .smp-filter-presets{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}
.smp-app .smp-filter-presets button{width:auto;min-height:40px;padding:8px 13px;line-height:1.25;font-size:13px;font-weight:700;border:1px solid #d8e3f0;border-radius:999px;background:#fff;color:#34445a;box-shadow:none}
.smp-app .smp-filter-presets button:hover{border-color:#1769d2;background:#f1f7ff}
.smp-app .smp-filter-presets button.is-active{background:#1769d2;color:#fff;border-color:#1769d2}
.smp-app .smp-advanced-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:start;border:1px solid #d6e3f3;border-radius:20px;padding:20px;margin:8px 0 16px;background:#f8fbff;box-shadow:none}
.smp-app .smp-advanced-filters[hidden]{display:none!important}
.smp-app .smp-advanced-filters>.smp-advanced-heading{grid-column:1/-1;display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0;padding:0 0 12px;border-bottom:1px solid #e1eaf6}
.smp-app .smp-advanced-heading strong{font-size:17px;color:#172338}
.smp-app .smp-advanced-heading span{font-size:12px;color:#64748b}
.smp-app .smp-advanced-filters>div{margin:0}
.smp-app .smp-advanced-filters label{font-size:13px;font-weight:750;color:#34445a;line-height:1.45;gap:8px}
.smp-app .smp-advanced-filters select{display:block;width:100%;min-height:48px;margin-top:6px;padding:0 34px 0 12px;border:1px solid #d5e1ee;border-radius:13px;background:#fff;font-size:15px}
.smp-app .smp-advanced-filters small{font-size:12px;line-height:1.5;color:#64748b;margin-top:8px}
.smp-app .smp-advanced-filters .smp-filter-actions{grid-column:1/-1;display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:0;padding-top:14px;border-top:1px solid #e1eaf6}
.smp-app .smp-advanced-filters .smp-filter-actions button{min-height:44px;border-radius:12px;padding:10px 16px;font-size:14px}
.smp-app .smp-advanced-filters .smp-filter-actions #smp-clear-filters{background:#fff;color:#34445a;border:1px solid #d5e1ee}
.smp-app .smp-filter-summary{font-size:13px;line-height:1.5}
.smp-app .smp-toolbar-actions a:focus-visible,.smp-app .smp-toolbar-actions button:focus-visible,.smp-app .smp-filter-presets button:focus-visible,.smp-app .smp-filter-toggle:focus-visible{outline:3px solid #1769d2;outline-offset:3px}
@media(max-width:1160px){.smp-app .smp-filterbar{grid-template-columns:minmax(230px,1fr) minmax(160px,1fr)}.smp-app .smp-filterbar>*{min-width:0}.smp-app .smp-filter-toggle{min-width:0!important}.smp-app .smp-advanced-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.smp-app .smp-toolbar{gap:8px}.smp-app .smp-toolbar-actions{gap:6px;min-width:0}.smp-app .smp-toolbar-actions>.smp-icon-button{width:42px;min-width:42px}.smp-app .smp-toolbar-actions>.smp-primary{width:42px;min-width:42px;padding:0}.smp-app .smp-toolbar-actions>.smp-account-logout{width:42px;min-width:42px;padding:0}.smp-app .smp-toolbar-actions>.smp-primary span,.smp-app .smp-toolbar-actions>.smp-account-logout span{display:none}.smp-app .smp-filterbar{grid-template-columns:1fr;gap:10px}.smp-app .smp-filterbar>*{min-width:0;height:50px}.smp-app .smp-filter-presets{display:flex;flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px;scrollbar-width:thin}.smp-app .smp-filter-presets button{flex:none;white-space:nowrap}.smp-app .smp-advanced-filters{grid-template-columns:1fr;padding:15px}.smp-app .smp-advanced-filters>.smp-advanced-heading{display:grid}.smp-app .smp-advanced-filters .smp-filter-actions{display:grid;grid-template-columns:1fr}.smp-app .smp-search-control{min-width:0}}
@media(max-width:380px){.smp-app .smp-toolbar h1{font-size:20px}.smp-app .smp-toolbar-actions>.smp-icon-button,.smp-app .smp-toolbar-actions>.smp-primary,.smp-app .smp-toolbar-actions>.smp-account-logout{width:38px;min-width:38px;min-height:40px}}
