:root{--nav:#102f50;--nav2:#174d72;--bg:#f3f6fa;--card:#fff;--text:#172033;--muted:#66758a;--line:#dce4ed;--accent:#167c80;--ok:#16835f;--warn:#b7791f;--danger:#b42318;--shadow:0 10px 30px rgba(23,48,79,.08)}*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;background:var(--bg);color:var(--text)}a{text-decoration:none;color:inherit}.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(320px,46%) 1fr}.login-brand{padding:64px;background:linear-gradient(145deg,var(--nav),var(--nav2));color:#fff;display:flex;flex-direction:column;justify-content:space-between}.login-brand h1{font-size:clamp(34px,5vw,62px);margin:12px 0;line-height:1}.login-brand p{max-width:540px;color:#d6e5f1;line-height:1.7}.login-main{display:grid;place-items:center;padding:32px}.login-card{width:min(430px,100%);background:#fff;padding:34px;border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}label{display:block;font-size:13px;font-weight:700;margin:16px 0 7px}input,select,textarea{width:100%;padding:12px 13px;border:1px solid #cbd6e2;border-radius:10px;background:#fff;font:inherit}textarea{min-height:110px;resize:vertical}input:focus,select:focus,textarea:focus{outline:3px solid rgba(22,124,128,.13);border-color:var(--accent)}button,.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:10px;padding:12px 17px;font-weight:750;cursor:pointer}.btn-primary{background:var(--accent);color:#fff}.btn-soft{background:#eaf1f7;color:var(--nav)}.w-full{width:100%}.shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{background:var(--nav);color:#fff;padding:22px 16px;position:sticky;top:0;height:100vh}.brand{padding:10px 12px 24px;font-size:19px;font-weight:850}.brand small{display:block;color:#9fc1d7;font-size:11px;letter-spacing:.14em;margin-bottom:5px}.menu a{display:flex;padding:11px 12px;margin:4px 0;border-radius:9px;color:#d9e7f0;font-size:14px;font-weight:650}.menu a:hover,.menu a.active{background:rgba(255,255,255,.12);color:#fff}.content{min-width:0}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:5}.user-chip{display:flex;align-items:center;gap:11px}.avatar{width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:#dceef0;color:var(--accent);font-weight:850}.page{padding:28px}.page-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:22px}.page-head h1{margin:0 0 6px;font-size:28px;color:var(--nav)}.muted{color:var(--muted)}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.card{background:var(--card);border:1px solid var(--line);border-radius:16px;padding:20px;box-shadow:var(--shadow)}.metric{font-size:31px;font-weight:850;margin-top:8px;color:var(--nav)}.grid-2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;margin-top:18px}.table-wrap{overflow:auto}.table{width:100%;border-collapse:collapse}.table th,.table td{padding:13px 10px;border-bottom:1px solid #e7edf3;text-align:left;font-size:14px}.table th{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#e8f5f1;color:var(--ok);font-size:12px;font-weight:750}.empty{padding:30px;text-align:center;color:var(--muted)}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.span-2{grid-column:1/-1}.alert{padding:13px 15px;border-radius:10px;margin-bottom:16px;font-size:14px}.alert-success{background:#e8f6f0;color:#126b4d}.alert-error{background:#feeceb;color:#912018}.alert-warning{background:#fff4df;color:#875b10}@media(max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}.grid-2{grid-template-columns:1fr}}@media(max-width:760px){.login-page{grid-template-columns:1fr}.login-brand{display:none}.shell{grid-template-columns:1fr}.sidebar{height:auto;position:static}.menu{display:flex;overflow:auto}.menu a{white-space:nowrap}.topbar{padding:0 16px}.page{padding:18px}.cards,.form-grid{grid-template-columns:1fr}.span-2{grid-column:auto}.page-head{flex-direction:column}}
.brand span{font-size:10px;background:rgba(255,255,255,.14);padding:3px 6px;border-radius:8px;margin-left:5px}.tiny{font-size:12px}.mt-20{margin-top:20px}.mt-12{margin-top:12px}.link{color:#116b75}.link:hover{text-decoration:underline}.badge,.badge-ok,.badge-danger,.badge-info,.badge-warn{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:750}.badge{background:#edf1f5;color:#42566d}.badge-ok{background:#e8f6f0;color:#126b4d}.badge-danger{background:#feeceb;color:#912018}.badge-info{background:#e8f2fb;color:#155b8a}.badge-warn{background:#fff4df;color:#875b10}.big-badge{padding:9px 14px;font-size:14px}.filters{display:grid;grid-template-columns:1fr 240px auto;gap:10px;margin-bottom:16px;padding:14px}.tabs{display:flex;background:#e4ebf2;border-radius:10px;padding:4px}.tabs a{padding:9px 13px;border-radius:8px;font-weight:700;font-size:13px}.tabs a.active{background:#fff;box-shadow:0 2px 7px rgba(0,0,0,.08)}hr{border:0;border-top:1px solid var(--line);margin:22px 0}.actions{display:flex;justify-content:flex-end;align-items:end;gap:10px;margin-top:18px}.workflow{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin:18px 0}.workflow span{background:#eef4f7;padding:8px 10px;border-radius:9px;font-size:13px}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}dl{display:grid;grid-template-columns:130px 1fr;gap:10px 16px;margin:0}dt{color:var(--muted);font-size:13px}dd{margin:0;font-weight:600}.short{min-height:75px}.timeline{display:grid;gap:14px}.timeline>div{border-left:3px solid #cfe0e8;padding-left:13px}.timeline small{display:block;color:var(--muted);margin-top:3px}.timeline p{margin:7px 0 0}.admin-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.inline-form{display:flex;gap:8px}.simple-list{list-style:none;padding:0;margin:18px 0 0;max-height:340px;overflow:auto}.simple-list li{padding:10px 0;border-bottom:1px solid var(--line);font-weight:650}.simple-list small{display:block;color:var(--muted);font-weight:400;margin-top:3px}.btn-sm{padding:7px 10px;font-size:12px}@media(max-width:1000px){.admin-grid{grid-template-columns:1fr}.detail-grid{grid-template-columns:1fr}}@media(max-width:760px){.filters{grid-template-columns:1fr}.tabs{width:100%}.page-head .tabs{align-self:stretch}.detail-grid{grid-template-columns:1fr}dl{grid-template-columns:1fr;gap:3px}dd{margin-bottom:10px}}

.bitrix-button{display:flex;align-items:center;justify-content:center;margin-top:24px;font-size:16px;min-height:50px;text-decoration:none}.login-divider{display:flex;align-items:center;gap:12px;margin:22px 0;color:var(--muted);font-size:12px}.login-divider:before,.login-divider:after{content:'';height:1px;background:var(--line);flex:1}.login-card details{border:1px solid var(--line);border-radius:12px;padding:12px 14px}.login-card summary{cursor:pointer;font-weight:700}.login-card details form{margin-top:14px}


/* v0.6: selector de documento/caja y administración de usuarios */
.shipping-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:8px}
.shipping-type-card{display:flex;align-items:flex-start;gap:12px;padding:16px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;margin:0}
.shipping-type-card:has(input:checked){border-color:var(--primary);box-shadow:0 0 0 3px rgba(15,135,137,.12)}
.shipping-type-card input{width:auto;margin-top:4px}
.shipping-type-card strong,.shipping-type-card small{display:block}
.shipping-type-card small{color:var(--muted);font-weight:400;margin-top:5px;line-height:1.4}
.info-box{padding:14px 16px;border-radius:12px;background:#eef8f8;border:1px solid #cfe8e8;color:#174f51}
.package-fields{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.package-fields[hidden],.info-box[hidden]{display:none!important}
.block{display:block;margin-top:4px;color:var(--muted)}
.user-role-form{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.user-role-form select{min-width:160px;width:auto}
.check-inline{display:flex;align-items:center;gap:6px;margin:0;white-space:nowrap}
.check-inline input{width:auto}
.mt-20{margin-top:20px}
@media(max-width:800px){.shipping-type-grid,.package-fields{grid-template-columns:1fr}.user-role-form{align-items:stretch}.user-role-form select{width:100%}}

/* v0.7: operación, archivos y evidencias */
.wizard-form h3{color:var(--nav);margin-top:4px}
.file-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.file-list li{border:1px solid var(--line);border-radius:10px;padding:12px;background:#f9fbfd}
.file-list small,.file-list span{display:block;color:var(--muted);margin-top:4px;font-size:12px}
.mt-20{margin-top:20px}

/* v0.8: interfaz compacta y administración refinada */
:root{--shadow:0 4px 16px rgba(23,48,79,.06)}
.shell{grid-template-columns:226px 1fr}
.sidebar{padding:18px 12px}
.brand{padding:8px 10px 18px;font-size:18px}
.menu a{padding:9px 10px;margin:2px 0;border-radius:8px;font-size:13.5px}
.topbar{height:62px;padding:0 24px}
.avatar{width:34px;height:34px}
.page{padding:24px}
.page-head{margin-bottom:17px;align-items:center}
.page-head h1{font-size:26px;margin-bottom:3px}
.card{border-radius:13px;padding:16px;box-shadow:var(--shadow)}
.compact-card{padding:0;overflow:hidden}
label{margin:12px 0 5px;font-size:12.5px}
input,select,textarea{min-height:42px;padding:9px 11px;border-radius:8px}
textarea{min-height:92px}
button,.btn{padding:9px 14px;border-radius:8px;font-size:13px}
.cards{gap:12px}.metric{font-size:27px}.grid-2,.detail-grid,.admin-grid{gap:14px;margin-top:14px}
.table th,.table td{padding:10px 9px}
.tabs{gap:2px;border-radius:9px}.tabs a{padding:8px 12px}
.form-grid{gap:0 14px}
hr{margin:17px 0}
.shipping-type-grid{gap:10px}.shipping-type-card{padding:12px;border-radius:11px}
.info-box{padding:11px 13px;border-radius:9px}
.package-fields{gap:10px}
.section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:17px 18px 13px;border-bottom:1px solid var(--line)}
.section-head h3{margin:0 0 4px}.section-head p{margin:0;font-size:13px}
.count-pill,.origin-pill{display:inline-flex;align-items:center;border-radius:999px;background:#eef3f7;color:#466078;padding:5px 9px;font-size:11px;font-weight:750;white-space:nowrap}
.user-list{display:grid}
.user-row{display:grid;grid-template-columns:minmax(270px,1.45fr) minmax(190px,1fr) 100px minmax(350px,1.4fr);align-items:center;gap:14px;padding:12px 18px;border-bottom:1px solid #e9eef3}
.user-row:last-child{border-bottom:0}.user-row:hover{background:#fbfcfe}
.user-identity{display:flex;align-items:center;gap:10px;min-width:0}.user-identity>div:last-child{min-width:0}
.user-identity strong,.user-org strong{display:block;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.user-identity small,.user-org small,.user-origin small{display:block;color:var(--muted);font-size:11.5px;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mini-avatar{width:34px;height:34px;flex:0 0 34px;border-radius:10px;display:grid;place-items:center;background:#e2f0f1;color:var(--accent);font-weight:850}
.user-origin{display:grid;justify-items:start;gap:3px}
.user-actions{display:grid;grid-template-columns:minmax(145px,1fr) auto auto;align-items:center;gap:8px}
.user-actions select{margin:0;min-height:38px;padding:7px 10px}
.switch-line{display:flex;align-items:center;gap:6px;margin:0;font-size:12px;white-space:nowrap}.switch-line input{width:16px;min-height:16px;height:16px}
.admin-grid .card h3{margin-top:0}
.simple-list{margin-top:13px}.simple-list li{padding:8px 0;font-size:13px}
.actions{margin-top:14px}
@media(max-width:1180px){.user-row{grid-template-columns:1.25fr 1fr 90px}.user-actions{grid-column:1/-1;grid-template-columns:1fr auto auto;padding-left:44px}}
@media(max-width:760px){.shell{grid-template-columns:1fr}.page{padding:16px}.user-row{grid-template-columns:1fr;padding:13px}.user-actions{grid-column:auto;padding-left:0;grid-template-columns:1fr}.user-origin{justify-items:start}.section-head{padding:14px}.count-pill{display:none}}

/* v0.9: dashboard operativo, panel de mensajeria y filtros avanzados */
.nav-icon{width:22px;height:22px;display:grid;place-items:center;border-radius:7px;background:rgba(255,255,255,.07);font-size:13px;flex:0 0 22px}.menu a{display:flex;align-items:center;gap:8px}.menu a.active .nav-icon{background:rgba(255,255,255,.18)}
.metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.metric-card{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:13px;padding:14px 15px;box-shadow:var(--shadow)}.metric-card span{display:block;color:var(--muted);font-size:12px}.metric-card strong{display:block;color:var(--nav);font-size:25px;line-height:1.15;margin-top:3px}.metric-icon{width:38px;height:38px;border-radius:11px;background:#edf6f6;position:relative;flex:0 0 38px}.metric-icon:after{position:absolute;inset:0;display:grid;place-items:center;font-size:17px;color:var(--accent);font-weight:850}.icon-calendar:after{content:'▦'}.icon-clock:after{content:'◷'}.icon-truck:after{content:'→'}.icon-check:after{content:'✓'}.icon-alert:after{content:'!'}.icon-box:after{content:'□'}.icon-pin:after{content:'⌖'}.icon-layers:after{content:'≡'}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(280px,.8fr);gap:14px}.text-link{font-size:12px;color:var(--accent);font-weight:750}.priority{display:inline-flex;align-items:center;border-radius:999px;padding:4px 8px;font-size:11px;font-weight:800}.priority-normal{background:#eef3f7;color:#4c6175}.priority-urgente{background:#fff0e8;color:#a84216}.process-list{display:grid;gap:2px;margin:14px 0}.process-list>div{display:flex;align-items:center;gap:11px;padding:10px 0;position:relative}.process-list>div:not(:last-child):after{content:'';position:absolute;left:14px;top:38px;width:2px;height:18px;background:#dce6ec}.process-list i{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#eef3f7;color:#526a7f;font-style:normal;font-size:12px;font-weight:800}.process-list .done i{background:#dff2ed;color:#14755a}.process-list strong,.process-list small{display:block}.process-list small{color:var(--muted);font-size:11px;margin-top:2px}.product-note{background:#f5f8fa;border:1px solid var(--line);border-radius:10px;padding:12px}.product-note p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.search-field{position:relative}.search-field span{position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:18px}.search-field input{padding-left:36px;width:100%}.compact-filter{grid-template-columns:1fr 220px auto}.user-filter{display:grid;grid-template-columns:minmax(280px,1fr) 190px 145px auto auto;gap:9px;align-items:center;margin-bottom:12px}.btn-ghost{background:transparent;color:var(--muted);border:1px solid transparent}.btn-ghost:hover{background:#edf2f5;color:var(--nav)}
.ops-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:12px}.ops-summary>div{display:flex;justify-content:space-between;align-items:center;background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px 14px}.ops-summary span{font-size:12px;color:var(--muted)}.ops-summary strong{font-size:21px;color:var(--nav)}.ops-summary .urgent{border-color:#f2d3c5;background:#fffaf7}.ops-summary .urgent strong{color:#b64b20}.service-list{display:grid;gap:9px}.service-card{display:grid;grid-template-columns:minmax(0,1fr) 250px auto;gap:16px;align-items:center;background:#fff;border:1px solid var(--line);border-radius:12px;padding:13px 14px;box-shadow:0 2px 8px rgba(23,48,79,.035)}.service-card:hover{border-color:#c8d8e3}.service-top{display:flex;align-items:center;gap:8px}.service-top a{font-weight:850;color:var(--accent);font-size:12px}.service-main h3{margin:5px 0 3px;font-size:15px}.service-main p{margin:0;color:var(--muted);font-size:12px}.service-meta{display:grid;grid-template-columns:auto 1fr;gap:4px 9px;align-items:center}.service-meta small{font-size:11px;color:var(--muted)}
.timeline-modern{position:relative}.timeline-modern>div{position:relative;border-left:0;padding:0 0 18px 28px}.timeline-modern>div:not(:last-child):before{content:'';position:absolute;left:7px;top:14px;bottom:-2px;width:2px;background:#dce6ec}.timeline-modern i{position:absolute;left:0;top:2px;width:16px;height:16px;border:3px solid #fff;border-radius:50%;background:#afc0cc;box-shadow:0 0 0 1px #cfdae2}.timeline-modern .current i{background:var(--accent);box-shadow:0 0 0 3px rgba(20,130,135,.13)}.timeline-modern p{background:#f7f9fb;border-radius:8px;padding:8px 10px;font-size:12px}
.drop-zone{border:1px dashed #b9cbd7;border-radius:10px;padding:12px;background:#fbfcfd;transition:.15s}.drop-zone.dragging{border-color:var(--accent);background:#eff8f8}.drop-zone.has-file{border-style:solid;border-color:#8bc6c8;background:#f2fbfa}.drop-zone input[type=file]{background:#fff}.drop-zone small,.file-name{display:block;color:var(--muted);font-size:11px;margin-top:6px}.file-name{color:var(--accent);font-weight:750}
@media(max-width:1150px){.metric-grid{grid-template-columns:repeat(2,1fr)}.dashboard-grid{grid-template-columns:1fr}.user-filter{grid-template-columns:1fr 1fr 1fr auto}.user-filter .search-field{grid-column:1/-1}.service-card{grid-template-columns:1fr auto}.service-meta{grid-column:1/-1;display:flex;flex-wrap:wrap}.ops-summary{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){.metric-grid,.ops-summary{grid-template-columns:1fr 1fr}.metric-card{padding:11px}.metric-card strong{font-size:21px}.compact-filter,.user-filter{grid-template-columns:1fr}.user-filter .search-field{grid-column:auto}.service-card{grid-template-columns:1fr}.service-card>.btn{justify-self:start}.dashboard-grid{display:block}.dashboard-grid>.card+ .card{margin-top:12px}}
.notification-list{display:grid}.notification-item{display:flex;justify-content:space-between;gap:16px;padding:12px 16px;border-top:1px solid var(--line);color:inherit;text-decoration:none}.notification-item:first-child{border-top:0}.notification-item:hover{background:#f7fafc}.notification-item.read{opacity:.65}.notification-item p{margin:3px 0;color:var(--muted)}.notification-item small{color:var(--muted)}
.workflow-summary{display:flex;align-items:center;justify-content:center;gap:18px;margin-bottom:18px}.workflow-summary>div{display:grid;text-align:center}.workflow-summary span{width:30px;height:30px;margin:auto;border-radius:50%;display:grid;place-items:center;background:#e5f5f4;color:#087f7a;font-weight:800}.workflow-summary small{color:var(--muted)}.workflow-summary i{font-style:normal;color:#99a9b8}
.flow-choice{display:grid;gap:12px}.flow-choice>div{padding:14px;border:1px solid var(--line);border-radius:12px}.flow-choice p{margin:4px 0 0;color:var(--muted)}.policy-switch{margin-top:28px}.policy-list{display:grid}.policy-row{display:grid;grid-template-columns:minmax(280px,2fr) 180px minmax(180px,1fr) auto;align-items:center;gap:18px;padding:14px 18px;border-top:1px solid var(--line)}.policy-row:first-child{border-top:0}.policy-row small{display:block;color:var(--muted);margin-top:3px}.policy-row.disabled{opacity:.55;background:#f8fafc}.notification-matrix td:not(:first-child),.notification-matrix th:not(:first-child){text-align:center}.notification-matrix input[type=checkbox]{width:18px;height:18px}.badge-warn,.badge-ok{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:12px;font-weight:700}.badge-warn{background:#fff4d6;color:#8b5e00}.badge-ok{background:#e3f6ef;color:#087858}
@media(max-width:900px){.workflow-summary{align-items:stretch;flex-direction:column}.workflow-summary i{transform:rotate(90deg);text-align:center}.policy-row{grid-template-columns:1fr}.notification-matrix{min-width:850px}}

/* v1.1 horarios y rutas */
.cutoff-note{margin:14px 0 0;padding:12px 14px;border-radius:10px;background:#fff7e8;border:1px solid #f4d79b;color:#765317;font-size:13px}
.rule-summary{display:grid;gap:7px}.rule-summary strong{margin-top:8px;color:var(--navy)}.rule-summary span{color:var(--muted)}
.switch-row{display:flex;align-items:end;padding-bottom:10px}.switch-row label{display:flex;gap:8px;align-items:center}
.holiday-list{display:grid;gap:7px;margin-top:14px}.holiday-item{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border:1px solid var(--line);border-radius:10px}.holiday-item div{display:flex;gap:16px}.holiday-item span{color:var(--muted)}
.route-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:16px}.route-date input{width:auto}.route-items{display:grid;gap:8px}.route-item{display:flex;justify-content:space-between;align-items:center;padding:12px;border:1px solid var(--line);border-radius:11px;text-decoration:none;color:inherit;background:#fff}.route-item:hover{border-color:#8dc7c8}.route-item.urgent{border-left:4px solid #dc4c4c}.route-item div{display:grid;gap:3px}.route-item span,.route-item small{color:var(--muted)}
@media(max-width:900px){.route-layout{grid-template-columns:1fr}}
.address-helper{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.address-status{font-size:12px;color:var(--muted);margin-top:6px}.address-status.ok{color:#087f5b}.address-status.error{color:#c92a2a}.frequent-destination{margin-bottom:14px}.map-link{white-space:nowrap}.destination-list{display:grid;gap:8px}.destination-row{display:grid;grid-template-columns:1.2fr 2fr auto;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}.destination-row:last-child{border-bottom:0}.destination-row small{display:block;color:var(--muted);margin-top:3px}@media(max-width:800px){.destination-row{grid-template-columns:1fr}.address-helper{grid-template-columns:1fr}}
/* v1.3 mapas, geocodificación y rutas */
.route-map-card{padding:12px;margin-bottom:16px}.route-map{height:430px;border-radius:12px;border:1px solid var(--line);overflow:hidden}.map-status{padding:10px 2px 2px;font-size:13px;color:var(--muted)}.map-status.warning{color:#9a5b00}.map-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}.sortable-route .route-item{display:grid;grid-template-columns:58px 1fr auto;align-items:center;gap:10px}.sortable-route .route-item>a{display:flex;flex-direction:column;gap:3px;color:inherit;text-decoration:none}.route-order-controls{display:grid;grid-template-columns:20px 18px 20px;align-items:center;gap:2px}.route-order-controls button{border:0;background:#eef4f7;border-radius:6px;width:20px;height:24px;cursor:pointer}.route-order-controls span{text-align:center;font-weight:700;font-size:12px}.address-map-actions{display:flex;align-items:center;gap:10px;min-height:36px}.leaflet-popup-content{font-family:inherit;line-height:1.4}@media(max-width:800px){.route-map{height:350px}.sortable-route .route-item{grid-template-columns:50px 1fr}.sortable-route .route-item>div:last-child{grid-column:2}}


/* v1.5 - captura de dirección y mapa interactivo */
.address-search-wrap{position:relative}
.address-suggestions{position:absolute;z-index:1200;left:0;right:0;top:calc(100% - 18px);max-height:290px;overflow:auto;background:#fff;border:1px solid #cbd8e6;border-radius:12px;box-shadow:0 16px 36px rgba(15,42,68,.18);padding:6px}
.address-suggestion{display:block;width:100%;text-align:left;border:0;background:#fff;padding:10px 12px;border-radius:8px;cursor:pointer;color:#0c2f53}
.address-suggestion:hover,.address-suggestion:focus{background:#eef7f7;outline:none}
.address-suggestion strong,.address-suggestion small{display:block}
.address-suggestion small{margin-top:3px;color:#65758a;font-size:12px;line-height:1.35}
.address-map{height:300px;border:1px solid #cbd8e6;border-radius:12px;overflow:hidden;background:#edf3f7}
.address-map-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px}
.address-map-footer .address-status{flex:1}
.address-status.warning{color:#9a6700}
@media(max-width:760px){.address-map{height:250px}.address-map-footer{align-items:stretch;flex-direction:column}.address-suggestions{top:calc(100% - 14px)}}

/* v1.6: panel del mensajero */
.courier-note{border-left:4px solid var(--primary);padding-left:14px}.user-actions select{min-width:205px}


/* v2.0 flujo operativo y solicitudes extraordinarias */
.priority-extraordinaria{background:#ffe2e2;color:#a20e20;border:1px solid #ffb8bf;font-weight:800}
.extraordinary-fields{display:grid;grid-template-columns:2fr 1fr;gap:14px;padding:16px;border:1px solid #ffbdc5;background:#fff6f7;border-radius:14px}
.extraordinary-fields[hidden]{display:none!important}
.extraordinary-approval,.extraordinary-response{border-left:5px solid #c71f37;background:linear-gradient(90deg,#fff5f6,#fff)}
.ops-summary .extraordinary{background:#fff0f2;color:#9d1025}
.btn-danger{background:#b91c32;color:#fff;border-color:#b91c32}
@media(max-width:760px){.extraordinary-fields{grid-template-columns:1fr}}

/* v3.1 programación de rutas del mensajero */
.route-time{min-width:118px}.route-time label{font-size:11px;color:var(--muted);margin:0 0 3px}.route-time input{padding:7px 8px;min-height:36px}
.sortable-route .route-item{grid-template-columns:58px minmax(220px,1fr) 125px auto}
@media(max-width:900px){.sortable-route .route-item{grid-template-columns:48px 1fr}.route-time{grid-column:2}.sortable-route .route-item>div:last-child{grid-column:2}}

/* Mensajeria v4.1 - Mi Ruta */
.courier-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}.courier-summary>div{background:#fff;border:1px solid #e6ebf2;border-radius:16px;padding:16px;box-shadow:0 4px 18px rgba(22,34,51,.05)}.courier-summary span{display:block;color:#6d7785;font-size:13px}.courier-summary strong{display:block;font-size:28px;margin-top:4px}.courier-route-head>div{display:flex;align-items:center;justify-content:space-between;gap:16px}.courier-stop-list{display:grid;gap:14px}.courier-stop{display:grid;grid-template-columns:48px 1fr;gap:14px;position:relative}.stop-number{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#edf2f7;font-weight:800}.stop-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.stop-top>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.stop-content h3{margin:10px 0 3px}.stop-content p{margin:3px 0}.stop-address{color:#465466}.stop-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}.stop-actions form{margin:0}.complete-stop-form{display:flex;gap:8px;flex:1;min-width:280px}.complete-stop-form input{flex:1}.route-state{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:750;background:#edf2f7;color:#425466}.route-state-en_proceso,.route-state-en_camino{background:#e7f0ff;color:#165bb7}.route-state-llegada{background:#fff3d6;color:#895b00}.route-state-finalizada,.route-state-completada{background:#e4f7ed;color:#167346}.stop-completada{opacity:.78}.stop-en_camino,.stop-llegada{border-color:#96b9ef}.courier-route-head .actions form{margin:0}@media(max-width:760px){.courier-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.courier-route-head>div,.stop-top{align-items:flex-start;flex-direction:column}.courier-stop{grid-template-columns:38px 1fr}.stop-number{width:34px;height:34px}.stop-actions,.complete-stop-form{flex-direction:column;align-items:stretch;width:100%;min-width:0}.stop-actions .btn,.stop-actions button{width:100%}}


/* v6.1 · Copias adicionales de Bitrix */
.bitrix-exclusive-card{margin-top:20px;border:1px solid #b9e6df;background:linear-gradient(180deg,#fff,#f8fffd)}
.exclusive-destination-form{margin-top:14px}
.check-row{display:flex;align-items:center;gap:10px;font-weight:700;margin-bottom:16px}
.check-row input{width:18px;height:18px}
.form-grid.two{display:grid;grid-template-columns:minmax(320px,1fr) minmax(260px,.8fr);gap:18px;align-items:end}
.form-grid.two label{display:flex;flex-direction:column;gap:8px;font-weight:700}
.form-grid.two select{width:100%;padding:11px 12px;border:1px solid #cbd7e3;border-radius:9px;background:#fff}
.destination-help{padding:12px 14px;border-radius:10px;background:#eef8f6;border:1px solid #d4ebe7}
.destination-help p{margin:5px 0 0}
@media(max-width:760px){.form-grid.two{grid-template-columns:1fr}}

.bitrix-event-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:18px;padding:16px;border:1px solid #dbe7ef;border-radius:12px;background:#f8fbfd}.bitrix-event-grid .check-row{margin:0}.event-pills{display:flex;flex-wrap:wrap;gap:6px}

/* v11.0 · Identidad visual CRH Servicios Especializados */
:root{
  --nav:#0f3a56;
  --nav2:#174d68;
  --accent:#f7b91f;
  --accent-strong:#e9a900;
  --accent-soft:#fff7dc;
  --text:#173042;
  --bg:#f4f7f9;
  --line:#d8e2e8;
  --shadow:0 10px 28px rgba(15,58,86,.08)
}
body{background:linear-gradient(180deg,#f7f9fb 0,#f2f6f8 100%)}
.sidebar{background:linear-gradient(180deg,#0d3550 0%,#112f47 100%);border-right:1px solid rgba(255,255,255,.05)}
.brand{display:flex;flex-direction:column;gap:8px;padding:8px 10px 20px}
.brand img{display:block;width:174px;max-width:100%;height:auto}
.brand-product{display:flex;align-items:center;gap:7px;color:#fff;font-size:16px;font-weight:850;letter-spacing:.01em}
.brand-product span{margin-left:auto;background:rgba(247,185,31,.18);color:#ffd966;border:1px solid rgba(247,185,31,.28)}
.menu a{border:1px solid transparent}
.menu a:hover,.menu a.active{background:rgba(247,185,31,.14);border-color:rgba(247,185,31,.18);color:#fff}
.menu a.active{box-shadow:inset 3px 0 0 #f7b91f}
.topbar{box-shadow:0 3px 16px rgba(15,58,86,.04)}
.page-head h1,.card h3,.wizard-form h3{color:#0f3a56}
.btn-primary{background:linear-gradient(135deg,#e9a900,#f7b91f);color:#183144;box-shadow:0 7px 16px rgba(247,185,31,.22)}
.btn-primary:hover{filter:brightness(.97);transform:translateY(-1px)}
input:focus,select:focus,textarea:focus{outline:3px solid rgba(247,185,31,.20);border-color:#d8a10c}
.link{color:#145c77}
.avatar{background:#fff1bd;color:#8c6500}
.card{border-color:#dbe5ea}
.metric{color:#0f3a56}
.login-brand{position:relative;overflow:hidden;background:linear-gradient(145deg,#0d3550 0%,#174d68 70%,#1d5f78 100%)}
.login-brand:after{content:"";position:absolute;width:420px;height:420px;right:-170px;bottom:-190px;border-radius:50%;background:radial-gradient(circle,rgba(247,185,31,.28),rgba(247,185,31,0) 68%)}
.login-brand>div,.login-brand>small{position:relative;z-index:1}
.login-logo{display:block;width:min(460px,92%);height:auto;margin-bottom:34px}
.login-kicker{display:inline-flex;padding:6px 10px;border-radius:999px;background:rgba(247,185,31,.16);border:1px solid rgba(247,185,31,.28);color:#ffd966;font-weight:800;font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.login-brand h1{margin-top:16px}
.login-card{border-top:5px solid #f7b91f}
.priority-extraordinaria{background:#fff4da;color:#8b5c00;border-color:#ffd36a}
.alert-success{border-left:4px solid #16835f}
.alert-error{border-left:4px solid #b42318}
@media(max-width:760px){
  .sidebar{padding:12px 10px}
  .brand{padding-bottom:10px}
  .brand img{width:150px}
  .brand-product{font-size:14px}
}


/* v13.0 - Editor de plantillas Bitrix */
.template-event-selector{max-width:520px;margin:0 0 18px}.template-event-selector label{margin:0}.template-editor-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);gap:24px;align-items:start}.template-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:14px;border:1px solid #d9e3ee;border-radius:12px;background:#f8fbfd}.template-fields .check-row{margin:0}.preview-label{display:block;text-align:center;font-size:11px;letter-spacing:.08em;color:#66758a;margin-bottom:8px}.bitrix-template-preview{min-height:460px;margin:0;padding:22px;border-radius:14px;background:#111a2e;color:#f7fbff;white-space:pre-wrap;overflow-wrap:anywhere;font:600 13px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;box-shadow:0 12px 30px rgba(10,25,50,.16)}@media(max-width:900px){.template-editor-grid{grid-template-columns:1fr}.bitrix-template-preview{min-height:320px}.template-fields{grid-template-columns:1fr}}


/* v13.1 - Menu lateral retractil */
.shell{transition:grid-template-columns .22s ease}
.sidebar{transition:width .22s ease,padding .22s ease;overflow-x:hidden;z-index:20}
.sidebar-head{display:flex;justify-content:flex-end;margin:0 0 4px}
.sidebar-toggle{width:38px;height:38px;padding:0;border-radius:10px;background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.14);font-size:18px;line-height:1;flex:0 0 38px}
.sidebar-toggle:hover{background:rgba(247,185,31,.18);border-color:rgba(247,185,31,.30)}
.brand-icon{display:none!important;width:42px!important;height:42px!important;object-fit:contain;margin:0 auto}
.menu a>span:last-child{white-space:nowrap;transition:opacity .15s ease}
.shell.sidebar-collapsed{grid-template-columns:76px 1fr}
.shell.sidebar-collapsed .sidebar{padding-left:10px;padding-right:10px}
.shell.sidebar-collapsed .sidebar-head{justify-content:center}
.shell.sidebar-collapsed .brand{padding:8px 0 14px;align-items:center}
.shell.sidebar-collapsed .brand-logo,.shell.sidebar-collapsed .brand-product{display:none}
.shell.sidebar-collapsed .brand-icon{display:block!important}
.shell.sidebar-collapsed .menu a{justify-content:center;padding:10px 8px;gap:0;position:relative}
.shell.sidebar-collapsed .menu a>span:last-child{display:none}
.shell.sidebar-collapsed .nav-icon{width:28px;height:28px;flex-basis:28px;font-size:15px}
.shell.sidebar-collapsed .menu a:hover:after{content:attr(aria-label);position:absolute;left:58px;top:50%;transform:translateY(-50%);padding:7px 10px;background:#102f47;color:#fff;border-radius:8px;white-space:nowrap;box-shadow:0 8px 22px rgba(0,0,0,.22);z-index:100;font-size:12px}
@media(max-width:760px){
  .shell{display:block}
  .sidebar{position:fixed;left:0;top:0;bottom:0;width:260px;height:100vh;transform:translateX(-100%);transition:transform .22s ease;padding:14px 12px;box-shadow:8px 0 28px rgba(0,0,0,.18)}
  .shell.mobile-menu-open .sidebar{transform:translateX(0)}
  .sidebar-head{justify-content:flex-end}
  .menu{display:block;overflow:visible}
  .menu a{white-space:normal}
  .topbar:before{content:'☰';display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:#eef3f6;color:#0f3a56;font-size:18px;margin-right:10px;cursor:pointer}
}

.mobile-menu-toggle{display:none;width:38px;height:38px;padding:0;border-radius:10px;background:#eef3f6;color:#0f3a56;font-size:18px;border:0}
@media(max-width:760px){.mobile-menu-toggle{display:grid;place-items:center}.topbar:before{display:none!important}}

/* v14.0 Google Places */
.google-attribution{display:flex;justify-content:flex-end;align-items:center;padding:8px 12px;border-top:1px solid #e5e7eb;background:#fff}.google-attribution img{display:block;width:120px;height:auto;max-width:100%}

/* v15.0 - Rutas inteligentes */
.route-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:12px 0}.route-metrics>div{background:#f5f8fc;border:1px solid #dbe5f0;border-radius:12px;padding:12px}.route-metrics span{display:block;font-size:12px;color:#64748b}.route-metrics strong{display:block;margin-top:4px;font-size:18px;color:#0f2942}.map-actions form{display:inline-flex;margin:0}.map-actions{gap:8px;flex-wrap:wrap}@media(max-width:720px){.route-metrics{grid-template-columns:1fr}.map-actions>*{width:100%}.map-actions .btn{width:100%}}


/* v16.0 - Filtros rápidos de Actividad reciente */
.activity-head{align-items:flex-start}.activity-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px}.activity-filters{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:7px}.activity-filter{appearance:none;border:1px solid #d8e2ec;background:#f5f8fb;color:#29435a;border-radius:999px;padding:7px 11px;font:700 12px/1 inherit;cursor:pointer;transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease}.activity-filter:hover{border-color:#f0b21d;background:#fff8e6}.activity-filter.active{background:#0f5261;border-color:#0f5261;color:#fff;box-shadow:0 3px 10px rgba(15,82,97,.18)}#recent-activity-table tr[hidden]{display:none}@media(max-width:760px){.activity-head{gap:14px}.activity-actions{width:100%;align-items:flex-start}.activity-filters{justify-content:flex-start}.activity-filter{padding:8px 10px}}


/* v17.0 - Operacion diaria simple del mensajero */
.planning-window{display:flex;gap:10px;align-items:center;background:#fff7db;border:1px solid #f1cf63;border-radius:14px;padding:12px 16px;margin-bottom:16px;color:#5f4a00}.planning-window strong{white-space:nowrap}.planning-window span{font-size:13px}.stop-actions .btn-danger{background:#fff1f1;border-color:#efb5b5;color:#a62424}.stop-actions .btn-danger:hover{background:#ffe3e3}.complete-stop-form{display:flex;gap:8px;flex-wrap:wrap}.complete-stop-form input{min-width:220px}.courier-stop.stop-en_camino{border-left:5px solid #f0b21d}.courier-stop.stop-completada{opacity:.78;background:#f2fbf5}@media(max-width:720px){.planning-window{align-items:flex-start;flex-direction:column}.stop-actions,.complete-stop-form{display:grid;grid-template-columns:1fr}.stop-actions .btn,.stop-actions form,.complete-stop-form input,.complete-stop-form button{width:100%}}

/* v17.3 - Selector amigable de hora para programar rutas */
.route-time-picker{width:118px;min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border:1px solid #cfdbe5;border-radius:9px;background:#fff;color:#173042;font:800 13px/1 inherit;cursor:pointer}.route-time-picker:hover,.route-time-picker:focus{border-color:#e9a900;outline:3px solid rgba(247,185,31,.18)}.route-time-display{font-variant-numeric:tabular-nums;letter-spacing:.04em}.time-picker-open{overflow:hidden}.time-picker-overlay{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:18px;background:rgba(11,32,48,.48);backdrop-filter:blur(2px)}.time-picker-overlay[hidden]{display:none}.time-picker-dialog{width:min(430px,100%);background:#fff;border:1px solid #dbe5ea;border-radius:18px;box-shadow:0 24px 70px rgba(15,58,86,.28);overflow:hidden}.time-picker-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid #e3eaf0}.time-picker-head strong{display:block;color:#0f3a56;font-size:17px}.time-picker-head small{display:block;margin-top:5px;color:#5d7080}.time-picker-close{width:34px;height:34px;border:0;border-radius:9px;background:#eef3f6;color:#173042;font-size:24px;line-height:1;cursor:pointer}.time-picker-columns{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:18px 20px}.time-picker-label{display:block;margin-bottom:9px;text-align:center;font-size:12px;font-weight:850;color:#5d7080;text-transform:uppercase;letter-spacing:.06em}.time-picker-options{height:230px;display:flex;flex-direction:column;gap:7px;overflow-y:auto;padding:4px 6px;scrollbar-width:thin}.time-option{flex:0 0 42px;border:1px solid #dbe5ea;border-radius:10px;background:#f7fafc;color:#173042;font:850 16px/1 inherit;cursor:pointer}.time-option:hover{border-color:#f0b21d;background:#fff8e6}.time-option.active{background:#0f5261;border-color:#0f5261;color:#fff;box-shadow:0 5px 14px rgba(15,82,97,.22)}.time-picker-selected{margin:0 20px;padding:12px 14px;text-align:center;border-radius:11px;background:#f4f8fb;color:#425b6c}.time-picker-selected strong{color:#0f3a56;font-size:20px;font-variant-numeric:tabular-nums}.time-picker-actions{display:flex;justify-content:flex-end;gap:10px;padding:18px 20px}.time-picker-actions .btn{min-width:110px}.time-picker-actions .btn:disabled{opacity:.45;cursor:not-allowed}@media(max-width:560px){.time-picker-overlay{align-items:end;padding:0}.time-picker-dialog{width:100%;border-radius:18px 18px 0 0}.time-picker-options{height:190px}.time-picker-actions{display:grid;grid-template-columns:1fr 1fr}.time-picker-actions .btn{width:100%}}

/* v18.0 - operacion diaria */
.route-numbered-marker{background:transparent;border:0}.route-numbered-marker span{display:grid;place-items:center;width:32px;height:32px;border-radius:50% 50% 50% 0;transform:rotate(-45deg);background:#1677b8;color:#fff;border:2px solid #fff;box-shadow:0 4px 12px rgba(15,58,86,.35);font-weight:900}.route-numbered-marker span b{display:block;transform:rotate(45deg);font-size:14px;line-height:1}.route-numbered-marker span{font-size:14px;line-height:1}.journey-time{display:block;margin-top:8px;color:#4c6575;font-weight:700}.route-finished-card{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;border-color:#b9e4d5;background:#f3fbf7}.route-finished-card h3{margin:10px 0 4px}@media(max-width:700px){.route-finished-card{align-items:stretch;flex-direction:column}.route-finished-card .btn{width:100%}}


/* v18.1 - Disponibilidad del mensajero en nueva solicitud */
.courier-availability{margin-bottom:20px}
.courier-calendar{display:grid;grid-template-columns:repeat(7,minmax(150px,1fr));gap:10px;overflow-x:auto;padding-bottom:4px}
.courier-calendar-day{position:relative;min-width:150px;border:1px solid var(--border,#dce4ec);border-radius:14px;padding:12px;background:#fff}
.courier-calendar-day.is-today{border-width:2px;border-color:#315f8f}
.courier-today-label{position:absolute;top:-1px;left:50%;transform:translateX(-50%);padding:4px 12px;border-radius:0 0 9px 9px;background:#315f8f;color:#fff;font-size:11px;font-weight:800;letter-spacing:.04em}
.courier-calendar-day.is-today>header{padding-top:18px}

.courier-calendar-day>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.courier-calendar-day>header span{font-size:12px;color:#697888;text-transform:uppercase}
.courier-status{display:flex;gap:9px;align-items:flex-start;padding:9px 0;border-top:1px solid #edf1f5}
.courier-status:first-of-type{border-top:0}
.courier-status>div{display:flex;flex-direction:column;min-width:0}
.courier-status strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.courier-status span{font-size:12px;font-weight:700}
.courier-status small{font-size:11px;color:#6d7985}
.courier-light{display:inline-block;flex:0 0 auto;width:12px;height:12px;border-radius:50%;margin-top:3px;background:#2e9f67;box-shadow:0 0 0 3px rgba(46,159,103,.14)}
.courier-status-programada .courier-light,.light-scheduled{background:#e6a700!important;box-shadow:0 0 0 3px rgba(230,167,0,.16)!important}
.courier-status-fuera .courier-light,.light-away{background:#d83b3b!important;box-shadow:0 0 0 3px rgba(216,59,59,.16)!important}
.light-available{background:#2e9f67!important;box-shadow:0 0 0 3px rgba(46,159,103,.14)!important}
.courier-legend{display:flex;gap:18px;flex-wrap:wrap;margin-top:14px;font-size:12px;color:#526170}
.courier-legend span{display:inline-flex;align-items:center;gap:7px}
.courier-legend .courier-light{margin-top:0}
@media(max-width:900px){.courier-calendar{grid-template-columns:repeat(7,150px)}}

/* v18.3.0: acciones de etiqueta en detalle */
.detail-head-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
@media(max-width:760px){.detail-head-actions{width:100%;justify-content:flex-start}.detail-head-actions .btn{flex:1 1 auto}}


/* v18.3.13 - tooltip flotante de disponibilidad, estilo compacto */
.courier-calendar-day[data-tooltip]{cursor:help;outline:none;transition:border-color .15s ease,box-shadow .15s ease}
.courier-calendar-day[data-tooltip]:hover,.courier-calendar-day[data-tooltip]:focus,.courier-calendar-day[data-tooltip].tooltip-open{border-color:#8aa7bd;box-shadow:0 8px 22px rgba(15,58,86,.14)}
.courier-tooltip{position:fixed;z-index:2000;width:340px;max-height:none;overflow:visible;padding:11px 12px;border:0;border-radius:8px;background:#1f2933;box-shadow:0 10px 28px rgba(0,0,0,.28);color:#fff;display:none;text-align:left;pointer-events:auto}
.courier-tooltip.is-visible{display:block}
.courier-tooltip-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:8px;border-bottom:1px solid rgba(255,255,255,.18)}.courier-tooltip-head strong{color:#fff;font-size:13px}.courier-tooltip-head span{font-size:10px;color:#d7dee5}
.courier-tooltip-messenger{padding:9px 0;border-bottom:1px solid rgba(255,255,255,.14)}.courier-tooltip-messenger:last-child{border-bottom:0;padding-bottom:0}.courier-tooltip-messenger-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px}.courier-tooltip-messenger-head>strong{font-size:12px;color:#fff}.courier-tooltip-state{flex:0 0 auto;padding:2px 6px;border-radius:999px;background:#dff5e9;color:#146b45;font-size:9px;font-weight:800}.courier-tooltip-state-programada{background:#fff0bd;color:#795500}.courier-tooltip-state-fuera{background:#ffd9d9;color:#922525}
.courier-tooltip-summary{display:flex;gap:6px 10px;flex-wrap:wrap;margin-top:6px;font-size:10px;color:#d7dee5}.courier-tooltip-summary b{color:#fff}
.courier-tooltip-services{display:grid;gap:6px;margin-top:8px}.courier-tooltip-service{padding:7px 8px;border:1px solid rgba(255,255,255,.15);border-radius:6px;background:rgba(255,255,255,.07)}.courier-tooltip-service>div:first-child{display:flex;justify-content:space-between;gap:10px}.courier-tooltip-service>div:first-child strong{font-size:10px;color:#fff}.courier-tooltip-service>div:first-child span{font-size:9px;font-weight:800;color:#d7dee5}.courier-tooltip-service small{display:block;margin-top:3px;font-size:9px;line-height:1.3;color:#e7edf2}.courier-tooltip-tags{display:flex;gap:4px;flex-wrap:wrap;margin-top:5px}.courier-tooltip-tags span{padding:2px 5px;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font-size:8px;font-weight:800}.courier-tooltip-tags .extra{background:#ffd9c9;color:#8d2f0d}.courier-tooltip-empty{margin:8px 0 0;font-size:10px;color:#d7dee5}
@media(max-width:600px){.courier-tooltip{width:auto;max-width:none!important;left:12px!important;right:12px!important;top:auto!important;bottom:12px;max-height:55vh}.courier-calendar-day[data-tooltip]{cursor:pointer}}

/* =========================================================
   Modo embebido dentro de Bitrix24 movil
   ========================================================= */

body.bitrix-embedded .shell{
    grid-template-columns:1fr;
}

body.bitrix-embedded .sidebar{
    position:fixed;
    left:0;
    top:0;
    bottom:0;
    width:260px;
    height:100vh;
    transform:translateX(-100%);
    z-index:100;
    box-shadow:8px 0 28px rgba(0,0,0,.20);
}

body.bitrix-embedded .shell.mobile-menu-open .sidebar{
    transform:translateX(0);
}

body.bitrix-embedded .topbar{
    height:50px;
    padding:0 12px;
}

body.bitrix-embedded .topbar > strong{
    font-size:14px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

body.bitrix-embedded .user-chip{
    display:none;
}

body.bitrix-embedded .mobile-menu-toggle{
    display:grid;
    place-items:center;
    width:36px;
    height:36px;
    flex:0 0 36px;
}

body.bitrix-embedded .page{
    padding:12px;
}

body.bitrix-embedded .card{
    padding:14px;
    border-radius:13px;
}

body.bitrix-embedded .page-head{
    margin-bottom:14px;
    gap:10px;
}

body.bitrix-embedded .page-head h1,
body.bitrix-embedded .page h1{
    font-size:28px;
    line-height:1.12;
}

body.bitrix-embedded .metric-grid,
body.bitrix-embedded .courier-summary{
    gap:10px;
}

body.bitrix-embedded .metric-card{
    padding:10px;
}

body.bitrix-embedded .btn{
    min-height:42px;
}

@media(max-width:480px){
    body.bitrix-embedded .page{
        padding:10px;
    }

    body.bitrix-embedded .page-head h1,
    body.bitrix-embedded .page h1{
        font-size:25px;
    }

    body.bitrix-embedded .metric-grid,
    body.bitrix-embedded .courier-summary{
        grid-template-columns:1fr 1fr;
    }
}

/* =========================================================
   Ajuste Dashboard dentro de Bitrix24 movil
   ========================================================= */

body.bitrix-embedded .page-head{
    display:block;
    margin-bottom:12px;
}

body.bitrix-embedded .page-head h1{
    font-size:22px;
    line-height:1.15;
    margin:0 0 4px;
}

body.bitrix-embedded .page-head .muted{
    font-size:12px;
    line-height:1.4;
}

body.bitrix-embedded .page-head > .btn{
    width:100%;
    margin-top:10px;
}

body.bitrix-embedded .metric-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
    margin-bottom:12px;
}

body.bitrix-embedded .metric-card{
    min-width:0;
    padding:10px;
    gap:8px;
    border-radius:11px;
}

body.bitrix-embedded .metric-icon{
    width:32px;
    height:32px;
    flex:0 0 32px;
    border-radius:9px;
}

body.bitrix-embedded .metric-icon:after{
    font-size:14px;
}

body.bitrix-embedded .metric-card span{
    font-size:10px;
    line-height:1.2;
}

body.bitrix-embedded .metric-card strong{
    font-size:20px;
    margin-top:2px;
}

body.bitrix-embedded .dashboard-grid{
    display:block;
}

body.bitrix-embedded .dashboard-grid > .card{
    margin-bottom:10px;
}

body.bitrix-embedded .dashboard-grid .card{
    padding:12px;
}

body.bitrix-embedded .dashboard-grid h3{
    font-size:15px;
    margin-top:0;
}

body.bitrix-embedded .process-list{
    margin:8px 0;
}

body.bitrix-embedded .process-list > div{
    padding:7px 0;
}

body.bitrix-embedded .product-note{
    padding:9px;
}

body.bitrix-embedded .product-note p{
    font-size:11px;
}

body.bitrix-embedded .table th,
body.bitrix-embedded .table td{
    padding:9px 7px;
    font-size:11px;
}

body.bitrix-embedded .table th{
    font-size:9px;
}

@media(max-width:380px){
    body.bitrix-embedded .metric-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    body.bitrix-embedded .metric-card{
        padding:8px;
    }

    body.bitrix-embedded .metric-icon{
        width:28px;
        height:28px;
        flex-basis:28px;
    }

    body.bitrix-embedded .metric-card strong{
        font-size:18px;
    }
}


/* =========================================================
   Confirmacion de entrega - solo Bitrix movil
   ========================================================= */

.mobile-delivery-confirmation{
    margin-top:14px;
}

.mobile-delivery-confirmation label{
    display:block;
    margin-top:12px;
}

.mobile-signature-button{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:100%;
    min-height:72px;
    margin-top:7px;
    padding:12px 16px;
    border:2px dashed #b9c7d5;
    border-radius:12px;
    background:#f8fbfd;
    color:#17364a;
    font:inherit;
    cursor:pointer;
}

.mobile-signature-button span{
    font-size:24px;
}

.mobile-signature-status{
    margin-top:6px;
    font-size:12px;
    color:#778594;
    text-align:center;
}

.mobile-signature-button.signature-ok{
    border-style:solid;
    border-color:#8ccdb7;
    background:#eefaf6;
    color:#167553;
}


/* =========================================================
   Dashboard compacto - Bitrix movil
   ========================================================= */

body.bitrix-embedded .page-head{
    margin-bottom:10px;
}

body.bitrix-embedded .page-head h1{
    font-size:21px;
}

body.bitrix-embedded .page-head .muted{
    display:none;
}

body.bitrix-embedded .page-head > .btn{
    margin-top:8px;
    min-height:48px;
    font-size:15px;
    border-radius:12px;
}

/* Resumen de jornada compacto */
body.bitrix-embedded .metric-grid{
    margin-bottom:10px;
}

body.bitrix-embedded .metric-card{
    box-shadow:none;
}

/* Actividad reciente: encabezado simple */
body.bitrix-embedded .activity-head{
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:8px;
}

body.bitrix-embedded .activity-head .muted{
    display:none;
}

body.bitrix-embedded .activity-actions{
    width:auto;
}

body.bitrix-embedded .activity-filters{
    display:none;
}

/* Solo 3 movimientos recientes */
body.bitrix-embedded #recent-activity-table tbody tr[data-activity-state]:nth-of-type(n+4){
    display:none;
}

/* El mensajero no necesita ver el flujo explicativo en el dashboard */
body.bitrix-embedded .dashboard-grid > article.card:nth-child(2){
    display:none;
}

/* Notificaciones mas compactas */
body.bitrix-embedded .notification-list .notification-item:nth-child(n+4){
    display:none;
}

body.bitrix-embedded .notification-item{
    padding:11px 4px;
}

body.bitrix-embedded .notification-item p{
    margin:4px 0;
    font-size:12px;
    line-height:1.35;
}

body.bitrix-embedded .notification-item small{
    font-size:10px;
}

body.bitrix-embedded .compact-card.mt-20{
    margin-top:10px;
}


/* ===== REPORTES - FILTROS COMPACTOS TIPO EXCEL ===== */

.report-filters{
    padding:14px 16px;
}

.report-filter-row{
    display:grid;
    grid-template-columns:
        minmax(130px,1fr)
        minmax(130px,1fr)
        minmax(180px,1.25fr)
        minmax(150px,1fr)
        minmax(150px,1fr)
        minmax(180px,1.2fr)
        auto;
    gap:10px;
    align-items:end;
}

.report-filter-row > div{
    min-width:0;
}

.report-filter-row label{
    display:block;
    margin-bottom:5px;
    font-size:12px;
    font-weight:600;
}

.report-filter-row input,
.report-filter-row select{
    width:100%;
    min-height:36px;
    height:36px;
    padding:6px 10px;
}

.report-filter-actions{
    display:flex;
    gap:8px;
    align-items:end;
    white-space:nowrap;
}

.report-filter-actions .btn{
    min-height:36px;
    height:36px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:0 14px;
}

@media (max-width:1200px){
    .report-filter-row{
        grid-template-columns:repeat(4,minmax(150px,1fr));
    }

    .report-filter-actions{
        grid-column:span 2;
    }
}

@media (max-width:760px){
    .report-filter-row{
        grid-template-columns:1fr 1fr;
    }

    .report-filter-actions{
        grid-column:1 / -1;
    }
}


/* =========================================================
   MENU LATERAL - TIPOGRAFIA COMPACTA TIPO DOMICILIOS
   2026-09-18
   ========================================================= */

.menu a{
    padding:8px 10px !important;
    margin:1px 0 !important;
    border-radius:8px !important;
    font-size:13px !important;
    font-weight:600 !important;
    line-height:1.25 !important;
}

.nav-icon{
    width:20px !important;
    height:20px !important;
    flex:0 0 20px !important;
    font-size:13px !important;
}

.menu a{
    gap:8px !important;
}

/* Nombre Mensajeria ligeramente menos pesado */
.brand-product{
    font-size:15px !important;
    font-weight:700 !important;
}


/* =========================================================
   MENU LATERAL - AJUSTE FINAL IGUAL A DOMICILIOS
   ========================================================= */

.sidebar .menu{
    display:flex !important;
    flex-direction:column !important;
    gap:4px !important;
}

.sidebar .menu a{
    min-height:42px !important;
    padding:0 12px !important;
    margin:0 !important;
    border-radius:8px !important;

    display:flex !important;
    align-items:center !important;

    gap:12px !important;

    font-family:Inter,"Segoe UI",Arial,sans-serif !important;
    font-size:13px !important;
    font-weight:600 !important;
    line-height:1.2 !important;
}

.sidebar .nav-icon{
    width:20px !important;
    height:20px !important;
    min-width:20px !important;
    flex:0 0 20px !important;

    font-size:13px !important;
}

.brand-product{
    font-family:Inter,"Segoe UI",Arial,sans-serif !important;
    font-size:15px !important;
    font-weight:600 !important;
    line-height:1.2 !important;
}


/* =========================================================
   SIDEBAR MENSAJERIA - MISMO ASPECTO COMPACTO DE DOMICILIOS
   ========================================================= */

.shell{
    grid-template-columns:202px minmax(0,1fr) !important;
}

.sidebar{
    padding:10px 8px 8px !important;
}

.sidebar .menu{
    display:flex !important;
    flex-direction:column !important;
    gap:1px !important;
}

.sidebar .menu a{
    min-height:32px !important;
    padding:6px 8px !important;
    margin:0 !important;
    border-radius:7px !important;

    display:flex !important;
    align-items:center !important;
    gap:9px !important;

    font-family:Inter,"Segoe UI",Arial,sans-serif !important;
    font-size:11.5px !important;
    font-weight:600 !important;
    line-height:1.2 !important;
}

.sidebar .nav-icon{
    width:20px !important;
    height:20px !important;
    min-width:20px !important;
    flex:0 0 20px !important;
    font-size:13px !important;
}

.brand{
    padding:6px 5px 10px !important;
}

.brand-product{
    margin-top:5px !important;
    font-family:Inter,"Segoe UI",Arial,sans-serif !important;
    font-size:12px !important;
    font-weight:600 !important;
    line-height:1.2 !important;
}

.sidebar-head{
    margin-bottom:2px !important;
}


/* =========================================================
   SIDEBAR DESKTOP - ANCHO ABIERTO / CONTRAIDO
   ========================================================= */

@media (min-width:761px){

    .shell{
        grid-template-columns:202px minmax(0,1fr) !important;
    }

    .shell.sidebar-collapsed{
        grid-template-columns:58px minmax(0,1fr) !important;
    }

    .shell.sidebar-collapsed .sidebar{
        padding-left:6px;
        padding-right:6px;
    }

}

/* =========================================================
   DASHBOARD MENSAJERIA - BASADO EN DOMICILIOS
   ========================================================= */

.dashboard-mensajeria{
    width:100%;
    min-height:100%;
    padding:20px 24px 26px;
    background:linear-gradient(120deg,#f8fbff 0%,#f1f8fe 48%,#f7fbfe 100%);
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    color:#22486f;
    font-size:13px;
}

.dm-head{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:20px;
    margin-bottom:18px;
}

.dm-title{
    margin:0;
    color:#071f49;
    font-size:34px;
    line-height:1.06;
    font-weight:800;
    letter-spacing:-.8px;
}

.dm-subtitle{
    margin-top:4px;
    font-size:15px;
    color:#5178a3;
}

.dm-date{
    display:flex;
    gap:12px;
    padding-top:8px;
    color:#274e7b;
}

.dm-date-icon{
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
}

.dm-date-icon svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
}

.dm-date-main{
    font-size:13px;
    font-weight:700;
}

.dm-date-time{
    font-size:11px;
    margin-top:3px;
    color:#6685a8;
}

.dm-kpi-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:12px;
    margin-bottom:18px;
}

.dm-kpi{
    min-height:118px;
    background:#fff;
    border:1px solid #dce7f1;
    border-radius:11px;
    padding:14px;
    display:flex;
    align-items:flex-start;
    gap:12px;
    box-shadow:0 5px 18px rgba(38,75,110,.035);
}

.dm-icon{
    width:48px;
    height:48px;
    display:grid;
    place-items:center;
    border-radius:50%;
    flex:0 0 48px;
}

.dm-icon svg{
    width:23px;
    height:23px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.dm-blue{background:#e9f4ff;color:#2588ee}
.dm-green{background:#e9f8f1;color:#18a86d}
.dm-purple{background:#f1ebff;color:#8a56e8}
.dm-orange{background:#fff3df;color:#f59a16}
.dm-red{background:#ffe9ee;color:#ee3657}
.dm-cyan{background:#e4f7f7;color:#1ab5b7}

.dm-kpi-body{
    min-width:0;
    flex:1;
}

.dm-kpi-label{
    margin-top:2px;
    color:#44698e;
    font-size:12px;
}

.dm-kpi-value{
    margin-top:5px;
    color:#062b60;
    font-size:30px;
    line-height:1;
    font-weight:500;
}

.dm-kpi-sub{
    margin-top:9px;
    color:#6985a5;
    font-size:11.5px;
}

.dm-row-three{
    display:grid;
    grid-template-columns:1.08fr 1fr .95fr;
    gap:12px;
    margin-bottom:16px;
}

.dm-bottom-grid{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:12px;
}

.dm-card{
    background:#fff;
    border:1px solid #dce7f1;
    border-radius:11px;
    box-shadow:0 5px 18px rgba(38,75,110,.035);
    overflow:hidden;
}

.dm-card-inner{
    height:100%;
    padding:14px 16px;
    display:flex;
    flex-direction:column;
}

.dm-card-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-bottom:12px;
}

.dm-card-title{
    display:flex;
    align-items:center;
    gap:9px;
    color:#082f69;
    font-size:14px;
    font-weight:700;
}

.dm-card-title-icon{
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    color:#2487ee;
}

.dm-card-title-icon svg{
    width:21px;
    height:21px;
    fill:none;
    stroke:currentColor;
    stroke-width:2;
}

.dm-link{
    color:#0877ed;
    text-decoration:none;
    font-size:11.5px;
    white-space:nowrap;
}

.dm-state-chart{
    height:170px;
    display:flex;
    align-items:flex-end;
    justify-content:space-around;
    gap:9px;
    padding:10px 4px 0;
    background:
      repeating-linear-gradient(
        to top,
        transparent 0,
        transparent 31px,
        #edf2f7 32px,
        #edf2f7 33px
      );
}

.dm-bar-group{
    height:100%;
    flex:1;
    display:flex;
    flex-direction:column;
    justify-content:flex-end;
    align
    gap:5px;
}

.dm-bar-value{
    font-size:9px;
    color:#7890a8;
}

.dm-bar-stack{
    width:28px;
    height:105px;
    display:flex;
    flex-direction:column-reverse;
    justify-content:flex-start;
    overflow:hidden;
    border-radius:3px 3px 0 0;
}

.dm-bar{
    width:100%;
    display:block;
}

.dm-bar-pendiente{background:#f59a16}
.dm-bar-transito{background:#8a56e8}
.dm-bar-entregada{background:#18a86d}

.dm-bar-label{
    font-size:10px;
    color:#6683a4;
}

.dm-legend{
    display:flex;
    justify-content:center;
    gap:14px;
    margin-top:8px;
    color:#647f9e;
    font-size:10px;
}

.dm-legend span{
    display:flex;
    align-items:center;
    gap:5px;
}

.dm-dot{
    width:9px;
    height:9px;
    display:inline-block;
    border-radius:50%;
}

.dm-dot-pendiente{background:#f59a16}
.dm-dot-transito{background:#8a56e8}
.dm-dot-entregada{background:#18a86d}
.dm-dot-local{background:#2588ee}
.dm-dot-dhl{background:#18a86d}

.dm-service-content{
    min-height:180px;
    display:grid;
    grid-template-columns:150px 1fr;
    align-items:center;
    gap:16px;
}

.dm-donut{
    width:142px;
    height:142px;
    margin:auto;
    border-radius:50%;
    position:relative;
    display:grid;
    place-items:center;
    background:
      conic-gradient(
        #2588ee 0 var(--dm-local),
        #18a86d var(--dm-local) 360deg
      );
}

.dm-donut:after{
    content:"";
    position:absolute;
    inset:21px;
    border-radius:50%;
    background:#fff;
}

.dm-donut-center{
    position:relative;
    z-index:2;
    text-align:center;
}

.dm-donut-center strong{
    display:block;
    color:#062b60;
    font-size:28px;
    font-weight:600;
}

.dm-donut-center span{
    color:#6985a5;
    font-size:11px;
}

.dm-service-list{
    display:flex;
    flex-direction:column;
    gap:15px;
}

.dm-service-list>div{
    display:grid;
    grid-template-columns:12px 35px 1fr;
    gap:8px;
    align-items:center;
}

.dm-service-list strong{
    color:#082f69;
    font-size:18px;
}

.dm-service-list span{
    color:#557394;
    font-size:11.5px;
}

.dm-map{
    height:158px;
    min-height:158px;
    border:1px solid #d9e5ed;
    border-radius:9px;
    overflow:hidden;
    background:#eef4f7;
}

.dm-map-status{
    margin-top:8px;
    color:#6685a8;
    font-size:10.5px;
}

.dm-bottom-card{
    min-height:260px;
}

.dm-activity-list{
    display:flex;
    flex-direction:column;
}

.dm-activity-row{
    min-height:47px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:7px 0;
    border-bottom:1px solid #e8eef4;
    text-decoration:none;
    color:inherit;
}

.dm-activity-icon{
    width:34px;
    height:34px;
    flex:0 0 34px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:#eaf5ff;
    color:#2588ee;
    font-size:10px;
    font-weight:800;
}

.dm-activity-info{
    min-width:0;
    flex:1;
}

.dm-activity-info strong,
.dm-activity-info small{
    display:block;
}

.dm-activity-info strong{
    color:#082f69;
    font-size:11.5px;
}

.dm-activity-info small{
    margin-top:2px;
    color:#6d87a2;
    font-size:10px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.dm-activity-state{
    font-size:10px;
    color:#557394;
    white-space:nowrap;
}

.dm-flow{
    display:flex;
    align-items:flex-start;
    justify-content:center;
    gap:6px;
    padding:20px 4px 10px;
}

.dm-flow-step{
    width:90px;
    text-align:center;
    color:#607d9c;
}

.dm-flow-step i{
    width:32px;
    height:32px;
    display:grid;
    place-items:center;
    margin:0 auto 7px;
    border-radius:50%;
    background:#e8eef4;
    color:#627d98;
    font-style:normal;
    font-weight:800;
}

.dm-flow-step.active i{
    background:#dff6ea;
    color:#18a86d;
}

.dm-flow-step strong,
.dm-flow-step span{
    display:block;
}

.dm-flow-step strong{
    color:#082f69;
    font-size:11px;
}

.dm-flow-step span{
    margin-top:3px;
    font-size:9px;
}

.dm-flow-line{
    width:28px;
    height:2px;
    margin-top:15px;
    background:#d9e5ed;
}

.dm-product-note
    margin-top:auto;
    padding:12px;
    border-radius:9px;
    background:linear-gradient(135deg,#f3f9ff,#eaf4ff);
    text-align:center;
}

.dm-
.dm-product-note span{
    display:block;
}

.dm-product-note strong{
    color:#0a3978;
    font-size:13px;
}

.dm-product-note span{
    margin-top:3px;
    color:#5f7e9f;
    font-size:10.5px;
}

@media(max-width:1250px){
    .dm-kpi-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .dm-row-three{
        grid-template-columns:1fr 1fr;
    }

    .dm-row-three>.dm-card:last-child{
        grid-column:1/-1;
    }
}

@media(max-width:820px){
    .dashboard-mensajeria{
        padding:14px;
    }

    .dm-head{
        flex-direction:column;
    }

    .dm-kpi-grid,
    .dm-row-three,
    .dm-bottom-grid{
        grid-template-columns:1fr;
    }

    .dm-row-three>.dm-card:last-child{
        grid-column:auto;
    }

    .dm-service-content{
        grid-template-columns:1fr;
    }

    .dm-flow{
        flex-wrap:wrap;
    }
}


/* =========================================================
   DASHBOARD MENSAJERIA - AFINADO VISUAL
   ========================================================= */

.dashboard-mensajeria{
    padding:18px 22px 24px !important;
    background:#f6faff !important;
}

.dm-head{
    margin-bottom:14px !important;
}

.dm-title{
    font-size:31px !important;
    font-weight:750 !important;
    letter-spacing:-.5px !important;
}

.dm-subtitle{
    font-size:14px !important;
}

.dm-kpi-grid{
    gap:10px !important;
    margin-bottom:14px !important;
}

.dm-kpi{
    min-height:100px !important;
    padding:13px 14px !important;
    border-radius:12px !important;
    border-color:#dbe7f0 !important;
    box-shadow:
        0 1px 2px rgba(25,62,91,.02),
        0 6px 18px rgba(25,62,91,.025) !important;
}

.dm-icon{
    width:44px !important;
    height:44px !important;
    flex-basis:44px !important;
}

.dm-icon svg{
    width:21px !important;
    height:21px !important;
}

.dm-kpi-value{
    font-size:28px !important;
    font-weight:600 !important;
}

.dm-kpi-sub{
    margin-top:7px !important;
    font-size:10.5px !important;
}

.dm-row-three,
.dm-bottom-grid{
    gap:10px !important;
}

.dm-row-three{
    margin-bottom:12px !important;
}

.dm-card{
    border-radius:12px !important;
    box-shadow:
        0 1px 2px rgba(25,62,91,.02),
        0 6px 18px rgba(25,62,91,.025) !important;
}

.dm-card-inner{
    padding:13px 15px !important;
}

.dm-card-head{
    margin-bottom:9px !important;
}

.dm-card-title{
    font-size:13.5px !important;
}

.dm-state-chart{
    height:155px !important;
}

.dm-bar-stack{
    height:92px !important;
    width:26px !important;
}

.dm-service-content{
    min-height:160px !important;
}

.dm-donut{
    width:130px !important;
    height:130px !important;
}

.dm-donut-center strong{
    font-size:25px !important;
}

.dm-map{
    height:172px !important;
    min-height:172px !important;
    border-radius:8px !important;
}

.dm-map-status{
    margin-top:6px !important;
    font-size:10px !important;
}

.dm-bottom-card{
    min-height:235px !important;
}

.dm-activity-row{
    min-height:43px !important;
}

.dm-flow{
    padding-top:16px !important;
}

.dm-flow-step{
    width:82px !important;
}

.dm-flow-step i{
    width:30px !important;
    height:30px !important;
}

.dm-product-note{
    padding:9px !important;
}

.dm-route-marker{
    background:transparent !important;
    border:0 !important;
}

.dm-route-marker span{
    width:27px;
    height:27px;
    display:grid;
    place-items:center;
    background:#123f78;
    color:#fff;
    border:2px solid #fff;
    border-radius:50%;
    box-shadow:0 2px 7px rgba(17,55,92,.28);
    font-size:10px;
    font-weight:800;
}

#dashboard-mensajeria-map .leaflet-tile-pane{
    filter:saturate(.82) brightness(1.03);
}

#dashboard-mensajeria-map .leaflet-popup-content{
    font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
    font-size:11px;
    color:#173f69;
}


/* =========================================================
   DASHBOARD HORIZONTAL - SOLO ruta=dashboard
   ========================================================= */

body.dashboard-layout{
    background:#f5f9fd;
}

body.dashboard-layout .shell{
    display:block !important;
    min-height:100vh;
}

body.dashboard-layout .sidebar{
    display:none !important;
}

body.dashboard-layout .content{
    width:100% !important;
    min-width:0;
}

body.dashboard-layout .topbar{
    height:66px !important;
    padding:0 24px !important;
    position:sticky;
    top:0;
    z-index:50;
    display:grid !important;
    grid-template-columns:auto minmax(320px,565px) auto;
    gap:24px;
    align-items:center;
    background:#fff !important;
    border-bottom:1px solid #d9e5ef !important;
    box-shadow:0 2px 10px rgba(31,67,100,.035) !important;
}

body.dashboard-layout .topbar > strong{
    font-size:0;
    display:flex;
    align-items:center;
    gap:10px;
    color:#0c2e62;
}

body.dashboard-layout .topbar > strong:before{
    content:"Mensajería";
    font-size:16px;
    font-weight:800;
}

body.dashboard-layout .topbar > strong:after{
    content:"v18.3.17";
    font-size:11px;
    font-weight:800;
    line-height:1;
    padding:7px 9px;
    border-radius:9px;
    background:#595959;
    color:#fff;
}

body.dashboard-layout .topbar:after{
    content:"Buscar solicitudes, folios, destinatarios...";
    display:flex;
    align-items:center;
    height:40px;
    padding:0 16px 0 42px;
    border:1px solid #cddfed;
    border-radius:8px;
    background:
        linear-gradient(#f8fbfe,#f8fbfe) padding-box;
    color:#6482a5;
    font-size:12px;
    box-sizing:border-box;
    position:relative;
}

body.dashboard-layout .topbar .user-chip{
    justify-self:end;
}

body.dashboard-layout .topbar .avatar{
    width:38px;
    height:38px;
    border-radius:12px;
    background:#ffbf19 !important;
    color:#6c5100 !important;
}

body.dashboard-layout .topbar .user-chip > div:last-child > strong{
    font-size:12.5px;
    color:#0b2c5d;
}

body.dashboard-layout .topbar .tiny{
    font-size:10.5px;
}

body.dashboard-layout .mobile-menu-toggle{
    display:none !important;
}

body.dashboard-layout .page{
    padding:22px 24px 28px !important;
    max-width:none !important;
}

body.dashboard-layout .dashboard-mensajeria{
    padding:0 !important;
    background:transparent !important;
}

body.dashboard-layout .dm-head{
    margin-bottom:15px !important;
}

body.dashboard-layout .dm-title{
    font-size:32px !important;
    line-height:1.05 !important;
    color:#082d68 !important;
    font-weight:800 !important;
}

body.dashboard-layout .dm-subtitle{
    font-size:14px !important;
    color:#5e7ca2 !important;
}

body.dashboard-layout .dm-date{
    padding-top:4px !important;
}

body.dashboard-layout .dm-date-main{
    color:#0b3169;
    font-size:12px;
}

body.dashboard-layout .dm-date-time{
    color:#6b85a4;
    font-size:10px;
}

body.dashboard-layout .dm-kpi-grid{
    grid-template-columns:repeat(4,minmax(0,1fr)) !important;
    gap:10px !important;
    margin-bottom:16px !important;
}

body.dashboard-layout .dm-kpi{
    min-height:112px !important;
    padding:14px 16px !important;
    border-radius:11px !important;
}

body.dashboard-layout .dm-icon{
    width:62px !important;
    height:62px !important;
    flex-basis:62px !important;
}

body.dashboard-layout .dm-icon svg{
    width:27px !important;
    height:27px !important;
}

body.dashboard-layout .dm-kpi-label{
    font-size:11.5px !important;
}

body.dashboard-layout .dm-kpi-value{
    font-size:31px !important;
    font-weight:700 !important;
    color:#062b62 !important;
}

body.dashboard-layout .dm-kpi-sub{
    font-size:10.5px !important;
}

body.dashboard-layout .dm-row-three{
    grid-template-columns:1.05fr .92fr 1.08fr !important;
    gap:10px !important;
    m
}

body.dashboard-layout .dm-bottom-grid{
    grid-template-columns:1.12fr .98fr !important;
    gap:10px 
}

body.dashboard-layout .dm-card{
    border-radius:11px !important;
}

body.dashboard-layout .dm-card-inner{
    padding:12px 14px !important;
}

body.dashboard-layout .dm-card-title{
    font-size:13.5px !important;
}

body.dashboard-layout .dm-state-chart{
    height:182px !important;
}

body.dashboard-layout .dm-service-content{
    min-height:190px !important;
}

body.dashboard-layout .dm-map{
    height:190px !important;
    min-height:190px !important;
}

body.dashboard-layout .dm-bottom-card{
    min-height:285px !important;
}

body.dashboard-layout .dm-activity-row{
    min-height:48px !important;
}

body.dashboard-layout .dm-flow{
    padding-top:18px !important;
}

body.dashboard-layout .dm-product-note{
    margin-top:14px !important;
    min-height:104px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    background:linear-gradient(135deg,#eef7ff,#e5f1fd) !important;
}

@media(max-width:1100px){
    body.dashboard-layout .topbar{
        grid-template-columns:auto 1fr auto;
    }

    body.dashboard-layout .dm-kpi-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }

    body.dashboard-layout .dm-row-three{
        grid-template-columns:1fr 1fr !important;
    }

    body.dashboard-layout .dm-row-three>.dm-card:last-child{
        grid-column:1/-1;
    }
}


/* =========================================================
   NOTIFICACIONES - COMPACTAS Y TIPOGRAFIA FINA
   ========================================================= */

.page > .compact-card.mt-20{
    margin-left:0 !important;
    margin-right:0 !important;
    width:100% !important;
    max-width:none !important;
    box-sizing:border-box !important;
    border-radius:11px !important;
    border:1px solid #d9e5ef !important;
    box-shadow:0 2px 10px rgba(28,65,96,.035) !important;
    overflow:hidden !important;
}

/* Encabezado */
.page > .compact-card.mt-20 .section-head{
    padding:14px 16px 12px !important;
    min-height:auto !important;
}

.page > .compact-card.mt-20 .section-head h3{
    margin:0 0 3px !important;
    font-size:16px !important;
    line-height:1.2 !important;
    font-weight:600 !important;
    letter-spacing:0 !important;
    color:#082f57 !important;
}

.page > .compact-card.mt-20 .section-head .muted{
    margin:0 !important;
    font-size:11.5px !important;
    line-height:1.35 !important;
    font-weight:400 !important;
    color:#6883a0 !important;
}

.page > .compact-card.mt-20 .count-pill{
    padding:5px 9px !important;
    font-size:10.5px !important;
    line-height:1 !important;
    font-weight:500 !important;
}

/* Lista */
.page > .compact-card.mt-20 .notification-list{
    border-top:1px solid #dce7ef !important;
}

.page > .compact-card.mt-20 .notification-item{
    min-height:auto !important;
    padding:12px 16px !important;
    gap:12px !important;
    border-bottom:1px solid #dce7ef !important;
}

.page > .compact-card.mt-20 .notification-item:last-child{
    border-bottom:0 !important;
}

/* Titulo de cada notificacion */
.page > .compact-card.mt-20 .notification-item strong{
    display:block !important;
    margin-bottom:3px !important;
    font-size:13px !important;
    line-height:1.25 !important;
    font-weight:600 !important;
    color:#082f57 !important;
}

/* Mensaje */
.page > .compact-card.mt-20 .notification-item p{
    margin:0 0 4px !important;
    font-size:12px !important;
    line-height:1.35 !important;
    font-weight:400 !important;
    color:#587493 !important;
}

/* Folio y fecha */
.page > .compact-card.mt-20 .notification-item small{
    font-size:10.5px !important;
    line-height:1.25 !important;
    font-weight:400 !important;
    color:#7089a3 !important;
}

/* Flecha derecha */
.page > .compact-card.mt-20 .notification-item > span{
    font-size:16px !important;
    font-weight:400 !important;
    color:#66819d !important;
}

/* Hover muy ligero */
.page > .compact-card.mt-20 .notification-item:hover{
    background:#f8fbfe !important;
}


/* =========================================================
   NUEVA SOLICITUD - DISPONIBILIDAD COMPACTA EN TOPBAR
   Mantiene intacta la logica y tooltip existentes
   ========================================================= */

.topbar .courier-availability-topbar{
    flex:1 1 auto;
    width:auto;
    max-width:690px;
    min-width:500px;
    margin:0 auto !important;
    padding:0 !important;
    border:0 !important;
    border-radius:0 !important;
    background:transparent !important;
    box-shadow:none !important;
    overflow:visible !important;
}

/* En la cabecera ya no necesitamos titulo ni leyenda */
.topbar .courier-availability-topbar > .section-head,
.topbar .courier-availability-topbar > .courier-legend{
    display:none !important;
}

/* Cinco dias compactos */
.topbar .courier-availability-topbar .courier-calendar{
    display:grid !important;
    grid-template-columns:repeat(5,minmax(92px,1fr)) !important;
    gap:6px !important;
    width:100%;
    overflow:visible !important;
    padding:0 !important;
}

/* Tarjeta de cada dia */
.topbar .courier-availability-topbar .courier-calendar-day{
    min-width:0 !important;
    height:54px;
    padding:7px 9px !important;
    border-radius:9px !important;
    background:#fff !important;
    display:flex;
    flex-direction:column;
    justify-content:center;
}

/* Hoy */
.topbar .courier-availability-topbar .courier-calendar-day.is-today{
    border-width:2px !important;
    border-color:#2e67a2 !important;
}

.topbar .courier-availability-topbar .courier-today-label{
    top:-1px !important;
    padding:2px 10px !important;
    font-size:8px !important;
    border-radius:0 0 6px 6px !important;
}

.topbar .courier-availability-topbar
.courier-calendar-day.is-today > header{
    padding-top:8px !important;
}

/* Fecha y dia */
.topbar .courier-availability-topbar .courier-calendar-day > header{
    margin:0 0 4px !important;
    line-height:1;
}

.topbar .courier-availability-topbar
.courier-calendar-day > header strong{
    font-size:11px !important;
    color:#0b315f !important;
}

.topbar .courier-availability-topbar
.courier-calendar-day > header span{
    font-size:8px !important;
    color:#69809a !important;
}

/* Estado */
.topbar .courier-availability-topbar .courier-status{
    min-width:0;
    gap:5px !important;
    align-items:center !important;
    padding:0 !important;
    border:0 !important;
}

.topbar .courier-availability-topbar .courier-status > div{
    min-width:0;
}

.topbar .courier-availability-topbar .courier-status span{
    font-size:9px !important;
    line-height:1.1 !important;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.topbar .courier-availability-topbar .courier-status small{
    display:none !important;
}

.topbar .courier-availability-topbar .courier-light{
    width:9px !important;
    height:9px !important;
    margin:0 !important;
    flex:0 0 9px !important;
}

/* Disponibilidad de mensajeria en cabecera */
.topbar .courier-availability-topbar .courier-status small {
    display: none !important;
}

.courier-tooltip {
    z-index: 3000 !important;
}

@media (min-width: 951px) {
    .topbar .courier-availability-topbar {
        max-width: 570px;
        min-width: 430px;
    }
}
@media(max-width:950px){
    .topbar .courier-availability-topbar{
        display:none !important;
    }
}


/* =========================================================
   NUEVA SOLICITUD - FORMULARIO COMPACTO / PROFESIONAL
   Solo visual. No modifica mapa ni funcionalidad.
   ========================================================= */

.wizard-form{
    padding:14px 16px;
    border-radius:12px;
    box-shadow:0 3px 14px rgba(15,58,86,.045);
}

/* Titulos de seccion */
.wizard-form h3{
    margin:4px 0 10px;
    font-size:15px;
    line-height:1.25;
    font-weight:750;
    color:#0f3a56;
}

/* Separadores */
.wizard-form hr{
    margin:14px 0;
    border-top-color:#dce6ec;
}

/* Rejilla mas compacta */
.wizard-form .form-grid{
    column-gap:14px;
    row-gap:8px;
}

/* Etiquetas */
.wizard-form label{
    margin:0 0 4px;
    font-size:11.5px;
    line-height:1.25;
    font-weight:700;
    color:#17384e;
}

/* Campos */
.wizard-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.wizard-form select{
    min-height:36px;
    height:36px;
    padding:6px 10px;
    border-radius:7px;
    font-size:13px;
    line-height:1.2;
}

/* Textareas mas discretos */
.wizard-form textarea{
    min-height:66px;
    padding:8px 10px;
    border-radius:7px;
    font-size:13px;
    line-height:1.4;
}

/* Textos auxiliares */
.wizard-form small{
    font-size:10.5px;
    line-height:1.3;
}

.wizard-form small.block{
    margin-top:3px;
}

/* Destino frecuente */
.wizard-form .frequent-destination{
    margin-bottom:8px;
}

.wizard-form .frequent-destination label{
    margin-top:0;
}

/* WhatsApp */
.wizard-form .switch-line{
    min-height:20px;
    margin:3px 0 0;
    gap:5px;
    font-size:10.5px;
    font-weight:600;
}

.wizard-form .switch-line input[type="checkbox"]{
    width:14px;
    height:14px;
    min-height:14px;
}

/* Zona de archivo */
.wizard-form .drop-zone{
    margin-top:2px;
    padding:9px 10px;
    border-radius:8px;
}

.wizard-form .drop-zone input[type="file"]{
    min-height:34px;
    padding:5px 8px;
    font-size:12px;
}

/* Botones finales */
.wizard-form .actions{
    margin-top:10px;
    gap:8px;
}

.wizard-form .actions .btn,
.wizard-form .actions button{
    min-height:34px;
    padding:7px 13px;
    border-radius:7px;
    font-size:12px;
}

/* Avisos */
.wizard-form .info-box,
.wizard-form .cutoff-note{
    font-size:11.5px;
    line-height:1.45;
}

/*
   IMPORTANTE:
   #address-map y .address-map NO se modifican.
   Leaflet conserva dimensiones y funcionamiento actuales.
*/

@media (max-width:760px){
    .wizard-form{
        padding:12px;
    }

    .wizard-form .form-grid{
        row-gap:7px;
    }

    .wizard-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
    .wizard-form select{
        height:38px;
        min-height:38px;
    }
}


/* =========================================================

/* =========================================================

/* =========================================================
   NUEVA SOLICITUD - LAYOUT LIMPIO FINAL
   No modifica mapa, Leaflet ni JavaScript
   ========================================================= */

.wizard-form-pro{
    display:grid !important;
    gap:10px !important;
    padding:0 !important;
    margin:0 !important;
    border:0 !important;
    background:transparent !important;
    box-shadow:none !important;
}

.wizard-form-pro .wizard-section{
    padding:0 14px 12px !important;
    background:#fff !important;
    border:1px solid #dbe5ec !important;
    border-radius:9px !important;
    box-shadow:0 1px 5px rgba(15,55,85,.04) !important;
}

.wizard-form-pro .wizard-section-head{
    display:flex !important;
    align-items:center !important;
    min-height:34px !important;
    margin:0 -14px 8px !important;
    padding:7px 14px !important;
    border-bottom:1px solid #e4ebf0 !important;
    background:#fbfcfd !important;
}

.wizard-form-pro .wizard-section-head h3{
    margin:0 !important;
    font-size:13px !important;
    line-height:1.2 !important;
    font-weight:700 !important;
}

.wizard-form-pro .wizard-section-head h3:before{
    content:"";
    width:7px;
    height:7px;
    margin-right:7px;
    border-radius:2px;
    background:#1687df;
}

.wizard-form-pro label{
    display:block !important;
    margin:0 0 3px !important;
    font-size:10.5px !important;
    line-height:1.2 !important;
    font-weight:650 !important;
}

.wizard-form-pro input:not([type=checkbox]):not([type=radio]):not([type=file]),
.wizard-form-pro select{
    width:100% !important;
    height:32px !important;
    min-height:32px !important;
    padding:5px 9px !important;
    font-size:11.5px !important;
    box-sizing:border-box !important;
}

.wizard-form-pro small{
    font-size:9px !important;
    line-height:1.25 !important;
}


/* =========================================================
   DATOS DE LA SOLICITUD
   ========================================================= */

.request-grid{
    display:grid !important;
    grid-template-columns:repeat(6,minmax(0,1fr)) !important;
    gap:7px 12px !important;
}

.request-grid>div{
    min-width:0 !important;
}

.request-grid>div:nth-of-type(1),
.request-grid>div:nth-of-type(2){
    grid-column:span 3 !important;
}

.request-grid>div:nth-of-type(3),
.request-grid>div:nth-of-type(4),
.request-grid>div:nth-of-type(5){
    grid-column:span 2 !important;
}

#campo-fecha-requerida,
#campo-fecha-limite{
    grid-column:span 3 !important;
}


/* =========================================================
   DESTINATARIO Y DIRECCION
   ========================================================= */

.wizard-section-recipient .frequent-destination{
    margin:0 0 8px !important;
}

.wizard-section-recipient>.form-grid{
    display:grid !important;
    grid-template-columns:repeat(12,minmax(0,1fr)) !important;
    column-gap:12px !important;
    row-gap:7px !important;
    align-items:start !important;
}

.wizard-section-recipient>.form-grid>div{
    min-width:0 !important;
    width:auto !important;
    grid-column:auto !important;
}

/* Nombre | Empresa */
.wizard-section-recipient>.form-grid>div:nth-of-type(1),
.wizard-section-recipient>.form-grid>div:nth-of-type(2){
    grid-column:span 6 !important;
}

/* Persona | Correo */
.wizard-section-recipient>.form-grid>div:nth-of-type(3),
.wizard-section-recipient>.form-grid>div:nth-of-type(4){
    grid-column:span 6 !important;
}

/* 4 campos de telefono */
.wizard-section-recipient>.form-grid>div:nth-of-type(5),
.wizard-section-recipient>.form-grid>div:nth-of-type(6),
.wizard-section-recipient>.form-grid>div:nth-of-type(7),
.wizard-section-recipient>.form-grid>div:nth-of-type(8){
    grid-column:span 3 !important;
}

/* Buscador */
.wizard-section-recipient>.form-grid>div:nth-of-type(9){
    grid-column:1/-1 !important;
}

/* Contenedor del mapa */
.wizard-section-recipient>.form-grid>div:nth-of-type(10){
    grid-column:1/-1 !important;
}

/*
   MAPA:
   No hay ninguna regla para #address-map
   No hay ninguna regla para .address-map
*/

/* Calle | Colonia | Municipio | Entidad | CP */
.wizard-section-recipient>.form-grid>div:nth-of-type(11){
    grid-column:span 3 !important;
}

.wizard-section-recipient>.form-grid>div:nth-of-type(12),
.wizard-section-recipient>.form-grid>div:nth-of-type(13),
.wizard-section-recipient>.form-grid>div:nth-of-type(14){
    grid-column:span 2 !important;
}

.wizard-section-recipient>.form-grid>div:nth-of-type(15){
    grid-column:span 3 !important;
}

/* Referencia | Edificio | Piso | Oficina */
.wizard-section-recipient>.form-grid>div:nth-of-type(16){
    grid-column:span 5 !important;
}

.wizard-section-recipient>.form-grid>div:nth-of-type(17),
.wizard-section-recipient>.form-grid>div:nth-of-type(18){
    grid-column:span 2 !important;
}

.wizard-section-recipient>.form-grid>div:nth-of-type(19){
    grid-column:span 3 !important;
}

.wizard-section-recipient .switch-line{
    display:flex !important;
    align-items:center !important;
    gap:5px !important;
    width:auto !important;
    min-height:15px !important;
    margin:3px 0 0 !important;
    font-size:9px !important;
    white-space:nowrap !important;
}

.wizard-section-recipient .switch-line input{
    width:13px !important;
    height:13px !important;
    min-height:13px !important;
    margin:0 !important;
}

.wizard-section-recipient .address-map-footer{
    margin-top:5px !important;
    font-size:10px !important;
}


/* =========================================================
   CONTENIDO Y OBSERVACIONES
   ========================================================= */

.content-grid{
    display:grid !important;
    grid-template-columns:repeat(12,minmax(0,1fr)) !important;
    gap:7px 12px !important;
    align-items:start !important;
}

.content-grid>div:nth-of-type(1),
.content-grid>div:nth-of-type(2){
    grid-column:span 6 !important;
}

.content-grid textarea{
    width:100% !important;
    height:48px !important;
    min-height:48px !important;
    padding:6px 8px !important;
    font-size:11.5px !important;
    box-sizing:border-box !important;
}

.content-grid .drop-zone{
    grid-column:span 6 !important;
    min-height:48px !important;
    margin:0 !important;
    padding:6px 8px !important;
}

.content-grid .actions{
    grid-column:span 6 !important;
    display:flex !important;
    justify-content:flex-end !important;
    align-items:flex-end !important;
    align-self:end !important;
    margin:0 !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media(max-width:900px){

    .request-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }

    .request-grid>div,
    #campo-fecha-requerida,
    #campo-fecha-limite{
        grid-column:auto !important;
    }

    .wizard-section-recipient>.form-grid{
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    }

    .wizard-section-recipient>.form-grid>div{
        grid-column:auto !important;
    }

    .wizard-section-recipient>.form-grid>div:nth-of-type(9),
    .wizard-section-recipient>.form-grid>div:nth-of-type(10),
    .wizard-section-recipient>.form-grid>div:nth-of-type(11),
    .wizard-section-recipient>.form-grid>div:nth-of-type(16){
        grid-column:1/-1 !important;
    }
}


/* =========================================================

/* =========================================================
   DHL FINAL - DOCUMENTO / CAJA / INFORMACION
   Solo visual
   ========================================================= */

/* Referencia y modalidad */
.wizard-form-pro .wizard-section-recipient
.form-grid > div:has(> input[name="referencia"]){
    grid-column:span 6 !important;
}

.wizard-form-pro .wizard-section-recipient
.form-grid > div:has(> select[name="modalidad"]){
    grid-column:span 6 !important;
}

/* Selector Documento/Caja */
.wizard-form-pro .wizard-section-recipient
.form-grid > div:has(> .shipping-type-grid){
    grid-column:span 8 !important;
    min-width:0 !important;
}

/* Informacion DHL */
.wizard-form-pro .wizard-section-recipient
.form-grid > #documento-info{
    grid-column:span 4 !important;
    min-width:0 !important;
}

/* Dos tarjetas */
.wizard-form-pro .shipping-type-grid{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:14px !important;
    width:100% !important;
    margin:5px 0 0 !important;
}

/* Tarjeta */
.wizard-form-pro .shipping-type-card{
    display:grid !important;
    grid-template-columns:20px minmax(0,1fr) !important;
    gap:10px !important;
    align-items:start !important;

    width:100% !important;
    min-width:0 !important;
    min-height:96px !important;

    margin:0 !important;
    padding:14px !important;

    border:1px solid #cbd9e5 !important;
    border-radius:11px !important;
    background:#fff !important;

    box-sizing:border-box !important;
    cursor:pointer !important;
}

/* Radio */
.wizard-form-pro .shipping-type-card > input[type="radio"]{
    width:16px !important;
    height:16px !important;
    min-height:16px !important;
    margin:5px 0 0 !important;
    padding:0 !important;
    accent-color:#1687e8 !important;
}

/* Texto */
.wizard-form-pro .shipping-type-card > span{
    position:relative !important;
    display:block !important;
    min-width:0 !important;
    padding-left:62px !important;
}

/* Caja visual del icono */
.wizard-form-pro .shipping-type-card > span:before{
    position:absolute !important;
    left:0 !important;
    top:0 !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:46px !important;
    height:46px !important;

    border:1px solid #d3e1ec !important;
    border-radius:10px !important;
    background:#f6faff !important;

    font-size:24px !important;
    line-height:1 !important;
    color:#126ac1 !important;
}

/* Icono documento */
.wizard-form-pro .shipping-type-card
input[value="documento"] + span:before{
    content:"▤" !important;
}

/* Icono caja */
.wizard-form-pro .shipping-type-card
input[value="caja"] + span:before{
    content:"◆" !important;
    color:#154968 !important;
}

/* Titulos */
.wizard-form-pro .shipping-type-card strong{
    display:block !important;
    margin:2px 0 5px !important;

    font-size:12.5px !important;
    line-height:1.2 !important;
    font-weight:750 !important;

    color:#102f49 !important;
}

/* Descripcion */
.wizard-form-pro .shipping-type-card small{
    display:block !important;
    margin:0 !important;

    font-size:10.5px !important;
    line-height:1.4 !important;
    font-weight:400 !important;

    color:#526c82 !important;
}

/* Tarjeta seleccionada */
.wizard-form-pro .shipping-type-card:has(input:checked){
    border-color:#1687e8 !important;
    background:#f7fbff !important;
    box-shadow:0 0 0 1px #1687e8 !important;
}

/* Documento DHL */
.wizard-form-pro #documento-info{
    position:relative !important;

    width:100% !important;
    min-height:96px !important;

    margin:24px 0 0 !important;
    padding:15px 15px 14px 56px !important;

    border:1px solid #bfe1e2 !important;
    border-radius:11px !important;
    background:#eff9f8 !important;

    box-sizing:border-box !important;

    color:#315e64 !important;
    font-size:10.5px !important;
    line-height:1.45 !important;
}

/* Icono informacion */
.wizard-form-pro #documento-info:before{
    content:"i" !important;

    position:absolute !important;
    left:16px !important;
    top:16px !important;

    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    width:27px !important;
    height:27px !important;

    border-radius:50% !important;
    background:#2498a5 !important;
    color:#fff !important;

    font-size:15px !important;
    font-weight:800 !important;
}

/* Titulo informacion */
.wizard-form-pro #documento-info strong{
    display:block !important;
    margin:0 0 5px !important;

    color:#154957 !important;
    font-size:12.5px !important;
    font-weight:750 !important;
}

/* Quitar salto original */
.wizard-form-pro #documento-info strong + br{
    display:none !important;
}

/* Movil */
@media(max-width:900px){

    .wizard-form-pro .wizard-section-recipient
    .form-grid > div:has(> .shipping-type-grid),

    .wizard-form-pro .wizard-section-recipient
    .form-grid > #documento-info{
        grid-column:1/-1 !important;
    }

    .wizard-form-pro #documento-info{
        margin-top:0 !important;
    }
}

@media(max-width:650px){

    .wizard-form-pro .shipping-type-grid{
        grid-template-columns:1fr !important;
    }
}


/* =========================================================
   AJUSTE FINAL - ALINEAR DOCUMENTO DHL
   ========================================================= */

.wizard-form-pro #documento-info{
    margin:5px 0 0 !important;
    min-height:96px !important;
    align-self:stretch !important;
}

.wizard-form-pro .wizard-section-recipient
.form-grid > #documento-info{
    align-self:start !important;
}


/* =========================================================
   DHL - ALINEACION EXACTA DE LOS TRES BLOQUES
   Documento | Caja/Paquete | Documento DHL
   ========================================================= */

/* El contenedor de Documento/Caja y Documento DHL
   comienzan exactamente a la misma altura */
.wizard-form-pro .wizard-section-recipient
.form-grid > div:has(> .shipping-type-grid),

.wizard-form-pro .wizard-section-recipient
.form-grid > #documento-info{
    margin-top:0 !important;
    align-self:start !important;
}

/* El grid no agrega desplazamiento */
.wizard-form-pro .shipping-type-grid{
    margin:0 !important;
    align-items:stretch !important;
}

/* Documento y Caja exactamente iguales */
.wizard-form-pro .shipping-type-card{
    height:96px !important;
    min-height:96px !important;
    max-height:96px !important;
    margin:0 !important;
    box-sizing:border-box !important;
}

/* Documento DHL exactamente a la misma altura */
.wizard-form-pro #documento-info{
    height:96px !important;
    min-height:96px !important;
    max-height:96px !important;
    margin:0 !important;
    box-sizing:border-box !important;
}

/* Centrado vertical interno de Documento y Caja */
.wizard-form-pro .shipping-type-card{
    align-items:center !important;
}

/* El radio centrado */
.wizard-form-pro .shipping-type-card > input[type="radio"]{
    align-self:center !important;
    margin:0 !important;
}

/* Icono + textos centrados verticalmente */
.wizard-form-pro .shipping-type-card > span{
    min-height:58px !important;
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
}

/* Icono centrado respecto a la tarjeta */
.wizard-form-pro .shipping-type-card > span:before{
    top:50% !important;
    transform:translateY(-50%) !important;
}

/* Contenido de Documento DHL centrado verticalmente */
.wizard-form-pro #documento-info{
    display:flex !important;
    flex-direction:column !important;
    justify-content:center !important;
    padding-top:10px !important;
    padding-bottom:10px !important;
}

/* Icono i centrado verticalmente */
.wizard-form-pro #documento-info:before{
    top:50% !important;
    transform:translateY(-50%) !important;
}


/* AJUSTE PUNTUAL - ALINEAR DOCUMENTO DHL CON LAS DOS TARJETAS */
.wizard-form-pro #documento-info{
    margin-top:16px !important;
}


/* =========================================================
   DHL - ALINEACION REAL CON DOCUMENTO Y CAJA
   ========================================================= */

.wizard-form-pro .wizard-section-recipient
.form-grid > #documento-info{
    margin-top:16px !important;
    align-self:start !important;
}


/* =========================================================
   DHL - ICONOS FINALES DOCUMENTO Y CAJA
   SOLO ICONOS
   ========================================================= */

/* Caja exterior del icono: conservar tamaño actual */
.wizard-form-pro .shipping-type-card > span:before{
    font-family:Arial,sans-serif !important;
    font-weight:700 !important;
}

/* DOCUMENTO: hoja azul */
.wizard-form-pro .shipping-type-card
input[value="documento"] + span:before{
    content:"▤" !important;

    color:#086bd8 !important;
    background:#f7fbff !important;

    font-size:29px !important;
    font-weight:400 !important;
    line-height:1 !important;
}

/* CAJA: cubo azul oscuro */
.wizard-form-pro .shipping-type-card
input[value="caja"] + span:before{
    content:"⬢" !important;

    color:#123f59 !important;
    background:#f7fbff !important;

    font-size:27px !important;
    font-weight:400 !important;
    line-height:1 !important;

    transform:
        translateY(-50%)
        rotate(30deg) !important;
}


/* =========================================================
   DHL - ICONOS REALES DOCUMENTO Y CAJA
   SOLO ICONOS
   ========================================================= */

/* Base */
.wizard-form-pro .shipping-type-card > span:before{
    content:"" !important;
    background-color:#f7fbff !important;
    background-repeat:no-repeat !important;
    background-position:center !important;
    background-size:30px 30px !important;

    top:50% !important;
    transform:translateY(-50%) !important;
}

/* DOCUMENTO */
.wizard-form-pro .shipping-type-card
input[value="documento"] + span:before{
    content:"" !important;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M8 3.5h10l6 6V28.5H8V3.5Z' stroke='%230A70D9' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M18 3.5v6h6' stroke='%230A70D9' stroke-width='2.4' stroke-linejoin='round'/%3E%3Cpath d='M11.5 15h9M11.5 19h9M11.5 23h7' stroke='%230A70D9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;
}

/* CAJA / PAQUETE */
.wizard-form-pro .shipping-type-card
input[value="caja"] + span:before{
    content:"" !important;

    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32' fill='none'%3E%3Cpath d='M16 3.5 27 9.5v13L16 28.5 5 22.5v-13L16 3.5Z' stroke='%23153F59' stroke-width='2.3' stroke-linejoin='round'/%3E%3Cpath d='M5 9.5 16 15.5 27 9.5M16 15.5v13M10.5 6.5 21.5 12.5' stroke='%23153F59' stroke-width='2.3' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

    transform:translateY(-50%) !important;
}


/* =========================================================
   FIX DEFINITIVO ICONOS DHL
   Un solo icono centrado por tarjeta
   ========================================================= */

/* Limpiar completamente los intentos anteriores */
.wizard-form-pro .shipping-type-card > span:before{
    content:"" !important;

    position:absolute !important;
    left:7px !important;
    top:50% !important;
    transform:translateY(-50%) !important;

    width:46px !important;
    height:46px !important;

    display:block !important;

    border:1px solid #d3e1ec !important;
    border-radius:10px !important;

    background-color:#f7fbff !important;
    background-image:none !important;
    background-repeat:no-repeat !important;
    background-position:center !important;
    background-size:auto !important;

    box-sizing:border-box !important;

    font-size:0 !important;
    line-height:0 !important;

    overflow:hidden !important;
}

/* DOCUMENTO: un solo SVG centrado */
.wizard-form-pro .shipping-type-card
input[value="documento"] + span:before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M9 3h10l5 5v21H9z' fill='none' stroke='%230b70d1' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M19 3v6h5' fill='none' stroke='%230b70d1' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M13 15h7M13 19h7M13 23h7' fill='none' stroke='%230b70d1' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") !important;

    background-size:27px 27px !important;
    background-position:center !important;
    background-repeat:no-repeat !important;
}

/* CAJA: un solo cubo centrado */
.wizard-form-pro .shipping-type-card
input[value="caja"] + span:before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16 3.5 27 9.5 16 15.5 5 9.5 16 3.5Z' fill='none' stroke='%230e4665' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M5 9.5v13L16 28.5v-13L5 9.5Z' fill='none' stroke='%230e4665' stroke-width='2.2' stroke-linejoin='round'/%3E%3Cpath d='M27 9.5v13L16 28.5v-13L27 9.5Z' fill='none' stroke='%230e4665' stroke-width='2.2' stroke-linejoin='round'/%3E%3C/svg%3E") !important;

    background-size:28px 28px !important;
    background-position:center !important;
    background-repeat:no-repeat !important;
}


/* =========================================================
   DHL - MODALIDAD ARRIBA
   Referencia completa al retirar Modalidad inferior
   ========================================================= */

.wizard-form-pro:has(input[name="tipo"][value="paqueteria"])
.wizard-section-recipient
.form-grid > div:has(> input[name="referencia"]){
    grid-column:1 / -1 !important;
}


/* =========================================================
   RUTA DEL SERVICIO - PUNTO A / PUNTO B
   ========================================================= */

.wizard-form-pro .route-point{
    position:relative;
    padding:12px 14px;
    border:1px solid #dbe6ee;
    border-radius:10px;
    background:#fff;
}

.wizard-form-pro .route-point-title{
    display:flex;
    align-items:center;
    gap:10px;
    margin-bottom:10px;
}

.wizard-form-pro .route-point-letter{
    display:flex;
    align-items:center;
    justify-content:center;
    width:28px;
    height:28px;
    min-width:28px;
    border-radius:50%;
    font-size:12px;
    font-weight:800;
    color:#fff;
}

.wizard-form-pro .route-point-origin .route-point-letter{
    background:#1687e8;
}

.wizard-form-pro .route-point-destination .route-point-letter{
    background:#0f6b55;
}

.wizard-form-pro .route-point-title strong{
    display:block;
    margin:0 0 2px;
    font-size:12.5px;
    line-height:1.2;
    color:#12344d;
}

.wizard-form-pro .route-point-title small{
    display:block;
    margin:0;
    font-size:10.5px;
    line-height:1.3;
    color:#6a7d8d;
}

.wizard-form-pro .route-point-separator{
    position:relative;
    height:22px;
}

.wizard-form-pro .route-point-separator:before{
    content:"";
    position:absolute;
    left:28px;
    top:0;
    bottom:0;
    width:1px;
    background:#cbd8e2;
}

.wizard-form-pro .route-point-separator span:after{
    content:"";
    position:absolute;
    left:25px;
    bottom:2px;
    width:6px;
    height:6px;
    border-right:1px solid #8296a8;
    border-bottom:1px solid #8296a8;
    transform:rotate(45deg);
}

.wizard-form-pro .route-origin-selector{
    margin-top:0;
}

.wizard-form-pro #origen-frecuente-wrap,
.wizard-form-pro #origen-nuevo-wrap{
    margin-top:4px;
}

.wizard-form-pro #origen_geo_status{
    margin-top:6px;
}

.route-ab-marker{
    background:transparent !important;
    border:none !important;
}

@media(max-width:760px){

    .wizard-form-pro .route-point{
        padding:10px;
    }

    .wizard-form-pro .route-point-separator:before{
        left:24px;
    }

    .wizard-form-pro .route-point-separator span:after{
        left:21px;
    }
}


/* =========================================================
   RUTA A-B - ACORDEON INDEPENDIENTE
   ========================================================= */

.wizard-form-pro .route-point-title{
    position:relative;
    cursor:pointer;
    user-select:none;
    padding-right:38px;
    margin-bottom:0 !important;
}

/* Flecha derecha */
.wizard-form-pro .route-point-title::after{
    content:"";
    position:absolute;
    right:12px;
    top:50%;

    width:7px;
    height:7px;

    border-right:2px solid #71869a;
    border-bottom:2px solid #71869a;

    transform:
        translateY(-65%)
        rotate(45deg);

    transition:transform .18s ease;
}

/* Flecha cuando esta abierto */
.wizard-form-pro .route-point.route-point-open
.route-point-title::after{
    transform:
        translateY(-35%)
        rotate(225deg);
}

/* Contenido */
.wizard-form-pro .route-point-body{
    display:none;
    padding-top:10px;
}

/* Abierto */
.wizard-form-pro .route-point.route-point-open
.route-point-body{
    display:block;
}

/* Tarjeta cerrada mas compacta */
.wizard-form-pro .route-point:not(.route-point-open){
    padding-top:10px !important;
    padding-bottom:10px !important;
}

/* Boton Listo */
.wizard-form-pro .route-point-done{
    display:flex;
    justify-content:flex-end;
    margin-top:10px;
    padding-top:9px;
    border-top:1px solid #e4ebf1;
}

.wizard-form-pro .route-point-done button{
    min-height:30px;
    padding:5px 14px;

    border:1px solid #c7d6e2;
    border-radius:8px;

    background:#f4f8fb;
    color:#173b56;

    font-size:11px;
    font-weight:700;

    cursor:pointer;
}

.wizard-form-pro .route-point-done button:hover{
    background:#eaf2f8;
}

/* Separador A -> B */
.wizard-form-pro .route-point-separator{
    height:18px !important;
}

/* Marcadores Leaflet siguen intactos */
.route-ab-marker{
    background:transparent !important;
    border:none !important;
}


/* =========================================================
   MAPA DESTINO B - ANCHO COMPLETO
   Solo layout. No modifica Leaflet ni acordeon.
   ========================================================= */

/* Buscador de direccion B */
.wizard-form-pro .route-point-destination
.form-grid > div:has(> #direccion_busqueda){
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:none !important;
}

/* Contenedor del mapa B */
.wizard-form-pro .route-point-destination
.form-grid > div:has(> #address-map){
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:none !important;
}

/* El mapa ocupa todo su contenedor */
.wizard-form-pro .route-point-destination #address-map{
    width:100% !important;
    max-width:none !important;
    height:300px !important;
    box-sizing:border-box !important;
}

/* Footer del mapa también completo */
.wizard-form-pro .route-point-destination
.address-map-footer{
    width:100% !important;
    max-width:none !important;
}


/* =========================================================
   FIX DEFINITIVO ANCHO PUNTO B
   ========================================================= */

/*
 * En el Punto B, cualquier bloque span-2 debe ocupar
 * TODA la fila del grid.
 */
.wizard-form-pro
.route-point-destination
.form-grid > .span-2{
    grid-column:1 / -1 !important;
    width:100% !important;
    min-width:0 !important;
    max-width:none !important;
}

/* Buscador */
.wizard-form-pro
.route-point-destination
#direccion_busqueda{
    width:100% !important;
    max-width:none !important;
}

/* Mapa */
.wizard-form-pro
.route-point-destination
#address-map{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    height:300px !important;
}

/* Footer inferior del mapa */
.wizard-form-pro
.route-point-destination
.address-map-footer{
    width:100% !important;
    max-width:none !important;
}


/* =========================================================
   PUNTO B - RESTAURAR GRID ANCHO COMPLETO
   Recupera el ancho que tenia Destinatario y direccion
   antes de introducir la estructura A -> B.
   ========================================================= */

.wizard-form-pro
.route-point-destination
> .route-point-body
> .form-grid{
    display:grid !important;
    grid-template-columns:repeat(12,minmax(0,1fr)) !important;
    column-gap:12px !important;
    row-gap:7px !important;
    width:100% !important;
    max-width:none !important;
}

/* Buscador de direccion */
.wizard-form-pro
.route-point-destination
> .route-point-body
> .form-grid
> div:has(> #direccion_busqueda){
    grid-column:1 / -1 !important;
    width:100% !important;
}

/* Bloque que contiene el mapa */
.wizard-form-pro
.route-point-destination
> .route-point-body
> .form-grid
> div:has(> #address-map){
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:none !important;
}

/* Mapa */
.wizard-form-pro
.route-point-destination
#address-map{
    width:100% !important;
    max-width:none !important;
    height:300px !important;
}


/* =========================================================
   PUNTO A - MAPA DE ORIGEN
   Mismo tamaño visual que mapa B
   ========================================================= */

.wizard-form-pro
.route-point-origin
.origen-map-wrap{
    grid-column:1 / -1 !important;
    width:100% !important;
    max-width:none !important;
}

.wizard-form-pro
.route-point-origin
#origin-map{
    display:block !important;
    width:100% !important;
    max-width:none !important;
    height:300px !important;
}


/* =========================================================
   MENSAJERIA - CONTROLES MAPA A/B
   ========================================================= */

.route-map-tabs{
    display:flex;
    align-items:center;
    gap:6px;
    margin:0 0 8px;
    flex-wrap:wrap;
}

.route-map-tab{
    appearance:none;
    border:1px solid #cbd8e6;
    background:#fff;
    color:#36536b;
    min-height:30px;
    padding:5px 11px;
    border-radius:7px;
    font:inherit;
    font-size:12px;
    font-weight:600;
    line-height:1.2;
    cursor:pointer;
}

.route-map-tab:hover{
    background:#f3f7fa;
    border-color:#aebfd0;
}

.route-map-tab.active{
    background:#eaf4fb;
    border-color:#1687e8;
    color:#126ebc;
}

#origin-streetview,
#destination-streetview{
    width:100%;
    max-width:none;
    height:300px;
}



/* =========================================================
   MENSAJERIA - PUNTO B / DESTINO
   Alineacion visual igual al Punto A
   No modifica Punto A, mapas ni comportamiento JS
   ========================================================= */

@media (min-width:761px){

    .wizard-form-pro
    .route-point-destination
    > .form-grid{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
        gap:12px !important;
        align-items:start !important;
    }

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div{
        grid-column:auto !important;
        min-width:0 !important;
        width:auto !important;
        max-width:none !important;
    }

    /* Elementos que deben ocupar todo el ancho */
    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > .span-2{
        grid-column:1 / -1 !important;
        width:100% !important;
        max-width:none !important;
    }

    /* Buscador de direccion */
    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > .address-search-wrap{
        grid-column:1 / -1 !important;
    }

    /* Referencia */
    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:has(> input[name="referencia"]){
        grid-column:1 / -1 !important;
    }

    /* Todos los controles ocupan su columna completa */
    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div
    > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div
    > select,
    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div
    > textarea{
        width:100% !important;
        max-width:none !important;
        box-sizing:border-box !important;
    }

}

/* Movil: una sola columna */
@media (max-width:760px){

    .wizard-form-pro
    .route-point-destination
    > .form-grid{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) !important;
    }

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div,
    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > .span-2{
        grid-column:1 !important;
        width:100% !important;
        max-width:none !important;
    }

}



/* =========================================================
   MENSAJERIA - PUNTO B
   GRID VISUAL LIMPIO 2 COLUMNAS
   ========================================================= */

@media (min-width:761px){

    /* Grid principal B */
    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid{
        display:grid !important;
        grid-template-columns:repeat(2,minmax(0,1fr)) !important;
        column-gap:12px !important;
        row-gap:7px !important;
        width:100% !important;
        align-items:start !important;
    }

    /* Reset de distribuciones antiguas */
    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div{
        grid-column:auto !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
    }

    /* Nombre | Empresa */
    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div:nth-of-type(1),

    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div:nth-of-type(2),

    /* Persona | Correo */
    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div:nth-of-type(3),

    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div:nth-of-type(4),

    /* Telefonos */
    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div:nth-of-type(5),

    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div:nth-of-type(6),

    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div:nth-of-type(7),

    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div:nth-of-type(8){
        grid-column:span 1 !important;
    }

    /* Buscador */
    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > .address-search-wrap{
        grid-column:1 / -1 !important;
    }

    /* Mapa */
    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div:has(#address-map){
        grid-column:1 / -1 !important;
        width:100% !important;
    }

    /* Calle y numero */
    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div:has(> #calle_numero){
        grid-column:1 / -1 !important;
    }

    /* Referencia */
    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div:has(> input[name="referencia"]){
        grid-column:1 / -1 !important;
    }

    /* Todos los inputs/selects normales llenan su columna */
    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div
    > input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),

    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div
    > select,

    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div
    > textarea{
        width:100% !important;
        max-width:none !important;
        box-sizing:border-box !important;
    }

}


/* Movil */
@media (max-width:760px){

    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) !important;
        gap:7px !important;
    }

    .wizard-form-pro
    .route-point.route-point-destination
    > .form-grid
    > div{
        grid-column:1 !important;
        width:100% !important;
    }

}



/* =========================================================
   PUNTO B - SOLO ALINEACION DE CAMPOS
   No agrega ni elimina campos.
   ========================================================= */

@media (min-width:761px){

    /*
     * IMPORTANTE:
     * sin ">" para que funcione aunque el acordeon
     * coloque contenedores intermedios.
     */
    .wizard-form-pro
    .route-point-destination
    .form-grid{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
        column-gap:14px !important;
        row-gap:10px !important;
        align-items:start !important;
        width:100% !important;
    }

    /*
     * Reset exclusivo de los campos existentes de B.
     */
    .wizard-form-pro
    .route-point-destination
    .form-grid > div{
        grid-column:auto !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
    }

    /*
     * Todos los controles normales ocupan
     * completamente su columna.
     */
    .wizard-form-pro
    .route-point-destination
    .form-grid > div > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
    .wizard-form-pro
    .route-point-destination
    .form-grid > div > select,
    .wizard-form-pro
    .route-point-destination
    .form-grid > div > textarea{
        display:block !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        box-sizing:border-box !important;
    }

    /*
     * Lo que YA tiene span-2 conserva ancho completo:
     * buscador, mapa y otros bloques existentes.
     */
    .wizard-form-pro
    .route-point-destination
    .form-grid > .span-2{
        grid-column:1 / -1 !important;
        width:100% !important;
        max-width:none !important;
    }

    /*
     * Calle y numero a todo lo ancho.
     */
    .wizard-form-pro
    .route-point-destination
    .form-grid > div:has(#calle_numero){
        grid-column:1 / -1 !important;
    }

    /*
     * Referencia a todo lo ancho.
     */
    .wizard-form-pro
    .route-point-destination
    .form-grid > div:has(input[name="referencia"]){
        grid-column:1 / -1 !important;
    }

}


/* Movil: una sola columna */
@media (max-width:760px){

    .wizard-form-pro
    .route-point-destination
    .form-grid{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) !important;
        gap:10px !important;
    }

    .wizard-form-pro
    .route-point-destination
    .form-grid > div,
    .wizard-form-pro
    .route-point-destination
    .form-grid > .span-2{
        grid-column:1 !important;
        width:100% !important;
    }

}



/* =========================================================
   PUNTO B - ALINEACION DEFINITIVA IGUAL AL PUNTO A
   SOLO DISTRIBUCION VISUAL
   NO AGREGA / ELIMINA CAMPOS
   ========================================================= */

@media (min-width:761px){

    /*
     * B trabaja en DOS columnas iguales,
     * igual que el Punto A.
     */
    .wizard-form-pro
    .route-point-destination
    > .form-grid{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
        column-gap:12px !important;
        row-gap:7px !important;
        align-items:start !important;
        width:100% !important;
    }

    /*
     * ANULA todos los span/nth-of-type viejos
     * del antiguo grid de 12 columnas.
     */
    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div{
        grid-column:auto !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
    }

    /*
     * Controles normales llenan su columna.
     */
    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div
    > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div
    > select,

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div
    > textarea{
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        box-sizing:border-box !important;
    }


    /* =====================================================
       FILAS SUPERIORES

       1  Nombre                 | 2 Empresa
       3  Persona recibe         | 4 Correo
       5  Telefono principal     | 6 Tipo telefono
       7  Telefono alterno       | 8 Tipo alterno
       ===================================================== */

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(1),

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(2),

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(3),

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(4),

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(5),

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(6),

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(7),

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(8){
        grid-column:span 1 !important;
    }


    /*
     * 9 = Buscar direccion
     * 10 = Mapa
     * ambos a TODO EL ANCHO.
     */
    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(9),

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(10){
        grid-column:1 / -1 !important;
        width:100% !important;
    }


    /*
     * 11 = Calle y numero
     * TODO EL ANCHO, igual que A.
     */
    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(11){
        grid-column:1 / -1 !important;
    }


    /* =====================================================
       DIRECCION

       12 Colonia       | 13 Municipio
       14 Entidad       | 15 Codigo postal
       16 Referencia    -> ancho completo
       17 Edificio      | 18 Piso
       19 Oficina       |
       ===================================================== */

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(12),

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(13),

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(14),

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(15),

    .wizard-form-pro
    .route-point-destinati
    > .form-grid
    > div:nth-of-type(17),

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(18),

    .wizard-form-pro
    .route-point-destination
    > .form-gri
    > div:nth-of-type(19){
        grid-column:span 1 !important;
    }

    /*
     * Referencia a todo el ancho.
     */
    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div:nth-of-type(16){
        grid-column:1 / -1 !important;
    }


    /*
     * Buscador y mapa mantienen todo el ancho.
     */
    .wiza
    .route-point-destination
    > .form-grid
    > .span-2{
        grid-column:1 / -1 !important;
        width:100% !important;
        max-width:none !important;
    }

}


/* MOVIL */
@media (max-width:760px){

    .wizard-form-pro
    .route-point-destination
    > .form-grid{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) !important;
    }

    .wizard-form-pro
    .route-point-destination
    > .form-grid
    > div{
        grid-column:1 !important;
        width:100% !important;
    }

}



/* =========================================================
   PUNTO B - GRID REAL DENTRO DEL ACORDEON
   SOLO ALINEACION. NO MODIFICA CAMPOS.
   ========================================================= */

@media (min-width:761px){

    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid{
        display:grid !important;
        grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
        column-gap:12px !important;
        row-gap:7px !important;
        align-items:start !important;
        width:100% !important;
        max-width:none !important;
    }


    /* Reset de los tamaños viejos */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div{
        grid-column:auto !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
    }


    /* Nombre | Empresa */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(1),

    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(2),

    /* Persona recibe | Correo */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(3),

    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(4),

    /* Telefono | Tipo */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(5),

    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(6),

    /* Alterno | Tipo alterno */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(7),

    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(8){
        grid-column:span 1 !important;
    }


    /* Buscar direccion */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(9){
        grid-column:1 / -1 !important;
    }


    /* Mapa */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(10){
        grid-column:1 / -1 !important;
    }


    /* Calle y numero */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(11){
        grid-column:1 / -1 !important;
    }


    /* Colonia | Municipio */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(12),

    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(13),

    /* Entidad | Codigo postal */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(14),

    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(15),

    /* Edificio | Piso */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(17),

    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(18),

    /* Oficina */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(19){
        grid-column:span 1 !important;
    }


    /* Referencia */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div:nth-of-type(16){
        grid-column:1 / -1 !important;
    }


    /* Inputs y selects llenan su columna */
    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div
    > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),

    .wizard-form-pro
    .route-p
    > .route-point-body
    > .form-grid
    > div
    > select,

    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div
    > textarea{
        width:100% !important;
        max-width:none !important;
        box-sizing:border-box !important;
    }

}


/* MOVIL */
@media (max-width:760px){

    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid{
        grid-template-columns:minmax(0,1fr) !important;
    }

    .wizard-form-pro
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div{
        grid-column:1 !important;
        width:100% !important;
    }

}



/* =========================================================
   SOLO ENVIO DHL - MODULO B
   ENTREGA LOCAL NO SE TOCA
   ========================================================= */

@media (min-width:761px){

    /*
     * Solamente formularios tipo PAQUETERIA.
     */
    .wizard-form-pro:has(> input[name="tipo"][value="paqueteria"])
    .route-point-destination
    > .route-point-body
    > .form-grid{
        display:grid !important;
        grid-template-columns:
            minmax(0,1fr)
            minmax(0,1fr) !important;
        column-gap:12px !important;
        row-gap:8px !important;
        width:100% !important;
        max-width:none !important;
        align-items:start !important;
    }


    /*
     * Campos normales DHL:
     * dos columnas iguales.
     */
    .wizard-form-pro:has(> input[name="tipo"][value="paqueteria"])
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div{
        grid-column:auto !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        box-sizing:border-box !important;
    }


    /*
     * Todo lo que YA ES span-2
     * ocupa las dos columnas.
     *
     * Incluye:
     * buscador
     * mapa
     * calle y numero
     * referencia
     * que se enviara
     * documento DHL
     * medidas de caja
     */
    .wizard-form-pro:has(> input[name="tipo"][value="paqueteria"])
    .route-point-destination
    > .route-point-body
    > .form-grid
    > .span-2{
        grid-column:1 / -1 !important;
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
    }


    /*
     * Mapa DHL completo.
     */
    .wizard-form-pro:has(> input[name="tipo"][value="paqueteria"])
    .route-point-destination
    #address-map,

    .wizard-form-pro:has(> input[name="tipo"][value="paqueteria"])
    .route-point-destination
    #destination-streetview{
        width:100% !important;
        max-width:none !important;
        height:300px !important;
        box-sizing:border-box !important;
    }


    /*
     * Buscador completo.
     */
    .wizard-form-pro:has(> input[name="tipo"][value="paqueteria"])
    .route-point-destination
    #direccion_busqueda{
        width:100% !important;
        max-width:none !important;
    }


    /*
     * Inputs y selects DHL llenan su columna.
     */
    .wizard-form-pro:has(> input[name="tipo"][value="paqueteria"])
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div
    > input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),

    .wizard-form-pro:has(> input[name="tipo"][value="paqueteria"])
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div
    > select,

    .wizard-form-pro:has(> input[name="tipo"][value="paqueteria"])
    .route-point-destination
    > .route-point-body
    > .form-grid
    > div
    > textarea{
        width:100% !important;
        min-width:0 !important;
        max-width:none !important;
        box-sizing:border-box !important;
    }


    /*
     * Tarjetas Documento / Caja:
     * quedan dentro de su bloque ancho completo.
     */
    .wizard-form-pro:has(> input[name="tipo"][value="paqueteria"])
    .route-point-destination
    .shipping-type-grid{
        width:100% !important;
        max-width:none !important;
    }


    /*
     * Bloques informativos DHL:
     * ancho completo.
     */
    .wizard-form-pro:has(> input[name="tipo"][value="paqueteria"])
    .route-point-destination
    #documento-info,

    .wizard-form-pro:has(> input[name="tipo"][value="paqueteria"])
    .route-point-destination
    #caja-medidas{
        grid-column:1 / -1 !important;
        width:100% !important;
        max-width:none !important;
    }

}


/* =========================================================
   ACTIVIDAD RECIENTE - DESTINATARIO + SOLICITANTE
   ========================================================= */

body.dashboard-layout .dm-activity-row{
    min-height:62px !important;
    padding-top:8px;
    padding-bottom:8px;
}

.dm-activity-info .dm-activity-destino,
.dm-activity-info .dm-activity-solicitante{
    display:block;
    margin-top:2px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.dm-activity-info .dm-activity-destino{
    color:#607d99;
}

.dm-activity-info .dm-activity-solicitante{
    color:#355b7a;
}

.dm-activity-info .dm-activity-destino b,
.dm-activity-info .dm-activity-solicitante b{
    font-weight:700;
    color:#31516d;
}

/* =========================================================
   HISTORIAL MENSAJERO - TABLA FINA EN UNA SOLA LINEA
   ========================================================= */

.historial-table{
    table-layout:auto;
    width:100%;
}

.historial-table th,
.historial-table td{
    padding:9px 9px !important;
    white-space:nowrap;
    vertical-align:middle;
}

.historial-table th{
    font-size:11px;
}

.historial-table td{
    font-size:13px;
}

.historial-table th:nth-child(1),
.historial-table td:nth-child(1){
    width:138px;
}

.historial-table th:nth-child(2),
.historial-table td:nth-child(2){
    width:225px;
}

.historial-table th:nth-child(3),
.historial-table td:nth-child(3){
    width:auto;
}

.historial-table td:nth-child(3){
    max-width:480px;
    overflow:hidden;
    text-overflow:ellipsis;
}

.historial-table th:nth-child(4),
.historial-table td:nth-child(4){
    width:105px;
}

.historial-table th:nth-child(5),
.historial-table td:nth-child(5){
    width:90px;
}

.historial-table th:nth-child(6),
.historial-table td:nth-child(6){
    width:105px;
}

.historial-table td:nth-child(1) strong{
    white-space:nowrap;
}

.historial-table td:nth-child(2) small{
    margin-top:2px;
    font-size:11px;
    line-height:1.1;
}



/* =========================================================
   HISTORIAL MENSAJERO - 8 COLUMNAS / ZOOM 100%
   ========================================================= */

.historial-table{
    width:100% !important;
    table-layout:fixed !important;
}

.historial-table th,
.historial-table td{
    padding:8px 5px !important;
    vertical-align:middle;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* FOLIO */
.historial-table th:nth-child(1),
.historial-table td:nth-child(1){
    width:12% !important;
}

/* SOLICITADO POR */
.historial-table th:nth-child(2),
.historial-table td:nth-child(2){
    width:14% !important;
}

/* DESTINO */
.historial-table th:nth-child(3),
.historial-table td:nth-child(3){
    width:15% !important;
}

/* DIRECCION */
.historial-table th:nth-child(4),
.historial-table td:nth-child(4){
    width:27% !important;
}

/* RUTA */
.historial-table th:nth-child(5),
.historial-table td:nth-child(5){
    width:8% !important;
}

/* SERVICIO */
.historial-table th:nth-child(6),
.historial-table td:nth-child(6){
    width:10% !important;
}

/* PRIORIDAD */
.historial-table th:nth-child(7),
.historial-table td:nth-child(7){
    width:6% !important;
}

/* ESTADO */
.historial-table th:nth-child(8),
.historial-table td:nth-child(8){
    width:8% !important;
}

/* Datos principales */
.historial-table td{
    font-size:12px !important;
}

.historial-table th{
    font-size:10.5px !important;
}

/* El telefono del destino sigue visible pero compacto */
.historial-table td:nth-child(3) small{
    margin-top:2px;
    font-size:10px !important;
    line-height:1.05;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* Folio siempre completo */
.historial-table td:nth-child(1){
    overflow:visible;
    text-overflow:clip;
}

.historial-table td:nth-child(1) strong{
    font-size:11.5px;
    white-space:nowrap;
}

/* Columnas operativas compactas */
.historial-table td:nth-child(5),
.historial-table td:nth-child(6),
.historial-table td:nth-child(7),
.historial-table td:nth-child(8){
    text-align:left;
}



/* =========================================================
   HISTORIAL - FILTROS TIPO EXCEL
   ========================================================= */

.historial-filter-row th{
    padding:5px 4px 7px !important;
    background:#f7fafc;
    border-top:1px solid #e5edf3;
}

.historial-filter-row input,
.historial-filter-row select{
    width:100%;
    min-width:0;
    height:29px;
    padding:3px 6px;
    border:1px solid #d7e2ea;
    border-radius:6px;
    background:#fff;
    color:#17354a;
    font-family:inherit;
    font-size:10.5px;
    font-weight:500;
    outline:none;
    box-shadow:none;
}

.historial-filter-row input::placeholder{
    color:#8b9cab;
}

.historial-filter-row input:hover,
.historial-filter-row select:hover{
    border-color:#b9cad7;
}

.historial-filter-row input:focus,
.historial-filter-row select:focus{
    border-color:#2588ee;
    box-shadow:0 0 0 2px rgba(37,136,238,.10);
}

.historial-filter-row input[type="date"]{
    padding-left:4px;
    padding-right:3px;
    font-size:9.5px;
}

/* Columnas finales: filtros todavía más compactos */
.historial-filter-row th:nth-child(6) select,
.historial-filter-row th:nth-child(7) select,
.historial-filter-row th:nth-child(8) select{
    padding-left:4px;
    padding-right:2px;
    font-size:9.5px;
}

/* La fila de filtros no debe aumentar demasiado el encabezado */
.historial-table thead tr:first-child th{
    padding-bottom:6px !important;
}


/* =========================================================
   HISTORIAL - ENCABEZADO COMPACTO
   ========================================================= */

.historial-page-head-compact{
    min-height:0 !important;
    margin:0 0 8px !important;
    padding:0 !important;
    display:flex !important;
    justify-content:flex-end !important;
    align-items:center !important;
}

.historial-page-head-compact .count-pill{
    margin:0 !important;
}

.historial-table-wrap{
    margin-top:0 !important;
}


/* =========================================================
   HISTORIAL - SUBIR BLOQUE COMPLETO
   ========================================================= */

.historial-page-head-compact{
    transform:translateY(-24px);
    margin-bottom:-16px !important;
}


/* =========================================================
   HISTORIAL - BADGES DE SERVICIO
   ========================================================= */

.historial-service-badge{
    display:inline-flex;
    align-items:center;
    gap:5px;
    min-height:24px;
    padding:3px 8px;
    border-radius:999px;
    font-size:10.5px;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
}

.historial-service-icon{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:15px;
    height:15px;
    flex:0 0 15px;
    font-size:11px;
    font-weight:900;
}

/* DHL */
.historial-service-dhl{
    background:#ffdf3f;
    color:#d71920;
    border:1px solid #f4ca00;
}

.historial-service-dhl .historial-service-icon{
    color:#d71920;
}

/* RECOLECCION LOCAL */
.historial-service-recoleccion{
    background:#e7f3ff;
    color:#1769aa;
    border:1px solid #c9e4fb;
}

/* ENTREGA LOCAL */
.historial-service-entrega{
    background:#e1f6ed;
    color:#087c56;
    border:1px solid #c6ebde;
}


/* =========================================================
   HISTORIAL - AJUSTE ANCHO COLUMNA SERVICIO
   ========================================================= */

/* Columna 6 = Servicio */
.historial-table th:nth-child(6),
.historial-table td:nth-child(6){
    width:118px !important;
    min-width:118px !important;
}

/* Mantener los badges completos */
.historial-table td:nth-child(6){
    overflow:visible !important;
}

/* Ajuste fino para que Recolección local quepa completa */
.historial-service-badge{
    max-width:none !important;
    padding-left:7px;
    padding-right:7px;
    font-size:10px;
}

/* Icono ligeramente más compacto */
.historial-service-icon{
    width:12px;
    flex-basis:12px;
    font-size:9px;
}


/* =========================================================
   RUTA DE HOY - VERSION COMPACTA
   ========================================================= */

/* Encabezado Ruta de hoy */
body:has(.courier-summary) .page-head{
    margin-bottom:10px !important;
}

body:has(.courier-summary) .page-head h1{
    margin-bottom:2px !important;
}

/* Indicadores superiores */
.courier-summary{
    gap:14px !important;
    margin-bottom:12px !important;
}

.courier-summary > div{
    min-height:0 !important;
    padding:12px 16px !important;
}

.courier-summary > div span{
    margin-bottom:3px !important;
}

.courier-summary > div strong{
    line-height:1 !important;
}

/* Encabezado de la ruta */
.courier-route-head{
    margin-bottom:0 !important;
    padding:12px 16px !important;
}

.courier-route-head h3{
    margin:7px 0 3px !important;
}

.courier-route-head p{
    margin:3px 0 !important;
}

.courier-route-head .journey-time{
    display:block;
    margin-top:5px !important;
}

/* Lista de paradas más cerca del encabezado */
.courier-stop-list{
    margin-top:10px !important;
}


/* =========================================================
   RUTA DE HOY - DISEÑO FINO DESKTOP
   ========================================================= */

@media (min-width:761px){

    /* Encabezado principal */
    body:has(.courier-summary) .page-head{
        margin-bottom:7px !important;
    }

    body:has(.courier-summary) .page-head h1{
        font-size:24px !important;
        line-height:1.05 !important;
        margin:0 0 3px !important;
    }

    body:has(.courier-summary) .page-head .muted{
        font-size:13px !important;
        line-height:1.2 !important;
    }

    /* Tarjetas Servicios / Pendientes / En curso / Entregados */
    .courier-summary{
        gap:10px !important;
        margin-bottom:9px !important;
    }

    .courier-summary > div{
        padding:8px 14px !important;
        border-radius:11px !important;
        min-height:54px !important;
    }

    .courier-summary span{
        font-size:11px !important;
        line-height:1.1 !important;
        margin:0 !important;
    }

    .courier-summary strong{
        font-size:22px !important;
        line-height:1 !important;
        margin-top:4px !important;
    }

    /* Cabecera de la ruta */
    .courier-route-head{
        padding:9px 14px !important;
        border-radius:11px !important;
        margin-bottom:0 !important;
    }

    .courier-route-head .route-state{
        padding:4px 9px !important;
        font-size:10px !important;
    }

    .courier-route-head h3{
        font-size:16px !important;
        line-height:1.1 !important;
        margin:6px 0 3px !important;
    }

    .courier-route-head p{
        font-size:12px !important;
        line-height:1.15 !important;
        margin:2px 0 !important;
    }

    .courier-route-head .journey-time{
        font-size:11px !important;
        margin-top:4px !important;
    }

    /* Separación entre paradas */
    .courier-stop-list{
        gap:8px !important;
        margin-top:8px !important;
    }

    /* Tarjeta de cada parada */
    .courier-stop{
        grid-template-columns:34px 1fr !important;
        gap:10px !important;
        padding:10px 14px !important;
        border-radius:11px !important;
        min-height:0 !important;
    }

    .stop-number{
        width:30px !important;
        height:30px !important;
        font-size:12px !important;
    }

    .stop-top{
        gap:7px !important;
        line-height:1.1 !important;
    }

    .stop-top > div{
        gap:7px !important;
    }

    .stop-top strong{
        font-size:13px !important;
    }

    .stop-top .priority{
        font-size:9px !important;
        padding:3px 7px !important;
    }

    .stop-top .route-state{
        padding:4px 8px !important;
        font-size:10px !important;
    }

    /* Datos de destinatario */
    .stop-content h3{
        font-size:16px !important;
        line-height:1.1 !important;
        margin:5px 0 2px !important;
    }

    .stop-content p{
        font-size:12px !important;
        line-height:1.2 !important;
        margin:2px 0 !important;
    }

    .stop-address{
        line-height:1.2 !important;
    }

    /* Botones inferiores */
    .stop-actions{
        gap:7px !important;
        margin-top:8px !important;
    }

    .stop-actions .btn,
    .stop-actions button{
        min-height:30px !important;
        padding:6px 11px !important;
        border-radius:8px !important;
        font-size:11px !important;
        line-height:1 !important;
    }
}


/* =========================================================
   RUTA DE HOY - ENCABEZADO COMPACTO
   ========================================================= */

.route-page-head-compact{
    min-height:0 !important;
    margin:0 0 6px !important;
    padding:0 !important;
    display:flex !important;
    justify-content:flex-end !important;
    align-items:center !important;
}

.route-page-head-compact .route-date{
    margin:0 !important;
}


/* =========================================================
   RUTA DE HOY - SUBIR CONTENIDO SIN TAPAR FECHA
   ========================================================= */

body:has(.courier-summary) main,
body:has(.courier-summary) .main-content{
    padding-top:16px !important;
}

.route-page-head-compact{
    margin-top:0 !important;
    margin-bottom:5px !important;
}

.route-page-head-compact .route-date{
    position:relative !important;
    z-index:2 !important;
}

.courier-summary{
    margin-top:0 !important;
    margin-bottom:8px !important;
}


/* =========================================================
   RUTA DE HOY - RESUMEN DE RUTA EN UNA SOLA LINEA
   ========================================================= */

.courier-route-head{
    min-height:0 !important;
    padding:8px 14px !important;

    display:flex !important;
    align-items:center !important;
    gap:14px !important;

    white-space:nowrap !important;
}

.courier-route-head h3{
    margin:0 !important;
    font-size:14px !important;
    line-height:1.2 !important;
}

.courier-route-head p{
    margin:0 !important;
    font-size:11px !important;
    line-height:1.2 !important;
}

.courier-route-head .journey-time{
    display:inline !important;
    margin:0 !important;
    font-size:11px !important;
    line-height:1.2 !important;
}

/* Badge "En proceso" */
.courier-route-head > span,
.courier-route-head .status-pill{
    flex:0 0 auto !important;
    margin:0 !important;
}

/* Evitar que algún elemento fuerce otra línea */
.courier-route-head > *{
    flex:0 0 auto;
}


/* =========================================================
   RUTA DE HOY - RESUMEN REALMENTE EN UNA LINEA
   ========================================================= */

@media (min-width:761px){

    .courier-route-head{
        padding:7px 14px !important;
        min-height:0 !important;
    }

    .courier-route-head .route-summary-row{
        width:100%;
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        gap:12px !important;
    }

    .courier-route-head .route-summary-line{
        display:flex !important;
        align-items:center !important;
        gap:8px !important;
        min-width:0;
        white-space:nowrap !important;
    }

    .route-summary-title{
        font-size:13px !important;
        line-height:1 !important;
        color:#073b63;
    }

    .route-summary-text,
    .route-summary-time{
        font-size:11px !important;
        line-height:1 !important;
    }

    .route-summary-text{
        color:#64778a;
    }

    .route-summary-time{
        color:#31516d;
    }

    .route-summary-separator{
        color:#9aabba;
        font-size:12px;
    }

    .courier-route-head .route-state{
        padding:4px 9px !important;
        font-size:10px !important;
        line-height:1 !important;
        flex:0 0 auto;
    }

    .courier-route-head form{
        margin:0 !important;
        flex:0 0 auto;
    }
}


/* =========================================================
   DETALLE DE SOLICITUD - VERSION PROFESIONAL DEFINITIVA
   ========================================================= */

.detail-view-pro{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
    gap:18px !important;
    align-items:stretch !important;
}

/* =========================================================
   TARJETAS
   ========================================================= */

.detail-card-pro{
    padding:16px 18px !important;
    border:1px solid #dce5ed !important;
    border-radius:13px !important;
    background:#fff !important;
    box-shadow:0 8px 24px rgba(23,48,79,.045) !important;
}

/* =========================================================
   ENCABEZADO DE TARJETA
   ========================================================= */

.detail-card-heading{
    display:flex;
    align-items:center;
    gap:12px;
    min-height:56px;
    padding-bottom:12px;
    margin-bottom:0;
    border-bottom:1px solid #e5edf3;
}

.detail-card-heading h3{
    margin:0 !important;
    color:#092f51 !important;
    font-size:19px !important;
    line-height:1.08 !important;
    font-weight:800 !important;
}

.detail-card-heading small{
    display:block;
    margin-top:3px;
    color:#648097;
    font-size:11.5px;
    line-height:1.2;
}

/* =========================================================
   ICONOS GRANDES DE TARJETA
   ========================================================= */

.detail-card-heading-icon{
    width:44px;
    height:44px;
    flex:0 0 44px;
    display:block;
    border-radius:11px;
    background-position:center;
    background-repeat:no-repeat;
    background-size:25px 25px;
}

.detail-icon-recipient{
    background-color:#e2f2ff;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%230a72d8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M4 21v-2a6 6 0 0 1 6-6h4a6 6 0 0 1 6 6v2'/%3E%3C/svg%3E");
}

.detail-icon-service{
    background-color:#dcf8ed;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23008763' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 8 4.5v9L12 21l-8-4.5v-9L12 3Z'/%3E%3Cpath d='m4 7.5 8 4.5 8-4.5M12 12v9'/%3E%3C/svg%3E");
}

.detail-icon-operation{
    background-color:#ecebff;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%234334e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M19.4 15a1.7 1.7 0 0 0 .34 1.88l.06.06-2.83 2.83-.06-.06A1.7 1.7 0 0 0 15 19.4a1.7 1.7 0 0 0-1 .6 1.7 1.7 0 0 0-.4 1.1V21h-4v-.1A1.7 1.7 0 0 0 8.6 19.4a1.7 1.7 0 0 0-1.88.34l-.06.06-2.83-2.83.06-.06A1.7 1.7 0 0 0 4.6 15a1.7 1.7 0 0 0-.6-1 1.7 1.7 0 0 0-1.1-.4H3v-4h.1A1.7 1.7 0 0 0 4.6 8.6a1.7 1.7 0 0 0-.34-1.88l-.06-.06 2.83-2.83.06.06A1.7 1.7 0 0 0 9 4.6a1.7 1.7 0 0 0 1-.6 1.7 1.7 0 0 0 .4-1.1V3h4v.1A1.7 1.7 0 0 0 15.4 4.6a1.7 1.7 0 0 0 1.88-.34l.06-.06 2.83 2.83-.06.06A1.7 1.7 0 0 0 19.4 9a1.7 1.7 0 0 0 .6 1 1.7 1.7 0 0 0 1.1.4h.1v4h-.1a1.7 1.7 0 0 0-1.7.6Z'/%3E%3C/svg%3E");
}

.detail-icon-tracking{
    background-color:#fff0e9;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' fill='none' stroke='%23ef4d19' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E");
}


/* =========================================================
   CAMPOS - ICONO + ETIQUETA + VALOR
   ========================================================= */

.detail-view-pro dl{
    display:grid !important;
    grid-template-columns:225px minmax(0,1fr) !important;
    margin:0 !important;
}

.detail-view-pro dt,
.detail-view-pro dd{
    min-width:0;
    min-height:41px;
    margin:0 !important;
    padding:7px 8px !important;
    display:flex !important;
    align-items:center !important;
    border-bottom:1px solid #e6edf3;
}

.detail-view-pro dt{
    position:relative;
    padding-left:49px !important;
    color:#526d84;
    font-size:12px;
    font-weight:500;
}

.detail-view-pro dd{
    color:#092f51;
    font-size:13px;
    font-weight:700;
    line-height:1.32;
}


/* =========================================================
   ICONO DE CADA FILA
   ========================================================= */

.detail-view-pro dt::before{
    content:"";
    position:absolute;
    left:12px;
    top:50%;
    transform:translateY(-50%);
    width:19px;
    height:19px;
    background-repeat:no-repeat;
    background-position:center;
    background-size:18px 18px;
}

/* Persona */
.detail-recipient dt:nth-of-type(1)::before,
.detail-recipient dt:nth-of-type(3)::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232d5274' stroke-width='1.8'%3E%3Ccircle cx='10' cy='6' r='3'/%3E%3Cpath d='M4 17c0-3.2 2.7-5 6-5s6 1.8 6 5'/%3E%3C/svg%3E");
}

/* Empresa */
.detail-recipient dt:nth-of-type(2)::before,
.detail-recipient dt:nth-of-type(8)::before,
.detail-recipient dt:nth-of-type(9)::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232d5274' stroke-width='1.8'%3E%3Crect x='4' y='5' width='12' height='12'/%3E%3Cpath d='M7 5V3h6v2M7 9h2M11 9h2M7 13h2M11 13h2'/%3E%3C/svg%3E");
}

/* Correo */
.detail-recipient dt:nth-of-type(4)::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232d5274' stroke-width='1.8'%3E%3Crect x='3' y='5' width='14' height='10' rx='1'/%3E%3Cpath d='m3 6 7 5 7-5'/%3E%3C/svg%3E");
}

/* Teléfono */
.detail-recipient dt:nth-of-type(5)::before,
.detail-recipient dt:nth-of-type(6)::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232d5274' stroke-width='1.8'%3E%3Cpath d='M6 3 4 5c-1 1 1 5 4 8s7 5 8 4l2-2-4-3-2 2c-2-1-5-4-6-6l2-2-2-3Z'/%3E%3C/svg%3E");
}

/* Dirección */
.detail-recipient dt:nth-of-type(7)::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232d5274' stroke-width='1.8'%3E%3Cpath d='M10 18s6-5 6-10a6 6 0 1 0-12 0c0 5 6 10 6 10Z'/%3E%3Ccircle cx='10' cy='8' r='2'/%3E%3C/svg%3E");
}

/* Piso */
.detail-recipient dt:nth-of-type(10)::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232d5274' stroke-width='1.8'%3E%3Cpath d='m3 8 7-4 7 4-7 4-7-4Zm0 4 7 4 7-4'/%3E%3C/svg%3E");
}

/* Oficina */
.detail-recipient dt:nth-of-type(11)::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232d5274' stroke-width='1.8'%3E%3Crect x='4' y='3' width='12' height='14'/%3E%3Cpath d='M7 6h2M11 6h2M7 9h2M11 9h2M8 17v-4h4v4'/%3E%3C/svg%3E");
}


/* =========================================================
   ICONOS SERVICIO
   ========================================================= */

.detail-service dt::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232d5274' stroke-width='1.8'%3E%3Ccircle cx='10' cy='10' r='7'/%3E%3Cpath d='M10 6v4l3 2'/%3E%3C/svg%3E");
}

.detail-service dt:nth-of-type(1)::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://ww
}

.detail-service dt:nth-of-type(2)::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232d5274' stroke-width='1.8'%3E%3Cpath d='M5 2h7l4 4v12H5Z'/%3E%3Cpath d='M12 2v5h5M8 11h5M8 14h5'/%3E%3C/svg%3E");
}

.detail-service dt:nth-of-type(3)::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%232d5274' stroke-width='1.8'%3E%3Cpath d='M3 4h14v10H8l-4 3v-3H3Z'/%3E%3C/svg%3E");
}

/* =========================================================
   PRIORIDAD
   ========================================================= */

.detail-priority-label::before{
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23d51b1b' stroke-width='1.8'%3E%3Cpath d='M4 17V9M8 17V6M12 17V3M16 17v-5'/%3E%3C/svg%3E") !important;
}

.detail-urgent-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    padding:5px 10px;
    border-radius:999px;
    background:#ffe6e6;
    color:#b42318;
    font-size:11px;
    font-weight:800;
}

.detail-urgent-badge i{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#d51b1b;
    box-shadow:0 0 0 4px rgba(213,27,27,.08);
}

.detail-normal-badge{
    display:inline-flex;
    padding:5px 10px;
    border-radius:999px;
    background:#edf3f7;
    color:#486379;
    font-size:11px;
    font-weight:800;
}


/* =========================================================
   MOTIVO DE URGENCIA - UNA SOLA FRANJA
   ========================================================= */

.detail-urgent-reason-label,
.detail-urgent-reason-value{
    background:#fff0f0 !important;
    border-bottom-color:#ffd8d8 !important;
    min-height:43px !important;
}

.detail-urgent-reason-label{
    border-radius:8px 0 0 8px;
    color:#b42318 !important;
    font-weight:600 !important;
}

.detail-urgent-reason-label::before{
    content:"!" !important;
    display:grid !important;
    place-items:center;
    width:19px !important;
    height:19px !important;
    border-radius:50%;
    background:#c91c1c !important;
    background-image:none !important;
    color:#fff;
    font-size:11px;
    font-weight:900;
}

.detail-urgent-reason-value{
    border-radius:0 8px 8px 0;
    color:#a91818 !important;
    font-weight:800 !important;
}


/* =========================================================
   TARJETAS INFERIORES
   ========================================================= */

.detail-lower-grid{
    gap:18px !important;
    align-items:stretch !important;
}

.detail-lower-grid .detail-card-pro{
    margin-top:0 !important;
}

.detail-operation-form{
    margin-top:14px;
}

/* Desktop */
@media (min-width:761px){

    .detail-operation-form{
        display:grid;
        grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);
        column-gap:14px;
    }

    .detail-operation-form > label:nth-of-type(1){
        grid-column:1;
        grid-row:1;
    }

    .detail-operation-form > select{
        grid-column:1;
        grid-row:2;
    }

    .detail-operation-form > label:nth-of-type(2){
        grid-column:2;
        grid-row:1;
    }

    .detail-operation-form > textarea[name="comentario"]{
        grid-column:2;
        grid-row:2 / span 2;
        min-height:72px;
    }

    .detail-operation-form > button[type="submit"]{
        grid-column:1;
        grid-row:3;
        justify-self:start;
        margin-top:10px;
    }
}


/* =========================================================
   TIMELINE
   ========================================================= */

.detail-tracking .timeline-modern{
    margin-top:14px !important;
}

.detail-tracking .timeline-modern > div{
    padding-left:30px !important;
}

.detail-tracking .timeline-modern p{
    padding:10px 12px !important;
    border-radius:9px !important;
    background:#f6f8fa !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width:1000px){

    .detail-view-pro{
        grid-template-columns:1fr !important;
    }

}

@media (max-width:760px){

    .detail-view-pro dl{
        grid-template-columns:1fr !important;
    }

    .detail-view-pro dt{
        border-bottom:0 !important;
        padding-bottom:2px !important;
    }

    .detail-view-pro dd{
        padding-left:49px !important;
        padding-top:2px !important;
    }

}



/* =========================================================
   DASHBOARD - ACTIVIDAD RECIENTE POR TIPO DE SERVICIO
   ========================================================= */

.dm-activity-icon{
    font-size:9px !important;
    font-weight:800 !important;
    letter-spacing:-0.2px;
}

/* Entrega local */
.dm-activity-icon-ent{
    background:#e5f2ff !important;
    color:#1677d2 !important;
    border:1px solid #c7e3ff;
}

/* Recoleccion local */
.dm-activity-icon-rec{
    background:#eee8ff !important;
    color:#6846d9 !important;
    border:1px solid #ddd2ff;
}

/* DHL */
.dm-activity-icon-dhl{
    background:#ffcc00 !important;
    color:#d40511 !important;
    border:1px solid #e5b800;
    font-weight:900 !important;
}


/* =========================================================
   ACTIVIDAD RECIENTE - DHL AMARILLO / ROJO
   ========================================================= */

.dashboard-mensajeria .dm-activity-list
.dm-activity-row
.dm-activity-icon.dm-activity-icon-dhl{
    background:#ffcc00 !important;
    background-color:#ffcc00 !important;
    color:#d40511 !important;
    border-color:#e5b800 !important;
    font-weight:900 !important;
}


/* =====================================================
   MENSAJERIA - DETALLE RUTA A/B
   ===================================================== */

.detail-route-ab .route-ab-point {
    position: relative;
    padding: 16px 0;
}

.detail-route-ab .route-ab-origin {
    border-bottom: 1px solid #e1e8ef;
    padding-top: 4px;
    padding-bottom: 22px;
    margin-bottom: 8px;
}

.detail-route-ab .route-ab-title {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 18px;
}

.detail-route-ab .route-ab-letter {
    width: 35px;
    height: 35px;
    min-width: 35px;
    border-radius: 50%;
    background: #e5f0fb;
    color: #1764a2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

.detail-route-ab .route-ab-destination .route-ab-letter {
    background: #e4f5ec;
    color: #177447;
}

.detail-route-ab .route-ab-title strong {
    display: block;
    font-size: 14px;
    font-weight: 750;
    color: #20364c;
}

.detail-route-ab .route-ab-title small {
    display: block;
    font-size: 11px;
    color: #718196;
    margin-top: 3px;
}

.detail-route-ab .route-ab-point dl {
    margin: 0;
}

.detail-route-ab .route-ab-point dt::before {
    display: none !important;
}

.detail-route-ab .route-ab-point dt {
    padding-left: 0 !important;
}

.detail-route-ab .route-ab-point dd {
    overflow-wrap: anywhere;
}

@media (max-width: 760px) {
    .detail-route-ab .route-ab-point {
        padding: 12px 0;
    }

    .detail-route-ab .route-ab-title {
        margin-bottom: 14px;
    }
}

/* =====================================================
   MENSAJERIA - RUTA A/B - AJUSTE VISUAL FINAL
   ===================================================== */

.detail-view-pro .detail-route-ab .route-ab-point {
    display: block !important;
    padding: 14px 0 18px !important;
}

.detail-view-pro .detail-route-ab .route-ab-origin {
    border-bottom: 1px solid #dce6ef !important;
    margin-bottom: 12px !important;
    padding-top: 4px !important;
    padding-bottom: 22px !important;
}

.detail-view-pro .detail-route-ab .route-ab-title {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 15px !important;
}

.detail-view-pro .detail-route-ab .route-ab-title .route-ab-letter {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    background: #e5f0fb !important;
    color: #1764a2 !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
}

.detail-view-pro .detail-route-ab .route-ab-destination .route-ab-letter {
    background: #e2f5ea !important;
    color: #167447 !important;
}

.detail-view-pro .detail-route-ab .route-ab-title > div {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 3px !important;
    min-width: 0 !important;
}

.detail-view-pro .detail-route-ab .route-ab-title strong {
    display: block !important;
    font-size: 14px !important;
    font-weight: 750 !important;
    line-height: 1.35 !important;
    color: #17334d !important;
}

.detail-view-pro .detail-route-ab .route-ab-title small {
    display: block !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    color: #73869a !important;
    margin: 0 !important;
}

.detail-view-pro .detail-route-ab .route-ab-point dt::before {
    content: none !important;
    display: none !important;
}

.detail-view-pro .detail-route-ab .route-ab-point dt {
    padding-left: 0 !important;
    background-image: none !important;
}

.detail-view-pro .detail-route-ab .route-ab-point dd {
    overflow-wrap: anywhere !important;
}


/* =====================================================
   DM_ESTADOS_VISUALES_CSS_V1
   DASHBOARD - ACTIVIDAD RECIENTE
   ===================================================== */

.dm-activity-row .dm-activity-state {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    background: #f1f5f9;
    color: #475569;
}

.dm-activity-row .dm-activity-state i,
.dm-activity-row .dm-activity-state svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    stroke-width: 2;
}

/* Programada */
.dm-activity-row .dm-activity-state-programada,
.dm-activity-row .dm-activity-state-reprogramada {
    background: #e8f2ff;
    color: #0863c5;
}

/* En transito */
.dm-activity-row .dm-activity-state-en_transito {
    background: #e8f2ff;
    color: #0863c5;
}

/* Entregada */
.dm-activity-row .dm-activity-state-entregada {
    background: #e4f7ec;
    color: #078348;
}

/* Cancelada */
.dm-activity-row .dm-activity-state-cancelada {
    background: #fde9eb;
    color: #cb1e30;
}

/* Incidencia */
.dm-activity-row .dm-activity-state-incidencia {
    background: #fff3db;
    color: #c77800;
}

/* Pendiente de recoleccion */
.dm-activity-row .dm-activity-state-pendiente_recoleccion {
    background: #fff3db;
    color: #a96a00;
}

@media (max-width: 600px) {
    .dm-activity-row .dm-activity-state {
        padding: 5px 7px;
        font-size: 10px;
        gap: 4px;
    }
}


/* =================================================
   DM_ETIQUETAS_ESTADOS_V3
   ACTIVIDAD RECIENTE - ESTILO PROFESIONAL
   ================================================= */

.dm-activity-list .dm-activity-row .dm-activity-state {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;

    min-width: 105px !important;
    padding: 7px 11px !important;

    border: 1px solid transparent !important;
    border-radius: 999px !important;

    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    text-align: center !important;

    box-shadow: none !important;
}

.dm-activity-list .dm-activity-row .dm-activity-state svg {
    display: block !important;
    width: 14px !important;
    height: 14px !important;
    flex: 0 0 14px !important;
    stroke: currentColor !important;
}

/* PROGRAMADA */
.dm-activity-list .dm-activity-state-programada,
.dm-activity-list .dm-activity-state-reprogramada {
    background: #e8f2ff !important;
    border-color: #d6e7ff !important;
    color: #0863c5 !important;
}

/* EN TRANSITO */
.dm-activity-list .dm-activity-state-en_transito {
    background: #e8f2ff !important;
    border-color: #d6e7ff !important;
    color: #0863c5 !important;
}

/* ENTREGADA */
.dm-activity-list .dm-activity-state-entregada {
    background: #e4f7ec !important;
    border-color: #d2efdf !important;
    color: #078348 !important;
}

/* CANCELADA */
.dm-activity-list .dm-activity-state-cancelada {
    background: #fde9eb !important;
    border-color: #fbd8dd !important;
    color: #cb1e30 !important;
}

/* INCIDENCIA */
.dm-activity-list .dm-activity-state-incidencia {
    background: #fff3db !important;
    border-color: #ffe5ae !important;
    color: #c77800 !important;
}

/* PENDIENTE DE RECOLECCION */
.dm-activity-list .dm-activity-state-pendiente_recoleccion {
    background: #fff3db !important;
    border-color: #ffe5ae !important;
    color: #a96a00 !important;
}

@media (max-width: 600px) {
    .dm-activity-list .dm-activity-row .dm-activity-state {
        min-width: auto !important;
        padding: 6px 8px !important;
        font-size: 10px !important;
    }
}


/* ==================================================
   SOLICITUDES_VISUAL_CSS_V1
   LISTADO DE SOLICITUDES
   ================================================== */

.sol-listado {
    padding: 18px 20px !important;
    border-radius: 15px !important;
}

.sol-tabla {
    width: 100%;
    border-collapse: collapse;
}

.sol-tabla th {
    padding: 15px 12px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    color: #64748b !important;
    letter-spacing: .045em;
    background: #f8fafc;
}

.sol-tabla td {
    padding: 14px 12px !important;
    vertical-align: middle;
    font-size: 12px !important;
    border-bottom: 1px solid #e8edf3;
}

.sol-tabla tbody tr {
    transition: background .15s ease;
}

.sol-tabla tbody tr:hover {
    background: #f6f9fd;
}

.sol-folio {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 175px;
}

.sol-servicio {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 35px;
    font-size: 10px;
    font-weight: 900;
}

.sol-servicio-ent {
    background: #e8f3ff;
    color: #0874db;
}

.sol-servicio-rec {
    background: #eee8ff;
    color: #6846d9;
}

.sol-servicio-dhl {
    background: #ffcc00;
    color: #d40511;
}

.sol-folio-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.sol-folio-info a {
    font-size: 12px;
    font-weight: 800;
    color: #063b67;
}

.sol-folio-info a:hover {
    color: #0874db;
    text-decoration: underline;
}

.sol-folio-info small {
    color: #8190a3;
    font-size: 10px;
}

.sol-persona {
    color: #29435a;
    font-weight: 550;
}

.sol-prioridad {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.sol-prioridad-punto {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.sol-prioridad-normal {
    background: #edf3f8;
    color: #4b647e;
}

.sol-prioridad-urgente {
    background: #fff1db;
    color: #bb7100;
}

.sol-estado {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 11px;
    min-width: 108px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

.sol-estado svg {
    display: block;
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
}

.sol-estado-programada {
    background: #e8f2ff;
    color: #0863c5;
}

.sol-estado-transito {
    background: #e8f2ff;
    color: #0863c5;
}

.sol-estado-entregada {
    background: #e4f7ec;
    color: #078348;
}

.sol-estado-cancelada {
    background: #fde9eb;
    color: #cb1e30;
}

.sol-estado-incidencia {
    background: #fff3db;
    color: #c77800;
}

.sol-estado-neutral {
    background: #f1f5f9;
    color: #475569;
}

.sol-fecha {
    color: #64748b;
    white-space: nowrap;
    font-size: 11px !important;
}

@media(max-width:760px) {
    .sol-listado {
        padding: 10px !important;
    }

    .sol-tabla {
        min-width: 790px;
    }
}


/* ==================================================
   SOLICITUDES_TABLA_PRO_CSS_V1
   LISTADO DE SOLICITUDES
   ================================================== */

/* Etiquetas de tipo de servicio */
.sol-tipo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.sol-tipo-ent {
    background: #e8f3ff;
    color: #0863c5;
}

.sol-tipo-rec {
    background: #eee8ff;
    color: #6846d9;
}

.sol-tipo-dhl {
    background: #ffcc00;
    color: #d40511;
}

/* Etiquetas de prioridad */
.sol-prioridad {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
}

.sol-prioridad-normal {
    background: #eef2f6;
    color: #526477;
}

.sol-prioridad-urgente {
    background: #fff0df;
    color: #bc6200;
}

.sol-prioridad-extraordinaria {
    background: #fde9eb;
    color: #cb1e30;
}

/* Tabla de solicitudes: solo donde aparecen
   las nuevas etiquetas */
.table-wrap:has(.sol-tipo) {
    border-radius: 15px;
}

.table-wrap:has(.sol-tipo) .table thead {
    background: #f7f9fc;
}

.table-wrap:has(.sol-tipo) .table th {
    color: #536b86;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .055em;
    padding-top: 15px;
    padding-bottom: 15px;
}

.table-wrap:has(.sol-tipo) .table td {
    padding-top: 13px;
    padding-bottom: 13px;
    vertical-align: middle;
}

.table-wrap:has(.sol-tipo) .table tbody tr {
    transition: background-color .15s ease;
}

.table-wrap:has(.sol-tipo) .table tbody tr:hover {
    background: #f2f7fc;
}

.table-wrap:has(.sol-tipo) .table td:first-child a {
    color: #07547b;
    font-weight: 800;
}


/* =====================================================
   SOLICITUDES_TABLA_VISUAL_FIX_V2
   ESTILOS AISLADOS PARA LISTADO DE SOLICITUDES
   ===================================================== */

/* Etiquetas de servicio */
table.table .sol-tipo {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 48px !important;
    padding: 7px 11px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

table.table .sol-tipo-ent {
    background-color: #e8f3ff !important;
    color: #0863c5 !important;
}

table.table .sol-tipo-rec {
    background-color: #eee8ff !important;
    color: #6846d9 !important;
}

table.table .sol-tipo-dhl {
    background-color: #ffcc00 !important;
    color: #d40511 !important;
}

/* Etiquetas de prioridad */
table.table .sol-prioridad {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 76px !important;
    padding: 7px 11px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

table.table .sol-prioridad-normal {
    background-color: #eef2f6 !important;
    color: #526477 !important;
}

table.table .sol-prioridad-urgente {
    background-color: #fff0df !important;
    color: #bc6200 !important;
}

table.table .sol-prioridad-extraordinaria {
    background-color: #fde9eb !important;
    color: #cb1e30 !important;
}

/* Tabla que contiene etiquetas de servicio */
table.table:has(.sol-tipo) thead {
    background-color: #f7f9fc;
}

table.table:has(.sol-tipo) th {
    color: #536b86;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

table.table:has(.sol-tipo) td {
    vertical-align: middle;
}

table.table:has(.sol-tipo) tbody tr {
    transition: background-color .15s ease;
}

table.table:has(.sol-tipo) tbody tr:hover {
    background-color: #f2f7fc;
}


/* SOLICITUDES_DISENO_COMPLETO_CSS_V1 */

.sol-pro {
    background: linear-gradient(180deg,#f8fbff 0%,#ffffff 220px);
    border: 1px solid #cbdff9;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 5px 22px rgba(32,85,150,.07);
}

.sol-pro-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.sol-pro-heading h1 {
    font-size: 25px;
    color: #102e50;
    margin: 0 0 3px;
}

.sol-pro-heading p {
    margin: 0;
    color: #637d9a;
    font-size: 13px;
}

.sol-pro-filters {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.sol-pro-search {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    background: #fff;
    border: 1px solid #cbdcf0;
    border-radius: 9px;
}

.sol-pro-search > span {
    font-size: 23px;
    color: #4e6c92;
}

.sol-pro-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    box-shadow: none;
    outline: none;
    background: transparent;
    padding: 12px 0;
}

.sol-pro-filters select {
    min-width: 210px;
    border-radius: 9px;
}

.sol-pro-scroll {
    overflow-x: auto;
}

.sol-pro-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: separate;
    border-spacing: 0 5px;
    font-size: 12px;
}

.sol-pro-table th {
    padding: 11px 13px;
    color: #526d91;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    text-align: left;
    white-space: nowrap;
}

.sol-pro-table td {
    padding: 12px 13px;
    background: #fff;
    border-top: 1px solid #edf2f8;
    border-bottom: 1px solid #edf2f8;
    vertical-align: middle;
}

.sol-pro-table td:first-child {
    border-left: 4px solid #d5e6f9;
    border-radius: 9px 0 0 9px;
}

.sol-pro-table td:last-child {
    border-right: 1px solid #edf2f8;
    border-radius: 0 9px 9px 0;
}

.sol-pro-row-rec td:first-child { border-left-color: #8244e8; }
.sol-pro-row-ent td:first-child { border-left-color: #2485e8; }
.sol-pro-row-dhl td:first-child { border-left-color: #ffb900; }

.sol-pro-table tbody tr:hover td {
    background: #f4f9ff;
}

.sol-pro-folio,
.sol-pro-person,
.sol-pro-destino {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sol-pro-folio a {
    font-weight: 800;
    color: #07518c;
    text-decoration: none;
    white-space: nowrap;
}

.sol-pro-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 850;
}

.sol-pro-type-rec { background: #eee8ff; color: #6846d9; }
.sol-pro-type-ent { background: #e5f2ff; color: #0863c5; }
.sol-pro-type-dhl { background: #ffcc00; color: #d40511; }

.sol-pro-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #e9f1fb;
    color: #416388;
    font-size: 18px;
}

.sol-pro-person strong,
.sol-pro-person small,
.sol-pro-date strong,
.sol-pro-date small {
    display: block;
}

.sol-pro-person strong {
    color: #173451;
    font-size: 11px;
}

.sol-pro-person small,
.sol-pro-date small {
    margin-top: 3px;
    color: #7287a0;
    font-size: 10px;
}

.sol-pro-destino {
    color: #243e60;
}

.sol-pro-destino > span {
    font-size: 17px;
    color: #56779c;
}

.sol-pro-kind {
    color: #233f60;
    font-weight: 600;
}

.sol-pro-priority,
.sol-pro-state {
    display: inline-flex !important;
    justify-content: center;
    align-items: center;
    min-width: 95px;
    padding: 9px 13px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    white-space: nowrap;
}

.sol-pro-priority-normal {
    background: #edf2f7;
    color: #566b82;
}

.sol-pro-priority-urgente {
    background: #fff0df;
    color: #b96100;
}

.sol-pro-priority-extraordinaria {
    background: #fde9eb;
    color: #c62035;
}

.sol-pro-state {
    min-width: 115px;
}

.sol-pro-date strong {
    font-size: 11px;
    font-weight: 650;
    color: #193b5f;
    white-space: nowrap;
}

.sol-pro-empty {
    text-align: center;
    padding: 35px !important;
    color: #6b7f95;
}

@media (max-width: 800px) {
    .sol-pro {
        padding: 15px;
    }

    .sol-pro-heading,
    .sol-pro-filters {
        flex-wrap: wrap;
    }

    .sol-pro-search {
        flex-basis: 100%;
    }

    .sol-pro-filters select {
        flex: 1;
        min-width: 150px;
    }
}

/* SOL_PRO_CORRECCION_FINAL_V2 */

body .sol-pro {
    display: block !important;
    background: linear-gradient(180deg,#f8fbff,#fff 230px) !important;
    border: 1px solid #a9caff !important;
    border-radius: 18px !important;
    padding: 24px !important;
    box-shadow: 0 5px 22px rgba(32,85,150,.07) !important;
}

body .sol-pro .sol-pro-heading {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 20px !important;
    margin-bottom: 18px !important;
}

body .sol-pro .sol-pro-heading h1 {
    margin: 0 0 4px !important;
    font-size: 26px !important;
}

body .sol-pro .sol-pro-heading p {
    margin: 0 !important;
    color: #607995 !important;
}

body .sol-pro .sol-pro-filters {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 10px !important;
    margin-bottom: 18px !important;
}

body .sol-pro .sol-pro-search {
    display: flex !important;
    align-items: center !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    background: white !important;
    border: 1px solid #cbdcf0 !important;
    border-radius: 9px !important;
    padding: 0 13px !important;
}

body .sol-pro .sol-pro-search input {
    flex: 1 !important;
    width: 100% !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

body .sol-pro .sol-pro-filters select {
    flex: 0 0 225px !important;
    width: 225px !important;
    min-width: 0 !important;
    border-radius: 9px !important;
}

body .sol-pro .sol-pro-filters button {
    flex: 0 0 110px !important;
    width: 110px !important;
}

body .sol-pro .sol-pro-scroll {
    display: block !important;
    width: 100% !important;
    overflow-x: auto !important;
}

body .sol-pro table.sol-pro-table {
    width: 100% !important;
    min-width: 1050px !important;
    border-collapse: separate !important;
    border-spacing: 0 5px !important;
}

body .sol-pro .sol-pro-table th {
    padding: 12px 10px !important;
    color: #536b86 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    text-align: left !important;
}

body .sol-pro .sol-pro-table tbody td {
    padding: 12px 10px !important;
    background: #fff !important;
    border-top: 1px solid #edf2f8 !important;
    border-bottom: 1px solid #edf2f8 !important;
    vertical-align: middle !important;
}

body .sol-pro .sol-pro-table tbody tr td:first-child {
    border-left: 4px solid #2585e8 !important;
    border-radius: 10px 0 0 10px !important;
}

body .sol-pro .sol-pro-table tbody tr.sol-pro-row-rec td:first-child {
    border-left-color: #8244e8 !important;
}

body .sol-pro .sol-pro-table tbody tr.sol-pro-row-dhl td:first-child {
    border-left-color: #ffb900 !important;
}

body .sol-pro .sol-pro-table tbody tr td:last-child {
    border-radius: 0 10px 10px 0 !important;
}

body .sol-pro .sol-pro-folio,
body .sol-pro .sol-pro-person,
body .sol-pro .sol-pro-destino {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

body .sol-pro .sol-pro-folio a {
    color: #07547b !important;
    font-weight: 800 !important;
    white-space: nowrap !important;
}

body .sol-pro .sol-pro-type {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    font-size: 11px !important;
    font-weight: 800 !important;
}

body .sol-pro .sol-pro-type-rec {
    background: #eee8ff !important;
    color: #6846d9 !important;
}

body .sol-pro .sol-pro-type-ent {
    background
    color: #0863c5 !important;
}

body .sol-pro .sol-pro-type-dhl {
    background: #ffcc00 !important;
    color: #d40511 !important;
}

body .sol-pro .sol-pro-avatar {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    border-radius: 50% !important;
    background: #eaf1f9 !important;
    color: #3d6085 !important;
}

body .sol-pro .sol-pro-person > div {
    min-width: 0 !important;
}

body .sol-pro .sol-pro-person strong,
body .sol-pro .sol-pro-person small,
body .sol-pro .sol-pro-date strong,
body .sol-pro .sol-pro-date small {
    display: block !important;
}

body .sol-pro .sol-pro-person strong {
    font-size: 12px !important;
    color: #122e50 !important;
}

body .sol-pro .sol-pro-person small,
body .sol-pro .sol-pro-date small {
    color: #607995 !important;
    font-size: 11px !important;
}

body .sol-pro .sol-pro-priority,
body .sol-pro .sol-pro-state {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 90px !important;
    padding: 8px 12px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
}

body .sol-pro .sol-pro-priority-normal {
    background: #eef2f6 !important;
    color: #526477 !important;
}

body .sol-pro .sol-pro-priority-urgente {
    background: #fff0df !important;
    color: #bc6200 !important;
}

body .sol-pro .sol-pro-priority-extraordinaria {
    background: #fde9eb !important;
    color: #cb1e30 !important;
}

@media (max-width: 900px) {
    body .sol-pro {
        padding: 15px !important;
    }

    body .sol-pro .sol-pro-filters {
        flex-wrap: wrap !important;
    }

    body .sol-pro .sol-pro-search {
        flex-basis: 100% !important;
    }

    body .sol-pro .sol-pro-filters select {
        flex: 1 1 180px !important;
    }
}



/* SOLICITUDES_SELECTOR_MENSUAL_V1 */

.sol-month-panel{
    margin:14px 0 18px;
    padding:18px 20px 14px;
    background:#fff;
    border:1px solid #e3eaf2;
    border-radius:12px;
    box-shadow:0 3px 12px rgba(20,40,70,.035);
}

.sol-month-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:15px;
}

.sol-month-title{
    display:flex;
    align-items:center;
    gap:9px;
    color:#233750;
    font-size:14px;
}

.sol-month-calendar{
    font-size:17px;
}

.sol-month-years{
    display:flex;
    align-items:center;
    gap:16px;
    color:#243b55;
    font-size:14px;
}

.sol-month-years a{
    display:flex;
    align-items:center;
    justify-content:center;
    width:27px;
    height:27px;
    border:1px solid #e0e7ef;
    border-radius:7px;
    color:#49647f;
    font-size:21px;
}

.sol-month-years a:hover{
    background:#eef5ff;
}

.sol-month-grid{
    display:grid;
    grid-template-columns:repeat(12,minmax(0,1fr));
    gap:7px;
}

.sol-month-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:5px;
    min-height:54px;
    border:1px solid #e5ebf2;
    border-radius:8px;
    background:#f7f9fc;
    color:#445b75;
    font-size:12px;
    font-weight:700;
    transition:background .15s,border-color .15s;
}

.sol-month-item small{
    font-size:11px;
    font-weight:600;
    color:#8798ac;
}

.sol-month-item:hover{
    background:#eaf3ff;
    border-color:#b8d6ff;
}

.sol-month-item.active{
    background:#1479ed;
    border-color:#1479ed;
    color:#fff;
    box-shadow:0 3px 9px rgba(20,121,237,.18);
}

.sol-month-item.active small{
    color:#e5f1ff;
}

.sol-month-footer{
    display:flex;
    justify-content:space-between;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
    margin-top:15px;
    padding-top:12px;
    border-top:1px solid #edf1f6;
    color:#708198;
    font-size:12px;
}

.sol-month-footer strong{
    color:#263e59;
}

@media(max-width:1100px){
    .sol-month-grid{
        grid-template-columns:repeat(6,minmax(0,1fr));
    }
}

@media(max-width:600px){
    .sol-month-panel{
        padding:13px;
    }
    .sol-month-grid{
        grid-template-columns:repeat(4,minmax(0,1fr));
    }
}

/* ==========================================
   SOLICITUDES - FILTROS FINOS PROFESIONALES
   ========================================== */

#sol-filtro-nativo {
    align-items: center !important;
    gap: 10px !important;
}

#sol-filtro-nativo .sol-pro-search {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    border-radius: 7px !important;
    box-sizing: border-box !important;
}

#sol-filtro-nativo .sol-pro-search input {
    height: 34px !important;
    min-height: 0 !important;
    padding: 0 6px !important;
    font-size: 12px !important;
    line-height: normal !important;
    border: 0 !important;
    box-shadow: none !important;
}

#sol-filtro-nativo .sol-pro-search span {
    font-size: 15px !important;
    line-height: 1 !important;
}

#sol-filtro-nativo select[name="estado"] {
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 30px 0 12px !important;
    border-radius: 7px !important;
    font-size: 12px !important;
    line-height: normal !important;
    box-sizing: border-box !important;
}


/* SOLICITUDES - CALENDARIO EN CABECERA V1 */

.sol-heading-calendario {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.sol-heading-calendario .sol-month-bar {
    flex: 1 1 850px !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 6px 8px !important;
    gap: 6px !important;
    border-radius: 8px !important;
}

.sol-heading-calendario .sol-month-label {
    font-size: 11px !important;
    gap: 4px !important;
}

.sol-heading-calendario .sol-month-nav {
    gap: 3px !important;
}

.sol-heading-calendario .sol-month-nav a {
    width: 21px !important;
    height: 36px !important;
    font-size: 16px !important;
}

.sol-heading-calendario .sol-month-buttons {
    flex: 1 0 480px !important;
    min-width: 480px !important;
    grid-template-columns: repeat(12,minmax(35px,1fr)) !important;
    gap: 4px !important;
}

.sol-heading-calendario .sol-month-button {
    height: 36px !important;
    padding: 2px !important;
    gap: 1px !important;
    font-size: 10px !important;
    border-radius: 6px !important;
}

.sol-heading-calendario .sol-month-button small {
    font-size: 9px !important;
    min-width: 18px !important;
    padding: 1px 3px !important;
}

.sol-heading-calendario .sol-month-total {
    min-width: 88px !important;
    padding: 3px 7px !important;
}

.sol-heading-calendario .sol-month-total span {
    font-size: 9px !important;
}

.sol-heading-calendario .sol-month-total strong {
    font-size: 19px !important;
}

.sol-heading-calendario > .btn {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}


/* SOLICITUDES_TIPOGRAFIA_CALENDARIO_V1 */
/* Igual que los folios de la tabla */

body .sol-pro .sol-month-label,
body .sol-pro .sol-month-year {
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #122e50 !important;
    letter-spacing: normal !important;
}


/* SOLICITUDES_CALENDARIO_ELEGANTE_V1 */

/* Etiqueta Ver por mes: mas fina y discreta */
body .sol-pro .sol-month-bar .sol-month-label {
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #7287a0 !important;
    letter-spacing: normal !important;
}

/* Anio con peso equilibrado */
body .sol-pro .sol-month-bar .sol-month-year {
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #122e50 !important;
    letter-spacing: normal !important;
}


/* SOLICITUDES_BOTON_CONTORNO_V1 */

body .sol-pro .sol-pro-heading > a.btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    background: #ffffff !important;
    color: #1677ed !important;
    border: 1px solid #1677ed !important;

    border-radius: 8px !important;
    padding: 0 17px !important;
    height: 36px !important;

    font-size: 12px !important;
    font-weight: 600 !important;

    box-shadow: none !important;
    text-decoration: none !important;
}

body .sol-pro .sol-pro-heading > a.btn:hover {
    background: #eef5ff !important;
    border-color: #0864d8 !important;
    color: #0864d8 !important;
}

/* ENCABEZADO_MAPA_LIMPIO_V1
   Mantener el encabezado por encima del contenido.
   No modificar las capas internas de Leaflet.
*/

@media (min-width: 761px) {
    #app-shell > .content {
        min-width: 0;
    }

    #app-shell > .content > .topbar {
        position: sticky;
        top: 0;
        z-index: 1000;
        background: #ffffff;
    }

    #app-shell > .content > .page {
        position: relative;
        z-index: 0;
    }
}
