:root{--brand:#08648c;--deep:#063953;--soft:#eaf6fa;--bg:#f4f7fa;--border:#dfe7ed;--text:#233344;--muted:#64748b}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:15px system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--text)}a{text-decoration:none;color:var(--brand)}.header{min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:10px max(24px,calc((100vw - 1300px)/2));background:#fff;border-bottom:1px solid var(--border)}.brand{display:flex;align-items:center;gap:15px;color:var(--deep);font-size:21px}.brand img{width:125px;height:50px;object-fit:contain;background:#03507c;border-radius:7px}.header nav{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.header nav a{color:#44576a;padding:10px 13px;border-radius:9px;font-weight:650}.header nav a:hover,.header nav a.selected{background:var(--soft);color:var(--deep)}.container{max-width:1300px;padding:24px;margin:auto;min-height:calc(100vh - 145px)}.hero,.card,.tile,.eventhead{background:#fff;border:1px solid var(--border);border-radius:18px;box-shadow:0 10px 25px #102a4210}.hero{padding:24px;display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.hero h1{font-size:27px;margin:0}.hero p{margin:5px 0;color:var(--muted)}.userchip,.pill{background:var(--soft);border-radius:999px;padding:8px 12px;color:var(--deep);font-size:12px;font-weight:700}.card{padding:22px;margin-bottom:20px}.card h2{font-size:19px;margin:0 0 18px}.card h3{font-size:16px;margin:22px 0 13px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px}.toolbar h2{font-size:20px}.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:16px}.tile{padding:20px;color:var(--text)}.tile img{height:115px;max-width:100%;object-fit:contain}.tile h3{font-size:18px}.tile p{color:var(--muted);font-size:13px}.eventhead{display:flex;align-items:center;gap:22px;padding:24px;margin-bottom:20px}.eventhead img{width:120px;height:120px;object-fit:contain}.eventhead h2{margin:0}.eventhead p{color:var(--muted)}button,.btn{background:var(--brand);color:white;border:0;border-radius:9px;padding:11px 16px;display:inline-block;font-size:14px;font-weight:700;cursor:pointer}button:hover,.btn:hover{background:var(--deep);color:#fff}.small{font-size:12px;padding:7px 10px}input,select,textarea{font:inherit;background:#fff;border:1px solid #cbd5e1;border-radius:9px;padding:10px 12px;min-width:0;width:100%}label{font-size:13px;color:#445569;font-weight:650;display:grid;gap:6px}.fields{display:grid;grid-template-columns:repeat(2,minmax(200px,1fr));gap:16px}.inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.inline input,.inline select{width:auto;max-width:320px}.checks{display:flex;align-items:center;gap:15px}.checks label,.perm{display:flex;align-items:center;gap:8px}.checks input,.perm input{width:auto}.permissiongrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin-bottom:20px}.perm{background:#f7fafc;padding:12px;border-radius:9px}table{border-collapse:collapse;width:100%;font-size:14px}th{text-transform:uppercase;color:var(--muted);font-size:12px;letter-spacing:.02em}th,td{padding:13px 11px;border-bottom:1px solid var(--border);text-align:left}.tablewrap{overflow-x:auto}.chips{display:flex;gap:10px;flex-wrap:wrap}.alert{padding:14px;background:#fef2f2;border:1px solid #fecaca;color:#991b1b;border-radius:10px;margin:12px 0}.notice{padding:14px;background:#e8f8f2;border-radius:10px;margin-bottom:16px}.auth{display:grid;place-items:center;min-height:100vh;background:linear-gradient(140deg,#04517d,#d8f2f7)}.auth-card{width:min(460px,calc(100vw - 32px));background:#fff;border-radius:20px;padding:35px;box-shadow:0 20px 50px #001a3150;display:grid;gap:17px}.auth-logo{width:235px;max-width:100%;margin:auto}.auth-card h1{text-align:center;color:var(--deep);margin:0}.auth-card p{text-align:center;color:var(--muted);margin:0}.auth-card button{width:100%}.muted{font-size:13px;text-align:center}footer{text-align:center;font-size:12px;color:var(--muted);padding:20px}@media(max-width:800px){.header{padding:12px 18px;display:block}.header nav{margin-top:12px}.header nav a{font-size:13px;padding:8px}.container{padding:14px}.hero{padding:18px}.hero h1{font-size:23px}.userchip{display:none}.fields{grid-template-columns:1fr}.eventhead img{width:90px;height:90px}.eventhead{padding:15px}.card{padding:16px}}
.searchbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:16px}.searchbar select,.searchbar input{width:auto;min-width:180px}.actions{display:flex;gap:8px;flex-wrap:wrap}.btn-outline{background:#fff;color:var(--brand);border:1px solid var(--brand)}.btn-outline:hover{background:var(--soft);color:var(--deep)}.statgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:12px;margin-bottom:18px}.stat{background:#eaf6fa;border-radius:12px;padding:16px}.stat strong{display:block;font-size:25px;color:var(--deep)}.help{font-size:12px;color:var(--muted)}.credential{width:min(355px,100%);border:1px solid var(--border);border-radius:20px;padding:18px;background:#fff;margin:12px auto;text-align:center}.credential .logos{display:flex;align-items:center;justify-content:space-around;gap:10px}.credential .logos img{max-width:48%;height:88px;object-fit:contain}.credential #qr{display:flex;justify-content:center;padding:12px;background:white}.credential #qr canvas{max-width:100%;height:auto}.credential h2{font-size:19px;overflow-wrap:anywhere}.credential .data{font-size:13px;color:#64748b}.credential .token{font:700 16px monospace;letter-spacing:1px;color:#043b5b}.credential .logos .org{background:#046085;border-radius:7px;padding:5px}.credential footer{padding:4px}.pager{display:flex;gap:10px;align-items:center;margin:20px 0}.pager a{padding:8px 12px;border-radius:8px;border:1px solid #cbd5e1}@media(max-width:600px){.searchbar select,.searchbar input{width:100%}}
.eventhead-manage{flex-wrap:wrap}.eventhead-info{flex:1;min-width:200px}.eventhead-controls{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:flex-end}.event-status-form{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.event-status-form label{min-width:150px}.event-status-form select{min-width:150px}.event-status-form button{height:43px}.event-section-footer{margin-top:18px}.event-section-footer h3{margin:0}.rs-modal{width:min(610px,calc(100% - 24px));max-height:90vh;overflow:auto;border:1px solid var(--border);border-radius:16px;background:#fff;color:var(--text);padding:24px;box-shadow:0 25px 80px #0b1e344a}.rs-modal::backdrop{background:#10223695}.rs-modal-small{width:min(440px,calc(100% - 24px))}.rs-modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.rs-modal-head h2{margin:0;font-size:20px}.rs-modal-x{background:transparent;color:var(--text);font-size:27px;padding:2px 10px}.rs-modal-x:hover{background:var(--soft);color:var(--deep)}.rs-modal-form{display:grid;gap:15px}.rs-modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.rs-danger{background:#b42332}.rs-danger:hover{background:#861624}button:disabled{opacity:.4;cursor:not-allowed}.actions form{margin:0}@media(max-width:800px){.eventhead-controls{width:100%;justify-content:flex-start}.event-status-form{width:100%}}

.rs-event-summary{display:grid;grid-template-columns:118px minmax(210px,1fr) auto;gap:22px;align-items:center;padding:22px 26px}.rs-event-summary>img{width:110px;height:110px;object-fit:contain;border-radius:10px}.rs-event-summary .eventhead-info{min-width:0}.rs-event-summary .eventhead-info h2{font-size:25px;line-height:1.2}.rs-event-summary .eventhead-info p{margin:9px 0 0}.rs-event-summary .eventhead-controls{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:10px;min-width:325px;width:auto}.rs-event-summary .rs-state-indicator{align-self:flex-end}.rs-event-summary .event-status-form{display:flex;align-items:flex-end;gap:8px;flex-wrap:nowrap;margin:0}.rs-event-summary .event-status-form label{min-width:0;width:190px}.rs-event-summary .event-status-form select{min-width:0;width:100%;height:42px}.rs-event-summary .event-status-form button{height:42px;white-space:nowrap}.rs-event-summary .rs-stations-trigger{white-space:nowrap;font-size:13px;padding:9px 14px}.rs-movement-actions,.rs-station-actions{display:flex!important;flex-flow:row nowrap!important;gap:6px!important;align-items:center;justify-content:flex-start;white-space:nowrap}.rs-movement-actions form,.rs-station-actions form{display:inline-flex;align-items:center;width:auto;flex:0 0 auto;margin:0!important}.rs-movement-actions button,.rs-station-actions button{width:auto!important;min-width:0!important;flex:0 0 auto;margin:0!important;padding:7px 10px!important;font-size:12px!important;line-height:1.25!important;white-space:nowrap}.rs-movement-actions form button{width:31px!important;height:31px!important;padding:0!important;font-size:17px!important}.rs-movement-actions button[data-editar-movimiento]{height:31px}.rs-station-actions button{height:32px}.rs-modal:not([open]){display:none!important}.rs-modal[open]{position:fixed!important;inset:0!important;margin:auto!important;box-sizing:border-box!important;display:block!important;width:min(640px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;max-height:min(85vh,760px)!important;overflow-y:auto!important;overflow-x:hidden!important;padding:24px!important;border:1px solid var(--border)!important;border-radius:16px!important;box-shadow:0 28px 95px #11253b50!important;z-index:10000!important}.rs-modal.rs-modal-small[open]{width:min(440px,calc(100vw - 32px))!important}.rs-modal::backdrop{background:rgba(13,29,48,.55)}.rs-modal-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px;margin-bottom:18px}.rs-modal-head h2{font-size:21px;margin:0!important}.rs-modal-x{display:grid!important;place-items:center!important;flex:0 0 34px!important;width:34px!important;height:34px!important;padding:0!important;font-size:24px!important;border:0!important;border-radius:9px!important;color:var(--deep)!important;background:var(--soft)!important}.rs-modal .tablewrap{width:100%;overflow-x:auto}.rs-modal table{width:100%;table-layout:auto}.rs-modal th,.rs-modal td{vertical-align:middle;padding:12px 10px}.rs-modal td:last-child,.rs-modal th:last-child{width:195px}.rs-modal .rs-add-heading{margin:22px 0 12px;font-size:16px}.rs-add-station{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin:0}.rs-add-station input{width:100%!important;max-width:none!important}.rs-add-station button{white-space:nowrap}.rs-modal-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:8px}.rs-modal-actions button{width:auto}.rs-modal-form{width:100%}.rs-modal-form label{width:100%}
@media(max-width:980px){.rs-event-summary{grid-template-columns:95px minmax(0,1fr)}.rs-event-summary>img{width:90px;height:90px}.rs-event-summary .eventhead-controls{grid-column:1/-1;width:100%;min-width:0;align-items:flex-start;flex-direction:row;justify-content:space-between;flex-wrap:wrap}.rs-event-summary .rs-state-indicator{align-self:center}.rs-event-summary .event-status-form{order:2}.rs-event-summary .rs-stations-trigger{order:3}}
@media(max-width:560px){.rs-event-summary{grid-template-columns:75px minmax(0,1fr);gap:12px;padding:16px}.rs-event-summary>img{width:72px;height:72px}.rs-event-summary .eventhead-info h2{font-size:19px}.rs-event-summary .eventhead-info p{font-size:12px}.rs-event-summary .eventhead-controls{gap:12px}.rs-event-summary .event-status-form{flex:1 1 100%}.rs-event-summary .event-status-form label{width:auto;flex:1 1 auto}.rs-event-summary .rs-stations-trigger{order:1}.rs-modal[open]{padding:16px!important}.rs-modal td:last-child,.rs-modal th:last-child{width:auto}.rs-station-actions{flex-wrap:wrap!important}.rs-add-station{grid-template-columns:minmax(0,1fr)}.rs-add-station button{width:100%}}

.rs-modal:not([open]){display:none!important}
.rs-modal[open]{position:fixed!important;inset:0!important;margin:auto!important;display:block!important;box-sizing:border-box!important;width:min(680px,calc(100vw - 32px))!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 48px)!important;overflow:auto!important;padding:26px!important;background:#fff!important;border:1px solid #dde6ee!important;border-radius:16px!important;box-shadow:0 28px 90px #0d233a55!important;z-index:10000!important}
.rs-modal.rs-modal-small[open]{width:min(440px,calc(100vw - 32px))!important}
.rs-modal::backdrop{background:rgba(9,26,43,.62)!important}
.rs-modal .rs-modal-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 20px!important;padding:0 0 15px!important;border-bottom:1px solid #e5ebf1}
.rs-modal .rs-modal-head h2{font-size:21px!important;font-weight:750!important;line-height:1.3!important;margin:0!important;color:#183449!important}
.rs-modal .rs-modal-x{display:flex!important;align-items:center!important;justify-content:center!important;width:36px!important;height:36px!important;min-width:36px!important;padding:0!important;margin:0!important;border:0!important;border-radius:9px!important;background:#edf3f6!important;color:#193b51!important;font-size:24px!important;line-height:1!important}
.rs-modal .tablewrap{overflow-x:auto;width:100%}
.rs-modal table{width:100%;table-layout:auto}
.rs-modal th,.rs-modal td{padding:12px 10px!important;vertical-align:middle!important}
.rs-modal td:last-child{width:184px}
.rs-modal .rs-station-actions{display:flex!important;flex-flow:row nowrap!important;align-items:center!important;gap:8px!important;white-space:nowrap}
.rs-modal .rs-station-actions form{width:auto!important;margin:0!important;display:inline-flex!important}
.rs-modal .rs-station-actions button{width:auto!important;min-width:0!important;min-height:34px!important;padding:7px 11px!important;margin:0!important;font-size:12px!important;white-space:nowrap!important}
.rs-modal .rs-add-heading{margin:22px 0 12px!important;font-size:16px!important}
.rs-modal .rs-add-station{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;align-items:center!important;gap:10px!important}
.rs-modal .rs-add-station input{width:100%!important;min-width:0!important}
.rs-modal .rs-add-station button{width:auto!important;white-space:nowrap!important}
.rs-modal .rs-modal-form{display:grid;gap:16px}
.rs-modal .rs-modal-form input,.rs-modal .rs-modal-form select{width:100%}
.rs-modal .rs-modal-actions{display:flex!important;justify-content:flex-end!important;align-items:center!important;flex-wrap:wrap!important;gap:10px!important;margin-top:20px!important}
.rs-modal .rs-modal-actions button{width:auto!important;margin:0!important}
@media(max-width:530px){.rs-modal[open]{padding:18px!important}.rs-modal .rs-modal-head h2{font-size:18px!important}.rs-modal .rs-add-station{grid-template-columns:1fr!important}.rs-modal .rs-add-station button{width:100%!important}.rs-modal td:last-child{width:auto}.rs-modal .rs-station-actions{flex-wrap:wrap!important}}
