
*{box-sizing:border-box}html,body{margin:0}.afs-body{font-family:Inter,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:#183127;background:#f4f7f5}.afs-login-body{min-height:100vh;background:radial-gradient(circle at 15% 20%,rgba(245,193,55,.35),transparent 22%),linear-gradient(135deg,#eef7f0,#dfeee3 55%,#87bd57)}.afs-login-wrap{min-height:100vh;display:grid;place-items:center;padding:24px}.afs-login-card{width:min(460px,100%);background:#fff;border:1px solid #d9e5dc;border-radius:20px;padding:34px;box-shadow:0 24px 70px rgba(17,62,40,.18)}.afs-mark,.afs-brandmark{display:grid;place-items:center;background:#087d38;color:#fff;font-weight:900}.afs-mark{width:62px;height:62px;border-radius:18px;margin:auto;font-size:24px}.afs-company{text-align:center;margin-top:14px;color:#087d38;font-weight:900;letter-spacing:.08em}.afs-login-card h1{text-align:center;margin:8px 0 4px;font-size:28px}.afs-muted{text-align:center;color:#6a7b73;margin:0 0 24px}.afs-error,.afs-offline{background:#fff1f0;color:#9f241f;border:1px solid #f2c7c3;border-radius:10px;padding:11px 13px}.afs-login-form label{display:block;margin:14px 0 6px;font-weight:700}.afs-login-form input{width:100%;height:46px;border:1px solid #ccd9d1;border-radius:10px;padding:0 12px;font:inherit}.afs-login-form button{width:100%;height:48px;border:0;border-radius:10px;background:#087d38;color:#fff;font-weight:800;font-size:16px;margin-top:20px;cursor:pointer}.afs-portal-body{height:100vh;overflow:hidden}.afs-topbar{height:64px;background:#fff;border-bottom:1px solid #dce7df;display:flex;align-items:center;gap:18px;padding:8px 18px;box-shadow:0 2px 12px rgba(20,63,43,.06);position:relative;z-index:4}.afs-brand{display:flex;align-items:center;gap:10px;min-width:max-content}.afs-brandmark{width:42px;height:42px;border-radius:11px}.afs-brand strong{display:block;color:#174c38}.afs-brand small{display:block;color:#718078;font-size:11px;margin-top:1px}.afs-shortcuts{display:flex;gap:4px;align-items:center;overflow:auto;white-space:nowrap}.afs-shortcuts a{color:#315244;text-decoration:none;padding:9px 10px;border-radius:8px;font-size:13px;font-weight:700}.afs-shortcuts a:hover{background:#eaf5ed;color:#087d38}.afs-user{margin-left:auto;white-space:nowrap;font-size:12px;color:#65766e}.afs-user a{color:#8e2626;font-weight:700;text-decoration:none}.afs-dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}.afs-dot.ok{background:#159447;box-shadow:0 0 0 3px rgba(21,148,71,.12)}.afs-dot.bad{background:#c53b32}.afs-offline{margin:8px 12px 0;position:relative;z-index:3}.afs-framebar{height:38px;background:#f7faf8;border-bottom:1px solid #dce7df;display:flex;align-items:center;justify-content:space-between;padding:0 16px;font-size:12px;color:#62756b}.afs-framebar a{color:#087d38;font-weight:800;text-decoration:none}.afs-system-wrap{height:calc(100vh - 102px);background:#fff}.afs-system-frame{display:block;width:100%;height:100%;border:0;background:#fff}@media(max-width:1050px){.afs-shortcuts{display:none}.afs-user{overflow:hidden;text-overflow:ellipsis}.afs-topbar{padding:8px 10px}.afs-framebar{padding:0 10px}.afs-brand small{display:none}}@media(max-width:650px){.afs-user{font-size:0}.afs-user .afs-dot{font-size:initial}.afs-user a{font-size:12px}.afs-framebar span{display:none}.afs-framebar{justify-content:flex-end}.afs-system-wrap{height:calc(100vh - 102px)}}

/* Usuarios / permisos */
.afs-shortcuts a.is-active{background:#e7f3ea;color:#087d38}
.afs-users-body{height:auto;min-height:100vh;overflow:auto;background:#f4f7f5}
.afs-users-wrap{max-width:1320px;margin:0 auto;padding:24px 18px 48px}
.afs-users-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:18px}
.afs-users-head h1{margin:0;color:#173126;font-size:28px}.afs-users-head p{margin:6px 0 0;color:#6a7b73;max-width:780px}
.afs-master-pill{background:#174c38;color:#fff;border-radius:999px;padding:9px 13px;font-size:12px;font-weight:800;white-space:nowrap}
.afs-success{background:#e9f7ee;color:#08743b;border:1px solid #bfe2ca;border-radius:10px;padding:11px 13px;margin-bottom:14px}
.afs-user-card{background:#fff;border:1px solid #dce7df;border-radius:16px;padding:20px;margin:0 0 16px;box-shadow:0 5px 18px rgba(25,65,46,.05)}
.afs-user-card h2,.afs-user-card h3,.afs-user-card h4{margin-top:0;color:#173126}.afs-user-card p{color:#6b7c73}
.afs-master-setup{border:2px solid #9bc7aa;background:linear-gradient(180deg,#fff,#f7fbf8)}
.afs-user-form{margin-top:12px}.afs-form-grid{display:grid;grid-template-columns:repeat(4,minmax(180px,1fr));gap:12px;align-items:end}.afs-form-grid label{display:block;font-size:12px;font-weight:700;color:#496159}.afs-form-grid label small{font-weight:500;color:#819087}.afs-form-grid input{display:block;width:100%;height:42px;margin-top:6px;border:1px solid #ccd9d1;border-radius:9px;padding:0 11px;font:inherit;background:#fff}.afs-form-grid input:disabled{background:#f1f4f2;color:#718078}
.afs-primary,.afs-secondary{border:0;border-radius:9px;padding:11px 16px;font-weight:800;cursor:pointer;margin-top:14px}.afs-primary{background:#087d38;color:#fff}.afs-secondary{background:#e8f3eb;color:#086a34;border:1px solid #c7decf}.afs-primary:hover{background:#066a30}.afs-secondary:hover{background:#dcece1}
.afs-perm-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:8px 12px;margin:10px 0}.afs-perm{display:flex!important;align-items:center;gap:8px;padding:10px;border:1px solid #dce7df;border-radius:9px;background:#fafcfb;font-size:13px!important;font-weight:700!important}.afs-perm input{width:auto!important;height:auto!important;margin:0!important}.afs-perm:has(input:checked){border-color:#9bc7aa;background:#edf7f0;color:#08743b}
.afs-user-list>h2{margin:24px 0 12px}.afs-user-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;border-bottom:1px solid #edf1ee;padding-bottom:12px;margin-bottom:14px}.afs-user-title h3{margin:0}.afs-user-title p{margin:5px 0 0;font-size:13px}.afs-master-badge{font-size:10px;letter-spacing:.06em;background:#174c38;color:#fff;border-radius:999px;padding:4px 7px;vertical-align:middle;margin-left:6px}.afs-status{font-size:11px;font-weight:800;border-radius:999px;padding:6px 9px}.afs-status.active{background:#e6f5eb;color:#08743b}.afs-status.inactive{background:#fbe9e7;color:#9c2922}.afs-active-check{height:42px;display:flex!important;align-items:center;gap:8px;border:1px solid #ccd9d1;border-radius:9px;padding:0 11px;margin-top:18px}.afs-active-check input{width:auto!important;height:auto!important;margin:0!important}.afs-help{font-size:12px;margin:5px 0}.afs-empty{background:#fff;border:1px dashed #ccd9d1;border-radius:12px;padding:20px;color:#6b7c73}
@media(max-width:1000px){.afs-form-grid{grid-template-columns:repeat(2,minmax(180px,1fr))}.afs-perm-grid{grid-template-columns:repeat(2,minmax(160px,1fr))}}
@media(max-width:650px){.afs-users-wrap{padding:16px 10px 36px}.afs-users-head{flex-direction:column}.afs-form-grid,.afs-perm-grid{grid-template-columns:1fr}.afs-user-title{flex-direction:column}.afs-master-pill{white-space:normal}.afs-users-head h1{font-size:23px}}
