/* SISTEMA SANA TU DEUDA · V8.16.13 · Permisos por área */
.stdPermV13{padding:4px 2px 28px;color:#0b315f}.stdPermPageHead{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:18px}.stdPermPageHead h2{margin:0;font-size:28px}.stdPermPageHead p{margin:5px 0 0;color:#6a7f99}.stdPermHeadActions{display:flex;align-items:center;gap:12px}.stdPermHeadActions>[data-std-auto-save]{display:inline-flex;align-items:center;min-height:36px;padding:0 13px;border-radius:999px;background:#eef7f2;color:#31815f;font-weight:800;font-size:12px;transition:.18s}.stdPermHeadActions>[data-std-auto-save].saved{background:#dff7e9;transform:scale(1.02)}.stdPermLayout{display:grid;grid-template-columns:minmax(260px,320px) minmax(0,1fr);gap:18px;align-items:start}.stdPermUsers,.stdPermEditor{border:1px solid #d7e4f2;border-radius:18px;background:#fff;box-shadow:0 12px 34px rgba(26,75,126,.08)}.stdPermUsers{position:sticky;top:14px;overflow:hidden}.stdPermSearch{display:flex;align-items:center;gap:9px;padding:14px;border-bottom:1px solid #e1eaf4}.stdPermSearch>span{display:flex;width:28px;height:28px;color:#148bb6}.stdPermSearch svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8}.stdPermSearch input{width:100%;height:40px;border:1px solid #cadbec;border-radius:11px;padding:0 12px;font:600 13px Inter,sans-serif}.stdPermUserList{max-height:calc(100vh - 300px);overflow:auto;padding:8px}.stdPermUser{width:100%;display:grid;grid-template-columns:42px minmax(0,1fr) 10px;align-items:center;gap:10px;border:0;background:transparent;border-radius:12px;padding:10px;text-align:left;color:#103866;cursor:pointer}.stdPermUser:hover{background:#f2f8fd}.stdPermUser.active{background:#e5f4fc;box-shadow:inset 3px 0 #0aaed7}.stdPermUser>span:nth-child(2){min-width:0}.stdPermUser b,.stdPermUser small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.stdPermUser b{font-size:14px}.stdPermUser small{margin-top:2px;color:#6c8198;font-size:11px}.stdPermUser>i{width:8px;height:8px;border-radius:50%}.stdPermUser>i.online{background:#27b66f}.stdPermUser>i.offline{background:#cbd5e1}.stdPermAvatar{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:#e5f3ff;color:#0d66ad;font-weight:900}.stdPermAvatar.big{width:54px;height:54px;border-radius:16px;background:linear-gradient(135deg,#1172c5,#0ab8c0);color:#fff}.stdPermEmpty{padding:20px;text-align:center;color:#72859b}.stdPermEditor{padding:18px;min-width:0}.stdPermProfile{padding:2px 2px 18px;border-bottom:1px solid #e1eaf4}.stdPermProfileTitle{display:flex;align-items:center;gap:12px;margin-bottom:15px}.stdPermProfileTitle h3{margin:0;font-size:20px}.stdPermProfileTitle p{margin:3px 0 0;color:#71839a}.stdPermProfileFields{display:grid;grid-template-columns:repeat(5,minmax(130px,1fr));gap:10px}.stdPermProfileFields label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#486580}.stdPermProfileFields input,.stdPermProfileFields select{width:100%;height:39px;border:1px solid #cdddec;border-radius:10px;padding:0 10px;background:#fff;color:#113961;font:700 12px Inter,sans-serif}.stdPermAreaTabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}.stdPermAreaTabs button{display:grid;grid-template-columns:42px minmax(0,1fr);grid-template-rows:auto auto;column-gap:10px;align-items:center;border:1px solid #d2e1ef;border-radius:14px;background:#f8fbfe;padding:13px;text-align:left;color:#173f69;cursor:pointer;transition:.18s}.stdPermAreaTabs button:hover{transform:translateY(-1px);border-color:#9fcbe6}.stdPermAreaTabs button.active{background:linear-gradient(135deg,#e7f6fd,#edf9f6);border-color:#16acd1;box-shadow:0 8px 20px rgba(10,158,193,.12)}.stdPermAreaTabs button>span{grid-row:1/3;display:flex;width:36px;height:36px;color:#0f91c0}.stdPermAreaTabs svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8}.stdPermAreaTabs b{font-size:14px}.stdPermAreaTabs small{color:#71859b;font-size:11px}.stdPermAreaPanel{border:1px solid #d6e5f1;border-radius:16px;overflow:hidden}.stdPermAreaHead{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;background:#f4f9fd;border-bottom:1px solid #dce8f3}.stdPermAreaIdentity{display:flex;align-items:center;gap:12px}.stdPermAreaIdentity>span{display:flex;width:40px;height:40px;color:#0c91bd}.stdPermAreaIdentity svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8}.stdPermAreaIdentity h3{margin:0;font-size:19px}.stdPermAreaIdentity p{margin:4px 0 0;color:#70849a;font-size:12px}.stdPermAreaMaster{display:flex;align-items:center;gap:10px;font-weight:800;font-size:12px}.stdPermAreaMaster input,.stdPermMaster input,.stdPermSwitch input{position:absolute;opacity:0;pointer-events:none}.stdPermAreaMaster i,.stdPermMaster i{position:relative;display:block;width:44px;height:24px;border-radius:999px;background:#cbd8e5;transition:.18s}.stdPermAreaMaster i:after,.stdPermMaster i:after{content:"";position:absolute;left:3px;top:3px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 2px 5px rgba(0,0,0,.2);transition:.18s}.stdPermAreaMaster input:checked+i,.stdPermMaster input:checked+i{background:#0cb3b0}.stdPermAreaMaster input:checked+i:after,.stdPermMaster input:checked+i:after{transform:translateX(20px)}.stdPermModules{padding:12px;display:grid;gap:10px}.stdPermModules.areaOff{opacity:.56}.stdPermModule{border:1px solid #d7e4ef;border-radius:13px;background:#fff;overflow:hidden}.stdPermModule>summary{list-style:none;display:grid;grid-template-columns:38px minmax(0,1fr) 48px;gap:11px;align-items:center;padding:12px 14px;cursor:pointer}.stdPermModule>summary::-webkit-details-marker{display:none}.stdPermModule.enabled>summary{background:#f7fcff}.stdPermModuleIcon{display:flex;width:34px;height:34px;color:#168dbc}.stdPermModuleIcon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8}.stdPermModuleTitle b,.stdPermModuleTitle small{display:block}.stdPermModuleTitle b{font-size:14px}.stdPermModuleTitle small{margin-top:2px;color:#73869b;font-size:11px}.stdPermMaster{justify-self:end}.stdPermMaster.disabled{opacity:.45}.stdPermModuleBody{padding:12px 14px 14px;border-top:1px solid #e4edf5}.stdPermQuick{display:flex;justify-content:flex-end;gap:7px;margin-bottom:10px}.stdPermQuick button{border:1px solid #cbdce9;background:#fff;border-radius:8px;padding:6px 9px;color:#315a7d;font:800 10px Inter,sans-serif;cursor:pointer}.stdPermSwitchGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.stdPermSwitch{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;border:1px solid #e0eaf2;border-radius:10px;padding:8px 10px;background:#fbfdff;color:#284e70;font-size:11px;font-weight:750}.stdPermSwitch i{position:relative;display:block;flex:0 0 auto;width:34px;height:19px;border-radius:999px;background:#cad6e2;transition:.18s}.stdPermSwitch i:after{content:"";position:absolute;left:2px;top:2px;width:15px;height:15px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.2);transition:.18s}.stdPermSwitch input:checked+i{background:#148bc1}.stdPermSwitch input:checked+i:after{transform:translateX(15px)}.stdPermSwitch.disabled{opacity:.5;background:#f3f6f9}.stdPermSwitch.disabled i{cursor:not-allowed}@media(max-width:1180px){.stdPermProfileFields{grid-template-columns:repeat(3,1fr)}.stdPermSwitchGrid{grid-template-columns:1fr}}@media(max-width:860px){.stdPermLayout{grid-template-columns:1fr}.stdPermUsers{position:static}.stdPermUserList{max-height:250px}.stdPermAreaTabs{grid-template-columns:1fr}.stdPermProfileFields{grid-template-columns:1fr 1fr}.stdPermPageHead{align-items:flex-start;flex-direction:column}}


/* V8.16.16 · menú de perfil uniforme y selector de área */
.stdServiceProfileFoot{position:relative!important;gap:8px!important}
.stdServiceProfileFoot .sideUserBox{cursor:pointer;border:1px solid #d7e4f1;border-radius:15px;padding:10px;background:#fff;transition:.18s;box-shadow:0 8px 22px rgba(14,45,96,.06)}
.stdServiceProfileFoot .sideUserBox:hover{background:#f5faff;border-color:#b9d7ec}
.attentionProfileMenu{display:none;position:absolute;left:0;right:0;bottom:62px;background:#fff;border:1px solid #d8e4f1;border-radius:14px;padding:7px;box-shadow:0 20px 45px rgba(4,22,48,.28);z-index:500}
.attentionProfileMenu.open{display:grid}
.attentionProfileMenu button{border:0;background:#fff;color:#153d6d;padding:11px 12px;border-radius:9px;text-align:left;font-weight:800;cursor:pointer}
.attentionProfileMenu button:hover{background:#edf6ff}
.stdProfileHidden{display:none!important}
.advisorProfileMenu{bottom:74px!important}
.attentionProfileMenu [hidden],.advisorProfileMenu [hidden]{display:none!important}

/* V8.16.19 · edición explícita y alta de usuarios */
.stdPermUserTools{padding:14px 14px 8px;border-bottom:0}
.stdPermNewUser{width:100%;min-height:42px;border-radius:11px;font-weight:900}
.stdPermProfileFields{grid-template-columns:repeat(6,minmax(120px,1fr))}
.stdPermProfileFields input:disabled,.stdPermProfileFields select:disabled{background:#f2f6fa;color:#60778d;border-color:#dce6ef;cursor:default;opacity:1}
.stdPermProfile.isEditing{border-radius:14px;background:#fbfdff;box-shadow:inset 0 0 0 1px #dceaf4;padding:14px;margin:-8px -8px 18px}
.stdNewUserForm{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.stdNewUserForm label{display:grid;gap:6px;font-weight:800;color:#234d75}
.stdNewUserForm input,.stdNewUserForm select{width:100%;min-height:42px;border:1px solid #cdddec;border-radius:10px;padding:0 11px;background:#fff;color:#113961}
.liquidacionesFrameShell{width:100%;height:calc(100vh - 112px);min-height:720px;border:1px solid #d7e4f1;border-radius:16px;background:#f5f9fd;overflow:hidden;box-shadow:0 10px 28px rgba(15,42,85,.06)}
.liquidacionesEmbedFrame{display:block;width:100%;height:100%;border:0;background:transparent}
@media(max-width:1350px){.stdPermProfileFields{grid-template-columns:repeat(3,minmax(130px,1fr))}}
@media(max-width:860px){.stdNewUserForm{grid-template-columns:1fr}.liquidacionesFrameShell{height:calc(100vh - 96px);min-height:640px}}
