/* RT Security Panel: login, portal de módulos y módulo Monitoreo */
.rt-logo{width:40px;height:40px;flex-shrink:0}
.rt-logo path{fill:none;stroke:#fff;stroke-width:2.4;stroke-linejoin:round}
.rt-logo text{fill:#fff;font:700 10px Inter,system-ui,sans-serif;letter-spacing:.04em}
.login-brand.rt strong{font-size:17px;letter-spacing:.04em}

.portal{min-height:100vh;background:var(--bg)}
.pt-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 28px;background:linear-gradient(90deg,var(--navy),#123066);color:#fff;flex-wrap:wrap}
.pt-brand{display:flex;align-items:center;gap:12px;font-size:17px;letter-spacing:.01em}
.pt-brand .rt-logo{width:34px;height:34px}
.pt-user{display:flex;align-items:center;gap:10px}
.pt-user b{display:block;font-size:13px}
.pt-user small{color:#c8d3e6;font-size:11.5px}
.pt-user .btn{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#fff}
.pt-user .btn:hover{background:rgba(255,255,255,.16)}
.pt-back{width:34px;height:34px;border-radius:8px;display:grid;place-items:center;color:#fff;background:rgba(255,255,255,.08)}
.pt-back svg{width:20px;height:20px}
.pt-main{max-width:1180px;margin:0 auto;padding:32px 24px 48px}
.pt-hello h1{font-size:26px;letter-spacing:-.01em}
.pt-hello p{color:var(--muted);margin:6px 0 22px}
.mod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;margin-bottom:28px}
.mod-card{display:flex;align-items:center;gap:16px;text-align:left;background:#fff;border:1px solid #e3e9f2;border-radius:16px;padding:22px;box-shadow:var(--shadow);transition:transform .15s,box-shadow .15s,border-color .15s}
.mod-card:hover{transform:translateY(-2px);box-shadow:0 10px 28px rgba(15,23,42,.1);border-color:#bcd3fb}
.mod-ico{width:58px;height:58px;border-radius:14px;display:grid;place-items:center;color:#fff;flex-shrink:0}
.mod-ico svg{width:28px;height:28px}
.mod-star{fill:#fff;stroke:none}
.mod-txt{flex:1;display:flex;flex-direction:column;gap:4px}
.mod-txt b{font-size:17px}
.mod-txt span{color:var(--muted);font-size:13px;line-height:1.45}
.mod-go{display:flex;align-items:center;gap:4px;color:var(--blue);font-weight:600;font-size:13px;white-space:nowrap}
.mod-go svg{width:16px;height:16px}
.pt-users{margin-top:8px}
.mn-empty{display:flex;flex-direction:column;align-items:center;gap:10px;padding:56px 24px}
.mn-empty svg{width:44px;height:44px;color:var(--teal, #0d9488)}
.mn-empty p{max-width:560px;line-height:1.55}
.to-portal{display:flex;align-items:center;gap:6px;color:#c8d3e6;font-size:12.5px;padding:2px 8px 12px}
.to-portal svg{width:15px;height:15px}
.to-portal:hover{color:#fff}
@media (max-width:700px){.pt-top{padding:12px 16px}.pt-main{padding:22px 16px 40px}.mod-grid{grid-template-columns:1fr}.pt-user div{display:none}.mod-go{display:none}}
/* Usuario con un solo módulo: sin accesos de vuelta al portal */
body.single-module [data-act="portal"]{display:none!important}
/* Monitoreo: mensajes crudos del reenvío GPS */
.raw{display:block;font-family:ui-monospace,Consolas,monospace;font-size:11.5px;white-space:pre-wrap;word-break:break-all;max-width:680px;background:#f6f8fb;border-radius:6px;padding:6px 8px}
details summary{cursor:pointer;margin-top:4px}
