:root{--navy:#102a43;--navy-2:#173f5f;--yellow:#f6c445;--ink:#172b3a;--muted:#738294;--line:#e6ebf1;--bg:#f5f7fa;--white:#fff;--green:#25a36f;--red:#b43b42}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.45 Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.app-shell{display:flex;min-height:100vh}.sidebar{width:248px;flex:0 0 248px;background:var(--navy);color:#dbe7f1;padding:28px 18px;display:flex;flex-direction:column}.brand{display:flex;align-items:center;gap:12px;color:#fff;margin:0 10px 52px}.brand-mark{font-size:25px;font-weight:900;letter-spacing:-2px;color:#fff}.brand-mark span{color:var(--yellow)}.brand strong{display:block;font-size:11px;letter-spacing:1.1px}.brand small{display:block;color:#91a9bc;font-size:9px;letter-spacing:1.5px;margin-top:2px}.nav-item{display:flex;gap:14px;align-items:center;color:#b9ccdb;text-decoration:none;border-radius:10px;padding:13px 14px;margin:4px 0;font-weight:600}.nav-item:first-letter{font-size:20px}.nav-item.active,.nav-item:hover{background:#214966;color:#fff}.nav-item.active{box-shadow:inset 3px 0 var(--yellow)}.sidebar-foot{margin-top:auto;color:#a8c0d0;font-size:12px;padding:18px 12px;border-top:1px solid #28506b}.sidebar-foot small{color:#708da2}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#38c488;margin-right:6px}.content{width:min(1220px,100%);padding:36px 48px 28px;margin:0 auto}.topbar{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:28px}.eyebrow{color:#7e8d9d;font-size:10px;letter-spacing:1.6px;font-weight:800;margin:0 0 4px}.topbar h1{font-size:30px;letter-spacing:-.5px;margin:0;color:var(--navy)}.subtitle,.helper{color:var(--muted);margin:5px 0 0}.user-chip{display:flex;gap:10px;align-items:center;padding:8px 12px;background:#fff;border:1px solid var(--line);border-radius:13px}.user-chip strong,.user-chip small{display:block}.user-chip small{font-size:11px;color:var(--muted)}.avatar{display:grid;place-items:center;width:35px;height:35px;border-radius:50%;background:var(--yellow);color:var(--navy);font-weight:800}.status-banner{min-height:0;margin:0 0 16px;color:var(--red);font-size:13px}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:24px}.summary-card{display:flex;align-items:center;gap:16px;border-radius:14px;padding:20px;color:#fff;box-shadow:0 8px 22px #102a4310}.summary-card.navy{background:var(--navy)}.summary-card.gold{background:var(--yellow);color:var(--navy)}.summary-card.pale{background:#e7eef5;color:var(--navy)}.summary-card span{display:block;font-size:12px;opacity:.75}.summary-card strong{font-size:29px;display:block;line-height:1.1}.summary-icon{font-size:26px!important;opacity:1!important}.dashboard-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.panel{background:var(--white);border:1px solid var(--line);border-radius:15px;padding:22px;box-shadow:0 6px 18px #102a4307;margin-bottom:20px}.panel-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:17px}.panel h2{font-size:19px;margin:0;color:var(--navy)}.panel-count,.link-badge{font-size:11px;color:var(--navy-2);background:#edf3f8;padding:5px 9px;border-radius:20px;font-weight:800}.link-badge{background:#fff5cf;color:#866300}.inline-form,.stack-form,.link-form{display:flex;gap:9px}.stack-form{flex-direction:column}.form-row,.link-form{display:grid;grid-template-columns:1fr 1fr;gap:10px}.link-form{grid-template-columns:1.2fr 1.2fr .8fr auto;align-items:end}label span{display:block;color:#66798b;font-size:11px;font-weight:700;margin-bottom:5px}input,select{border:1px solid #d5dee7;border-radius:8px;background:#fbfcfe;padding:10px 11px;color:var(--ink);font:inherit;width:100%;outline:none}input:focus,select:focus{border-color:#5c91b5;box-shadow:0 0 0 3px #5c91b522}button{border:0;border-radius:8px;padding:10px 14px;font:600 13px inherit;cursor:pointer;white-space:nowrap}.primary{background:var(--navy);color:#fff}.primary:hover{background:var(--navy-2)}.record-list,.relationship-list{list-style:none;padding:0;margin:18px 0 0}.record-list li{border-top:1px solid var(--line);padding:13px 0;display:flex;align-items:center;gap:9px}.record-list li input{flex:1;padding:8px}.record-list li div{width:100%;color:#78899a;font-size:12px;white-space:pre-line;margin-top:3px}.record-list li button{background:#edf3f8;color:var(--navy-2);padding:8px 11px}.relationship-list{display:grid;grid-template-columns:repeat(2,1fr);gap:10px}.relationship-list li{background:#f7f9fb;border-radius:9px;padding:10px;color:var(--navy)}footer{text-align:center;color:#9aa8b5;font-size:12px;padding:10px}footer span{padding:0 6px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@media(max-width:900px){.sidebar{width:190px;flex-basis:190px}.content{padding:28px 24px}.link-form{grid-template-columns:1fr 1fr}.link-form button{grid-column:1/-1}.dashboard-grid{grid-template-columns:1fr}}@media(max-width:620px){.app-shell{display:block}.sidebar{width:100%;padding:15px 16px}.brand{margin:0 0 13px}.sidebar nav{display:flex;overflow:auto}.nav-item{padding:8px 12px;margin:0 3px}.nav-item span{display:none}.sidebar-foot{display:none}.content{padding:24px 14px}.topbar{gap:12px}.topbar h1{font-size:25px}.user-chip{padding:6px}.user-chip div:last-child{display:none}.summary-grid{grid-template-columns:1fr}.form-row,.link-form{grid-template-columns:1fr}.inline-form{flex-direction:column}.relationship-list{grid-template-columns:1fr}}
.brand-vehicle{position:relative;width:31px;height:17px;border:2px solid var(--yellow);border-radius:7px 9px 4px 4px;opacity:.9;transform:translateY(1px)}.brand-vehicle:before{content:"";position:absolute;left:5px;top:3px;width:10px;height:5px;border:1px solid #f9df82;border-radius:2px}.brand-vehicle:after{content:"•  •";position:absolute;left:4px;top:4px;color:var(--yellow);font-size:13px;letter-spacing:8px;line-height:16px}.brand-vehicle span{position:absolute;right:-5px;top:6px;width:3px;height:5px;background:var(--yellow);border-radius:0 2px 2px 0}@media(max-width:620px){.brand-vehicle{display:none}}
.student-name-link{background:transparent;border:0;color:var(--navy,#102a43);cursor:pointer;font-weight:700;padding:8px 0;text-align:left}.student-name-link:hover,.student-name-link:focus{text-decoration:underline;outline:2px solid #f4c542;outline-offset:2px}.student-row{align-items:center;display:flex;justify-content:space-between}.student-retire{background:transparent;border:0;color:#6b7280;cursor:pointer;font-size:16px;padding:6px}.student-retire:hover,.student-retire:focus{color:#b42318;outline:2px solid #f4c542}
.student-tools{display:flex;gap:10px;align-items:center;margin:12px 0}.student-tools>input{flex:1;min-width:0}.student-tools .inline-form{margin:0}
.profile-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.profile-card{padding:18px 0;border-top:1px solid #e5ebf1}.profile-card h3{margin-top:0;color:var(--navy,#102a43)}.field-label{font-size:12px;font-weight:700;color:#52606d;margin-bottom:4px}@media(max-width:700px){.profile-sections{grid-template-columns:1fr}}
.profile-header{align-items:center}.profile-title{display:flex;align-items:center;gap:14px}.profile-avatar{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#eef3f8;color:#52606d;font-size:28px;border:3px solid #f4c542}.profile-card{background:#fff;border:1px solid #e4eaf0;border-radius:12px;box-shadow:0 5px 14px rgba(16,42,67,.06);padding:22px}.profile-card h3{font-size:16px;text-transform:uppercase;letter-spacing:.04em}.profile-card #pickup-form,.profile-card #school-form{display:none}.profile-card #pickup-form.is-open,.profile-card #school-form.is-open,.profile-card #student-identity-form:not([hidden]),.profile-card #student-dob-form:not([hidden]){display:flex}.profile-footer{display:flex;justify-content:space-between;align-items:center;margin-top:24px;padding:16px 4px;border-top:1px solid #e4eaf0;color:#52606d}.profile-footer span{font-size:12px}.profile-footer .danger{background:#fff0f0;color:#b42318;border:1px solid #f1b5b5}.profile-card .compact-list li{white-space:pre-line}
.profile-panel{padding:30px 34px;background:#f8fafc}.profile-header{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid #e5ebf1}.profile-title{gap:18px}.profile-avatar{width:76px;height:76px;font-size:32px;border:4px solid #f4c542;box-shadow:0 3px 10px rgba(16,42,67,.12)}.profile-title h2{font-size:30px;line-height:1.1;letter-spacing:-.02em;margin:4px 0 8px;color:#102a43}.profile-title .eyebrow{margin:0;font-size:11px}.profile-card{padding:26px;min-height:190px;border-radius:14px;border:1px solid #dfe7ef;box-shadow:0 8px 20px rgba(16,42,67,.07)}.profile-card h3{font-size:15px;letter-spacing:.08em;margin:0 0 22px;padding-bottom:10px;border-bottom:2px solid #f4c542;color:#102a43}.profile-card p{margin:10px 0;line-height:1.45}.profile-card p strong,.field-label{display:block;text-transform:uppercase;letter-spacing:.06em;font-size:11px;color:#64748b}.profile-card p:not(.field-label){font-size:15px;color:#102a43}.profile-card .empty-state,.profile-card .location-card.empty{color:#8a98a8;font-style:italic;background:transparent;padding:4px 0}.profile-card .secondary{font-size:12px;padding:7px 11px}.profile-card .location-form{margin-top:12px}.profile-footer{margin-top:30px;padding-top:22px}.profile-footer .danger{font-size:13px;padding:10px 15px}.status-badge{display:inline-block;background:#e7f6ed;color:#176b4c;border-radius:999px;padding:5px 11px;font-size:12px;font-weight:700}.profile-card .compact-list li{background:#f8fafc;border:0;border-left:3px solid #f4c542;padding:10px 12px}.profile-card .location-card{background:#eef8f3;padding:14px;border-radius:9px}
.inline-edit{display:flex;flex-direction:column;gap:7px;margin-top:14px;padding:12px;background:#f8fafc;border-radius:9px}.inline-edit input{padding:9px;border:1px solid #d6dee8;border-radius:6px}.family-groups{display:grid;gap:8px}.family-saved{white-space:pre-line;padding:10px 12px;border-left:3px solid #f4c542;background:#f8fafc;color:#102a43}
.account-screen{max-width:900px;margin:0 auto;padding:8px 0 40px}.account-heading h1{font-size:24px;color:#102a43;margin:8px 0 24px}.account-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:start}.account-card{background:#fff;border:1px solid #dfe6ee;border-radius:10px;padding:22px;box-shadow:0 4px 14px rgba(16,42,67,.06);min-height:245px}.account-identity{display:flex;align-items:center;gap:14px;margin-bottom:26px}.account-avatar{width:54px;height:54px;border-radius:50%;display:grid;place-items:center;background:#102a43;color:#fff;font-size:25px;font-weight:700}.account-identity h2{font-size:17px;margin:0;color:#102a43}.account-identity p{margin:4px 0;color:#6b7785;font-size:12px}.account-details{margin:0}.account-details div{display:flex;justify-content:space-between;gap:12px;border-top:1px solid #edf1f5;padding:13px 0}.account-details dt{font-size:11px;color:#7a8795}.account-details dd{margin:0;font-size:12px;color:#102a43;text-align:right}.password-card h2{font-size:16px;color:#102a43;margin:0 0 18px}.password-card label{display:block;font-size:11px;color:#64748b;margin:12px 0}.password-card input{display:block;width:100%;box-sizing:border-box;margin-top:6px;height:36px;border:1px solid #d6dee8;border-radius:6px;padding:8px}.account-save{width:100%;height:38px;border:0;border-radius:6px;background:#f4c542;color:#102a43;font-weight:700;margin-top:12px}.account-logout{width:calc(50% - 9px);height:38px;margin-top:16px;background:#fff;color:#b42318;border:1px solid #d77a7a;border-radius:6px}@media(max-width:700px){.account-grid{grid-template-columns:1fr}.account-logout{width:100%}}
.drivers-screen{max-width:920px;margin:0 auto;padding:4px 0 40px}.module-heading{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:20px}.module-heading h1{margin:4px 0 0;color:#102a43;font-size:25px}.module-controls{margin-bottom:16px}.module-controls input{width:58%;height:38px;box-sizing:border-box;border:1px solid #d6dee8;border-radius:7px;padding:9px 12px}.drivers-card{background:#fff;border:1px solid #dfe6ee;border-radius:10px;box-shadow:0 5px 16px rgba(16,42,67,.06);overflow:hidden}.drivers-head,.driver-row{display:grid;grid-template-columns:46px 2fr 1.3fr 1.3fr .9fr 24px;align-items:center;gap:12px}.drivers-head{padding:13px 18px;background:#f7f9fb;color:#718096;font-size:11px;font-weight:700}.drivers-list{list-style:none;margin:0;padding:0}.driver-row{min-height:58px;padding:0 18px;border-top:1px solid #edf1f5;color:#102a43;font-size:13px}.driver-row>span:nth-child(n+3){color:#52606d;font-size:12px}.driver-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e8eef5;font-size:18px}.driver-status{justify-self:start;padding:4px 9px;border-radius:999px;font-size:11px!important;font-weight:700}.driver-status.active{background:#e6f5eb;color:#176b4c}.driver-status.inactive{background:#fde8e8;color:#b42318}.driver-row>span:last-child{font-size:20px;color:#8a98a8;text-align:right}@media(max-width:700px){.drivers-head{display:none}.driver-row{grid-template-columns:40px 1fr 24px;gap:8px;padding:10px 14px}.driver-row>span:nth-child(3),.driver-row>span:nth-child(4),.driver-row>span:nth-child(5){grid-column:2}.module-controls input{width:100%}}
.drivers-screen{max-width:900px;padding-top:10px}.module-heading{margin-bottom:16px}.module-heading h1{font-size:24px;font-weight:700;letter-spacing:-.01em}.module-heading .primary{height:36px;padding:0 15px;border-radius:6px;font-size:12px}.module-controls{margin-bottom:14px}.module-controls input{width:52%;height:34px;border-radius:6px;background:#fff;padding:7px 11px;font-size:12px}.drivers-card{border-radius:8px;box-shadow:0 3px 10px rgba(16,42,67,.05)}.drivers-head,.driver-row{grid-template-columns:42px 2.15fr 1.25fr 1.25fr .8fr 18px;gap:10px}.drivers-head{padding:10px 16px;font-size:10px;background:#fbfcfd}.driver-row{min-height:52px;padding:0 16px;font-size:12px}.driver-avatar{width:32px;height:32px;font-size:16px;background:#edf2f7}.driver-row>span:nth-child(n+3){font-size:11px}.driver-status{padding:3px 8px;font-size:10px!important}.driver-row>span:last-child{font-size:17px}
.routes-zone{max-width:920px;margin:0 auto 18px;background:#fff;border:1px solid #dfe6ee;border-radius:10px;box-shadow:0 5px 16px rgba(16,42,67,.06);padding:22px}.routes-zone .panel-heading{margin-bottom:16px}.routes-zone h1{font-size:24px;color:#102a43;margin:0 0 18px}.routes-zone h2{font-size:16px;color:#102a43;margin:0}.planning-zone .link-form{display:grid;grid-template-columns:1.5fr 1fr auto;gap:12px;align-items:end}.planning-zone .link-form label{font-size:11px;color:#64748b}.planning-zone .link-form select,.planning-zone .link-form input{height:36px;margin-top:5px}.route-preview{margin-top:18px;border:1px solid #e5ebf1;border-radius:8px;background:#fbfcfd;padding:16px;min-height:70px}.execution-zone{min-height:220px}.route-summary{padding:14px;background:#f7f9fb;border-radius:8px;color:#52606d}.lifecycle-actions{display:flex;gap:9px;justify-content:flex-end;margin:14px 0}.lifecycle-actions .danger{background:#fff0f0;color:#b42318;border:1px solid #e2a1a1}@media(max-width:700px){.planning-zone .link-form{grid-template-columns:1fr}.routes-zone{padding:16px}}
.routes-zone{max-width:900px;padding:24px}.planning-zone .route-preview{background:#f8fafc;border:0;padding:0}.stop-card{background:#fff;border:1px solid #e1e8ef;border-radius:9px;padding:15px;margin:10px 0;box-shadow:0 2px 7px rgba(16,42,67,.04)}.stop-card h3{font-size:13px;color:#102a43;margin:0 0 12px}.stop-card p{margin:4px 0;color:#52606d;font-size:12px}.stop-student{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 0;border-top:1px solid #edf1f5;font-size:12px}.stop-student span{font-weight:700;color:#102a43}.stop-student button{font-size:11px;padding:6px 9px}.execution-zone{padding:24px}.execution-zone .route-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;background:transparent;padding:0;margin-bottom:14px}.execution-zone .stop-card{margin-top:12px}.execution-zone .status-badge{font-size:11px}.lifecycle-actions{padding-top:12px;border-top:1px solid #e5ebf1}.lifecycle-actions button{min-width:120px;height:34px;border-radius:6px;font-size:12px}@media(max-width:700px){.execution-zone .route-summary{grid-template-columns:repeat(2,1fr)}}
.execution-zone .route-summary span{background:#f8fafc;border:1px solid #e5ebf1;border-radius:7px;padding:9px 10px;color:#102a43;font-size:12px}.execution-zone .route-summary strong{font-size:10px;color:#64748b;text-transform:uppercase;letter-spacing:.04em}
.routes-zone{max-width:880px;padding:22px 24px;margin-bottom:16px;border-radius:9px}.routes-zone h1{font-size:23px;margin-bottom:16px}.routes-zone h2{font-size:15px}.planning-zone .link-form{gap:10px}.planning-zone .link-form select,.planning-zone .link-form input{height:34px}.route-preview{margin-top:16px;padding:13px}.stop-card{padding:13px;margin:8px 0;border-radius:8px}.stop-card h3{font-size:12px;margin-bottom:9px}.stop-student{padding:8px 0;font-size:12px}.execution-zone{padding:22px 24px}.execution-zone .route-summary{gap:7px;margin-bottom:12px}.execution-zone .route-summary span{padding:8px 9px;font-size:11px}.execution-zone .route-summary strong{font-size:9px}.lifecycle-actions{margin:12px 0 0;padding-top:11px;gap:8px}.lifecycle-actions button{height:32px;min-width:112px;font-size:11px}.status-badge{padding:4px 9px;font-size:10px}
.route-preview-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin-bottom:14px}.route-preview-summary div{background:#fff;border:1px solid #e5ebf1;border-radius:7px;padding:9px}.route-preview-summary small{display:block;color:#7a8795;font-size:9px;text-transform:uppercase}.route-preview-summary strong{display:block;color:#102a43;font-size:12px;margin-top:4px}@media(max-width:700px){.route-preview-summary{grid-template-columns:repeat(2,1fr)}}
.route-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0 16px}.route-card{background:#fff;border:1px solid #e1e5eb;border-radius:8px;padding:14px 16px;box-shadow:0 2px 8px rgba(20,38,63,.04);position:relative;min-height:112px}.route-card h3{margin:0 0 8px;color:#142b4a;font-size:15px}.route-card p{margin:4px 0;color:#657184;font-size:12px}.route-card .inline-edit{position:absolute;right:12px;top:12px;font-size:11px;padding:4px 9px}@media(max-width:760px){.route-cards{grid-template-columns:1fr}}
[hidden]{display:none !important}.module-root{display:block;min-height:0}.module-root[hidden]{display:none !important}
/* Approved dashboard composition */
.dashboard-reference{padding:4px 0 20px}.dashboard-reference .dashboard-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.dashboard-reference .dashboard-head h2{margin:0;color:#102a43;font-size:30px}.dashboard-reference .dashboard-head p{margin:5px 0 0;color:#6b7c8f}.dashboard-date{background:#fff;border:1px solid #d9e2ec;border-radius:10px;padding:11px 16px;color:#102a43;font-weight:600}.dashboard-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin-bottom:18px}.dashboard-kpi,.dashboard-panel-card{background:#fff;border:1px solid #e4ebf2;border-radius:14px;box-shadow:0 4px 14px rgba(16,42,67,.06)}.dashboard-kpi{padding:17px;min-height:102px}.dashboard-kpi .kpi-label{display:block;font-size:11px;font-weight:700;color:#526579;text-transform:uppercase}.dashboard-kpi strong{display:block;font-size:30px;line-height:1.1;color:#102a43;margin:10px 0 3px}.dashboard-kpi small{color:#6b7c8f}.dashboard-kpi.blue{border-top:3px solid #2f80ed}.dashboard-kpi.green{border-top:3px solid #27ae60}.dashboard-kpi.purple{border-top:3px solid #7b61d1}.dashboard-kpi.orange{border-top:3px solid #f2994a}.dashboard-kpi.teal{border-top:3px solid #2bb6b3}.dashboard-main-grid,.dashboard-lower-grid{display:grid;grid-template-columns:1.15fr 1fr .95fr;gap:14px;margin-bottom:14px}.dashboard-panel-card{padding:18px;min-height:230px}.dashboard-panel-card h3{margin:0 0 14px;color:#102a43;font-size:16px}.dashboard-list{list-style:none;padding:0;margin:0}.dashboard-list li{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #edf1f5;color:#29445e;font-size:13px}.dashboard-list li:last-child{border-bottom:0}.dashboard-list small{display:block;color:#8292a5;margin-top:3px}.dashboard-empty{color:#8292a5;padding:28px 8px;text-align:center}.dashboard-map-placeholder{height:164px;border-radius:10px;background:linear-gradient(135deg,#edf4f8,#dce9e3);display:flex;align-items:center;justify-content:center;color:#6b7c8f;text-align:center}.dashboard-alert{display:grid;grid-template-columns:24px 1fr auto;gap:9px;align-items:start}.dashboard-alert b{color:#102a43}.dashboard-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.dashboard-summary-grid div{border:1px solid #e7edf3;border-radius:9px;padding:12px}.dashboard-summary-grid strong{display:block;font-size:22px;color:#102a43;margin-top:5px}.dashboard-quick{display:flex;align-items:center;gap:10px;flex-wrap:wrap;background:#fff;border:1px solid #e4ebf2;border-radius:14px;padding:14px 18px}.dashboard-quick h3{margin:0 12px 0 0;color:#102a43;font-size:16px}.dashboard-quick button{background:#fff;border:1px solid #d9e2ec;border-radius:8px;padding:10px 13px;color:#27445f}.dashboard-quick button[disabled]{opacity:.55;cursor:default}@media(max-width:1100px){.dashboard-kpis{grid-template-columns:repeat(3,1fr)}.dashboard-main-grid,.dashboard-lower-grid{grid-template-columns:1fr 1fr}}@media(max-width:680px){.dashboard-reference .dashboard-head{display:block}.dashboard-date{margin-top:12px;display:inline-block}.dashboard-kpis,.dashboard-main-grid,.dashboard-lower-grid{grid-template-columns:1fr}.dashboard-panel-card{min-height:0}}
[data-accounting-layout]{display:block}
.accounting-reference{padding:4px 0 20px}.accounting-reference .accounting-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.accounting-reference h2{margin:0;color:#102a43;font-size:30px}.accounting-reference p{margin:5px 0;color:#6b7c8f}.accounting-date{background:#fff;border:1px solid #d9e2ec;border-radius:10px;padding:10px 15px;font-weight:600;color:#102a43}.accounting-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}.accounting-card{background:#fff;border:1px solid #e4ebf2;border-radius:13px;box-shadow:0 4px 14px rgba(16,42,67,.06);padding:17px}.accounting-kpi{min-height:110px}.accounting-kpi .finance-label{font-size:11px;font-weight:700;color:#526579}.accounting-kpi strong{display:block;font-size:25px;color:#102a43;margin:10px 0 4px}.accounting-kpi small{color:#27ae60}.accounting-kpi.expense small{color:#e05a5a}.accounting-kpi.pending small{color:#d99018}.accounting-main,.accounting-lower{display:grid;gap:14px;margin-bottom:14px}.accounting-main{grid-template-columns:1.05fr .95fr}.accounting-lower{grid-template-columns:1fr 1fr 1fr}.accounting-card h3{margin:0 0 14px;color:#102a43;font-size:16px}.accounting-select{float:right;border:1px solid #d9e2ec;border-radius:7px;padding:5px;background:#fff}.finance-chart{height:210px;position:relative;padding:12px 8px 0;background:repeating-linear-gradient(to bottom,#fff 0,#fff 40px,#edf1f5 41px)}.finance-lines{position:absolute;left:32px;right:20px;bottom:28px;height:150px}.finance-lines:before,.finance-lines:after{content:"";position:absolute;left:0;right:0;height:3px;transform:skewY(-15deg);border-radius:3px}.finance-lines:before{bottom:45px;background:#27ae60;box-shadow:42px -18px #27ae60,84px -35px #27ae60,126px -50px #27ae60,168px -64px #27ae60,210px -78px #27ae60,252px -93px #27ae60}.finance-lines:after{bottom:5px;background:#e04b4b;box-shadow:42px -10px #e04b4b,84px -18px #e04b4b,126px -29px #e04b4b,168px -38px #e04b4b,210px -48px #e04b4b,252px -58px #e04b4b}.finance-legend{font-size:12px;color:#63758a;margin-bottom:7px}.finance-legend span{margin-right:14px}.finance-legend i{display:inline-block;width:12px;height:5px;border-radius:3px;margin-right:4px;background:#27ae60}.finance-legend .red{background:#e04b4b}.accounting-table{width:100%;border-collapse:collapse;font-size:12px}.accounting-table th{text-align:left;color:#63758a;font-weight:700;padding:8px 5px;border-bottom:1px solid #e8edf2}.accounting-table td{padding:10px 5px;border-bottom:1px solid #edf1f5;color:#243b53}.finance-badge{border-radius:7px;padding:4px 8px;font-size:11px;font-weight:700;display:inline-block}.paid{background:#dff5e8;color:#20864d}.pending-badge{background:#fff0d2;color:#b87908}.overdue{background:#ffe1e3;color:#d33f49}.month-summary{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#edf1f5}.month-summary div{background:#fff;padding:16px 12px;color:#63758a;font-size:12px}.month-summary strong{display:block;color:#102a43;font-size:17px;margin-top:7px}.accounting-actions{display:flex;gap:10px;flex-wrap:wrap}.accounting-actions h3{width:100%;margin-bottom:0}.accounting-actions button{flex:1;min-width:145px;background:#fff;border:1px solid #d9e2ec;border-radius:9px;padding:13px;color:#102a43;font-weight:600}.accounting-actions button:disabled{opacity:.65}@media(max-width:1000px){.accounting-kpis{grid-template-columns:repeat(2,1fr)}.accounting-main,.accounting-lower{grid-template-columns:1fr 1fr}}@media(max-width:650px){.accounting-reference .accounting-head{display:block}.accounting-date{display:inline-block;margin-top:10px}.accounting-kpis,.accounting-main,.accounting-lower{grid-template-columns:1fr}.accounting-table{font-size:11px}}
[data-routes-reference-layout]{display:block}
.routes-reference{padding:4px 0 20px}.routes-reference .routes-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.routes-reference h2{margin:0;color:#102a43;font-size:30px}.routes-reference p{margin:5px 0;color:#6b7c8f}.routes-date{background:#fff;border:1px solid #d9e2ec;border-radius:10px;padding:10px 15px;font-weight:600;color:#102a43}.routes-summary{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:14px}.routes-summary-card,.routes-reference .route-panel{background:#fff;border:1px solid #e4ebf2;border-radius:12px;box-shadow:0 4px 14px rgba(16,42,67,.06)}.routes-summary-card{padding:15px;min-height:91px}.routes-summary-card small{font-size:10px;font-weight:700;color:#63758a}.routes-summary-card strong{display:block;color:#102a43;font-size:18px;margin:8px 0 2px}.routes-summary-card span{color:#6b7c8f;font-size:12px}.routes-upper,.routes-lower{display:grid;grid-template-columns:1.15fr .85fr;gap:14px;margin-bottom:14px}.routes-panel{padding:16px}.routes-panel h3{margin:0 0 14px;color:#102a43;font-size:16px}.routes-form-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}.routes-form-grid label{font-size:11px;color:#63758a;font-weight:700}.routes-form-grid select,.routes-form-grid input{display:block;width:100%;margin-top:5px;padding:10px;border:1px solid #d9e2ec;border-radius:7px;background:#fff;color:#243b53}.routes-generate{width:100%;margin-top:13px;padding:11px;border:0;border-radius:7px;background:#1769e8;color:#fff;font-weight:700}.routes-info{margin-top:12px;padding:11px;background:#f4f8fc;border-left:3px solid #4b9bea;color:#63758a;font-size:12px}.trip-badge{float:right;background:#dff5e8;color:#20864d;border-radius:8px;padding:5px 9px;font-size:11px}.trip-counters{display:grid;grid-template-columns:repeat(4,1fr);gap:7px;margin:15px 0}.trip-counters div{text-align:center;border-right:1px solid #edf1f5}.trip-counters strong{display:block;font-size:22px;color:#102a43}.trip-counters small{color:#63758a}.trip-progress{height:8px;background:#e4e9ef;border-radius:6px;overflow:hidden;margin:8px 0}.trip-progress span{display:block;width:75%;height:100%;background:#27ae60}.trip-map-btn{width:100%;padding:9px;border:1px solid #8eb4e6;border-radius:7px;background:#f5f9ff;color:#1769e8;font-weight:600}.route-preview-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:14px}.route-map-visual{height:285px;border-radius:10px;background:linear-gradient(135deg,#edf4f8,#d9e9df);position:relative;overflow:hidden}.route-map-visual:before{content:"";position:absolute;left:18%;top:18%;width:64%;height:55%;border-left:4px solid #1769e8;border-bottom:4px solid #1769e8;transform:skew(-20deg);border-radius:30px}.map-stop{position:absolute;background:#27ae60;color:#fff;border-radius:50%;width:25px;height:25px;text-align:center;line-height:25px;font-weight:700}.map-stop.s1{left:16%;top:13%}.map-stop.s2{left:42%;top:35%}.map-stop.s3{left:69%;top:58%}.map-stop.s4{left:60%;top:78%}.route-stops{list-style:none;padding:0;margin:0}.route-stops li{display:flex;gap:10px;padding:9px 0;border-bottom:1px solid #edf1f5}.route-stops b{color:#102a43}.route-stops small{display:block;color:#7b8b9d}.route-stops time{margin-left:auto;color:#63758a;font-size:11px}.route-students{width:100%;border-collapse:collapse;font-size:12px}.route-students th,.route-students td{text-align:left;padding:9px 5px;border-bottom:1px solid #edf1f5}.route-students th{color:#63758a}.student-status{background:#dff5e8;color:#20864d;border-radius:8px;padding:4px 8px;font-size:11px}.student-pending{background:#fff0d2;color:#b87908}.routes-quick{display:flex;gap:10px;flex-wrap:wrap}.routes-quick h3{width:100%;margin-bottom:0}.routes-quick button{flex:1;min-width:135px;padding:12px;border:1px solid #d9e2ec;border-radius:8px;background:#fff;color:#102a43;font-weight:600}.routes-quick button:disabled{opacity:.6}@media(max-width:1000px){.routes-summary{grid-template-columns:repeat(3,1fr)}.routes-upper,.routes-lower{grid-template-columns:1fr}}@media(max-width:650px){.routes-reference .routes-head{display:block}.routes-date{display:inline-block;margin-top:10px}.routes-summary,.routes-form-grid,.route-preview-grid{grid-template-columns:1fr}.route-map-visual{height:220px}.route-students{font-size:11px}}
.employees-reference{padding:4px 0 20px}.employees-reference .employees-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.employees-reference h2{margin:0;color:#102a43;font-size:30px}.employees-reference p{margin:5px 0;color:#6b7c8f}.employees-date{background:#fff;border:1px solid #d9e2ec;border-radius:10px;padding:10px 15px;font-weight:600;color:#102a43}.employee-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}.employee-card,.employee-directory{background:#fff;border:1px solid #e4ebf2;border-radius:13px;box-shadow:0 4px 14px rgba(16,42,67,.06)}.employee-card{padding:18px;min-height:105px;border-left:3px solid #2f80ed}.employee-card.green{border-left-color:#27ae60}.employee-card.purple{border-left-color:#7b61d1}.employee-card small{color:#63758a;font-weight:700}.employee-card strong{display:block;color:#102a43;font-size:29px;margin:8px 0 1px}.employee-card span{color:#63758a;font-size:12px}.employee-toolbar{display:grid;grid-template-columns:1.5fr .7fr .7fr auto;gap:12px;padding:18px;background:#fff;border:1px solid #e4ebf2;border-radius:13px 13px 0 0}.employee-toolbar input,.employee-toolbar select{padding:11px;border:1px solid #d9e2ec;border-radius:8px;background:#fff;color:#243b53}.employee-new{background:#f6c445;border:0;border-radius:9px;padding:0 20px;color:#102a43;font-weight:700}.employee-directory{overflow:hidden;border-top:0;border-radius:0 0 13px 13px}.employee-table{width:100%;border-collapse:collapse;font-size:12px}.employee-table th{text-align:left;color:#63758a;background:#fbfcfd;padding:12px 10px;border-bottom:1px solid #e6ebf1}.employee-table td{padding:11px 10px;border-bottom:1px solid #edf1f5;color:#243b53;vertical-align:middle}.employee-table tr:last-child td{border-bottom:0}.employee-person{display:flex;align-items:center;gap:9px}.employee-avatar{width:34px;height:34px;border-radius:50%;background:#e5eef8;color:#1769e8;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.employee-person strong{display:block;color:#102a43}.employee-person small{display:block;color:#8190a0;font-size:10px}.employee-role,.employee-state{display:inline-block;border-radius:10px;padding:5px 9px;font-size:11px;font-weight:700}.employee-role{background:#eee6ff;color:#6b46c1}.employee-role.driver{background:#e1f6e9;color:#21864e}.employee-role.assistant{background:#e7f0ff;color:#2868bd}.employee-state{background:#dff5e8;color:#20864d}.employee-state.inactive{background:#fff0d2;color:#b87908}.employee-chevron{font-size:20px;color:#50667d}.employee-pagination{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;color:#63758a;font-size:12px}.employee-pages button{margin:0 3px;padding:7px 11px;border:1px solid #d9e2ec;background:#fff;border-radius:7px}.employee-pages .active{background:#1769e8;color:#fff;border-color:#1769e8}@media(max-width:950px){.employee-toolbar{grid-template-columns:1fr 1fr}.employee-new{height:40px}.employee-table{min-width:760px}.employee-directory{overflow-x:auto}}@media(max-width:650px){.employees-reference .employees-head{display:block}.employees-date{display:inline-block;margin-top:10px}.employee-summary{grid-template-columns:1fr}.employee-toolbar{grid-template-columns:1fr}.employee-directory{overflow-x:auto}}
.drivers-reference{padding:4px 0 20px}.drivers-reference .drivers-head-ref{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.drivers-reference h2{margin:0;color:#102a43;font-size:30px}.drivers-reference p{margin:5px 0;color:#6b7c8f}.drivers-date{background:#fff;border:1px solid #d9e2ec;border-radius:10px;padding:10px 15px;font-weight:600;color:#102a43}.drivers-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}.driver-summary-card{background:#fff;border:1px solid #e4ebf2;border-left:3px solid #2f80ed;border-radius:13px;box-shadow:0 4px 14px rgba(16,42,67,.06);padding:18px;min-height:105px}.driver-summary-card.green{border-left-color:#27ae60}.driver-summary-card.purple{border-left-color:#7b61d1}.driver-summary-card small{color:#63758a;font-weight:700}.driver-summary-card strong{display:block;font-size:29px;color:#102a43;margin:8px 0 1px}.driver-summary-card span{color:#63758a;font-size:12px}.driver-toolbar{display:flex;gap:12px;align-items:center;padding:18px;background:#fff;border:1px solid #e4ebf2;border-radius:13px 13px 0 0}.driver-toolbar input{flex:1;padding:12px;border:1px solid #d9e2ec;border-radius:8px}.driver-add{background:#f6c445;border:0;border-radius:9px;padding:12px 22px;color:#102a43;font-weight:700}.driver-directory-ref{background:#fff;border:1px solid #e4ebf2;border-top:0;border-radius:0 0 13px 13px;box-shadow:0 4px 14px rgba(16,42,67,.06);overflow:hidden}.driver-table-ref{width:100%;border-collapse:collapse;font-size:12px}.driver-table-ref th{text-align:left;color:#63758a;background:#fbfcfd;padding:12px 10px;border-bottom:1px solid #e6ebf1}.driver-table-ref td{padding:12px 10px;border-bottom:1px solid #edf1f5;color:#243b53}.driver-person-ref{display:flex;gap:9px;align-items:center}.driver-avatar-ref{width:35px;height:35px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#e5eef8;color:#1769e8;font-weight:700}.driver-person-ref strong{display:block;color:#102a43}.driver-status-ref{display:inline-block;border-radius:10px;padding:5px 9px;font-size:11px;font-weight:700}.driver-available{background:#dff5e8;color:#20864d}.driver-assigned{background:#e5efff;color:#2868bd}.driver-inactive{background:#fff0d2;color:#b87908}.driver-pagination-ref{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;color:#63758a;font-size:12px}.driver-pages-ref button{margin:0 3px;padding:7px 11px;border:1px solid #d9e2ec;background:#fff;border-radius:7px}.driver-pages-ref .active{background:#1769e8;color:#fff;border-color:#1769e8}@media(max-width:850px){.drivers-summary{grid-template-columns:repeat(3,1fr)}.driver-directory-ref{overflow-x:auto}.driver-table-ref{min-width:760px}}@media(max-width:650px){.drivers-reference .drivers-head-ref{display:block}.drivers-date{display:inline-block;margin-top:10px}.drivers-summary{grid-template-columns:1fr}.driver-toolbar{display:block}.driver-toolbar input{width:100%;margin-bottom:10px}.driver-add{width:100%}}
.sinoda-reference{padding:4px 0 20px}.sinoda-reference .sinoda-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:18px}.sinoda-reference h2{margin:0;color:#102a43;font-size:30px}.sinoda-reference p{margin:5px 0;color:#6b7c8f}.sinoda-date{background:#fff;border:1px solid #d9e2ec;border-radius:10px;padding:10px 15px;font-weight:600;color:#102a43}.sinoda-summary{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}.sinoda-summary-card,.sinoda-list-card,.sinoda-detail,.sinoda-info{background:#fff;border:1px solid #e4ebf2;border-radius:13px;box-shadow:0 4px 14px rgba(16,42,67,.06)}.sinoda-summary-card{padding:20px;border-left:3px solid #2f80ed;min-height:105px}.sinoda-summary-card.orange{border-left-color:#f2994a}.sinoda-summary-card small{color:#63758a;font-weight:700}.sinoda-summary-card strong{display:block;font-size:30px;color:#102a43;margin:8px 0}.sinoda-summary-card span{color:#63758a;font-size:12px}.sinoda-workspace{display:grid;grid-template-columns:1.2fr .8fr;gap:14px}.sinoda-list-card{padding:16px}.sinoda-tools{display:flex;gap:10px;margin-bottom:12px}.sinoda-tools input{flex:1;padding:11px;border:1px solid #d9e2ec;border-radius:8px}.sinoda-tools button{padding:0 20px;border:1px solid #d9e2ec;background:#fff;border-radius:8px;color:#102a43;font-weight:700}.sinoda-table{width:100%;border-collapse:collapse;font-size:12px}.sinoda-table th{text-align:left;color:#63758a;padding:10px 7px;border-bottom:1px solid #e6ebf1}.sinoda-table td{padding:12px 7px;border-bottom:1px solid #edf1f5;color:#243b53}.sinoda-table tr:last-child td{border-bottom:0}.sinoda-confidence,.sinoda-status{display:inline-block;border-radius:8px;padding:5px 8px;font-size:11px;font-weight:700}.sinoda-confidence{background:#dff5e8;color:#20864d}.sinoda-confidence.medium{background:#fff0d2;color:#b87908}.sinoda-status{background:#e5efff;color:#2868bd}.sinoda-status.attention{background:#ffe4dc;color:#d65632}.sinoda-detail{padding:18px;min-height:500px}.sinoda-detail h3{margin:0 0 14px;color:#102a43}.sinoda-detail-title{font-size:18px;color:#102a43;font-weight:700;margin:14px 0 3px}.sinoda-detail small{color:#63758a}.sinoda-compare{display:grid;grid-template-columns:1fr 28px 1fr;gap:8px;align-items:center;margin:18px 0}.sinoda-value{padding:15px;border-radius:8px;font-size:12px;color:#243b53}.sinoda-value.current{background:#ffe8e8}.sinoda-value.proposed{background:#e3f5e8}.sinoda-arrow{text-align:center;font-size:22px;color:#526579}.sinoda-detail label{font-size:11px;color:#63758a;font-weight:700}.sinoda-progress{height:8px;background:#e5eaf0;border-radius:6px;margin-top:7px}.sinoda-progress span{display:block;width:92%;height:100%;background:#27ae60;border-radius:6px}.sinoda-actions{display:grid;gap:9px;margin-top:20px}.sinoda-actions button{padding:11px;border-radius:8px;font-weight:700}.sinoda-approve{background:#18a957;color:#fff;border:0}.sinoda-edit{background:#fff;border:1px solid #b8c7d8;color:#102a43}.sinoda-discard{background:#fff;border:1px solid #e05a5a;color:#d33f49}.sinoda-pagination{display:flex;justify-content:space-between;padding:14px 4px;color:#63758a;font-size:12px}.sinoda-pages button{margin:0 3px;padding:7px 11px;border:1px solid #d9e2ec;background:#fff;border-radius:7px}.sinoda-pages .active{background:#1769e8;color:#fff}.sinoda-info{margin-top:14px;padding:14px;background:#f2f7ff;color:#526579;font-size:12px}@media(max-width:900px){.sinoda-workspace{grid-template-columns:1fr}.sinoda-detail{min-height:0}}@media(max-width:650px){.sinoda-reference .sinoda-head{display:block}.sinoda-date{display:inline-block;margin-top:10px}.sinoda-summary{grid-template-columns:1fr}.sinoda-tools{display:block}.sinoda-tools input{width:100%;margin-bottom:9px}.sinoda-tools button{height:38px}.sinoda-list-card{overflow-x:auto}.sinoda-table{min-width:650px}}
.students-reference{padding:4px 0 20px}.students-reference .students-head-ref{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:20px}.students-reference h2{margin:0;color:#102a43;font-size:30px}.students-reference p{margin:5px 0;color:#6b7c8f}.students-date{background:#fff;border:1px solid #d9e2ec;border-radius:10px;padding:10px 15px;font-weight:600;color:#102a43}.students-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:16px}.student-summary-card{background:#fff;border:1px solid #e4ebf2;border-left:3px solid #2f80ed;border-radius:13px;box-shadow:0 4px 14px rgba(16,42,67,.06);padding:18px;min-height:105px}.student-summary-card.green{border-left-color:#27ae60}.student-summary-card.orange{border-left-color:#f2994a}.student-summary-card small{color:#63758a;font-weight:700}.student-summary-card strong{display:block;font-size:29px;color:#102a43;margin:8px 0 1px}.student-summary-card span{color:#63758a;font-size:12px}.student-toolbar-ref{display:flex;gap:12px;padding:18px;background:#fff;border:1px solid #e4ebf2;border-radius:13px 13px 0 0}.student-toolbar-ref input{flex:1;padding:12px;border:1px solid #d9e2ec;border-radius:8px}.student-add-ref{background:#f6c445;border:0;border-radius:9px;padding:12px 22px;color:#102a43;font-weight:700}.student-directory-ref{background:#fff;border:1px solid #e4ebf2;border-top:0;border-radius:0 0 13px 13px;box-shadow:0 4px 14px rgba(16,42,67,.06);overflow:hidden}.student-table-ref{width:100%;border-collapse:collapse;font-size:12px}.student-table-ref th{text-align:left;color:#63758a;background:#fbfcfd;padding:12px 10px;border-bottom:1px solid #e6ebf1}.student-table-ref td{padding:12px 10px;border-bottom:1px solid #edf1f5;color:#243b53}.student-person-ref{display:flex;gap:9px;align-items:center}.student-avatar-ref{width:35px;height:35px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#eee6ff;color:#6b46c1;font-weight:700}.student-person-ref strong{display:block;color:#102a43}.student-person-ref small,.student-secondary{display:block;color:#8190a0;font-size:10px}.student-service-ref,.student-state-ref{display:inline-block;border-radius:9px;padding:5px 8px;font-size:11px;font-weight:700}.service-both{background:#e5efff;color:#2868bd}.service-morning{background:#dff5e8;color:#20864d}.service-afternoon{background:#fff0d2;color:#b87908}.student-state-ref{background:#dff5e8;color:#20864d}.student-state-ref.pending{background:#fff0d2;color:#b87908}.student-pagination-ref{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;color:#63758a;font-size:12px}.student-pages-ref button{margin:0 3px;padding:7px 11px;border:1px solid #d9e2ec;background:#fff;border-radius:7px}.student-pages-ref .active{background:#1769e8;color:#fff;border-color:#1769e8}.students-info-ref{margin-top:14px;padding:14px;background:#f2f7ff;border:1px solid #dbe9f7;border-radius:9px;color:#526579;font-size:12px}@media(max-width:850px){.student-directory-ref{overflow-x:auto}.student-table-ref{min-width:850px}}@media(max-width:650px){.students-reference .students-head-ref{display:block}.students-date{display:inline-block;margin-top:10px}.students-summary{grid-template-columns:1fr}.student-toolbar-ref{display:block}.student-toolbar-ref input{width:100%;margin-bottom:10px}.student-add-ref{width:100%}}
/* Admin profile presentation refinement */
.profile-admin-identity-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px}.profile-meta-field{display:flex;flex-direction:column;gap:4px;padding:10px 12px;background:#f8fafc;border:1px solid #e4eaf0;border-radius:9px}.profile-meta-field strong,.profile-admin-card p strong,.pending-info-block>strong{font-size:10px;letter-spacing:.06em;text-transform:uppercase;color:#64748b}.profile-meta-field span,.profile-admin-card p span{color:#102a43;font-size:14px;font-weight:700}.profile-operational-code{background:#fff9e8;border-color:#f4d27a;position:relative}.profile-technical-id span{font-family:monospace;font-size:12px;color:#64748b;word-break:break-all}.profile-edit-icon{position:absolute;right:7px;top:7px;border:0;background:transparent;color:#b7791f;font-size:15px;padding:0}.profile-card p>span{display:block;margin-top:4px}.profile-admin-card{border-top:4px solid #f4c542}.profile-admin-card .admin-status-row>span{display:inline-block;background:#fff4cc;color:#8a5a00;border-radius:999px;padding:6px 10px;margin-top:7px}.pending-info-block{margin-top:18px}.pending-info-list{margin:8px 0 0;padding:0;list-style:none}.pending-info-list li{padding:7px 9px;margin-top:5px;background:#fff8e6;border-left:3px solid #f4c542;color:#7a5410;font-size:13px}.admin-actions-note{margin-top:18px;padding-top:12px;border-top:1px solid #e4eaf0;color:#64748b;font-size:12px}@media(max-width:700px){.profile-admin-identity-meta{grid-template-columns:1fr}}
/* Inline profile editing and creation controls */
.profile-inline-name-input{display:block;width:100%;font:inherit;font-weight:700;color:#102a43;border:1px solid #2f6fbe;border-radius:7px;padding:7px 9px;box-sizing:border-box}.profile-inline-action{margin:8px 6px 0 0;font-size:12px;padding:6px 10px}.profile-create-label{display:block;font-size:11px;text-transform:uppercase;letter-spacing:.05em;color:#64748b}.profile-create-label input{display:block;width:100%;margin-top:6px;padding:9px;border:1px solid #b8c7d8;border-radius:7px;box-sizing:border-box}.emergency-contact-entry{margin-top:10px;padding:10px;background:#f8fafc;border-left:3px solid #f4c542;border-radius:6px}.emergency-contact-entry p{margin:5px 0!important}.emergency-contact-entry p strong{display:block}.emergency-contact-entry p span{display:block;margin-top:2px}

/* Family read-only layout */
.family-readonly {
  display: grid;
  gap: 6px;
  margin: 6px 0 14px;
}

.family-readonly span {
  display: block;
}

.family-readonly .secondary {
  justify-self: start;
  margin-top: 4px;
}

.family-editor > strong {
  display: block;
  margin-top: 10px;
}

/* Keep location and school editors contained within the profile card. */
.profile-card #pickup-form.is-open,
.profile-card #school-form.is-open {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 10px;
  margin-top: 12px;
  overflow: hidden;
}
.profile-card #pickup-form.is-open input,
.profile-card #pickup-form.is-open button,
.profile-card #school-form.is-open input,
.profile-card #school-form.is-open button,
.profile-card #school-form.is-open label {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}
.profile-card #school-form.is-open label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.profile-card #school-form.is-open input { margin: 0; }
.profile-card .school-time-selectors { display:flex; gap:8px; width:100%; }
.profile-card .school-time-selectors select { flex:1; min-width:0; box-sizing:border-box; }
.profile-card .school-hours-read { margin:10px 0; color:#102a43; font-size:15px; }
.profile-avatar { cursor:pointer; background-size:cover; background-position:center; }
.profile-avatar.has-photo { background-color:#eef3f8; }
.route-create-form { display:flex; flex-direction:column; gap:10px; margin:12px 0; }
.route-create-form label { display:flex; flex-direction:column; gap:4px; }
.route-create-form input, .route-create-form select { width:100%; box-sizing:border-box; }
.routes-real-list { width:100%; border-collapse:collapse; }
.routes-real-list th, .routes-real-list td { padding:10px 12px; text-align:left; border-bottom:1px solid #e4eaf0; }
.routes-reference .routes-upper{grid-template-columns:minmax(0,1fr);}
.routes-reference .routes-summary{width:100%;}
.routes-reference .routes-summary:has(.routes-real-list){display:block;}
.routes-reference .routes-real-list{table-layout:fixed;min-width:100%;}
.routes-reference .routes-real-list th,.routes-reference .routes-real-list td{white-space:normal;overflow:visible;text-overflow:clip;}
.routes-reference .routes-real-list th:nth-child(1),.routes-reference .routes-real-list td:nth-child(1){width:24%;}
.routes-reference .routes-real-list th:nth-child(2),.routes-reference .routes-real-list td:nth-child(2){width:22%;}
.routes-reference .routes-real-list th:nth-child(3),.routes-reference .routes-real-list td:nth-child(3){width:22%;}
.routes-reference .routes-real-list th:nth-child(4),.routes-reference .routes-real-list td:nth-child(4){width:14%;}
.routes-reference .routes-real-list th:nth-child(5),.routes-reference .routes-real-list td:nth-child(5){width:18%;}
.routes-reference .routes-lower{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);align-items:start;}
.routes-reference .routes-lower>.route-panel{min-width:0;}
.routes-reference .routes-lower .route-students{width:100%;table-layout:auto;}
.routes-reference .route-preview-live{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start;width:100%;min-height:220px;}
.routes-reference .route-preview-live-summary{grid-column:1 / -1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.routes-reference .route-preview-live-summary>div{padding:10px;background:#f4f8fc;border-radius:8px;}
.routes-reference .route-preview-live-summary small,.routes-reference .route-preview-live-stops small{display:block;color:#63758a;font-size:11px;}
.routes-reference .route-preview-live-summary strong{display:block;color:#102a43;margin-top:4px;}
.routes-reference .route-preview-live h4{grid-column:1 / -1;margin:0;color:#102a43;}
.routes-reference .route-preview-live-stops{grid-column:1 / -1;margin:0;padding-left:22px;}
.routes-reference .route-preview-live-stops li{padding:9px 0;border-bottom:1px solid #edf1f5;}
.routes-reference .route-preview-live.empty,.routes-reference .route-preview-live.loading,.routes-reference .route-preview-live.error{display:block;color:#63758a;padding:18px 0;}
.routes-reference .routes-upper{margin-bottom:0;}
.routes-reference .routes-upper .route-panel{padding:0;border:0;box-shadow:none;background:transparent;}
.routes-reference .routes-upper .route-panel>h3,.routes-reference .routes-upper .routes-form-grid,.routes-reference .routes-upper .routes-generate,.routes-reference .routes-upper .routes-info{display:none;}
@media(max-width:650px){.routes-reference .routes-real-list{table-layout:auto;min-width:620px}.routes-reference .routes-summary{overflow-x:auto}.routes-reference .routes-real-list th,.routes-reference .routes-real-list td{white-space:normal;}}
.route-list-row { cursor:pointer; }

/* Student arrival/dismissal belong to operations, not this school editor. */
.profile-card #school-form.is-open #school-arrival,
.profile-card #school-form.is-open #school-dismissal {
  display: none;
}

/* Solicitud de familia — detalle compacto */
.parent-application-detail{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.parent-application-detail > .secondary{
  align-self:flex-start;
}

.parent-application-detail > .profile-card{
  padding:18px 20px;
}

.parent-application-detail > .profile-card p{
  margin:8px 0;
}

.parent-application-students{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
  align-items:start;
}

.parent-application-students .profile-card{
  padding:18px 20px;
  min-width:0;
}

.parent-application-students .profile-card h3,
.parent-application-detail > .profile-card h3{
  margin-top:0;
  padding-bottom:8px;
  border-bottom:2px solid #d7a91e;
}

.parent-application-students .profile-card p{
  margin:8px 0;
}

.parent-application-students .profile-card strong,
.parent-application-detail > .profile-card strong{
  display:block;
  margin-bottom:2px;
  font-size:11px;
  letter-spacing:.04em;
  text-transform:uppercase;
}

@media(max-width:850px){
  .parent-application-students{
    grid-template-columns:1fr;
  }
}

/* Solicitudes de familias — detalle compacto y dinámico */

.parent-application-detail{
  gap:10px;
}

.parent-application-detail .panel-heading{
  margin-bottom:2px;
}

.parent-application-detail .panel-heading h2{
  font-size:20px;
  margin:2px 0;
}

.parent-application-summary{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  font-size:11px;
  color:#6c7888;
  margin-bottom:4px;
}

.parent-detail-toggle{
  width:100%;
  border:1px solid #dfe5ec;
  background:#fff;
  border-radius:10px;
  padding:11px 13px;
  text-align:left;
  cursor:pointer;
}

.parent-detail-toggle:hover{
  border-color:#c7d2df;
  box-shadow:0 3px 10px rgba(16,45,78,.06);
}

.parent-detail-toggle-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.parent-detail-toggle-head h3{
  margin:0;
  font-size:13px;
  color:#173554;
}

.parent-detail-toggle-head span{
  font-size:10px;
  color:#65758a;
}

.parent-detail-toggle-meta{
  margin-top:4px;
  font-size:10px;
  color:#718096;
}

.parent-detail-body{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 18px;
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid #edf1f5;
}

.parent-detail-field{
  min-width:0;
}

.parent-detail-field strong{
  display:block;
  font-size:9px;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:#758397;
  margin-bottom:2px;
}

.parent-detail-field span{
  display:block;
  font-size:11px;
  color:#182a42;
  overflow-wrap:anywhere;
}

.parent-application-students{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}

@media(max-width:800px){
  .parent-application-students,
  .parent-detail-body{
    grid-template-columns:1fr;
  }
}

/* Solicitudes de familias — separación del estado */
.parent-review-current-state {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   SOLICITUDES DE FAMILIAS — LISTA COMPACTA
   Solo presentación. No modifica funcionalidad.
   ========================================================= */

#parent-applications-list,
.parent-applications-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  width: 100%;
}

/* Una solicitud = una fila */
.parent-application-card.parent-application-card-button {
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 9px 13px;

  display: grid;
  grid-template-columns:
    minmax(170px, 2fr)
    minmax(120px, 1.2fr)
    minmax(85px, .8fr)
    minmax(170px, 1.5fr);

  gap: 14px;
  align-items: center;

  box-sizing: border-box;
  text-align: left;

  background: #fff;
  border: 1px solid #e0e6ed;
  border-radius: 8px;

  color: #24364f;
  cursor: pointer;

  box-shadow: 0 3px 10px rgba(8,37,79,.035);
}

.parent-application-card.parent-application-card-button:hover {
  border-color: #b9c7d6;
  background: #f9fbfd;
  box-shadow: 0 5px 14px rgba(8,37,79,.06);
}

/* Nombre */
.parent-application-card h3 {
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  font-weight: 800;
  color: #10233f;
}

/* Estado, estudiantes y fecha */
.parent-application-card p {
  margin: 0;
  font-size: 10px;
  line-height: 1.3;
  color: #647387;
}

.parent-application-card .parent-application-status {
  font-size: 10px;
  font-weight: 800;
  color: #41566f;
}

.parent-application-card .muted {
  font-size: 9px;
  color: #8591a0;
}

/* Encabezado de la sección un poco más compacto */
#parent-applications-section h2 {
  font-size: 20px;
  margin-bottom: 5px;
}

#parent-applications-section > p {
  font-size: 11px;
  line-height: 1.4;
}

/* Tablet */
@media (max-width: 850px) {
  .parent-application-card.parent-application-card-button {
    grid-template-columns: 1.5fr 1fr;
    gap: 5px 12px;
  }
}

/* Teléfono */
@media (max-width: 560px) {
  .parent-application-card.parent-application-card-button {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 11px 12px;
  }
}

/* Solicitudes — evitar que nombres largos invadan otras columnas */
.parent-application-card.parent-application-card-button {
  grid-template-columns:
    minmax(0, 2.4fr)
    minmax(125px, 1.1fr)
    minmax(90px, .8fr)
    minmax(175px, 1.5fr);
}

.parent-application-card h3 {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.parent-application-card p {
  min-width: 0;
}

/* =========================================================
   SOLICITUDES — COLOR SEGÚN ESTADO REAL DEL BACKEND
   ========================================================= */

.parent-application-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 800 !important;
}

/* Pendiente de revisión — amarillo */
.parent-application-status.status-pending-review {
  background: #fff3c4;
  color: #7a5a00;
  border: 1px solid #ead47a;
}

/* En revisión — verde */
.parent-application-status.status-in-review {
  background: #dff4e5;
  color: #21643a;
  border: 1px solid #9fd5ae;
}

/* Corrección requerida — naranja */
.parent-application-status.status-correction-required {
  background: #ffe8cc;
  color: #934b00;
  border: 1px solid #efbd7d;
}

/* Rechazada — rojo */
.parent-application-status.status-rejected {
  background: #fde2e2;
  color: #9b2929;
  border: 1px solid #e9aaaa;
}

/* =========================================================
   PERFIL DE ESTUDIANTE — VISTA COMPACTA
   Solo presentación. No modifica funcionalidad.
   ========================================================= */

#student-profile.profile-panel {
  padding: 14px 18px !important;
}

#student-profile .profile-header {
  padding-bottom: 10px !important;
  margin-bottom: 10px !important;
}

#student-profile .profile-title {
  gap: 10px !important;
}

#student-profile .profile-avatar {
  width: 48px !important;
  height: 48px !important;
  font-size: 21px !important;
  border-width: 2px !important;
}

#student-profile .profile-title h2 {
  font-size: 22px !important;
  margin: 0 0 3px !important;
}

#student-profile .profile-title .eyebrow {
  font-size: 9px !important;
}

#student-profile .status-badge {
  padding: 3px 8px !important;
  font-size: 10px !important;
}

/* Tarjetas 2 x 2 compactas */
#student-profile .profile-sections {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
}

#student-profile .profile-card {
  padding: 12px 14px !important;
  min-height: 0 !important;
  border-radius: 9px !important;
}

#student-profile .profile-card h3 {
  font-size: 12px !important;
  margin: 0 0 9px !important;
  padding-bottom: 6px !important;
}

#student-profile .profile-card p {
  margin: 4px 0 !important;
  line-height: 1.25 !important;
}

#student-profile .profile-card p strong,
#student-profile .field-label {
  font-size: 9px !important;
  margin-bottom: 2px !important;
}

#student-profile .profile-card p:not(.field-label) {
  font-size: 12px !important;
}

#student-profile .family-groups {
  gap: 4px !important;
}

#student-profile .family-saved {
  padding: 6px 8px !important;
  font-size: 11px !important;
}

#student-profile .profile-card .secondary {
  font-size: 10px !important;
  padding: 4px 8px !important;
}

#student-profile .location-card {
  padding: 7px 9px !important;
  min-height: 0 !important;
  font-size: 11px !important;
}

#student-profile .compact-list li {
  padding: 6px 8px !important;
  margin-bottom: 4px !important;
  font-size: 11px !important;
}

/* Formularios permanecen pequeños cuando se abren */
#student-profile .inline-edit {
  gap: 5px !important;
  margin-top: 7px !important;
  padding: 8px !important;
}

#student-profile .inline-edit input,
#student-profile .location-form input,
#student-profile .location-form select {
  padding: 6px 8px !important;
  font-size: 11px !important;
}

/* Pie compacto */
#student-profile .profile-footer {
  margin-top: 9px !important;
  padding: 8px 2px 0 !important;
}

#student-profile .profile-footer p {
  margin: 0 !important;
  font-size: 11px !important;
}

#student-profile .profile-footer span {
  font-size: 10px !important;
}

#student-profile .profile-footer .danger {
  padding: 6px 10px !important;
  font-size: 10px !important;
}

/* Mantener legible en pantallas más pequeñas */
@media (max-width: 760px) {
  #student-profile .profile-sections {
    grid-template-columns: 1fr !important;
  }
}

/* Perfil estudiante — cada tarjeta usa solo la altura que necesita */
#student-profile .profile-sections {
  align-items: start !important;
}

#student-profile .profile-card {
  align-self: start !important;
  height: auto !important;
}

/* Identidad especialmente compacta */
#student-profile .profile-card:first-child {
  min-height: 0 !important;
  padding-bottom: 10px !important;
}

/* Perfil estudiante — dos columnas independientes */
#student-profile .profile-sections {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 9px !important;
  align-items: start !important;
}

#student-profile .profile-column {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
}

#student-profile .profile-column .profile-card {
  width: 100%;
  margin: 0 !important;
}

@media (max-width: 760px) {
  #student-profile .profile-sections {
    grid-template-columns: 1fr !important;
  }
}

/* =========================================================
   FAMILIAS — DIRECTORIO CENTRAL
   ========================================================= */

.families-screen {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px;
}

.families-heading {
  margin-bottom: 18px;
}

.families-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.families-title-row h2 {
  margin: 0;
  font-size: 26px;
  color: #102a43;
}

.families-total {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf2ff;
  color: #2868bd;
  font-size: 11px;
  font-weight: 800;
}

.families-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  margin-bottom: 16px;
}

.families-search-wrap {
  position: relative;
}

.families-search-wrap input {
  height: 42px;
  padding-right: 42px;
  background: #fff;
}

.families-search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b7c8f;
  font-size: 18px;
}

.families-add-button {
  min-width: 150px;
  height: 42px;
  background: #1769e8;
}

.family-create-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: end;
  margin-bottom: 16px;
  padding: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8ef;
  border-radius: 10px;
}

.family-create-form[hidden] {
  display: none !important;
}

.family-create-actions {
  display: flex;
  gap: 7px;
}

.families-directory {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e1e8ef;
  border-radius: 10px;
}

.families-head,
.family-row {
  display: grid;
  grid-template-columns:
    minmax(170px, 1.45fr)
    minmax(150px, 1.35fr)
    90px
    85px
    105px
    28px;
  gap: 12px;
  align-items: center;
}

.families-head {
  padding: 11px 16px;
  background: #fbfcfd;
  color: #63758a;
  font-size: 10px;
  font-weight: 800;
  border-bottom: 1px solid #e8edf2;
}

.families-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.family-row {
  min-height: 62px;
  padding: 8px 16px;
  border-bottom: 1px solid #edf1f5;
  color: #243b53;
  font-size: 12px;
}

.family-row:last-child {
  border-bottom: 0;
}

.family-person {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.family-person strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #102a43;
  font-size: 12px;
}

.family-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf2ff;
  color: #2868bd;
  font-weight: 800;
}

.family-contact {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.family-students {
  text-align: center;
}

.family-state {
  justify-self: start;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.family-state.active {
  background: #dff5e8;
  color: #20864d;
}

.family-state.inactive {
  background: #fff0d2;
  color: #b87908;
}

.family-attach {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #9bbded;
  background: #fff;
  color: #1769e8;
  font-size: 11px;
}

.family-open {
  padding: 3px;
  background: transparent;
  color: #526579;
  font-size: 22px;
}

.families-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 54px;
  padding: 10px 16px;
  border-top: 1px solid #edf1f5;
  color: #718096;
  font-size: 11px;
}

.families-pages {
  position: absolute;
  right: 14px;
  display: flex;
  gap: 7px;
}

.families-pages button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid #d9e2ec;
  background: #fff;
  color: #63758a;
}

@media (max-width: 850px) {
  .families-directory {
    overflow-x: auto;
  }

  .families-head,
  .family-row {
    min-width: 760px;
  }
}

@media (max-width: 650px) {
  .families-toolbar,
  .family-create-form {
    grid-template-columns: 1fr;
  }

  .families-add-button {
    width: 100%;
  }
}

/* Familias — versión compacta para que todo quepa en pantalla */
.families-screen {
  max-width: 860px !important;
  padding: 16px !important;
}

.families-title-row h2 {
  font-size: 22px !important;
}

.families-toolbar {
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.families-search-wrap input,
.families-add-button {
  height: 36px !important;
  font-size: 11px !important;
}

.families-head,
.family-row {
  grid-template-columns:
    minmax(145px, 1.35fr)
    minmax(135px, 1.25fr)
    70px
    70px
    88px
    22px !important;
  gap: 7px !important;
}

.families-head {
  padding: 8px 11px !important;
  font-size: 9px !important;
}

.family-row {
  min-height: 50px !important;
  padding: 6px 11px !important;
  font-size: 11px !important;
}

.family-avatar {
  width: 28px !important;
  height: 28px !important;
  flex-basis: 28px !important;
  font-size: 10px !important;
}

.family-person {
  gap: 7px !important;
}

.family-person strong {
  font-size: 11px !important;
}

.family-contact {
  font-size: 10px !important;
}

.family-state {
  padding: 3px 7px !important;
  font-size: 9px !important;
}

.family-attach {
  height: 28px !important;
  padding: 0 7px !important;
  font-size: 10px !important;
}

.family-open {
  font-size: 18px !important;
}

.families-footer {
  min-height: 42px !important;
  padding: 7px 11px !important;
  font-size: 10px !important;
}

/* En Mac de escritorio, evitar scroll horizontal */
@media (min-width: 851px) {
  .families-directory {
    overflow-x: hidden !important;
  }

  .families-head,
  .family-row {
    min-width: 0 !important;
  }
}

/* Papelera únicamente para solicitudes rechazadas */
.parent-application-card {
  position: relative;
}

.parent-application-trash {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  opacity: .72;
}

.parent-application-trash:hover,
.parent-application-trash:focus {
  background: #fdecec;
  opacity: 1;
  outline: none;
}

/* Estudiantes — versión compacta para una sola pantalla */
.students-reference {
  padding: 0 0 8px !important;
}

.students-reference .students-head-ref {
  margin-bottom: 10px !important;
}

.students-reference h2 {
  font-size: 24px !important;
}

.students-reference p {
  margin: 2px 0 !important;
  font-size: 12px !important;
}

.students-date {
  padding: 7px 12px !important;
  font-size: 11px !important;
  border-radius: 8px !important;
}

.students-summary {
  gap: 10px !important;
  margin-bottom: 10px !important;
}

.student-summary-card {
  min-height: 78px !important;
  padding: 11px 13px !important;
  border-radius: 9px !important;
}

.student-summary-card small {
  font-size: 9px !important;
}

.student-summary-card strong {
  font-size: 23px !important;
  margin: 4px 0 0 !important;
}

.student-summary-card span {
  font-size: 10px !important;
}

.student-toolbar-ref {
  gap: 9px !important;
  padding: 10px !important;
  border-radius: 9px 9px 0 0 !important;
}

.student-toolbar-ref input {
  height: 34px !important;
  padding: 7px 10px !important;
  font-size: 11px !important;
}

.student-add-ref {
  height: 34px !important;
  padding: 0 15px !important;
  font-size: 11px !important;
  border-radius: 7px !important;
}

.student-directory-ref {
  border-radius: 0 0 9px 9px !important;
}

.student-table-ref {
  font-size: 11px !important;
}

.student-table-ref th {
  padding: 8px 8px !important;
  font-size: 9px !important;
}

.student-table-ref td {
  padding: 7px 8px !important;
}

.student-avatar-ref {
  width: 28px !important;
  height: 28px !important;
}

.student-service-ref,
.student-state-ref {
  padding: 3px 6px !important;
  font-size: 9px !important;
}

.student-pagination-ref {
  padding: 7px 12px !important;
  font-size: 10px !important;
}

.student-pages-ref button {
  padding: 4px 8px !important;
  font-size: 10px !important;
}

.students-info-ref {
  margin-top: 8px !important;
  padding: 8px 11px !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
}

/* Admin — usuario y cerrar sesión siempre alineados a la derecha */
.topbar {
  width: 100%;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
}

.topbar > div:first-child {
  display: none !important;
}

.user-chip {
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Admin — aprovechar mejor el espacio superior */
.content {
  padding-top: 18px !important;
}

.topbar {
  margin-bottom: 10px !important;
}


/* Familias — sin columna de flecha */
.families-head,
.family-row {
  grid-template-columns:
    minmax(145px, 1.4fr)
    minmax(145px, 1.25fr)
    72px
    72px
    92px !important;
}

/* Familias — panel Adjuntar */
.family-attach-panel {
  margin-top: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(16,42,67,.06);
}

.family-attach-panel[hidden] {
  display: none !important;
}

.family-attach-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.family-attach-heading h3 {
  margin: 2px 0 0;
  color: #102a43;
  font-size: 17px;
}

.family-document-form {
  display: grid;
  gap: 11px;
}

.family-document-form label {
  display: block;
}

.family-document-form textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  box-sizing: border-box;
  border: 1px solid #d5dee7;
  border-radius: 8px;
  padding: 10px 11px;
  font: inherit;
}

.family-document-actions {
  display: flex;
  justify-content: flex-end;
}

.family-document-actions .primary {
  min-width: 150px;
}

.family-document-row-actions {
  display: flex;
  gap: 5px;
  align-items: center;
}

.family-review-document {
  height: 28px;
  padding: 0 7px;
  border: 1px solid #b8c7d8;
  background: #fff;
  color: #102a43;
  font-size: 9px;
  border-radius: 6px;
}

/* Familias — organización final del directorio */
.families-screen {
  width: 100% !important;
  max-width: 900px !important;
}

/* Las familias se crean automáticamente al aprobar solicitudes */
.families-add-button,
.family-create-form {
  display: none !important;
}

.families-toolbar {
  display: block !important;
}

.families-search-wrap {
  width: 100% !important;
}

/* Dar espacio suficiente a Adjuntar + Revisar */
.families-head,
.family-row {
  grid-template-columns:
    minmax(145px, 1.35fr)
    minmax(150px, 1.25fr)
    72px
    70px
    165px !important;
  gap: 8px !important;
}

.family-document-row-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.family-attach,
.family-review-document {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.family-attach {
  padding: 0 8px !important;
}

.family-review-document {
  padding: 0 8px !important;
}

/* Familias — panel de revisión de documento */
.family-review-panel {
  margin-top: 14px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #dfe6ee;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(16,42,67,.06);
}

.family-review-panel[hidden] {
  display: none !important;
}

.family-review-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.family-review-panel-head h3 {
  margin: 2px 0 0;
  color: #102a43;
  font-size: 16px;
}

.family-review-panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.family-review-panel-actions button {
  min-width: 130px;
}

/* Escuelas registradas */
.schools-screen {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 18px;
}

.schools-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.schools-heading h2 {
  margin: 0;
  color: #102a43;
  font-size: 22px;
}

.schools-heading p {
  margin: 3px 0 0;
  color: #738294;
  font-size: 11px;
}

.schools-directory {
  background: #fff;
  border: 1px solid #e4ebf2;
  border-radius: 10px;
  overflow: hidden;
}

.schools-head,
.school-row {
  display: grid;
  grid-template-columns:
    minmax(180px, 1.35fr)
    80px
    minmax(250px, 1.8fr)
    90px;
  gap: 10px;
  align-items: center;
}

.schools-head {
  padding: 10px 14px;
  background: #f8fafc;
  color: #718096;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.school-row {
  min-height: 54px;
  padding: 9px 14px;
  border-top: 1px solid #edf1f5;
  font-size: 11px;
}

.school-row strong {
  color: #102a43;
}

.school-addresses {
  color: #64748b;
  font-size: 10px;
}

.school-state {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #dff5e8;
  color: #20864d;
  font-size: 9px;
  font-weight: 700;
}

/* Rutas — ocultar contenido ficticio mientras conectamos datos reales */
.routes-reference .routes-lower,
.routes-reference .routes-quick {
  display: none !important;
}

/* Rutas — mostrar el control real de creación */
#create-route-button {
  display: block !important;
  width: auto !important;
  margin: 12px 0 !important;
}

/* Rutas — tabla completa dentro de la pantalla */
.routes-reference {
  width: 100%;
  max-width: 100%;
}

.routes-reference .routes-summary {
  width: 100%;
  overflow-x: hidden !important;
}

.routes-reference .routes-real-list {
  width: 100%;
  min-width: 0 !important;
  table-layout: fixed;
  font-size: 11px;
}

.routes-reference .routes-real-list th,
.routes-reference .routes-real-list td {
  padding: 9px 7px;
  white-space: normal;
  overflow-wrap: anywhere;
}

.routes-reference .routes-real-list th:nth-child(1),
.routes-reference .routes-real-list td:nth-child(1) { width: 13%; }

.routes-reference .routes-real-list th:nth-child(2),
.routes-reference .routes-real-list td:nth-child(2) { width: 26%; }

.routes-reference .routes-real-list th:nth-child(3),
.routes-reference .routes-real-list td:nth-child(3) { width: 16%; }

.routes-reference .routes-real-list th:nth-child(4),
.routes-reference .routes-real-list td:nth-child(4) { width: 16%; }

.routes-reference .routes-real-list th:nth-child(5),
.routes-reference .routes-real-list td:nth-child(5) { width: 14%; }

.routes-reference .routes-real-list th:nth-child(6),
.routes-reference .routes-real-list td:nth-child(6) { width: 15%; }

.create-vehicle-inline {
  margin-top: 7px;
}

.create-vehicle-inline > button {
  width: 100%;
}

.create-vehicle-editor {
  display: flex;
  gap: 7px;
  align-items: center;
}

.create-vehicle-editor[hidden] {
  display: none !important;
}

.create-vehicle-editor input {
  flex: 1;
  min-width: 0;
}
