:root{--nav:#183447;--nav2:#112838;--page:#f3f6f8;--ink:#243747;--muted:#647787;--line:#dfe6eb;--sea:#0f8577;--danger:#be494a;--shadow:0 4px 18px #1a30400b}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font:14px/1.45 "Segoe UI",Inter,system-ui,sans-serif;color:var(--ink);background:var(--page)}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--sea)}input,select,textarea{width:100%;padding:10px 12px;border:1px solid #ccd8df;background:#fff;border-radius:8px;color:var(--ink)}textarea{min-height:88px;resize:vertical}input:focus-visible,select:focus-visible,textarea:focus-visible,button:focus-visible{outline:3px solid #74c4b4;outline-offset:2px}h1,h2,h3{margin:0 0 8px}h1{font-size:25px;letter-spacing:-.5px}h2{font-size:19px}h3{font-size:16px}.sub{color:var(--muted);font-size:12px}.muted{color:var(--muted)}.boot{margin:20vh auto;text-align:center}.spinner{display:inline-block;width:15px;height:15px;border:2px solid #ddd;border-top-color:#168775;border-radius:50%;animation:sp 1s linear infinite;vertical-align:middle}@keyframes sp{to{transform:rotate(360deg)}}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:37px;padding:7px 14px;border:1px solid #cbd6dc;background:#fff;border-radius:8px;font-weight:650;color:var(--ink)}.btn:hover{background:#f0f6f7}.btn.primary{background:var(--sea);color:white;border-color:var(--sea)}.btn.primary:hover{background:#087265}.btn.warn{color:#a22f38}.btn.ghost{background:transparent;border-color:transparent}.btn.tiny{min-height:30px;padding:4px 9px;font-size:12px}.btn.full{width:100%}.btn[aria-pressed="true"]{background:#fff5e4;border-color:#f0bc53}.btnrow{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.login-wrap{min-height:100vh;display:grid;place-items:center;padding:20px}.login-card{width:min(420px,100%);background:white;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;padding:32px}.logo-hero{display:flex;align-items:center;gap:15px;margin-bottom:22px}.logo-square{font-size:25px;font-weight:900;color:#fff;background:var(--sea);width:46px;height:46px;display:grid;place-items:center;border-radius:12px}.formstack{display:grid;gap:14px}label{display:block;font-weight:600;margin-bottom:5px;font-size:12px}.error{color:#a12c35;background:#fff1f1;border:1px solid #f2ced1;padding:11px;border-radius:8px}.info{color:#285c78;background:#ebf8fe;border:1px solid #bedde8;padding:11px;border-radius:8px}.ok{color:#246d56;background:#eaf9f1;border:1px solid #c4e8d4;padding:11px;border-radius:8px}
.shell{display:flex;min-height:100vh}.rail{position:sticky;top:0;height:100vh;width:86px;flex-shrink:0;background:var(--nav2);color:white;display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px 6px 12px;z-index:12}.rail-logo{font-weight:900;font-size:17px;color:white;background:#138776;border-radius:11px;width:50px;height:45px;display:grid;place-items:center;margin-bottom:8px}.rail-scroll{min-height:0;overflow-y:auto;flex:1;width:100%;display:flex;align-items:center;flex-direction:column;gap:5px;scrollbar-width:thin}.navbtn{width:70px;border:0;color:#e9f6ff;background:transparent;border-radius:10px;padding:5px 2px 6px;display:grid;justify-items:center;gap:2px;min-height:63px}.navbtn:hover,.navbtn.active{background:#ffffff24}.nav-icon{font-size:23px;line-height:30px;background:var(--tile,#407fa8);width:39px;height:35px;display:grid;place-items:center;border-radius:9px;box-shadow:inset 0 -2px 0 #0002}.navtext{font-size:10px;max-width:68px;line-height:1.15;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.morebtn{width:70px;background:transparent;color:white;border:1px solid #547084;border-radius:9px;min-height:47px}.rail-foot{display:grid;gap:4px}.main{flex:1;min-width:0}.topbar{height:70px;background:white;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;padding:0 25px;gap:12px;position:sticky;top:0;z-index:9}.top-title{font-size:19px;font-weight:780}.content{padding:22px 26px 48px;max-width:1650px;margin:0 auto}.panel{background:#fff;border:1px solid var(--line);border-radius:12px;padding:19px;box-shadow:var(--shadow);margin-bottom:15px}.dashgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:15px}.metric{background:#fff;border:1px solid var(--line);border-radius:12px;padding:18px}.metric strong{font-size:27px}.metric .sub{margin-top:4px}.toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:14px;flex-wrap:wrap}.toolbar .search{max-width:330px}.table-wrap{overflow:auto}.data-table{width:100%;border-collapse:collapse;font-size:13px}.data-table th{font-size:11px;text-align:left;color:var(--muted);background:#f8fafb;font-weight:700;white-space:nowrap}.data-table td,.data-table th{padding:10px;border-bottom:1px solid #e7edef;vertical-align:top}.data-table tbody tr:hover{background:#f8fbfd}.pill{display:inline-block;padding:3px 8px;border-radius:20px;background:#eef3f6;color:#5b6b76;font-size:11px;font-weight:650;white-space:nowrap}.pill.red{background:#ffe7e7;color:#aa3434}.pill.green{background:#def5ea;color:#13684b}.pill.orange{background:#fff1d5;color:#9b6200}.pill.purple{background:#eee5fb;color:#704cb1}.actions{display:flex;flex-wrap:wrap;gap:5px}.row-info{display:grid;gap:3px}.row-info strong{font-weight:700}.empty{padding:40px 16px;text-align:center;color:var(--muted)}.mutecaption{font-size:12px;color:var(--muted)}.section-title{display:flex;align-items:center;gap:10px;justify-content:space-between;margin-bottom:16px}.section-title h2{margin:0}.formgrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.field.wide{grid-column:1/-1}.dialogbg{position:fixed;inset:0;background:#0d2535aa;z-index:50;display:grid;place-items:center;padding:20px}.dialog{background:#fff;border-radius:14px;width:min(760px,100%);max-height:min(90vh,940px);overflow:auto;padding:22px;box-shadow:0 18px 50px #0016}.dialog-head{display:flex;justify-content:space-between;gap:12px;align-items:start;margin-bottom:18px}.divider{border-top:1px solid var(--line);margin:17px 0}.moremask{position:fixed;inset:0;background:#0017;z-index:17}.moredrawer{position:fixed;z-index:18;left:86px;top:0;bottom:0;max-width:400px;width:min(400px,calc(100vw - 86px));overflow:auto;background:white;box-shadow:10px 0 30px #0003;padding:24px}.menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.menucell{display:flex;align-items:center;gap:9px;border:1px solid #e1e9ec;border-radius:9px;padding:11px;background:white;text-align:left;color:var(--ink)}.menucell:hover{background:#f4f9fb}.miniicon{display:grid;place-items:center;width:34px;height:34px;border-radius:8px;background:var(--tile,#527a9e);font-size:19px}.favstar{font-size:23px;color:#d99720;border:0;background:transparent}.shortcut-list{display:grid;gap:7px}.shortcut-row{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:9px;padding:8px;background:#fff}.shortcut-row .move-label{flex:1}.month{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:1px;background:#d8e2e9;border:1px solid #d8e2e9}.dayhead{background:#eef3f6;text-align:center;padding:9px 2px;font-weight:700;color:#5b7182}.day{background:white;min-height:115px;padding:6px}.day.off{background:#f5f7f9}.daynum{font-size:12px;color:#556b7b;margin-bottom:8px}.event{border:0;border-radius:3px;color:white;background:#c13f3f;display:block;width:100%;font-size:11px;padding:4px 5px;text-align:left;margin-bottom:4px;white-space:normal}.event.junta{background:#c73535}.event.cita{background:#7551bc}.event.bloqueado{background:#f9e328;color:#253847}.event.otro{background:#257a8c}.hint{border-left:3px solid #f0b24d;background:#fff8e9;padding:12px 15px;border-radius:0 7px 7px 0;margin-bottom:14px}.checkbox-row{display:flex;gap:8px;align-items:center;margin-bottom:7px}.checkbox-row input{width:16px;height:16px}.importmap{display:grid;grid-template-columns:1fr 1fr;gap:12px}.chip{display:inline-flex;gap:5px;align-items:center;padding:4px 9px;border-radius:8px;background:#edf4f7;margin:3px}.listline{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-bottom:1px solid #ecf0f3}.listline:last-child{border:0}
@media(max-width:1000px){.dashgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.content{padding:15px}.topbar{padding:0 13px}.day{min-height:90px}}@media(max-width:600px){.rail{width:65px}.rail-logo{width:42px}.navbtn{width:55px;min-height:58px}.nav-icon{width:34px;height:30px;font-size:19px}.navtext{font-size:9px;max-width:52px}.morebtn{width:55px}.moredrawer{left:65px;width:calc(100vw - 65px)}.dashgrid{grid-template-columns:repeat(2,minmax(0,1fr))}.formgrid,.importmap{grid-template-columns:1fr}.top-title{font-size:14px}.content{padding:12px}.day{min-height:64px;padding:3px}.dayhead{font-size:10px}.daynum{font-size:10px}.event{font-size:9px}}
