/* Plataforma Valen — consola de soporte operativo v1 */
.psc1-shell{display:flex;flex-direction:column;gap:16px;padding:22px 24px;border-radius:22px;background:linear-gradient(145deg,#f2f8f5,#fff);border:1px solid rgba(14,124,102,.11);box-shadow:0 12px 30px rgba(24,55,47,.07)}
.psc1-head,.psc1-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px}.psc1-head>div:first-child{max-width:780px}.psc1-head span,.psc1-section-head span{font-size:10px;font-weight:900;letter-spacing:.12em;color:#0e7c66}.psc1-head h3{margin:5px 0 6px;font-size:24px;color:#173c33}.psc1-head p,.psc1-section-head p{margin:0;color:#6b7974;font-size:13px;line-height:1.5}.psc1-head-actions{display:flex;gap:8px;flex-shrink:0}
.psc1-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.psc1-kpis article{padding:14px 15px;border-radius:16px;background:#fff;border:1px solid rgba(14,124,102,.1)}.psc1-kpis span,.psc1-cell-label,.psc1-config-grid span{display:block;font-size:9px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#7d8a85}.psc1-kpis b{display:block;margin:4px 0 2px;font-size:25px;color:#17463a}.psc1-kpis small{color:#84918c}
.psc1-diagnostics{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.psc1-diag{display:inline-flex;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:800}.psc1-diag.ok{background:#e3f3ed;color:#0d725e}.psc1-diag.warn{background:#fff1d9;color:#8a5c13}.psc1-diag.danger{background:#fde9e6;color:#9a3d34}.psc1-diag.muted{background:#ecefed;color:#5f6a66}.psc1-last-sale{margin-left:auto;font-size:11px;color:#77847f}
.psc1-block{padding:18px;border-radius:18px;background:#fff;border:1px solid rgba(14,124,102,.08)}.psc1-section-head{margin-bottom:14px}.psc1-section-head h4{margin:4px 0 0;font-size:18px;color:#1d4037}.psc1-section-head p{max-width:560px;text-align:right}.psc1-user-list{display:grid;gap:8px}.psc1-user-row{display:grid;grid-template-columns:minmax(230px,1.35fr) .55fr .8fr 1fr .6fr auto;align-items:center;gap:12px;padding:12px 13px;border-radius:14px;background:#f8fbfa;border:1px solid rgba(14,124,102,.07)}.psc1-user-row.is-inactive{opacity:.7}.psc1-user-main{display:flex;align-items:center;gap:10px;min-width:0}.psc1-avatar{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#dff1ea;color:#0d725e;font-weight:900}.psc1-user-main b,.psc1-user-main span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.psc1-user-main b{color:#25473e}.psc1-user-main span{margin-top:2px;font-size:11px;color:#7b8883}.psc1-user-row>div:not(.psc1-user-main):not(.psc1-row-actions) b{display:block;color:#25473e}.psc1-user-row>div:not(.psc1-user-main):not(.psc1-row-actions) small{display:block;margin-top:2px;color:#87938f}.psc1-status{display:inline-flex;margin-top:3px;padding:4px 7px;border-radius:999px;font-size:10px;font-weight:900}.psc1-status.on{background:#e4f3ed;color:#0d725e}.psc1-status.off{background:#eee;color:#6f7774}.psc1-row-actions{display:flex;justify-content:flex-end;gap:5px;flex-wrap:wrap}.psc1-owner-lock{padding:5px 8px;border-radius:999px;background:#edf1ef;color:#68736f;font-size:10px;font-weight:800}
.psc1-config-block{background:linear-gradient(145deg,#f6fbf9,#eef7f3)}.psc1-config-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.psc1-config-grid>div{padding:11px 12px;border-radius:13px;background:rgba(255,255,255,.82);border:1px solid rgba(14,124,102,.08)}.psc1-config-grid b{display:block;margin-top:4px;color:#25473e;font-size:14px}
.psc1-audit-list{display:grid;gap:7px}.psc1-audit-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:10px 11px;border-radius:12px;background:#f8faf9}.psc1-audit-row b,.psc1-audit-row span,.psc1-audit-row small{display:block}.psc1-audit-row b{font-size:12px;color:#29483f}.psc1-audit-row span{margin-top:2px;font-size:10px;color:#78857f}.psc1-audit-row>div:last-child{text-align:right}.psc1-audit-row small{margin-top:3px;color:#52625c}.psc1-audit-empty{padding:16px;border-radius:12px;background:#f7f9f8;color:#76827d;text-align:center;font-size:12px}
.psc1-loading,.psc1-error{display:flex;align-items:center;gap:12px;padding:15px;border-radius:15px;background:#eef7f3}.psc1-loading i{width:19px;height:19px;border:3px solid #c8ddd5;border-top-color:#0e7c66;border-radius:50%;animation:psc1spin .8s linear infinite}.psc1-loading b,.psc1-loading span,.psc1-error b,.psc1-error span{display:block}.psc1-loading span,.psc1-error span{margin-top:3px;color:#71807a;font-size:11px}.psc1-error{justify-content:space-between;background:#fff3ef}.psc1-error>div{flex:1}
.psc1-modal{max-width:660px}.psc1-modal-wide{max-width:880px}.psc1-help{display:block;margin-top:5px;color:#7d8984}.psc1-textarea{height:auto;min-height:76px;resize:vertical}.psc1-auth-box{margin-top:15px;padding:13px;border-radius:14px;background:#f1f7f4;border:1px solid rgba(14,124,102,.12)}.psc1-auth-box>label{display:flex;align-items:flex-start;gap:8px;font-size:12px;font-weight:700;color:#31564c}.psc1-auth-box .field{margin:12px 0 0}.psc1-auth-box>small{display:block;margin-top:7px;color:#78857f}.psc1-permissions-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.psc1-perm-group{margin:0;padding:11px 12px;border:1px solid rgba(14,124,102,.12);border-radius:13px}.psc1-perm-group legend{padding:0 5px;color:#0e7c66;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.psc1-perm-group label{display:flex;align-items:flex-start;gap:7px;margin:7px 0;color:#35564d;font-size:12px}.psc1-config-form{display:grid;grid-template-columns:1fr 1fr;gap:10px 12px}.psc1-switch{display:flex;align-items:center;gap:8px;padding:10px 11px;border-radius:12px;background:#f8faf9;color:#3f5b53;font-size:12px;font-weight:700}
@keyframes psc1spin{to{transform:rotate(360deg)}}
@media(max-width:1100px){.psc1-user-row{grid-template-columns:minmax(220px,1.4fr) .55fr .75fr 1fr}.psc1-user-row>div:nth-child(5){display:none}.psc1-row-actions{grid-column:1/-1;justify-content:flex-start;padding-left:44px}.psc1-config-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:820px){.psc1-shell{padding:17px}.psc1-head,.psc1-section-head{align-items:flex-start;flex-direction:column}.psc1-head-actions{width:100%}.psc1-head-actions .btn{flex:1}.psc1-kpis{grid-template-columns:1fr 1fr}.psc1-last-sale{margin-left:0;width:100%}.psc1-section-head p{text-align:left}.psc1-user-row{grid-template-columns:1fr 1fr}.psc1-user-main{grid-column:1/-1}.psc1-row-actions{padding-left:0}.psc1-config-grid,.psc1-config-form,.psc1-permissions-grid{grid-template-columns:1fr}.psc1-audit-row{grid-template-columns:1fr}.psc1-audit-row>div:last-child{text-align:left}}
@media(max-width:520px){.psc1-kpis{grid-template-columns:1fr}.psc1-user-row{grid-template-columns:1fr}.psc1-row-actions{grid-column:auto}.psc1-row-actions .btn{flex:1}.psc1-config-grid{grid-template-columns:1fr}}