/* Ave Fénix · Superadmin unificado 3.0
   Componentes explícitos. No mueve ni transforma el DOM. */
:root{
 --sa-primary:var(--primary-color,#ef3943);--sa-primary-dark:#d62531;--sa-primary-soft:#fff0f1;
 --sa-bg:#f1f5f9;--sa-surface:#fff;--sa-soft:#f8fafc;--sa-border:#e2e8f0;--sa-border-strong:#cfd8e4;
 --sa-text:#10203a;--sa-muted:#68758a;--sa-success:#138759;--sa-success-soft:#ddf8ea;
 --sa-warning:#b97708;--sa-warning-soft:#fff5d8;--sa-danger:#d92735;--sa-danger-soft:#fff0f2;
 --sa-blue:#0968e5;--sa-blue-soft:#eff6ff;--sa-violet:#6d28d9;--sa-violet-soft:#f5f3ff;
 --sa-radius:16px;--sa-shadow:0 12px 30px rgba(27,42,65,.07)
}
body[data-role="Superadmin"] .admin-main{background:var(--sa-bg)}
body[data-role="Superadmin"] .sa-page{width:100%;max-width:1280px;margin:0 auto;padding:0 0 28px;color:var(--sa-text)}
.sa-module-hero{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:18px 20px;margin-bottom:14px;border:1px solid var(--sa-border);border-radius:var(--sa-radius);background:linear-gradient(135deg,#fff 0%,#fff 72%,#fff3f4 100%);box-shadow:var(--sa-shadow)}
.sa-module-hero__content{display:flex;align-items:center;gap:14px;min-width:0}.sa-module-hero__icon{width:48px;height:48px;display:grid;place-items:center;flex:0 0 auto;border-radius:14px;background:var(--sa-primary-soft);color:var(--sa-primary);font-size:20px}.sa-module-hero__copy{min-width:0}.sa-module-hero__eyebrow{display:block;margin-bottom:2px;color:#52647d;font-size:10px;font-weight:900;letter-spacing:.1em;text-transform:uppercase}.sa-module-hero h1{margin:0;color:var(--sa-text);font-size:26px;font-weight:900;line-height:1.12}.sa-module-hero p{max-width:700px;margin:5px 0 0;color:var(--sa-muted);font-size:13px;line-height:1.5}.sa-module-hero__actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}
.sa-chip{min-height:36px;display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid var(--sa-border-strong);border-radius:999px;background:#fff;color:#40506a;font-size:11px;font-weight:800;white-space:nowrap}.sa-chip i{color:#64748b}
.sa-btn{width:auto!important;min-width:0;min-height:40px;display:inline-flex!important;align-items:center;justify-content:center;gap:8px;padding:8px 14px!important;border:1px solid transparent;border-radius:11px;font-size:12px!important;font-weight:850!important;line-height:1!important;text-decoration:none!important;white-space:nowrap;cursor:pointer;transition:transform .16s ease,filter .16s ease,box-shadow .16s ease}.sa-btn:hover{transform:translateY(-1px);filter:brightness(.97)}.sa-btn--primary{background:var(--sa-primary)!important;color:#fff!important;box-shadow:0 8px 18px rgba(238,53,62,.2)}.sa-btn--secondary{border-color:var(--sa-border-strong)!important;background:#fff!important;color:var(--sa-text)!important}.sa-btn--success{background:#15934c!important;color:#fff!important}.sa-btn--warning{background:#f59e0b!important;color:#fff!important}.sa-btn--danger{background:var(--sa-danger)!important;color:#fff!important}.sa-btn--blue{background:#2563eb!important;color:#fff!important}.sa-btn[disabled]{opacity:.52;pointer-events:none}
.sa-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.sa-summary-card{min-height:88px;display:flex;align-items:center;gap:12px;padding:14px 15px;border:1px solid var(--sa-border);border-radius:14px;background:#fff;box-shadow:0 7px 20px rgba(15,23,42,.045)}.sa-summary-card__icon{width:42px;height:42px;display:grid;place-items:center;flex:0 0 auto;border-radius:12px;background:var(--sa-primary-soft);color:var(--sa-primary);font-size:17px}.sa-summary-card__icon.is-green{background:var(--sa-success-soft);color:var(--sa-success)}.sa-summary-card__icon.is-blue{background:var(--sa-blue-soft);color:var(--sa-blue)}.sa-summary-card__icon.is-amber{background:var(--sa-warning-soft);color:var(--sa-warning)}.sa-summary-card__icon.is-violet{background:var(--sa-violet-soft);color:var(--sa-violet)}.sa-summary-card__label{display:block;color:#52647d;font-size:10px;font-weight:900;letter-spacing:.055em;text-transform:uppercase}.sa-summary-card__value{display:block;margin-top:3px;color:var(--sa-text);font-size:23px;font-weight:900;line-height:1.05}.sa-summary-card small{display:block;margin-top:3px;color:var(--sa-muted);font-size:10.5px}
.sa-alert{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;margin-bottom:14px;border:1px solid;border-radius:12px;font-size:12px;line-height:1.5}.sa-alert i{margin-top:2px}.sa-alert--danger{border-color:#fecdd3;background:#fff1f2;color:#9f1239}.sa-alert--success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.sa-alert--info{border-color:#bfdbfe;background:#eff6ff;color:#1e40af}.sa-alert--warning{border-color:#fde68a;background:#fffbeb;color:#92400e}
.sa-records-panel{overflow:hidden;border:1px solid var(--sa-border);border-radius:var(--sa-radius);background:#fff;box-shadow:var(--sa-shadow)}.sa-records-panel__header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 16px;border-bottom:1px solid var(--sa-border)}.sa-records-panel__heading{display:flex;align-items:center;gap:11px}.sa-records-panel__icon{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:var(--sa-primary-soft);color:var(--sa-primary)}.sa-records-panel__heading h2{margin:0;color:var(--sa-text);font-size:17px;font-weight:900}.sa-records-panel__heading p{margin:2px 0 0;color:var(--sa-muted);font-size:11.5px}
.sa-records-filters{display:grid;grid-template-columns:minmax(260px,1.7fr) repeat(2,minmax(145px,.65fr)) minmax(135px,.5fr) auto;gap:10px;align-items:end;padding:13px 16px;border-bottom:1px solid var(--sa-border);background:var(--sa-soft)}.sa-records-filters.is-compact{grid-template-columns:minmax(280px,1fr) minmax(140px,.25fr) auto}.sa-filter-field{min-width:0}.sa-filter-field label{display:flex;align-items:center;gap:6px;margin:0 0 5px;color:#334155;font-size:10.5px;font-weight:850}.sa-filter-field label i{color:var(--sa-primary)}.sa-filter-control{position:relative}.sa-filter-control>i{position:absolute;top:50%;left:12px;color:#94a3b8;transform:translateY(-50%);pointer-events:none}.sa-filter-control input{padding-left:35px!important}.sa-filter-field input,.sa-filter-field select{width:100%;height:40px;padding:7px 10px;border:1px solid var(--sa-border-strong);border-radius:10px;background:#fff;color:var(--sa-text);font-size:12px;outline:none}.sa-filter-field input::placeholder{color:#98a2b3;opacity:1}.sa-filter-field input:focus::placeholder{color:transparent}.sa-filter-field input:focus,.sa-filter-field select:focus{border-color:var(--sa-primary);box-shadow:0 0 0 3px rgba(238,53,62,.1)}.sa-filter-actions{display:flex;gap:7px;align-items:center}.sa-filter-actions .sa-btn{height:40px}
.sa-records-counter-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:9px 16px;border-bottom:1px solid var(--sa-border);background:#fff}.sa-records-counter{color:var(--sa-muted);font-size:11.5px}.sa-records-counter strong{color:#334155}.sa-records-counter-row__hint{color:#64748b;font-size:10.5px}
.sa-records-table-wrap{width:100%;overflow-x:auto}.sa-records-table{width:100%;min-width:850px;border-collapse:collapse}.sa-records-table th{padding:11px 12px;border-bottom:1px solid var(--sa-border-strong);background:#edf3f9;color:#263650;font-size:10px;font-weight:900;letter-spacing:.04em;text-align:left;text-transform:uppercase;white-space:nowrap}.sa-records-table td{padding:11px 12px;border-bottom:1px solid var(--sa-border);color:var(--sa-text);font-size:12px;vertical-align:middle}.sa-records-table tbody tr:nth-child(even){background:#fafbfd}.sa-records-table tbody tr:hover{background:#f3f7fb;box-shadow:inset 3px 0 0 var(--sa-primary)}.sa-records-table th.is-center,.sa-records-table td.is-center{text-align:center}.sa-records-table th.is-right,.sa-records-table td.is-right{text-align:right}.sa-record-logo{width:38px;height:38px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--sa-border);border-radius:10px;background:#fff}.sa-record-logo img{width:100%;height:100%;padding:4px;object-fit:contain}.sa-table-primary{font-weight:850;color:#0f172a}.sa-table-secondary{display:block;margin-top:2px;color:var(--sa-muted);font-size:10.5px}.sa-table-ellipsis{max-width:420px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sa-table-preline{white-space:pre-line}.sa-badge{display:inline-flex;align-items:center;gap:5px;padding:5px 8px;border-radius:999px;background:#eef2f7;color:#475569;font-size:10px;font-weight:850;white-space:nowrap}.sa-badge--success{background:var(--sa-success-soft);color:#087348}.sa-badge--danger{background:var(--sa-danger-soft);color:#c21f2c}.sa-badge--warning{background:var(--sa-warning-soft);color:#a66304}.sa-badge--blue{background:var(--sa-blue-soft);color:#175cc5}.sa-badge--violet{background:var(--sa-violet-soft);color:#6d28d9}.sa-record-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px}.sa-icon-action{width:34px;height:34px;display:grid!important;place-items:center;padding:0!important;border:1px solid transparent;border-radius:9px;background:#fff;text-decoration:none!important;cursor:pointer}.sa-icon-action--edit{border-color:#b8d5ff!important;background:#eff6ff!important;color:#0968e5!important}.sa-icon-action--delete{border-color:#ffc6ca!important;background:#fff1f2!important;color:#dc2633!important}.sa-icon-action--view{border-color:#bae6fd!important;background:#f0f9ff!important;color:#0369a1!important}.sa-icon-action--whatsapp{border-color:#bbf7d0!important;background:#f0fdf4!important;color:#15803d!important}.sa-icon-action--renew{border-color:#fde68a!important;background:#fffbeb!important;color:#b45309!important}.sa-icon-action--copy{border-color:#ddd6fe!important;background:#f5f3ff!important;color:#6d28d9!important}
.sa-records-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 16px;border-top:1px solid var(--sa-border);background:#fff}.sa-pagination{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.sa-page-button{min-width:32px;height:32px;display:inline-grid;place-items:center;padding:0 9px;border:1px solid var(--sa-border-strong);border-radius:8px;background:#fff;color:var(--sa-text);font-size:11px;font-weight:800;text-decoration:none}.sa-page-button:hover{border-color:var(--sa-primary);color:var(--sa-primary)}.sa-page-button.is-active{border-color:var(--sa-primary);background:var(--sa-primary);color:#fff}.sa-page-button.is-disabled{opacity:.42;pointer-events:none}.sa-page-ellipsis{padding:0 4px;color:#94a3b8}.sa-empty-state{min-height:185px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;padding:28px;color:var(--sa-muted);text-align:center}.sa-empty-state i{font-size:29px;color:var(--sa-primary)}.sa-empty-state strong{color:#334155;font-size:14px}.sa-empty-state span{font-size:11.5px}
.sa-split-layout{display:grid;grid-template-columns:minmax(290px,.75fr) minmax(0,1.5fr);gap:14px}.sa-card{border:1px solid var(--sa-border);border-radius:var(--sa-radius);background:#fff;box-shadow:var(--sa-shadow)}.sa-card__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--sa-border)}.sa-card__header h2{margin:0;font-size:16px;font-weight:900}.sa-card__header p{margin:2px 0 0;color:var(--sa-muted);font-size:11px}.sa-card__body{padding:16px}.sa-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.sa-form-field{min-width:0}.sa-form-field.is-full{grid-column:1/-1}.sa-form-field label{display:flex;align-items:center;gap:6px;margin-bottom:5px;color:#334155;font-size:11px;font-weight:850}.sa-form-field label i{color:var(--sa-primary)}.sa-form-field input:not([type=checkbox]):not([type=radio]),.sa-form-field select,.sa-form-field textarea{width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--sa-border-strong);border-radius:10px;background:#fff;color:var(--sa-text);font-size:12px;outline:none}.sa-form-field textarea{min-height:92px;resize:vertical}.sa-form-field input:focus,.sa-form-field select:focus,.sa-form-field textarea:focus{border-color:var(--sa-primary);box-shadow:0 0 0 3px rgba(238,53,62,.1)}.sa-form-field small{display:block;margin-top:4px;color:var(--sa-muted);font-size:10px;line-height:1.45}.sa-form-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.sa-modal-overlay{position:fixed;inset:0;z-index:2147482500;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(15,23,42,.58);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px)}.sa-modal-overlay.hidden{display:none!important}.sa-modal-panel{width:min(720px,96vw);max-height:88vh;display:flex;flex-direction:column;overflow:hidden;border:1px solid var(--sa-border);border-radius:18px;background:#fff;box-shadow:0 28px 70px rgba(15,23,42,.28)}.sa-modal-panel.is-wide{width:min(920px,96vw)}.sa-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:14px 16px;border-bottom:1px solid var(--sa-border);background:linear-gradient(180deg,#fff,#fbfcfe)}.sa-modal-heading{display:flex;align-items:flex-start;gap:11px}.sa-modal-heading__icon{width:38px;height:38px;display:grid;place-items:center;flex:0 0 auto;border-radius:11px;background:var(--sa-primary-soft);color:var(--sa-primary)}.sa-modal-eyebrow{display:block;color:var(--sa-primary);font-size:9px;font-weight:900;letter-spacing:.09em;text-transform:uppercase}.sa-modal-header h3{margin:2px 0 0;color:var(--sa-text);font-size:17px;font-weight:900}.sa-modal-header p{margin:3px 0 0;color:var(--sa-muted);font-size:10.5px}.sa-modal-close{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border:1px solid var(--sa-border);border-radius:9px;background:#fff;color:#64748b;cursor:pointer}.sa-modal-body{min-height:0;overflow-y:auto;padding:16px}.sa-modal-help{display:flex;align-items:flex-start;gap:8px;padding:10px 11px;margin-bottom:13px;border:1px solid #bfdbfe;border-radius:11px;background:#eff6ff;color:#1e40af;font-size:10.5px;line-height:1.45}.sa-modal-footer{display:flex;justify-content:flex-end;gap:8px;padding:11px 16px;border-top:1px solid var(--sa-border);background:#fbfcfe}
body[data-role="Superadmin"] .sa-native-modal{background:rgba(15,23,42,.58)!important;backdrop-filter:blur(5px);padding:16px!important;z-index:2147482500!important}body[data-role="Superadmin"] .sa-native-modal>div{width:min(720px,96vw)!important;max-width:720px!important;max-height:88vh!important;border:1px solid var(--sa-border)!important;border-radius:18px!important;background:#fff!important;box-shadow:0 28px 70px rgba(15,23,42,.28)!important;padding:0!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}body[data-role="Superadmin"] .sa-native-modal.sa-native-modal--wide>div{width:min(920px,96vw)!important;max-width:920px!important}body[data-role="Superadmin"] .sa-native-modal>div>div:first-child{padding:14px 16px!important;margin:0!important;border-bottom:1px solid var(--sa-border)!important;background:#fbfcfe!important}body[data-role="Superadmin"] .sa-native-modal form{min-height:0!important;overflow-y:auto!important;padding:16px!important}body[data-role="Superadmin"] .sa-native-modal form label{font-size:11px!important;font-weight:850!important;color:#334155!important}body[data-role="Superadmin"] .sa-native-modal form input:not([type=checkbox]):not([type=radio]):not([type=file]),body[data-role="Superadmin"] .sa-native-modal form select,body[data-role="Superadmin"] .sa-native-modal form textarea{width:100%!important;border:1px solid var(--sa-border-strong)!important;border-radius:10px!important;background:#fff!important;color:var(--sa-text)!important;font-size:12px!important;padding:8px 10px!important;outline:none!important}body[data-role="Superadmin"] .sa-native-modal form input:not([type=checkbox]):not([type=radio]):not([type=file]),body[data-role="Superadmin"] .sa-native-modal form select{min-height:40px!important}body[data-role="Superadmin"] .sa-native-modal form input:focus,body[data-role="Superadmin"] .sa-native-modal form select:focus,body[data-role="Superadmin"] .sa-native-modal form textarea:focus{border-color:var(--sa-primary)!important;box-shadow:0 0 0 3px rgba(238,53,62,.1)!important}
.sa-config-sections{display:grid;gap:14px}.sa-config-section{border:1px solid var(--sa-border);border-radius:var(--sa-radius);background:#fff;box-shadow:var(--sa-shadow);overflow:hidden}.sa-config-section__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--sa-border);background:#fbfcfe}.sa-config-section__header h2{margin:0;font-size:16px;font-weight:900}.sa-config-section__header p{margin:2px 0 0;color:var(--sa-muted);font-size:11px}.sa-config-section__body{padding:16px}.sa-tip-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:14px}.sa-tip-card{display:flex;align-items:flex-start;gap:10px;padding:13px;border:1px solid var(--sa-border);border-radius:13px;background:#fff}.sa-tip-card i{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:var(--sa-blue-soft);color:var(--sa-blue)}.sa-tip-card strong{display:block;font-size:12px}.sa-tip-card p{margin:3px 0 0;color:var(--sa-muted);font-size:10.5px;line-height:1.45}
/* DataTables solo como motor interno; controles nativos quedan ocultos cuando el módulo usa filtros propios. */
.sa-records-panel .dataTables_wrapper{width:100%}.sa-records-panel .dataTables_length,.sa-records-panel .dataTables_filter{display:none!important}.sa-records-panel .dataTables_info,.sa-records-panel .dataTables_paginate{display:none!important}.sa-records-panel table.dataTable{margin:0!important;border-collapse:collapse!important}.sa-records-panel table.dataTable.no-footer{border-bottom:0!important}
.sa-manual-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end;margin-bottom:14px;padding:13px 16px;border:1px solid var(--sa-border);border-radius:14px;background:#fff;box-shadow:var(--sa-shadow)}.sa-manual-search label{display:flex;align-items:center;gap:6px;margin-bottom:5px;color:#334155;font-size:10.5px;font-weight:850}.sa-manual-search input{width:100%;height:40px;padding:0 12px;border:1px solid var(--sa-border-strong);border-radius:10px;text-align:left;font-size:12px}.sa-manual-search__badge{min-height:40px;display:inline-flex;align-items:center;gap:7px;padding:0 13px;border-radius:10px;background:var(--sa-success-soft);color:var(--sa-success);font-size:11px;font-weight:850}
@media(max-width:1100px){.sa-records-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.sa-filter-actions{grid-column:1/-1}.sa-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sa-split-layout{grid-template-columns:1fr}.sa-tip-grid{grid-template-columns:1fr}}
@media(max-width:720px){body[data-role="Superadmin"] .admin-main{padding-left:10px!important;padding-right:10px!important}.sa-module-hero{align-items:flex-start;flex-direction:column;padding:15px}.sa-module-hero__actions{width:100%;justify-content:flex-start}.sa-module-hero__actions .sa-btn{width:100%!important}.sa-module-hero h1{font-size:22px}.sa-summary-grid,.sa-records-filters,.sa-records-filters.is-compact,.sa-form-grid{grid-template-columns:1fr}.sa-summary-card{min-height:78px}.sa-filter-actions,.sa-filter-actions .sa-btn{width:100%}.sa-records-footer{align-items:flex-start;flex-direction:column}.sa-records-panel__header{align-items:flex-start;flex-direction:column}.sa-modal-overlay,.sa-native-modal{align-items:flex-end!important;padding:7px!important}.sa-modal-panel,body[data-role="Superadmin"] .sa-native-modal>div{width:100%!important;max-width:none!important;max-height:92vh!important;border-radius:17px 17px 8px 8px!important}.sa-manual-search{grid-template-columns:1fr}.sa-records-table th,.sa-records-table td{padding:9px 10px}}
.sa-role-list{display:grid;gap:7px}.sa-role-option{width:100%;min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border:1px solid var(--sa-border);border-radius:11px;background:#fff;color:var(--sa-text);font-size:12px;font-weight:800;text-align:left;cursor:pointer}.sa-role-option>span{display:flex;align-items:center;gap:8px}.sa-role-option>span i{color:#94a3b8}.sa-role-option small{display:inline-flex;align-items:center;gap:5px;color:var(--sa-warning);font-size:9px}.sa-role-option:hover,.sa-role-option.is-active{border-color:#f4a5aa;background:var(--sa-primary-soft);color:var(--sa-primary)}.sa-permissions-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:520px;overflow-y:auto;padding-right:3px}.sa-permission-option{min-height:48px;display:flex;align-items:center;gap:9px;padding:9px 10px;border:1px solid var(--sa-border);border-radius:11px;background:#fff;color:#334155;font-size:11.5px;font-weight:700;cursor:pointer}.sa-permission-option:hover{border-color:#b8d5ff;background:#f8fbff}.sa-permission-option input{position:absolute;opacity:0;pointer-events:none}.sa-permission-check{width:22px;height:22px;display:grid;place-items:center;flex:0 0 auto;border:1px solid var(--sa-border-strong);border-radius:7px;background:#fff;color:transparent}.sa-permission-option input:checked+.sa-permission-check{border-color:var(--sa-primary);background:var(--sa-primary);color:#fff}.sa-permission-option input:disabled~span{opacity:.7}.sa-permission-note{grid-column:1/-1;margin:4px 0 0}@media(max-width:720px){.sa-permissions-grid{grid-template-columns:1fr}}
body[data-role="Superadmin"] .brand-settings-layout{gap:14px!important}body[data-role="Superadmin"] .brand-settings-sections{gap:14px!important}body[data-role="Superadmin"] .brand-settings-section{border:1px solid var(--sa-border)!important;border-radius:var(--sa-radius)!important;background:#fff!important;box-shadow:var(--sa-shadow)!important;overflow:hidden!important}body[data-role="Superadmin"] .brand-settings-section-header{padding:14px 16px!important;border-bottom:1px solid var(--sa-border)!important;background:#fbfcfe!important}body[data-role="Superadmin"] .brand-settings-section-header h2{font-size:16px!important;font-weight:900!important;color:var(--sa-text)!important}body[data-role="Superadmin"] .brand-settings-section-header p{font-size:11px!important;color:var(--sa-muted)!important}body[data-role="Superadmin"] .brand-settings-grid{padding:16px!important;gap:12px!important}body[data-role="Superadmin"] .brand-settings-field label{font-size:11px!important;font-weight:850!important;color:#334155!important}body[data-role="Superadmin"] .brand-settings-field input:not([type=checkbox]):not([type=radio]):not([type=file]),body[data-role="Superadmin"] .brand-settings-field select,body[data-role="Superadmin"] .brand-settings-field textarea{min-height:40px!important;border:1px solid var(--sa-border-strong)!important;border-radius:10px!important;font-size:12px!important}body[data-role="Superadmin"] .brand-preview{border:1px solid var(--sa-border)!important;border-radius:var(--sa-radius)!important;box-shadow:var(--sa-shadow)!important}body[data-role="Superadmin"] .brand-settings-actions{position:sticky!important;bottom:0!important;z-index:4!important;padding:11px 14px!important;border:1px solid var(--sa-border)!important;border-radius:13px!important;background:rgba(255,255,255,.94)!important;backdrop-filter:blur(8px)!important}
.sa-reports-page{display:grid;gap:14px}.sa-reports-page>.sa-module-hero,.sa-reports-page>.sa-summary-grid{margin-bottom:0}.sa-report-card{overflow:hidden;padding:0!important;margin:0!important;border:1px solid var(--sa-border)!important;border-radius:var(--sa-radius)!important;background:#fff!important;box-shadow:var(--sa-shadow)!important}.sa-report-card__title{display:flex;align-items:center;gap:8px;margin:0!important;padding:14px 16px!important;border:0!important;border-bottom:1px solid var(--sa-border)!important;border-radius:0!important;background:#fbfcfe!important;color:var(--sa-text)!important;font-size:16px!important;font-weight:900!important}.sa-report-card__title i{color:var(--sa-primary)}.sa-report-filters{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr)) auto!important;align-items:end!important;gap:10px!important;margin:0!important;padding:13px 16px!important;border-bottom:1px solid var(--sa-border)!important;background:var(--sa-soft)!important}.sa-report-filters label{display:block;margin-bottom:5px;color:#334155;font-size:10.5px;font-weight:850}.sa-report-filters input,.sa-report-filters select{width:100%;height:40px;padding:7px 10px;border:1px solid var(--sa-border-strong);border-radius:10px;background:#fff;font-size:12px}.sa-report-card>.flex.justify-end{padding:12px 16px;margin:0!important;border-bottom:1px solid var(--sa-border);background:var(--sa-soft)}.sa-report-card>.sa-records-table-wrap{padding:0!important}.sa-report-card .sa-records-table{min-width:720px}.sa-report-card .sa-records-table thead{background:#edf3f9!important}.sa-report-card .sa-records-table th{padding:11px 12px!important}.sa-report-card .sa-records-table td{padding:11px 12px!important}.sa-report-card>p.text-xs{margin:0!important;padding:10px 16px!important;border-top:1px solid var(--sa-border);background:#fff;color:var(--sa-muted)!important}@media(max-width:720px){.sa-report-filters{grid-template-columns:1fr!important}.sa-report-filters .self-end{width:100%;display:flex}.sa-report-filters .sa-btn{flex:1}}
.sa-manual-page{display:grid;gap:14px}.sa-manual-page>.sa-module-hero{margin-bottom:0}.sa-manual-page .manual-section{margin:0!important;padding:16px!important;border:1px solid var(--sa-border)!important;border-radius:var(--sa-radius)!important;background:linear-gradient(145deg,#fff 0%,#fbfcfe 100%)!important;box-shadow:var(--sa-shadow)!important}.sa-manual-page .manual-section:nth-of-type(3n+1){background:linear-gradient(145deg,#fff7f7,#fff)!important}.sa-manual-page .manual-section:nth-of-type(3n+2){background:linear-gradient(145deg,#f3f8ff,#fff)!important}.sa-manual-page .manual-section:nth-of-type(3n){background:linear-gradient(145deg,#f5fff8,#fff)!important}.sa-manual-page .manual-section-heading{margin-bottom:12px!important}.sa-manual-page .manual-section-heading h2{font-size:17px!important;font-weight:900!important}.sa-manual-page .manual-section-heading p{font-size:11px!important;color:var(--sa-muted)!important}.sa-manual-page .manual-card-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}.sa-manual-page .manual-card{padding:13px!important;border:1px solid var(--sa-border)!important;border-radius:13px!important;background:rgba(255,255,255,.94)!important;box-shadow:0 5px 16px rgba(15,23,42,.035)!important}.sa-manual-page .manual-card-icon{width:40px!important;height:40px!important;border-radius:11px!important;font-size:16px!important}.sa-manual-page .manual-card h3{margin-top:9px!important;font-size:13px!important;font-weight:900!important}.sa-manual-page .manual-card p,.sa-manual-page .manual-card li{font-size:10.5px!important;line-height:1.5!important}.sa-manual-page .sa-manual-checks{overflow:hidden}.sa-manual-page .manual-checklist{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.sa-manual-page .manual-checklist label{display:flex;align-items:flex-start;gap:8px;padding:10px;border:1px solid var(--sa-border);border-radius:10px;background:#fff;font-size:11px}@media(max-width:1000px){.sa-manual-page .manual-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}@media(max-width:650px){.sa-manual-page .manual-card-grid,.sa-manual-page .manual-checklist{grid-template-columns:1fr!important}}

/* Ajustes finales 3.1: formularios nativos, monedero y controles compactos. */
.sa-records-filters--compact{grid-template-columns:minmax(280px,1fr) minmax(140px,.25fr) auto}
.sa-inline-form{display:flex;align-items:flex-end;justify-content:flex-end;gap:12px;flex-wrap:wrap}.sa-inline-form .sa-form-field--compact{width:min(220px,100%)}
.sa-currency-card{margin-bottom:14px}.sa-currency-card .sa-card__body{padding:13px 16px}.sa-split-layout--credit{grid-template-columns:minmax(310px,.72fr) minmax(0,1.55fr)}
body[data-role="Superadmin"] .sa-native-modal form>.flex:last-child,
body[data-role="Superadmin"] .sa-native-modal form>[class*="border-t"]:last-child{position:sticky;bottom:0;z-index:4;margin:16px -16px -16px!important;padding:11px 16px!important;border-top:1px solid var(--sa-border)!important;background:#fbfcfe!important;box-shadow:0 -8px 18px rgba(15,23,42,.04)}
body[data-role="Superadmin"] .sa-native-modal>div>div:first-child h3{margin:0!important;color:var(--sa-text)!important;font-size:17px!important;font-weight:900!important;line-height:1.25!important}
body[data-role="Superadmin"] .sa-native-modal>div>div:first-child button{width:34px!important;height:34px!important;display:grid!important;place-items:center!important;border:1px solid var(--sa-border)!important;border-radius:9px!important;background:#fff!important;color:#64748b!important;font-size:21px!important;line-height:1!important}
body[data-role="Superadmin"] .sa-native-modal form button[type="submit"],body[data-role="Superadmin"] .sa-native-modal form button[id*="save" i]{min-height:40px!important;border-radius:11px!important;font-size:12px!important;font-weight:850!important}
body[data-role="Superadmin"] .sa-native-modal form button[type="button"]{min-height:40px;border-radius:11px;font-size:12px;font-weight:800}
.sa-records-table .sa-record-logo{width:38px;height:38px;display:grid;place-items:center;overflow:hidden;border:1px solid var(--sa-border);border-radius:10px;background:#fff}.sa-records-table .sa-record-logo img{width:100%;height:100%;padding:4px;object-fit:contain}
.sa-records-table .is-center{text-align:center}.sa-records-table .is-right{text-align:right}.sa-table-primary{display:block;color:var(--sa-text);font-weight:850}.sa-table-secondary{display:block;margin-top:2px;color:var(--sa-muted);font-size:10.5px}.sa-table-ellipsis{max-width:520px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sa-record-actions{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap}.sa-icon-action{width:34px;height:34px;display:grid;place-items:center;border:1px solid var(--sa-border-strong);border-radius:9px;background:#fff;cursor:pointer;transition:transform .15s ease,filter .15s ease}.sa-icon-action:hover{transform:translateY(-1px);filter:brightness(.97)}.sa-icon-action--edit{border-color:#bfdbfe;color:#0968e5;background:#eff6ff}.sa-icon-action--delete{border-color:#fecdd3;color:#dc2633;background:#fff1f2}.sa-icon-action--view{border-color:#bae6fd;color:#0284c7;background:#f0f9ff}.sa-icon-action--renew{border-color:#fde68a;color:#b45309;background:#fffbeb}.sa-icon-action--copy{border-color:#ddd6fe;color:#6d28d9;background:#f5f3ff}.sa-icon-action--whatsapp{border-color:#bbf7d0;color:#15803d;background:#f0fdf4}
.sa-badge{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:26px;padding:4px 8px;border:1px solid var(--sa-border);border-radius:999px;background:#f8fafc;color:#475569;font-size:10px;font-weight:850;white-space:nowrap}.sa-badge--success{border-color:#bbf7d0;background:#f0fdf4;color:#166534}.sa-badge--danger{border-color:#fecdd3;background:#fff1f2;color:#be123c}.sa-badge--warning{border-color:#fde68a;background:#fffbeb;color:#a16207}.sa-badge--blue{border-color:#bfdbfe;background:#eff6ff;color:#1d4ed8}
@media(max-width:1100px){.sa-records-filters--compact{grid-template-columns:repeat(2,minmax(0,1fr))}.sa-records-filters--compact .sa-filter-actions{grid-column:1/-1}.sa-split-layout--credit{grid-template-columns:1fr}}
@media(max-width:720px){.sa-records-filters--compact{grid-template-columns:1fr}.sa-inline-form,.sa-inline-form .sa-form-field--compact,.sa-inline-form .sa-btn{width:100%}}

/* Comunicación profesional 4.0 · Plantillas y mensajes */
.sa-communication-page code{padding:2px 5px;border:1px solid #dbe5f0;border-radius:6px;background:#fff;color:#7c3aed;font-size:10.5px;font-weight:800}
.sa-communication-filters{grid-template-columns:minmax(360px,1.65fr) minmax(170px,.65fr) minmax(135px,.4fr) auto}
.sa-template-filters{grid-template-columns:minmax(320px,1.35fr) minmax(190px,.72fr) minmax(190px,.72fr) minmax(135px,.42fr) auto}
.sa-code-key{display:inline-flex;align-items:center;gap:7px;font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono",monospace;font-size:11px}.sa-code-key i{color:var(--sa-violet)}
.sa-message-description{max-width:330px;display:block;color:#334155;font-size:11.5px;line-height:1.45}
.sa-message-content-preview{max-width:430px;display:-webkit-box;overflow:hidden;color:#334155;font-size:11.5px;line-height:1.48;-webkit-box-orient:vertical;-webkit-line-clamp:3;white-space:normal}
.sa-text-whatsapp{margin-right:5px;color:#15934c}
.sa-inline-empty{display:grid;place-items:center;gap:7px;padding:38px 18px;color:#64748b;text-align:center}.sa-inline-empty[hidden]{display:none}.sa-inline-empty i{font-size:25px;color:#94a3b8}.sa-inline-empty strong{color:#334155;font-size:14px}.sa-inline-empty span{font-size:11px}
.sa-communication-modal .af-modal-body{padding-bottom:20px}.sa-communication-modal textarea[readonly],.sa-communication-modal input[readonly]{color:#52647d;background:#f8fafc}.sa-communication-modal textarea{line-height:1.55}
.sa-field-meta{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-top:7px;color:#64748b;font-size:10.5px;line-height:1.45}.sa-field-meta>span:first-child{display:flex;align-items:center;flex-wrap:wrap;gap:5px}.sa-field-meta code{padding:2px 5px;border:1px solid #ddd6fe;border-radius:6px;background:#f5f3ff;color:#6d28d9;font-size:10px;font-weight:850}.sa-field-meta>span:last-child{white-space:nowrap}
.sa-live-preview{overflow:hidden;border:1px solid #dbe4ee;border-radius:13px;background:#f8fafc}.sa-live-preview__label{display:flex;align-items:center;gap:7px;padding:9px 12px;border-bottom:1px solid #dbe4ee;background:#eef4fa;color:#334155;font-size:10.5px;font-weight:900;text-transform:uppercase;letter-spacing:.045em}.sa-live-preview__label i{color:var(--sa-primary)}.sa-live-preview__content{min-height:95px;padding:14px;color:#1f2937;font-size:12.5px;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere}.sa-whatsapp-preview{border-color:#b7e4c7;background:#effcf3}.sa-whatsapp-preview .sa-live-preview__label{border-color:#b7e4c7;background:#dcf8e6;color:#166534}.sa-whatsapp-preview .sa-live-preview__label i{color:#15934c}.sa-whatsapp-preview .sa-live-preview__content{margin:12px;min-height:80px;padding:12px 14px;border-radius:6px 12px 12px 12px;background:#fff;box-shadow:0 3px 12px rgba(15,23,42,.08)}
.sa-swal-message-preview{padding:13px;border:1px solid #b7e4c7;border-radius:12px;background:#effcf3;text-align:left}.sa-swal-message-preview>div{padding:12px 14px;border-radius:6px 12px 12px 12px;background:#fff;color:#1f2937;font-size:13px;line-height:1.55;box-shadow:0 3px 12px rgba(15,23,42,.07)}
@media(max-width:1100px){.sa-communication-filters,.sa-template-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.sa-communication-filters .sa-filter-actions,.sa-template-filters .sa-filter-actions{grid-column:1/-1;justify-content:flex-end}}
@media(max-width:720px){.sa-communication-filters,.sa-template-filters{grid-template-columns:1fr}.sa-communication-filters .sa-filter-actions,.sa-template-filters .sa-filter-actions{grid-column:auto}.sa-communication-filters .sa-filter-actions .sa-btn,.sa-template-filters .sa-filter-actions .sa-btn{width:100%!important}.sa-field-meta{flex-direction:column}.sa-message-content-preview{max-width:260px}}


/* Ajustes de unificación administrativa v12 */
body[data-role="Superadmin"] .sa-page{max-width:1480px}
.sa-records-footer--pagination{justify-content:flex-end;min-height:54px}
.sa-records-counter-row>span:first-child{color:#475569;font-size:11.5px;font-weight:750}
.sa-communication-page .sa-module-hero,.sa-communication-page .sa-summary-grid,.sa-communication-page .sa-records-panel{width:100%}
.sa-split-layout,.brand-settings-layout{width:100%}

/* Comunicación y suscripción v13 */
.sa-records-counter-row>span:first-child{font-weight:400}
.sa-records-footer__note{color:#64748b;font-size:11px;line-height:1.45}
.sa-communication-page .sa-module-hero__actions{flex:0 0 auto}
.sa-communication-page .sa-module-hero__actions .sa-btn{width:auto!important;min-width:0!important;max-width:none!important;flex:0 0 auto!important;padding-left:15px!important;padding-right:15px!important}

.sa-communication-modal.af-modal-lg{width:min(1080px,100%);max-height:92vh;border-radius:20px}
.sa-communication-modal__head{padding:18px 20px;background:linear-gradient(135deg,#fff 0%,#fff 70%,#fff2f3 100%)}
.sa-communication-modal__head .af-modal-title{align-items:center}
.sa-communication-modal__head .af-modal-icon{width:42px;height:42px;flex-basis:42px;border-radius:13px}
.sa-communication-modal__head .sa-modal-icon--whatsapp{background:#e9fbef;color:#159447}
.sa-communication-modal__body{padding:16px 18px 18px;background:#f7f9fc}
.sa-communication-modal__footer{padding:13px 18px;background:#fff}
.sa-editor-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr);gap:14px;align-items:stretch}
.sa-editor-layout--message{grid-template-columns:minmax(0,1.12fr) minmax(320px,.88fr)}
.sa-editor-panel,.sa-editor-preview-panel{min-width:0;border:1px solid #dce5ef;border-radius:15px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.045)}
.sa-editor-panel{padding:15px}
.sa-editor-preview-panel{display:flex;flex-direction:column;padding:15px;background:linear-gradient(180deg,#fff 0%,#f8fafc 100%)}
.sa-editor-section-title{display:flex;align-items:center;gap:10px;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid #e5ebf2}
.sa-editor-section-title>span{width:34px;height:34px;display:grid;place-items:center;flex:0 0 auto;border-radius:10px;background:#fff0f1;color:var(--sa-primary)}
.sa-editor-preview-panel .sa-editor-section-title>span{background:#eff6ff;color:#2563eb}
.sa-editor-section-title strong{display:block;color:#172033;font-size:13px;font-weight:900;line-height:1.25}
.sa-editor-section-title small{display:block;margin-top:2px;color:#718096;font-size:10.5px;line-height:1.35}
.sa-editor-fields-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sa-editor-fields-grid>.full{grid-column:1/-1}
.sa-editor-fields-grid .af-label{margin-bottom:6px}
.sa-editor-fields-grid .af-control{border-radius:10px;background:#fff}
.sa-editor-fields-grid input[readonly],.sa-editor-fields-grid textarea[readonly]{border-color:#dce4ed;background:#f8fafc;color:#52647d}
.sa-editor-message-field textarea{min-height:210px;resize:vertical;line-height:1.55}
.sa-phone-preview{flex:1;min-height:330px;overflow:hidden;border:1px solid #cfe4d6;border-radius:15px;background:#e9f5ed;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}
.sa-phone-preview__bar{height:46px;display:flex;align-items:center;justify-content:space-between;padding:0 14px;background:#128c7e;color:#fff;font-size:11px;font-weight:900;letter-spacing:.02em}
.sa-phone-preview__bar span{display:inline-flex;align-items:center;gap:7px}
.sa-phone-preview .sa-whatsapp-preview{border:0;border-radius:0;background:transparent}
.sa-phone-preview .sa-whatsapp-preview .sa-live-preview__content{min-height:100px;margin:18px;padding:13px 15px;border-radius:5px 13px 13px 13px;background:#fff;color:#1f2937;font-size:12.5px;line-height:1.6;box-shadow:0 4px 14px rgba(15,23,42,.1)}
.sa-system-preview{flex:1;min-height:330px;overflow:hidden;border:1px solid #dbe4ee;border-radius:15px;background:#fff;box-shadow:0 8px 22px rgba(15,23,42,.04)}
.sa-system-preview__head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid #e2e8f0;background:#eef4fa;color:#334155;font-size:10.5px;font-weight:900;text-transform:uppercase;letter-spacing:.045em}
.sa-system-preview__head>span:first-child{display:inline-flex;align-items:center;gap:7px}
.sa-system-preview__head i{color:var(--sa-primary)}
.sa-system-preview__status{padding:4px 7px;border-radius:999px;background:#fff;color:#64748b;font-size:9px;letter-spacing:.03em}
.sa-system-preview__content{min-height:250px;padding:18px;color:#1f2937;font-size:13px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.sa-preview-swal{width:min(620px,calc(100vw - 28px))!important;padding:0 0 18px!important;border-radius:18px!important}
.sa-preview-swal .swal2-title{padding:20px 22px 6px!important;color:#172033!important;font-size:20px!important;font-weight:900!important}
.sa-swal-preview-card{padding:8px 20px 4px}
.sa-swal-preview-meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:7px;margin-bottom:12px}
.sa-swal-preview-meta span{display:inline-flex;align-items:center;gap:6px;padding:5px 9px;border:1px solid #dbe4ee;border-radius:999px;background:#f8fafc;color:#52647d;font-size:10px;font-weight:850}
.sa-swal-preview-meta i{color:#64748b}
.sa-preview-swal__button{min-height:39px;padding:0 16px;border:0;border-radius:10px;background:var(--sa-primary);color:#fff;font-size:12px;font-weight:900;cursor:pointer}

@media(max-width:900px){
 .sa-editor-layout,.sa-editor-layout--message{grid-template-columns:1fr}
 .sa-editor-preview-panel{min-height:300px}
 .sa-phone-preview,.sa-system-preview{min-height:260px}
 .sa-system-preview__content{min-height:190px}
}
@media(max-width:720px){
 .sa-communication-modal__body{padding:10px}
 .sa-editor-panel,.sa-editor-preview-panel{padding:12px;border-radius:13px}
 .sa-editor-fields-grid{grid-template-columns:1fr}
 .sa-editor-fields-grid>.full{grid-column:auto}
 .sa-editor-message-field textarea{min-height:170px}
 .sa-records-footer__note{max-width:100%}
}


/* Comunicación compacta v14 · Plantillas y mensajes */
.sa-communication-page #openTemplateModal{
 width:auto!important;min-width:0!important;max-width:max-content!important;flex:0 0 auto!important;
 height:40px!important;min-height:40px!important;padding:0 14px!important;border-radius:11px!important;
}
.sa-communication-page #openTemplateModal i{width:18px;height:18px;display:grid;place-items:center;flex:0 0 18px;font-size:10px}
.sa-communication-modal{display:flex;flex-direction:column;overflow:hidden}
.sa-communication-modal>form{min-height:0;display:flex;flex:1;flex-direction:column;overflow:hidden}
.sa-communication-modal__body{min-height:0;overflow:auto}
.sa-template-modal.af-modal-lg{width:min(960px,calc(100vw - 28px));max-height:88vh}
.sa-message-modal.af-modal-lg{width:min(930px,calc(100vw - 28px));max-height:88vh}
.sa-editor-layout--template{grid-template-columns:minmax(0,1.28fr) minmax(290px,.72fr)}
.sa-editor-layout--message{grid-template-columns:minmax(0,1.2fr) minmax(290px,.8fr)}
.sa-template-modal .sa-editor-panel,.sa-template-modal .sa-editor-preview-panel,
.sa-message-modal .sa-editor-panel,.sa-message-modal .sa-editor-preview-panel{padding:13px}
.sa-template-modal .sa-editor-section-title,.sa-message-modal .sa-editor-section-title{margin-bottom:11px;padding-bottom:9px}
.sa-template-modal .sa-editor-fields-grid,.sa-message-modal .sa-editor-fields-grid{gap:10px}
.sa-template-modal .sa-editor-message-field textarea{min-height:155px;max-height:230px}
.sa-message-modal .sa-editor-message-field textarea{min-height:135px;max-height:210px}
.sa-message-modal #messageDescription{min-height:58px!important;max-height:74px!important;resize:none!important}
.sa-template-modal .sa-phone-preview,.sa-message-modal .sa-system-preview{min-height:250px}
.sa-message-modal .sa-system-preview__content{min-height:175px;padding:15px;font-size:12.5px;line-height:1.55}
.sa-content-column{width:30%;max-width:360px}
.sa-content-column .sa-message-content-preview{max-width:360px;-webkit-line-clamp:2;line-height:1.4}
@media(max-width:900px){
 .sa-template-modal.af-modal-lg,.sa-message-modal.af-modal-lg{width:min(720px,calc(100vw - 18px));max-height:92vh}
 .sa-editor-layout--template,.sa-editor-layout--message{grid-template-columns:1fr}
 .sa-template-modal .sa-phone-preview,.sa-message-modal .sa-system-preview{min-height:210px}
 .sa-message-modal .sa-system-preview__content{min-height:145px}
}
@media(max-width:720px){
 .sa-communication-page #openTemplateModal{width:auto!important;max-width:100%!important}
 .sa-template-modal.af-modal-lg,.sa-message-modal.af-modal-lg{width:100%;max-height:94vh;border-radius:16px 16px 8px 8px}
 .sa-template-modal .sa-editor-message-field textarea,.sa-message-modal .sa-editor-message-field textarea{min-height:135px}
 .sa-content-column{width:auto;max-width:none}
}
