:root{--navy:#102947;--blue:#1760c9;--ink:#172b43;--muted:#64748b;--line:#e1e7ef}body.bp-pro{background:#f4f6fa;color:var(--ink);font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;font-size:14px}.bp-pro .office{max-width:1440px!important;margin:0 0 0 244px!important;padding:38px 34px!important;width:auto!important}.bp-pro .office h1{font-size:30px;letter-spacing:-1px;margin:12px 0 22px}.bp-pro .office h2{font-size:18px;letter-spacing:-.35px}.bp-pro .office .card{background:white;border:1px solid var(--line);border-radius:15px;padding:22px;box-shadow:0 3px 10px #10294708;margin:16px 0}.bp-pro .office input,.bp-pro .office select,.bp-pro .office textarea{border:1px solid #d5deea;border-radius:9px;background:#fff;padding:12px;color:var(--ink);max-width:100%}.bp-pro .office button,.bp-pro .office .button{border-radius:9px;background:var(--navy);color:white;padding:11px 16px;font-weight:650;border:0;cursor:pointer}.bp-pro .office .secondary{background:#eaf0f7;color:var(--navy)}.bp-pro .office label{font-weight:550}.bp-pro .office summary{cursor:pointer;font-weight:650;padding:10px 0}.bp-side{position:fixed;inset:0 auto 0 0;width:244px;background:var(--navy);color:white;padding:28px 16px;z-index:100;overflow:auto}.bp-side strong{font-size:24px;letter-spacing:-1px;display:block;padding:0 12px}.bp-side small{display:block;color:#9fb5d0;padding:5px 12px 25px;letter-spacing:1px;font-size:10px}.bp-side a{display:flex;gap:12px;align-items:center;color:#d7e4f4;text-decoration:none;padding:13px 12px;border-radius:9px;margin:3px 0;font-weight:550}.bp-side a:hover,.bp-side a.active{background:#294c73;color:white}.bp-side svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7}.bp-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:20px 0}.bp-kpi{padding:20px;border-radius:13px;background:#102947;color:white;min-height:100px}.bp-kpi:nth-child(2){background:#1760c9}.bp-kpi:nth-child(3){background:#087f71}.bp-kpi:nth-child(4){background:#475569}.bp-kpi b{display:block;font-size:32px;line-height:1.2}.bp-kpi span{font-size:13px}.bp-table{overflow:auto;background:white;border:1px solid var(--line);border-radius:14px}.bp-table table{border-collapse:collapse;width:100%;min-width:650px;text-align:left}.bp-table th,.bp-table td{padding:15px;border-bottom:1px solid var(--line);vertical-align:top}.bp-table th{background:#f8fafc;color:var(--muted);font-size:12px}.bp-table tr:last-child td{border:0}.bp-pro .office .bp-admin-links{display:none}.bp-pro .office a{color:#1756a5}.bp-pro .office a.button{color:white}.bp-mobile{display:none}@media(max-width:800px){.bp-side{position:static;width:100%;padding:12px;display:flex;gap:5px;overflow:auto;align-items:center}.bp-side strong{font-size:18px;white-space:nowrap}.bp-side small{display:none}.bp-side a{white-space:nowrap;font-size:12px;padding:9px}.bp-pro .office{margin:0!important;padding:20px 14px!important}.bp-kpis{grid-template-columns:repeat(2,1fr)}.bp-kpi{padding:14px}.bp-pro .office .card{padding:15px}}

.bp-pro,.bp-pro *{box-sizing:border-box}.bp-pro #root{width:auto;max-width:none;margin:0;padding:0;min-width:0}.bp-pro #root>header,.bp-pro #root>.topBand,.bp-pro #root>footer,.bp-pro #root>.mobileDock,.bp-pro #root>.corridorBand,.bp-pro #root+script+div{display:none!important}.bp-pro .office{width:calc(100% - 244px)!important;max-width:1440px!important;min-width:0!important;margin-left:244px!important;overflow-wrap:anywhere}.bp-pro .office h1{font-family:inherit;font-weight:750;letter-spacing:-.7px}.bp-pro .office .card,.bp-pro .office form,.bp-pro .office section{min-width:0;max-width:100%}.bp-pro .office .grid>*{min-width:0}.bp-pro .office img{max-width:100%;height:auto}.bp-pro .office .actions,.bp-pro .office .toolbar{flex-wrap:wrap}.bp-brand{background:white;border-radius:12px;padding:9px;margin:0 8px 16px;text-align:center}.bp-brand img{display:block;width:100%;height:82px;object-fit:contain}.bp-side{width:244px!important}.bp-pro .office button.bp-danger{background:#b42318}.bp-pro .office .bp-warning{border-left:4px solid #b42318}@media(max-width:800px){.bp-side{width:100%!important;position:static;display:flex;flex-wrap:wrap;overflow:visible}.bp-brand{width:72px;margin:0;padding:4px}.bp-brand img{height:40px}.bp-pro .office{width:100%!important;margin:0!important;padding:18px 14px!important}.bp-pro .office .grid{grid-template-columns:minmax(0,1fr)!important}}
/* Identidad y adaptación móvil */
:root{--navy:#071d5c;--blue:#005dd0;--bp-gradient:linear-gradient(115deg,#163ca6,#005dd0);--bp-red:#d52235}body.bp-pro,body.bp-driver,body.bp-login{margin:0;background:#f4f6fa;font-family:system-ui,-apple-system,Segoe UI,sans-serif;color:#172b43}.bp-pro .office button:not(.secondary),.bp-driver .office button:not(.secondary),.bp-login .office button:not(.secondary),.bp-pro .office a.button{background:var(--bp-gradient)!important;color:white;border:0;border-radius:10px;padding:12px 16px}.bp-pro .office button.bp-danger{background:linear-gradient(110deg,#a9182b,#d52235)!important}.bp-driver .office,.bp-login .office{width:min(94%,850px);margin:0 auto;padding:24px 0;box-sizing:border-box}.bp-driver .office h1,.bp-login .office h1{font-family:inherit;font-size:clamp(24px,4vw,34px);font-weight:750;letter-spacing:-.6px}.bp-driver .office .card,.bp-login .office .card{border:1px solid #dce4ef;border-radius:16px;padding:20px;background:white;box-shadow:0 4px 18px #071d5c0b}.bp-driver .office input,.bp-driver .office select,.bp-login .office input{width:100%;min-width:0;border:1px solid #cbd5e1;border-radius:9px;padding:12px;box-sizing:border-box}.bp-portal-brand{display:flex;align-items:center;gap:16px;background:var(--navy);color:white;padding:16px 20px;border-bottom:4px solid var(--bp-red)}.bp-portal-brand img{width:105px;height:65px;object-fit:contain;background:white;border-radius:8px}.bp-portal-brand strong{display:block;font-size:18px}.bp-portal-brand small{color:#dce8ff}.bp-new-guide{display:inline-flex;align-items:center;justify-content:center;background:var(--bp-gradient)!important;color:white!important;border-radius:10px;padding:13px 18px;text-decoration:none;font-weight:700;margin:10px 0}.bp-guide-note{padding:12px;border:1px solid #dce4ef;border-radius:10px;background:white}.bp-pro .office .grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bp-pro .office .grid input,.bp-pro .office .grid textarea,.bp-pro .office .grid select{min-width:0;width:100%}.bp-pro .office .grid input[type=checkbox]{width:auto}.bp-pro .office .grid h2,.bp-pro .office .grid h3{grid-column:1/-1}.bp-pro .office .toolbar{display:flex;flex-wrap:wrap;gap:12px}.bp-pro .office .toolbar>*{min-width:0}.bp-pro .office .grid label{overflow-wrap:anywhere}.bp-pro .office .grid{scroll-margin-top:18px}.bp-driver .parcel[hidden]{display:none!important}@media(max-width:800px){.bp-pro .office .grid,.bp-driver .office .grid,.bp-login .office .grid{grid-template-columns:minmax(0,1fr)!important}.bp-pro .office .bp-new-guide{display:flex;width:100%}.bp-pro .office button,.bp-driver .office button{min-height:44px;white-space:normal}.bp-side{gap:4px}.bp-side a{flex:1 1 125px;white-space:normal}.bp-driver .office .card{padding:16px}.bp-pro .office{max-width:100%!important}.bp-pro .office .actions{display:flex;flex-wrap:wrap}.bp-pro .office .grid label{min-width:0}}
/* Unified layout: reserve sidebar space on body, not on nested main. */
body.bp-pro{padding-left:224px!important;min-width:0!important;width:100%!important;overflow-x:clip}.bp-pro #root{display:block!important;width:100%!important;min-width:0!important;max-width:none!important}.bp-pro #root header,.bp-pro #root footer,.bp-pro #root .topBand,.bp-pro #root .mobileDock,.bp-pro #root .corridorBand,.bp-pro #root .floatWhats,.bp-pro #root~div{display:none!important}.bp-pro main.office{margin:0 auto!important;width:100%!important;max-width:1320px!important;padding:28px clamp(14px,3vw,36px)!important;min-width:0!important}.bp-side{width:224px!important;padding:18px 12px!important;background:linear-gradient(165deg,#071d5c,#102947)!important}.bp-brand{display:flex;align-items:center;gap:10px;background:none!important;padding:0!important;margin:0 0 22px!important;text-align:left}.bp-brand img{width:54px!important;height:54px!important;object-fit:cover;border-radius:9px}.bp-brand strong{font-size:17px;padding:0;letter-spacing:0}.bp-brand small{font-size:9px;padding:4px 0 0;letter-spacing:.4px}.bp-side a{padding:11px 10px;font-size:14px}.bp-toggle{display:none}.bp-portal-brand{padding:14px 20px;gap:12px}.bp-portal-brand img{width:58px;height:58px;object-fit:cover;background:none;border-radius:9px}.bp-pro .office h1,.bp-driver .office h1,.bp-login .office h1{font-family:system-ui,sans-serif!important;font-size:clamp(23px,3vw,32px);font-weight:750}.bp-pro .office .toolbar,.bp-pro .office .actions{flex-wrap:wrap;min-width:0}.bp-pro .office select{width:100%;max-width:100%}.bp-pro .office .card{overflow-wrap:anywhere}.bp-pro .office .bp-new-guide{max-width:100%}.bp-pro .office .bp-guide-note{font-size:13px}.bp-pro .office .bp-danger{background:linear-gradient(110deg,#a9182b,#d52235)!important}@media(max-width:800px){body.bp-pro{padding-left:0!important}.bp-side{position:sticky!important;top:0;width:100%!important;display:flex!important;align-items:center;flex-wrap:wrap;padding:10px 14px!important;gap:8px;z-index:100}.bp-brand{margin:0!important;flex:1}.bp-brand img{width:42px!important;height:42px!important}.bp-brand small{display:block}.bp-toggle{display:block;background:#244580;color:white;border:0;border-radius:8px;padding:10px 14px}.bp-side a{display:none;flex:1 1 100%;margin:0}.bp-side.open a{display:flex}.bp-pro main.office{padding:18px 14px!important}.bp-pro .office .grid{grid-template-columns:minmax(0,1fr)!important}.bp-pro .office .toolbar>*{max-width:100%}.bp-pro .office .bp-new-guide{width:100%}}

/* Degradado del encabezado del portal */
.bp-portal-brand{background:linear-gradient(110deg,#071d5c 0%,#123fa5 52%,#005dd0 100%) !important;}
