
:root{
  --lp-navy:#071226;
  --lp-navy-2:#0b1f3d;
  --lp-blue:#2563eb;
  --lp-blue-2:#1d4ed8;
  --lp-cyan:#5eead4;
  --lp-slate:#5f6f86;
  --lp-bg:#eef3f8;
  --lp-card:#ffffffee;
  --lp-line:#dde6f0;
  --lp-shadow:0 14px 34px rgba(15,23,42,.10);
  --lp-shadow-strong:0 28px 70px rgba(15,23,42,.22);
  --lp-radius:18px;
}
html,body{min-height:100%;}
body{
  margin:0;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.09), transparent 26%),
    linear-gradient(180deg,#edf2f8 0%,#f5f8fc 100%);
  color:#122033;
  font-family:"Segoe UI",Arial,sans-serif;
}
.topbar{
  position:sticky;
  top:0;
  z-index:1050;
  background:linear-gradient(90deg,#020817 0%, #071226 42%, #0b1f3d 100%);
  box-shadow:0 8px 28px rgba(2,8,23,.25);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.brand-wrap{display:flex;align-items:center;gap:12px;}
.brand-logo{width:44px;height:44px;background:#fff;border-radius:12px;padding:4px;object-fit:contain;box-shadow:inset 0 0 0 1px #e8edf3;}
.brand-text{line-height:1.05;}
.brand-title{font-weight:800;color:#fff;font-size:1.24rem;letter-spacing:-.02em;}
.brand-subtitle{color:#c5d2e5;font-size:.88rem;margin-top:2px;}
.nav-menu-btn{
  min-width:126px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(255,255,255,.08);
  color:#fff!important;
  border-radius:16px;
  padding:.7rem 1rem;
  font-weight:800;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.nav-menu-btn:hover,.nav-menu-btn:focus{background:#2563eb;color:#fff;border-color:#2563eb;}
.nav-menu-btn-light{min-width:96px;}
.modules-menu{
  min-width:280px;
  border-radius:18px;
  padding:.7rem;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(7,18,38,.97);
}
.modules-menu .dropdown-item{
  border-radius:12px;
  color:#e6eef9;
  font-weight:600;
  padding:.72rem .85rem;
}
.modules-menu .dropdown-item:hover,
.modules-menu .dropdown-item.active{
  background:rgba(37,99,235,.18);
  color:#fff;
}
.role-chip{
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-width:126px;
  padding:.45rem .9rem;
  border-radius:16px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.14);
  color:#fff;
}
.role-chip-label{
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#b9c8de;
}
.page-wrap{padding:28px 0 38px;}
.full-bleed-wrap{padding:0!important;max-width:none!important;}
.panel-card,.card{
  border:1px solid var(--lp-line);
  border-radius:24px;
  box-shadow:var(--lp-shadow);
  background:#fff;
  overflow:hidden;
}
.panel-card .card-body,.card .card-body{padding:1.35rem;}
.section-title{font-size:1.85rem;font-weight:800;letter-spacing:-.03em;color:#0f172a;margin:0;}
.section-subtitle{color:var(--lp-slate);margin-top:.28rem;max-width:760px;}
.eyebrow-label{
  display:inline-flex;
  margin-bottom:.55rem;
  padding:.38rem .7rem;
  border-radius:999px;
  background:#eaf2ff;
  color:#1d4ed8;
  font-weight:800;
  font-size:.76rem;
  letter-spacing:.04em;
  text-transform:uppercase;
}
.lp-btn-primary,.btn-dark{
  background:linear-gradient(180deg,var(--lp-blue) 0%, var(--lp-blue-2) 100%)!important;
  border:none!important;
  color:#fff!important;
  border-radius:14px;
  font-weight:800;
  box-shadow:0 12px 24px rgba(37,99,235,.25);
}
.lp-btn-secondary,.btn-outline-dark{
  border-radius:14px;
  font-weight:700;
  border-color:#c9d8ea;
  color:#0f172a;
}
.btn-outline-dark:hover{background:#0f172a;color:#fff;border-color:#0f172a;}
.kpi-card{
  border:1px solid var(--lp-line);
  background:#fff;
  border-radius:22px;
  box-shadow:var(--lp-shadow);
  padding:1rem 1.1rem;
  height:100%;
}
.kpi-card-pro{
  position:relative;
  background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);
}
.kpi-card-pro::after{
  content:"";
  position:absolute;
  inset:auto 16px 0 16px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,#2563eb,#5eead4);
  opacity:.75;
}
.kpi-label,.metric-label{font-size:.95rem;color:#62748b;margin-bottom:.35rem;}
.kpi-value,.metric-value{font-size:2rem;font-weight:800;color:#0f172a;line-height:1;}
.kpi-foot{margin-top:.8rem;font-size:.78rem;color:#7b8ca3;}
.table thead th{
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:#5a6d85;
  border-bottom:1px solid #e8eef6;
  background:#f8fbff;
}
.table tbody td{vertical-align:top;border-color:#edf2f7;}
.badge-soft{
  display:inline-flex;
  align-items:center;
  padding:.4rem .75rem;
  border-radius:999px;
  font-weight:700;
  font-size:.8rem;
  background:#edf4ff;
  color:#1d4ed8;
  border:1px solid #cfe0ff;
}
.form-control,.form-select{
  border-radius:14px;
  border:1px solid #d7e1ed;
  padding:.86rem .92rem;
}
.form-control:focus,.form-select:focus{border-color:#8fb3ff;box-shadow:0 0 0 4px rgba(37,99,235,.12);}
.login-stage{
  display:flex;
  align-items:stretch;
  justify-content:center;
  min-height:100vh;
}
.login-full{
  position:relative;
  overflow:hidden;
  border-radius:0!important;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}
.login-full::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(135deg, rgba(5,15,34,.72) 0%, rgba(7,18,38,.46) 48%, rgba(7,18,38,.78) 100%),
    var(--hero-bg) center center/cover no-repeat;
  z-index:0;
}
.login-full > *{position:relative;z-index:1;}
.login-overlay-shell{
  min-height:100vh;
  width:min(1280px, 100%);
  margin:0 auto;
  padding:60px 28px;
  display:grid;
  grid-template-columns:1.2fr .82fr;
  gap:28px;
  align-items:center;
}
.glass-panel{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 28px 90px rgba(2,8,23,.26);
  backdrop-filter:blur(12px);
  border-radius:32px;
}
.login-showcase{
  padding:36px 34px;
  color:#fff;
}
.showcase-head{
  display:flex;
  align-items:center;
  gap:18px;
  margin-bottom:1.2rem;
}
.showcase-logo{
  width:72px;
  height:72px;
  border-radius:20px;
  background:#fff;
  padding:8px;
  object-fit:contain;
  box-shadow:0 14px 30px rgba(3,7,18,.22);
}
.showcase-title{
  font-size:3rem;
  line-height:1;
  margin:0;
  letter-spacing:-.04em;
  font-weight:900;
}
.showcase-text{
  font-size:1.2rem;
  line-height:1.65;
  color:#d9e7f8;
  max-width:620px;
  margin:1rem 0 1.6rem;
}
.showcase-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  max-width:620px;
}
.showcase-pill{
  padding:.95rem 1rem;
  border-radius:18px;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.15);
  font-weight:700;
}
.login-card{
  width:100%;
  max-width:470px;
  margin-left:auto;
  background:rgba(255,255,255,.95);
  border:1px solid rgba(255,255,255,.4);
  border-radius:28px;
  box-shadow:0 24px 48px rgba(2,8,23,.28);
  overflow:hidden;
}
.login-card-pro{backdrop-filter:blur(10px);}
.glass-heavy{background:rgba(255,255,255,.90);}
.login-card .body{padding:28px;}
.status-pill{display:inline-flex;padding:.35rem .7rem;border-radius:999px;font-size:.8rem;font-weight:800;}
.status-Nuevo{background:#eaf2ff;color:#1d4ed8;}
.status-Asignado{background:#fff7ed;color:#c2410c;}
.status-En\ reparto{background:#f5f3ff;color:#6d28d9;}
.status-Entregado{background:#ecfdf3;color:#15803d;}
.status-Anulado{background:#fff1f2;color:#be123c;}
.page-title-bar{display:flex;justify-content:space-between;align-items:end;gap:12px;margin-bottom:1.25rem;}
.empty-state{padding:2rem;text-align:center;color:#64748b;}
.mini-kpi{border:1px solid #d9e5f1;background:#fff;border-radius:16px;padding:14px;box-shadow:0 8px 20px rgba(15,23,42,.05);}
.mini-kpi .label{font-size:.82rem;color:#64748b;}
.mini-kpi .value{font-size:1.15rem;font-weight:800;color:#0f172a;}
.progress-soft{height:10px;background:#edf2f7;border-radius:999px;overflow:hidden;}
.traffic{display:inline-block;width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 5px rgba(15,23,42,.05);}
.traffic-lg{width:18px;height:18px;}
.traffic-red{background:#ef4444;}
.traffic-yellow{background:#f59e0b;}
.traffic-green{background:#22c55e;}
.overview-shell{position:relative;}
.module-card{
  position:relative;
  background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);
  transition:transform .18s ease, box-shadow .18s ease;
}
.module-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(15,23,42,.12);}
.module-badge{
  display:inline-flex;
  margin-bottom:.75rem;
  padding:.35rem .65rem;
  border-radius:999px;
  background:#eff6ff;
  color:#2563eb;
  font-size:.75rem;
  font-weight:800;
  text-transform:uppercase;
}
.table-shell{background:linear-gradient(180deg,#ffffff 0%, #fbfdff 100%);}
.mini-section-title{
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.08em;
  color:#6b7d95;
  font-weight:800;
  margin-bottom:.3rem;
}
.submit-pro-area{display:grid;grid-template-columns:1fr 1.3fr;gap:12px;align-items:center;}
.submit-info{padding:16px 18px;border-radius:20px;color:#dbeafe;background:rgba(7,18,38,.58);border:1px solid rgba(255,255,255,.12);}
.submit-main-btn{min-height:58px;font-size:1.05rem;}
.hero-public{position:relative;border-radius:28px;overflow:hidden;box-shadow:0 22px 42px rgba(15,23,42,.18);border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.9);}
.hero-public::before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(6,16,35,.48),rgba(6,16,35,.48)),var(--hero-bg) center/cover no-repeat;z-index:0;}
.hero-public > *{position:relative;z-index:1;}
.hero-public-full{min-height:calc(100vh - 110px);border-radius:30px;}
.public-overlay{min-height:calc(100vh - 110px);backdrop-filter:blur(2px);}
.public-shell{max-width:1120px;margin:0 auto;}
.full-height-shell{min-height:calc(100vh - 110px);display:flex;flex-direction:column;justify-content:flex-start;}
.public-head{display:flex;gap:14px;align-items:center;padding:20px 24px;background:rgba(248,250,252,.9);border-bottom:1px solid #dfe8f3;backdrop-filter:blur(8px);}
.public-head-pro{background:rgba(248,250,252,.82);border:1px solid rgba(255,255,255,.55);border-radius:26px 26px 0 0;border-bottom:1px solid rgba(255,255,255,.3);}
.public-head .hero-title{font-size:2rem;font-weight:900;letter-spacing:-.03em;margin:0;color:#0f172a;}
.public-head p{margin:.2rem 0 0;color:#617287;}
.public-body{padding:22px;}
.public-body-wide{padding:0 24px 26px;}
.glass-card{background:rgba(255,255,255,.96);border:1px solid #e7eef6;border-radius:20px;box-shadow:0 10px 26px rgba(15,23,42,.06);overflow:hidden;}
.glass-hero-card{background:rgba(255,255,255,.92);backdrop-filter:blur(8px);box-shadow:var(--lp-shadow-strong);border-radius:22px;}
.icon-bubble{width:40px;height:40px;border-radius:12px;background:#eff6ff;color:#2563eb;display:flex;align-items:center;justify-content:center;font-weight:800;}
.container-xxl.full-bleed-wrap{max-width:none!important;padding-left:0!important;padding-right:0!important;}
.hero-public,.login-full{border-left:none;border-right:none;}
.hero-public-full,.public-overlay,.full-height-shell{min-height:calc(100vh - 74px);}
.public-head-pro{border-radius:0!important;border-left:none;border-right:none;background:rgba(248,250,252,.78);}
.public-body-wide{padding:0 18px 28px;}
.public-shell{max-width:1100px;}
.hero-public::before,.login-full::before{background-position:center center;background-size:cover;}
.driver-bg .public-shell{max-width:1280px;}
.table-checksheet thead th{font-size:.82rem;background:#f4f8fd;white-space:nowrap;}
.table-checksheet td,.table-checksheet th{border-color:#e4ecf5;}
.table-checksheet .form-check-input{width:1.1rem;height:1.1rem;cursor:pointer;}
.group-title{font-size:1.02rem;font-weight:800;color:#0f172a;margin-bottom:.6rem;padding:.55rem .8rem;background:#eff6ff;border:1px solid #dbeafe;border-radius:14px;display:inline-block;}
.check-legend{display:flex;gap:18px;flex-wrap:wrap;padding:.8rem 1rem;background:#f8fbff;border:1px solid #e3edf7;border-radius:14px;color:#334155;}
.mini-edit-card,.vehicle-edit-card{padding:10px;border:1px solid #e3ebf4;border-radius:16px;background:#fbfdff;}
.mini-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;}
.metric-label{font-size:.95rem;color:#62748b;margin-bottom:.35rem;}
.metric-value{font-size:2rem;font-weight:800;color:#0f172a;line-height:1;}
.panel-card .border{border-color:#e6edf5!important;background:#fbfdff;}
.table td,.table th{font-size:.94rem;}
.form-check-input:checked{background-color:#2563eb;border-color:#2563eb;}

@media (max-width: 1199px){
  .login-overlay-shell{grid-template-columns:1fr;align-items:start;padding:36px 18px 28px;}
  .login-showcase{order:2;padding:24px;}
  .login-card{order:1;max-width:540px;margin:0 auto;}
}
@media (max-width: 991px){
  .brand-subtitle{display:none;}
  .role-chip{display:none;}
  .showcase-title{font-size:2.25rem;}
  .showcase-grid{grid-template-columns:1fr;}
  .hero-public,.login-full{width:100%;margin-left:0;margin-right:0;}
  .public-shell{max-width:100%;}
  .check-legend{gap:10px;}
}
@media (max-width: 640px){
  .brand-title{font-size:1.05rem;}
  .nav-menu-btn{min-width:auto;padding:.65rem .9rem;}
  .page-wrap{padding:20px 0 28px;}
  .showcase-text{font-size:1rem;}
  .login-card .body{padding:22px;}
}
.login-overlay-shell-pro{width:min(1380px,100%);padding:54px 28px;}
.showcase-pro{padding:42px 38px;}
.showcase-subbrand{display:flex;align-items:center;gap:10px;color:#d7e7fb;font-weight:600;margin-top:.55rem;}
.showcase-subbrand-logo{height:24px;object-fit:contain;filter:drop-shadow(0 8px 16px rgba(3,7,18,.18));}
.showcase-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.login-avatar-logo{width:58px;height:58px;background:#fff;border-radius:16px;padding:7px;object-fit:contain;border:1px solid #e7edf5;}
.login-helper-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.custom-red{background:#fef2f2;color:#b91c1c;border:1px solid #fecaca;}
.custom-green{background:#ecfdf5;color:#15803d;border:1px solid #bbf7d0;}
.custom-blue{background:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;}
.custom-amber{background:#fffbeb;color:#b45309;border:1px solid #fde68a;}
@media (max-width: 1100px){
  .login-overlay-shell,.login-overlay-shell-pro{grid-template-columns:1fr;}
  .login-card{max-width:none;margin-left:0;}
  .showcase-grid-3{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 768px){
  .page-wrap{padding:18px 0 30px;}
  .role-chip{display:none;}
  .modules-menu{min-width:230px;}
  .showcase-title{font-size:2.2rem;}
  .showcase-grid,.showcase-grid-3,.login-helper-grid{grid-template-columns:1fr;}
}


.login-full::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 12% 18%, rgba(94,234,212,.16), transparent 18%),
    radial-gradient(circle at 84% 16%, rgba(37,99,235,.20), transparent 20%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  z-index:0;
}
.showcase-logo-stack{display:flex;align-items:center;gap:14px;}
.showcase-inline-platense{height:42px;max-width:180px;object-fit:contain;filter:drop-shadow(0 10px 20px rgba(2,8,23,.2));}
.showcase-pill{display:flex;flex-direction:column;gap:4px;min-height:88px;}
.showcase-pill strong{font-size:1rem;color:#fff;}
.showcase-pill span{font-size:.88rem;color:#d8e5f5;line-height:1.45;}
.login-card .body{padding:30px;}
.login-avatar-logo{width:54px;height:54px;border-radius:16px;background:#fff;padding:6px;object-fit:contain;box-shadow:0 10px 18px rgba(15,23,42,.12);}
.login-helper-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;}
.home-hero{
  position:relative;
  overflow:hidden;
  border:none;
  background:
    radial-gradient(circle at 10% 20%, rgba(94,234,212,.22), transparent 18%),
    radial-gradient(circle at 90% 10%, rgba(37,99,235,.24), transparent 20%),
    linear-gradient(115deg,#071226 0%,#0a1d39 52%,#11376a 100%);
  color:#fff;
  box-shadow:0 26px 70px rgba(15,23,42,.22);
}
.home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:url('../img/hero_port_logistics.png') center/cover no-repeat;
  mix-blend-mode:screen;
  opacity:.12;
}
.home-hero>*{position:relative;z-index:1;}
.home-hero-title{font-size:2.55rem;line-height:1.02;font-weight:900;letter-spacing:-.04em;margin:.25rem 0 .6rem;}
.home-hero-subtitle{font-size:1.03rem;line-height:1.75;color:#dbe8f7;max-width:760px;}
.home-hero-actions{display:flex;flex-wrap:wrap;gap:12px;}
.btn-hero-chip{border-radius:999px;background:rgba(255,255,255,.10);color:#fff;border:1px solid rgba(255,255,255,.16);font-weight:700;padding:.75rem 1rem;}
.btn-hero-chip:hover{background:rgba(255,255,255,.18);color:#fff;}
.home-hero-panel{padding:18px;border-radius:24px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);backdrop-filter:blur(8px);}
.hero-kpi{padding:14px 16px;border-radius:20px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.10);height:100%;}
.hero-kpi-label{font-size:.86rem;color:#d8e7fa;line-height:1.4;min-height:2.3em;}
.hero-kpi-value{font-size:1.85rem;font-weight:900;line-height:1;color:#fff;margin-top:.45rem;}
.module-card-strong{border-color:#dce7f3;}
.module-card-strong::before{content:"";position:absolute;left:18px;right:18px;top:0;height:4px;border-radius:999px;background:linear-gradient(90deg,#2563eb,#5eead4);opacity:.85;}
.custom-red{background:#fff1f2;color:#be123c;}
.custom-green{background:#ecfdf3;color:#15803d;}
.custom-blue{background:#eff6ff;color:#1d4ed8;}
.custom-amber{background:#fffbeb;color:#b45309;}
@media (max-width: 1100px){
  .login-overlay-shell{grid-template-columns:1fr;max-width:760px;}
  .login-card{margin:0;max-width:none;}
}
@media (max-width: 768px){
  .page-wrap{padding:18px 0 28px;}
  .brand-title{font-size:1.02rem;}
  .brand-subtitle{display:none;}
  .role-chip{display:none;}
  .login-overlay-shell{padding:30px 16px;}
  .showcase-title{font-size:2.2rem;}
  .showcase-grid{grid-template-columns:1fr;}
  .login-helper-grid{grid-template-columns:1fr;}
  .home-hero-title{font-size:2rem;}
}


.home-hero-premium::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg, rgba(2,8,23,.18) 0%, rgba(2,8,23,0) 38%, rgba(94,234,212,.08) 100%);pointer-events:none;}
.home-hero-panel-strong{background:linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 18px 34px rgba(2,8,23,.18);}
body::before{content:"";position:fixed;inset:0;background:radial-gradient(circle at 12% 8%, rgba(37,99,235,.07), transparent 18%),radial-gradient(circle at 80% 18%, rgba(94,234,212,.08), transparent 22%),linear-gradient(180deg, rgba(255,255,255,.35), rgba(255,255,255,0));pointer-events:none;z-index:-1;}
.login-showcase.showcase-pro{background:linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.06));}
.login-card.glass-heavy{box-shadow:0 28px 60px rgba(2,8,23,.35);}


.monitor-dark-shell{background:linear-gradient(180deg,#03112a 0%,#071a3d 100%);border:1px solid rgba(255,255,255,.08);box-shadow:0 26px 60px rgba(2,8,23,.28);padding:24px;color:#fff;}
.monitor-hero{display:grid;grid-template-columns:1.1fr .9fr .8fr;gap:18px;align-items:center;margin-bottom:22px;padding:20px 22px;border-radius:28px;background:linear-gradient(90deg,rgba(255,255,255,.06),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.08);}
.monitor-hero-left,.monitor-hero-right{display:flex;align-items:center;gap:16px;}
.monitor-hero-right{justify-content:flex-end;}
.monitor-logo-box{width:88px;height:88px;border-radius:24px;background:rgba(255,255,255,.08);display:flex;align-items:center;justify-content:center;border:1px solid rgba(255,255,255,.08);}
.monitor-logo-box img{max-width:70px;max-height:70px;object-fit:contain}.monitor-logo-platense img{max-width:110px;}
.monitor-title{margin:0;font-size:2rem;font-weight:900;letter-spacing:-.03em;color:#fff;}
.monitor-subtitle{color:#d8e6f8;margin-top:.4rem;}
.monitor-clock{font-size:4rem;font-weight:900;line-height:1;text-align:center;color:#fff;}
.monitor-date,.monitor-location{text-align:center;color:#dce7f7;font-size:1.1rem;margin-top:.3rem;text-transform:capitalize;}
.monitor-kpi{border-radius:24px;padding:18px 20px;background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.08);height:100%;}
.monitor-kpi .kpi-label{color:#d5e4f7}.monitor-kpi .kpi-value{color:#fff;}
.monitor-column{border-radius:28px;min-height:460px;padding:16px;background:rgba(9,25,55,.62);border:1px solid rgba(255,255,255,.08);}
.monitor-column-head{font-size:2rem;font-weight:800;padding:14px 18px;border-radius:20px;margin-bottom:14px;}
.monitor-column.pending .monitor-column-head{background:linear-gradient(90deg,rgba(255,120,148,.28),rgba(255,120,148,.08));color:#ffd3dd;}
.monitor-column.progress .monitor-column-head{background:linear-gradient(90deg,rgba(252,211,77,.32),rgba(252,211,77,.08));color:#ffe5a6;}
.monitor-column.reprogrammed .monitor-column-head{background:linear-gradient(90deg,rgba(167,139,250,.34),rgba(167,139,250,.08));color:#ddd6fe;}
.monitor-column.done .monitor-column-head{background:linear-gradient(90deg,rgba(52,211,153,.3),rgba(52,211,153,.08));color:#c7ffe9;}
.monitor-task-card{border-radius:22px;padding:16px 18px;margin-bottom:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);box-shadow:inset 3px 0 0 transparent;}
.monitor-task-card.pending{box-shadow:inset 4px 0 0 #ff7a9a;}.monitor-task-card.progress{box-shadow:inset 4px 0 0 #ffd166;}.monitor-task-card.reprogrammed{box-shadow:inset 4px 0 0 #a78bfa;}.monitor-task-card.done{box-shadow:inset 4px 0 0 #34d399;}
.monitor-task-title{font-size:1.28rem;font-weight:800;color:#fff;margin-bottom:8px;}.monitor-task-meta{color:#dbe7f9;line-height:1.5;}
.monitor-tags{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px;}.monitor-tags span{padding:.35rem .65rem;border-radius:999px;background:rgba(37,99,235,.26);border:1px solid rgba(255,255,255,.08);font-size:.82rem;color:#fff;font-weight:700;}
.monitor-empty{background:rgba(255,255,255,.04);border:1px dashed rgba(255,255,255,.12);color:#dbe7f9;border-radius:20px;}
.page-monitor-wrap{padding-top:14px;padding-bottom:14px;}
.monitor-tv-body{overflow:hidden;}
.monitor-shell-tv{height:calc(100vh - 110px);display:flex;flex-direction:column;overflow:hidden;}
.monitor-shell-tv .monitor-hero{margin-bottom:14px;padding:16px 18px;}
.monitor-shell-tv .monitor-title{font-size:1.75rem;}
.monitor-shell-tv .monitor-subtitle{font-size:.96rem;}
.monitor-shell-tv .monitor-clock{font-size:3.25rem;}
.monitor-shell-tv .monitor-date,.monitor-shell-tv .monitor-location{font-size:1rem;}
.monitor-kpi-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;}
.monitor-columns-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;flex:1;min-height:0;}
.monitor-shell-tv .monitor-column{min-height:0;height:100%;display:flex;flex-direction:column;padding:14px;}
.monitor-shell-tv .monitor-column-head{font-size:1.55rem;padding:12px 16px;margin-bottom:12px;}
.monitor-scroll-window{flex:1;min-height:0;overflow:hidden;position:relative;}
.monitor-scroll-track{display:flex;flex-direction:column;}
.monitor-scroll-track.is-animated{animation:monitorScroll var(--scroll-duration,32s) linear infinite;will-change:transform;}
.monitor-shell-tv .monitor-task-card{padding:12px 14px;margin-bottom:10px;border-radius:18px;}
.monitor-shell-tv .monitor-task-title{font-size:1.02rem;margin-bottom:6px;}
.monitor-shell-tv .monitor-task-meta{font-size:.91rem;line-height:1.35;}
.monitor-shell-tv .monitor-tags{margin-top:8px;gap:6px;}
.monitor-shell-tv .monitor-tags span{font-size:.74rem;padding:.28rem .58rem;}
.assignment-cell{min-width:180px;}
@keyframes monitorScroll{from{transform:translateY(0);}to{transform:translateY(var(--scroll-distance, -50%));}}
@media (max-width: 1400px){.monitor-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr));}.monitor-columns-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.monitor-shell-tv{height:auto;overflow:visible;}.monitor-tv-body{overflow:auto;}}
@media (max-width: 992px){.monitor-hero{grid-template-columns:1fr;}.monitor-hero-right{justify-content:flex-start;}.monitor-clock{text-align:left;font-size:3rem;}.monitor-date,.monitor-location{text-align:left;}.monitor-kpi-grid,.monitor-columns-grid{grid-template-columns:1fr;}.monitor-shell-tv{height:auto;overflow:visible;}.monitor-tv-body{overflow:auto;}}

.col-xl-2-4{width:20%;}
@media (max-width:1199px){.col-xl-2-4{width:50%;}}
@media (max-width:767px){.col-xl-2-4{width:100%;}}
.alert-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:1rem 1.1rem;
  border-radius:18px;
  border:1px solid #d7e1ed;
  background:#fff;
}
.alert-row-danger{border-color:#fecaca;background:#fff1f2;}
.alert-row-warning{border-color:#fde68a;background:#fff8db;}
.truck-card{
  border:1px solid #d9e5f0;
  border-radius:22px;
  padding:1rem 1.05rem;
  background:linear-gradient(180deg,#ffffff 0%, #f8fbff 100%);
  box-shadow:var(--lp-shadow);
}
.truck-card-danger{border-color:#fecaca;}
.truck-card-warning{border-color:#fde68a;}
.truck-card-success{border-color:#bbf7d0;}
.truck-code{font-size:.76rem;color:#64748b;font-weight:800;letter-spacing:.06em;text-transform:uppercase;}
.truck-plate{font-size:1.25rem;font-weight:900;color:#0f172a;line-height:1.1;}
.status-chip{
  display:inline-flex;
  align-items:center;
  padding:.4rem .8rem;
  border-radius:999px;
  font-size:.78rem;
  font-weight:800;
  border:1px solid transparent;
  white-space:nowrap;
}
.status-chip-danger{background:#fff1f2;color:#be123c;border-color:#fecdd3;}
.status-chip-warning{background:#fff8db;color:#b45309;border-color:#fde68a;}
.status-chip-success{background:#ecfdf5;color:#15803d;border-color:#bbf7d0;}
.status-chip-neutral{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe;}
.truck-metrics{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.truck-metrics-detail{grid-template-columns:repeat(4,minmax(0,1fr));}
.truck-metrics div{
  border:1px solid #e6edf6;
  border-radius:16px;
  padding:.75rem .85rem;
  background:#fff;
}
.truck-metrics span{display:block;font-size:.78rem;color:#64748b;margin-bottom:.25rem;}
.truck-metrics strong{font-size:1rem;color:#0f172a;}
@media (max-width:991px){.truck-metrics,.truck-metrics-detail{grid-template-columns:repeat(2,minmax(0,1fr));}}


.message-notification-box{
  position:fixed;
  top:82px;
  right:18px;
  z-index:1080;
  width:min(360px, calc(100vw - 36px));
  padding:1rem 1.1rem;
  border-radius:20px;
  background:#ffffff;
  border:1px solid #cfe0ff;
  box-shadow:0 18px 45px rgba(15,23,42,.20);
  animation:messagePulse .35s ease-out;
}
.message-notification-title{
  font-weight:900;
  color:#0f172a;
  margin-bottom:.25rem;
}
.message-notification-text{
  color:#52647a;
  font-size:.92rem;
  line-height:1.35;
}
.message-notification-link{
  display:inline-flex;
  margin-top:.65rem;
  padding:.45rem .7rem;
  border-radius:999px;
  background:#edf4ff;
  color:#1d4ed8;
  text-decoration:none;
  font-weight:800;
  font-size:.82rem;
}
.message-notification-link:hover{background:#2563eb;color:#fff;}
@keyframes messagePulse{
  from{transform:translateY(-8px);opacity:0;}
  to{transform:translateY(0);opacity:1;}
}

/* V21 - notificaciones cerrables y monitor TV */
.message-notification-box{padding:1rem 1.1rem 1rem;}
.message-notification-close{position:absolute;top:10px;right:12px;width:30px;height:30px;border:none;border-radius:999px;background:#eef4ff;color:#1e3a8a;font-size:1.15rem;line-height:1;font-weight:800;display:flex;align-items:center;justify-content:center;cursor:pointer;box-shadow:0 4px 14px rgba(37,99,235,.14);}
.message-notification-close:hover{background:#dbeafe;transform:translateY(-1px);}
.message-notification-title{padding-right:38px;}
.monitor-alert-late{border-radius:18px;padding:.85rem 1rem;background:rgba(251,191,36,.18);border:1px solid rgba(251,191,36,.38);color:#fde68a;font-weight:800;}.monitor-column.progress .monitor-scroll-window{overflow:hidden;}.monitor-column.progress .monitor-task-card,.monitor-task-card{width:100%;max-width:100%;box-sizing:border-box;}.monitor-task-title,.monitor-task-meta{white-space:normal;overflow:visible;text-overflow:unset;word-break:normal;}
.monitor-shell-tv:fullscreen{width:100vw;height:100vh!important;max-width:none!important;border-radius:0!important;margin:0!important;padding:20px!important;}.monitor-shell-tv:-webkit-full-screen{width:100vw;height:100vh!important;max-width:none!important;border-radius:0!important;margin:0!important;padding:20px!important;}html:has(.monitor-shell-tv:fullscreen) .topbar{display:none;}body:fullscreen{background:#020817;}
.grid-column-full{grid-column:1/-1;}


:root{
  --bg:#eef3f8;
  --bg-soft:#f7faff;
  --surface:#ffffffee;
  --surface-2:#f9fbff;
  --card:#ffffff;
  --card-soft:#f8fbff;
  --text:#122033;
  --text-soft:#607086;
  --line:#dbe5f0;
  --line-strong:#c8d5e4;
  --primary:#2563eb;
  --primary-2:#1d4ed8;
  --cyan:#4fd1c5;
  --navy:#081224;
  --navy-2:#0d1c37;
  --success:#16a34a;
  --warning:#f59e0b;
  --danger:#ef4444;
  --shadow:0 18px 48px rgba(15, 23, 42, .10);
  --shadow-strong:0 28px 80px rgba(2,8,23,.22);
  --radius:24px;
  --radius-sm:16px;
}
html[data-theme="dark"]{
  --bg:#08111f;
  --bg-soft:#0b1628;
  --surface:#0f1c31f0;
  --surface-2:#111f36;
  --card:#0f1c31;
  --card-soft:#12223b;
  --text:#e8eef8;
  --text-soft:#9db0c8;
  --line:#1f3352;
  --line-strong:#274166;
  --primary:#4f8cff;
  --primary-2:#3f78e0;
  --cyan:#5eead4;
  --navy:#06101f;
  --navy-2:#0a1830;
  --shadow:0 24px 60px rgba(0, 0, 0, .30);
  --shadow-strong:0 30px 90px rgba(0,0,0,.42);
}
html,body{min-height:100%;}
body{
  margin:0;
  background:
    radial-gradient(circle at top right, rgba(37,99,235,.10), transparent 26%),
    radial-gradient(circle at bottom left, rgba(79,140,255,.08), transparent 22%),
    linear-gradient(180deg,var(--bg) 0%, var(--bg-soft) 100%);
  color:var(--text);
  font-family:"Segoe UI",Arial,sans-serif;
}
a{text-decoration:none;}
.container-fluid{max-width:none;}
.page-wrap{padding:28px 0 38px;}
.full-bleed-wrap{padding:0!important;max-width:none!important;}
.app-shell{display:grid;grid-template-columns:320px minmax(0,1fr);min-height:100vh;}
.app-sidebar{
  position:sticky;top:0;height:100vh;padding:22px 18px 18px;
  background:linear-gradient(180deg,var(--navy) 0%, var(--navy-2) 100%);
  color:#fff;display:flex;flex-direction:column;gap:18px;
  border-right:1px solid rgba(255,255,255,.06);
  box-shadow:inset -1px 0 0 rgba(255,255,255,.04);
}
.sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.sidebar-brand{display:flex;align-items:center;gap:14px;color:#fff;}
.brand-glyph,.showcase-monogram,.login-avatar-logo-text{
  width:52px;height:52px;border-radius:18px;display:flex;align-items:center;justify-content:center;
  font-weight:900;font-size:1.35rem;color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--cyan));
  box-shadow:0 14px 28px rgba(37,99,235,.25);
}
.brand-title{font-weight:800;font-size:1.15rem;letter-spacing:-.02em;}
.brand-subtitle{font-size:.82rem;color:rgba(255,255,255,.65);}
.sidebar-company-card,.sidebar-user-card{
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.06);
  border-radius:24px;padding:18px;
}
.company-card-title{font-size:1.15rem;font-weight:800;line-height:1.15;}
.company-card-subtitle{font-size:.9rem;color:rgba(255,255,255,.72);margin-top:.4rem;line-height:1.5;}
.sidebar-nav{display:grid;gap:8px;}
.sidebar-link{
  color:#d7e4f6;padding:.9rem 1rem;border-radius:16px;font-weight:700;
  border:1px solid transparent;transition:.18s ease;
}
.sidebar-link:hover,.sidebar-link.active{background:rgba(79,140,255,.14);border-color:rgba(79,140,255,.22);color:#fff;transform:translateX(3px);}
.btn-close-sidebar{display:none;border:none;background:rgba(255,255,255,.08);color:#fff;border-radius:12px;padding:.45rem .65rem;font-weight:700;}
.app-content{display:flex;flex-direction:column;min-width:0;}
.app-header{
  position:sticky;top:0;z-index:1020;display:flex;gap:14px;align-items:center;
  padding:18px 24px;background:rgba(255,255,255,.78);backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(15,23,42,.06);
}
html[data-theme="dark"] .app-header{background:rgba(8,17,31,.75);border-bottom-color:rgba(255,255,255,.06);}
.header-kicker{font-size:.72rem;text-transform:uppercase;letter-spacing:.11em;color:var(--text-soft);font-weight:800;}
.header-title{font-size:1.1rem;font-weight:800;letter-spacing:-.02em;}
.app-page{padding:26px 24px 40px;}
.nav-menu-btn{
  min-width:120px;border:1px solid var(--line-strong);background:var(--surface);
  color:var(--text)!important;border-radius:16px;padding:.76rem .95rem;font-weight:800;
  box-shadow:0 8px 20px rgba(15,23,42,.05);
}
.header-icon-btn{min-width:46px;padding:.7rem .78rem;}
.nav-menu-btn:hover,.nav-menu-btn:focus{background:linear-gradient(180deg,var(--primary) 0%, var(--primary-2) 100%);color:#fff!important;border-color:transparent;}
.nav-menu-btn-light{min-width:90px;}
.role-chip{
  display:flex;flex-direction:column;justify-content:center;min-width:126px;padding:.55rem .9rem;border-radius:16px;
  background:var(--surface);border:1px solid var(--line);color:var(--text);
}
.role-chip-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--text-soft);}
.panel-card,.card{
  border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);background:var(--card);overflow:hidden;
}
.panel-card .card-body,.card .card-body{padding:1.35rem;}
.section-title{font-size:2rem;font-weight:900;letter-spacing:-.04em;color:var(--text);margin:0;}
.section-subtitle{color:var(--text-soft);margin-top:.28rem;max-width:900px;line-height:1.55;}
.eyebrow-label{
  display:inline-flex;margin-bottom:.55rem;padding:.38rem .75rem;border-radius:999px;background:rgba(37,99,235,.12);
  color:var(--primary);font-weight:800;font-size:.76rem;letter-spacing:.05em;text-transform:uppercase;
}
.mini-section-title{font-size:.78rem;text-transform:uppercase;letter-spacing:.10em;color:var(--text-soft);font-weight:800;margin-bottom:.45rem;}
.lp-btn-primary,.btn-dark{
  background:linear-gradient(180deg,var(--primary) 0%, var(--primary-2) 100%)!important;border:none!important;color:#fff!important;
  border-radius:16px;font-weight:800;box-shadow:0 12px 28px rgba(37,99,235,.22);
}
.lp-btn-secondary,.btn-outline-dark,.btn-outline-primary{
  border-radius:16px!important;font-weight:800!important;border-color:var(--line-strong)!important;color:var(--text)!important;background:transparent;
}
.btn-outline-primary:hover,.lp-btn-secondary:hover,.btn-outline-dark:hover{background:var(--card-soft)!important;color:var(--text)!important;border-color:var(--primary)!important;}
.page-title-bar{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin-bottom:1.25rem;}
.page-title-pro{padding:0 4px;}
.form-control,.form-select{
  border-radius:16px;border:1px solid var(--line-strong);padding:.86rem .92rem;background:var(--surface-2);color:var(--text);
}
.form-control::placeholder{color:rgba(100,116,139,.9);}
.form-control:focus,.form-select:focus{border-color:rgba(37,99,235,.55);box-shadow:0 0 0 4px rgba(37,99,235,.12);background:var(--card);color:var(--text);}
html[data-theme="dark"] .form-control,html[data-theme="dark"] .form-select{color:var(--text);}
.table thead th{
  font-size:.8rem;text-transform:uppercase;letter-spacing:.06em;color:var(--text-soft);border-bottom:1px solid var(--line);
  background:var(--card-soft);white-space:nowrap;
}
.table tbody td{vertical-align:middle;border-color:var(--line);color:var(--text);}
.table-shell{background:linear-gradient(180deg,var(--card) 0%, var(--card-soft) 100%);}
.badge-soft,.badge-status{
  display:inline-flex;align-items:center;padding:.42rem .78rem;border-radius:999px;font-weight:800;font-size:.8rem;
  background:rgba(37,99,235,.11);color:var(--primary);border:1px solid rgba(37,99,235,.14);
}
.badge-status{background:rgba(15,23,42,.06);color:var(--text);border-color:rgba(15,23,42,.06);}
.badge-status.subtle{background:rgba(79,140,255,.08);color:var(--text-soft);}
.kpi-card,.mini-kpi{border:1px solid var(--line);background:var(--card);border-radius:18px;padding:14px;box-shadow:0 8px 20px rgba(15,23,42,.05);}
.kpi-card-pro{position:relative;background:linear-gradient(180deg,var(--card) 0%, var(--card-soft) 100%);}
.kpi-card-pro::after{content:"";position:absolute;inset:auto 16px 0 16px;height:4px;border-radius:999px;background:linear-gradient(90deg,var(--primary),var(--cyan));opacity:.8;}
.kpi-label,.metric-label,.mini-kpi .label{font-size:.95rem;color:var(--text-soft);margin-bottom:.35rem;}
.kpi-value,.metric-value,.mini-kpi .value{font-size:2rem;font-weight:800;color:var(--text);line-height:1;}
.kpi-foot{margin-top:.8rem;font-size:.78rem;color:var(--text-soft);}
.empty-state{padding:2rem;text-align:center;color:var(--text-soft);}
.progress-soft{height:10px;background:rgba(148,163,184,.16);border-radius:999px;overflow:hidden;}
.traffic{display:inline-block;width:14px;height:14px;border-radius:50%;box-shadow:0 0 0 5px rgba(15,23,42,.05);}
.traffic-lg{width:18px;height:18px;}
.traffic-red{background:var(--danger);} .traffic-yellow{background:var(--warning);} .traffic-green{background:var(--success);}
.module-card{position:relative;background:linear-gradient(180deg,var(--card) 0%, var(--card-soft) 100%);transition:transform .18s ease, box-shadow .18s ease;}
.module-card:hover{transform:translateY(-4px);box-shadow:0 18px 38px rgba(15,23,42,.12);} 
.module-badge{display:inline-flex;margin-bottom:.75rem;padding:.35rem .65rem;border-radius:999px;background:rgba(37,99,235,.10);color:var(--primary);font-size:.75rem;font-weight:800;text-transform:uppercase;}
.overview-shell{position:relative;}
.submit-pro-area{display:grid;grid-template-columns:1fr 1.15fr;gap:14px;align-items:center;}
.submit-info{padding:18px;border-radius:20px;color:#dbeafe;background:linear-gradient(135deg,#0f1c31 0%, #153054 100%);border:1px solid rgba(255,255,255,.08);min-height:100%;display:flex;align-items:center;}
.submit-main-btn{min-height:58px;font-size:1.05rem;}
.hero-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:14px;}
.hero-metric-card{
  border:1px solid var(--line);background:linear-gradient(180deg,var(--card) 0%, var(--card-soft) 100%);border-radius:24px;padding:18px;
  box-shadow:var(--shadow);position:relative;overflow:hidden;
}
.hero-metric-card::before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(180deg,var(--primary),var(--cyan));opacity:.95;}
.hero-metric-label{font-size:.82rem;text-transform:uppercase;letter-spacing:.08em;color:var(--text-soft);font-weight:800;}
.hero-metric-value{font-size:2rem;font-weight:900;letter-spacing:-.04em;margin-top:.55rem;line-height:1;color:var(--text);}
.hero-metric-foot{margin-top:.85rem;font-size:.82rem;color:var(--text-soft);}
.chart-panel .card-body{padding:1.4rem;}
.chart-wrap-lg{height:350px;} .chart-wrap-sm{height:340px;}
.chart-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:1rem;}
.stat-chip-group{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.stat-chip{display:inline-flex;padding:.42rem .75rem;border-radius:999px;background:rgba(37,99,235,.10);color:var(--primary);font-weight:800;font-size:.8rem;}
.alert-row-pro{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:18px;background:var(--card-soft);}
.alert-value{font-size:1.15rem;font-weight:900;color:var(--text);}
.branch-grid,.order-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.branch-card-pro,.order-card-pro{border:1px solid var(--line);background:linear-gradient(180deg,var(--card) 0%, var(--card-soft) 100%);border-radius:24px;padding:18px;box-shadow:var(--shadow);}
.branch-top,.order-card-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;}
.branch-name,.order-main-title{font-size:1.08rem;font-weight:900;color:var(--text);line-height:1.2;}
.branch-meta{font-size:.86rem;color:var(--text-soft);margin-top:.28rem;}
.branch-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:1rem;}
.branch-stats div{padding:12px;border-radius:18px;background:rgba(15,23,42,.04);border:1px solid var(--line);}
.branch-stats span{display:block;font-size:.76rem;color:var(--text-soft);text-transform:uppercase;letter-spacing:.06em;}
.branch-stats strong{display:block;margin-top:.4rem;color:var(--text);font-size:1rem;}
.order-total{font-size:1.35rem;font-weight:900;color:var(--text);letter-spacing:-.03em;}
.order-line-summary{display:flex;flex-wrap:wrap;gap:8px;}
.order-line-pill{display:inline-flex;padding:.5rem .75rem;border-radius:999px;background:rgba(37,99,235,.08);color:var(--text);border:1px solid rgba(37,99,235,.12);font-weight:700;font-size:.82rem;}
.order-line-pill.muted{background:rgba(15,23,42,.05);color:var(--text-soft);border-color:var(--line);}
.approval-track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.approval-step{padding:14px;border-radius:18px;border:1px solid var(--line);background:rgba(15,23,42,.03);}
.approval-step.done{background:rgba(34,197,94,.08);border-color:rgba(34,197,94,.18);} 
.approval-step.pending{background:rgba(245,158,11,.08);border-color:rgba(245,158,11,.18);} 
.approval-step-top{font-size:.74rem;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:var(--text-soft);} 
.approval-step-title{font-weight:800;margin-top:.35rem;color:var(--text);} 
.approval-step-meta{margin-top:.3rem;font-size:.82rem;color:var(--text-soft);line-height:1.4;} 
.receive-panel{padding:16px;border-radius:20px;background:rgba(79,140,255,.06);border:1px dashed rgba(79,140,255,.28);} 
.feed-row{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line);} 
.feed-row:last-child{border-bottom:none;} 
.password-wrap{position:relative;} 
.password-toggle{position:absolute;right:10px;top:50%;transform:translateY(-50%);border:none;background:rgba(37,99,235,.10);color:var(--primary);border-radius:12px;padding:.48rem .75rem;font-weight:800;} 
.login-stage{display:flex;align-items:stretch;justify-content:center;min-height:100vh;} 
.login-full{position:relative;overflow:hidden;border-radius:0!important;width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);} 
.login-full::before{content:"";position:absolute;inset:0;background:linear-gradient(135deg, rgba(5,15,34,.80) 0%, rgba(7,18,38,.52) 48%, rgba(7,18,38,.86) 100%), var(--hero-bg) center center/cover no-repeat;z-index:0;} 
.login-full > *{position:relative;z-index:1;} 
.login-overlay-shell{min-height:100vh;width:min(1360px, 100%);margin:0 auto;padding:48px 24px;display:grid;grid-template-columns:1.2fr .82fr;gap:28px;align-items:center;} 
.glass-panel{background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);box-shadow:0 28px 90px rgba(2,8,23,.26);backdrop-filter:blur(14px);border-radius:34px;} 
.glass-heavy{background:rgba(255,255,255,.92);} 
.login-showcase{padding:38px 36px;color:#fff;} 
.showcase-head{display:flex;align-items:center;gap:18px;margin-bottom:1.1rem;} 
.showcase-title{font-size:3rem;line-height:1;margin:0;letter-spacing:-.04em;font-weight:900;} 
.showcase-subbrand{display:flex;align-items:center;gap:10px;color:#d9e7f8;font-weight:700;margin-top:.45rem;flex-wrap:wrap;} 
.divider-dot{width:6px;height:6px;border-radius:50%;background:#9cc4ff;display:inline-block;} 
.showcase-text{font-size:1.1rem;line-height:1.68;color:#d9e7f8;max-width:650px;margin:1rem 0 1.6rem;} 
.showcase-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;max-width:650px;} 
.showcase-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}
.showcase-pill{padding:1rem 1rem;border-radius:20px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.16);font-weight:700;display:flex;flex-direction:column;gap:6px;} 
.showcase-pill span{font-size:.88rem;color:#d9e7f8;font-weight:500;line-height:1.4;} 
.showcase-bottom-ribbon{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:1rem;} 
.showcase-bottom-ribbon > div{padding:14px 16px;border-radius:18px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);display:flex;flex-direction:column;gap:4px;} 
.small-label{font-size:.72rem;text-transform:uppercase;letter-spacing:.10em;color:#b8cff0;font-weight:800;} 
.login-card{width:100%;max-width:500px;margin-left:auto;background:rgba(255,255,255,.96);border:1px solid rgba(255,255,255,.45);border-radius:30px;box-shadow:var(--shadow-strong);overflow:hidden;} 
.login-card .body{padding:30px;} 
.login-top-brand{display:flex;gap:14px;align-items:center;} 
.login-helper-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;} 
.status-pill{display:inline-flex;padding:.35rem .7rem;border-radius:999px;font-size:.8rem;font-weight:800;} 
.status-Nuevo{background:#eaf2ff;color:#1d4ed8;} .status-Asignado{background:#fff7ed;color:#c2410c;} .status-En\ reparto{background:#f5f3ff;color:#6d28d9;} .status-Entregado{background:#ecfdf3;color:#15803d;} .status-Anulado{background:#fff1f2;color:#be123c;} 
.panel-card .border,.accordion-item,.modal-content{border-color:var(--line)!important;background:var(--card-soft);} 
.accordion-button{background:var(--card-soft);color:var(--text);font-weight:800;} 
.accordion-button:not(.collapsed){background:rgba(37,99,235,.10);color:var(--text);} 
.hero-public{position:relative;border-radius:28px;overflow:hidden;box-shadow:0 22px 42px rgba(15,23,42,.18);border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.9);} 
.hero-public::before{content:"";position:absolute;inset:0;background:linear-gradient(rgba(6,16,35,.48),rgba(6,16,35,.48)),var(--hero-bg) center/cover no-repeat;z-index:0;} 
.hero-public > *{position:relative;z-index:1;} 
.hero-public-full,.public-overlay,.full-height-shell{min-height:calc(100vh - 74px);} 
.public-head{display:flex;gap:14px;align-items:center;padding:20px 24px;background:rgba(248,250,252,.9);border-bottom:1px solid var(--line);backdrop-filter:blur(8px);} 
.public-head-pro{background:rgba(248,250,252,.82);border:1px solid rgba(255,255,255,.55);border-radius:26px 26px 0 0;border-bottom:1px solid rgba(255,255,255,.3);} 
.public-body{padding:22px;} .public-body-wide{padding:0 18px 28px;} .public-shell{max-width:1100px;margin:0 auto;} .glass-card{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:20px;box-shadow:0 10px 26px rgba(15,23,42,.06);overflow:hidden;} 
.icon-bubble{width:40px;height:40px;border-radius:12px;background:rgba(37,99,235,.12);color:var(--primary);display:flex;align-items:center;justify-content:center;font-weight:800;} 
.table td,.table th{font-size:.94rem;} 
.form-check-input:checked{background-color:var(--primary);border-color:var(--primary);} 

@media (max-width: 1500px){
  .hero-metrics{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width: 1199px){
  .login-overlay-shell{grid-template-columns:1fr;align-items:start;padding:36px 18px 28px;}
  .login-showcase{order:2;padding:24px;}
  .login-card{margin:0 auto;}
  .showcase-grid-3{grid-template-columns:repeat(2,minmax(0,1fr));}
  .hero-metrics,.branch-grid,.order-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  .app-shell{grid-template-columns:1fr;}
  .app-sidebar{position:fixed;left:0;top:0;bottom:0;z-index:1200;width:320px;transform:translateX(-102%);transition:transform .2s ease;height:100vh;}
  body.sidebar-open .app-sidebar{transform:translateX(0);}
  .btn-close-sidebar{display:inline-flex;}
}
@media (max-width: 991px){
  .submit-pro-area,.chart-header{grid-template-columns:1fr;display:grid;}
  .approval-track,.branch-stats{grid-template-columns:1fr;}
  .app-header{padding:16px 18px;}
  .app-page{padding:18px 18px 30px;}
}
@media (max-width: 767px){
  .hero-metrics,.branch-grid,.order-card-grid,.showcase-grid,.showcase-grid-3,.showcase-bottom-ribbon,.login-helper-grid{grid-template-columns:1fr;}
  .page-title-bar{flex-direction:column;align-items:stretch;}
  .showcase-title{font-size:2.2rem;}
  .section-title{font-size:1.6rem;}
  .app-header{flex-wrap:wrap;}
  .header-title{font-size:1rem;}
}


:root{--nc-accent:#5f98ff;--nc-bg:#0b1220;--nc-panel:rgba(255,255,255,.88);--nc-text:#102035;--nc-soft:#6d7b94}
html[data-theme="dark"]{--nc-panel:rgba(12,19,33,.86);--nc-text:#eaf1ff;--nc-soft:#9fb0cb}
body{background:radial-gradient(circle at top left,rgba(95,152,255,.12),transparent 25%),linear-gradient(180deg,#eef4ff 0%,#f7f9fc 100%);color:var(--nc-text)}
html[data-theme="dark"] body{background:radial-gradient(circle at top left,rgba(95,152,255,.14),transparent 25%),linear-gradient(180deg,#09111f 0%,#0d1728 100%)}
.panel-card,.glass-panel,.glass-heavy,.hero-metric-card,.branch-card-pro,.module-card,.order-card-pro,.mobile-task-card,.asset-card,.request-card{border:1px solid rgba(255,255,255,.12);box-shadow:0 18px 40px rgba(18,34,58,.10)!important}
.v20-header{backdrop-filter:blur(18px);background:rgba(255,255,255,.7);border:1px solid rgba(255,255,255,.45);border-radius:22px;margin:14px 0 20px;padding:14px 18px}
html[data-theme="dark"] .v20-header{background:rgba(9,17,31,.72);border-color:rgba(255,255,255,.08)}
.sidebar-company-card.v20{background:linear-gradient(135deg,rgba(95,152,255,.28),rgba(95,152,255,.08));border:1px solid rgba(255,255,255,.15)}
.company-pill-row{display:flex;gap:8px;flex-wrap:wrap}.company-pill{padding:7px 12px;border-radius:999px;background:rgba(255,255,255,.12);color:#fff;font-size:.8rem}
.btn-glass-header{background:rgba(95,152,255,.14);border:1px solid rgba(95,152,255,.25);border-radius:14px;padding:10px 14px}
.hero-supercard{position:relative;overflow:hidden;border-radius:32px;background:linear-gradient(135deg,#0d1830,#17345b);color:#fff;box-shadow:0 20px 50px rgba(11,18,32,.22)}
.hero-supercard .hero-layer{position:absolute;inset:0;background:url('../img/bg_panel_enterprise_v20.svg') center/cover no-repeat;opacity:.75}
.alert-chip-row{display:flex;gap:12px;flex-wrap:wrap}.alert-chip{padding:12px 16px;border-radius:18px;background:#fff;border:1px solid rgba(16,32,53,.08);min-width:180px;display:flex;justify-content:space-between;gap:12px}.alert-chip.warning{border-color:rgba(255,193,7,.25)}.alert-chip.danger{border-color:rgba(220,53,69,.25)}.alert-chip.success{border-color:rgba(25,135,84,.25)}.alert-chip.info{border-color:rgba(13,110,253,.25)}
.v20-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:22px}.v20-showcase{min-height:640px}.v20-login-card{align-self:center}
@media (max-width: 992px){.v20-grid{grid-template-columns:1fr}.v20-showcase{min-height:auto}}
.asset-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.asset-card{padding:18px;border-radius:22px;background:var(--nc-panel)}.asset-meta-row{display:flex;justify-content:space-between;font-size:.85rem;color:var(--nc-soft)}
.request-board{display:grid;gap:14px}.request-card{padding:18px;border-radius:24px;background:var(--nc-panel)}.request-card.en-proceso{outline:2px solid rgba(13,110,253,.15)}.request-card.pendiente{outline:2px solid rgba(255,193,7,.18)}.request-card.cerrada{opacity:.82}
.mobile-task-stack{display:grid;gap:14px}.mobile-task-card{padding:18px;border-radius:24px;background:var(--nc-panel)}
.hero-metric-card{background:var(--nc-panel);border-radius:24px}.panel-card{background:var(--nc-panel);border-radius:28px}.table-shell{background:var(--nc-panel)}
.form-control,.form-select{border-radius:16px;padding:.82rem 1rem;border:1px solid rgba(16,32,53,.12)}
.lp-btn-primary,.lp-btn-secondary,.btn-hero-chip{border-radius:16px}
.section-title{font-size:clamp(1.5rem,2vw,2.35rem)}

.app-sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(3,10,21,.48);backdrop-filter:blur(2px);z-index:1190;}
body.sidebar-collapsed .app-shell{grid-template-columns:92px minmax(0,1fr);}
body.sidebar-collapsed .brand-title,body.sidebar-collapsed .brand-subtitle,body.sidebar-collapsed .sidebar-company-card,body.sidebar-collapsed .sidebar-user-card,body.sidebar-collapsed .sidebar-link{font-size:0;line-height:0;}
body.sidebar-collapsed .sidebar-link{padding:.9rem .4rem;display:flex;justify-content:center;}
body.sidebar-collapsed .sidebar-brand{justify-content:center;}
body.sidebar-collapsed .sidebar-top{justify-content:center;}
body.sidebar-collapsed .app-sidebar{padding-left:12px;padding-right:12px;}
body.sidebar-collapsed .btn-close-sidebar{display:none!important;}
@media (max-width:1199px){ .app-sidebar-overlay{display:none;} body.sidebar-open .app-sidebar-overlay{display:block;} }


/* v22 definitivo fixes */
.app-shell{grid-template-columns:340px minmax(0,1fr);align-items:stretch;}
.app-sidebar{overflow:hidden;min-width:0;}
.sidebar-top,.sidebar-company-card,.sidebar-user-card{flex:0 0 auto;}
.sidebar-nav{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding-right:8px;scrollbar-width:thin;scrollbar-color:rgba(120,160,220,.45) rgba(255,255,255,.04);scrollbar-gutter:stable;}
.sidebar-nav::-webkit-scrollbar{width:10px;}
.sidebar-nav::-webkit-scrollbar-track{background:rgba(255,255,255,.04);border-radius:999px;}
.sidebar-nav::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(95,152,255,.85),rgba(79,209,197,.8));border-radius:999px;border:2px solid rgba(0,0,0,0);background-clip:padding-box;}
.sidebar-link{display:flex;align-items:center;min-height:50px;line-height:1.3;word-break:break-word;}
.sidebar-company-card,.sidebar-user-card,.sidebar-brand{overflow:hidden;}
.brand-title,.brand-subtitle,.company-card-title,.company-card-subtitle{word-break:break-word;}
.app-page,.app-content,.panel-card,.card,.table-responsive{min-width:0;}
body.sidebar-collapsed .app-shell{grid-template-columns:96px minmax(0,1fr);}
body.sidebar-collapsed .sidebar-company-card,
body.sidebar-collapsed .sidebar-user-card,
body.sidebar-collapsed .brand-title,
body.sidebar-collapsed .brand-subtitle{display:none!important;}
body.sidebar-collapsed .sidebar-brand,
body.sidebar-collapsed .sidebar-top{justify-content:center;}
body.sidebar-collapsed .sidebar-nav{padding-right:0;}
body.sidebar-collapsed .sidebar-link{justify-content:center;font-size:0;padding:.92rem .5rem;}
body.sidebar-collapsed .sidebar-link::before{content:'•';font-size:1.25rem;line-height:1;color:#d7e4f6;}
body.sidebar-collapsed .sidebar-link.active::before{color:#ffffff;}
@media (max-width:1199px){
  .app-sidebar{width:340px;max-width:88vw;}
  .sidebar-nav{padding-bottom:14px;}
}



/* ===== Estilo shell v21 adaptado ===== */
.app-shell.alpha-shell{grid-template-columns:320px minmax(0,1fr);}
.app-sidebar{overflow:hidden;}
.sidebar-nav.custom-scrollbar{overflow-y:auto;overflow-x:hidden;padding-right:6px;min-height:0;flex:1 1 auto;align-content:start;}
.sidebar-nav.custom-scrollbar::-webkit-scrollbar{width:10px;}
.sidebar-nav.custom-scrollbar::-webkit-scrollbar-track{background:rgba(255,255,255,.05);border-radius:999px;}
.sidebar-nav.custom-scrollbar::-webkit-scrollbar-thumb{background:rgba(148,163,184,.35);border-radius:999px;border:2px solid transparent;background-clip:padding-box;}
.sidebar-nav.custom-scrollbar{scrollbar-color:rgba(148,163,184,.55) rgba(255,255,255,.05);scrollbar-width:thin;}
.brand-glyph,.login-avatar-logo-text{letter-spacing:-.03em;}
.company-pill-row{display:flex;flex-wrap:wrap;gap:10px;}
.company-pill{display:inline-flex;align-items:center;padding:.45rem .85rem;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.08);color:#fff;font-weight:700;font-size:.85rem;}
.login-avatar-logo-text{flex:0 0 auto;}
.showcase-logo,.showcase-inline-platense,.login-avatar-logo,.brand-logo{display:none!important;}
.app-page .panel-card,.app-page .card{backdrop-filter:blur(10px);}
.home-hero-premium,.home-hero,.home-hero-panel-strong,.module-card-strong{position:relative;overflow:hidden;}
.home-hero-premium::before,.module-card-strong::before,.home-hero-panel-strong::before{content:"";position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(180deg,var(--primary),var(--cyan));opacity:.95;}
.hero-kpi,.mini-kpi{background:linear-gradient(180deg,var(--card) 0%, var(--card-soft) 100%);border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:0 8px 20px rgba(15,23,42,.05);}
.hero-kpi-label{font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;color:var(--text-soft);font-weight:800;}
.hero-kpi-value{font-size:1.55rem;font-weight:900;letter-spacing:-.03em;margin-top:.35rem;color:var(--text);}
.home-hero-panel{border-radius:24px;padding:20px;background:linear-gradient(135deg,#0f1c31 0%, #153054 100%);border:1px solid rgba(255,255,255,.08);box-shadow:var(--shadow-strong);}
.home-hero-title{font-size:2.75rem;line-height:1.02;letter-spacing:-.05em;font-weight:900;margin-top:.2rem;color:var(--text);}
.home-hero-subtitle{font-size:1.18rem;line-height:1.55;color:var(--text-soft);margin-top:.8rem;max-width:760px;}
.btn-hero-chip{border-radius:999px;padding:.85rem 1rem;font-weight:800;border:1px solid var(--line);background:var(--surface);color:var(--text);box-shadow:0 8px 20px rgba(15,23,42,.05);}
.btn-hero-chip:hover{background:var(--primary);border-color:var(--primary);color:#fff;}
.page-title-bar{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;}
.table-responsive{border-radius:20px;}
.status-pill{display:inline-flex;align-items:center;padding:.42rem .78rem;border-radius:999px;font-weight:800;font-size:.8rem;background:rgba(15,23,42,.06);color:var(--text);border:1px solid rgba(15,23,42,.08);}
.status-Subida,.status-subida{background:rgba(22,163,74,.12);color:#166534;border-color:rgba(22,163,74,.18);}
.status-Bajada,.status-bajada{background:rgba(245,158,11,.12);color:#92400e;border-color:rgba(245,158,11,.18);}
.status-Pendiente,.status-pendiente{background:rgba(245,158,11,.12);color:#92400e;border-color:rgba(245,158,11,.18);}
.status-Completado,.status-completado,.status-Entregado,.status-entregado{background:rgba(22,163,74,.12);color:#166534;border-color:rgba(22,163,74,.18);}
.status-Cancelado,.status-cancelado,.status-Anulado,.status-anulado{background:rgba(239,68,68,.12);color:#991b1b;border-color:rgba(239,68,68,.18);}
.message-notification-box{position:fixed;right:22px;bottom:22px;z-index:1400;max-width:360px;padding:18px;border-radius:22px;border:1px solid var(--line);background:var(--card);box-shadow:var(--shadow-strong);}
.message-notification-title{font-size:.9rem;font-weight:900;letter-spacing:.02em;color:var(--text);margin-bottom:.4rem;}
.message-notification-text{font-size:.95rem;color:var(--text-soft);line-height:1.55;margin-bottom:.7rem;}
.message-notification-link{display:inline-flex;align-items:center;gap:8px;padding:.65rem .95rem;border-radius:14px;background:linear-gradient(180deg,var(--primary) 0%, var(--primary-2) 100%);color:#fff;font-weight:800;}
.message-notification-close{position:absolute;right:10px;top:10px;border:none;background:transparent;color:var(--text-soft);font-size:1.2rem;}
.login-showcase .eyebrow-label{background:rgba(255,255,255,.08);color:#dbeafe;}
.login-helper-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
.login-helper-grid .mini-kpi{height:100%;}
@media (max-width: 1199px){
  .app-shell.alpha-shell{grid-template-columns:1fr;}
  .app-sidebar{position:fixed;left:0;top:0;bottom:0;z-index:1300;width:min(88vw,320px);transform:translateX(-102%);transition:transform .22s ease;}
  body.sidebar-open .app-sidebar{transform:translateX(0);}
  .app-sidebar-overlay{position:fixed;inset:0;background:rgba(2,8,23,.48);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:1290;}
  body.sidebar-open .app-sidebar-overlay{opacity:1;pointer-events:auto;}
  .btn-close-sidebar{display:inline-flex;align-items:center;justify-content:center;}
}
@media (min-width: 1200px){
  .app-sidebar-overlay{display:none;}
  body.sidebar-collapsed .app-shell.alpha-shell{grid-template-columns:104px minmax(0,1fr);}
  body.sidebar-collapsed .app-sidebar{padding-inline:14px;}
  body.sidebar-collapsed .sidebar-brand,body.sidebar-collapsed .sidebar-company-card,body.sidebar-collapsed .sidebar-user-card{justify-content:center;}
  body.sidebar-collapsed .sidebar-brand > div:last-child,body.sidebar-collapsed .sidebar-company-card > :not(.company-pill-row):not(.mini-section-title),body.sidebar-collapsed .sidebar-user-card > :not(.mini-section-title),body.sidebar-collapsed .company-pill-row{display:none!important;}
  body.sidebar-collapsed .sidebar-link{text-align:center;padding-inline:.4rem;white-space:nowrap;overflow:hidden;text-overflow:clip;font-size:.78rem;}
}


/* ===== Definitivo v21 estilo platense ===== */
.app-shell.alpha-shell{display:grid;grid-template-columns:340px minmax(0,1fr);min-height:100vh;background:linear-gradient(180deg,#eef3f9 0%,#f6f9fc 100%);}
.app-sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;gap:18px;padding:18px;background:linear-gradient(180deg,#06142a 0%,#071a35 100%);border-right:1px solid rgba(255,255,255,.06);box-shadow:16px 0 40px rgba(2,8,23,.18);overflow:hidden;}
.sidebar-top{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.sidebar-brand{display:flex;align-items:center;gap:14px;text-decoration:none;min-width:0;}
.brand-glyph{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-size:1.55rem;font-weight:900;background:linear-gradient(135deg,#2f6df6,#5de2d4);color:#fff;box-shadow:0 16px 32px rgba(48,109,246,.28);flex:0 0 auto;}
.brand-copy{min-width:0;}
.brand-title{font-size:1.8rem;font-weight:800;color:#fff;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.brand-subtitle{font-size:.98rem;color:#c6d3e4;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.btn-close-sidebar{display:none;background:transparent;border:none;color:#fff;font-size:1.2rem;}
.sidebar-company-card,.sidebar-user-card{background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.08);border-radius:26px;padding:18px 20px;overflow:hidden;}
.company-card-title{color:#fff;font-size:1.1rem;font-weight:800;margin-bottom:6px;}
.company-card-subtitle{color:#d9e5f4;font-size:.95rem;line-height:1.45;}
.company-pill-row{display:flex;flex-wrap:wrap;gap:10px;}
.company-pill{display:inline-flex;align-items:center;border-radius:999px;padding:.55rem .9rem;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.08);color:#f4f8ff;font-size:.88rem;font-weight:700;max-width:100%;}
.sidebar-scroll-wrap{position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;}
.sidebar-scroll-indicator{height:18px;pointer-events:none;opacity:.95;flex:0 0 auto;}
.sidebar-scroll-indicator.top{background:linear-gradient(180deg,rgba(6,20,42,.92),rgba(6,20,42,0));}
.sidebar-scroll-indicator.bottom{background:linear-gradient(0deg,rgba(6,20,42,.92),rgba(6,20,42,0));}
.sidebar-nav.custom-scrollbar{display:flex;flex-direction:column;gap:8px;overflow-y:auto;overflow-x:hidden;min-height:0;padding-right:8px;scrollbar-width:thin;scrollbar-color:rgba(118,144,182,.8) rgba(255,255,255,.06);}
.sidebar-nav.custom-scrollbar::-webkit-scrollbar{width:10px;}
.sidebar-nav.custom-scrollbar::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(100,130,180,.9),rgba(89,189,201,.85));border-radius:999px;border:2px solid transparent;background-clip:padding-box;}
.sidebar-nav.custom-scrollbar::-webkit-scrollbar-track{background:rgba(255,255,255,.06);border-radius:999px;}
.sidebar-link{display:flex;align-items:center;min-height:54px;padding:0 16px;border-radius:18px;text-decoration:none;color:#e6eef8;font-weight:750;font-size:1.02rem;line-height:1.2;background:transparent;border:1px solid transparent;transition:.18s ease;}
.sidebar-link:hover{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.08);}
.sidebar-link.active{background:linear-gradient(180deg,rgba(40,84,171,.45),rgba(31,65,137,.55));border-color:rgba(88,138,255,.35);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.06);}
.app-content{min-width:0;display:flex;flex-direction:column;}
.app-page{padding:24px 28px 32px;}
.app-header.v22-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:18px;padding:22px 28px;background:rgba(248,250,252,.88);backdrop-filter:blur(14px);border-bottom:1px solid #dde6f0;}
.header-icon-btn{min-width:56px;width:56px;height:56px;display:grid;place-items:center;border-radius:18px;padding:0!important;background:#fff!important;color:#1e293b!important;border:1px solid #c8d5e4!important;box-shadow:0 8px 20px rgba(15,23,42,.06);}
.header-icon-btn:hover{background:#f8fbff!important;color:#0f172a!important;border-color:#adc3df!important;}
.header-kicker{font-size:.88rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#71839c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.header-title{font-size:1.7rem;font-weight:850;color:#10223b;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.role-chip{min-width:180px;padding:.58rem .95rem;border-radius:18px;background:#fff;border:1px solid #d7e1ee;color:#15263d;box-shadow:0 8px 18px rgba(15,23,42,.04);}
.role-chip-label{color:#7c8ca4;}
.nav-menu-btn.nav-menu-btn-light{background:#fff!important;border:1px solid #d7e1ee!important;color:#10223b!important;}
.nav-menu-btn.nav-menu-btn-light:hover{background:#f8fbff!important;border-color:#aac1df!important;}
body.sidebar-collapsed .app-shell.alpha-shell{grid-template-columns:108px minmax(0,1fr);}
body.sidebar-collapsed .brand-copy, body.sidebar-collapsed .sidebar-company-card, body.sidebar-collapsed .sidebar-user-card{display:none!important;}
body.sidebar-collapsed .sidebar-brand, body.sidebar-collapsed .sidebar-top{justify-content:center;}
body.sidebar-collapsed .sidebar-nav.custom-scrollbar{padding-right:0;}
body.sidebar-collapsed .sidebar-link{justify-content:center;padding-inline:.4rem;font-size:0;}
body.sidebar-collapsed .sidebar-link::before{content:"•";font-size:1.5rem;line-height:1;color:#dce9fa;}
body.sidebar-collapsed .sidebar-link.active::before{color:#fff;}
body.sidebar-collapsed .app-sidebar{padding-inline:14px;}
.min-w-0{min-width:0;}
@media (max-width:1199px){
  .app-shell.alpha-shell{grid-template-columns:minmax(0,1fr);}
  .app-sidebar{position:fixed;left:0;top:0;bottom:0;width:min(88vw,340px);z-index:1300;transform:translateX(-103%);transition:transform .22s ease;box-shadow:20px 0 50px rgba(2,8,23,.28);}
  body.sidebar-open .app-sidebar{transform:translateX(0);}
  .btn-close-sidebar{display:block;}
  .app-sidebar-overlay{position:fixed;inset:0;background:rgba(2,8,23,.46);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:1290;}
  body.sidebar-open .app-sidebar-overlay{opacity:1;pointer-events:auto;}
  .app-header.v22-header{padding:18px 18px;}
  .app-page{padding:18px 16px 24px;}
  .header-title{font-size:1.35rem;}
  .role-chip{min-width:auto;}
}

/* ===== Final definitivo Mac + sidebar scroll estable ===== */
.app-shell.alpha-shell{
  display:grid;
  grid-template-columns:340px minmax(0,1fr);
  min-height:100vh;
  background:linear-gradient(180deg,#eef3f9 0%,#f6f9fc 100%);
}
.app-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:18px;
  background:linear-gradient(180deg,#06142a 0%,#071a35 100%);
  border-right:1px solid rgba(255,255,255,.06);
  box-shadow:16px 0 40px rgba(2,8,23,.18);
  overflow:hidden;
}
.sidebar-brand{display:flex;align-items:center;gap:14px;text-decoration:none;min-width:0;}
.brand-glyph{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-size:1.55rem;font-weight:900;background:linear-gradient(135deg,#2f6df6,#5de2d4);color:#fff;box-shadow:0 16px 32px rgba(48,109,246,.28);flex:0 0 auto;}
.brand-copy{min-width:0;}
.brand-title{font-size:1.8rem;font-weight:800;color:#fff;line-height:1.05;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.brand-subtitle{font-size:.98rem;color:#c6d3e4;line-height:1.2;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.sidebar-company-card,.sidebar-user-card{background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04));border:1px solid rgba(255,255,255,.08);border-radius:26px;padding:18px 20px;overflow:hidden;}
.company-card-title{color:#fff;font-size:1.1rem;font-weight:800;margin-bottom:6px;}
.company-card-subtitle{color:#d9e5f4;font-size:.95rem;line-height:1.45;}
.company-pill-row{display:flex;flex-wrap:wrap;gap:10px;}
.company-pill{display:inline-flex;align-items:center;border-radius:999px;padding:.55rem .9rem;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.08);color:#f4f8ff;font-size:.88rem;font-weight:700;max-width:100%;}
.sidebar-scroll-wrap{position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column;overflow:hidden;}
.sidebar-scroll-indicator{height:18px;pointer-events:none;opacity:.95;flex:0 0 auto;}
.sidebar-scroll-indicator.top{background:linear-gradient(180deg,rgba(6,20,42,.92),rgba(6,20,42,0));}
.sidebar-scroll-indicator.bottom{background:linear-gradient(0deg,rgba(6,20,42,.92),rgba(6,20,42,0));}
.sidebar-nav.custom-scrollbar{display:flex;flex-direction:column;gap:8px;overflow-y:auto;overflow-x:hidden;min-height:0;padding-right:8px;scrollbar-width:thin;scrollbar-color:rgba(118,144,182,.8) rgba(255,255,255,.06);}
.sidebar-nav.custom-scrollbar::-webkit-scrollbar{width:10px;}
.sidebar-nav.custom-scrollbar::-webkit-scrollbar-thumb{background:linear-gradient(180deg,rgba(100,130,180,.9),rgba(89,189,201,.85));border-radius:999px;border:2px solid transparent;background-clip:padding-box;}
.sidebar-nav.custom-scrollbar::-webkit-scrollbar-track{background:rgba(255,255,255,.06);border-radius:999px;}
.sidebar-link{display:flex;align-items:center;min-height:54px;padding:0 16px;border-radius:18px;text-decoration:none;color:#e6eef8;font-weight:750;font-size:1.02rem;line-height:1.2;background:transparent;border:1px solid transparent;transition:.18s ease;}
.sidebar-link:hover{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.08);}
.sidebar-link.active{background:linear-gradient(180deg,rgba(40,84,171,.45),rgba(31,65,137,.55));border-color:rgba(88,138,255,.35);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.06);}
.app-content{min-width:0;display:flex;flex-direction:column;}
.app-page{padding:24px 28px 32px;}
.app-header.v22-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;gap:18px;padding:22px 28px;background:rgba(248,250,252,.88);backdrop-filter:blur(14px);border-bottom:1px solid #dde6f0;}
.header-icon-btn{min-width:56px;width:56px;height:56px;display:grid;place-items:center;border-radius:18px;padding:0!important;background:#fff!important;color:#1e293b!important;border:1px solid #c8d5e4!important;box-shadow:0 8px 20px rgba(15,23,42,.06);}
.header-icon-btn:hover{background:#f8fbff!important;color:#0f172a!important;border-color:#adc3df!important;}
.header-kicker{font-size:.88rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#71839c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.header-title{font-size:1.7rem;font-weight:850;color:#10223b;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.role-chip{min-width:180px;padding:.58rem .95rem;border-radius:18px;background:#fff;border:1px solid #d7e1ee;color:#15263d;box-shadow:0 8px 18px rgba(15,23,42,.04);}
.role-chip-label{color:#7c8ca4;}
.nav-menu-btn.nav-menu-btn-light{background:#fff!important;border:1px solid #d7e1ee!important;color:#10223b!important;}
.nav-menu-btn.nav-menu-btn-light:hover{background:#f8fbff!important;border-color:#aac1df!important;}
.home-hero,.home-hero-premium,.hero-supercard{background-image:linear-gradient(135deg,rgba(13,24,48,.96),rgba(23,52,91,.92)),url('../img/bg_panel_enterprise_v20.svg');background-position:center;background-size:cover;background-repeat:no-repeat;}
.hero-supercard .hero-layer{background:url('../img/bg_panel_enterprise_v20.svg') center/cover no-repeat;opacity:.75;}
body.sidebar-collapsed .app-shell.alpha-shell{grid-template-columns:104px minmax(0,1fr);}
body.sidebar-collapsed .brand-copy,
body.sidebar-collapsed .sidebar-company-card,
body.sidebar-collapsed .sidebar-user-card{display:none!important;}
body.sidebar-collapsed .sidebar-top,
body.sidebar-collapsed .sidebar-brand{justify-content:center;}
body.sidebar-collapsed .sidebar-scroll-indicator{display:none!important;}
body.sidebar-collapsed .sidebar-nav.custom-scrollbar{padding-right:0;gap:10px;}
body.sidebar-collapsed .sidebar-link{justify-content:center;padding-inline:.35rem;font-size:0!important;min-height:50px;}
body.sidebar-collapsed .sidebar-link::before{content:'•';font-size:1.45rem;line-height:1;color:#dce9fa;}
body.sidebar-collapsed .sidebar-link.active::before{color:#fff;}
body.sidebar-collapsed .app-sidebar{padding-inline:14px;}
.min-w-0{min-width:0;}
@media (max-width:1199px){
  .app-shell.alpha-shell{grid-template-columns:minmax(0,1fr);}
  .app-sidebar{position:fixed;left:0;top:0;bottom:0;width:min(88vw,340px);z-index:1300;transform:translateX(-103%);transition:transform .22s ease;box-shadow:20px 0 50px rgba(2,8,23,.28);}
  body.sidebar-open .app-sidebar{transform:translateX(0);}
  .btn-close-sidebar{display:block;}
  .app-sidebar-overlay{position:fixed;inset:0;background:rgba(2,8,23,.46);backdrop-filter:blur(3px);opacity:0;pointer-events:none;transition:opacity .2s ease;z-index:1290;}
  body.sidebar-open .app-sidebar-overlay{opacity:1;pointer-events:auto;}
  .app-header.v22-header{padding:18px 18px;}
  .app-page{padding:18px 16px 24px;}
  .header-title{font-size:1.35rem;}
  .role-chip{min-width:auto;}
}

/* === PROYECTO LOGÍSTICA · SIDEBAR Y LAYOUT FINAL === */
html, body{height:100%;}
body{
  overflow-x:hidden;
}
body .app-shell.alpha-shell{
  display:block !important;
  min-height:100vh;
  background:linear-gradient(180deg,#eef3f9 0%,#f6f9fc 100%) !important;
}
body .app-sidebar{
  position:fixed !important;
  inset:0 auto 0 0 !important;
  width:340px !important;
  height:100vh !important;
  display:flex !important;
  flex-direction:column !important;
  gap:16px !important;
  padding:16px !important;
  background:linear-gradient(180deg,#06142a 0%,#071a35 100%) !important;
  border-right:1px solid rgba(255,255,255,.06) !important;
  box-shadow:16px 0 40px rgba(2,8,23,.18) !important;
  overflow:hidden !important;
  z-index:1300 !important;
  transform:translateX(0);
  transition:transform .22s ease, width .22s ease;
}
body .app-content{
  margin-left:340px !important;
  min-height:100vh !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
}
body .app-page{
  padding:24px 28px 36px !important;
  min-width:0;
}
body .app-page > .row,
body .app-page .container,
body .app-page .container-fluid{min-width:0;}

body .sidebar-top,
body .sidebar-brand,
body .sidebar-company-card,
body .sidebar-user-card{min-width:0;}
body .sidebar-brand{
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
  color:#fff !important;
  text-decoration:none !important;
}
body .brand-glyph{
  flex:0 0 58px;
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:linear-gradient(135deg,#3b82f6,#5eead4);
  color:#fff;
  font-weight:900;
  font-size:1.65rem;
  box-shadow:0 16px 34px rgba(37,99,235,.24);
}
body .brand-copy{min-width:0;}
body .brand-title{
  color:#fff !important;
  font-size:1.05rem !important;
  font-weight:800 !important;
  line-height:1.1 !important;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
body .brand-subtitle{
  color:#c6d6ee !important;
  font-size:.92rem !important;
  line-height:1.3 !important;
}
body .btn-close-sidebar{
  display:none;
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
}
body .sidebar-company-card,
body .sidebar-user-card{
  background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.04)) !important;
  border:1px solid rgba(255,255,255,.08) !important;
  border-radius:24px !important;
  padding:18px 20px !important;
  overflow:hidden !important;
}
body .company-card-title{
  font-size:1.05rem;
  font-weight:800;
  color:#fff;
  margin-bottom:6px;
}
body .company-card-subtitle{
  color:#d7e3f3;
  font-size:.95rem;
  line-height:1.45;
}
body .company-pill-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
body .company-pill{
  display:inline-flex;
  align-items:center;
  padding:.52rem .9rem;
  border-radius:999px;
  font-weight:700;
  color:#fff;
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.08);
}
body .sidebar-scroll-wrap{
  position:relative !important;
  flex:1 1 auto !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px;
  overflow:hidden !important;
}
body .sidebar-scroll-btn{
  flex:0 0 auto;
  height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.08);
  color:#dce8f8;
  font-size:.9rem;
  font-weight:900;
  line-height:1;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
body .sidebar-scroll-btn:hover{
  background:rgba(37,99,235,.25);
  color:#fff;
}
body .sidebar-nav.custom-scrollbar{
  flex:1 1 auto !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  gap:10px !important;
  overflow-y:scroll !important;
  overflow-x:hidden !important;
  padding-right:6px !important;
  scrollbar-gutter:stable both-edges;
  scrollbar-width:auto;
  scrollbar-color:rgba(125,166,228,.95) rgba(255,255,255,.08);
}
body .sidebar-nav.custom-scrollbar::-webkit-scrollbar{width:12px;}
body .sidebar-nav.custom-scrollbar::-webkit-scrollbar-track{background:rgba(255,255,255,.08);border-radius:999px;}
body .sidebar-nav.custom-scrollbar::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#6fa3ff,#63e8d2);border-radius:999px;border:2px solid transparent;background-clip:padding-box;}
body .sidebar-link{
  display:block !important;
  width:100%;
  padding:1rem 1.1rem !important;
  border-radius:20px !important;
  color:#e8f0fb !important;
  text-decoration:none !important;
  font-size:1.05rem !important;
  font-weight:800 !important;
  line-height:1.25 !important;
  border:1px solid transparent;
  background:transparent;
  transition:all .18s ease;
}
body .sidebar-link:hover{
  color:#fff !important;
  background:rgba(255,255,255,.09) !important;
  border-color:rgba(255,255,255,.08);
}
body .sidebar-link.active{
  color:#fff !important;
  background:linear-gradient(180deg,rgba(37,99,235,.30),rgba(37,99,235,.18)) !important;
  border-color:rgba(73,124,214,.65);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}
body .app-sidebar-overlay{
  position:fixed;
  inset:0;
  background:rgba(2,8,23,.46);
  backdrop-filter:blur(3px);
  opacity:0;
  pointer-events:none;
  transition:opacity .2s ease;
  z-index:1290;
}
body .header-kicker{font-size:.84rem;font-weight:800;color:#64748b;text-transform:uppercase;letter-spacing:.08em;}
body .header-title{font-size:2rem;font-weight:900;color:#142338;line-height:1.1;}
body .app-header.v22-header{
  position:sticky;
  top:0;
  z-index:1200;
  display:flex;
  align-items:center;
  gap:16px;
  padding:18px 28px;
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(15,23,42,.08);
}
body .nav-icon-btn.header-icon-btn{
  min-width:52px !important;
  width:52px;
  height:52px;
  padding:0 !important;
  display:grid;
  place-items:center;
  font-size:1.28rem;
  border-radius:18px !important;
  background:#fff !important;
  color:#122033 !important;
  border:1px solid #d5e0ec !important;
  box-shadow:0 10px 26px rgba(15,23,42,.08);
}
body .role-chip{
  min-width:150px !important;
  background:#fff !important;
  color:#122033 !important;
  border:1px solid #d6e0ec !important;
  box-shadow:0 10px 22px rgba(15,23,42,.06);
}
body .role-chip-label{color:#7a8ba2 !important;}
body .nav-menu-btn-light{
  min-width:96px !important;
  background:#fff !important;
  color:#122033 !important;
  border:1px solid #d6e0ec !important;
}
body .nav-menu-btn-light:hover{background:#eff6ff !important;color:#0f172a !important;}
body .home-hero,
body .panel-card,
body .card{
  border-radius:28px !important;
}
body .home-hero .card-body,
body .panel-card .card-body,
body .card .card-body{padding:28px !important;}
body .module-card .card-body{display:flex;flex-direction:column;}
body .module-card .lp-btn-primary{margin-top:auto;align-self:flex-start;}
body .table-responsive{min-width:0;}
body .page-title-bar{align-items:center !important;}

body.sidebar-collapsed .app-sidebar{
  transform:translateX(-100%) !important;
}
body.sidebar-collapsed .app-content{
  margin-left:0 !important;
}

@media (max-width: 1199px){
  body .app-sidebar{
    width:min(88vw,340px) !important;
    transform:translateX(-103%) !important;
    box-shadow:20px 0 50px rgba(2,8,23,.28) !important;
  }
  body.sidebar-open .app-sidebar{transform:translateX(0) !important;}
  body .app-content{margin-left:0 !important;}
  body.sidebar-open .app-sidebar-overlay{opacity:1;pointer-events:auto;}
  body .btn-close-sidebar{display:grid;place-items:center;}
  body .app-header.v22-header{padding:16px 18px;}
  body .app-page{padding:18px 16px 24px !important;}
}

@media (max-width: 768px){
  body .brand-subtitle,
  body .role-chip{display:none !important;}
  body .header-title{font-size:1.55rem;}
  body .company-card-subtitle{font-size:.9rem;}
  body .sidebar-link{font-size:1rem !important;padding:.92rem 1rem !important;}
  body .home-hero .card-body,
  body .panel-card .card-body,
  body .card .card-body{padding:22px !important;}
}


/* ===== Ajustes definitivos layout platense mac ===== */
body .sidebar-company-card,
body .sidebar-user-card,
body .header-icon-btn{display:none !important;}
body .v22-header{padding-block:18px;}
body .app-shell.alpha-shell{grid-template-columns:260px minmax(0,1fr) !important;min-height:100vh;}
body .app-sidebar{padding:18px 14px 18px 18px !important;background:linear-gradient(180deg,#03101f 0%,#03172d 48%,#072349 100%) !important;overflow:hidden;}
body .sidebar-top{margin-bottom:10px !important;}
body .sidebar-brand{justify-content:center !important;padding:0 4px 8px !important;}
body .brand-glyph{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;font-size:1.4rem;font-weight:900;background:linear-gradient(135deg,#3b82f6,#5eead4);color:#fff;box-shadow:0 14px 32px rgba(37,99,235,.22);}
body .brand-copy{display:none !important;}
body .sidebar-scroll-wrap{gap:10px;overflow:hidden;}
body .sidebar-scroll-btn{flex:0 0 auto;display:grid;place-items:center;width:100%;min-height:36px;border-radius:16px;border:1px solid rgba(121,165,255,.26);background:rgba(255,255,255,.07);color:#dce9f9;font-weight:800;}
body .sidebar-nav.custom-scrollbar{padding-right:10px;padding-bottom:14px;gap:10px;scrollbar-gutter:stable;}
body .sidebar-link{justify-content:center !important;text-align:center !important;padding:1rem .95rem !important;min-height:64px !important;font-size:1rem !important;font-weight:800 !important;color:#edf4ff !important;border-radius:22px !important;line-height:1.18 !important;white-space:normal !important;word-break:break-word !important;}
body .sidebar-link:hover{background:rgba(255,255,255,.10) !important;border-color:rgba(255,255,255,.12) !important;transform:none !important;}
body .sidebar-link.active{background:linear-gradient(180deg,rgba(37,74,150,.82),rgba(27,58,124,.96)) !important;border-color:rgba(106,156,255,.46) !important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 12px 26px rgba(4,12,28,.22) !important;}
body .app-content{background:transparent !important;}
body .app-page{padding:26px 28px 34px !important;}
body .page-title-bar{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px;margin-bottom:1.5rem !important;}
body .page-title-bar > div:first-child{flex:1 1 100%;text-align:center;max-width:980px;}
body .section-title,body .section-subtitle,body .mini-section-title,body .eyebrow-label{text-align:center;justify-content:center;}
body .section-title{margin-inline:auto;}
body .section-subtitle{margin-inline:auto;max-width:900px;}
body .panel-card, body .card{border-radius:28px !important;box-shadow:0 16px 42px rgba(15,23,42,.09) !important;background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%) !important;}
body .card-body{min-width:0;}
body .panel-card .mini-section-title, body .panel-card h1, body .panel-card h2, body .panel-card h3, body .panel-card h4, body .panel-card h5, body .panel-card h6{text-align:center;}
body .module-card .card-body, body .kpi-card, body .home-hero .card-body{text-align:center;}
body .home-hero-actions{justify-content:center;}
body .hero-kpi{text-align:center;}
body .table-shell .card-body > .d-flex:first-child{justify-content:center !important;}
body .module-scroll-table{max-height:min(62vh,760px);overflow:auto;border-radius:22px;scrollbar-gutter:stable both-edges;}
body .module-scroll-table table{margin-bottom:0;min-width:980px;}
body .module-scroll-table::-webkit-scrollbar{width:12px;height:12px;}
body .module-scroll-table::-webkit-scrollbar-track{background:#eef3f9;border-radius:999px;}
body .module-scroll-table::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#83aaf8,#55d9c7);border-radius:999px;border:2px solid transparent;background-clip:padding-box;}
body .module-scroll-table{scrollbar-color:#7ea8f5 #eef3f9;scrollbar-width:thin;}
body .table thead th{text-align:center !important;vertical-align:middle;white-space:nowrap;}
body .table tbody td{text-align:center !important;vertical-align:middle !important;}
body .table tbody td .d-flex, body .table tbody td form.d-flex{justify-content:center;}
body .table tbody td .badge-soft{margin-inline:auto;}
body .table tbody td .text-muted.small, body .table tbody td small{display:block;text-align:center;}
body .empty-state{text-align:center !important;}
body .form-label{font-weight:700;color:#233449;}
body .btn{border-radius:16px !important;}
body.sidebar-collapsed .app-shell.alpha-shell{grid-template-columns:110px minmax(0,1fr) !important;}
body.sidebar-collapsed .app-sidebar{padding-inline:12px !important;}
body.sidebar-collapsed .sidebar-scroll-btn{display:none !important;}
body.sidebar-collapsed .sidebar-link{font-size:0 !important;min-height:56px !important;padding:.8rem .35rem !important;}
body.sidebar-collapsed .sidebar-link::before{content:'•';font-size:1.55rem;line-height:1;color:#e6eef8;}
body.sidebar-collapsed .sidebar-link.active::before{color:#fff;}
@media (max-width: 1199px){
  body .app-shell.alpha-shell{grid-template-columns:minmax(0,1fr) !important;}
  body .app-sidebar{width:min(86vw,320px) !important;transform:translateX(-100%) !important;position:fixed !important;top:0;left:0;bottom:0;z-index:1300;}
  body.sidebar-open .app-sidebar{transform:translateX(0) !important;}
  body .sidebar-link{min-height:60px !important;font-size:1rem !important;}
  body .app-page{padding:18px 14px 24px !important;}
  body .module-scroll-table{max-height:60vh;}
  body .module-scroll-table table{min-width:780px;}
}


/* ===== Ajuste fino sidebar compacto + botón hamburguesa visible ===== */
body .app-shell.alpha-shell{grid-template-columns:232px minmax(0,1fr) !important;}
body .app-sidebar{width:232px !important;padding:12px 10px 12px 12px !important;gap:10px !important;}
body .app-content{margin-left:232px !important;}
body .sidebar-top{margin-bottom:4px !important;}
body .sidebar-brand{padding:0 2px 4px !important;}
body .brand-glyph{width:46px !important;height:46px !important;border-radius:16px !important;font-size:1.18rem !important;box-shadow:0 10px 22px rgba(37,99,235,.22) !important;}
body .sidebar-scroll-wrap{gap:8px !important;}
body .sidebar-scroll-btn{min-height:28px !important;height:28px !important;border-radius:12px !important;font-size:.78rem !important;padding:0 !important;}
body .sidebar-nav.custom-scrollbar{gap:6px !important;padding-right:4px !important;padding-bottom:8px !important;}
body .sidebar-link{padding:.68rem .72rem !important;min-height:46px !important;border-radius:16px !important;font-size:.9rem !important;font-weight:760 !important;line-height:1.12 !important;}
body .sidebar-link.active{box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 8px 18px rgba(4,12,28,.18) !important;}
body .app-header.v22-header{padding:16px 24px !important;}
body .header-kicker{font-size:.8rem !important;}
body .header-title{font-size:1.55rem !important;}
body .header-icon-btn{display:inline-grid !important;min-width:46px !important;width:46px !important;height:46px !important;border-radius:16px !important;padding:0 !important;background:#fff !important;color:#142338 !important;border:1px solid #cfdbeb !important;box-shadow:0 8px 18px rgba(15,23,42,.06) !important;}
body .header-icon-btn:hover{background:#f8fbff !important;border-color:#b6cade !important;}
body .nav-menu-btn.header-icon-btn{min-width:46px !important;}
body .hamburger-lines{display:inline-flex !important;flex-direction:column !important;justify-content:center !important;gap:4px !important;width:18px !important;height:18px !important;}
body .hamburger-lines span{display:block !important;width:18px !important;height:2px !important;border-radius:999px !important;background:#16263a !important;}
body .role-chip{min-width:138px !important;padding:.7rem .9rem !important;}
body .nav-menu-btn-light{min-width:86px !important;padding:.72rem .9rem !important;}
body .app-page{padding:22px 24px 30px !important;}
body .module-scroll-table{max-height:min(64vh,720px) !important;}
body.sidebar-collapsed .app-shell.alpha-shell{grid-template-columns:0 minmax(0,1fr) !important;}
body.sidebar-collapsed .app-sidebar{transform:translateX(-100%) !important;}
body.sidebar-collapsed .app-content{margin-left:0 !important;}
@media (max-width: 1199px){
  body .app-sidebar{width:min(82vw,280px) !important;padding:12px 10px 12px 12px !important;}
  body .app-content{margin-left:0 !important;}
  body .sidebar-link{min-height:50px !important;font-size:.94rem !important;}
  body .header-icon-btn{display:inline-grid !important;}
}


/* ===== Ajustes finos: bloques compactos, tablas sin desborde y acciones visibles ===== */
body .app-page{overflow-x:hidden !important;}
body .panel-card, body .table-shell{max-width:100%;}
body .table-shell .card-body{overflow-x:hidden;}
body .route-form-card .card-body,
body .planning-form-card .card-body,
body .work-order-form-card .card-body{max-width:100%;}
body .compact-entry-scroll{max-height:none !important;overflow:visible !important;}
body .compact-entry-table{margin-bottom:0;table-layout:fixed;width:100%;}
body .compact-entry-table th,
body .compact-entry-table td{padding:.45rem .36rem !important;vertical-align:middle !important;}
body .compact-entry-table thead th{white-space:nowrap;font-size:.82rem !important;}
body .compact-entry-table .form-control,
body .compact-entry-table .form-select{min-height:40px !important;padding:.56rem .7rem !important;font-size:.92rem !important;border-radius:12px !important;}
body .compact-entry-table .compact-remove-btn{display:grid;place-items:center;width:36px;height:36px;padding:0 !important;border-radius:12px !important;margin-inline:auto;}
body .compact-entry-table .col-client{width:30%;}
body .compact-entry-table .col-description{width:44%;}
body .compact-entry-table .col-qty{width:18%;}
body .compact-entry-table .col-action{width:52px;}
body .compact-table{max-height:min(62vh,720px) !important;overflow:auto !important;}
body .compact-table table,
body table.compact-data-table{min-width:100% !important;table-layout:fixed;width:100%;}
body table.compact-data-table th,
body table.compact-data-table td{padding:.78rem .62rem !important;white-space:normal !important;word-break:break-word !important;line-height:1.28 !important;}
body table.compact-data-table .badge-soft{display:inline-flex;justify-content:center;min-width:110px;padding:.72rem .85rem !important;font-size:.78rem !important;}
body .table-actions-cell{min-width:210px;}
body .table-actions-compact{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.45rem;min-width:0;}
body .table-actions-compact form{margin:0;}
body .table-actions-compact .btn{min-height:38px !important;padding:.46rem .78rem !important;font-size:.84rem !important;line-height:1.05 !important;display:inline-flex;align-items:center;justify-content:center;}
body .table-actions-compact .btn-icon{width:38px;min-width:38px;padding:0 !important;}
body .status-update-form{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.45rem;}
body .status-update-form .form-select{min-width:132px;max-width:170px;padding:.45rem .7rem !important;min-height:38px !important;}
body .status-update-form .btn{min-height:38px !important;padding:.46rem .72rem !important;}
body .planning-table th:nth-child(1), body .planning-table td:nth-child(1){width:13%;}
body .planning-table th:nth-child(2), body .planning-table td:nth-child(2){width:11%;}
body .planning-table th:nth-child(3), body .planning-table td:nth-child(3){width:10%;}
body .planning-table th:nth-child(4), body .planning-table td:nth-child(4){width:10%;}
body .planning-table th:nth-child(5), body .planning-table td:nth-child(5){width:12%;}
body .planning-table th:nth-child(6), body .planning-table td:nth-child(6){width:11%;}
body .planning-table th:nth-child(7), body .planning-table td:nth-child(7){width:14%;}
body .planning-table th:nth-child(8), body .planning-table td:nth-child(8){width:11%;}
body .planning-table th:nth-child(9), body .planning-table td:nth-child(9){width:18%;}
body .route-history-table th:nth-child(1), body .route-history-table td:nth-child(1){width:14%;}
body .route-history-table th:nth-child(2), body .route-history-table td:nth-child(2){width:12%;}
body .route-history-table th:nth-child(3), body .route-history-table td:nth-child(3){width:11%;}
body .route-history-table th:nth-child(4), body .route-history-table td:nth-child(4){width:13%;}
body .route-history-table th:nth-child(5), body .route-history-table td:nth-child(5){width:11%;}
body .route-history-table th:nth-child(6), body .route-history-table td:nth-child(6){width:13%;}
body .route-history-table th:nth-child(7), body .route-history-table td:nth-child(7){width:8%;}
body .route-history-table th:nth-child(8), body .route-history-table td:nth-child(8){width:18%;}
body .work-orders-table th:nth-child(1), body .work-orders-table td:nth-child(1){width:13%;}
body .work-orders-table th:nth-child(2), body .work-orders-table td:nth-child(2){width:11%;}
body .work-orders-table th:nth-child(3), body .work-orders-table td:nth-child(3){width:13%;}
body .work-orders-table th:nth-child(4), body .work-orders-table td:nth-child(4){width:13%;}
body .work-orders-table th:nth-child(5), body .work-orders-table td:nth-child(5){width:16%;}
body .work-orders-table th:nth-child(6), body .work-orders-table td:nth-child(6){width:15%;}
body .work-orders-table th:nth-child(7), body .work-orders-table td:nth-child(7){width:8%;}
body .work-orders-table th:nth-child(8), body .work-orders-table td:nth-child(8){width:19%;}
body .fuel-orders-table th:nth-child(1), body .fuel-orders-table td:nth-child(1){width:14%;}
body .fuel-orders-table th:nth-child(2), body .fuel-orders-table td:nth-child(2){width:12%;}
body .fuel-orders-table th:nth-child(3), body .fuel-orders-table td:nth-child(3){width:19%;}
body .fuel-orders-table th:nth-child(4), body .fuel-orders-table td:nth-child(4){width:12%;}
body .fuel-orders-table th:nth-child(5), body .fuel-orders-table td:nth-child(5){width:14%;}
body .fuel-orders-table th:nth-child(6), body .fuel-orders-table td:nth-child(6){width:12%;}
body .fuel-orders-table th:nth-child(7), body .fuel-orders-table td:nth-child(7){width:17%;}
body .fuel-loads-table th:nth-child(1), body .fuel-loads-table td:nth-child(1){width:13%;}
body .fuel-loads-table th:nth-child(2), body .fuel-loads-table td:nth-child(2){width:11%;}
body .fuel-loads-table th:nth-child(3), body .fuel-loads-table td:nth-child(3){width:20%;}
body .fuel-loads-table th:nth-child(4), body .fuel-loads-table td:nth-child(4){width:14%;}
body .fuel-loads-table th:nth-child(5), body .fuel-loads-table td:nth-child(5){width:8%;}
body .fuel-loads-table th:nth-child(6), body .fuel-loads-table td:nth-child(6){width:10%;}
body .fuel-loads-table th:nth-child(7), body .fuel-loads-table td:nth-child(7){width:16%;}
body .fuel-loads-table th:nth-child(8), body .fuel-loads-table td:nth-child(8){width:8%;}
@media (max-width: 1199px){
  body .compact-table table,
  body table.compact-data-table{min-width:780px !important;table-layout:auto;}
  body .compact-entry-table{table-layout:auto;}
  body .compact-entry-scroll{overflow:auto !important;}
}
@media (max-width: 768px){
  body .table-actions-cell{min-width:170px;}
  body .table-actions-compact .btn{font-size:.8rem !important;padding:.42rem .68rem !important;}
  body .compact-entry-table .form-control,
  body .compact-entry-table .form-select{min-height:38px !important;font-size:.88rem !important;}
}


/* ===== Ajustes finales: hoja de ruta compacta, centrado y sin desborde ===== */
body .app-page{
  max-width: 1680px;
  margin: 0 auto !important;
}
body .page-title-bar,
body .row.g-3{
  width:100%;
  margin-left:0 !important;
  margin-right:0 !important;
}
body .route-form-card,
body .table-shell,
body .panel-card{
  margin-inline:auto;
}
body .route-form-card .card-body{padding:1.2rem 1.15rem 1.15rem !important;}
body .compact-entry-scroll{
  overflow-x:hidden !important;
  border:1px solid #d6e0ee;
  border-radius:18px;
  background:#f8fbff;
}
body .compact-entry-table{
  min-width:0 !important;
  width:100% !important;
  table-layout:fixed !important;
  margin-bottom:0;
}
body .compact-entry-table thead th{
  text-align:center !important;
  white-space:nowrap !important;
  font-size:.78rem !important;
  letter-spacing:.06em;
  line-height:1.05;
  padding:.42rem .22rem !important;
}
body .compact-entry-table tbody td{
  padding:.28rem .2rem !important;
}
body .compact-entry-table .form-control,
body .compact-entry-table .form-select{
  min-height:34px !important;
  height:34px !important;
  padding:.36rem .55rem !important;
  font-size:.84rem !important;
  border-radius:10px !important;
}
body .compact-entry-table .compact-remove-btn{
  width:30px !important;
  min-width:30px !important;
  height:30px !important;
  border-radius:10px !important;
  font-size:1rem !important;
}
body .compact-entry-table .col-client{width:33% !important;}
body .compact-entry-table .col-description{width:43% !important;}
body .compact-entry-table .col-qty{width:16% !important;}
body .compact-entry-table .col-action{width:8% !important;}
body .route-history-table,
body .planning-table{
  min-width:0 !important;
  width:100% !important;
  table-layout:fixed !important;
}
body .route-history-table th,
body .planning-table th{
  text-align:center !important;
  white-space:nowrap !important;
  padding:.7rem .38rem !important;
  font-size:.78rem !important;
  letter-spacing:.06em;
}
body .route-history-table td,
body .planning-table td{
  text-align:center !important;
  vertical-align:middle !important;
  padding:.68rem .38rem !important;
  word-break:normal !important;
  overflow-wrap:anywhere !important;
  line-height:1.16 !important;
  font-size:.88rem !important;
}
body .route-history-table td:nth-child(2),
body .route-history-table td:nth-child(3),
body .route-history-table td:nth-child(5),
body .route-history-table td:nth-child(7),
body .planning-table td:nth-child(2),
body .planning-table td:nth-child(3),
body .planning-table td:nth-child(4){
  white-space:nowrap !important;
}
body .route-history-table td:nth-child(4),
body .route-history-table td:nth-child(6),
body .planning-table td:nth-child(5),
body .planning-table td:nth-child(8){
  text-wrap:balance;
}
body .route-history-table .badge-soft,
body .planning-table .badge-soft{
  min-width:92px !important;
  padding:.56rem .62rem !important;
  font-size:.76rem !important;
}
body .table-actions-cell{
  min-width:0 !important;
}
body .table-actions-compact{
  justify-content:center !important;
  gap:.35rem !important;
}
body .table-actions-compact .btn{
  min-height:34px !important;
  padding:.35rem .62rem !important;
  font-size:.8rem !important;
  border-radius:14px !important;
}
body .table-actions-compact .btn-icon{
  width:34px !important;
  min-width:34px !important;
  padding:0 !important;
}
body .route-history-table th:nth-child(1), body .route-history-table td:nth-child(1){width:14% !important;}
body .route-history-table th:nth-child(2), body .route-history-table td:nth-child(2){width:12% !important;}
body .route-history-table th:nth-child(3), body .route-history-table td:nth-child(3){width:10% !important;}
body .route-history-table th:nth-child(4), body .route-history-table td:nth-child(4){width:13% !important;}
body .route-history-table th:nth-child(5), body .route-history-table td:nth-child(5){width:12% !important;}
body .route-history-table th:nth-child(6), body .route-history-table td:nth-child(6){width:14% !important;}
body .route-history-table th:nth-child(7), body .route-history-table td:nth-child(7){width:8% !important;}
body .route-history-table th:nth-child(8), body .route-history-table td:nth-child(8){width:17% !important;}
body .planning-table th:nth-child(1), body .planning-table td:nth-child(1){width:12% !important;}
body .planning-table th:nth-child(2), body .planning-table td:nth-child(2){width:11% !important;}
body .planning-table th:nth-child(3), body .planning-table td:nth-child(3){width:9% !important;}
body .planning-table th:nth-child(4), body .planning-table td:nth-child(4){width:10% !important;}
body .planning-table th:nth-child(5), body .planning-table td:nth-child(5){width:12% !important;}
body .planning-table th:nth-child(6), body .planning-table td:nth-child(6){width:10% !important;}
body .planning-table th:nth-child(7), body .planning-table td:nth-child(7){width:14% !important;}
body .planning-table th:nth-child(8), body .planning-table td:nth-child(8){width:10% !important;}
body .planning-table th:nth-child(9), body .planning-table td:nth-child(9){width:12% !important;}
@media (max-width: 1199px){
  body .app-page{max-width:none;}
  body .compact-entry-scroll{overflow-x:auto !important;}
  body .route-history-table,
  body .planning-table{min-width:980px !important;}
}


/* 2026-06 logistics masters */
body .sidebar-group{display:flex;flex-direction:column;gap:6px;}
body .sidebar-group-toggle{
  display:flex;align-items:center;justify-content:space-between;width:100%;
  padding:.72rem .85rem;border-radius:16px;border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.02);color:#eef5ff;font-weight:800;font-size:.9rem;
}
body .sidebar-group-toggle.active, body .sidebar-group.open .sidebar-group-toggle{
  background:linear-gradient(180deg,rgba(20,57,125,.55),rgba(16,45,104,.72));
  border-color:rgba(106,156,255,.34);
}
body .sidebar-group-arrow{transition:transform .18s ease;opacity:.9}
body .sidebar-group.open .sidebar-group-arrow{transform:rotate(180deg);}
body .sidebar-group-children{display:none;flex-direction:column;gap:6px;padding:0 0 4px 10px;}
body .sidebar-group.open .sidebar-group-children{display:flex;}
body .sidebar-sublink{
  display:flex;align-items:center;min-height:38px;padding:.55rem .75rem;border-radius:14px;
  text-decoration:none;color:#dce8fb;background:rgba(255,255,255,.02);border:1px solid rgba(255,255,255,.05);
  font-size:.84rem;font-weight:700;line-height:1.15;text-align:left;
}
body .sidebar-sublink:hover{background:rgba(255,255,255,.08);color:#fff}
body .sidebar-sublink.active{background:rgba(79,140,255,.18);border-color:rgba(106,156,255,.35);color:#fff}
body.sidebar-collapsed .sidebar-group-children, body.sidebar-collapsed .sidebar-group-toggle span:first-child{display:none;}
body.sidebar-collapsed .sidebar-group-toggle{justify-content:center;padding:.8rem .35rem;font-size:0}
body.sidebar-collapsed .sidebar-group-toggle::before{content:'≡';font-size:1.3rem;line-height:1;color:#eef5ff}

.masters-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:18px;align-items:start;}
.masters-sidebar{position:sticky;top:12px}
.masters-nav{display:grid;gap:8px}
.masters-nav-link{
  display:flex;align-items:center;min-height:44px;padding:.72rem .9rem;border-radius:14px;
  text-decoration:none;color:#20314d;font-weight:700;background:#f8fbff;border:1px solid #d6e0ef;
}
.masters-nav-link.active{background:linear-gradient(180deg,#2f66df,#2458cb);color:#fff;border-color:#2f66df}
.panel-soft-form{padding:16px;border:1px solid #d7e2f0;background:#fbfdff;border-radius:20px}
.masters-table td,.masters-table th{vertical-align:middle}
.masters-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.masters-name-field{min-width:280px}
@media (max-width: 991px){
  .masters-layout{grid-template-columns:1fr}
  .masters-sidebar{position:static}
}


/* --- Ajustes finales OT / Planificación / branding visual --- */
.brand-glyph-photo,
.showcase-monogram-photo,
.login-avatar-logo-photo{
  overflow:hidden;
  padding:0 !important;
  background:#fff !important;
}
.brand-glyph-photo img,
.showcase-monogram-photo img,
.login-avatar-logo-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.showcase-monogram-photo,
.login-avatar-logo-photo{
  width:72px;
  height:72px;
  border-radius:20px;
  box-shadow:0 16px 32px rgba(3,7,18,.26);
}
.hero-inline-gallery{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  max-width:760px;
}
.hero-inline-card{
  background:rgba(255,255,255,.88);
  border:1px solid rgba(214,226,240,.9);
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 18px 44px rgba(15,23,42,.10);
}
.hero-inline-card img{width:100%;height:140px;display:block;object-fit:cover;}
.hero-inline-caption{padding:.8rem .95rem;font-size:.88rem;font-weight:700;color:#334155;}
.modal-industrial .modal-content{
  border:1px solid #d8e2ef;
  border-radius:28px;
  box-shadow:0 28px 76px rgba(15,23,42,.18);
  overflow:hidden;
}
.modal-industrial .modal-header{
  padding:1.2rem 1.35rem;
  background:linear-gradient(180deg,#f8fbff 0%,#eef4fb 100%);
  border-bottom:1px solid #dbe6f1;
}
.modal-industrial .modal-body{padding:1.25rem 1.35rem 1.1rem; background:#fff;}
.modal-industrial .modal-footer{border-top:none; display:flex; gap:.65rem; justify-content:flex-end;}
.modal-panel-lite{border-radius:22px; box-shadow:none; background:#fbfdff;}
.modal-entry-scroll{max-height:min(48vh,420px) !important; overflow:auto !important;}
.modal-entry-table{width:100%; min-width:780px !important;}
.modal-entry-table .col-client{width:30% !important;}
.modal-entry-table .col-description{width:48% !important;}
.modal-entry-table .col-qty{width:14% !important;}
.modal-entry-table .col-action{width:8% !important;}
.page-title-bar .lp-btn-primary{min-width:170px;}
@media (max-width: 991px){
  .hero-inline-gallery{grid-template-columns:1fr;}
}

/* =========================================================
   Cierre visual 2026-07 - NexaCore Industrial V50
   ========================================================= */
body .brand-glyph-photo{
  background:#fff !important;
  padding:3px !important;
  border:1px solid rgba(255,255,255,.16);
}
body .brand-glyph-photo img{width:100%;height:100%;object-fit:contain;border-radius:13px;display:block;}

body .industrial-home-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 18% 18%,rgba(37,99,235,.10),transparent 34%),
    linear-gradient(135deg,#ffffff 0%,#f5f9fd 100%);
}
body .industrial-home-hero::before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(255,255,255,.0),rgba(94,234,212,.035));
}
body .home-hero-copy{position:relative;z-index:1;max-width:780px;}
body .home-hero-title{font-size:clamp(2.2rem,3.4vw,4.2rem);line-height:.98;letter-spacing:-.055em;font-weight:900;color:#0b1830;margin:.35rem 0 1rem;}
body .home-hero-subtitle{font-size:1.08rem;line-height:1.65;color:#60728a;max-width:700px;}
body .home-hero-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;}
body .home-hero-metric{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:.78rem .9rem;border:1px solid #dce7f2;border-radius:16px;background:rgba(255,255,255,.78);box-shadow:0 10px 26px rgba(15,23,42,.055);}
body .home-hero-metric span{font-size:.75rem;color:#667890;font-weight:750;line-height:1.2;}
body .home-hero-metric strong{font-size:1.25rem;color:#0b1830;}
body .operation-visual-card{position:relative;min-height:430px;border-radius:28px;overflow:hidden;background:#0b1830;box-shadow:0 28px 64px rgba(15,23,42,.22);isolation:isolate;}
body .operation-visual-card>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;transform:scale(1.015);}
body .operation-visual-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(5,14,29,.08) 8%,rgba(5,14,29,.40) 48%,rgba(5,14,29,.94) 100%);}
body .operation-visual-content{position:absolute;left:0;right:0;bottom:0;padding:2rem;color:#fff;z-index:2;}
body .operation-visual-tag{display:inline-flex;padding:.38rem .7rem;border-radius:999px;background:rgba(94,234,212,.17);border:1px solid rgba(94,234,212,.36);font-size:.72rem;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#d8fffa;}
body .operation-visual-content h2{font-size:clamp(1.45rem,2.2vw,2.15rem);font-weight:900;letter-spacing:-.035em;margin:.8rem 0 .55rem;}
body .operation-visual-content p{color:#d6e2f0;line-height:1.55;margin:0;max-width:520px;}
body .operation-visual-pills{display:flex;gap:8px;flex-wrap:wrap;margin-top:1rem;}
body .operation-visual-pills span{font-size:.74rem;font-weight:750;padding:.35rem .65rem;border-radius:999px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);}
body .operational-summary-card{background:linear-gradient(155deg,#0b1830 0%,#102a4d 100%);color:#fff;border-color:rgba(255,255,255,.06);}
body .operational-summary-card .mini-section-title{color:#9eb0c8;}
body .operational-summary-card h5{color:#fff;}
body .operational-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
body .operational-summary-item{padding:1rem;border-radius:17px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.10);display:flex;flex-direction:column;gap:.4rem;min-height:88px;}
body .operational-summary-item span{font-size:.78rem;color:#b8c7da;font-weight:700;line-height:1.25;}
body .operational-summary-item strong{font-size:1.55rem;color:#fff;}

body .module-primary-action{display:inline-flex;align-items:center;gap:.55rem;min-height:46px;padding:.72rem 1.15rem;}
body .action-plus{font-size:1.35rem;line-height:.8;font-weight:500;}
body .status-update-form{display:flex;align-items:center;gap:6px;flex-wrap:nowrap;}
body .status-update-form .form-select{min-width:126px;max-width:145px;}

body .industrial-form-modal{z-index:1085;}
body .industrial-form-modal .modal-dialog{max-width:min(1180px,calc(100vw - 32px));margin:16px auto;}
body .industrial-modal-content{border:1px solid #d5e1ee;border-radius:28px;box-shadow:0 38px 100px rgba(2,8,23,.30);overflow:hidden;max-height:calc(100dvh - 32px);background:#f7fafe;display:flex;flex-direction:column;}
body .industrial-modal-header{position:relative;display:grid;grid-template-columns:230px minmax(0,1fr) 42px;gap:20px;align-items:center;min-height:124px;padding:18px 22px;background:linear-gradient(135deg,#071226 0%,#102a4d 100%);color:#fff;flex:0 0 auto;}
body .industrial-modal-image{height:88px;border-radius:17px;overflow:hidden;border:1px solid rgba(255,255,255,.16);box-shadow:0 12px 28px rgba(0,0,0,.22);background:#fff;}
body .industrial-modal-image img{width:100%;height:100%;object-fit:cover;object-position:center;display:block;}
body .industrial-modal-title-block{min-width:0;}
body .industrial-modal-kicker{font-size:.7rem;letter-spacing:.10em;text-transform:uppercase;color:#7fe5d8;font-weight:850;}
body .industrial-modal-title-block h2{margin:.25rem 0 .35rem;font-size:1.75rem;font-weight:900;letter-spacing:-.035em;color:#fff;}
body .industrial-modal-title-block p{margin:0;color:#c7d5e6;font-size:.92rem;line-height:1.4;}
body .industrial-modal-close{filter:invert(1) grayscale(1) brightness(2);opacity:.78;align-self:start;margin-top:3px;}
body .industrial-modal-body{padding:18px 22px;overflow-y:auto;min-height:0;display:grid;gap:14px;background:#f5f8fc;}
body .industrial-form-section{background:#fff;border:1px solid #dce6f1;border-radius:20px;padding:15px 16px;box-shadow:0 9px 24px rgba(15,23,42,.045);}
body .industrial-section-heading{display:flex;align-items:center;gap:11px;margin-bottom:12px;}
body .industrial-section-heading>span{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#eaf2ff;color:#225bd8;font-size:.75rem;font-weight:900;border:1px solid #d1e0ff;flex:0 0 auto;}
body .industrial-section-heading strong{display:block;color:#132239;font-size:.98rem;}
body .industrial-section-heading small{display:block;color:#718198;margin-top:1px;font-size:.76rem;}
body .industrial-form-section .form-label{margin-bottom:.38rem;font-size:.80rem;font-weight:800;color:#26374e;}
body .industrial-form-section .form-control,
body .industrial-form-section .form-select{min-height:44px;padding:.68rem .8rem;border-radius:13px;background:#fbfdff;border-color:#cfdae7;font-size:.92rem;}
body .industrial-form-section .form-control:focus,
body .industrial-form-section .form-select:focus{background:#fff;}
body .industrial-textarea{resize:vertical;min-height:116px !important;}
body .compact-notes{min-height:76px !important;}
body .industrial-modal-footer{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:13px 22px;background:#fff;border-top:1px solid #dce6f1;flex:0 0 auto;}
body .industrial-modal-footer .btn{min-width:120px;}
body .planning-heading-actions{margin-bottom:8px;}
body .planning-entry-wrap{max-height:230px;overflow:auto;border:1px solid #dce6f1;border-radius:15px;background:#fff;scrollbar-gutter:stable;}
body .planning-entry-table{width:100%;table-layout:fixed;min-width:760px;}
body .planning-entry-table thead{position:sticky;top:0;z-index:2;}
body .planning-entry-table th{padding:.62rem .55rem !important;background:#eef4fb !important;font-size:.75rem !important;text-align:center;}
body .planning-entry-table td{padding:.38rem .42rem !important;background:#fff;vertical-align:middle !important;}
body .planning-entry-table .col-client{width:31%;}
body .planning-entry-table .col-description{width:48%;}
body .planning-entry-table .col-qty{width:14%;}
body .planning-entry-table .col-action{width:7%;}
body .planning-entry-table .form-control{min-height:38px !important;padding:.48rem .64rem !important;border-radius:10px !important;font-size:.88rem !important;}
body .planning-entry-table .compact-remove-btn{width:34px;height:34px;display:grid;place-items:center;padding:0;margin:auto;border-radius:10px;}

@media (max-width:1199px){
  body .home-hero-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .operation-visual-card{min-height:380px;}
}
@media (max-width:767px){
  body .home-hero-metrics{grid-template-columns:1fr;}
  body .operation-visual-card{min-height:360px;}
  body .operation-visual-content{padding:1.35rem;}
  body .industrial-form-modal .modal-dialog{max-width:calc(100vw - 16px);margin:8px auto;}
  body .industrial-modal-content{max-height:calc(100dvh - 16px);border-radius:20px;}
  body .industrial-modal-header{grid-template-columns:82px minmax(0,1fr) 34px;gap:12px;min-height:100px;padding:14px;}
  body .industrial-modal-image{height:70px;border-radius:13px;}
  body .industrial-modal-title-block h2{font-size:1.25rem;}
  body .industrial-modal-title-block p{display:none;}
  body .industrial-modal-body{padding:12px;}
  body .industrial-modal-footer{padding:11px 12px;}
  body .industrial-modal-footer .btn{min-width:0;flex:1;}
  body .planning-entry-wrap{max-height:260px;}
}


/* === Ghostwriter final polish: modals + home summary === */
body .operation-visual-card{
  background:linear-gradient(160deg,#09172d 0%,#0f284a 100%) !important;
  border:1px solid rgba(255,255,255,.10);
}
body .operation-visual-card>img{opacity:.96;}
body .operation-visual-scrim{
  background:linear-gradient(180deg,rgba(5,14,29,.06) 0%,rgba(5,14,29,.28) 42%,rgba(5,14,29,.92) 100%);
}
body .operation-visual-content{
  background:linear-gradient(180deg,rgba(7,18,38,0) 0%,rgba(7,18,38,.22) 26%,rgba(7,18,38,.74) 100%);
}
body .operation-visual-content h2{font-size:clamp(1.6rem,2.3vw,2.35rem);}
body .operation-visual-content p{font-size:.98rem;max-width:560px;}
body .operation-visual-pills span{
  background:rgba(255,255,255,.14);
  color:#fff;
}

body .operational-summary-card{
  background:linear-gradient(160deg,#08152b 0%,#112d52 100%) !important;
  color:#fff !important;
  border:1px solid rgba(255,255,255,.10) !important;
  box-shadow:0 24px 52px rgba(8,21,43,.24);
  position:relative;
  overflow:hidden;
}
body .operational-summary-card::before{
  content:"";
  position:absolute;
  inset:0;
  background:radial-gradient(circle at top right, rgba(94,234,212,.14), transparent 32%);
  pointer-events:none;
}
body .operational-summary-card .card-body{position:relative;z-index:1;padding:1.45rem;}
body .operational-summary-card .mini-section-title{color:#b9c9dc;font-size:.8rem;}
body .operational-summary-card h5{color:#fff;font-size:1.15rem;}
body .operational-summary-grid{gap:14px;}
body .operational-summary-item{
  background:rgba(255,255,255,.10) !important;
  border:1px solid rgba(255,255,255,.14) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
  min-height:92px;
  justify-content:space-between;
}
body .operational-summary-item span{
  color:#dce7f3 !important;
  font-size:.8rem;
  font-weight:750;
}
body .operational-summary-item strong{
  color:#fff !important;
  font-size:1.7rem;
  line-height:1;
}

body .industrial-modal-content{
  border-radius:30px;
  background:linear-gradient(180deg,#f7fbff 0%,#eff5fb 100%);
}
body .industrial-modal-header{
  grid-template-columns:minmax(0,1fr) 40px;
  grid-template-areas:
    "banner close"
    "copy close";
  align-items:start;
  row-gap:14px;
  min-height:auto;
  padding:18px 22px 16px;
  background:linear-gradient(135deg,#071226 0%,#0f2849 54%,#143763 100%);
}
body .industrial-modal-image{
  grid-area:banner;
  width:100%;
  height:126px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.18);
  background:#10223f;
  overflow:hidden;
  box-shadow:0 12px 30px rgba(0,0,0,.22);
}
body .industrial-modal-image img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center center;
  display:block;
}
body .industrial-modal-title-block{grid-area:copy;}
body .industrial-modal-kicker{
  display:inline-flex;
  margin-bottom:.3rem;
  padding:.32rem .62rem;
  border-radius:999px;
  background:rgba(94,234,212,.12);
  border:1px solid rgba(94,234,212,.30);
  color:#8ff5e8;
}
body .industrial-modal-title-block h2{font-size:1.9rem;margin:.2rem 0 .32rem;}
body .industrial-modal-title-block p{font-size:.96rem;color:#d8e4f2;max-width:820px;}
body .industrial-modal-close{
  grid-area:close;
  justify-self:end;
  align-self:start;
  margin-top:2px;
}
body .industrial-modal-body{
  padding:20px 22px;
  gap:16px;
}
body .industrial-form-section{
  border-radius:22px;
  padding:16px 16px 15px;
  box-shadow:0 12px 28px rgba(15,23,42,.05);
  border:1px solid #d7e3ef;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
}
body .industrial-section-heading{
  align-items:flex-start;
  margin-bottom:13px;
}
body .industrial-section-heading>span{
  width:38px;
  height:38px;
  border-radius:13px;
  font-size:.78rem;
}
body .industrial-section-heading strong{font-size:1.02rem;}
body .industrial-section-heading small{font-size:.79rem;line-height:1.35;}
body .industrial-form-section .form-label{font-size:.82rem;}
body .industrial-form-section .form-control,
body .industrial-form-section .form-select{
  min-height:46px;
  border-radius:14px;
  background:#fdfefe;
}
body .industrial-textarea{min-height:132px !important;}
body .compact-notes{min-height:88px !important;}
body .planning-entry-wrap{
  border-radius:16px;
  background:#f8fbff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}
body .planning-entry-table{min-width:700px;}
body .planning-entry-table .col-client{width:30%;}
body .planning-entry-table .col-description{width:50%;}
body .planning-entry-table .col-qty{width:12%;}
body .planning-entry-table .col-action{width:8%;}
body .planning-entry-table th{
  background:#edf3fb !important;
  color:#536983 !important;
  font-weight:850;
}
body .planning-entry-table .form-control{
  min-height:36px !important;
  padding:.44rem .62rem !important;
}
body .planning-entry-table .compact-remove-btn{
  width:32px;
  height:32px;
  border-radius:999px;
}

@media (max-width: 767px){
  body .operational-summary-grid{grid-template-columns:1fr;}
  body .industrial-modal-header{
    grid-template-columns:minmax(0,1fr) 32px;
    row-gap:10px;
    padding:14px;
  }
  body .industrial-modal-image{height:82px;border-radius:14px;}
  body .industrial-modal-title-block h2{font-size:1.35rem;}
  body .industrial-modal-title-block p{display:block;font-size:.84rem;}
  body .industrial-modal-body{padding:12px;}
  body .industrial-form-section{padding:14px 13px;}
}

/* =========================================================
   Edición definitiva 2026-07-12 · Inicio, OT y planificación
   ========================================================= */

/* Inicio: se conserva íntegro el bloque principal elegido y se mejora el área inferior. */
body .home-operations-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(390px,440px);
  gap:22px;
  align-items:stretch;
}
body .home-modules-panel{padding:1.35rem;overflow:visible;}
body .home-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  margin-bottom:1.1rem;
}
body .home-section-head h2{
  margin:.12rem 0 .22rem;
  color:#0b1830;
  font-size:1.3rem;
  font-weight:900;
  letter-spacing:-.025em;
}
body .home-section-head p{margin:0;color:#718198;font-size:.88rem;}
body .home-section-count{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:.4rem .72rem;
  border:1px solid #d8e4f1;
  border-radius:999px;
  background:#f7faff;
  color:#536983;
  font-size:.76rem;
  font-weight:800;
  white-space:nowrap;
}
body .home-module-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
body .home-module-tile{
  position:relative;
  display:grid;
  grid-template-columns:48px minmax(0,1fr) 24px;
  align-items:center;
  gap:11px;
  min-height:108px;
  padding:.88rem .82rem;
  border:1px solid #dce6f1;
  border-radius:18px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  color:#122033;
  text-decoration:none;
  box-shadow:0 8px 22px rgba(15,23,42,.045);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
body .home-module-tile:hover{
  transform:translateY(-2px);
  color:#122033;
  border-color:#bfd2ed;
  box-shadow:0 15px 30px rgba(15,23,42,.09);
}
body .home-module-icon{
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:15px;
  color:#2563eb;
  background:linear-gradient(145deg,#edf4ff,#f8fbff);
  border:1px solid #dbe8fb;
}
body .home-module-icon svg,
body .indicator-icon svg,
body .operational-summary-main-icon svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
}
body .home-module-copy{min-width:0;display:flex;flex-direction:column;gap:4px;}
body .home-module-copy strong{font-size:.91rem;font-weight:900;color:#17253a;line-height:1.2;}
body .home-module-copy small{
  color:#718198;
  font-size:.73rem;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body .home-module-arrow{
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:999px;
  color:#2563eb;
  background:#edf4ff;
  font-weight:900;
  transition:transform .18s ease;
}
body .home-module-tile:hover .home-module-arrow{transform:translateX(2px);}

body .operational-summary-premium{
  min-height:100%;
  border-radius:26px;
  background:
    radial-gradient(circle at 100% 0%,rgba(53,184,255,.16),transparent 28%),
    linear-gradient(155deg,#061328 0%,#0b2342 56%,#0e3159 100%) !important;
}
body .operational-summary-premium .card-body{padding:1.35rem;display:flex;flex-direction:column;height:100%;}
body .operational-summary-head{
  display:grid;
  grid-template-columns:50px minmax(0,1fr) auto;
  align-items:start;
  gap:12px;
  margin-bottom:1rem;
}
body .operational-summary-main-icon{
  width:50px;
  height:50px;
  display:grid;
  place-items:center;
  border-radius:15px;
  color:#55a6ff;
  background:rgba(61,145,255,.11);
  border:1px solid rgba(104,174,255,.18);
}
body .operational-summary-head h2{margin:.12rem 0 .2rem;color:#fff;font-size:1.28rem;font-weight:900;letter-spacing:-.025em;}
body .operational-summary-head p{margin:0;color:#b8c8da;font-size:.78rem;}
body .live-data-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:.36rem .6rem;
  border-radius:999px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.11);
  color:#dce8f5;
  font-size:.7rem;
  white-space:nowrap;
}
body .live-data-chip i{width:7px;height:7px;border-radius:50%;background:#43d69c;box-shadow:0 0 0 4px rgba(67,214,156,.1);}
body .operational-summary-premium .operational-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
body .operational-summary-premium .operational-summary-item{
  min-height:86px;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:.76rem;
  border-radius:16px;
  background:rgba(255,255,255,.065) !important;
  border:1px solid rgba(255,255,255,.10) !important;
}
body .indicator-icon{
  width:38px;height:38px;display:grid;place-items:center;border-radius:12px;
  color:#66adff;background:rgba(61,145,255,.10);border:1px solid rgba(91,160,255,.16);
}
body .indicator-tone-2 .indicator-icon{color:#55d7c6;background:rgba(85,215,198,.09);border-color:rgba(85,215,198,.16);}
body .indicator-tone-3 .indicator-icon{color:#c08cff;background:rgba(192,140,255,.09);border-color:rgba(192,140,255,.16);}
body .indicator-tone-4 .indicator-icon{color:#ffb35a;background:rgba(255,179,90,.09);border-color:rgba(255,179,90,.16);}
body .indicator-copy{min-width:0;display:flex;flex-direction:column;gap:5px;}
body .indicator-copy span{font-size:.72rem !important;color:#c4d2e2 !important;font-weight:750;line-height:1.2;}
body .indicator-copy strong{font-size:1.48rem !important;color:#fff;line-height:1;font-weight:900;}
body .operational-summary-footer{
  margin-top:auto;
  padding-top:1rem;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  color:#aabbd0;
  font-size:.69rem;
  border-top:1px solid rgba(255,255,255,.09);
}
body .operational-summary-footer span{display:flex;align-items:center;gap:6px;}
body .status-dot{width:7px;height:7px;border-radius:50%;display:inline-block;}
body .status-dot-ok{background:#43d69c;box-shadow:0 0 0 4px rgba(67,214,156,.1);}

/* Cabeceras y controles de OT / planificación. */
body .premium-page-heading{margin-bottom:1.15rem;align-items:center !important;}
body .premium-page-heading .section-title{font-size:clamp(2rem,2.7vw,3rem);}
body .module-secondary-action{min-height:46px;padding:.72rem 1.05rem;border-radius:14px;font-weight:800;}
body .module-control-board{
  display:grid;
  gap:12px;
}
body .module-stat-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
}
body .module-stat-card{
  min-height:96px;
  display:flex;
  align-items:center;
  gap:13px;
  padding:.9rem 1rem;
  border:1px solid #dce6f1;
  border-radius:19px;
  background:linear-gradient(180deg,#fff 0%,#fbfdff 100%);
  box-shadow:0 10px 26px rgba(15,23,42,.055);
}
body .module-stat-icon{
  width:45px;height:45px;display:grid;place-items:center;border-radius:14px;
  background:#edf4ff;color:#2563eb;border:1px solid #d9e7fb;font-weight:900;font-size:1.15rem;
}
body .module-stat-card small{display:block;color:#677a92;font-size:.75rem;font-weight:800;margin-bottom:3px;}
body .module-stat-card strong{display:block;color:#0d1b31;font-size:1.65rem;line-height:1;font-weight:900;}
body .module-stat-card.stat-pending .module-stat-icon{background:#fff7e6;color:#bc7a00;border-color:#f8e2ad;}
body .module-stat-card.stat-progress .module-stat-icon{background:#edf4ff;color:#2563eb;}
body .module-stat-card.stat-finished .module-stat-icon{background:#eaf9f0;color:#15945a;border-color:#ccefdc;}
body .module-stat-card.stat-2 .module-stat-icon{background:#eef5ff;color:#2563eb;}
body .module-stat-card.stat-3 .module-stat-icon{background:#f3edff;color:#7c3aed;border-color:#e4d8ff;}
body .module-stat-card.stat-4 .module-stat-icon{background:#fff7e8;color:#c47a00;border-color:#f6e3bd;}

body .module-filter-panel{
  display:grid;
  grid-template-columns:minmax(230px,1.8fr) repeat(4,minmax(130px,.72fr)) auto;
  align-items:end;
  gap:10px;
  padding:.85rem;
  border:1px solid #dce6f1;
  border-radius:20px;
  background:rgba(255,255,255,.92);
  box-shadow:0 10px 26px rgba(15,23,42,.045);
}
body .route-filter-panel,
body .planning-filter-panel-v2{grid-template-columns:minmax(280px,1.8fr) minmax(150px,.7fr) minmax(145px,.65fr) auto;}
body .module-filter-field label{display:block;margin:0 0 .34rem;color:#536983;font-size:.72rem;font-weight:850;}
body .module-filter-field .form-control,
body .module-filter-field .form-select{min-height:42px;padding:.58rem .72rem;border-radius:12px;font-size:.84rem;background:#fbfdff;}
body .input-with-icon{position:relative;}
body .input-with-icon>span{position:absolute;left:.78rem;top:50%;transform:translateY(-50%);z-index:2;color:#718198;font-size:1rem;}
body .input-with-icon .form-control{padding-left:2.15rem;}
body .module-filter-actions{display:flex;gap:8px;align-items:center;}
body .module-filter-actions .btn{min-height:42px;border-radius:12px;padding:.58rem .85rem;font-size:.82rem;font-weight:800;}

body .premium-history-card{border-radius:24px;}
body .premium-history-card>.card-body{padding:1.15rem;}
body .history-card-head{
  display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
  padding:.15rem .25rem 1rem;
}
body .history-result-note{color:#74859b;font-size:.76rem;}
body .history-result-note span{display:inline-grid;place-items:center;min-width:28px;height:28px;margin-right:5px;border-radius:999px;background:#edf4ff;color:#2563eb;font-weight:900;}
body .premium-table-wrap{border:1px solid #e0e8f2;border-radius:17px;overflow:auto;}
body .premium-data-table{table-layout:fixed !important;min-width:1100px;background:#fff;}
body .premium-data-table thead th{
  padding:.78rem .75rem !important;background:#f4f8fc !important;color:#5b6e87 !important;
  font-size:.7rem !important;font-weight:900 !important;letter-spacing:.055em !important;white-space:nowrap;
}
body .premium-data-table tbody td{
  padding:.72rem .75rem !important;vertical-align:middle !important;color:#25364c;font-size:.82rem;
  border-color:#edf2f7 !important;
}
body .premium-data-table tbody tr:hover td{background:#fbfdff;}
body .work-orders-table th:nth-child(1),body .work-orders-table td:nth-child(1){width:10% !important;}
body .work-orders-table th:nth-child(2),body .work-orders-table td:nth-child(2){width:9% !important;}
body .work-orders-table th:nth-child(3),body .work-orders-table td:nth-child(3){width:14% !important;}
body .work-orders-table th:nth-child(4),body .work-orders-table td:nth-child(4){width:13% !important;}
body .work-orders-table th:nth-child(5),body .work-orders-table td:nth-child(5){width:15% !important;}
body .work-orders-table th:nth-child(6),body .work-orders-table td:nth-child(6){width:12% !important;}
body .work-orders-table th:nth-child(7),body .work-orders-table td:nth-child(7){width:9% !important;}
body .work-orders-table th:nth-child(8),body .work-orders-table td:nth-child(8){width:18% !important;}
body .route-history-table{min-width:1040px !important;}
body .route-history-table th:nth-child(1),body .route-history-table td:nth-child(1){width:11%;}
body .route-history-table th:nth-child(2),body .route-history-table td:nth-child(2){width:10%;}
body .route-history-table th:nth-child(3),body .route-history-table td:nth-child(3){width:9%;}
body .route-history-table th:nth-child(4),body .route-history-table td:nth-child(4){width:18%;}
body .route-history-table th:nth-child(5),body .route-history-table td:nth-child(5){width:13%;}
body .route-history-table th:nth-child(6),body .route-history-table td:nth-child(6){width:17%;}
body .route-history-table th:nth-child(7),body .route-history-table td:nth-child(7){width:8%;}
body .route-history-table th:nth-child(8),body .route-history-table td:nth-child(8){width:18%;}
body .planning-table{min-width:1180px !important;}
body .planning-table th:nth-child(1),body .planning-table td:nth-child(1){width:10% !important;}
body .planning-table th:nth-child(2),body .planning-table td:nth-child(2){width:9% !important;}
body .planning-table th:nth-child(3),body .planning-table td:nth-child(3){width:8% !important;}
body .planning-table th:nth-child(4),body .planning-table td:nth-child(4){width:12% !important;}
body .planning-table th:nth-child(5),body .planning-table td:nth-child(5){width:12% !important;}
body .planning-table th:nth-child(6),body .planning-table td:nth-child(6){width:11% !important;}
body .planning-table th:nth-child(7),body .planning-table td:nth-child(7){width:15% !important;}
body .planning-table th:nth-child(8),body .planning-table td:nth-child(8){width:14% !important;}
body .planning-table th:nth-child(9),body .planning-table td:nth-child(9){width:9% !important;}
body .work-code-badge{padding:.36rem .62rem;font-size:.72rem;white-space:nowrap;}
body .table-date{white-space:nowrap;font-weight:700;color:#3d5068;}
body .table-primary-text{display:block;color:#16253b;font-weight:850;line-height:1.25;}
body .table-secondary-text{display:block;margin-top:3px;color:#8090a4;font-size:.7rem;line-height:1.2;}
body .vehicle-plate{display:inline-flex;padding:.34rem .55rem;border-radius:9px;background:#f1f5f9;color:#293b52;font-size:.75rem;white-space:nowrap;}
body .stop-count-pill{display:inline-grid;place-items:center;min-width:34px;height:30px;padding:0 .5rem;border-radius:999px;background:#edf4ff;color:#2563eb;font-weight:900;}
body .status-inline-form{display:block;}
body .status-inline-select{
  min-width:118px !important;max-width:132px !important;min-height:35px !important;
  padding:.36rem 1.8rem .36rem .65rem !important;border-radius:999px !important;
  font-size:.72rem !important;font-weight:850 !important;background-position:right .55rem center !important;
}
body .status-select-pendiente{background-color:#f4f6f8;border-color:#dce2e8;color:#667585;}
body .status-select-en-proceso{background-color:#edf4ff;border-color:#cfe0ff;color:#1d5fd0;}
body .status-select-finalizada{background-color:#eaf9f0;border-color:#c9edd8;color:#138b54;}
body .status-select-anulada{background-color:#fff0f0;border-color:#ffd4d4;color:#c73d3d;}
body .status-pill,
body .priority-pill,
body .shift-pill{
  display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:.34rem .68rem;
  border-radius:999px;border:1px solid;font-size:.7rem;font-weight:850;white-space:nowrap;
}
body .status-pendiente{background:#f4f6f8;border-color:#dce2e8;color:#667585;}
body .status-en-proceso{background:#edf4ff;border-color:#cfe0ff;color:#1d5fd0;}
body .status-finalizada{background:#eaf9f0;border-color:#c9edd8;color:#138b54;}
body .status-anulada{background:#fff0f0;border-color:#ffd4d4;color:#c73d3d;}
body .priority-baja{background:#eaf9f0;border-color:#c9edd8;color:#138b54;}
body .priority-media{background:#fff9e8;border-color:#f6e2a8;color:#a36b00;}
body .priority-alta{background:#fff3e8;border-color:#ffd8b4;color:#c85e08;}
body .priority-urgente{background:#fff0f0;border-color:#ffd2d2;color:#c43f3f;}
body .shift-manana{background:#edf4ff;border-color:#cfe0ff;color:#1d5fd0;}
body .shift-tarde{background:#fff7e8;border-color:#f5dfaf;color:#b56e00;}
body .shift-noche{background:#f2edff;border-color:#dfd3ff;color:#7141c8;}
body .premium-actions{display:flex !important;align-items:center;justify-content:flex-start;gap:5px;flex-wrap:nowrap !important;}
body .premium-actions form{margin:0;}
body .action-btn{
  min-height:32px;padding:.38rem .58rem !important;border:1px solid #d7e1ed !important;
  border-radius:9px !important;background:#fff !important;color:#30435a !important;font-size:.7rem !important;font-weight:800 !important;
  box-shadow:none !important;white-space:nowrap;
}
body .action-btn:hover{background:#f6f9fc !important;border-color:#bfcddd !important;color:#14243a !important;}
body .action-edit{color:#1d5fd0 !important;}
body .action-pdf{color:#1d4ed8 !important;}
body .action-delete{
  width:32px;height:32px;display:grid;place-items:center;padding:0 !important;border-radius:9px !important;
  border:1px solid #ffcaca !important;background:#fff8f8 !important;color:#d33e3e !important;font-size:1rem !important;font-weight:500 !important;
}
body .premium-empty-state{display:flex;flex-direction:column;align-items:center;gap:4px;padding:2.4rem !important;}
body .premium-empty-state strong{color:#273950;}
body .premium-empty-state span{color:#8190a3;font-size:.82rem;}

/* Formularios flotantes: imagen superior siempre visible y correctamente recortada. */
body .industrial-modal-v2{
  max-height:calc(100dvh - 28px);
  border-radius:26px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  background:#f4f8fc;
}
body .industrial-modal-hero{
  position:relative;
  flex:0 0 205px;
  min-height:205px;
  overflow:hidden;
  background:#08162c;
  isolation:isolate;
}
body .industrial-modal-hero.compact-modal-hero{flex-basis:185px;min-height:185px;}
body .industrial-modal-hero>img{
  position:absolute;inset:0;width:100%;height:100%;display:block;
  object-fit:cover;object-position:center 52%;filter:saturate(.96) contrast(1.03);
}
body .planning-modal-hero>img{object-position:center 55%;}
body .industrial-modal-hero-overlay{
  position:absolute;inset:0;z-index:1;
  background:linear-gradient(180deg,rgba(5,14,29,.04) 0%,rgba(5,14,29,.36) 43%,rgba(5,14,29,.94) 100%);
}
body .industrial-modal-hero-copy{
  position:absolute;left:24px;right:70px;bottom:18px;z-index:2;color:#fff;
}
body .industrial-modal-hero-copy h2{margin:.28rem 0 .24rem;color:#fff;font-size:1.9rem;font-weight:900;letter-spacing:-.035em;}
body .industrial-modal-hero-copy p{margin:0;color:#d8e4f2;font-size:.9rem;line-height:1.35;}
body .industrial-modal-hero .industrial-modal-kicker{
  display:inline-flex;margin:0;padding:.3rem .62rem;border-radius:999px;
  background:rgba(35,210,190,.15);border:1px solid rgba(93,235,217,.32);color:#a6fff3;font-size:.67rem;
}
body .industrial-modal-hero .industrial-modal-close{
  position:absolute;top:15px;right:15px;z-index:3;width:34px;height:34px;padding:9px;
  border-radius:999px;background-color:rgba(255,255,255,.88);filter:none;opacity:1;
  box-shadow:0 8px 20px rgba(0,0,0,.18);
}
body .industrial-modal-v2 .industrial-modal-body{
  flex:1 1 auto;min-height:0;overflow-y:auto;padding:16px 18px;gap:12px;background:#f4f8fc;
}
body .industrial-modal-v2 .industrial-form-section{padding:14px 15px;border-radius:18px;}
body .industrial-modal-v2 .industrial-section-heading{margin-bottom:11px;}
body .industrial-modal-v2 .industrial-section-heading>span{width:35px;height:35px;border-radius:11px;}
body .industrial-modal-v2 .industrial-form-section .form-control,
body .industrial-modal-v2 .industrial-form-section .form-select{min-height:42px;padding:.61rem .74rem;border-radius:12px;font-size:.84rem;}
body .industrial-modal-v2 .industrial-textarea{min-height:112px !important;}
body .industrial-modal-v2 .compact-notes{min-height:72px !important;}
body .industrial-modal-v2 .industrial-modal-footer{padding:11px 18px;box-shadow:0 -8px 24px rgba(15,23,42,.04);}
body .industrial-modal-v2 .industrial-modal-footer .btn{min-height:42px;border-radius:12px;font-size:.84rem;font-weight:850;}
body .add-row-button{min-height:34px;border-radius:10px;font-weight:800;}
body .industrial-modal-v2 .planning-entry-wrap{max-height:184px;border-radius:13px;}
body .industrial-modal-v2 .planning-entry-table{min-width:690px;}
body .industrial-modal-v2 .planning-entry-table th{padding:.55rem .5rem !important;font-size:.67rem !important;}
body .industrial-modal-v2 .planning-entry-table td{padding:.3rem .34rem !important;}
body .industrial-modal-v2 .planning-entry-table .form-control{min-height:35px !important;padding:.4rem .55rem !important;font-size:.79rem !important;}

@media (max-width:1399px){
  body .home-operations-layout{grid-template-columns:minmax(0,1fr) 390px;}
  body .home-module-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .module-filter-panel{grid-template-columns:minmax(220px,1.5fr) repeat(2,minmax(130px,.7fr)) repeat(2,minmax(130px,.7fr));}
  body .module-filter-actions{grid-column:1/-1;justify-content:flex-end;}
  body .route-filter-panel,
  body .planning-filter-panel-v2{grid-template-columns:minmax(260px,1.6fr) minmax(150px,.7fr) minmax(145px,.65fr) auto;}
  body .route-filter-panel .module-filter-actions,
  body .planning-filter-panel-v2 .module-filter-actions{grid-column:auto;}
}
@media (max-width:1199px){
  body .home-operations-layout{grid-template-columns:1fr;}
  body .home-module-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
  body .module-filter-panel,
  body .route-filter-panel,
  body .planning-filter-panel-v2{grid-template-columns:repeat(3,minmax(0,1fr));}
  body .module-search-field{grid-column:span 2;}
  body .module-filter-actions{grid-column:auto;justify-content:flex-start;}
}
@media (max-width:767px){
  body .home-module-grid{grid-template-columns:1fr;}
  body .home-module-tile{min-height:96px;}
  body .operational-summary-head{grid-template-columns:44px minmax(0,1fr);}
  body .live-data-chip{grid-column:1/-1;justify-self:start;}
  body .operational-summary-premium .operational-summary-grid{grid-template-columns:1fr;}
  body .operational-summary-footer{flex-direction:column;align-items:flex-start;}
  body .module-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .module-stat-card{min-height:82px;padding:.75rem;}
  body .module-filter-panel,
  body .route-filter-panel,
  body .planning-filter-panel-v2{grid-template-columns:1fr;}
  body .module-search-field{grid-column:auto;}
  body .module-filter-actions{grid-column:auto;display:grid;grid-template-columns:1fr 1fr;}
  body .premium-page-heading .d-flex{width:100%;}
  body .premium-page-heading .module-primary-action,
  body .premium-page-heading .module-secondary-action{flex:1;}
  body .industrial-modal-hero,
  body .industrial-modal-hero.compact-modal-hero{flex-basis:155px;min-height:155px;}
  body .industrial-modal-hero-copy{left:15px;right:52px;bottom:13px;}
  body .industrial-modal-hero-copy h2{font-size:1.35rem;}
  body .industrial-modal-hero-copy p{font-size:.76rem;}
  body .industrial-modal-v2 .industrial-modal-body{padding:10px;}
  body .industrial-modal-v2 .industrial-modal-footer{padding:10px;}
  body .industrial-modal-v2 .industrial-modal-footer .btn{flex:1;min-width:0;}
}


/* === Mejora focalizada: indicadores de Planificación / Programación === */
body .module-stat-grid{
  gap:14px;
}
body .module-stat-card{
  position:relative;
  min-height:104px;
  padding:1rem 1.08rem;
  gap:15px;
  border-radius:22px;
  border:1px solid #d9e4f0;
  background:linear-gradient(145deg,#ffffff 0%,#f7faff 100%);
  box-shadow:0 14px 32px rgba(15,23,42,.075);
  overflow:hidden;
  isolation:isolate;
}
body .module-stat-card::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:linear-gradient(180deg,#2563eb,#5eead4);
}
body .module-stat-card::after{
  content:"";
  position:absolute;
  right:-30px;
  top:-34px;
  width:108px;
  height:108px;
  border-radius:50%;
  background:rgba(37,99,235,.055);
  z-index:-1;
}
body .module-stat-card.stat-2::before{background:linear-gradient(180deg,#2563eb,#60a5fa);}
body .module-stat-card.stat-3::before{background:linear-gradient(180deg,#7c3aed,#c084fc);}
body .module-stat-card.stat-4::before{background:linear-gradient(180deg,#d97706,#fbbf24);}
body .module-stat-card.stat-3::after{background:rgba(124,58,237,.055);}
body .module-stat-card.stat-4::after{background:rgba(217,119,6,.060);}
body .module-stat-icon{
  width:50px;
  height:50px;
  border-radius:16px;
  font-size:1.18rem;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 8px 18px rgba(37,99,235,.10);
  flex:0 0 auto;
}
body .module-stat-card>div{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
body .module-stat-card small{
  margin-bottom:5px;
  color:#60738d;
  font-size:.76rem;
  font-weight:850;
  letter-spacing:.015em;
  line-height:1.2;
}
body .module-stat-card strong{
  color:#071a33;
  font-size:1.85rem;
  line-height:.95;
  font-weight:950;
  letter-spacing:-.035em;
}
@media (max-width:767px){
  body .module-stat-card{min-height:88px;padding:.82rem .88rem;gap:11px;border-radius:18px;}
  body .module-stat-icon{width:43px;height:43px;border-radius:14px;}
  body .module-stat-card strong{font-size:1.55rem;}
}


body .module-stat-icon-svg svg{width:24px;height:24px;display:block;stroke:currentColor;fill:none;}

/* =========================================================
   PASADA PREMIUM FINAL: FLOTANTES, NC/ND Y MANTENIMIENTO
   ========================================================= */

/* Flotantes compactos y animación premium global */
body .industrial-form-modal .modal-dialog{
  width:calc(100% - 32px);
  max-width:900px;
  margin:16px auto;
}
body .industrial-form-modal .modal-dialog.modal-xl{max-width:980px;}
body .industrial-form-modal .modal-dialog.modal-lg{max-width:850px;}
body .industrial-form-modal.fade .modal-dialog{
  opacity:0;
  transform:translate3d(0,28px,0) scale(.965);
  filter:blur(3px);
  transition:transform .42s cubic-bezier(.16,1,.3,1),opacity .28s ease,filter .32s ease;
}
body .industrial-form-modal.show .modal-dialog{
  opacity:1;
  transform:translate3d(0,0,0) scale(1);
  filter:blur(0);
}
body .industrial-form-modal .modal-content{
  box-shadow:0 34px 90px rgba(3,12,28,.30),0 10px 28px rgba(15,23,42,.16);
}
body .industrial-form-modal .modal-content::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.65);
}
body .industrial-form-modal .industrial-modal-v2{
  max-height:calc(100dvh - 32px);
  border-radius:22px;
}
body .industrial-form-modal .industrial-modal-hero{
  flex-basis:148px;
  min-height:148px;
}
body .industrial-form-modal .industrial-modal-hero.compact-modal-hero{
  flex-basis:132px;
  min-height:132px;
}
body .industrial-form-modal .industrial-modal-hero-copy{left:22px;bottom:14px;}
body .industrial-form-modal .industrial-modal-hero-copy h2{font-size:1.55rem;margin:.18rem 0 .18rem;}
body .industrial-form-modal .industrial-modal-hero-copy p{font-size:.8rem;}
body .industrial-form-modal .industrial-modal-body{padding:12px 14px;gap:10px;}
body .industrial-form-modal .industrial-form-section{padding:12px 13px;border-radius:16px;}
body .industrial-form-modal .industrial-modal-footer{padding:10px 14px;}
body .industrial-form-modal .industrial-modal-footer .btn{min-height:39px;}
body .industrial-form-modal .industrial-textarea,
body .industrial-form-modal .compact-notes{min-height:58px !important;}
body .modal-backdrop.show{opacity:.62;}
@media (prefers-reduced-motion:reduce){
  body .industrial-form-modal.fade .modal-dialog{transition:none;transform:none;filter:none;}
}

/* NC / ND compacto y legible */
body .nc-filter-panel{
  grid-template-columns:minmax(260px,1.8fr) minmax(125px,.55fr) minmax(145px,.65fr) auto;
}
body .nc-stat-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .nc-stat-icon>strong{font-size:.88rem;letter-spacing:.02em;}
body .nc-premium-table{min-width:1120px;table-layout:fixed;}
body .nc-premium-table th:nth-child(1){width:155px;}
body .nc-premium-table th:nth-child(2){width:235px;}
body .nc-premium-table th:nth-child(3){width:150px;}
body .nc-premium-table th:nth-child(4){width:300px;}
body .nc-premium-table th:nth-child(5){width:145px;}
body .nc-premium-table th:nth-child(6){width:210px;}
body .nc-premium-table td{vertical-align:middle;padding-top:.8rem !important;padding-bottom:.8rem !important;}
body .nc-document-cell{display:flex;align-items:center;gap:7px;margin-bottom:4px;}
body .nc-premium-table td:nth-child(2) strong{display:block;color:#132238;font-size:.82rem;}
body .nc-premium-table td:nth-child(2) small{display:block;color:#74849a;margin-top:4px;}
body .nc-amount-chip{display:inline-flex;max-width:140px;padding:.38rem .58rem;border-radius:10px;background:#f4f7fb;border:1px solid #dde6f0;color:#33465d;font-size:.72rem;font-weight:800;line-height:1.25;}
body .nc-reason-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;color:#26384f;font-size:.78rem;line-height:1.35;}
body .nc-status-form .form-select{min-width:126px;border-radius:11px;font-size:.73rem;font-weight:800;}
body .nc-actions{gap:4px !important;}
body .nc-actions .action-btn{padding:.34rem .48rem !important;}
body .nc-modal-dialog{max-width:800px !important;}
body .nc-modal-hero>img{object-position:center 58%;}
body .nc-modal-body .form-label{font-size:.72rem;margin-bottom:.28rem;}
body .nc-modal-body .form-control,
body .nc-modal-body .form-select{min-height:39px !important;padding:.52rem .65rem !important;}
body .nc-modal-body textarea.form-control{min-height:54px !important;}
@media (max-width:991px){
  body .nc-filter-panel{grid-template-columns:1fr 1fr;}
  body .nc-filter-panel .module-search-field{grid-column:1/-1;}
}

/* Módulo general de mantenimiento */
body .maintenance-hub-hero{
  position:relative;
  overflow:hidden;
  min-height:230px;
  border:1px solid #dbe6f2;
  background:#0a1830;
}
body .maintenance-hub-hero-bg{
  position:absolute;inset:0;
  background:linear-gradient(90deg,rgba(4,15,34,.96) 0%,rgba(5,21,46,.87) 45%,rgba(5,21,46,.30) 100%),url('../img/hero_port_logistics.png') center/cover no-repeat;
}
body .maintenance-hub-hero-content{
  position:relative;z-index:1;min-height:230px;padding:34px 38px;display:flex;align-items:center;justify-content:space-between;gap:28px;color:#fff;
}
body .maintenance-hub-hero-content h1{margin:.45rem 0 .55rem;color:#fff;font-size:2.7rem;font-weight:950;letter-spacing:-.045em;}
body .maintenance-hub-hero-content p{max-width:720px;margin:0;color:#d6e3f2;font-size:1rem;line-height:1.55;}
body .maintenance-hub-stat{
  min-height:98px;padding:18px 20px;border-radius:20px;border:1px solid #dbe6f2;background:linear-gradient(145deg,#fff,#f7faff);box-shadow:0 14px 34px rgba(15,23,42,.07);position:relative;overflow:hidden;
}
body .maintenance-hub-stat::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,#2563eb,#5eead4);}
body .maintenance-hub-stat.stat-2::before{background:linear-gradient(180deg,#0ea5e9,#67e8f9);}
body .maintenance-hub-stat.stat-3::before{background:linear-gradient(180deg,#7c3aed,#c084fc);}
body .maintenance-hub-stat.stat-4::before{background:linear-gradient(180deg,#dc2626,#fb7185);}
body .maintenance-hub-stat span{display:block;color:#667a92;font-size:.76rem;font-weight:850;text-transform:uppercase;letter-spacing:.035em;}
body .maintenance-hub-stat strong{display:block;margin-top:8px;color:#0b1b31;font-size:2rem;line-height:1;font-weight:950;}
body .maintenance-hub-panel .card-body{padding:26px;}
body .maintenance-submodule-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
body .maintenance-submodule-card{
  display:grid;grid-template-columns:56px minmax(0,1fr) 32px;align-items:center;gap:14px;min-height:112px;padding:16px 17px;border-radius:20px;border:1px solid #dbe6f2;background:linear-gradient(145deg,#fff,#f8fbff);color:inherit;text-decoration:none;box-shadow:0 10px 24px rgba(15,23,42,.05);transition:transform .24s ease,border-color .24s ease,box-shadow .24s ease;
}
body .maintenance-submodule-card:hover{transform:translateY(-3px);border-color:#b9d1f4;box-shadow:0 18px 34px rgba(37,99,235,.11);}
body .maintenance-submodule-icon{width:56px;height:56px;border-radius:17px;display:grid;place-items:center;background:#edf4ff;border:1px solid #d5e5fb;color:#2563eb;}
body .maintenance-submodule-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;}
body .maintenance-submodule-copy strong{display:block;color:#102139;font-size:.95rem;font-weight:900;}
body .maintenance-submodule-copy small{display:block;margin-top:5px;color:#6c7e94;font-size:.77rem;line-height:1.35;}
body .maintenance-submodule-arrow{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:#eef5ff;color:#2563eb;font-weight:900;}
@media(max-width:900px){
  body .maintenance-hub-hero-content{padding:26px;flex-direction:column;align-items:flex-start;}
  body .maintenance-submodule-grid{grid-template-columns:1fr;}
}

/* Monitor premium: solo pendientes, lectura alta y QR individual */
body .workshop-monitor-shell{
  min-height:calc(100vh - 135px);padding:18px;border-radius:28px;background:linear-gradient(160deg,#07182f 0%,#0d2544 52%,#0a1d36 100%);color:#fff;box-shadow:0 26px 70px rgba(4,15,34,.28);overflow:hidden;
}
body .workshop-monitor-header{
  display:grid;grid-template-columns:minmax(0,1.45fr) minmax(250px,.75fr) auto;align-items:center;gap:22px;padding:22px 24px;border-radius:22px;background:linear-gradient(120deg,rgba(255,255,255,.095),rgba(255,255,255,.035));border:1px solid rgba(255,255,255,.11);
}
body .workshop-monitor-kicker{display:inline-flex;padding:.34rem .65rem;border-radius:999px;background:rgba(45,212,191,.13);border:1px solid rgba(94,234,212,.28);color:#9ff7ea;font-size:.7rem;font-weight:850;text-transform:uppercase;letter-spacing:.08em;}
body .workshop-monitor-titleblock h1{margin:.55rem 0 .35rem;color:#fff;font-size:2rem;font-weight:950;letter-spacing:-.04em;}
body .workshop-monitor-titleblock p{margin:0;color:#c7d8eb;font-size:.9rem;line-height:1.45;}
body .workshop-monitor-clockbox{text-align:center;}
body .workshop-monitor-clock{font-size:2.7rem;font-weight:950;line-height:1;color:#fff;letter-spacing:-.04em;}
body .workshop-monitor-date{margin-top:6px;color:#d9e6f4;font-size:.88rem;text-transform:capitalize;}
body .workshop-monitor-location{margin-top:2px;color:#8fa8c5;font-size:.76rem;}
body .workshop-fullscreen-btn{white-space:nowrap;}
body .workshop-monitor-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:14px 0;}
body .workshop-monitor-summary article{padding:15px 17px;border-radius:18px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.10);}
body .workshop-monitor-summary span{display:block;color:#b8cae0;font-size:.72rem;font-weight:800;text-transform:uppercase;letter-spacing:.04em;}
body .workshop-monitor-summary strong{display:block;margin-top:6px;color:#fff;font-size:1.65rem;line-height:1;font-weight:950;}
body .workshop-monitor-summary article.is-alert{background:rgba(239,68,68,.14);border-color:rgba(248,113,113,.34);}
body .workshop-pending-board{padding:18px;border-radius:22px;background:#f5f8fc;color:#13233b;min-height:420px;}
body .workshop-board-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;}
body .workshop-board-head span{color:#6c8098;font-size:.7rem;font-weight:850;text-transform:uppercase;letter-spacing:.06em;}
body .workshop-board-head h2{margin:.2rem 0 0;color:#0c1d35;font-size:1.35rem;font-weight:950;}
body .workshop-live-chip{display:inline-flex;align-items:center;gap:7px;padding:.42rem .72rem;border-radius:999px;background:#eaf8f2;color:#147653;font-size:.72rem;font-weight:850;}
body .workshop-live-chip i{width:8px;height:8px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.12);}
body .workshop-task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;max-height:calc(100vh - 410px);min-height:350px;overflow:auto;padding-right:3px;}
body .workshop-task-card{display:grid;grid-template-columns:minmax(0,1fr) 116px;gap:16px;padding:17px;border-radius:20px;background:#fff;border:1px solid #dce6f1;box-shadow:0 12px 26px rgba(15,23,42,.065);position:relative;overflow:hidden;}
body .workshop-task-card::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:linear-gradient(180deg,#2563eb,#5eead4);}
body .workshop-task-card.is-overdue::before{background:linear-gradient(180deg,#dc2626,#fb7185);}
body .workshop-task-topline{display:flex;align-items:center;justify-content:space-between;gap:10px;}
body .workshop-task-code{display:inline-flex;padding:.36rem .62rem;border-radius:999px;background:#eaf2ff;border:1px solid #cfe0fb;color:#1f5fd3;font-size:.72rem;font-weight:900;}
body .workshop-priority{padding:.32rem .56rem;border-radius:999px;font-size:.67rem;font-weight:850;background:#fff7e8;border:1px solid #f4dfb4;color:#a96800;}
body .workshop-priority.priority-alta{background:#fff0f0;border-color:#ffd0d0;color:#c43e3e;}
body .workshop-priority.priority-baja{background:#eaf9f0;border-color:#ccebd9;color:#168a55;}
body .workshop-task-main h3{margin:.7rem 0 .35rem;color:#102139;font-size:1.1rem;font-weight:950;}
body .workshop-task-description{margin:0 0 .8rem;color:#61748b;font-size:.8rem;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
body .workshop-task-details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;}
body .workshop-task-details div{padding:8px 10px;border-radius:11px;background:#f6f9fc;border:1px solid #e6edf4;}
body .workshop-task-details span{display:block;color:#7b8ba0;font-size:.62rem;font-weight:800;text-transform:uppercase;letter-spacing:.035em;}
body .workshop-task-details strong{display:block;margin-top:3px;color:#1c2e45;font-size:.76rem;font-weight:850;}
body .workshop-task-details strong.unassigned{color:#b56b00;}
body .workshop-task-details strong.overdue-text{color:#c83f3f;}
body .workshop-task-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px;}
body .workshop-task-tags span{padding:.3rem .55rem;border-radius:999px;background:#edf4ff;border:1px solid #d5e4fa;color:#275ea9;font-size:.64rem;font-weight:800;}
body .workshop-task-tags span.late-tag{background:#fff0f0;border-color:#ffd0d0;color:#c43e3e;}
body .workshop-task-qr{display:flex;flex-direction:column;align-items:center;justify-content:center;padding-left:14px;border-left:1px solid #e2e9f1;text-align:center;}
body .workshop-qr-frame{width:96px;height:96px;padding:6px;border-radius:16px;background:#fff;border:1px solid #d7e2ed;box-shadow:0 8px 18px rgba(15,23,42,.08);}
body .workshop-qr-frame img{display:block;width:100%;height:100%;object-fit:contain;}
body .workshop-task-qr strong{margin-top:8px;color:#22364f;font-size:.7rem;font-weight:900;}
body .workshop-task-qr small{margin-top:2px;color:#77899d;font-size:.62rem;}
body .workshop-monitor-empty{min-height:340px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#60738a;}
body .workshop-monitor-empty>span{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;background:#eaf9f0;color:#15945a;font-size:2rem;font-weight:900;}
body .workshop-monitor-empty strong{margin-top:14px;color:#14263e;font-size:1.2rem;}
body .workshop-monitor-empty p{margin:.45rem 0 0;}
body .workshop-monitor-shell:fullscreen{width:100vw;height:100vh;border-radius:0;padding:18px;overflow:auto;}
@media(max-width:1350px){body .workshop-task-grid{grid-template-columns:1fr;max-height:none;}body .workshop-monitor-shell{min-height:auto;}}
@media(max-width:900px){body .workshop-monitor-header{grid-template-columns:1fr;text-align:left;}body .workshop-monitor-clockbox{text-align:left;}body .workshop-monitor-summary{grid-template-columns:repeat(2,1fr);}body .workshop-task-card{grid-template-columns:1fr;}body .workshop-task-qr{border-left:0;border-top:1px solid #e2e9f1;padding:12px 0 0;}}


/* =========================================================
   PASADA FINAL · FLOTANTES / LOGO / MONITOR TALLER
   ========================================================= */
body .sidebar-brand{justify-content:center;}
body .brand-glyph,
body .brand-glyph-photo{
  width:76px !important;
  height:76px !important;
  border-radius:999px !important;
  margin:0 auto;
  padding:6px !important;
  background:linear-gradient(180deg,#ffffff 0%,#eff5fb 100%) !important;
  border:2px solid rgba(201,217,235,.95) !important;
  box-shadow:0 18px 36px rgba(15,23,42,.12), inset 0 1px 0 rgba(255,255,255,.95);
}
body .brand-glyph-photo img{
  width:100%;
  height:100%;
  object-fit:contain !important;
  border-radius:999px;
  background:#fff;
  padding:8px;
}
body .sidebar-top{padding-top:4px;}

body .industrial-form-modal .modal-dialog{
  width:min(960px, calc(100vw - 28px));
  max-width:960px;
  min-height:calc(100vh - 1rem);
  display:flex;
  align-items:center;
}
body .industrial-form-modal .modal-dialog.modal-lg{max-width:930px;}
body .industrial-form-modal .modal-dialog.modal-xl{max-width:1040px;}
body .industrial-form-modal .modal-content{width:100%;}
body .industrial-form-modal .industrial-modal-v2{
  border-radius:26px;
  background:linear-gradient(180deg,#f8fbff 0%,#f1f6fc 100%);
}
body .industrial-form-modal .industrial-modal-close{
  position:absolute;
  top:14px;
  right:14px;
  width:48px;
  height:48px;
  padding:0;
  display:grid;
  place-items:center;
  border-radius:999px;
  border:1px solid rgba(148,163,184,.28);
  background-color:rgba(255,255,255,.96);
  box-shadow:0 16px 34px rgba(2,8,23,.22);
  opacity:1;
  z-index:5;
}
body .industrial-form-modal .industrial-modal-close:hover{transform:scale(1.04);}
body .industrial-form-modal .industrial-modal-hero-copy{left:24px;right:92px;bottom:16px;}
body .industrial-form-modal .industrial-modal-hero-copy h2{font-size:1.6rem;}
body .industrial-form-modal .industrial-modal-body{padding:14px 16px;}
body .industrial-form-modal .industrial-modal-footer{
  position:sticky;
  bottom:0;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(8px);
}
body .maintenance-modal-v2 .industrial-form-section{box-shadow:0 14px 30px rgba(15,23,42,.06);}
@media (max-width:767px){
  body .industrial-form-modal .modal-dialog{width:calc(100vw - 14px); min-height:calc(100vh - .5rem);} 
  body .industrial-form-modal .industrial-modal-close{top:10px;right:10px;width:42px;height:42px;}
  body .industrial-form-modal .industrial-modal-hero-copy{left:14px;right:62px;bottom:12px;}
}

body .maintenance-board-shell .module-stat-card{min-height:108px;}
body .maintenance-table-card .premium-actions{gap:6px;}

body .premium-workshop-monitor{
  background:radial-gradient(circle at top right, rgba(56,189,248,.10), transparent 26%), linear-gradient(160deg,#041226 0%,#0b2342 52%,#07172c 100%);
  border:1px solid rgba(255,255,255,.10);
}
body .premium-workshop-monitor .workshop-monitor-header{
  padding:24px 26px;
  border-radius:24px;
  background:linear-gradient(120deg,rgba(255,255,255,.10),rgba(255,255,255,.04));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
body .premium-workshop-monitor .workshop-monitor-titleblock h1{font-size:2.35rem;}
body .premium-workshop-monitor .workshop-monitor-titleblock p{font-size:.98rem;max-width:760px;}
body .premium-workshop-monitor .workshop-monitor-clock{font-size:3rem;}
body .premium-workshop-monitor .workshop-pending-board{
  border-radius:24px;
  box-shadow:0 20px 50px rgba(4,15,34,.18);
}
body .premium-workshop-monitor .workshop-task-grid{
  gap:16px;
  max-height:calc(100vh - 370px);
  scroll-behavior:smooth;
  padding-right:6px;
}
body .premium-workshop-monitor .workshop-task-card{
  grid-template-columns:minmax(0,1fr) 158px;
  gap:18px;
  padding:20px;
  border-radius:22px;
  box-shadow:0 16px 34px rgba(15,23,42,.08);
}
body .premium-workshop-monitor .workshop-task-main h3{font-size:1.32rem; margin:.6rem 0 .2rem;}
body .premium-workshop-monitor .workshop-task-assignee-inline{margin-bottom:.55rem;color:#4c647f;font-size:.9rem;}
body .premium-workshop-monitor .workshop-task-assignee-inline strong{color:#12253f;font-weight:900;}
body .premium-workshop-monitor .workshop-task-description{font-size:.92rem;line-height:1.55;-webkit-line-clamp:3;}
body .premium-workshop-monitor .workshop-task-details div{padding:10px 12px;border-radius:13px;}
body .premium-workshop-monitor .workshop-task-details span{font-size:.66rem;}
body .premium-workshop-monitor .workshop-task-details strong{font-size:.86rem;}
body .premium-workshop-monitor .workshop-task-tags span{font-size:.68rem;padding:.34rem .62rem;}
body .premium-workshop-monitor .workshop-task-qr{padding-left:16px;}
body .premium-workshop-monitor .workshop-qr-frame{
  width:128px;
  height:128px;
  padding:8px;
  border-radius:20px;
  box-shadow:0 12px 26px rgba(15,23,42,.10);
}
body .premium-workshop-monitor .workshop-task-qr strong{font-size:.8rem;margin-top:10px;}
body .premium-workshop-monitor .workshop-task-qr small{font-size:.7rem;}
body .premium-workshop-monitor .workshop-live-chip{font-size:.78rem;padding:.5rem .82rem;}
@media(max-width:1350px){
  body .premium-workshop-monitor .workshop-task-grid{max-height:none;}
}
@media(max-width:900px){
  body .premium-workshop-monitor .workshop-task-card{grid-template-columns:1fr;}
  body .premium-workshop-monitor .workshop-task-qr{border-left:0;border-top:1px solid #e2e9f1;padding:14px 0 0;}
}


/* =========================================================
   ULTRA FINA DEFINITIVA · PRESENTACIÓN EMPRESARIAL
   ========================================================= */

/* Cierre visible y consistente en Safari/Chrome/Windows. */
body .industrial-form-modal .industrial-modal-close{
  background-image:none !important;
  color:#0b1830 !important;
  font-size:0 !important;
  line-height:1 !important;
  transition:transform .22s cubic-bezier(.16,1,.3,1), box-shadow .22s ease, background-color .22s ease !important;
}
body .industrial-form-modal .industrial-modal-close::before{
  content:"×";
  display:block;
  font-family:Arial,sans-serif;
  font-size:2rem;
  font-weight:300;
  line-height:1;
  color:#0b1830;
  transform:translateY(-1px);
}
body .industrial-form-modal .industrial-modal-close:hover{
  background:#fff !important;
  box-shadow:0 18px 38px rgba(2,8,23,.28) !important;
}
body .industrial-form-modal .industrial-modal-close:focus-visible{
  outline:3px solid rgba(37,99,235,.34);
  outline-offset:3px;
}

/* Flotantes con proporción uniforme y lectura más compacta. */
body .industrial-form-modal .industrial-modal-v2{
  max-height:min(900px,calc(100dvh - 24px));
  border:1px solid rgba(203,216,231,.96);
}
body .industrial-form-modal .industrial-modal-hero.compact-modal-hero{
  flex-basis:124px;
  min-height:124px;
}
body .industrial-form-modal .industrial-modal-hero>img{object-position:center 48%;}
body .industrial-form-modal .industrial-form-section .row.g-3{--bs-gutter-y:.72rem;--bs-gutter-x:.78rem;}
body .industrial-form-modal .industrial-form-section .form-control,
body .industrial-form-modal .industrial-form-section .form-select{
  min-height:40px;
  padding:.57rem .72rem;
}
body .industrial-form-modal .industrial-section-heading{margin-bottom:9px;}
body .industrial-form-modal .industrial-section-heading>span{width:34px;height:34px;}
body .industrial-form-modal .industrial-modal-footer .btn{min-width:128px;}

/* Bloques técnicos compactos y consistentes entre Logística/Mantenimiento. */
body .maintenance-board-shell .module-stat-grid{gap:12px;}
body .maintenance-board-shell .module-stat-card{
  min-height:96px;
  padding:.88rem .96rem;
  border-radius:20px;
}
body .maintenance-board-shell .module-stat-icon{width:46px;height:46px;border-radius:15px;}
body .maintenance-board-shell .module-stat-card strong{font-size:1.7rem;}
body .maintenance-table-card{border-color:#d8e4f0;box-shadow:0 18px 42px rgba(15,23,42,.075);}
body .maintenance-table-card .compact-data-table td{padding-top:.7rem;padding-bottom:.7rem;}

/* Logo: círculo limpio, centrado y sin recortes. */
body .sidebar-top{justify-content:center;}
body .sidebar-brand{width:100%;justify-content:center !important;}
body .brand-glyph-photo{flex:0 0 76px !important;}
body.sidebar-collapsed .brand-glyph-photo{width:72px !important;height:72px !important;flex-basis:72px !important;}

/* Monitor TV: escala premium y flujo automático lento. */
body .premium-workshop-monitor{display:flex;flex-direction:column;}
body .premium-workshop-monitor .workshop-monitor-header{flex:0 0 auto;}
body .premium-workshop-monitor .workshop-monitor-summary{flex:0 0 auto;}
body .premium-workshop-monitor .workshop-pending-board{
  flex:1 1 auto;
  min-height:0;
  display:flex;
  flex-direction:column;
}
body .premium-workshop-monitor .workshop-board-head{flex:0 0 auto;}
body .premium-workshop-monitor .workshop-task-grid{
  flex:1 1 auto;
  min-height:390px;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#a9bfd8 transparent;
}
body .premium-workshop-monitor .workshop-task-grid::-webkit-scrollbar{width:8px;}
body .premium-workshop-monitor .workshop-task-grid::-webkit-scrollbar-track{background:transparent;}
body .premium-workshop-monitor .workshop-task-grid::-webkit-scrollbar-thumb{background:#b7c8dc;border-radius:999px;}
body .premium-workshop-monitor .workshop-task-card{
  border-color:#d5e2ef;
  background:linear-gradient(145deg,#ffffff 0%,#f9fbfe 100%);
}
body .premium-workshop-monitor .workshop-task-code{font-size:.78rem;}
body .premium-workshop-monitor .workshop-task-main h3{letter-spacing:-.02em;}
body .premium-workshop-monitor .workshop-task-assignee-inline{
  display:inline-flex;
  gap:5px;
  align-items:center;
  padding:.33rem .58rem;
  border-radius:999px;
  background:#eef5ff;
  border:1px solid #d8e6f7;
  margin:.15rem 0 .65rem;
}
body .premium-workshop-monitor .workshop-qr-frame{background:#fff;border:2px solid #d5e2ef;}

/* Pantalla completa: ocupa realmente el alto del monitor y mantiene el QR grande. */
body .premium-workshop-monitor:fullscreen,
body .premium-workshop-monitor:-webkit-full-screen{
  width:100vw !important;
  height:100vh !important;
  max-width:none !important;
  min-height:100vh !important;
  margin:0 !important;
  border-radius:0 !important;
  padding:18px !important;
  overflow:hidden !important;
}
body .premium-workshop-monitor:fullscreen .workshop-monitor-header,
body .premium-workshop-monitor:-webkit-full-screen .workshop-monitor-header{padding:20px 24px;}
body .premium-workshop-monitor:fullscreen .workshop-monitor-titleblock h1,
body .premium-workshop-monitor:-webkit-full-screen .workshop-monitor-titleblock h1{font-size:2.6rem;}
body .premium-workshop-monitor:fullscreen .workshop-pending-board,
body .premium-workshop-monitor:-webkit-full-screen .workshop-pending-board{min-height:0;}
body .premium-workshop-monitor:fullscreen .workshop-task-grid,
body .premium-workshop-monitor:-webkit-full-screen .workshop-task-grid{
  max-height:none !important;
  min-height:0 !important;
  height:100%;
}
body .premium-workshop-monitor:fullscreen .workshop-qr-frame,
body .premium-workshop-monitor:-webkit-full-screen .workshop-qr-frame{width:146px;height:146px;}
body .premium-workshop-monitor:fullscreen .workshop-task-card,
body .premium-workshop-monitor:-webkit-full-screen .workshop-task-card{grid-template-columns:minmax(0,1fr) 176px;}

@media(max-width:1100px){
  body .premium-workshop-monitor .workshop-task-grid{min-height:320px;}
  body .premium-workshop-monitor .workshop-task-card{grid-template-columns:minmax(0,1fr) 142px;}
  body .premium-workshop-monitor .workshop-qr-frame{width:116px;height:116px;}
}
@media(max-width:767px){
  body .industrial-form-modal .industrial-modal-v2{max-height:calc(100dvh - 12px);}
  body .industrial-form-modal .industrial-modal-hero.compact-modal-hero{flex-basis:112px;min-height:112px;}
  body .industrial-form-modal .industrial-modal-footer .btn{min-width:0;}
  body .brand-glyph-photo{width:68px !important;height:68px !important;flex-basis:68px !important;}
}

/* =====================================================================
   PROYECTO LOGÍSTICA · ULTRA INDUSTRIAL FINAL · 2026-07-14
   ===================================================================== */

/* Identidad compacta: sin esfera ni placas blancas alrededor del símbolo. */
body .sidebar-brand{
  display:flex;
  align-items:center;
  justify-content:center !important;
  width:100%;
}
body .brand-glyph-photo{
  width:72px !important;
  height:72px !important;
  flex:0 0 72px !important;
  display:grid !important;
  place-items:center;
  overflow:hidden;
  border-radius:20px !important;
  padding:0 !important;
  margin:2px auto 6px !important;
  background:#071522 !important;
  border:1px solid rgba(143,193,226,.36) !important;
  box-shadow:0 15px 30px rgba(0,8,20,.28) !important;
}
body .brand-glyph-photo img{
  width:100% !important;
  height:100% !important;
  max-height:none !important;
  object-fit:cover !important;
  border-radius:19px !important;
  padding:0 !important;
  background:transparent !important;
}
body.sidebar-collapsed .brand-glyph-photo{
  width:58px !important;
  height:58px !important;
  flex-basis:58px !important;
}
body.sidebar-collapsed .brand-glyph-photo img{max-height:none !important;}

/* Enlaces visuales: todos los íconos y bloques operativos pueden seleccionarse. */
body .home-module-tile,
body .maintenance-submodule-card,
body .operational-summary-link,
body .home-hero-metric-link,
body .maintenance-hub-stat-link{
  text-decoration:none;
  cursor:pointer;
}
body .home-module-tile,
body .maintenance-submodule-card,
body .operational-summary-link,
body .maintenance-hub-stat-link{
  position:relative;
  transition:transform .24s cubic-bezier(.16,1,.3,1),box-shadow .24s ease,border-color .24s ease,background .24s ease;
}
body .home-module-tile:hover,
body .maintenance-submodule-card:hover,
body .operational-summary-link:hover,
body .maintenance-hub-stat-link:hover{
  transform:translateY(-4px);
  box-shadow:0 18px 36px rgba(15,23,42,.13);
  border-color:#abc8ed;
}
body .home-module-tile:focus-visible,
body .maintenance-submodule-card:focus-visible,
body .operational-summary-link:focus-visible,
body .maintenance-hub-stat-link:focus-visible{
  outline:3px solid rgba(37,99,235,.28);
  outline-offset:3px;
}
body .operational-summary-link{color:inherit;}
body .indicator-open-arrow{
  margin-left:auto;
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(37,99,235,.10);
  color:#2563eb;
  font-weight:900;
}
body .home-hero-metric-link{color:inherit;}
body .home-hero-metric-link:hover{border-color:#9dbce5;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.09);}
body .maintenance-hub-stat-link{display:block;color:inherit;}
body .maintenance-hub-stat-link i{
  position:absolute;
  right:18px;
  top:50%;
  transform:translateY(-50%);
  font-style:normal;
  font-size:1.3rem;
  color:#2563eb;
}

/* Flotantes: tamaño real, centrado real, cierre visible y animación premium. */
body .industrial-form-modal{
  --bs-modal-zindex:1080;
  padding:0 !important;
}
body .industrial-form-modal .modal-dialog{
  --bs-modal-width:940px;
  width:min(var(--bs-modal-width),calc(100vw - 32px)) !important;
  max-width:none !important;
  min-height:100dvh !important;
  margin:0 auto !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:12px 0 !important;
  pointer-events:none;
}
body .industrial-form-modal .modal-dialog.modal-lg{--bs-modal-width:900px;}
body .industrial-form-modal .modal-dialog.modal-xl{--bs-modal-width:1040px;}
body .industrial-form-modal .modal-content{
  width:100% !important;
  max-height:calc(100dvh - 24px) !important;
  min-height:0 !important;
  display:flex !important;
  flex-direction:column !important;
  overflow:hidden !important;
  border-radius:26px !important;
  border:1px solid rgba(190,207,226,.95) !important;
  background:linear-gradient(180deg,#f9fbfe 0%,#edf4fb 100%) !important;
  box-shadow:0 42px 100px rgba(2,10,25,.42),0 10px 30px rgba(2,10,25,.18) !important;
  pointer-events:auto;
  transform-origin:center center;
}
body .industrial-form-modal.show .modal-dialog{
  animation:premiumModalDialogIn .48s cubic-bezier(.16,1,.3,1) both;
}
body .industrial-form-modal.show .modal-content{
  animation:premiumModalContentIn .48s cubic-bezier(.16,1,.3,1) both;
}
@keyframes premiumModalDialogIn{
  from{opacity:0;transform:translateY(28px) scale(.965)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
@keyframes premiumModalContentIn{
  from{filter:blur(5px);box-shadow:0 18px 46px rgba(2,10,25,.18)}
  to{filter:blur(0);box-shadow:0 42px 100px rgba(2,10,25,.42),0 10px 30px rgba(2,10,25,.18)}
}
body .industrial-form-modal .industrial-modal-hero{
  flex:0 0 112px !important;
  min-height:112px !important;
  max-height:112px !important;
  position:relative !important;
  overflow:hidden !important;
}
body .industrial-form-modal .industrial-modal-hero > img{
  width:100%;height:100%;object-fit:cover;object-position:center 46%;
}
body .industrial-form-modal .industrial-modal-hero-copy{
  left:24px !important;
  right:92px !important;
  bottom:14px !important;
}
body .industrial-form-modal .industrial-modal-hero-copy h2{
  margin:.2rem 0 .15rem !important;
  font-size:1.62rem !important;
  line-height:1.02 !important;
}
body .industrial-form-modal .industrial-modal-hero-copy p{margin:0 !important;font-size:.86rem !important;}
body .industrial-form-modal .industrial-modal-body{
  flex:1 1 auto !important;
  min-height:0 !important;
  max-height:none !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:14px 16px !important;
  overscroll-behavior:contain;
  scrollbar-width:thin;
  scrollbar-color:#aabed4 transparent;
}
body .industrial-form-modal .industrial-modal-body::-webkit-scrollbar{width:8px;}
body .industrial-form-modal .industrial-modal-body::-webkit-scrollbar-thumb{background:#b3c5d9;border-radius:999px;}
body .industrial-form-modal .industrial-form-section{
  margin-bottom:12px !important;
  padding:14px 16px !important;
  border-radius:20px !important;
  background:rgba(255,255,255,.94) !important;
  border:1px solid #d4e1ef !important;
  box-shadow:0 14px 30px rgba(15,23,42,.055) !important;
}
body .industrial-form-modal .industrial-form-section:last-child{margin-bottom:0 !important;}
body .industrial-form-modal .industrial-section-heading{margin-bottom:10px !important;}
body .industrial-form-modal .industrial-modal-footer{
  flex:0 0 auto !important;
  position:relative !important;
  z-index:3;
  padding:10px 16px !important;
  background:rgba(255,255,255,.97) !important;
  border-top:1px solid #d7e3ef !important;
  box-shadow:0 -10px 24px rgba(15,23,42,.05);
}
body .industrial-form-modal .industrial-modal-close{
  position:absolute !important;
  top:14px !important;
  right:14px !important;
  width:50px !important;
  height:50px !important;
  display:grid !important;
  place-items:center !important;
  border-radius:999px !important;
  border:1px solid rgba(148,163,184,.45) !important;
  background:#ffffff !important;
  background-image:none !important;
  box-shadow:0 15px 36px rgba(2,8,23,.30) !important;
  opacity:1 !important;
  z-index:50 !important;
  font-size:0 !important;
  transition:transform .2s ease,box-shadow .2s ease !important;
}
body .industrial-form-modal .industrial-modal-close::before{
  content:"×" !important;
  display:block !important;
  color:#07172c !important;
  font:300 2.2rem/1 Arial,sans-serif !important;
  transform:translateY(-1px);
}
body .industrial-form-modal .industrial-modal-close:hover{transform:scale(1.07) rotate(3deg);box-shadow:0 18px 42px rgba(2,8,23,.36) !important;}
body .industrial-form-modal .industrial-modal-close:focus-visible{outline:4px solid rgba(37,99,235,.32) !important;outline-offset:3px;}
body .industrial-form-modal .planning-entry-wrap{max-height:220px !important;overflow:auto !important;}
body .industrial-form-modal .industrial-textarea{min-height:94px !important;}
body .industrial-form-modal .compact-notes{min-height:76px !important;}
@media(max-width:767px){
  body .industrial-form-modal .modal-dialog{width:calc(100vw - 12px) !important;padding:6px 0 !important;}
  body .industrial-form-modal .modal-content{max-height:calc(100dvh - 12px) !important;border-radius:20px !important;}
  body .industrial-form-modal .industrial-modal-hero{flex-basis:104px !important;min-height:104px !important;max-height:104px !important;}
  body .industrial-form-modal .industrial-modal-close{width:44px !important;height:44px !important;top:9px !important;right:9px !important;}
  body .industrial-form-modal .industrial-modal-hero-copy{left:14px !important;right:64px !important;bottom:10px !important;}
  body .industrial-form-modal .industrial-modal-hero-copy h2{font-size:1.35rem !important;}
}

/* Monitor industrial: estructura estable, íconos filtrables y tarjetas completas. */
body .industrial-tv-shell{
  min-height:calc(100vh - 122px);
  height:calc(100vh - 122px);
  display:flex;
  flex-direction:column;
  gap:14px;
  overflow:hidden;
  padding:18px;
  color:#fff;
  border:1px solid rgba(125,170,219,.22);
  border-radius:28px;
  background:
    radial-gradient(circle at 8% 0%,rgba(14,165,233,.18),transparent 26%),
    radial-gradient(circle at 92% 12%,rgba(37,99,235,.18),transparent 30%),
    linear-gradient(145deg,#020b18 0%,#071a32 42%,#0a2749 100%);
  box-shadow:0 30px 70px rgba(2,10,25,.30),inset 0 1px 0 rgba(255,255,255,.08);
}
body .industrial-tv-header{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:minmax(0,1.25fr) .55fr auto;
  gap:20px;
  align-items:center;
  padding:20px 22px;
  border-radius:23px;
  border:1px solid rgba(154,194,236,.18);
  background:linear-gradient(115deg,rgba(255,255,255,.10),rgba(255,255,255,.035));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 16px 34px rgba(0,0,0,.13);
}
body .industrial-tv-kicker{
  display:inline-flex;align-items:center;gap:8px;
  padding:.42rem .7rem;border-radius:999px;
  color:#99f6e4;background:rgba(13,148,136,.15);border:1px solid rgba(94,234,212,.28);
  font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em;
}
body .industrial-tv-kicker i,.industrial-tv-live-chip i,.industrial-tv-action-dot{
  width:8px;height:8px;border-radius:999px;background:#34d399;box-shadow:0 0 0 5px rgba(52,211,153,.13),0 0 18px rgba(52,211,153,.75);
}
body .industrial-tv-brand h1{margin:.65rem 0 .25rem;font-size:2.45rem;line-height:1;font-weight:950;letter-spacing:-.045em;color:#fff;}
body .industrial-tv-brand p{margin:0;color:#c6d7e9;font-size:.94rem;}
body .industrial-tv-clockbox{text-align:center;}
body .industrial-tv-clock{font-size:3rem;line-height:1;font-weight:950;letter-spacing:-.04em;color:#fff;font-variant-numeric:tabular-nums;}
body .industrial-tv-date{margin-top:.45rem;color:#d7e6f5;font-weight:750;text-transform:capitalize;}
body .industrial-tv-location{margin-top:.22rem;color:#89a4c0;font-size:.78rem;}
body .industrial-tv-actions{display:flex;flex-direction:column;gap:9px;align-items:stretch;}
body .industrial-tv-action{
  min-width:196px;display:flex;align-items:center;justify-content:center;gap:9px;
  border:1px solid rgba(148,184,224,.24);border-radius:14px;padding:.7rem .9rem;
  color:#d9e9f8;background:rgba(255,255,255,.065);font-weight:850;font-size:.78rem;
  transition:.2s ease;
}
body .industrial-tv-action:hover,body .industrial-tv-action.is-active{color:#fff;background:rgba(37,99,235,.28);border-color:rgba(96,165,250,.55);transform:translateY(-1px);}
body .industrial-tv-action span:not(.industrial-tv-action-dot){width:18px;height:18px;display:block;}
body .industrial-tv-action svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}

body .industrial-tv-summary{
  flex:0 0 auto;
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;
}
body .industrial-tv-summary-card{
  min-height:94px;display:grid;grid-template-columns:54px minmax(0,1fr) 28px;gap:13px;align-items:center;
  padding:14px 15px;border-radius:20px;text-align:left;color:#fff;
  border:1px solid rgba(149,184,222,.18);background:linear-gradient(145deg,rgba(255,255,255,.095),rgba(255,255,255,.045));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06);transition:.22s ease;
}
body .industrial-tv-summary-card:hover,body .industrial-tv-summary-card.is-selected{transform:translateY(-3px);border-color:rgba(96,165,250,.68);background:linear-gradient(145deg,rgba(37,99,235,.32),rgba(14,165,233,.13));box-shadow:0 14px 30px rgba(0,0,0,.16);}
body .industrial-tv-summary-card.is-alert{border-color:rgba(248,113,113,.35);}
body .industrial-tv-summary-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;color:#93c5fd;background:rgba(37,99,235,.18);border:1px solid rgba(96,165,250,.22);}
body .industrial-tv-summary-card.is-alert .industrial-tv-summary-icon{color:#fca5a5;background:rgba(239,68,68,.15);}
body .industrial-tv-summary-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .industrial-tv-summary-copy{min-width:0;}
body .industrial-tv-summary-copy small{display:block;color:#9fb5cd;font-size:.68rem;font-weight:850;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body .industrial-tv-summary-copy strong{display:block;margin:.2rem 0 .08rem;font-size:1.8rem;line-height:1;font-weight:950;color:#fff;}
body .industrial-tv-summary-copy em{display:block;color:#91a8c1;font-size:.68rem;font-style:normal;}
body .industrial-tv-summary-arrow{width:26px;height:26px;display:grid;place-items:center;border-radius:999px;background:rgba(255,255,255,.08);color:#93c5fd;font-weight:900;}

body .industrial-tv-priority-bar{
  flex:0 0 auto;display:grid;grid-template-columns:auto 1fr auto;gap:18px;align-items:center;
  padding:10px 14px;border-radius:17px;border:1px solid rgba(148,184,224,.14);background:rgba(1,9,21,.34);
}
body .industrial-tv-priority-label{display:block;color:#7f9bb7;font-size:.62rem;font-weight:850;text-transform:uppercase;letter-spacing:.07em;}
body .industrial-tv-priority-bar>div>strong{color:#e2edf8;font-size:.8rem;}
body .industrial-tv-priority-filters{display:flex;justify-content:center;gap:8px;}
body .industrial-tv-priority-filters button{
  display:flex;align-items:center;gap:7px;padding:.48rem .75rem;border-radius:999px;
  color:#c9daea;background:rgba(255,255,255,.055);border:1px solid rgba(148,184,224,.18);font-size:.72rem;font-weight:850;
}
body .industrial-tv-priority-filters button:hover,body .industrial-tv-priority-filters button.is-selected{color:#fff;background:rgba(37,99,235,.28);border-color:#60a5fa;}
body .industrial-tv-priority-filters button span{width:17px;height:17px;display:block;}
body .industrial-tv-priority-filters svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .industrial-tv-priority-filters b{min-width:20px;text-align:center;padding:.14rem .36rem;border-radius:999px;background:rgba(255,255,255,.10);}
body .industrial-tv-visible-count{color:#9eb4cb;font-size:.76rem;font-weight:750;}
body .industrial-tv-visible-count span{display:inline-grid;place-items:center;min-width:27px;height:27px;margin-right:6px;border-radius:999px;color:#fff;background:#2563eb;font-weight:900;}

body .industrial-tv-board{
  flex:1 1 auto;min-height:0;display:flex;flex-direction:column;
  padding:15px;border-radius:23px;color:#12233a;background:linear-gradient(180deg,#f6f9fd 0%,#edf3f9 100%);
  border:1px solid rgba(255,255,255,.72);box-shadow:0 20px 44px rgba(0,0,0,.18);
}
body .industrial-tv-board-head{flex:0 0 auto;display:flex;justify-content:space-between;align-items:center;padding:2px 3px 12px;}
body .industrial-tv-board-head span{color:#7389a0;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;}
body .industrial-tv-board-head h2{margin:.18rem 0 0;font-size:1.42rem;font-weight:950;color:#11233b;letter-spacing:-.025em;}
body .industrial-tv-live-chip{display:flex;align-items:center;gap:9px;padding:.52rem .75rem;border-radius:999px;color:#087443;background:#e8fff3;border:1px solid #c8f4dc;font-size:.72rem;font-weight:900;}
body .industrial-tv-live-chip i{width:7px;height:7px;box-shadow:0 0 0 4px rgba(52,211,153,.13);}
body .industrial-tv-scroll{
  flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:max-content;align-content:start;gap:14px;
  padding:2px 7px 8px 2px;scrollbar-width:thin;scrollbar-color:#9db2c8 transparent;overscroll-behavior:contain;
}
body .industrial-tv-scroll::-webkit-scrollbar{width:8px;}
body .industrial-tv-scroll::-webkit-scrollbar-thumb{background:#a9bbce;border-radius:999px;}
body .industrial-task-card{
  min-height:278px;display:grid;grid-template-columns:6px minmax(0,1fr) 152px;gap:0;
  overflow:hidden;position:relative;text-decoration:none;color:#14233a;
  border:1px solid #d2dfec;border-radius:21px;background:linear-gradient(145deg,#ffffff 0%,#f8fbfe 100%);
  box-shadow:0 13px 30px rgba(15,23,42,.085);transition:transform .22s cubic-bezier(.16,1,.3,1),box-shadow .22s ease,border-color .22s ease;
}
body .industrial-task-card:hover{transform:translateY(-4px);border-color:#93b8e8;box-shadow:0 22px 44px rgba(15,23,42,.16);color:#14233a;}
body .industrial-task-card:focus-visible{outline:4px solid rgba(37,99,235,.28);outline-offset:2px;}
body .industrial-task-card[hidden]{display:none !important;}
body .industrial-task-accent{background:linear-gradient(180deg,#2563eb,#22d3ee);}
body .industrial-task-card.priority-card-alta .industrial-task-accent{background:linear-gradient(180deg,#ef4444,#fb7185);}
body .industrial-task-card.priority-card-media .industrial-task-accent{background:linear-gradient(180deg,#f59e0b,#fbbf24);}
body .industrial-task-card.priority-card-baja .industrial-task-accent{background:linear-gradient(180deg,#10b981,#5eead4);}
body .industrial-task-content{min-width:0;padding:16px 17px;}
body .industrial-task-topline{display:flex;align-items:center;gap:7px;flex-wrap:wrap;}
body .industrial-task-code{padding:.35rem .62rem;border-radius:999px;color:#1d5dc9;background:#eaf3ff;border:1px solid #c9ddfb;font-size:.72rem;font-weight:950;letter-spacing:.02em;}
body .industrial-task-priority{padding:.34rem .6rem;border-radius:999px;color:#8b5a00;background:#fff7e3;border:1px solid #f6d893;font-size:.68rem;font-weight:900;}
body .priority-card-alta .industrial-task-priority{color:#c92828;background:#fff0f0;border-color:#ffcaca;}
body .priority-card-baja .industrial-task-priority{color:#087a50;background:#eafff5;border-color:#bfead7;}
body .industrial-task-late{padding:.34rem .6rem;border-radius:999px;color:#fff;background:#dc2626;font-size:.66rem;font-weight:900;}
body .industrial-task-title-row{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;align-items:start;margin:13px 0 11px;}
body .industrial-task-title-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;color:#2563eb;background:#edf5ff;border:1px solid #d2e4f8;}
body .industrial-task-title-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .industrial-task-title-row h3{margin:0 0 .25rem;font-size:1.18rem;font-weight:950;letter-spacing:-.02em;color:#11233b;}
body .industrial-task-title-row p{margin:0;color:#566e87;font-size:.82rem;line-height:1.43;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
body .industrial-task-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
body .industrial-task-data-grid div{padding:9px 10px;border-radius:12px;background:#f3f7fb;border:1px solid #e0e8f1;}
body .industrial-task-data-grid span{display:block;color:#7890a7;font-size:.59rem;font-weight:900;text-transform:uppercase;letter-spacing:.045em;}
body .industrial-task-data-grid strong{display:block;margin-top:.2rem;color:#1e3048;font-size:.76rem;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body .industrial-task-data-grid strong.is-unassigned{color:#c2410c;}
body .industrial-task-data-grid strong.is-overdue-text{color:#dc2626;}
body .industrial-task-footer{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:10px;}
body .industrial-task-footer span{padding:.27rem .5rem;border-radius:999px;color:#245eaa;background:#eef5ff;border:1px solid #d3e4f7;font-size:.61rem;font-weight:850;}
body .industrial-task-footer b{margin-left:auto;color:#2563eb;font-size:.67rem;font-weight:950;}
body .industrial-task-qr{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px 14px;border-left:1px solid #e0e8f1;background:linear-gradient(180deg,#f7faff,#eef4fa);}
body .industrial-task-qr-frame{width:122px;height:122px;padding:7px;border-radius:18px;background:#fff;border:2px solid #cddceb;box-shadow:0 10px 22px rgba(15,23,42,.10);}
body .industrial-task-qr-frame img{width:100%;height:100%;display:block;object-fit:contain;}
body .industrial-task-qr strong{margin-top:8px;color:#18304d;font-size:.74rem;font-weight:950;}
body .industrial-task-qr small{margin-top:.18rem;color:#758aa0;font-size:.65rem;font-weight:800;}
body .industrial-tv-empty{display:grid;place-items:center;text-align:center;min-height:310px;color:#526c84;}
body .industrial-tv-empty span{width:64px;height:64px;display:grid;place-items:center;border-radius:999px;color:#059669;background:#eafff6;font-size:2rem;}
body .industrial-tv-empty strong{font-size:1.4rem;color:#18304d;}
body .industrial-tv-empty p{margin:0;}
body .industrial-tv-shell:fullscreen,body .industrial-tv-shell:-webkit-full-screen{width:100vw;height:100vh;min-height:100vh;max-width:none;margin:0;padding:15px;border-radius:0;overflow:hidden;}
body .industrial-tv-shell:fullscreen .industrial-task-card,body .industrial-tv-shell:-webkit-full-screen .industrial-task-card{min-height:292px;grid-template-columns:6px minmax(0,1fr) 166px;}
body .industrial-tv-shell:fullscreen .industrial-task-qr-frame,body .industrial-tv-shell:-webkit-full-screen .industrial-task-qr-frame{width:138px;height:138px;}
@media(max-width:1350px){
  body .industrial-tv-shell{height:auto;min-height:calc(100vh - 120px);overflow:visible;}
  body .industrial-tv-header{grid-template-columns:1fr auto;}
  body .industrial-tv-actions{grid-column:1/-1;flex-direction:row;justify-content:flex-end;}
  body .industrial-tv-scroll{max-height:720px;min-height:520px;}
}
@media(max-width:1050px){
  body .industrial-tv-summary{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .industrial-tv-priority-bar{grid-template-columns:1fr;}
  body .industrial-tv-priority-filters{justify-content:flex-start;flex-wrap:wrap;}
  body .industrial-tv-scroll{grid-template-columns:1fr;}
}
@media(max-width:760px){
  body .industrial-tv-shell{padding:10px;border-radius:20px;}
  body .industrial-tv-header{grid-template-columns:1fr;}
  body .industrial-tv-brand h1{font-size:1.8rem;}
  body .industrial-tv-clockbox{text-align:left;}
  body .industrial-tv-actions{justify-content:stretch;flex-direction:column;}
  body .industrial-tv-action{width:100%;}
  body .industrial-tv-summary{grid-template-columns:1fr;}
  body .industrial-task-card{grid-template-columns:5px minmax(0,1fr);}
  body .industrial-task-qr{grid-column:2;border-left:0;border-top:1px solid #e0e8f1;flex-direction:row;gap:10px;}
  body .industrial-task-qr-frame{width:94px;height:94px;}
}
body .module-stat-link{
  color:inherit;
  text-decoration:none;
  cursor:pointer;
  transition:transform .22s cubic-bezier(.16,1,.3,1),box-shadow .22s ease,border-color .22s ease;
}
body .module-stat-link:hover{
  color:inherit;
  transform:translateY(-4px);
  border-color:#9bbce4;
  box-shadow:0 18px 38px rgba(15,23,42,.13);
}
body .module-stat-link:focus-visible{outline:3px solid rgba(37,99,235,.3);outline-offset:3px;}

/* =========================================================
   ENTREGA FINAL V3 · MONITOR POR TAREA + FLOTANTES CENTRADOS
   ========================================================= */

/* El encabezado fijo y la barra lateral no deben cubrir los flotantes. */
body .modal-backdrop{
  z-index:2180 !important;
  background:#020817 !important;
}
body .modal-backdrop.show{
  opacity:.76 !important;
  backdrop-filter:blur(7px) saturate(.8);
}
body .industrial-form-modal,
body .industrial-form-modal.industrial-modal-final{
  position:fixed !important;
  inset:0 !important;
  z-index:2200 !important;
  width:100vw !important;
  height:100dvh !important;
  padding:0 !important;
  overflow:hidden !important;
}
body .industrial-form-modal .modal-dialog{
  width:min(960px,calc(100vw - 32px)) !important;
  max-width:none !important;
  min-height:100dvh !important;
  height:100dvh !important;
  margin:0 auto !important;
  padding:18px 0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  transform:none !important;
}
body .industrial-form-modal .modal-dialog.modal-lg{
  width:min(980px,calc(100vw - 32px)) !important;
}
body .industrial-form-modal .modal-dialog.modal-xl{
  width:min(1160px,calc(100vw - 32px)) !important;
}
body .industrial-form-modal .modal-content{
  width:100% !important;
  max-height:calc(100dvh - 36px) !important;
  min-height:0 !important;
  margin:auto !important;
  overflow:hidden !important;
  border-radius:28px !important;
  border:1px solid rgba(183,204,228,.98) !important;
  background:linear-gradient(180deg,#fbfdff 0%,#edf4fb 100%) !important;
  box-shadow:0 48px 120px rgba(1,8,22,.50),0 12px 34px rgba(1,8,22,.24) !important;
  transform-origin:50% 50% !important;
}
body .industrial-form-modal.show .modal-content{
  animation:industrialModalFinalIn .52s cubic-bezier(.16,1,.3,1) both !important;
}
@keyframes industrialModalFinalIn{
  0%{opacity:0;transform:translateY(34px) scale(.94);filter:blur(7px)}
  65%{opacity:1;transform:translateY(-3px) scale(1.006);filter:blur(0)}
  100%{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
}
body .industrial-form-modal .industrial-modal-hero{
  flex:0 0 120px !important;
  min-height:120px !important;
  max-height:120px !important;
  overflow:hidden !important;
  position:relative !important;
}
body .industrial-form-modal .industrial-modal-hero::after{
  content:"";
  position:absolute;
  inset:auto 0 0;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(94,234,212,.65),transparent);
  z-index:3;
}
body .industrial-form-modal .industrial-modal-hero-copy{
  left:26px !important;
  right:100px !important;
  bottom:16px !important;
  z-index:4 !important;
}
body .industrial-form-modal .industrial-modal-hero-copy h2{
  font-size:1.72rem !important;
  line-height:1.02 !important;
  text-shadow:0 4px 18px rgba(0,0,0,.28);
}
body .industrial-form-modal .industrial-modal-body{
  flex:1 1 auto !important;
  min-height:0 !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:16px 18px !important;
  scroll-padding-top:14px;
}
body .industrial-form-modal .industrial-form-section{
  padding:15px 17px !important;
  border-radius:21px !important;
  border:1px solid #d4e1ef !important;
  background:linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.96)) !important;
  box-shadow:0 14px 30px rgba(15,23,42,.055),inset 0 1px 0 #fff !important;
}
body .industrial-form-modal .industrial-modal-footer{
  flex:0 0 auto !important;
  padding:11px 18px !important;
  background:rgba(255,255,255,.97) !important;
  border-top:1px solid #d5e2ef !important;
  box-shadow:0 -12px 28px rgba(15,23,42,.06) !important;
}
body .industrial-form-modal .industrial-modal-close{
  position:absolute !important;
  top:14px !important;
  right:14px !important;
  z-index:100 !important;
  width:54px !important;
  height:54px !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  border-radius:999px !important;
  border:2px solid rgba(255,255,255,.82) !important;
  background:#fff !important;
  background-image:none !important;
  color:#07172c !important;
  box-shadow:0 18px 44px rgba(2,8,23,.40),inset 0 1px 0 #fff !important;
  opacity:1 !important;
  transition:transform .22s cubic-bezier(.16,1,.3,1),box-shadow .22s ease !important;
}
body .industrial-form-modal .industrial-modal-close::before{
  content:none !important;
  display:none !important;
}
body .industrial-form-modal .industrial-modal-close span{
  display:block !important;
  margin-top:-3px;
  color:#07172c !important;
  font:300 2.55rem/1 Arial,sans-serif !important;
  pointer-events:none;
}
body .industrial-form-modal .industrial-modal-close:hover{
  transform:scale(1.08) rotate(4deg) !important;
  box-shadow:0 23px 52px rgba(2,8,23,.48),0 0 0 7px rgba(255,255,255,.12) !important;
}
body .industrial-form-modal .industrial-modal-close:focus-visible{
  outline:4px solid rgba(96,165,250,.48) !important;
  outline-offset:4px !important;
}
@media(max-width:767px){
  body .industrial-form-modal .modal-dialog,
  body .industrial-form-modal .modal-dialog.modal-lg,
  body .industrial-form-modal .modal-dialog.modal-xl{
    width:calc(100vw - 12px) !important;
    padding:6px 0 !important;
  }
  body .industrial-form-modal .modal-content{max-height:calc(100dvh - 12px) !important;border-radius:21px !important;}
  body .industrial-form-modal .industrial-modal-hero{flex-basis:106px !important;min-height:106px !important;max-height:106px !important;}
  body .industrial-form-modal .industrial-modal-close{width:46px !important;height:46px !important;top:9px !important;right:9px !important;}
  body .industrial-form-modal .industrial-modal-close span{font-size:2.15rem !important;}
  body .industrial-form-modal .industrial-modal-hero-copy{left:15px !important;right:68px !important;bottom:10px !important;}
  body .industrial-form-modal .industrial-modal-hero-copy h2{font-size:1.36rem !important;}
  body .industrial-form-modal .industrial-modal-body{padding:10px !important;}
}

/* Monitor industrial: una tarea por pantalla y avance automático por prioridad. */
body .industrial-tv-shell-v3{
  min-height:calc(100vh - 112px) !important;
  height:calc(100vh - 112px) !important;
  gap:12px !important;
  padding:16px !important;
  background:
    linear-gradient(90deg,rgba(34,211,238,.035) 1px,transparent 1px),
    linear-gradient(rgba(34,211,238,.035) 1px,transparent 1px),
    radial-gradient(circle at 8% 0%,rgba(14,165,233,.22),transparent 27%),
    radial-gradient(circle at 92% 12%,rgba(37,99,235,.22),transparent 32%),
    linear-gradient(145deg,#010812 0%,#06172d 44%,#09294d 100%) !important;
  background-size:34px 34px,34px 34px,auto,auto,auto !important;
  border-radius:30px !important;
  border:1px solid rgba(111,178,232,.30) !important;
  box-shadow:0 34px 78px rgba(2,10,25,.36),inset 0 1px 0 rgba(255,255,255,.09) !important;
}
body .industrial-tv-shell-v3 .industrial-tv-header{
  padding:17px 21px !important;
  background:linear-gradient(115deg,rgba(255,255,255,.115),rgba(255,255,255,.035)) !important;
  border-color:rgba(135,196,244,.24) !important;
}
body .industrial-tv-shell-v3 .industrial-tv-brand h1{font-size:2.25rem !important;}
body .industrial-tv-shell-v3 .industrial-tv-brand p{font-size:.9rem !important;}
body .industrial-tv-shell-v3 .industrial-tv-summary-card{min-height:86px !important;}
body .industrial-tv-carousel-board{padding:13px 15px 15px !important;}
body .industrial-tv-board-head{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto auto !important;
  gap:14px !important;
}
body .industrial-tv-board-navigation{
  display:flex;
  align-items:center;
  gap:8px;
}
body .industrial-tv-board-navigation button{
  width:36px;
  height:36px;
  display:grid;
  place-items:center;
  border-radius:12px;
  border:1px solid #c9d9ea;
  background:#fff;
  color:#2563eb;
  box-shadow:0 8px 18px rgba(15,23,42,.07);
  transition:.2s ease;
}
body .industrial-tv-board-navigation button:hover{transform:translateY(-2px);background:#eff6ff;border-color:#8db6ec;}
body .industrial-tv-board-navigation svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;}
body .industrial-tv-task-counter{
  min-width:68px;
  height:36px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:0 10px;
  border-radius:12px;
  color:#4f6680;
  background:#edf4fb;
  border:1px solid #d4e2f0;
  font-weight:850;
}
body .industrial-tv-task-counter strong{font-size:1rem;color:#135fc9;}
body .industrial-tv-progress-track{
  flex:0 0 auto;
  height:4px;
  margin:0 2px 10px;
  overflow:hidden;
  border-radius:999px;
  background:#dce7f2;
}
body .industrial-tv-progress-track span{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,#2563eb,#22d3ee,#34d399);
  box-shadow:0 0 16px rgba(37,99,235,.45);
  transition:width .55s cubic-bezier(.16,1,.3,1);
}
body .industrial-tv-task-carousel{
  position:relative !important;
  display:block !important;
  grid-template-columns:none !important;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  scroll-snap-type:y mandatory !important;
  scroll-behavior:smooth !important;
  padding:2px 7px 2px 2px !important;
}
body .industrial-tv-task-carousel .industrial-task-slide{
  width:100% !important;
  margin:0 0 14px !important;
  scroll-snap-align:start !important;
  scroll-snap-stop:always !important;
  grid-template-columns:8px minmax(0,1fr) 224px !important;
  border-radius:24px !important;
  border:1px solid #cbdceb !important;
  background:
    linear-gradient(135deg,rgba(37,99,235,.025),transparent 36%),
    linear-gradient(145deg,#ffffff 0%,#f7fbff 100%) !important;
  box-shadow:0 18px 42px rgba(15,23,42,.11) !important;
  opacity:.78;
  transform:scale(.988);
  transition:opacity .42s ease,transform .42s cubic-bezier(.16,1,.3,1),box-shadow .42s ease,border-color .42s ease !important;
}
body .industrial-tv-task-carousel .industrial-task-slide.is-current-task{
  opacity:1;
  transform:scale(1);
  border-color:#8eb9ee !important;
  box-shadow:0 25px 58px rgba(15,23,42,.18),0 0 0 3px rgba(37,99,235,.065) !important;
}
body .industrial-tv-task-carousel .industrial-task-content{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:22px 24px !important;
}
body .industrial-task-sequence{
  padding:.34rem .62rem;
  border-radius:999px;
  color:#0f766e;
  background:#e8fffb;
  border:1px solid #b8eee5;
  font-size:.66rem;
  font-weight:950;
  letter-spacing:.07em;
}
body .industrial-task-title-row-v3{
  grid-template-columns:54px minmax(0,1fr) !important;
  gap:14px !important;
  margin:16px 0 12px !important;
  align-items:center !important;
}
body .industrial-task-title-row-v3 .industrial-task-title-icon{
  width:54px !important;
  height:54px !important;
  border-radius:17px !important;
  color:#fff !important;
  background:linear-gradient(145deg,#2563eb,#0891b2) !important;
  border:0 !important;
  box-shadow:0 12px 26px rgba(37,99,235,.25);
}
body .industrial-task-title-row-v3 .industrial-task-title-icon svg{width:27px !important;height:27px !important;}
body .industrial-task-title-row-v3 small{
  display:block;
  margin-bottom:2px;
  color:#738aa2;
  font-size:.67rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.065em;
}
body .industrial-task-title-row-v3 h3{
  margin:0 !important;
  color:#0d2038 !important;
  font-size:1.65rem !important;
  line-height:1.08 !important;
  font-weight:950 !important;
  letter-spacing:-.035em !important;
}
body .industrial-task-description-panel{
  position:relative;
  margin-bottom:14px;
  padding:15px 17px 15px 20px;
  overflow:hidden;
  border-radius:17px;
  border:1px solid #d6e4f1;
  background:linear-gradient(100deg,#f3f8fd 0%,#ffffff 100%);
}
body .industrial-task-description-panel::before{
  content:"";
  position:absolute;
  left:0;
  top:0;
  bottom:0;
  width:5px;
  background:linear-gradient(180deg,#2563eb,#22d3ee);
}
body .priority-card-alta .industrial-task-description-panel::before{background:linear-gradient(180deg,#ef4444,#fb7185);}
body .priority-card-media .industrial-task-description-panel::before{background:linear-gradient(180deg,#f59e0b,#fbbf24);}
body .priority-card-baja .industrial-task-description-panel::before{background:linear-gradient(180deg,#10b981,#5eead4);}
body .industrial-task-description-panel>span{
  display:block;
  margin-bottom:5px;
  color:#6d839a;
  font-size:.66rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.065em;
}
body .industrial-task-description-panel p{
  margin:0;
  color:#263d57;
  font-size:1.08rem;
  line-height:1.52;
  font-weight:720;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
}
body .industrial-task-data-grid-v3{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:10px !important;
}
body .industrial-task-data-grid-v3 .industrial-task-data-item{
  min-height:86px;
  position:relative;
  padding:12px 12px 11px 45px !important;
  border-radius:15px !important;
  background:#f2f7fc !important;
  border:1px solid #dce7f1 !important;
}
body .industrial-task-data-grid-v3 .industrial-task-data-icon{
  position:absolute;
  left:12px;
  top:13px;
  width:25px;
  height:25px;
  display:grid;
  place-items:center;
  color:#2563eb;
}
body .industrial-task-data-grid-v3 .industrial-task-data-icon svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .industrial-task-data-grid-v3 span:not(.industrial-task-data-icon){font-size:.62rem !important;}
body .industrial-task-data-grid-v3 strong{
  margin-top:7px !important;
  font-size:.92rem !important;
  line-height:1.2;
  white-space:normal !important;
  overflow:visible !important;
  text-overflow:clip !important;
}
body .industrial-task-assignee-highlight{
  background:linear-gradient(145deg,#e9f5ff,#f7fbff) !important;
  border-color:#b9d8f6 !important;
  box-shadow:inset 0 0 0 1px rgba(37,99,235,.035);
}
body .industrial-task-assignee-highlight strong{
  color:#135fc9 !important;
  font-size:1.05rem !important;
  font-weight:950 !important;
}
body .industrial-task-assignee-highlight strong.is-unassigned{color:#b45309 !important;}
body .industrial-task-data-grid-v3 .is-overdue-box{background:#fff2f2 !important;border-color:#ffcaca !important;}
body .industrial-task-footer-v3{
  margin-top:auto !important;
  padding-top:14px !important;
  display:flex !important;
  justify-content:space-between !important;
  align-items:center !important;
  gap:12px !important;
}
body .industrial-task-footer-v3>div{display:flex;gap:7px;flex-wrap:wrap;}
body .industrial-task-footer-v3 b{
  color:#155fcb !important;
  font-size:.8rem !important;
  white-space:nowrap;
}
body .industrial-task-qr-v3{
  padding:22px 18px !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  border-left:1px solid #d8e4ef !important;
  background:
    linear-gradient(180deg,rgba(37,99,235,.035),rgba(14,165,233,.015)),
    #f5f9fd !important;
}
body .industrial-task-qr-v3 .industrial-task-qr-label{
  margin-bottom:10px;
  color:#6e849b;
  font-size:.64rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.075em;
}
body .industrial-task-qr-v3 .industrial-task-qr-frame{
  width:176px !important;
  height:176px !important;
  padding:10px !important;
  border-radius:24px !important;
  border:2px solid #c7d9eb !important;
  background:#fff !important;
  box-shadow:0 18px 36px rgba(15,23,42,.12) !important;
}
body .industrial-task-qr-v3 strong{margin-top:11px;color:#10253d;font-size:.9rem;font-weight:950;}
body .industrial-task-qr-v3 small{margin-top:2px;color:#58718b;font-size:.75rem;font-weight:850;}
body .industrial-task-qr-v3 em{margin-top:9px;color:#7b8fa4;font-size:.66rem;font-style:normal;text-align:center;line-height:1.35;}
body .industrial-tv-shell-v3:fullscreen,
body .industrial-tv-shell-v3:-webkit-full-screen{
  width:100vw !important;
  height:100vh !important;
  min-height:100vh !important;
  margin:0 !important;
  padding:18px !important;
  border-radius:0 !important;
}
body .industrial-tv-shell-v3:fullscreen .industrial-task-qr-frame,
body .industrial-tv-shell-v3:-webkit-full-screen .industrial-task-qr-frame{width:205px !important;height:205px !important;}
body .industrial-tv-shell-v3:fullscreen .industrial-tv-task-carousel .industrial-task-slide,
body .industrial-tv-shell-v3:-webkit-full-screen .industrial-tv-task-carousel .industrial-task-slide{grid-template-columns:8px minmax(0,1fr) 260px !important;}
@media(max-width:1250px){
  body .industrial-task-data-grid-v3{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  body .industrial-tv-task-carousel .industrial-task-slide{grid-template-columns:7px minmax(0,1fr) 190px !important;}
  body .industrial-task-qr-v3 .industrial-task-qr-frame{width:150px !important;height:150px !important;}
}
@media(max-width:900px){
  body .industrial-tv-shell-v3{height:auto !important;min-height:calc(100vh - 90px) !important;overflow:visible !important;}
  body .industrial-tv-shell-v3 .industrial-tv-header{grid-template-columns:1fr !important;}
  body .industrial-tv-shell-v3 .industrial-tv-summary{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  body .industrial-tv-priority-bar{grid-template-columns:1fr !important;}
  body .industrial-tv-board-head{grid-template-columns:1fr auto !important;}
  body .industrial-tv-live-chip{display:none !important;}
  body .industrial-tv-task-carousel{height:620px !important;}
  body .industrial-tv-task-carousel .industrial-task-slide{grid-template-columns:6px minmax(0,1fr) !important;height:auto !important;min-height:600px !important;}
  body .industrial-task-qr-v3{display:none !important;}
  body .industrial-task-data-grid-v3{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}

/* Tabla OT: lectura priorizada, asignación compacta y acciones ordenadas. */
body .maintenance-table-card .premium-table-wrap{border-radius:20px !important;}
body .maintenance-table-card .premium-data-table{min-width:1480px;}
body .maintenance-order-row{position:relative;background:#fff;}
body .maintenance-order-row>td:first-child{border-left:5px solid #60a5fa;}
body .maintenance-order-row.priority-row-alta>td:first-child{border-left-color:#ef4444;}
body .maintenance-order-row.priority-row-media>td:first-child{border-left-color:#f59e0b;}
body .maintenance-order-row.priority-row-baja>td:first-child{border-left-color:#10b981;}
body .maintenance-order-row.is-late-row{background:linear-gradient(90deg,#fff6f6,#fff) !important;}
body .maintenance-order-row td{padding-top:15px !important;padding-bottom:15px !important;}
body .maintenance-equipment-cell{min-width:230px;}
body .maintenance-equipment-cell>strong{display:block;color:#14253b;font-size:.93rem;}
body .maintenance-row-type{margin-top:3px;color:#526a83;font-size:.74rem;font-weight:800;}
body .maintenance-row-description{
  max-width:260px;
  margin-top:6px;
  color:#73869b;
  font-size:.7rem;
  line-height:1.35;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
body .maintenance-assignment-form,
body .maintenance-status-form{
  min-width:190px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 38px;
  gap:7px;
  align-items:center;
}
body .maintenance-assignment-form .form-control,
body .maintenance-status-form .form-select{
  min-height:42px;
  border-radius:13px !important;
  background:#f7faff;
}
body .maintenance-inline-save{
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  border-radius:12px;
  border:1px solid #bcd2ea;
  background:#fff;
  color:#1763cb;
  font-size:1rem;
  font-weight:950;
  transition:.2s ease;
}
body .maintenance-inline-save:hover{transform:translateY(-2px);background:#eaf3ff;border-color:#7eabe2;}
body .maintenance-status-save{color:#087a50;border-color:#b9dfcf;}
body .maintenance-priority-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:76px;
  padding:.45rem .72rem;
  border-radius:999px;
  font-size:.74rem;
  font-weight:950;
  border:1px solid transparent;
}
body .maintenance-priority-badge.priority-alta{color:#c52c2c;background:#fff0f0;border-color:#ffcaca;}
body .maintenance-priority-badge.priority-media{color:#9a6100;background:#fff7e5;border-color:#f4d391;}
body .maintenance-priority-badge.priority-baja{color:#08764d;background:#ebfff5;border-color:#bde8d5;}
body .maintenance-actions-grid{
  min-width:190px;
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
}
body .maintenance-actions-grid .btn,
body .maintenance-actions-grid form,
body .maintenance-actions-grid form .btn{width:100%;}
body .maintenance-actions-grid .btn{min-height:38px;display:grid;place-items:center;border-radius:12px !important;}

/* Ajuste de ancho final para evitar desplazamientos innecesarios en la tabla OT. */
body .maintenance-table-card .premium-data-table{min-width:1320px !important;}
body .maintenance-assignment-form,body .maintenance-status-form{min-width:158px !important;}
body .maintenance-actions-grid{min-width:166px !important;}


/* =========================================================
   DEFINITIVO V4 · MONITOR BIDIRECCIONAL / OT SIN SCROLL / FLOTA PREMIUM
   ========================================================= */

/* Monitor: una sola tarea perfectamente centrada dentro del visor. */
body .industrial-tv-task-carousel{
  padding:2px 8px 2px 2px !important;
  scroll-padding-top:2px !important;
  scrollbar-gutter:stable;
}
body .industrial-tv-task-carousel .industrial-task-slide{
  margin:0 0 18px 0 !important;
  transform-origin:center center !important;
}
body .industrial-tv-task-carousel .industrial-task-slide.is-current-task{
  display:grid !important;
  align-items:stretch !important;
}
body .industrial-tv-task-carousel .industrial-task-content{
  justify-content:center !important;
}
body .industrial-tv-board-navigation{
  justify-self:center;
  align-items:center;
}
body .industrial-tv-board-head{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) auto minmax(0,1fr) !important;
  gap:14px !important;
  align-items:center !important;
}
body .industrial-tv-live-chip{justify-self:end;}
body .industrial-tv-task-counter{min-width:92px;justify-content:center;}
body .industrial-task-title-row-v3 h3,
body .industrial-task-description-panel p,
body .industrial-task-data-grid-v3 strong{
  text-align:left;
}
body .industrial-task-qr-v3{text-align:center;}
body .industrial-tv-action.is-active{
  background:linear-gradient(145deg,rgba(37,99,235,.48),rgba(14,165,233,.24)) !important;
  border-color:rgba(96,165,250,.72) !important;
}
@media(max-width:900px){
  body .industrial-tv-board-head{grid-template-columns:1fr auto !important;}
  body .industrial-tv-board-navigation{justify-self:end;}
}

/* Órdenes de mantenimiento: tarjetas responsivas, sin barra horizontal. */
body .maintenance-orders-panel{
  padding:24px;
  border:1px solid #d7e3ef;
  border-radius:28px;
  background:
    radial-gradient(circle at top right,rgba(37,99,235,.055),transparent 28%),
    linear-gradient(180deg,#ffffff 0%,#f7faff 100%);
  box-shadow:0 22px 52px rgba(15,23,42,.09);
}
body .maintenance-orders-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  margin-bottom:18px;
  padding:0 4px;
}
body .maintenance-orders-header h2{margin:.2rem 0 0;color:#10243d;font-size:1.45rem;font-weight:950;letter-spacing:-.025em;}
body .maintenance-orders-header p{margin:.35rem 0 0;color:#697f96;font-size:.84rem;}
body .maintenance-order-list{display:grid;gap:14px;}
body .maintenance-order-card{
  position:relative;
  overflow:hidden;
  border:1px solid #d7e3ef;
  border-radius:22px;
  background:#fff;
  box-shadow:0 13px 30px rgba(15,23,42,.065);
  transition:transform .22s cubic-bezier(.16,1,.3,1),box-shadow .22s ease,border-color .22s ease;
}
body .maintenance-order-card:hover{transform:translateY(-3px);border-color:#9fc0e7;box-shadow:0 22px 44px rgba(15,23,42,.12);}
body .maintenance-order-stripe{position:absolute;inset:0 auto 0 0;width:6px;background:linear-gradient(180deg,#60a5fa,#22d3ee);}
body .maintenance-order-card.priority-row-alta .maintenance-order-stripe{background:linear-gradient(180deg,#ef4444,#fb7185);}
body .maintenance-order-card.priority-row-media .maintenance-order-stripe{background:linear-gradient(180deg,#f59e0b,#fbbf24);}
body .maintenance-order-card.priority-row-baja .maintenance-order-stripe{background:linear-gradient(180deg,#10b981,#5eead4);}
body .maintenance-order-card.is-late-row{background:linear-gradient(100deg,#fff6f6 0%,#fff 44%);}
body .maintenance-order-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:16px 18px 13px 24px;
  border-bottom:1px solid #e3ebf3;
  background:linear-gradient(180deg,#fff,#fbfdff);
}
body .maintenance-order-identity{display:flex;align-items:center;gap:14px;min-width:0;}
body .maintenance-order-identity>div{min-width:0;}
body .maintenance-order-identity>div>strong{display:block;color:#10243d;font-size:1rem;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body .maintenance-order-identity>div>small{display:block;margin-top:3px;color:#657c94;font-size:.76rem;font-weight:750;}
body .maintenance-order-badges{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;}
body .maintenance-late-badge{padding:.43rem .72rem;border-radius:999px;color:#fff;background:#dc2626;font-size:.7rem;font-weight:950;}
body .maintenance-order-card-body{
  display:grid;
  grid-template-columns:minmax(260px,1.25fr) minmax(330px,1.45fr) minmax(330px,1.25fr);
  gap:14px;
  padding:16px 18px 16px 24px;
  align-items:stretch;
}
body .maintenance-order-description{
  min-width:0;
  padding:14px 15px;
  border:1px solid #dce7f1;
  border-radius:16px;
  background:linear-gradient(120deg,#f3f8fd,#fff);
}
body .maintenance-order-description span,
body .maintenance-control-block label,
body .maintenance-order-data span{
  display:block;
  color:#72889f;
  font-size:.64rem;
  font-weight:950;
  text-transform:uppercase;
  letter-spacing:.055em;
}
body .maintenance-order-description p{margin:.45rem 0 0;color:#213a56;font-size:.87rem;line-height:1.45;font-weight:680;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
body .maintenance-order-data{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;}
body .maintenance-order-data>div{display:flex;flex-direction:column;justify-content:center;min-height:67px;padding:10px 12px;border:1px solid #dee8f2;border-radius:14px;background:#f6f9fc;text-align:center;}
body .maintenance-order-data strong{display:block;margin-top:5px;color:#17304d;font-size:.8rem;font-weight:900;line-height:1.25;}
body .maintenance-order-controls{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:stretch;}
body .maintenance-control-block{padding:11px;border:1px solid #dce7f1;border-radius:15px;background:#f8fbff;text-align:center;}
body .maintenance-card-form{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:7px;margin-top:7px;}
body .maintenance-card-form .form-control,
body .maintenance-card-form .form-select{min-width:0;min-height:42px;border-radius:12px !important;background:#fff;text-align:center;}
body .maintenance-card-save{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;border:1px solid #b8d1ec;background:#fff;color:#1763cb;font-size:1rem;font-weight:950;}
body .maintenance-card-save:hover{background:#eaf3ff;transform:translateY(-1px);}
body .maintenance-status-save{color:#08794f;border-color:#b7dfce;}
body .maintenance-readonly-value{display:grid;place-items:center;min-height:42px;margin-top:7px;border:1px solid #dce7f1;border-radius:12px;background:#fff;color:#17304d;font-size:.82rem;}
body .maintenance-order-card-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px 14px 24px;border-top:1px solid #e3ebf3;background:#fbfdff;}
body .maintenance-order-meta{display:flex;gap:7px;flex-wrap:wrap;}
body .maintenance-order-meta span{padding:.32rem .55rem;border-radius:999px;color:#386596;background:#edf5ff;border:1px solid #d4e5f7;font-size:.65rem;font-weight:850;}
body .maintenance-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;}
body .maintenance-card-actions form{margin:0;}
body .maintenance-card-actions .btn{min-height:38px;padding:.42rem .72rem;border-radius:12px !important;display:inline-grid;place-items:center;font-size:.75rem;font-weight:900;}
body .maintenance-card-actions .action-delete{min-width:40px;}
@media(max-width:1350px){
  body .maintenance-order-card-body{grid-template-columns:minmax(240px,1fr) minmax(300px,1fr);}
  body .maintenance-order-controls{grid-column:1/-1;}
}
@media(max-width:820px){
  body .maintenance-orders-panel{padding:15px;border-radius:22px;}
  body .maintenance-orders-header,body .maintenance-order-card-head,body .maintenance-order-card-footer{align-items:flex-start;flex-direction:column;}
  body .maintenance-order-card-body{grid-template-columns:1fr;padding-left:20px;}
  body .maintenance-order-controls{grid-template-columns:1fr;}
  body .maintenance-card-actions{justify-content:flex-start;}
}

/* Estado de camiones: tablero de tarjetas por criticidad. */
body .truck-status-heading{align-items:center !important;}
body .truck-status-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px;}
body .truck-status-kpi{min-height:112px;display:flex;align-items:center;gap:14px;padding:17px 18px;border:1px solid #d8e4ef;border-radius:22px;background:linear-gradient(145deg,#fff,#f5f9fd);box-shadow:0 14px 34px rgba(15,23,42,.075);}
body .truck-status-kpi-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;color:#2563eb;background:#edf5ff;border:1px solid #d1e3f8;}
body .truck-status-kpi-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .truck-status-kpi small{display:block;color:#6d8299;font-size:.7rem;font-weight:900;text-transform:uppercase;letter-spacing:.045em;}
body .truck-status-kpi strong{display:block;margin-top:.25rem;color:#10243d;font-size:1.85rem;line-height:1;font-weight:950;}
body .truck-status-kpi-2 .truck-status-kpi-icon{color:#dc2626;background:#fff0f0;border-color:#ffcaca;}
body .truck-status-kpi-3 .truck-status-kpi-icon{color:#b77900;background:#fff7e4;border-color:#f5d899;}
body .truck-status-kpi-4 .truck-status-kpi-icon{color:#087a50;background:#eafff5;border-color:#bce8d5;}
body .truck-status-panel{padding:22px;border:1px solid #d8e4ef;border-radius:28px;background:linear-gradient(180deg,#fff,#f7faff);box-shadow:0 22px 52px rgba(15,23,42,.09);}
body .truck-status-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;}
body .truck-status-panel-head span{color:#6f849a;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em;}
body .truck-status-panel-head h2{margin:.2rem 0 0;color:#10243d;font-size:1.4rem;font-weight:950;}
body .truck-status-order-note{padding:.48rem .75rem;border-radius:999px;color:#47709b;background:#edf5ff;border:1px solid #d3e4f6;font-size:.72rem;font-weight:850;}
body .truck-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
body .truck-status-card{position:relative;overflow:hidden;border:1px solid #d9e5f0;border-radius:23px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.07);transition:.22s ease;}
body .truck-status-card:hover{transform:translateY(-3px);box-shadow:0 22px 44px rgba(15,23,42,.12);}
body .truck-status-card-accent{position:absolute;inset:0 auto 0 0;width:6px;background:linear-gradient(180deg,#10b981,#5eead4);}
body .truck-status-card.result-critical .truck-status-card-accent{background:linear-gradient(180deg,#ef4444,#fb7185);}
body .truck-status-card.result-warning .truck-status-card-accent{background:linear-gradient(180deg,#f59e0b,#fbbf24);}
body .truck-status-card-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:16px 17px 13px 23px;border-bottom:1px solid #e4ecf4;background:linear-gradient(180deg,#fff,#fbfdff);}
body .truck-status-vehicle{display:flex;align-items:center;gap:12px;min-width:0;}
body .truck-status-vehicle-icon{width:47px;height:47px;display:grid;place-items:center;border-radius:15px;color:#2563eb;background:#edf5ff;border:1px solid #d2e3f7;}
body .truck-status-vehicle-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .truck-status-vehicle strong{display:block;color:#10243d;font-size:1.05rem;font-weight:950;}
body .truck-status-vehicle small{display:block;margin-top:2px;color:#71869d;font-size:.7rem;font-weight:800;}
body .truck-result-badge{padding:.45rem .7rem;border-radius:999px;font-size:.7rem;font-weight:950;border:1px solid transparent;white-space:nowrap;}
body .truck-result-badge.is-critical{color:#c62828;background:#fff0f0;border-color:#ffcaca;}
body .truck-result-badge.is-warning{color:#9a6200;background:#fff7e3;border-color:#f4d38f;}
body .truck-result-badge.is-ok{color:#08784e;background:#eafff5;border-color:#bde8d5;}
body .truck-status-card-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:14px 17px 0 23px;}
body .truck-status-card-meta>div{position:relative;min-height:68px;padding:10px 10px 10px 39px;border:1px solid #dfe9f2;border-radius:14px;background:#f6f9fc;}
body .truck-meta-icon{position:absolute;left:10px;top:12px;width:21px;height:21px;color:#2563eb;}
body .truck-meta-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .truck-status-card-meta small{display:block;color:#7a8fa5;font-size:.6rem;font-weight:950;text-transform:uppercase;letter-spacing:.04em;}
body .truck-status-card-meta strong{display:block;margin-top:5px;color:#17304d;font-size:.78rem;font-weight:900;line-height:1.2;}
body .truck-status-faults,body .truck-status-observation{padding:14px 17px 0 23px;}
body .truck-status-section-label{margin-bottom:7px;color:#71869d;font-size:.64rem;font-weight:950;text-transform:uppercase;letter-spacing:.055em;}
body .truck-fault-chip-list{display:flex;gap:6px;flex-wrap:wrap;}
body .truck-fault-chip{padding:.36rem .58rem;border-radius:999px;font-size:.66rem;font-weight:900;}
body .truck-fault-chip.is-mal{color:#b42318;background:#fff0f0;border:1px solid #ffcaca;}
body .truck-fault-chip.is-missing{color:#8c5b00;background:#fff7df;border:1px solid #f4d391;}
body .truck-fault-chip.is-more{color:#486079;background:#eef3f8;border:1px solid #dbe5ef;}
body .truck-no-faults{display:flex;align-items:center;gap:7px;color:#08784e;font-size:.78rem;font-weight:900;}
body .truck-no-faults svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;}
body .truck-no-detail{color:#71869d;font-size:.78rem;font-weight:800;}
body .truck-status-observation p{min-height:56px;margin:0;padding:11px 12px;border:1px solid #e0e9f2;border-radius:14px;background:#f8fafc;color:#344c66;font-size:.78rem;line-height:1.42;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
body .truck-status-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 17px 15px 23px;margin-top:14px;border-top:1px solid #e4ecf4;background:#fbfdff;}
body .truck-status-card-footer>span{color:#7b8ea3;font-size:.68rem;font-weight:800;}
body .truck-status-card-footer .btn{font-size:.74rem;font-weight:900;}
@media(max-width:1100px){body .truck-status-summary{grid-template-columns:repeat(2,minmax(0,1fr));}body .truck-status-grid{grid-template-columns:1fr;}}
@media(max-width:650px){body .truck-status-summary{grid-template-columns:1fr;}body .truck-status-panel{padding:14px;border-radius:22px;}body .truck-status-card-meta{grid-template-columns:1fr;}body .truck-status-card-head,body .truck-status-card-footer,body .truck-status-panel-head{align-items:flex-start;flex-direction:column;}}

/* =========================================================
   V5 · MONITOR QR / PRIORIDAD RÁPIDA / COMUNICACIONES
   ========================================================= */
body .industrial-tv-auto-action{
  min-width:230px !important;
  display:grid !important;
  grid-template-columns:18px minmax(0,1fr) !important;
  align-items:center !important;
  justify-content:center !important;
  gap:11px !important;
  padding:.68rem 1rem !important;
  text-align:center !important;
}
body .industrial-tv-auto-action .industrial-tv-action-dot{
  width:9px !important;
  height:9px !important;
  justify-self:center !important;
  flex:0 0 auto !important;
}
body .industrial-tv-action .industrial-tv-action-copy{
  width:auto !important;
  height:auto !important;
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:1px !important;
  line-height:1.1 !important;
}
body .industrial-tv-action-copy strong{
  display:block;
  color:inherit;
  font-size:.79rem;
  font-weight:950;
  white-space:nowrap;
}
body .industrial-tv-action-copy small{
  display:block;
  color:#9fc2e6;
  font-size:.62rem;
  font-weight:800;
  white-space:nowrap;
  text-transform:uppercase;
  letter-spacing:.055em;
}
body .industrial-task-qr-assignee{
  width:100%;
  margin-top:10px;
  padding:9px 8px;
  border:1px solid #cfe0ef;
  border-radius:13px;
  background:linear-gradient(145deg,#eaf5ff,#fff);
  text-align:center;
}
body .industrial-task-qr-assignee span{
  display:block;
  color:#6b829a;
  font-size:.59rem;
  font-weight:900;
  text-transform:uppercase;
  letter-spacing:.07em;
}
body .industrial-task-qr-assignee b{
  display:block;
  margin-top:3px;
  color:#155fc6;
  font-size:.79rem;
  font-weight:950;
  line-height:1.2;
  word-break:break-word;
}

/* Mantenimiento: filtro superior y asignación inmediata de prioridad. */
body .maintenance-priority-toolbar{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 17px;
  padding:10px;
  border:1px solid #d9e5ef;
  border-radius:17px;
  background:linear-gradient(180deg,#f8fbff,#f1f6fb);
}
body .maintenance-priority-filter{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  padding:.48rem .82rem;
  border:1px solid #cfdeeb;
  border-radius:999px;
  color:#526b85;
  background:#fff;
  font-size:.72rem;
  font-weight:900;
  transition:.18s ease;
}
body .maintenance-priority-filter span{width:8px;height:8px;border-radius:50%;background:#8aa1b8;}
body .maintenance-priority-filter.is-high span{background:#ef4444;}
body .maintenance-priority-filter.is-medium span{background:#f59e0b;}
body .maintenance-priority-filter.is-low span{background:#10b981;}
body .maintenance-priority-filter:hover,
body .maintenance-priority-filter.is-selected{transform:translateY(-1px);border-color:#7ba9e5;background:#eaf3ff;color:#145dc5;box-shadow:0 8px 18px rgba(37,99,235,.09);}
body .maintenance-order-controls{grid-template-columns:.78fr 1.15fr 1.15fr !important;}
body .maintenance-priority-buttons{
  display:grid;
  grid-template-columns:repeat(3,34px);
  justify-content:center;
  gap:7px;
  margin-top:9px;
}
body .priority-mini{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:11px;
  border:1px solid #d5e2ee;
  background:#fff;
  color:#637b93;
  font-size:.73rem;
  font-weight:950;
  transition:.16s ease;
}
body .priority-mini:hover{transform:translateY(-2px);box-shadow:0 7px 16px rgba(15,23,42,.09);}
body .priority-mini-high.is-active,body .priority-mini-high:hover{color:#c72f2f;border-color:#ffbcbc;background:#fff0f0;}
body .priority-mini-medium.is-active,body .priority-mini-medium:hover{color:#a76500;border-color:#f5d99a;background:#fff7e7;}
body .priority-mini-low.is-active,body .priority-mini-low:hover{color:#08794f;border-color:#b9e4cf;background:#eaf9f1;}
@media(max-width:1350px){body .maintenance-order-controls{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}}
@media(max-width:820px){body .maintenance-order-controls{grid-template-columns:1fr !important;}}

/* Centro de comunicaciones operativas. */
body .communications-heading{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
  flex-wrap:wrap;
  margin:2px 0 20px;
  padding:26px 28px;
  border:1px solid #cfddeb;
  border-radius:28px;
  background:
    linear-gradient(90deg,rgba(34,211,238,.035) 1px,transparent 1px),
    linear-gradient(rgba(34,211,238,.035) 1px,transparent 1px),
    radial-gradient(circle at top right,rgba(37,99,235,.18),transparent 34%),
    linear-gradient(135deg,#07182f 0%,#0b2b50 100%);
  background-size:28px 28px,28px 28px,auto,auto;
  box-shadow:0 24px 55px rgba(8,25,50,.20);
}
body .communications-heading h1{margin:.45rem 0 .3rem;color:#fff;font-size:2.25rem;font-weight:950;letter-spacing:-.04em;}
body .communications-heading p{margin:0;color:#bfd2e5;max-width:760px;}
body .communications-heading .eyebrow-label{color:#99f6e4;background:rgba(13,148,136,.16);border-color:rgba(94,234,212,.27);}
body .communications-compose-button{min-height:50px;padding:.75rem 1.05rem;display:inline-flex;align-items:center;gap:9px;}
body .communications-compose-button svg,body .communications-modal .btn svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
body .communications-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:17px;}
body .communications-stat-card{min-height:112px;display:flex;align-items:center;gap:14px;padding:17px 18px;border:1px solid #d7e4ef;border-radius:22px;background:linear-gradient(145deg,#fff,#f5f9fd);box-shadow:0 14px 32px rgba(15,23,42,.075);}
body .communications-stat-icon{width:56px;height:56px;display:grid;place-items:center;border-radius:17px;color:#2563eb;background:#eaf3ff;border:1px solid #cfe0f5;}
body .communications-stat-icon svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .communications-stat-card small{display:block;color:#6a8097;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.055em;}
body .communications-stat-card strong{display:block;margin-top:4px;color:#10243d;font-size:1.75rem;font-weight:950;}
body .comm-stat-2 .communications-stat-icon{color:#0f766e;background:#e8fffb;border-color:#bceee5;}
body .comm-stat-3 .communications-stat-icon{color:#c2413c;background:#fff0f0;border-color:#ffd0d0;}
body .comm-stat-4 .communications-stat-icon{color:#7c3aed;background:#f4efff;border-color:#ddd0ff;}
body .communications-filter-panel{margin-bottom:17px;padding:14px;border:1px solid #d6e3ee;border-radius:21px;background:linear-gradient(180deg,#fff,#f7faff);box-shadow:0 12px 28px rgba(15,23,42,.06);}
body .communications-scope-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:11px;}
body .communications-scope-tabs a{display:inline-flex;align-items:center;gap:7px;padding:.5rem .8rem;border:1px solid #d4e1ed;border-radius:999px;background:#fff;color:#5b7189;font-size:.73rem;font-weight:900;}
body .communications-scope-tabs a b{min-width:22px;height:22px;display:grid;place-items:center;border-radius:999px;background:#edf4fb;color:#1f63c7;font-size:.65rem;}
body .communications-scope-tabs a.is-active{color:#fff;border-color:#2f6fdd;background:linear-gradient(180deg,#3378ed,#2059cc);box-shadow:0 8px 18px rgba(37,99,235,.18);}
body .communications-scope-tabs a.is-active b{background:rgba(255,255,255,.18);color:#fff;}
body .communications-filter-form{display:grid;grid-template-columns:minmax(260px,1.6fr) minmax(150px,.65fr) minmax(150px,.65fr) auto auto;gap:9px;align-items:center;}
body .communications-search-box{min-height:46px;display:grid;grid-template-columns:38px minmax(0,1fr);align-items:center;border:1px solid #cddcea;border-radius:14px;background:#fff;overflow:hidden;}
body .communications-search-box span{width:38px;height:100%;display:grid;place-items:center;color:#52749a;}
body .communications-search-box svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .communications-search-box input{width:100%;height:44px;border:0;outline:0;background:transparent;color:#17304d;}
body .communications-board{padding:22px;border:1px solid #d4e1ec;border-radius:28px;background:linear-gradient(180deg,#f8fbff,#f1f6fb);box-shadow:0 22px 50px rgba(15,23,42,.09);}
body .communications-board-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:15px;padding:0 4px;}
body .communications-board-head span{color:#71869d;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em;}
body .communications-board-head h2{margin:.25rem 0 0;color:#10243d;font-size:1.45rem;font-weight:950;}
body .communications-board-count{display:flex;align-items:center;gap:8px;color:#667d95;font-size:.78rem;font-weight:800;}
body .communications-board-count strong{width:34px;height:34px;display:grid;place-items:center;border-radius:999px;background:#e6f0ff;color:#1e62ca;}
body .communications-message-list{display:grid;gap:13px;}
body .communications-message-card{position:relative;overflow:hidden;border:1px solid #d5e2ed;border-radius:22px;background:#fff;box-shadow:0 12px 28px rgba(15,23,42,.065);transition:.2s ease;}
body .communications-message-card:hover{transform:translateY(-2px);border-color:#9dbfe6;box-shadow:0 20px 40px rgba(15,23,42,.11);}
body .communications-message-card.is-focused{border-color:#4d8ee9;box-shadow:0 0 0 4px rgba(37,99,235,.10),0 22px 44px rgba(15,23,42,.12);animation:communicationFocusPulse 1.4s ease 1;}
@keyframes communicationFocusPulse{0%{transform:scale(.992)}50%{transform:scale(1.004)}100%{transform:scale(1)}}
body .communications-message-accent{position:absolute;left:0;top:0;bottom:0;width:6px;background:linear-gradient(180deg,#60a5fa,#22d3ee);}
body .communications-message-card.priority-alta .communications-message-accent{background:linear-gradient(180deg,#f97316,#fb7185);}
body .communications-message-card.priority-urgente .communications-message-accent{background:linear-gradient(180deg,#dc2626,#ef4444);}
body .communications-message-card.priority-baja .communications-message-accent{background:linear-gradient(180deg,#10b981,#5eead4);}
body .communications-message-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 18px 13px 22px;border-bottom:1px solid #e3ebf2;background:linear-gradient(180deg,#fff,#fbfdff);}
body .communications-message-route{display:flex;align-items:center;gap:14px;min-width:0;}
body .communications-message-route>div{min-width:0;}
body .communications-message-route small{display:block;color:#778ba0;font-size:.6rem;font-weight:900;text-transform:uppercase;letter-spacing:.065em;}
body .communications-message-route strong{display:block;margin-top:2px;color:#17304d;font-size:.84rem;font-weight:950;}
body .communications-message-route em{display:block;margin-top:2px;color:#7e91a5;font-size:.67rem;font-style:normal;}
body .communications-message-code{padding:.42rem .66rem;border-radius:999px;background:#eaf3ff;border:1px solid #cfe0f5;color:#1d61c9;font-size:.68rem;font-weight:950;}
body .communications-route-arrow{color:#6d87a1;font-size:1.15rem;font-weight:900;}
body .communications-message-badges{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end;}
body .communications-priority-badge,body .communications-status-badge{padding:.4rem .66rem;border-radius:999px;font-size:.66rem;font-weight:950;border:1px solid #d5e2ed;background:#f3f7fb;color:#526a83;}
body .communications-priority-badge.priority-urgente{color:#b42318;background:#fff0f0;border-color:#ffc7c7;}
body .communications-priority-badge.priority-alta{color:#b45309;background:#fff7e8;border-color:#f5d99c;}
body .communications-priority-badge.priority-baja{color:#08794f;background:#eaf9f1;border-color:#bee3d0;}
body .communications-status-badge.status-pendiente{color:#155fc6;background:#eaf3ff;border-color:#c7dcf6;}
body .communications-status-badge.status-respondido{color:#7c3aed;background:#f5f0ff;border-color:#ded1ff;}
body .communications-status-badge.status-cerrado{color:#08794f;background:#eaf9f1;border-color:#bee3d0;}
body .communications-message-body{display:grid;grid-template-columns:52px minmax(0,1fr);gap:14px;padding:17px 18px 17px 22px;}
body .communications-message-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;color:#2563eb;background:#edf5ff;border:1px solid #d1e2f6;}
body .communications-message-icon svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .communications-message-copy small{display:block;color:#74899f;font-size:.61rem;font-weight:900;text-transform:uppercase;letter-spacing:.065em;}
body .communications-message-copy h3{margin:.25rem 0 .45rem;color:#11263f;font-size:1.07rem;font-weight:950;}
body .communications-message-copy p{margin:0;color:#4d647d;font-size:.85rem;line-height:1.58;white-space:pre-wrap;}
body .communications-reference{display:inline-flex;align-items:center;gap:7px;margin-top:11px;padding:.4rem .65rem;border-radius:11px;background:#f1f6fb;border:1px solid #dbe6f0;}
body .communications-reference span{color:#74899f;font-size:.6rem;font-weight:900;text-transform:uppercase;}
body .communications-reference strong{color:#2e5f96;font-size:.7rem;}
body .communications-message-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 18px 14px 22px;border-top:1px solid #e3ebf2;background:#fbfdff;}
body .communications-status-form{display:flex;align-items:center;gap:7px;}
body .communications-status-form label{color:#71869c;font-size:.64rem;font-weight:900;text-transform:uppercase;}
body .communications-status-form .form-select{min-width:130px;}
body .communications-message-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;}
body .communications-message-actions form{margin:0;}
body .communications-message-actions svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;}
body .communications-empty{min-height:280px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#6c8197;}
body .communications-empty>span{width:64px;height:64px;display:grid;place-items:center;border-radius:20px;background:#eaf3ff;color:#2563eb;}
body .communications-empty svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.8;}
body .communications-empty strong{margin-top:12px;color:#17304d;font-size:1.05rem;}
body .communications-empty p{margin:.4rem 0 0;}
body .communications-modal-hero{min-height:128px;}
body .communications-modal .industrial-modal-footer .btn svg{vertical-align:middle;}
@media(max-width:1100px){
  body .communications-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .communications-filter-form{grid-template-columns:1fr 1fr;}
  body .communications-search-box{grid-column:1/-1;}
}
@media(max-width:760px){
  body .communications-heading{padding:20px;border-radius:22px;}
  body .communications-heading h1{font-size:1.7rem;}
  body .communications-stat-grid{grid-template-columns:1fr;}
  body .communications-filter-form{grid-template-columns:1fr;}
  body .communications-search-box{grid-column:auto;}
  body .communications-board{padding:13px;border-radius:22px;}
  body .communications-message-head,body .communications-message-footer{align-items:flex-start;flex-direction:column;}
  body .communications-message-route{align-items:flex-start;flex-wrap:wrap;}
  body .communications-message-body{grid-template-columns:1fr;}
  body .communications-status-form{width:100%;flex-wrap:wrap;}
}

/* Aviso de nuevo comunicado: aspecto industrial y profesional. */
body .industrial-message-toast{
  width:min(430px,calc(100vw - 28px));
  max-width:430px !important;
  padding:19px 20px 18px !important;
  overflow:hidden;
  border:1px solid rgba(111,178,232,.42) !important;
  border-radius:24px !important;
  color:#fff !important;
  background:
    linear-gradient(90deg,rgba(34,211,238,.045) 1px,transparent 1px),
    linear-gradient(rgba(34,211,238,.045) 1px,transparent 1px),
    radial-gradient(circle at top right,rgba(37,99,235,.30),transparent 35%),
    linear-gradient(145deg,#06152a,#0c315a) !important;
  background-size:24px 24px,24px 24px,auto,auto !important;
  box-shadow:0 26px 65px rgba(2,10,25,.38) !important;
  animation:industrialToastIn .55s cubic-bezier(.16,1,.3,1);
}
@keyframes industrialToastIn{from{opacity:0;transform:translate3d(0,22px,0) scale(.96)}to{opacity:1;transform:none}}
body .industrial-message-toast-kicker{display:flex;align-items:center;gap:9px;color:#9ef6e6;font-size:.66rem;font-weight:950;text-transform:uppercase;letter-spacing:.085em;}
body .industrial-message-toast-kicker i{width:9px;height:9px;border-radius:50%;background:#34d399;box-shadow:0 0 0 5px rgba(52,211,153,.15),0 0 16px rgba(52,211,153,.65);}
body .industrial-message-toast-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:13px;}
body .industrial-message-toast-meta span{padding:.36rem .58rem;border-radius:999px;border:1px solid rgba(176,205,234,.24);background:rgba(255,255,255,.08);color:#dcecff;font-size:.63rem;font-weight:900;}
body .industrial-message-toast-meta .priority-urgente{color:#ffd4d4;border-color:rgba(248,113,113,.45);background:rgba(220,38,38,.20);}
body .industrial-message-toast-meta .priority-alta{color:#ffe0aa;border-color:rgba(251,191,36,.40);background:rgba(217,119,6,.18);}
body .industrial-message-toast-from{margin-top:13px;color:#8fb3d8;font-size:.72rem;font-weight:850;text-transform:uppercase;letter-spacing:.055em;}
body .industrial-message-toast .message-notification-title{margin:.3rem 34px .35rem 0;color:#fff !important;font-size:1.08rem;font-weight:950;line-height:1.3;}
body .industrial-message-toast .message-notification-text{margin:0 0 .55rem;color:#c7d9eb !important;font-size:.82rem;line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
body .industrial-message-toast-time{color:#7f9eba;font-size:.67rem;}
body .industrial-message-toast .message-notification-link{margin-top:12px;background:linear-gradient(180deg,#3378ed,#2059cc);box-shadow:0 10px 22px rgba(37,99,235,.23);}
body .industrial-message-toast .message-notification-close{top:12px;right:12px;color:#fff;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.13);}


/* =========================================================
   V6 CORRECCIÓN REAL · MONITOR / PRIORIDADES / COMUNICACIONES
   ========================================================= */
body .industrial-tv-actions{
  display:grid !important;
  grid-template-columns:1fr !important;
  gap:10px !important;
  align-content:center !important;
  justify-items:stretch !important;
  min-width:220px !important;
}
body .industrial-tv-action{
  min-height:62px !important;
  width:100% !important;
  padding:10px 16px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:12px !important;
  text-align:center !important;
  line-height:1.15 !important;
  white-space:normal !important;
}
body .industrial-tv-auto-action .industrial-tv-action-dot{
  flex:0 0 auto !important;
  width:12px !important;
  height:12px !important;
  margin:0 !important;
}
body .industrial-tv-action-copy{
  min-width:0 !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:3px !important;
  text-align:center !important;
}
body .industrial-tv-action-copy strong{
  display:block !important;
  margin:0 !important;
  color:#fff !important;
  font-size:.94rem !important;
  font-weight:950 !important;
  white-space:nowrap !important;
}
body .industrial-tv-action-copy small{
  display:block !important;
  margin:0 !important;
  color:#c9dcf3 !important;
  font-size:.64rem !important;
  font-weight:800 !important;
  white-space:nowrap !important;
}
body .industrial-tv-fullscreen span{
  width:22px !important;
  height:22px !important;
  display:grid !important;
  place-items:center !important;
  flex:0 0 auto !important;
}
body .industrial-tv-fullscreen svg{width:20px !important;height:20px !important;}
body .industrial-task-qr-assignee{
  width:100% !important;
  margin-top:12px !important;
  padding:10px 9px !important;
  border:1px solid #cfe0f2 !important;
  border-radius:14px !important;
  background:linear-gradient(180deg,#fff,#edf6ff) !important;
  text-align:center !important;
}
body .industrial-task-qr-assignee span{
  display:block !important;
  color:#7389a1 !important;
  font-size:.6rem !important;
  font-weight:950 !important;
  letter-spacing:.06em !important;
  text-transform:uppercase !important;
}
body .industrial-task-qr-assignee b{
  display:block !important;
  margin-top:5px !important;
  color:#175fc5 !important;
  font-size:.86rem !important;
  font-weight:950 !important;
  line-height:1.25 !important;
  overflow-wrap:anywhere !important;
}
body .maintenance-priority-toolbar{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:9px !important;
  flex-wrap:wrap !important;
  margin:0 auto 18px !important;
  padding:10px !important;
  border:1px solid #d7e4f0 !important;
  border-radius:18px !important;
  background:#f4f8fc !important;
}
body .maintenance-priority-filter{
  min-width:112px !important;
  justify-content:center !important;
  text-align:center !important;
}
body .maintenance-priority-buttons{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:7px !important;
  margin-top:8px !important;
}
body .priority-mini{
  min-width:0 !important;
  min-height:48px !important;
  padding:5px 6px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  gap:5px !important;
  border-radius:13px !important;
  border:1px solid #d4e1ed !important;
  background:#fff !important;
  box-shadow:0 5px 12px rgba(15,23,42,.055) !important;
  transition:.18s ease !important;
}
body .priority-mini span{font-size:.9rem !important;font-weight:950 !important;}
body .priority-mini small{font-size:.57rem !important;font-weight:950 !important;text-transform:uppercase !important;}
body .priority-mini-high{color:#c62828 !important;background:#fff7f7 !important;border-color:#ffc8c8 !important;}
body .priority-mini-medium{color:#9a6100 !important;background:#fffaf0 !important;border-color:#f2d38d !important;}
body .priority-mini-low{color:#08784e !important;background:#f0fff7 !important;border-color:#bce6d2 !important;}
body .priority-mini.is-active{transform:translateY(-2px) !important;box-shadow:0 9px 18px rgba(15,23,42,.13) !important;outline:3px solid rgba(37,99,235,.12) !important;}
body .communications-heading{
  background:
    linear-gradient(90deg,rgba(34,211,238,.055) 1px,transparent 1px),
    linear-gradient(rgba(34,211,238,.055) 1px,transparent 1px),
    linear-gradient(135deg,#06182f,#0e3a66) !important;
  background-size:28px 28px,28px 28px,auto !important;
  color:#fff !important;
}
body .communications-heading h1{color:#fff !important;}
body .communications-heading p{color:#c8d9eb !important;}
body .communications-heading .eyebrow-label{color:#9ef6e6 !important;background:rgba(13,148,136,.18) !important;border-color:rgba(94,234,212,.34) !important;}
body .communications-message-card.status-pendiente{
  box-shadow:0 0 0 3px rgba(37,99,235,.06),0 16px 34px rgba(15,23,42,.09) !important;
}
body .communications-message-card.status-pendiente .communications-message-head{
  background:linear-gradient(90deg,#f1f7ff,#fff) !important;
}
body .industrial-message-toast:not(.d-none){
  animation:industrialToastIn .55s cubic-bezier(.16,1,.3,1), industrialToastGlow 2.2s ease-in-out 2 !important;
}
@keyframes industrialToastGlow{0%,100%{box-shadow:0 26px 65px rgba(2,10,25,.38)}50%{box-shadow:0 26px 70px rgba(2,10,25,.42),0 0 0 5px rgba(34,211,238,.12)}}
@media(max-width:1050px){
  body .industrial-tv-actions{min-width:180px !important;}
  body .industrial-tv-action-copy strong,body .industrial-tv-action-copy small{white-space:normal !important;}
}

/* =========================================================
   V7 · CONTROL PREOPERACIONAL / OT / MENSAJERÍA CORREGIDA
   ========================================================= */

/* Control preoperacional principal */
body .fleet-inspection-heading{align-items:center !important;}
body .fleet-inspection-hero{
  display:grid;
  grid-template-columns:minmax(0,1.05fr) minmax(380px,.95fr);
  overflow:hidden;
  min-height:330px;
  border:1px solid #cad9e8;
  border-radius:30px;
  background:
    linear-gradient(90deg,rgba(34,211,238,.04) 1px,transparent 1px),
    linear-gradient(rgba(34,211,238,.04) 1px,transparent 1px),
    linear-gradient(135deg,#06172e,#0c315a);
  background-size:30px 30px,30px 30px,auto;
  box-shadow:0 26px 58px rgba(8,25,50,.19);
}
body .fleet-inspection-hero-copy{padding:36px 38px;color:#fff;display:flex;flex-direction:column;justify-content:center;}
body .fleet-inspection-kicker{display:inline-flex;width:max-content;padding:.45rem .75rem;border:1px solid rgba(94,234,212,.35);border-radius:999px;background:rgba(13,148,136,.2);color:#9ef4e6;font-size:.7rem;font-weight:950;text-transform:uppercase;letter-spacing:.08em;}
body .fleet-inspection-hero-copy h2{margin:16px 0 10px;color:#fff;font-size:2.25rem;font-weight:950;letter-spacing:-.045em;}
body .fleet-inspection-hero-copy p{max-width:720px;margin:0;color:#d0dfed;font-size:.98rem;line-height:1.65;}
body .fleet-inspection-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:23px;}
body .fleet-inspection-hero-actions .btn-outline-secondary{color:#fff;border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.08);}
body .fleet-inspection-hero-visual{position:relative;min-height:330px;overflow:hidden;}
body .fleet-inspection-hero-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#0b2e53 0%,transparent 28%,rgba(3,16,34,.26) 100%);pointer-events:none;}
body .fleet-inspection-hero-visual img{width:100%;height:100%;object-fit:cover;display:block;}
body .fleet-inspection-visual-label{position:absolute;z-index:2;left:24px;right:24px;bottom:22px;display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid rgba(255,255,255,.24);border-radius:17px;background:rgba(4,19,42,.72);backdrop-filter:blur(12px);color:#fff;}
body .fleet-inspection-visual-label>span{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;color:#6ee7d8;background:rgba(13,148,136,.24);}
body .fleet-inspection-visual-label svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .fleet-inspection-visual-label strong{display:block;font-size:.84rem;}
body .fleet-inspection-visual-label small{display:block;margin-top:3px;color:#c8d9e8;font-size:.67rem;}
body .fleet-inspection-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start;}
body .fleet-inspection-access-card{position:sticky;top:100px;padding:24px;border:1px solid #d5e2ee;border-radius:25px;background:linear-gradient(180deg,#fff,#f5f9fd);box-shadow:0 18px 42px rgba(15,23,42,.08);}
body .fleet-inspection-access-icon{width:58px;height:58px;display:grid;place-items:center;margin-bottom:16px;border:1px solid #cde0f4;border-radius:18px;color:#2563eb;background:#edf5ff;}
body .fleet-inspection-access-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .fleet-inspection-access-card h3{margin:.35rem 0 .55rem;color:#10243d;font-size:1.22rem;font-weight:950;}
body .fleet-inspection-access-card p{color:#667d94;font-size:.82rem;line-height:1.55;}
body .fleet-inspection-access-card .form-control{margin-bottom:12px;font-size:.75rem;}
body .fleet-inspection-history{overflow:hidden;border-radius:25px !important;}
body .fleet-inspection-history-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:16px;}
body .fleet-inspection-history-head h2{margin:.25rem 0 0;color:#10243d;font-size:1.35rem;font-weight:950;}
body .fleet-inspection-filter{display:grid;grid-template-columns:160px 170px auto auto;align-items:end;gap:8px;}
body .fleet-inspection-filter label{display:block;margin-bottom:5px;color:#71869c;font-size:.63rem;font-weight:950;text-transform:uppercase;letter-spacing:.05em;}
body .fleet-inspection-filter .btn{min-height:42px;white-space:nowrap;}
body .fleet-inspection-table-wrap{overflow-x:auto;border:1px solid #dbe6f0;border-radius:18px;}
body .fleet-inspection-table{min-width:980px;}
body .fleet-inspection-table thead th{padding:12px 10px;color:#617891;background:#f1f6fb;font-size:.68rem;text-transform:uppercase;letter-spacing:.05em;text-align:center;}
body .fleet-inspection-table tbody td{padding:13px 10px;text-align:center;border-color:#e4ecf3;font-size:.78rem;}
body .fleet-inspection-detail-row>td{padding:0 10px !important;background:#f7faff;}
body .fleet-inspection-detail-card{margin:0 0 12px;padding:16px;border:1px solid #dbe6f0;border-radius:16px;background:#fff;text-align:left;}
body .fleet-inspection-detail-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;}
body .fleet-inspection-detail-header strong{display:block;color:#10243d;font-size:.95rem;}
body .fleet-inspection-detail-header span:not(.fleet-result-badge){display:block;margin-top:3px;color:#72869a;font-size:.7rem;}
body .fleet-finding-list{display:flex;flex-wrap:wrap;gap:7px;}
body .fleet-finding-chip{padding:.38rem .6rem;border-radius:999px;font-size:.65rem;font-weight:900;border:1px solid #d6e2ec;background:#f3f7fb;color:#50677f;}
body .fleet-finding-chip.is-critical{color:#b42318;background:#fff0f0;border-color:#ffc8c8;}
body .fleet-finding-chip.is-warning{color:#916000;background:#fff8e7;border-color:#f1d797;}
body .fleet-finding-chip.is-more{color:#47617c;background:#eef3f8;border-color:#d5e1eb;}
body .fleet-inspection-clear{padding:11px;border-radius:13px;color:#08794f;background:#ecfdf3;border:1px solid #bce7d3;font-size:.75rem;font-weight:850;}
body .fleet-inspection-observation{margin-top:12px;padding:12px;border:1px solid #e0e8f0;border-radius:14px;background:#f8fafc;}
body .fleet-inspection-observation strong{color:#5f758c;font-size:.65rem;text-transform:uppercase;letter-spacing:.05em;}
body .fleet-inspection-observation p{margin:.35rem 0 0;color:#314b65;font-size:.76rem;line-height:1.5;}
body .fleet-result-badge{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:.42rem .68rem;border-radius:999px;font-size:.66rem;font-weight:950;border:1px solid #cfe0ec;background:#f2f7fb;color:#50677f;text-align:center;}
body .fleet-result-badge.is-ok{color:#08794f;background:#ebfff5;border-color:#b9e5d0;}
body .fleet-result-badge.is-warning{color:#956200;background:#fff8e7;border-color:#f0d793;}
body .fleet-result-badge.is-critical{color:#b42318;background:#fff0f0;border-color:#ffc5c5;}

/* Selector de puntos de control */
body .fleet-check-section{padding:0 !important;}
body .fleet-check-section-head{display:flex;align-items:center;gap:13px;margin-bottom:14px;}
body .fleet-check-section-head>div>strong{display:block;color:#10243d;font-size:1rem;font-weight:950;}
body .fleet-check-section-head>div>small{display:block;margin-top:4px;color:#6e8399;font-size:.74rem;}
body .fleet-check-section-icon{width:48px;height:48px;display:grid;place-items:center;border:1px solid #cfe0f2;border-radius:16px;color:#2563eb;background:#edf5ff;}
body .fleet-check-section-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .fleet-check-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
body .fleet-check-item{display:grid;grid-template-columns:minmax(150px,.85fr) minmax(350px,1.45fr);align-items:center;gap:12px;padding:12px;border:1px solid #dce7f1;border-radius:16px;background:#fff;}
body .fleet-check-item.is-critical-item{border-left:4px solid #ef4444;}
body .fleet-check-item-copy strong{display:block;color:#1c3550;font-size:.78rem;font-weight:900;line-height:1.3;}
body .fleet-check-item-copy span{display:inline-block;margin-top:5px;padding:.2rem .43rem;border-radius:999px;color:#b42318;background:#fff1f1;font-size:.53rem;font-weight:950;text-transform:uppercase;letter-spacing:.05em;}
body .fleet-state-selector{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;}
body .fleet-state-option{position:relative;min-width:0;}
body .fleet-state-option input{position:absolute;opacity:0;pointer-events:none;}
body .fleet-state-option>span{min-height:46px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;padding:4px;border:1px solid #d7e2ec;border-radius:11px;background:#f8fafc;color:#657a91;cursor:pointer;transition:.16s ease;text-align:center;}
body .fleet-state-option b{font-size:.67rem;}
body .fleet-state-option small{font-size:.49rem;font-weight:850;line-height:1.1;}
body .fleet-state-option input:checked+span{transform:translateY(-1px);box-shadow:0 7px 15px rgba(15,23,42,.1);}
body .fleet-state-option.is-ok input:checked+span{color:#08794f;background:#ecfdf3;border-color:#87d9ae;}
body .fleet-state-option.is-warning input:checked+span{color:#956200;background:#fff8e7;border-color:#efd28a;}
body .fleet-state-option.is-danger input:checked+span{color:#b42318;background:#fff0f0;border-color:#ffb7b7;}
body .fleet-state-option.is-na input:checked+span{color:#5d7085;background:#f1f5f9;border-color:#cbd5e1;}
body .fleet-current-result{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #dce7f0;border-radius:14px;background:#f8fafc;}
body .fleet-current-result span{color:#71869b;font-size:.65rem;font-weight:950;text-transform:uppercase;letter-spacing:.05em;}
body .fleet-current-result strong{padding:.38rem .62rem;border-radius:999px;font-size:.68rem;}
body .fleet-current-result strong.is-ok{color:#08794f;background:#ebfff5;}
body .fleet-current-result strong.is-warning{color:#956200;background:#fff8e7;}
body .fleet-current-result strong.is-critical{color:#b42318;background:#fff0f0;}
body .fleet-inspection-edit-form{display:grid;gap:14px;}
body .fleet-edit-actions{position:sticky;bottom:12px;z-index:10;display:flex;justify-content:flex-end;gap:10px;padding:13px 15px;border:1px solid #d4e0eb;border-radius:18px;background:rgba(255,255,255,.94);backdrop-filter:blur(10px);box-shadow:0 16px 36px rgba(15,23,42,.13);}

/* Estado corporativo de flota */
body .fleet-condition-heading{align-items:center !important;}
body .fleet-condition-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-bottom:18px;}
body .fleet-condition-kpi{min-height:108px;display:flex;align-items:center;gap:14px;padding:17px 18px;border:1px solid #d7e3ee;border-radius:22px;background:linear-gradient(145deg,#fff,#f5f9fd);box-shadow:0 14px 34px rgba(15,23,42,.075);}
body .fleet-condition-kpi-icon{width:54px;height:54px;display:grid;place-items:center;border:1px solid #cfe0f3;border-radius:17px;color:#2563eb;background:#edf5ff;}
body .fleet-condition-kpi-icon svg{width:27px;height:27px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .fleet-condition-kpi small{display:block;color:#6c8298;font-size:.66rem;font-weight:950;text-transform:uppercase;letter-spacing:.05em;}
body .fleet-condition-kpi strong{display:block;margin-top:.25rem;color:#10243d;font-size:1.8rem;font-weight:950;line-height:1;}
body .fleet-condition-kpi-2 .fleet-condition-kpi-icon{color:#d92d20;background:#fff0f0;border-color:#ffc7c7;}
body .fleet-condition-kpi-3 .fleet-condition-kpi-icon{color:#b77900;background:#fff8e5;border-color:#f1d693;}
body .fleet-condition-kpi-4 .fleet-condition-kpi-icon{color:#08794f;background:#ebfff5;border-color:#bce5d1;}
body .fleet-condition-panel{padding:22px;border:1px solid #d7e3ee;border-radius:28px;background:linear-gradient(180deg,#fff,#f7faff);box-shadow:0 22px 52px rgba(15,23,42,.09);}
body .fleet-condition-panel-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;}
body .fleet-condition-panel-head span{color:#70859a;font-size:.64rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em;}
body .fleet-condition-panel-head h2{margin:.2rem 0 0;color:#10243d;font-size:1.38rem;font-weight:950;}
body .fleet-condition-order{padding:.48rem .72rem;border:1px solid #d3e3f3;border-radius:999px;color:#47709b;background:#edf5ff;font-size:.68rem;font-weight:850;}
body .fleet-condition-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
body .fleet-condition-card{position:relative;overflow:hidden;border:1px solid #d8e4ef;border-radius:23px;background:#fff;box-shadow:0 14px 34px rgba(15,23,42,.07);transition:.2s ease;}
body .fleet-condition-card:hover{transform:translateY(-3px);box-shadow:0 22px 44px rgba(15,23,42,.12);}
body .fleet-condition-accent{position:absolute;left:0;top:0;bottom:0;width:6px;background:linear-gradient(180deg,#10b981,#5eead4);}
body .fleet-condition-card.is-warning .fleet-condition-accent{background:linear-gradient(180deg,#f59e0b,#fbbf24);}
body .fleet-condition-card.is-critical .fleet-condition-accent{background:linear-gradient(180deg,#ef4444,#fb7185);}
body .fleet-condition-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 17px 13px 23px;border-bottom:1px solid #e3ebf3;background:linear-gradient(180deg,#fff,#fbfdff);}
body .fleet-condition-unit{display:flex;align-items:center;gap:12px;min-width:0;}
body .fleet-condition-unit>span{width:46px;height:46px;display:grid;place-items:center;border:1px solid #d1e1f2;border-radius:15px;color:#2563eb;background:#edf5ff;}
body .fleet-condition-unit svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .fleet-condition-unit strong{display:block;color:#10243d;font-size:1rem;font-weight:950;}
body .fleet-condition-unit small{display:block;margin-top:3px;color:#71869a;font-size:.68rem;}
body .fleet-condition-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;padding:14px 17px 0 23px;}
body .fleet-condition-meta>div{min-height:78px;display:grid;grid-template-columns:24px 1fr;align-content:center;column-gap:7px;padding:10px;border:1px solid #dee8f1;border-radius:14px;background:#f7fafc;}
body .fleet-condition-meta>div>span{grid-row:1/3;color:#2563eb;}
body .fleet-condition-meta svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .fleet-condition-meta small{color:#758a9f;font-size:.58rem;font-weight:950;text-transform:uppercase;letter-spacing:.05em;}
body .fleet-condition-meta strong{margin-top:3px;color:#17304d;font-size:.74rem;font-weight:900;line-height:1.25;}
body .fleet-condition-findings,body .fleet-condition-report{padding:14px 17px 0 23px;}
body .fleet-condition-label{margin-bottom:7px;color:#71869b;font-size:.62rem;font-weight:950;text-transform:uppercase;letter-spacing:.055em;}
body .fleet-condition-clear{display:flex;align-items:center;gap:7px;color:#08794f;font-size:.76rem;font-weight:900;}
body .fleet-condition-clear svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;}
body .fleet-condition-empty{color:#71869b;font-size:.75rem;font-weight:800;}
body .fleet-condition-report p{min-height:58px;margin:0;padding:11px 12px;border:1px solid #e0e8f0;border-radius:14px;background:#f8fafc;color:#344d67;font-size:.76rem;line-height:1.48;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
body .fleet-condition-card-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px;padding:13px 17px 15px 23px;border-top:1px solid #e4ecf3;background:#fbfdff;}
body .fleet-condition-card-footer>span{color:#7a8ea2;font-size:.66rem;font-weight:850;}
body .fleet-condition-card-footer .btn{font-size:.72rem;font-weight:900;}

/* OT de mantenimiento: controles amplios y sin compresión */
body .maintenance-order-card-body-v2{display:block !important;padding:17px 18px 16px 24px !important;}
body .maintenance-order-main{display:grid;grid-template-columns:minmax(300px,1.15fr) minmax(380px,1fr);gap:14px;}
body .maintenance-order-description-v2{min-height:150px;}
body .maintenance-order-description-v2 p{font-size:1rem !important;line-height:1.58 !important;font-weight:740 !important;-webkit-line-clamp:5 !important;}
body .maintenance-order-data-v2>div{min-height:70px !important;}
body .maintenance-order-controls-v2{display:grid !important;grid-template-columns:minmax(380px,1.35fr) minmax(270px,1fr) minmax(250px,.9fr) !important;gap:12px !important;margin-top:12px;}
body .maintenance-order-controls-v2 .maintenance-control-block{padding:13px 14px !important;text-align:left !important;}
body .maintenance-order-controls-v2 .maintenance-control-block>label{text-align:left !important;}
body .maintenance-priority-buttons-v2{display:grid !important;grid-template-columns:repeat(3,minmax(0,1fr)) !important;gap:8px !important;margin-top:9px !important;}
body .maintenance-priority-buttons-v2 .priority-mini{width:auto !important;height:auto !important;min-height:58px !important;display:flex !important;flex-direction:column !important;align-items:flex-start !important;justify-content:center !important;gap:2px !important;padding:8px 11px !important;border-radius:13px !important;text-align:left !important;}
body .maintenance-priority-buttons-v2 .priority-mini span{font-size:.8rem !important;}
body .maintenance-priority-buttons-v2 .priority-mini small{font-size:.55rem !important;line-height:1.2 !important;}
body .maintenance-card-form-v2{grid-template-columns:minmax(0,1fr) 44px !important;margin-top:9px !important;}
body .maintenance-card-form-v2 .form-control,body .maintenance-card-form-v2 .form-select{height:48px !important;text-align:left !important;padding-left:13px !important;}
body .maintenance-card-form-v2 .maintenance-card-save{width:44px !important;height:44px !important;align-self:center;}

/* Monitor: descripción más grande y legible */
body .industrial-task-description-panel{padding:18px 20px 18px 24px !important;}
body .industrial-task-description-panel>span{font-size:.72rem !important;}
body .industrial-task-description-panel p{font-size:1.28rem !important;line-height:1.58 !important;font-weight:780 !important;-webkit-line-clamp:5 !important;}
body .industrial-task-title-row-v3 h3{font-size:1.78rem !important;}
body .industrial-task-assignee-highlight strong{font-size:1rem !important;}

/* Comunicaciones: tarjetas más contenidas y orientación logística */
body .communications-message-copy h3{font-size:1.35rem !important;line-height:1.2 !important;}
body .communications-message-copy p{font-size:.93rem !important;line-height:1.55 !important;max-width:1120px;}
body .communications-message-body{padding:18px 20px !important;}
body .communications-reference{display:inline-flex !important;width:auto !important;max-width:100%;}

@media(max-width:1280px){
  body .fleet-inspection-layout{grid-template-columns:1fr;}
  body .fleet-inspection-access-card{position:static;}
  body .fleet-inspection-filter{grid-template-columns:repeat(2,minmax(0,1fr));width:100%;}
  body .maintenance-order-main{grid-template-columns:1fr;}
  body .maintenance-order-controls-v2{grid-template-columns:1fr 1fr !important;}
  body .maintenance-priority-control{grid-column:1/-1;}
}
@media(max-width:1050px){
  body .fleet-inspection-hero{grid-template-columns:1fr;}
  body .fleet-inspection-hero-visual{min-height:260px;}
  body .fleet-check-grid{grid-template-columns:1fr;}
  body .fleet-condition-grid{grid-template-columns:1fr;}
}
@media(max-width:760px){
  body .fleet-inspection-hero-copy{padding:28px 22px;}
  body .fleet-inspection-hero-copy h2{font-size:1.75rem;}
  body .fleet-inspection-filter{grid-template-columns:1fr;}
  body .fleet-check-item{grid-template-columns:1fr;}
  body .fleet-state-selector{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .fleet-condition-summary{grid-template-columns:1fr 1fr;}
  body .fleet-condition-meta{grid-template-columns:1fr;}
  body .fleet-condition-panel-head,body .fleet-condition-card-head,body .fleet-condition-card-footer{align-items:flex-start;flex-direction:column;}
  body .maintenance-order-controls-v2{grid-template-columns:1fr !important;}
  body .maintenance-priority-control{grid-column:auto;}
}
@media(max-width:520px){body .fleet-condition-summary{grid-template-columns:1fr;}body .fleet-inspection-hero-actions{flex-direction:column;}body .fleet-inspection-hero-actions .btn{width:100%;}}


/* V8 industrial mobile + communications */
body .communications-access-strip{margin-bottom:18px;}
body .communications-access-card{display:grid;grid-template-columns:minmax(0,1.4fr) 180px;gap:18px;align-items:center;padding:20px 22px;border:1px solid #d7e4ef;border-radius:26px;background:linear-gradient(135deg,#fbfdff,#eff6fd);box-shadow:0 18px 42px rgba(15,23,42,.08);}
body .communications-access-copy span{display:inline-flex;padding:.4rem .68rem;border-radius:999px;background:#e8fffb;border:1px solid #bceee5;color:#0f766e;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em;}
body .communications-access-copy h2{margin:.75rem 0 .4rem;color:#10243d;font-size:1.45rem;font-weight:950;}
body .communications-access-copy p{margin:0;color:#5c728a;line-height:1.58;font-size:.88rem;max-width:760px;}
body .communications-access-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px;}
body .communications-access-qr{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;}
body .communications-qr-frame{width:144px;height:144px;padding:8px;border-radius:22px;background:#fff;border:2px solid #d2e0ec;box-shadow:0 14px 32px rgba(15,23,42,.08);}
body .communications-qr-frame img{width:100%;height:100%;object-fit:contain;display:block;}
body .communications-access-qr small{color:#6d8297;font-size:.7rem;font-weight:850;text-align:center;}
body .communications-attachment{display:block;margin-top:13px;padding:12px;border:1px solid #dfe9f2;border-radius:16px;background:#f9fbfd;}
body .communications-attachment>span{display:block;color:#698096;font-size:.62rem;font-weight:950;text-transform:uppercase;letter-spacing:.06em;margin-bottom:8px;}
body .communications-attachment img{display:block;max-width:240px;width:100%;border-radius:14px;border:1px solid #d8e3ee;box-shadow:0 10px 24px rgba(15,23,42,.08);}
body .fleet-inspection-access-qr-frame{width:168px;height:168px;margin:14px auto;padding:8px;border-radius:22px;background:#fff;border:2px solid #d3e1ee;box-shadow:0 14px 30px rgba(15,23,42,.08);}
body .fleet-inspection-access-qr-frame img{width:100%;height:100%;object-fit:contain;display:block;}
body .fleet-inspection-access-actions{display:grid;gap:10px;}
body .fleet-modal-copy{text-align:center;max-width:760px;margin:0 auto;}
body .industrial-form-modal .industrial-modal-close{position:absolute;top:14px;right:14px;display:grid !important;place-items:center;background:rgba(255,255,255,.96) !important;border:1px solid rgba(255,255,255,.8) !important;border-radius:50% !important;color:#10243d !important;opacity:1 !important;font-size:1.8rem !important;line-height:1 !important;text-indent:0 !important;background-image:none !important;padding:0 !important;}
body .industrial-form-modal .industrial-modal-close span{display:block !important;font-size:2rem !important;line-height:1 !important;color:#10243d !important;margin-top:-1px;}
body .industrial-form-modal .industrial-modal-close::before{content:none !important;}
body .fleet-finding-list{display:flex;flex-wrap:wrap;gap:10px;}
body .fleet-finding-chip{padding:.48rem .92rem;border-radius:999px;font-size:.73rem;font-weight:900;border:1px solid #d7e3ed;background:#f3f7fb;color:#46607d;box-shadow:0 8px 20px rgba(15,23,42,.05);}
body .fleet-finding-chip.is-critical{color:#b42318;background:#fff3f2;border-color:#ffc9c6;}
body .fleet-finding-chip.is-warning{color:#946200;background:#fff8ea;border-color:#f3d694;}
@media(max-width:900px){body .communications-access-card{grid-template-columns:1fr;}body .communications-access-qr{order:-1;}body .communications-qr-frame{width:126px;height:126px;}body .fleet-inspection-access-qr-frame{width:138px;height:138px;}}


/* =========================================================
   V9 · PASADA DEFINITIVA DE CENTRADO, MODALES Y RESPONSIVE
   ========================================================= */
body{overflow-x:hidden;}
body .industrial-form-modal{padding:0 !important;}
body .industrial-form-modal .modal-dialog{
  width:min(1120px,calc(100vw - 36px)) !important;
  max-width:none !important;
  min-height:calc(100dvh - 32px);
  margin:16px auto !important;
  display:flex;
  align-items:center;
  justify-content:center;
}
body .industrial-form-modal .modal-content{
  width:100%;
  max-height:calc(100dvh - 32px) !important;
  overflow:hidden !important;
  border:1px solid rgba(196,211,226,.95) !important;
  border-radius:28px !important;
  background:#f7faff !important;
  box-shadow:0 32px 90px rgba(2,8,23,.34) !important;
  animation:industrialModalPremiumIn .36s cubic-bezier(.16,1,.3,1) both;
}
body .industrial-form-modal .industrial-modal-hero{
  position:relative !important;
  flex:0 0 auto;
  min-height:128px;
  overflow:hidden;
}
body .industrial-form-modal .industrial-modal-hero-copy{
  width:min(820px,calc(100% - 150px));
  margin:0 auto;
  padding-left:24px !important;
  padding-right:24px !important;
  text-align:left;
}
body .industrial-form-modal .industrial-modal-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  padding:18px 20px 20px !important;
  scrollbar-gutter:stable;
}
body .industrial-form-modal .industrial-modal-footer{
  position:relative !important;
  flex:0 0 auto;
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  padding:12px 20px !important;
  border-top:1px solid #d9e5ef;
  background:rgba(255,255,255,.97);
  backdrop-filter:blur(14px);
}
body .industrial-form-modal .industrial-modal-close{
  position:absolute !important;
  z-index:20 !important;
  top:14px !important;
  right:14px !important;
  width:52px !important;
  height:52px !important;
  min-width:52px !important;
  min-height:52px !important;
  display:grid !important;
  place-items:center !important;
  margin:0 !important;
  padding:0 !important;
  border:1px solid rgba(255,255,255,.92) !important;
  border-radius:999px !important;
  outline:0 !important;
  opacity:1 !important;
  color:#0b1830 !important;
  background:rgba(255,255,255,.98) !important;
  background-image:none !important;
  box-shadow:0 14px 34px rgba(2,8,23,.30) !important;
  font-family:Arial,sans-serif !important;
  line-height:1 !important;
  text-indent:0 !important;
  transition:transform .18s ease,box-shadow .18s ease !important;
}
body .industrial-form-modal .industrial-modal-close::before,
body .industrial-form-modal .industrial-modal-close::after{content:none !important;display:none !important;}
body .industrial-form-modal .industrial-modal-close span{
  display:block !important;
  width:auto !important;
  height:auto !important;
  margin:-3px 0 0 !important;
  color:#0b1830 !important;
  font-size:2.35rem !important;
  font-weight:300 !important;
  line-height:1 !important;
}
body .industrial-form-modal .industrial-modal-close:hover{transform:scale(1.06) rotate(3deg) !important;box-shadow:0 18px 44px rgba(2,8,23,.38) !important;}
body .industrial-form-modal .industrial-form-section{
  width:100%;
  margin:0 auto 14px;
  border-radius:21px !important;
  box-shadow:0 9px 24px rgba(15,23,42,.045);
}
body .industrial-form-modal .industrial-section-heading{align-items:center !important;}
body .industrial-form-modal .form-control,
body .industrial-form-modal .form-select{min-width:0;}
@keyframes industrialModalPremiumIn{
  from{opacity:0;transform:translateY(20px) scale(.975);filter:blur(2px)}
  to{opacity:1;transform:translateY(0) scale(1);filter:blur(0)}
}

/* Mantenimiento: estructura centrada y controles sin desbordes. */
body .maintenance-orders-panel{max-width:1680px;margin-left:auto;margin-right:auto;overflow:hidden;}
body .maintenance-order-card{width:100%;min-width:0;}
body .maintenance-order-card-body-v2{min-width:0;}
body .maintenance-order-main{grid-template-columns:minmax(280px,1.05fr) minmax(430px,1fr) !important;min-width:0;}
body .maintenance-order-data-v2{min-width:0;}
body .maintenance-order-controls-v2{
  grid-template-columns:minmax(340px,1.15fr) minmax(250px,.9fr) minmax(250px,.9fr) !important;
  align-items:stretch !important;
  min-width:0;
}
body .maintenance-order-controls-v2 .maintenance-control-block{min-width:0;display:flex;flex-direction:column;justify-content:center;}
body .maintenance-priority-buttons-v2{width:100%;}
body .maintenance-priority-buttons-v2 .priority-mini{
  min-width:0 !important;
  align-items:center !important;
  text-align:center !important;
  padding:8px 6px !important;
}
body .maintenance-priority-buttons-v2 .priority-mini span{white-space:nowrap;}
body .maintenance-priority-buttons-v2 .priority-mini small{display:block;max-width:100%;white-space:normal;text-align:center;}
body .maintenance-card-form-v2{width:100%;min-width:0;}
body .maintenance-card-form-v2 .form-control,
body .maintenance-card-form-v2 .form-select{width:100%;min-width:0;}
body .maintenance-order-card-footer{padding-left:24px;padding-right:18px;}

/* Control preoperacional y comunicaciones: centrado visual. */
body .fleet-inspection-heading,
body .communications-heading{max-width:1680px;margin-left:auto;margin-right:auto;}
body .fleet-inspection-hero,
body .fleet-inspection-layout,
body .communications-stat-grid,
body .communications-filter-panel,
body .communications-access-strip,
body .communications-board{max-width:1680px;margin-left:auto;margin-right:auto;}
body .fleet-modal-copy{width:min(780px,calc(100% - 130px)) !important;text-align:center !important;}
body .fleet-inspection-modal .industrial-modal-body{padding-top:16px !important;}
body .communications-modal .industrial-modal-body{padding-top:16px !important;}
body .communications-message-copy{min-width:0;}
body .communications-message-copy h3,
body .communications-message-copy p{overflow-wrap:anywhere;}

/* Tablas: evitar desbordes accidentales y mantener lectura. */
body .table-responsive{max-width:100%;}
body .fleet-inspection-table-wrap{overscroll-behavior-x:contain;}

@media(max-width:1280px){
  body .maintenance-order-main{grid-template-columns:1fr !important;}
  body .maintenance-order-controls-v2{grid-template-columns:1fr 1fr !important;}
  body .maintenance-priority-control{grid-column:1/-1;}
}
@media(max-width:820px){
  body .industrial-form-modal .modal-dialog{
    width:calc(100vw - 16px) !important;
    min-height:calc(100dvh - 16px);
    margin:8px auto !important;
  }
  body .industrial-form-modal .modal-content{
    max-height:calc(100dvh - 16px) !important;
    border-radius:22px !important;
  }
  body .industrial-form-modal .industrial-modal-hero{min-height:116px;}
  body .industrial-form-modal .industrial-modal-hero-copy{
    width:calc(100% - 82px) !important;
    margin:0 !important;
    padding:17px 12px 14px 18px !important;
    text-align:left !important;
  }
  body .industrial-form-modal .industrial-modal-hero-copy h2{font-size:1.45rem !important;line-height:1.1 !important;}
  body .industrial-form-modal .industrial-modal-hero-copy p{font-size:.78rem !important;line-height:1.35 !important;}
  body .industrial-form-modal .industrial-modal-close{
    top:10px !important;
    right:10px !important;
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    min-height:46px !important;
  }
  body .industrial-form-modal .industrial-modal-close span{font-size:2.05rem !important;}
  body .industrial-form-modal .industrial-modal-body{padding:12px !important;}
  body .industrial-form-modal .industrial-modal-footer{padding:10px 12px !important;}
  body .industrial-form-modal .industrial-modal-footer .btn{flex:1;min-width:0;}
  body .maintenance-order-controls-v2{grid-template-columns:1fr !important;}
  body .maintenance-priority-control{grid-column:auto;}
  body .maintenance-priority-buttons-v2{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  body .maintenance-order-card-head,
  body .maintenance-order-card-footer{align-items:stretch !important;}
  body .maintenance-order-badges{justify-content:flex-start;}
  body .maintenance-card-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;}
  body .maintenance-card-actions .btn,
  body .maintenance-card-actions form,
  body .maintenance-card-actions form .btn{width:100%;}
  body .communications-access-card{padding:17px;}
  body .communications-access-copy{text-align:center;}
  body .communications-access-actions{justify-content:center;}
}
@media(max-width:520px){
  body .industrial-form-modal .industrial-modal-footer{flex-direction:column-reverse;}
  body .industrial-form-modal .industrial-modal-footer .btn{width:100%;}
  body .maintenance-orders-panel{padding:11px !important;}
  body .maintenance-order-card-head,
  body .maintenance-order-card-body-v2,
  body .maintenance-order-card-footer{padding-left:17px !important;padding-right:12px !important;}
  body .maintenance-priority-buttons-v2 .priority-mini small{display:none;}
  body .maintenance-priority-buttons-v2 .priority-mini{min-height:44px !important;}
  body .communications-message-head,
  body .communications-message-body,
  body .communications-message-footer{padding-left:16px !important;padding-right:14px !important;}
  body .communications-access-qr{order:-1;}
}

/* === EDICIÓN CORPORATIVA V10 · RUTEO INTELIGENTE === */
body .routing-hero{overflow:hidden;border:1px solid rgba(59,130,246,.14);background:linear-gradient(135deg,#07152c 0%,#0b2246 58%,#123a71 100%);box-shadow:0 24px 70px rgba(2,8,23,.22);} 
body .routing-hero .card-body{padding:0;}
body .routing-hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:center;padding:28px;}
body .routing-hero-copy{color:#f8fbff;}
body .routing-hero-kicker{display:inline-flex;padding:8px 14px;border-radius:999px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.14);font-size:.8rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;margin-bottom:12px;}
body .routing-hero-copy h2{font-size:2rem;font-weight:800;line-height:1.12;margin-bottom:12px;color:#fff;}
body .routing-hero-copy p{font-size:1rem;line-height:1.7;color:rgba(240,248,255,.82);max-width:720px;margin:0;}
body .routing-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px;}
body .routing-hero-visual{position:relative;min-height:260px;border-radius:24px;overflow:hidden;background:linear-gradient(135deg,rgba(255,255,255,.06),rgba(255,255,255,.14));border:1px solid rgba(255,255,255,.08);} 
body .routing-hero-visual img{width:100%;height:100%;object-fit:cover;display:block;opacity:.94;}
body .routing-hero-badges{position:absolute;left:16px;right:16px;bottom:16px;display:flex;gap:10px;flex-wrap:wrap;}
body .routing-hero-badges span{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;background:rgba(6,17,38,.78);border:1px solid rgba(255,255,255,.08);color:#fff;font-weight:700;font-size:.85rem;backdrop-filter:blur(14px);} 
body .routing-hero-badges svg{width:17px;height:17px;fill:currentColor;}
body .routing-layout{display:grid;grid-template-columns:1fr 1fr;gap:22px;align-items:start;}
body .routing-column{display:flex;flex-direction:column;min-width:0;}
body .routing-form-card, body .routing-list-card, body .routing-map-panel, body .routing-plans-panel{border-radius:24px;border:1px solid rgba(15,23,42,.07);box-shadow:0 16px 42px rgba(15,23,42,.06);overflow:hidden;}
body .routing-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:18px;}
body .routing-card-head h2{font-size:1.2rem;font-weight:800;margin:.2rem 0 0;}
body .routing-card-head p{margin:8px 0 0;color:#64748b;}
body .routing-card-icon{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:18px;background:linear-gradient(135deg,#dbeafe,#eff6ff);color:#1d4ed8;box-shadow:inset 0 0 0 1px rgba(37,99,235,.14);} 
body .routing-card-icon svg{width:24px;height:24px;fill:currentColor;}
body .routing-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
body .routing-form-grid .routing-span-2{grid-column:1/-1;}
body .routing-inline-input{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;}
body .routing-mini-table thead th{font-size:.76rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b;}
body .routing-mini-table td{font-size:.92rem;vertical-align:middle;}
body .routing-mini-table-wrap{max-height:320px;overflow:auto;}
body #routingMap{height:640px;border-radius:22px;overflow:hidden;background:#dce8f8;border:1px solid rgba(148,163,184,.26);} 
body .routing-optimizer-layout{display:grid;grid-template-columns:410px minmax(0,1fr);gap:20px;align-items:start;}
body .routing-optimizer-sidebar{display:flex;flex-direction:column;gap:18px;}
body .routing-plan-form{padding:18px;border-radius:22px;background:linear-gradient(180deg,#f8fbff 0%,#eef5ff 100%);border:1px solid rgba(37,99,235,.08);} 
body .routing-origin-box{padding:14px 15px;border-radius:18px;background:#ffffff;border:1px solid rgba(15,23,42,.07);} 
body .routing-origin-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:10px;}
body .routing-origin-head small{color:#64748b;}
body .routing-order-selector{padding:14px 15px;border-radius:18px;background:#fff;border:1px solid rgba(15,23,42,.07);} 
body .routing-order-selector-head{display:flex;flex-direction:column;gap:4px;margin-bottom:10px;}
body .routing-order-selector-head span{color:#64748b;font-size:.9rem;}
body .routing-order-checks{display:flex;flex-direction:column;gap:10px;max-height:280px;overflow:auto;padding-right:2px;}
body .routing-order-check{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:flex-start;padding:11px 12px;border-radius:16px;background:#f8fafc;border:1px solid rgba(148,163,184,.18);} 
body .routing-order-check input{margin-top:4px;transform:scale(1.08);} 
body .routing-order-check strong{display:block;font-size:.95rem;color:#0f172a;}
body .routing-order-check small{display:block;font-size:.84rem;line-height:1.4;color:#64748b;}
body .routing-optimizer-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
body .routing-plan-summary{padding:18px;border-radius:22px;background:#08172f;color:#e7efff;box-shadow:0 18px 40px rgba(3,10,24,.24);} 
body .routing-summary-top{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px;}
body .routing-summary-top strong{font-size:1rem;}
body .routing-summary-top span{font-size:.85rem;padding:6px 10px;border-radius:999px;background:rgba(59,130,246,.18);border:1px solid rgba(96,165,250,.18);} 
body .routing-summary-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px;}
body .routing-summary-metrics article{padding:12px;border-radius:16px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.06);} 
body .routing-summary-metrics small{display:block;font-size:.76rem;letter-spacing:.05em;text-transform:uppercase;color:#8fb3e8;}
body .routing-summary-metrics strong{display:block;margin-top:4px;font-size:1.15rem;color:#fff;}
body .routing-stop-list{margin:0;padding-left:20px;display:flex;flex-direction:column;gap:10px;}
body .routing-stop-list li{line-height:1.5;color:#d9e7ff;}
body .routing-stop-list li span{display:block;color:#b9ccec;font-size:.88rem;}
body .routing-map-head{margin-bottom:16px;}
body .routing-map-actions{display:flex;align-items:center;gap:10px;}
body .routing-capture-indicator{display:inline-flex;align-items:center;padding:8px 12px;border-radius:999px;background:#eff6ff;color:#1e40af;border:1px solid rgba(37,99,235,.14);font-size:.85rem;font-weight:700;}
body .maintenance-submodule-card{min-height:128px;border-radius:24px;background:linear-gradient(180deg,#081d3c 0%,#0f2b57 100%);border:1px solid rgba(96,165,250,.12);color:#f8fbff;box-shadow:0 18px 40px rgba(2,8,23,.18);} 
body .maintenance-submodule-card .maintenance-submodule-copy strong{color:#fff;font-size:1.28rem;}
body .maintenance-submodule-card .maintenance-submodule-copy small{color:rgba(235,244,255,.78);}
body .maintenance-submodule-card .maintenance-submodule-icon{background:rgba(255,255,255,.08);color:#dbeafe;border-color:rgba(255,255,255,.08);} 
body .maintenance-submodule-card .maintenance-submodule-arrow{color:#c7dcff;}
body .industrial-form-modal .industrial-modal-close{display:grid !important;place-items:center !important;width:50px !important;height:50px !important;border-radius:16px !important;background:rgba(7,19,39,.82) !important;border:1px solid rgba(255,255,255,.18) !important;box-shadow:0 18px 40px rgba(2,8,23,.34) !important;top:14px !important;right:14px !important;filter:none !important;opacity:1 !important;}
body .industrial-form-modal .industrial-modal-close span{display:block !important;color:#fff !important;font-size:1.85rem !important;line-height:1 !important;font-weight:700 !important;margin-top:-2px;}
body .industrial-form-modal .industrial-modal-close::before{display:none !important;}
body .fleet-inspection-heading .section-title, body .fleet-inspection-hero h2{letter-spacing:-.02em;}
body .fleet-inspection-access-card{position:sticky;top:90px;}
body .fleet-inspection-modal .industrial-modal-hero img{object-position:center 32%;}
body .communications-access-card{grid-template-columns:1fr auto;align-items:center;}
body .communications-qr-frame{width:126px;height:126px;padding:10px;border-radius:22px;background:#fff;box-shadow:inset 0 0 0 1px rgba(148,163,184,.22);} 
@media (max-width: 1199px){
  body .routing-hero-grid, body .routing-layout, body .routing-optimizer-layout{grid-template-columns:1fr;}
  body #routingMap{height:520px;}
}
@media (max-width: 767px){
  body .routing-hero-grid{padding:20px;}
  body .routing-hero-copy h2{font-size:1.52rem;}
  body .routing-form-grid, body .routing-optimizer-actions, body .routing-summary-metrics{grid-template-columns:1fr;}
  body .routing-inline-input{grid-template-columns:1fr;}
  body #routingMap{height:420px;}
}

/* ========================================================================
   EDICIÓN ENTERPRISE V11 · CENTRO DE DISTRIBUCIÓN + NAVEGACIÓN INDUSTRIAL
   ======================================================================== */
body .sidebar-link,
body .sidebar-sublink{
  display:grid !important;
  grid-template-columns:38px minmax(0,1fr) 24px !important;
  align-items:center !important;
  gap:10px !important;
  justify-content:initial !important;
  text-align:left !important;
  min-height:56px !important;
  padding:.62rem .72rem !important;
  border-radius:18px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.018)) !important;
  border:1px solid rgba(151,190,255,.08) !important;
  color:#eaf2ff !important;
  font-size:.9rem !important;
  font-weight:780 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.025) !important;
  transform:none !important;
}
body .sidebar-link:hover,
body .sidebar-sublink:hover{
  background:linear-gradient(180deg,rgba(30,75,151,.44),rgba(18,52,110,.54)) !important;
  border-color:rgba(112,162,255,.30) !important;
  transform:translateY(-1px) !important;
}
body .sidebar-link.active,
body .sidebar-sublink.active{
  background:linear-gradient(135deg,#2454a8 0%,#163a7e 100%) !important;
  border-color:rgba(117,168,255,.62) !important;
  box-shadow:0 12px 24px rgba(2,10,27,.25),inset 0 1px 0 rgba(255,255,255,.10) !important;
}
body .sidebar-item-icon{
  width:38px;
  height:38px;
  border-radius:13px;
  display:grid;
  place-items:center;
  color:#bcd6ff;
  background:linear-gradient(180deg,rgba(89,139,230,.16),rgba(35,78,151,.18));
  border:1px solid rgba(113,164,255,.16);
}
body .sidebar-link.active .sidebar-item-icon,
body .sidebar-sublink.active .sidebar-item-icon{color:#fff;background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.12)}
body .sidebar-item-icon svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body .sidebar-item-label{min-width:0;line-height:1.18}
body .sidebar-item-arrow{font-size:1rem;color:#88a8d7;opacity:.75;text-align:right}
body .sidebar-link:hover .sidebar-item-arrow,body .sidebar-sublink:hover .sidebar-item-arrow{color:#fff;opacity:1}
body .sidebar-group-toggle{
  min-height:54px !important;
  border-radius:18px !important;
  padding:.62rem .72rem !important;
  background:rgba(255,255,255,.025) !important;
  border:1px solid rgba(151,190,255,.08) !important;
}
body .sidebar-group-title{display:flex !important;align-items:center;gap:10px;min-width:0}
body .sidebar-group-title .sidebar-item-icon{flex:0 0 38px}
body .sidebar-group-children{padding:.42rem 0 .18rem .5rem !important;gap:6px !important}
body .sidebar-sublink{min-height:50px !important;font-size:.84rem !important}
body.sidebar-collapsed .sidebar-link,
body.sidebar-collapsed .sidebar-sublink{display:grid !important;grid-template-columns:1fr !important;padding:.48rem !important;min-height:52px !important;font-size:0 !important}
body.sidebar-collapsed .sidebar-link::before,
body.sidebar-collapsed .sidebar-sublink::before{display:none !important;content:none !important}
body.sidebar-collapsed .sidebar-item-label,
body.sidebar-collapsed .sidebar-item-arrow{display:none !important}
body.sidebar-collapsed .sidebar-item-icon{margin:auto}
body.sidebar-collapsed .sidebar-group-title>span:last-child,
body.sidebar-collapsed .sidebar-group-arrow{display:none !important}
body.sidebar-collapsed .sidebar-group-toggle .sidebar-item-icon{display:grid !important;margin:auto}

body .distribution-heading{margin-bottom:1.2rem;padding:0 .15rem}
body .distribution-hero{overflow:hidden;border:1px solid rgba(78,131,222,.14);border-radius:30px;background:linear-gradient(140deg,#06142a 0%,#0a2852 58%,#143f79 100%);box-shadow:0 26px 68px rgba(2,10,27,.22)}
body .distribution-hero-grid{display:grid;grid-template-columns:1.02fr .98fr;min-height:330px}
body .distribution-hero-copy{padding:38px 40px;display:flex;flex-direction:column;justify-content:center;color:#eef5ff}
body .distribution-hero-tag{align-self:flex-start;display:inline-flex;padding:.48rem .78rem;border-radius:999px;border:1px solid rgba(122,208,255,.24);background:rgba(17,137,191,.15);color:#9be7ff;font-size:.72rem;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
body .distribution-hero-copy h2{margin:1rem 0 .72rem;font-size:2.35rem;line-height:1.08;letter-spacing:-.045em;color:#fff;font-weight:900;max-width:720px}
body .distribution-hero-copy p{margin:0;max-width:700px;color:#cddcf0;font-size:1rem;line-height:1.65}
body .distribution-hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:22px}
body .distribution-hero-visual{position:relative;min-height:330px;overflow:hidden}
body .distribution-hero-visual img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
body .distribution-hero-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,20,42,.72),rgba(6,20,42,.10) 48%,rgba(6,20,42,.22)),linear-gradient(180deg,transparent 52%,rgba(4,14,32,.74))}
body .distribution-hero-caption{position:absolute;left:24px;right:24px;bottom:22px;display:flex;align-items:end;justify-content:space-between;gap:16px;padding:15px 17px;border-radius:18px;background:rgba(5,18,38,.76);border:1px solid rgba(255,255,255,.09);backdrop-filter:blur(12px);color:#fff}
body .distribution-hero-caption strong{font-size:1rem}
body .distribution-hero-caption span{font-size:.82rem;color:#bdd0ea;text-align:right}
body .distribution-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body .distribution-step-card{position:relative;display:grid;grid-template-columns:44px 50px minmax(0,1fr);gap:12px;align-items:center;min-height:104px;padding:16px 18px;border-radius:24px;background:linear-gradient(180deg,#fff,#f5f9fd);border:1px solid #dce7f1;box-shadow:0 14px 34px rgba(15,23,42,.06)}
body .distribution-step-card.is-active{border-color:#b9d3ff;box-shadow:0 16px 38px rgba(37,99,235,.11)}
body .distribution-step-number{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#eef5ff;color:#2563eb;font-size:.78rem;font-weight:950}
body .distribution-step-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#0f2b57,#1f5fc1);color:#fff;box-shadow:0 12px 24px rgba(20,72,152,.18)}
body .distribution-step-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body .distribution-step-card strong{display:block;color:#10243d;font-size:1rem;font-weight:900}
body .distribution-step-card small{display:block;margin-top:4px;color:#6a8096;line-height:1.4}
body .distribution-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
body .distribution-stat-card{position:relative;overflow:hidden;display:flex;align-items:center;gap:14px;min-height:104px;padding:18px;border-radius:24px;background:linear-gradient(180deg,#fff,#f7fafc);border:1px solid #dce7f1;box-shadow:0 15px 34px rgba(15,23,42,.06)}
body .distribution-stat-card::after{content:"";position:absolute;right:-28px;top:-34px;width:118px;height:118px;border-radius:50%;background:rgba(59,130,246,.055)}
body .distribution-stat-icon{position:relative;z-index:1;display:grid;place-items:center;width:54px;height:54px;border-radius:18px;background:#edf5ff;color:#2563eb;border:1px solid #d3e3fb}
body .distribution-stat-icon svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body .distribution-stat-card small{display:block;color:#657b92;font-weight:800}
body .distribution-stat-card strong{display:block;margin-top:3px;color:#0d1d35;font-size:1.62rem;line-height:1;font-weight:950}
body .distribution-stat-card.tone-2 .distribution-stat-icon{background:#ebf9f3;color:#0f9f67;border-color:#cceedd}
body .distribution-stat-card.tone-3 .distribution-stat-icon{background:#f6f0ff;color:#7c3aed;border-color:#e5d7ff}
body .distribution-stat-card.tone-4 .distribution-stat-icon{background:#fff6e8;color:#d97706;border-color:#f4ddbc}
body .distribution-board{display:grid;grid-template-columns:410px minmax(0,1fr);gap:18px;align-items:start}
body .distribution-sidebar,body .distribution-main,body .distribution-history{border-radius:28px;border:1px solid rgba(148,163,184,.20);box-shadow:0 20px 52px rgba(15,23,42,.07);overflow:hidden}
body .distribution-sidebar{padding:20px;position:sticky;top:86px;background:linear-gradient(180deg,#fbfdff,#f3f7fb)}
body .distribution-sidebar-head,body .distribution-history-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:16px}
body .distribution-sidebar-head h2,body .distribution-history-head h2,body .distribution-control-title h2,body .distribution-summary-head h2{margin:.2rem 0 0;color:#10243d;font-size:1.2rem;font-weight:900}
body .distribution-sidebar-head p,body .distribution-history-head p{margin:.42rem 0 0;color:#6a8096;font-size:.88rem;line-height:1.45}
body .distribution-count{display:grid;place-items:center;min-width:42px;height:42px;padding:0 12px;border-radius:15px;background:#eaf3ff;color:#2563eb;font-weight:950}
body .distribution-search{display:grid;grid-template-columns:30px minmax(0,1fr);align-items:center;min-height:48px;padding:0 12px;border-radius:16px;background:#fff;border:1px solid #d9e5f0;margin-bottom:12px}
body .distribution-search span{display:grid;place-items:center;color:#69809a}
body .distribution-search svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round}
body .distribution-search input{min-width:0;border:0;outline:0;background:transparent;color:#172b45}
body .distribution-order-list{display:flex;flex-direction:column;gap:10px;max-height:650px;overflow:auto;padding-right:3px}
body .distribution-order-card{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);gap:11px;padding:14px;border-radius:20px;background:#fff;border:1px solid #dce7f1;cursor:pointer;transition:.18s ease;box-shadow:0 9px 22px rgba(15,23,42,.035)}
body .distribution-order-card:hover{transform:translateY(-2px);border-color:#b8d2ff;box-shadow:0 14px 28px rgba(37,99,235,.09)}
body .distribution-order-card>input{position:absolute;opacity:0;pointer-events:none}
body .distribution-order-select{display:grid;place-items:center;width:22px;height:22px;border-radius:8px;background:#eef3f8;color:transparent;border:1px solid #d4e0eb;margin-top:1px}
body .distribution-order-select svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
body .distribution-order-card:has(input:checked){border-color:#8fbcff;background:linear-gradient(180deg,#f8fbff,#eef5ff);box-shadow:0 14px 30px rgba(37,99,235,.10)}
body .distribution-order-card:has(input:checked) .distribution-order-select{background:#2563eb;color:#fff;border-color:#2563eb}
body .distribution-order-main{min-width:0}
body .distribution-order-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
body .distribution-order-top strong{color:#1d4ed8;font-size:.9rem}
body .distribution-order-top em{font-style:normal;padding:.25rem .48rem;border-radius:999px;font-size:.62rem;font-weight:900;text-transform:uppercase}
body .distribution-order-top em.priority-urgente,body .distribution-order-top em.priority-alta{background:#fff0ef;color:#c52b1f;border:1px solid #ffc9c5}
body .distribution-order-top em.priority-normal{background:#fff8e9;color:#a76600;border:1px solid #f1d69f}
body .distribution-order-top em.priority-baja{background:#ebfbf3;color:#0b8a56;border:1px solid #c7edda}
body .distribution-order-client{display:block;margin-top:8px;color:#10243d;font-size:1rem;font-weight:900}
body .distribution-order-recipient{display:block;margin-top:2px;color:#3e5874;font-weight:750}
body .distribution-order-address{display:block;margin-top:6px;color:#71869b;font-size:.82rem;line-height:1.4}
body .distribution-order-meta{display:flex;justify-content:space-between;gap:8px;align-items:center;margin-top:10px;padding-top:9px;border-top:1px solid #edf1f5;font-size:.74rem}
body .distribution-order-meta b{color:#334e6c}.distribution-order-meta i{font-style:normal;color:#67809a;text-align:right}
body .distribution-empty-state{display:flex;flex-direction:column;align-items:center;text-align:center;padding:34px 18px;color:#70869d}
body .distribution-empty-state>span{display:grid;place-items:center;width:58px;height:58px;border-radius:20px;background:#edf5ff;color:#2563eb;margin-bottom:12px}
body .distribution-empty-state svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8}
body .distribution-empty-state strong{color:#19314e}.distribution-empty-state p{margin:6px 0 0;font-size:.86rem}
body .distribution-main{background:#f6f9fc}
body .distribution-controls{padding:20px 22px;background:#fff;border-bottom:1px solid #dfe8f1}
body .distribution-control-title{display:flex;align-items:center;gap:13px;margin-bottom:16px}
body .distribution-control-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:16px;background:linear-gradient(135deg,#0d2a55,#2563eb);color:#fff;box-shadow:0 12px 24px rgba(37,99,235,.16)}
body .distribution-control-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body .distribution-control-grid{display:grid;grid-template-columns:minmax(150px,.8fr) minmax(150px,.8fr) minmax(250px,1.25fr) auto;gap:12px;align-items:end}
body .distribution-control-origin{min-width:0}
body .distribution-inline-field{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
body .distribution-optimize-btn{min-height:48px;white-space:nowrap}
body .distribution-map-shell{padding:16px 18px 18px;background:#eef4fa}
body .distribution-map-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:12px}
body .distribution-map-toolbar>div:first-child{display:grid;grid-template-columns:12px auto;column-gap:8px;align-items:center}
body .distribution-map-toolbar strong{color:#10243d}
body .distribution-map-toolbar small{grid-column:2;color:#71869b;font-size:.78rem}
body .distribution-live-dot{width:9px;height:9px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 5px rgba(34,197,94,.12);display:inline-block}
body .distribution-map-legend{display:flex;gap:12px;flex-wrap:wrap;font-size:.73rem;color:#657d96}
body .distribution-map-legend span{display:inline-flex;align-items:center;gap:5px}
body .distribution-map-legend i{display:inline-block;width:10px;height:10px;border-radius:50%}
body .legend-destination{background:#64748b}.legend-selected{background:#0ea5e9}.legend-route{background:#2563eb;border-radius:3px!important;width:18px!important;height:4px!important}
body #routingMap{height:560px;border-radius:22px;border:1px solid #cfdce9;background:#dce9f5;box-shadow:0 14px 28px rgba(15,23,42,.07);overflow:hidden}
body .distribution-map-pin{background:transparent!important;border:0!important}
body .distribution-map-pin span{display:block;width:24px;height:30px;background:linear-gradient(180deg,#60758e,#344861);clip-path:polygon(50% 100%,5% 42%,8% 22%,20% 8%,38% 0,62% 0,80% 8%,92% 22%,95% 42%);filter:drop-shadow(0 5px 4px rgba(15,23,42,.25));position:relative}
body .distribution-map-pin span::after{content:"";position:absolute;left:8px;top:7px;width:8px;height:8px;border-radius:50%;background:#fff}
body .distribution-number-marker{background:transparent!important;border:0!important}
body .distribution-number-marker span{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#0ea5e9;color:#fff;border:3px solid #fff;box-shadow:0 7px 18px rgba(15,23,42,.25);font-size:.78rem;font-weight:950}
body .distribution-number-marker.is-route span{width:38px;height:38px;background:#2563eb;box-shadow:0 8px 20px rgba(37,99,235,.35)}
body .distribution-route-summary{padding:22px;background:#fff;border-top:1px solid #dfe8f1}
body .distribution-summary-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:15px}
body .distribution-summary-status{display:inline-flex;align-items:center;padding:.45rem .7rem;border-radius:999px;background:#f1f5f9;color:#64748b;font-size:.76rem;font-weight:850}
body .distribution-summary-status.is-ready{background:#eafaf2;color:#087d4d;border:1px solid #c6ecd9}
body .distribution-summary-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}
body .distribution-summary-metrics article{padding:13px 15px;border-radius:17px;background:#f5f8fb;border:1px solid #e0e8f0}
body .distribution-summary-metrics small{display:block;color:#71869b;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em}
body .distribution-summary-metrics strong{display:block;margin-top:4px;color:#10243d;font-size:1.15rem}
body .distribution-stop-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;max-height:360px;overflow:auto}
body .distribution-stop-list li:not(.distribution-stop-placeholder){display:grid;grid-template-columns:38px minmax(0,1fr);gap:11px;padding:12px 13px;border-radius:16px;background:#f8fafc;border:1px solid #e1e8f0}
body .distribution-stop-index{display:grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#2563eb;color:#fff;font-weight:950}
body .distribution-stop-list strong{display:block;color:#17304e;font-size:.9rem}.distribution-stop-list li span:not(.distribution-stop-index){display:block;margin-top:2px;color:#5f7690;font-size:.82rem}.distribution-stop-list small{display:block;margin-top:4px;color:#7d91a5;font-size:.74rem}
body .distribution-stop-placeholder{padding:18px;border-radius:16px;background:#f8fafc;color:#73879d;text-align:center;border:1px dashed #ccd9e5}
body .distribution-save-route-form{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:16px;padding-top:15px;border-top:1px solid #e5ebf1}
body .distribution-history{background:#fff}
body .distribution-history .card-body{padding:22px}
body .distribution-history-table thead th{font-size:.72rem;text-transform:uppercase;letter-spacing:.045em;color:#6a8096;background:#f4f7fa}
body .distribution-history-table td:first-child small{display:block;margin-top:5px;color:#6d8297}
body .distribution-status-form{display:flex;gap:7px;align-items:center;min-width:190px}
body .distribution-modal .modal-dialog{max-width:1040px!important}
body .distribution-modal .industrial-modal-content{max-height:min(94vh,980px)!important}
body .distribution-modal-body{padding:14px 16px 6px!important}
body .distribution-modal-hero{height:142px!important;min-height:142px!important}
body .distribution-address-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:9px;align-items:center}
body .distribution-location-feedback{display:flex;align-items:center;gap:9px;margin-top:11px;padding:10px 12px;border-radius:14px;background:#f7f9fc;color:#697f96;border:1px solid #dee7f0;font-size:.82rem;font-weight:750}
body .distribution-location-feedback.is-confirmed{background:#ebfaf3;color:#087c4c;border-color:#c8ead9}
body .distribution-picker-map{height:285px;margin-top:10px;border-radius:18px;border:1px solid #cedce9;overflow:hidden;background:#dce8f4}
body .distribution-save-recipient{display:flex;align-items:center;gap:9px;margin-top:11px;padding:11px 13px;border-radius:14px;background:#eef5ff;color:#264a78;font-weight:750;border:1px solid #d5e4f8;cursor:pointer}
body .distribution-save-recipient input{transform:scale(1.12)}
body .industrial-form-modal .industrial-modal-close{z-index:20!important;display:grid!important;place-items:center!important;width:50px!important;height:50px!important;border-radius:16px!important;background:rgba(3,14,31,.92)!important;border:1px solid rgba(255,255,255,.22)!important;color:#fff!important;opacity:1!important;background-image:none!important;filter:none!important;padding:0!important}
body .industrial-form-modal .industrial-modal-close span{display:block!important;color:#fff!important;font-size:2rem!important;font-weight:700!important;line-height:1!important;margin-top:-3px}
body .industrial-form-modal .industrial-modal-close::before,body .industrial-form-modal .industrial-modal-close::after{display:none!important;content:none!important}
@media(max-width:1350px){body .distribution-board{grid-template-columns:350px minmax(0,1fr)}body .distribution-control-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body .distribution-optimize-btn{width:100%}}
@media(max-width:1100px){body .distribution-hero-grid{grid-template-columns:1fr}body .distribution-hero-visual{min-height:260px}body .distribution-steps,body .distribution-stats{grid-template-columns:repeat(2,minmax(0,1fr))}body .distribution-board{grid-template-columns:1fr}body .distribution-sidebar{position:relative;top:auto}body .distribution-order-list{max-height:460px}}
@media(max-width:767px){
  body .distribution-hero-copy{padding:26px 22px}body .distribution-hero-copy h2{font-size:1.72rem}body .distribution-hero-copy p{font-size:.92rem}body .distribution-hero-visual{min-height:220px}
  body .distribution-steps,body .distribution-stats{grid-template-columns:1fr}body .distribution-step-card{grid-template-columns:38px 44px minmax(0,1fr);min-height:92px;padding:13px}
  body .distribution-control-grid,body .distribution-summary-metrics{grid-template-columns:1fr}body .distribution-inline-field{grid-template-columns:1fr}body #routingMap{height:420px}
  body .distribution-address-row{grid-template-columns:1fr}body .distribution-picker-map{height:240px}body .distribution-modal .modal-dialog{width:calc(100vw - 12px)!important;margin:6px auto!important}
  body .distribution-modal .industrial-modal-content{max-height:calc(100vh - 12px)!important;border-radius:22px!important}body .distribution-modal-hero{height:120px!important;min-height:120px!important}
  body .distribution-summary-head,body .distribution-map-toolbar{align-items:flex-start}body .distribution-map-legend{display:none}body .distribution-save-route-form{flex-direction:column}body .distribution-save-route-form .btn{width:100%}
}

/* ========================================================================
   EDICIÓN ENTERPRISE V12 · NAVEGACIÓN LIMPIA + MANTENIMIENTO + BÚSQUEDA POI
   ======================================================================== */
body .sidebar-link-text-only,
body .sidebar-sublink-text-only{
  grid-template-columns:minmax(0,1fr) 22px !important;
  min-height:50px !important;
  padding:.78rem .95rem !important;
  border-radius:16px !important;
  font-size:.91rem !important;
  background:linear-gradient(180deg,rgba(255,255,255,.024),rgba(255,255,255,.012)) !important;
}
body .sidebar-link-text-only.active,
body .sidebar-sublink-text-only.active{
  background:linear-gradient(135deg,#173f82 0%,#123262 100%) !important;
  box-shadow:0 10px 22px rgba(2,10,27,.22), inset 0 1px 0 rgba(255,255,255,.08) !important;
}
body .sidebar-group-toggle{
  min-height:50px !important;
  padding:.78rem .95rem !important;
}
body .sidebar-group-title{gap:0 !important;font-size:.93rem !important;}
body .sidebar-group-children{padding:.38rem 0 .18rem .35rem !important;}
body.sidebar-collapsed .sidebar-link-text-only,
body.sidebar-collapsed .sidebar-sublink-text-only{
  display:none !important;
}
body.sidebar-collapsed .sidebar-group-toggle{display:none !important;}
body .role-chip-simple{
  min-width:118px;
  min-height:50px;
  display:grid;
  place-items:center;
  padding:.7rem 1rem;
  border-radius:16px;
  background:#fff;
  border:1px solid #d8e3ee;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}
body .role-chip-simple strong{font-size:.96rem;color:#0f2037;}

/* Recuperación del inicio de mantenimiento y rediseño solo de los 3 procesos solicitados */
body .maintenance-submodule-grid-v12{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}
body .maintenance-submodule-card-classic{
  min-height:112px !important;
  border-radius:20px !important;
  background:linear-gradient(145deg,#fff,#f8fbff) !important;
  border:1px solid #dbe6f2 !important;
  color:inherit !important;
  box-shadow:0 10px 24px rgba(15,23,42,.05) !important;
}
body .maintenance-submodule-card-classic .maintenance-submodule-copy strong{color:#102139 !important;font-size:.95rem !important;}
body .maintenance-submodule-card-classic .maintenance-submodule-copy small{color:#6c7e94 !important;}
body .maintenance-submodule-card-classic .maintenance-submodule-icon{background:#edf4ff !important;border-color:#d5e5fb !important;color:#2563eb !important;}
body .maintenance-submodule-card-classic .maintenance-submodule-arrow{background:#eef5ff !important;color:#2563eb !important;}
body .maintenance-operation-card{
  position:relative;
  overflow:hidden;
  min-height:210px;
  display:grid;
  grid-template-columns:110px minmax(0,1fr) auto;
  align-items:stretch;
  gap:18px;
  padding:20px;
  text-decoration:none;
  color:#10233b;
  border-radius:24px;
  border:1px solid #d7e3ee;
  background:linear-gradient(145deg,#ffffff 0%,#f4f8fc 100%);
  box-shadow:0 16px 38px rgba(15,23,42,.075);
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
body .maintenance-operation-card::after{
  content:"";
  position:absolute;
  right:-54px;
  top:-54px;
  width:170px;
  height:170px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(37,99,235,.12),rgba(37,99,235,0) 72%);
  pointer-events:none;
}
body .maintenance-operation-card:hover{
  transform:translateY(-4px);
  border-color:#a9c7f3;
  box-shadow:0 22px 48px rgba(37,99,235,.12);
}
body .maintenance-operation-visual{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:12px;
  border-radius:20px;
  background:linear-gradient(155deg,#0a1f40 0%,#123d78 100%);
  color:#fff;
  min-width:0;
}
body .maintenance-operation-icon{width:62px;height:62px;display:grid;place-items:center;border-radius:18px;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);}
body .maintenance-operation-icon svg{width:31px;height:31px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .maintenance-operation-status{font-size:.64rem;font-weight:850;text-transform:uppercase;letter-spacing:.05em;color:#d9e8ff;text-align:center;}
body .maintenance-operation-status i{display:inline-block;width:7px;height:7px;border-radius:50%;background:#34d399;margin-right:5px;box-shadow:0 0 0 4px rgba(52,211,153,.14);}
body .maintenance-operation-body{display:flex;flex-direction:column;justify-content:center;min-width:0;}
body .maintenance-operation-eyebrow{font-size:.68rem;text-transform:uppercase;letter-spacing:.07em;color:#52708e;font-weight:900;margin-bottom:7px;}
body .maintenance-operation-body>strong{font-size:1.28rem;line-height:1.18;color:#0b1e36;font-weight:950;}
body .maintenance-operation-body>small{margin-top:9px;color:#5f748b;font-size:.86rem;line-height:1.48;max-width:700px;}
body .maintenance-operation-features{display:flex;gap:7px;flex-wrap:wrap;margin-top:14px;}
body .maintenance-operation-features b{font-size:.68rem;padding:.38rem .58rem;border-radius:999px;background:#eef5ff;border:1px solid #d7e6f8;color:#315d91;}
body .maintenance-operation-action{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;position:relative;z-index:1;}
body .maintenance-operation-action span{font-size:.72rem;color:#55708d;font-weight:850;}
body .maintenance-operation-action i{width:38px;height:38px;display:grid;place-items:center;border-radius:14px;background:#0f3d7a;color:#fff;font-style:normal;font-weight:900;}
body .maintenance-operation-stock{border-left:5px solid #0ea5e9;}
body .maintenance-operation-asset{border-left:5px solid #7c3aed;}
body .maintenance-operation-truck{border-left:5px solid #0f766e;}

/* Buscador de empresas y lugares conocidos */
body .distribution-place-search-panel{
  margin:18px 18px 0;
  padding:18px;
  border-radius:22px;
  background:linear-gradient(135deg,#ffffff 0%,#f3f7fb 100%);
  border:1px solid #d8e4ef;
  box-shadow:0 14px 30px rgba(15,23,42,.055);
}
body .distribution-place-search-copy h2{margin:.2rem 0 .35rem;font-size:1.2rem;color:#10243d;font-weight:900;}
body .distribution-place-search-copy p{margin:0 0 14px;color:#657b92;font-size:.86rem;line-height:1.45;}
body .distribution-place-search-input{display:grid;grid-template-columns:38px minmax(0,1fr) auto;gap:8px;align-items:center;padding:7px;border-radius:18px;background:#fff;border:1px solid #d5e1ec;}
body .distribution-place-search-input>span{display:grid;place-items:center;width:38px;height:38px;color:#2563eb;}
body .distribution-place-search-input svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.9;}
body .distribution-place-search-input input{border:0;outline:0;min-width:0;font-size:.96rem;color:#13263f;}
body .distribution-place-results{margin-top:10px;padding:8px;border-radius:16px;background:#fff;border:1px solid #d9e4ee;box-shadow:0 16px 34px rgba(15,23,42,.08);display:flex;flex-direction:column;gap:6px;max-height:300px;overflow:auto;}
body .distribution-place-results.compact{max-height:230px;}
body .distribution-place-result{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) auto;gap:10px;align-items:center;text-align:left;padding:10px 11px;border-radius:13px;border:1px solid transparent;background:#f8fafc;color:#13263f;transition:.18s;}
body .distribution-place-result:hover{background:#edf5ff;border-color:#cfe0f5;}
body .distribution-place-result-pin{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#eaf2ff;color:#2563eb;font-weight:900;}
body .distribution-place-result strong{display:block;font-size:.88rem;}
body .distribution-place-result small{display:block;margin-top:3px;color:#6d8196;font-size:.76rem;line-height:1.35;}
body .distribution-place-result em{font-style:normal;font-size:.64rem;padding:.28rem .45rem;border-radius:999px;background:#eef2f7;color:#62758a;font-weight:850;}
body .distribution-place-empty{padding:16px;text-align:center;color:#708398;font-size:.84rem;}
body .distribution-place-feedback{display:flex;align-items:center;gap:9px;margin-top:10px;color:#657b92;font-size:.8rem;min-height:28px;flex-wrap:wrap;}
body .distribution-live-dot.is-error{background:#ef4444;box-shadow:0 0 0 5px rgba(239,68,68,.11);}
body .distribution-inline-action{border:0;background:#eaf2ff;color:#1d4ed8;border-radius:999px;padding:.35rem .65rem;font-size:.73rem;font-weight:850;}
body .distribution-search-marker{background:transparent!important;border:0!important;}
body .distribution-search-marker span{display:grid;place-items:center;width:46px;height:46px;border-radius:50%;background:linear-gradient(135deg,#2563eb,#0ea5e9);color:#fff;border:4px solid #fff;box-shadow:0 10px 26px rgba(37,99,235,.35);font-size:1.25rem;font-weight:900;}

@media(max-width:1000px){
  body .maintenance-submodule-grid-v12{grid-template-columns:1fr;}
}
@media(max-width:767px){
  body .role-chip-simple{min-width:auto;min-height:46px;padding:.6rem .82rem;}
  body .maintenance-operation-card{grid-template-columns:76px minmax(0,1fr);min-height:0;padding:16px;}
  body .maintenance-operation-visual{min-height:118px;}
  body .maintenance-operation-action{grid-column:1/-1;flex-direction:row;align-items:center;justify-content:flex-end;gap:10px;}
  body .distribution-place-search-panel{margin:12px 12px 0;padding:14px;}
  body .distribution-place-search-input{grid-template-columns:34px minmax(0,1fr);}
  body .distribution-place-search-input .btn{grid-column:1/-1;width:100%;}
  body .distribution-place-result{grid-template-columns:30px minmax(0,1fr);}
  body .distribution-place-result em{display:none;}
}

/* Flujos guiados para Inventario, Activos y Flota */
body .enterprise-workflow-strip{
  position:relative;
  overflow:hidden;
  display:grid;
  grid-template-columns:minmax(260px,.8fr) minmax(0,1.7fr);
  gap:22px;
  align-items:center;
  padding:22px;
  border-radius:26px;
  background:linear-gradient(135deg,#07172f 0%,#0d2d5c 58%,#15498a 100%);
  color:#fff;
  box-shadow:0 22px 52px rgba(2,10,27,.18);
  border:1px solid rgba(91,143,231,.18);
}
body .enterprise-workflow-strip::after{
  content:"";
  position:absolute;
  right:-80px;
  top:-110px;
  width:310px;
  height:310px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(96,165,250,.20),rgba(96,165,250,0) 68%);
  pointer-events:none;
}
body .enterprise-workflow-intro{position:relative;z-index:1;}
body .enterprise-workflow-intro>span{display:inline-flex;padding:.38rem .64rem;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.11);color:#bcd8ff;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.07em;}
body .enterprise-workflow-intro h2{margin:.7rem 0 .45rem;color:#fff;font-size:1.38rem;font-weight:950;}
body .enterprise-workflow-intro p{margin:0;color:#cbdaf0;font-size:.85rem;line-height:1.5;}
body .enterprise-workflow-actions{position:relative;z-index:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
body .enterprise-workflow-actions a{display:grid;grid-template-columns:38px minmax(0,1fr) 24px;gap:10px;align-items:center;min-height:92px;padding:13px;border-radius:18px;text-decoration:none;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.09);color:#f7fbff;transition:.2s;}
body .enterprise-workflow-actions a:hover{transform:translateY(-2px);background:rgba(255,255,255,.12);border-color:rgba(137,184,255,.28);}
body .enterprise-workflow-actions b{display:grid;place-items:center;width:38px;height:38px;border-radius:13px;background:#2563eb;color:#fff;font-size:.74rem;}
body .enterprise-workflow-actions strong{display:block;color:#fff;font-size:.83rem;line-height:1.25;}
body .enterprise-workflow-actions small{display:block;margin-top:4px;color:#bcd0e8;font-size:.69rem;line-height:1.35;}
body .enterprise-workflow-actions i{font-style:normal;color:#bcd5fa;font-size:1.1rem;text-align:right;}
body .enterprise-workflow-stock{background:linear-gradient(135deg,#07172f 0%,#0b3156 55%,#0f5c7b 100%);}
body .enterprise-workflow-asset{background:linear-gradient(135deg,#11132f 0%,#2b2364 54%,#5b3ca1 100%);}
body .enterprise-workflow-fleet{background:linear-gradient(135deg,#061a2e 0%,#0c3a4c 54%,#0f6b69 100%);}
body .enterprise-task-card{scroll-margin-top:100px;border-radius:24px!important;border:1px solid #d9e4ee!important;box-shadow:0 14px 34px rgba(15,23,42,.06)!important;overflow:hidden;}
body .enterprise-task-card>.card-body{padding:22px!important;}
body .enterprise-guided-grid .form-label{font-size:.76rem;font-weight:850;color:#425c78;}
body .enterprise-guided-grid .form-control,body .enterprise-guided-grid .form-select{min-height:46px;border-radius:14px;border-color:#d3dfeb;background:#fbfdff;}
body .enterprise-guided-grid textarea.form-control{min-height:auto;}
@media(max-width:1150px){
  body .enterprise-workflow-strip{grid-template-columns:1fr;}
}
@media(max-width:850px){
  body .enterprise-workflow-actions{grid-template-columns:1fr;}
}
@media(max-width:560px){
  body .enterprise-workflow-strip{padding:17px;border-radius:22px;}
  body .enterprise-workflow-actions a{min-height:82px;}
}

/* ========================================================================
   EDICIÓN INDUSTRIAL V13 · INVENTARIO, FLOTA Y CONFIABILIDAD DE ACTIVOS
   ======================================================================== */
body .sidebar-link,
body .sidebar-sublink{grid-template-columns:minmax(0,1fr)!important;}
body .home-module-tile{grid-template-columns:48px minmax(0,1fr)!important;}
body .maintenance-submodule-card-classic{grid-template-columns:50px minmax(0,1fr)!important;}
body .maintenance-operation-action{
  align-self:center;
  justify-content:center;
  padding:.48rem .7rem;
  border-radius:999px;
  background:#edf4ff;
  border:1px solid #d6e5f8;
}
body .maintenance-operation-action span{color:#2e5f99;font-weight:900;white-space:nowrap;}
body .home-module-arrow,
body .indicator-open-arrow,
body .maintenance-submodule-arrow,
body .sidebar-item-arrow,
body .enterprise-workflow-actions i,
body .maintenance-hub-stat-link i,
body .maintenance-operation-action i{display:none!important;}

body .ops-hero{
  --ops-hero-image:none;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:360px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  align-items:end;
  gap:30px;
  margin-bottom:18px;
  padding:38px 40px;
  border-radius:30px;
  color:#fff;
  background-image:
    linear-gradient(90deg,rgba(3,14,34,.98) 0%,rgba(5,25,55,.91) 37%,rgba(5,26,56,.46) 65%,rgba(3,12,29,.34) 100%),
    linear-gradient(180deg,rgba(4,15,34,.05) 40%,rgba(3,13,30,.88) 100%),
    var(--ops-hero-image);
  background-size:cover;
  background-position:center;
  border:1px solid rgba(102,159,239,.22);
  box-shadow:0 26px 70px rgba(2,10,27,.22);
}
body .ops-hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:radial-gradient(circle at 15% 15%,rgba(58,137,255,.22),transparent 35%);
  pointer-events:none;
}
body .ops-hero-content{max-width:790px;align-self:center;}
body .ops-hero-kicker{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:.45rem .7rem;
  border-radius:999px;
  background:rgba(15,71,139,.44);
  border:1px solid rgba(132,186,255,.24);
  color:#c7e3ff;
  font-size:.7rem;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
  backdrop-filter:blur(8px);
}
body .ops-hero-kicker i{width:8px;height:8px;border-radius:50%;background:#38d39f;box-shadow:0 0 0 5px rgba(56,211,159,.13);}
body .ops-hero h1{margin:18px 0 12px;max-width:730px;color:#fff;font-size:clamp(2.15rem,4vw,3.65rem);line-height:.98;letter-spacing:-.055em;font-weight:950;}
body .ops-hero p{margin:0;max-width:700px;color:#d5e4f5;font-size:1rem;line-height:1.62;}
body .ops-hero-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px;}
body .ops-btn-primary{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.7rem 1.08rem;
  border-radius:14px;
  border:1px solid #2f78ed;
  background:linear-gradient(135deg,#2f72ed,#1e55c7);
  color:#fff!important;
  font-weight:900;
  box-shadow:0 12px 26px rgba(28,82,189,.25);
}
body .ops-btn-primary:hover{background:linear-gradient(135deg,#3b82f6,#1d4ed8);transform:translateY(-1px);}
body .ops-btn-glass{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:.7rem 1rem;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.19);
  background:rgba(8,31,66,.56);
  color:#f5f9ff!important;
  font-weight:850;
  backdrop-filter:blur(10px);
}
body .ops-btn-glass:hover{background:rgba(24,71,132,.68);border-color:rgba(151,195,255,.38);}
body .ops-hero-status{
  align-self:end;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:18px 20px;
  border-radius:20px;
  background:rgba(3,17,39,.76);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 18px 38px rgba(2,8,23,.24);
  backdrop-filter:blur(13px);
}
body .ops-hero-status>span{display:flex;align-items:center;gap:8px;color:#b9cee7;font-size:.7rem;text-transform:uppercase;letter-spacing:.07em;font-weight:900;}
body .ops-hero-status strong{color:#fff;font-size:1.05rem;line-height:1.3;}
body .ops-hero-status small{color:#9db4cf;font-size:.76rem;}

body .ops-command-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:18px;}
body .ops-command-card{
  --ops-tone:#2563eb;
  --ops-tone-soft:#eaf2ff;
  appearance:none;
  width:100%;
  min-height:116px;
  display:grid;
  grid-template-columns:52px minmax(0,1fr);
  align-items:center;
  gap:13px;
  padding:16px;
  text-align:left;
  text-decoration:none;
  color:#12253e;
  border:1px solid #d9e5f0;
  border-radius:21px;
  background:linear-gradient(145deg,#fff,#f6f9fc);
  box-shadow:0 12px 30px rgba(15,23,42,.055);
  transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
}
body .ops-command-card:hover{color:#12253e;transform:translateY(-3px);border-color:#b7cdeb;box-shadow:0 18px 38px rgba(15,23,42,.10);}
body .ops-command-card.tone-cyan{--ops-tone:#087f99;--ops-tone-soft:#e5f8fb;}
body .ops-command-card.tone-violet{--ops-tone:#6d42c5;--ops-tone-soft:#f1ebff;}
body .ops-command-card.tone-slate{--ops-tone:#425b75;--ops-tone-soft:#edf2f7;}
body .ops-command-icon{width:52px;height:52px;display:grid;place-items:center;border-radius:16px;color:var(--ops-tone);background:var(--ops-tone-soft);border:1px solid color-mix(in srgb,var(--ops-tone) 16%,white);}
body .ops-command-icon svg,body .ops-panel-icon svg,body .ops-search-field svg,body .ops-scan-result-icon svg,body .ops-material-cell>span svg,body .ops-fleet-symbol svg,body .ops-asset-visual>span svg,body .ops-modal-icon svg,body .ops-form-optional summary svg,body .ops-scan-input svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .ops-command-card>span:last-child{min-width:0;}
body .ops-command-card small,body .ops-command-lookup>small{display:block;color:var(--ops-tone);font-size:.62rem;font-style:normal;font-weight:950;letter-spacing:.065em;}
body .ops-command-card strong,body .ops-command-lookup>strong{display:block;margin-top:5px;color:#12243c;font-size:.92rem;font-weight:950;line-height:1.2;}
body .ops-command-card em{display:block;margin-top:5px;color:#6d8095;font-size:.72rem;font-style:normal;line-height:1.4;}
body .ops-lookup-card{cursor:default;}
body .ops-lookup-card:hover{transform:none;}
body .ops-command-lookup{min-width:0;}
body .ops-command-lookup>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px;margin-top:8px;}
body .ops-command-lookup input{min-width:0;height:36px;padding:0 .7rem;border:1px solid #d4e0ec;border-radius:11px;outline:0;background:#fff;color:#15283f;font-size:.75rem;}
body .ops-command-lookup input:focus{border-color:#8eb4ee;box-shadow:0 0 0 3px rgba(37,99,235,.10);}
body .ops-command-lookup button{height:36px;padding:0 .7rem;border:0;border-radius:11px;background:var(--ops-tone);color:#fff;font-size:.7rem;font-weight:900;}

body .ops-kpi-grid{display:grid;gap:12px;margin-bottom:18px;}
body .ops-kpi-grid-3{grid-template-columns:repeat(3,minmax(0,1fr));}
body .ops-kpi-grid-4{grid-template-columns:repeat(4,minmax(0,1fr));}
body .ops-kpi-grid-5{grid-template-columns:repeat(5,minmax(0,1fr));}
body .ops-kpi{position:relative;overflow:hidden;min-height:122px;padding:18px 20px;border-radius:20px;border:1px solid #dce6f0;background:linear-gradient(145deg,#fff,#f7fafc);box-shadow:0 10px 28px rgba(15,23,42,.05);}
body .ops-kpi::after{content:"";position:absolute;right:-24px;bottom:-35px;width:110px;height:110px;border-radius:50%;background:rgba(37,99,235,.05);}
body .ops-kpi>span{display:block;color:#62778e;font-size:.68rem;font-weight:900;text-transform:uppercase;letter-spacing:.055em;}
body .ops-kpi>strong{display:block;margin-top:8px;color:#10233c;font-size:2rem;line-height:1;font-weight:950;letter-spacing:-.035em;}
body .ops-kpi>small{display:block;margin-top:8px;color:#7a8ca0;font-size:.7rem;}
body .ops-kpi.is-critical{border-color:#f3c5c5;background:linear-gradient(145deg,#fff,#fff5f5);}
body .ops-kpi.is-critical::after{background:rgba(220,38,38,.06);}
body .ops-kpi.is-critical>strong{color:#c52c2c;}

body .ops-scan-result{display:grid;grid-template-columns:58px minmax(0,1fr) auto auto;gap:16px;align-items:center;padding:17px 20px;border-radius:22px;border:1px solid #bfd6f1;background:linear-gradient(135deg,#f7fbff,#edf5ff);box-shadow:0 12px 28px rgba(37,99,235,.07);}
body .ops-scan-result-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:#2563eb;color:#fff;}
body .ops-scan-result>div>small{color:#5277a8;font-size:.65rem;font-weight:900;letter-spacing:.06em;}
body .ops-scan-result h2{margin:.2rem 0;color:#13263f;font-size:1.2rem;font-weight:950;}
body .ops-scan-result p{margin:0;color:#6a7f96;font-size:.78rem;}
body .ops-scan-stock{min-width:140px;padding:0 18px;border-left:1px solid #cfdded;}
body .ops-scan-stock span,body .ops-scan-stock small{display:block;color:#6a7e95;font-size:.68rem;}
body .ops-scan-stock strong{display:block;margin:.18rem 0;color:#12325d;font-size:1.65rem;line-height:1;font-weight:950;}
body .ops-scan-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end;}

body .ops-dashboard-layout{display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:16px;align-items:start;}
body .ops-panel{overflow:hidden;border-radius:24px;border:1px solid #dae5ef;background:#fff;box-shadow:0 14px 36px rgba(15,23,42,.06);}
body .ops-panel-main{min-width:0;}
body .ops-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;padding:21px 22px;border-bottom:1px solid #e5edf4;background:linear-gradient(180deg,#fff,#fbfdff);}
body .ops-panel-head>div:first-child>span{display:block;color:#2c67b8;font-size:.65rem;font-weight:950;letter-spacing:.075em;}
body .ops-panel-head h2{margin:.35rem 0 .2rem;color:#11243d;font-size:1.25rem;font-weight:950;letter-spacing:-.02em;}
body .ops-panel-head p{margin:0;color:#708398;font-size:.76rem;}
body .ops-panel-head.compact{align-items:center;padding:17px 18px;}
body .ops-panel-head.compact h2{font-size:1.02rem;margin-bottom:0;}
body .ops-panel-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:#edf4ff;color:#2563eb;}
body .ops-count-badge{min-width:38px;height:38px;display:grid;place-items:center;padding:0 .7rem;border-radius:13px;background:#edf4ff;color:#2563eb;font-size:.85rem;font-weight:950;}
body .ops-count-badge.is-critical{background:#fff0f0;color:#cc2e2e;}
body .ops-filter-bar{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end;}
body .ops-search-field{min-width:230px;height:42px;display:grid;grid-template-columns:22px minmax(0,1fr);gap:7px;align-items:center;padding:0 .75rem;border:1px solid #d7e2ed;border-radius:13px;background:#fff;color:#66809e;}
body .ops-search-field svg{width:18px;height:18px;}
body .ops-search-field input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:#162a43;font-size:.78rem;}
body .ops-filter-bar select{height:42px;padding:0 2rem 0 .75rem;border:1px solid #d7e2ed;border-radius:13px;background-color:#fff;color:#405a76;font-size:.76rem;font-weight:800;}
body .ops-table-wrap{max-height:620px;overflow:auto;}
body .ops-table{font-size:.78rem;}
body .ops-table thead{position:sticky;top:0;z-index:2;}
body .ops-table thead th{padding:.8rem .75rem;background:#f0f5fa;color:#5d7289;border-bottom:1px solid #dce6ef;font-size:.65rem;text-transform:uppercase;letter-spacing:.045em;white-space:nowrap;}
body .ops-table tbody td{padding:.78rem .75rem;border-color:#edf2f6;color:#21364f;vertical-align:middle;}
body .ops-table tbody tr:hover{background:#f8fbff;}
body .ops-material-cell{display:grid;grid-template-columns:43px minmax(150px,1fr);gap:10px;align-items:center;}
body .ops-material-cell img,body .ops-material-cell>span{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;object-fit:cover;background:#edf4ff;color:#2563eb;border:1px solid #dae6f4;}
body .ops-material-cell>span svg{width:21px;height:21px;}
body .ops-material-cell strong,body .ops-material-cell small{display:block;}
body .ops-material-cell strong{color:#14273f;font-size:.8rem;}
body .ops-material-cell small{margin-top:3px;color:#7a8b9e;font-size:.68rem;}
body .ops-code{display:inline-flex;padding:.32rem .5rem;border-radius:9px;background:#eef3f8;color:#33516f;font-size:.7rem;font-weight:900;letter-spacing:.02em;}
body .ops-stock-value{display:flex;align-items:baseline;gap:4px;color:#183a64;}
body .ops-stock-value strong{font-size:1.12rem;font-weight:950;}
body .ops-stock-value span{font-size:.67rem;color:#6f8296;}
body .ops-stock-value.is-critical{color:#c72d2d;}
body .ops-threshold{font-weight:850;color:#3f5670;}
body .ops-alert-copy,body .ops-ok-copy{display:block;margin-top:3px;font-size:.62rem;font-weight:900;}
body .ops-alert-copy{color:#cc3030;}
body .ops-ok-copy{color:#14845b;}
body .ops-location{display:block;max-width:150px;color:#314d6c;font-size:.75rem;}
body .ops-row-actions{display:flex;gap:6px;flex-wrap:wrap;}
body .ops-row-actions a{padding:.32rem .5rem;border-radius:9px;background:#edf4ff;color:#255ca7;text-decoration:none;font-size:.66rem;font-weight:900;}
body .ops-no-results{padding:26px;text-align:center;color:#708399;font-size:.8rem;}
body .ops-side-stack{display:grid;gap:16px;}
body .ops-alert-list{display:grid;gap:0;padding:4px 16px 14px;}
body .ops-alert-item{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;padding:13px 2px;border-bottom:1px solid #edf2f6;}
body .ops-alert-item:last-child{border-bottom:0;}
body .ops-alert-item>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#fff0f0;color:#d23838;}
body .ops-alert-item>span svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .ops-alert-item strong,body .ops-alert-item small,body .ops-alert-item p{display:block;}
body .ops-alert-item strong{color:#18304b;font-size:.78rem;}
body .ops-alert-item small{margin-top:3px;color:#7a8b9d;font-size:.67rem;}
body .ops-alert-item p{margin:.35rem 0 0;color:#5f748b;font-size:.68rem;line-height:1.4;}
body .ops-alert-item a{display:inline-flex;margin-top:6px;color:#2563eb;font-size:.68rem;font-weight:900;text-decoration:none;}
body .ops-positive-state{display:grid!important;grid-template-columns:40px minmax(0,1fr)!important;gap:10px;align-items:center;padding:17px 2px!important;}
body .ops-positive-state>span{width:40px;height:40px;display:grid;place-items:center;border-radius:13px;background:#e8f8f1;color:#11865d;font-weight:950;}
body .ops-positive-state strong,body .ops-positive-state small{display:block;}
body .ops-positive-state strong{color:#1a4438;font-size:.78rem;}
body .ops-positive-state small{margin-top:3px;color:#6f887f;font-size:.68rem;line-height:1.4;}
body .ops-timeline{display:grid;padding:7px 17px 15px;}
body .ops-timeline-item{position:relative;display:grid;grid-template-columns:12px minmax(0,1fr);gap:10px;padding:10px 0;}
body .ops-timeline-item:not(:last-child)::after{content:"";position:absolute;left:5px;top:25px;bottom:-5px;width:2px;background:#e1eaf3;}
body .ops-timeline-item>i{position:relative;z-index:1;width:12px;height:12px;margin-top:3px;border-radius:50%;background:#8095aa;box-shadow:0 0 0 4px #eef3f7;}
body .ops-timeline-item>i.is-in{background:#13986b;box-shadow:0 0 0 4px #e6f7f0;}
body .ops-timeline-item>i.is-out{background:#d04444;box-shadow:0 0 0 4px #fceaea;}
body .ops-timeline-item strong,body .ops-timeline-item span,body .ops-timeline-item small{display:block;}
body .ops-timeline-item strong{color:#1a304a;font-size:.76rem;}
body .ops-timeline-item span{margin-top:2px;color:#506a85;font-size:.68rem;font-weight:750;}
body .ops-timeline-item small{margin-top:3px;color:#8291a1;font-size:.64rem;line-height:1.4;}
body .ops-compact-list{display:grid;padding:8px 17px 16px;}
body .ops-compact-list>div:not(.ops-positive-state){display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 9px;padding:10px 0;border-bottom:1px solid #edf2f6;}
body .ops-compact-list>div>span{grid-row:1/3;padding:.25rem .4rem;border-radius:8px;background:#eff4f8;color:#4b6680;font-size:.62rem;font-weight:900;align-self:start;}
body .ops-compact-list>div>strong{font-size:.73rem;color:#1b3049;}
body .ops-compact-list>div>small{font-size:.65rem;color:#798b9f;}

body .ops-fleet-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:16px;}
body .ops-fleet-card{overflow:hidden;padding:17px;border:1px solid #dde7f0;border-radius:20px;background:linear-gradient(145deg,#fff,#f8fafc);box-shadow:0 8px 22px rgba(15,23,42,.045);}
body .ops-fleet-card.service-danger{border-color:#efc3c3;background:linear-gradient(145deg,#fff,#fff7f7);}
body .ops-fleet-card.service-warning{border-color:#eed7a9;background:linear-gradient(145deg,#fff,#fffaf1);}
body .ops-fleet-card-top{display:grid;grid-template-columns:45px minmax(0,1fr) auto;gap:10px;align-items:start;}
body .ops-fleet-symbol{width:45px;height:45px;display:grid;place-items:center;border-radius:14px;background:#eaf2ff;color:#2563eb;}
body .ops-fleet-symbol svg{width:23px;height:23px;}
body .ops-fleet-card-top small{display:block;color:#75889d;font-size:.62rem;text-transform:uppercase;font-weight:850;}
body .ops-fleet-card-top h3{margin:.18rem 0 0;color:#11243c;font-size:1.25rem;font-weight:950;letter-spacing:.015em;}
body .ops-fleet-card-top p{margin:.12rem 0 0;color:#506a85;font-size:.72rem;font-weight:800;}
body .ops-fleet-condition{display:flex;justify-content:space-between;gap:10px;margin-top:13px;padding:9px 11px;border-radius:12px;background:#eef3f8;}
body .ops-fleet-condition span{color:#72859a;font-size:.67rem;}
body .ops-fleet-condition strong{color:#294864;font-size:.7rem;}
body .ops-fleet-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-top:9px;}
body .ops-fleet-metrics>div{min-width:0;padding:9px;border-radius:12px;border:1px solid #e3eaf1;background:#fff;}
body .ops-fleet-metrics span,body .ops-fleet-metrics small{display:block;color:#7b8b9d;font-size:.58rem;}
body .ops-fleet-metrics strong{display:block;margin:.25rem 0;color:#17324f;font-size:.83rem;font-weight:950;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body .ops-fleet-card-actions,body .ops-asset-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px;}

body .ops-asset-grid{display:grid;gap:13px;padding:16px;}
body .ops-asset-card{display:grid;grid-template-columns:118px minmax(0,1fr);min-height:185px;overflow:hidden;border:1px solid #dde6ef;border-radius:21px;background:linear-gradient(145deg,#fff,#f8fafc);box-shadow:0 8px 22px rgba(15,23,42,.045);}
body .ops-asset-card.needs-attention{border-color:#efcbcb;}
body .ops-asset-visual{position:relative;overflow:hidden;min-height:185px;background:linear-gradient(150deg,#0b2343,#174b88);}
body .ops-asset-visual img{width:100%;height:100%;object-fit:cover;display:block;}
body .ops-asset-visual>span{position:absolute;inset:0;display:grid;place-items:center;color:#bcd7fb;}
body .ops-asset-visual>span svg{width:42px;height:42px;}
body .ops-asset-visual em{position:absolute;left:9px;bottom:9px;padding:.34rem .48rem;border-radius:9px;background:rgba(4,18,38,.78);border:1px solid rgba(255,255,255,.11);color:#fff;font-size:.61rem;font-style:normal;font-weight:900;backdrop-filter:blur(8px);}
body .ops-asset-body{min-width:0;padding:16px;}
body .ops-asset-title{display:flex;justify-content:space-between;gap:12px;align-items:start;}
body .ops-asset-title>div{min-width:0;}
body .ops-asset-title small{display:block;color:#71869c;font-size:.64rem;text-transform:uppercase;font-weight:850;}
body .ops-asset-title h3{margin:.2rem 0;color:#12263f;font-size:1rem;font-weight:950;}
body .ops-asset-title p{margin:0;color:#687e94;font-size:.68rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
body .ops-asset-metrics{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:7px;margin-top:13px;}
body .ops-asset-metrics>div{min-width:0;padding:9px 10px;border-radius:12px;background:#f1f5f9;border:1px solid #e1e8ef;}
body .ops-asset-metrics span,body .ops-asset-metrics strong{display:block;}
body .ops-asset-metrics span{color:#77899c;font-size:.59rem;}
body .ops-asset-metrics strong{margin-top:3px;color:#294661;font-size:.69rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}

body .ops-modal .modal-dialog{padding:12px;}
body .ops-modal .modal-content{overflow:hidden;border:1px solid #cfdce8;border-radius:27px;background:#f4f7fa;box-shadow:0 34px 90px rgba(2,10,27,.30);}
body .ops-modal-header{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr) 42px;gap:14px;align-items:center;padding:20px 22px;background:linear-gradient(135deg,#071831,#0d3265);color:#fff;}
body .ops-modal-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:rgba(73,145,244,.16);border:1px solid rgba(136,188,255,.20);color:#aed4ff;}
body .ops-modal-icon svg{width:28px;height:28px;}
body .ops-modal-header small{display:block;color:#8fc4ff;font-size:.63rem;font-weight:950;letter-spacing:.075em;}
body .ops-modal-header h2{margin:.28rem 0 .18rem;color:#fff;font-size:1.32rem;font-weight:950;}
body .ops-modal-header p{margin:0;color:#b9cce3;font-size:.74rem;line-height:1.4;}
body .ops-modal-close{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.07);color:#fff;font-size:1.45rem;line-height:1;}
body .ops-modal-close:hover{background:rgba(255,255,255,.14);}
body .ops-modal-body{padding:20px 22px;}
body .ops-form-guide{display:grid;grid-template-columns:32px minmax(0,1fr) 32px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:14px;padding:13px 15px;border-radius:16px;border:1px solid #d9e4ee;background:#fff;}
body .ops-form-guide>span{width:32px;height:32px;display:grid;place-items:center;border-radius:10px;background:#eaf2ff;color:#2563eb;font-size:.68rem;font-weight:950;}
body .ops-form-guide strong,body .ops-form-guide small{display:block;}
body .ops-form-guide strong{color:#243b55;font-size:.72rem;}
body .ops-form-guide small{margin-top:2px;color:#7b8b9c;font-size:.64rem;}
body .ops-form-section{padding:18px;margin-top:13px;border:1px solid #d9e4ee;border-radius:19px;background:#fff;}
body .ops-form-section-head{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:15px;}
body .ops-form-section-head>span{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#edf4ff;color:#2563eb;font-size:.68rem;font-weight:950;}
body .ops-form-section-head h3{margin:0;color:#1b314b;font-size:.92rem;font-weight:950;}
body .ops-form-section-head p{margin:.15rem 0 0;color:#7a8c9f;font-size:.67rem;}
body .ops-modal .form-label{margin-bottom:.35rem;color:#405a75;font-size:.68rem;font-weight:900;}
body .ops-modal .form-control,body .ops-modal .form-select{min-height:45px;border-radius:13px;border-color:#d3dfeb;background:#fbfdff;color:#182c44;font-size:.8rem;}
body .ops-modal textarea.form-control{min-height:auto;}
body .ops-modal .form-control:focus,body .ops-modal .form-select:focus{border-color:#82ace7;box-shadow:0 0 0 3px rgba(37,99,235,.10);background:#fff;}
body .ops-input-prefix,body .ops-input-suffix{display:grid;align-items:stretch;}
body .ops-input-prefix{grid-template-columns:38px minmax(0,1fr);}
body .ops-input-suffix{grid-template-columns:minmax(0,1fr) 43px;}
body .ops-input-prefix>span,body .ops-input-suffix>span{display:grid;place-items:center;background:#edf3f8;color:#597089;border:1px solid #d3dfeb;font-size:.7rem;font-weight:900;}
body .ops-input-prefix>span{border-radius:13px 0 0 13px;border-right:0;}
body .ops-input-suffix>span{border-radius:0 13px 13px 0;border-left:0;}
body .ops-input-prefix .form-control{border-radius:0 13px 13px 0;}
body .ops-input-suffix .form-control{border-radius:13px 0 0 13px;}
body .ops-form-optional{overflow:hidden;margin-top:13px;border:1px solid #d9e4ee;border-radius:19px;background:#fff;}
body .ops-form-optional summary{display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:11px;align-items:center;padding:15px 17px;cursor:pointer;list-style:none;}
body .ops-form-optional summary::-webkit-details-marker{display:none;}
body .ops-form-optional summary>span{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:#f0f4f8;color:#536e8a;}
body .ops-form-optional summary strong,body .ops-form-optional summary small{display:block;}
body .ops-form-optional summary strong{color:#2a4059;font-size:.78rem;}
body .ops-form-optional summary small{margin-top:3px;color:#7c8c9d;font-size:.66rem;}
body .ops-form-optional summary b{padding:.42rem .62rem;border-radius:10px;background:#eef4fb;color:#315f98;font-size:.65rem;white-space:nowrap;}
body .ops-form-optional-body{padding:0 17px 17px;border-top:1px solid #edf2f6;padding-top:16px;}
body .ops-choice-grid{display:grid;gap:8px;}
body .ops-choice-grid-4{grid-template-columns:repeat(4,minmax(0,1fr));}
body .ops-choice-grid label{min-height:72px;display:flex;flex-direction:column;justify-content:center;padding:10px 12px;border:1px solid #d8e3ed;border-radius:14px;background:#f8fafc;cursor:pointer;}
body .ops-choice-grid label strong{color:#2b435e;font-size:.73rem;}
body .ops-choice-grid label small{margin-top:3px;color:#8290a0;font-size:.63rem;}
body .ops-choice-grid .btn-check:checked+label{border-color:#76a6e8;background:#edf4ff;box-shadow:0 0 0 3px rgba(37,99,235,.08);}
body .ops-choice-grid .btn-check:checked+label strong{color:#1958ac;}
body .ops-scan-input{display:grid;grid-template-columns:44px minmax(0,1fr);}
body .ops-scan-input>span{display:grid;place-items:center;border:1px solid #d3dfeb;border-right:0;border-radius:13px 0 0 13px;background:#eaf2ff;color:#2563eb;}
body .ops-scan-input .form-control{border-radius:0 13px 13px 0;}
body .ops-inline-lookup{min-height:56px;display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;padding:9px 12px;border:1px solid #dbe4ed;border-radius:14px;background:#f7f9fb;color:#6f8297;}
body .ops-inline-lookup>span{width:38px;height:38px;display:grid;place-items:center;border-radius:11px;background:#eaf2ff;color:#2563eb;}
body .ops-inline-lookup>span svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;}
body .ops-inline-lookup p{margin:0;font-size:.72rem;}
body .ops-inline-lookup strong,body .ops-inline-lookup small{display:block;}
body .ops-inline-lookup small{margin-top:3px;color:#76899d;font-size:.64rem;}
body .ops-inline-lookup.is-success{border-color:#b9e2d2;background:#f1fbf7;color:#177553;}
body .ops-inline-lookup.is-success>span{background:#dff5ec;color:#13825b;font-weight:950;}
body .ops-inline-lookup.is-error{border-color:#f0c5c5;background:#fff6f6;color:#b82e2e;}
body .ops-inline-lookup.is-error>span{background:#fbe4e4;color:#c63333;font-weight:950;}
body .ops-inline-lookup.is-loading{opacity:.65;}
body .ops-modal-footer{padding:13px 22px;border-top:1px solid #dbe5ee;background:#fff;}
body .ops-modal-footer .btn{min-height:44px;border-radius:13px;padding:.65rem 1rem;font-weight:850;}
body .ops-form-tabs{display:flex;gap:7px;padding:5px;border-radius:15px;background:#e9eff5;}
body .ops-form-tabs li{flex:1;}
body .ops-form-tabs button{width:100%;min-height:42px;border:0;border-radius:11px;background:transparent;color:#61768d;font-size:.73rem;font-weight:900;}
body .ops-form-tabs button.active{background:#fff;color:#245da9;box-shadow:0 5px 14px rgba(15,23,42,.08);}
body .ops-inline-submit{display:flex;justify-content:flex-end;margin-top:13px;}

@media(max-width:1400px){
  body .ops-command-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .ops-kpi-grid-5{grid-template-columns:repeat(3,minmax(0,1fr));}
  body .ops-dashboard-layout{grid-template-columns:minmax(0,1fr) 330px;}
  body .ops-fleet-grid{grid-template-columns:1fr;}
}
@media(max-width:1100px){
  body .ops-hero{grid-template-columns:1fr;min-height:390px;}
  body .ops-hero-status{max-width:420px;}
  body .ops-dashboard-layout{grid-template-columns:1fr;}
  body .ops-side-stack{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .ops-side-stack>section:last-child:nth-child(odd){grid-column:1/-1;}
}
@media(max-width:850px){
  body .ops-hero{min-height:430px;padding:28px;border-radius:25px;background-position:62% center;}
  body .ops-hero h1{font-size:2.45rem;}
  body .ops-kpi-grid-3,body .ops-kpi-grid-5{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .ops-panel-head{align-items:stretch;flex-direction:column;}
  body .ops-filter-bar{justify-content:stretch;}
  body .ops-search-field{min-width:0;flex:1;}
  body .ops-scan-result{grid-template-columns:52px minmax(0,1fr);}
  body .ops-scan-stock{border-left:0;padding:0;}
  body .ops-scan-actions{justify-content:flex-start;}
  body .ops-choice-grid-4{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .ops-asset-card{grid-template-columns:100px minmax(0,1fr);}
  body .ops-asset-metrics{grid-template-columns:1fr;}
  body .maintenance-operation-card{grid-template-columns:95px minmax(0,1fr);}
  body .maintenance-operation-action{grid-column:1/-1;justify-self:end;}
}
@media(max-width:650px){
  body .ops-hero{min-height:500px;padding:22px;background-position:67% center;}
  body .ops-hero h1{font-size:2.08rem;}
  body .ops-hero p{font-size:.88rem;}
  body .ops-hero-actions{display:grid;grid-template-columns:1fr;width:100%;}
  body .ops-hero-actions .btn{width:100%;}
  body .ops-command-grid,body .ops-kpi-grid-3,body .ops-kpi-grid-5,body .ops-side-stack{grid-template-columns:1fr;}
  body .ops-command-card{min-height:102px;}
  body .ops-panel-head{padding:17px;}
  body .ops-filter-bar{display:grid;grid-template-columns:1fr;}
  body .ops-search-field{width:100%;}
  body .ops-filter-bar select{width:100%;}
  body .ops-table-wrap{max-height:560px;}
  body .ops-table th:nth-child(4),body .ops-table td:nth-child(4),body .ops-table th:nth-child(5),body .ops-table td:nth-child(5){display:none;}
  body .ops-fleet-card-top{grid-template-columns:42px minmax(0,1fr);}
  body .ops-fleet-card-top>.status-chip{grid-column:1/-1;justify-self:start;}
  body .ops-fleet-metrics{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .ops-asset-card{grid-template-columns:1fr;}
  body .ops-asset-visual{min-height:145px;}
  body .ops-asset-title{flex-direction:column;}
  body .ops-form-guide{grid-template-columns:32px minmax(0,1fr);}
  body .ops-modal .modal-dialog{padding:4px;margin:0;min-height:100%;}
  body .ops-modal .modal-content{border-radius:20px;max-height:calc(100vh - 8px);}
  body .ops-modal-header{grid-template-columns:46px minmax(0,1fr) 38px;padding:16px;}
  body .ops-modal-icon{width:46px;height:46px;border-radius:14px;}
  body .ops-modal-header h2{font-size:1.05rem;}
  body .ops-modal-header p{display:none;}
  body .ops-modal-close{width:38px;height:38px;}
  body .ops-modal-body{padding:13px;}
  body .ops-form-section{padding:14px;}
  body .ops-choice-grid-4{grid-template-columns:1fr 1fr;}
  body .ops-form-optional summary{grid-template-columns:40px minmax(0,1fr);}
  body .ops-form-optional summary b{grid-column:1/-1;text-align:center;}
  body .ops-modal-footer{padding:10px 13px;}
  body .ops-modal-footer .btn{flex:1;}
}
@media(max-width:430px){
  body .ops-hero{min-height:530px;border-radius:22px;}
  body .ops-hero h1{font-size:1.85rem;}
  body .ops-command-card{grid-template-columns:46px minmax(0,1fr);padding:13px;}
  body .ops-command-icon{width:46px;height:46px;}
  body .ops-fleet-metrics{grid-template-columns:1fr;}
  body .ops-choice-grid-4{grid-template-columns:1fr;}
}

body .ops-mobile-terminal{max-width:980px;margin:0 auto;border-radius:28px;background:#eef3f7;border:1px solid #d5e0ea;box-shadow:0 22px 60px rgba(2,10,27,.14);overflow:hidden;}
body .ops-terminal-head{min-height:215px;display:flex;align-items:flex-end;justify-content:space-between;gap:20px;padding:27px 30px;color:#fff;background:linear-gradient(90deg,rgba(3,14,34,.98),rgba(5,27,59,.67)),url('../img/inventory_operations_v13.webp') center/cover;}
body .ops-terminal-head>div>span{display:flex;align-items:center;gap:8px;color:#a9d2ff;font-size:.66rem;font-weight:950;letter-spacing:.08em;}
body .ops-terminal-head>div>span i{width:8px;height:8px;border-radius:50%;background:#35d39a;box-shadow:0 0 0 5px rgba(53,211,154,.13);}
body .ops-terminal-head h1{margin:.55rem 0 .3rem;color:#fff;font-size:2rem;font-weight:950;letter-spacing:-.04em;}
body .ops-terminal-head p{margin:0;color:#c9d9eb;font-size:.82rem;}
body .ops-terminal-form{display:grid;gap:13px;padding:18px;}
body .ops-terminal-step{padding:19px;border:1px solid #d8e3ed;border-radius:20px;background:#fff;}
body .ops-terminal-step-head{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:14px;}
body .ops-terminal-step-head b{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#eaf2ff;color:#2563eb;font-size:.7rem;}
body .ops-terminal-step-head strong,body .ops-terminal-step-head small{display:block;}
body .ops-terminal-step-head strong{color:#18304a;font-size:.85rem;}
body .ops-terminal-step-head small{margin-top:2px;color:#788a9d;font-size:.67rem;}
body .ops-terminal-scan{display:grid;grid-template-columns:50px minmax(0,1fr) auto;align-items:center;min-height:62px;border:2px solid #8bb6ef;border-radius:17px;background:#f8fbff;box-shadow:0 0 0 4px rgba(37,99,235,.07);overflow:hidden;}
body .ops-terminal-scan svg{width:25px;height:25px;margin:auto;fill:none;stroke:#2563eb;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .ops-terminal-scan input{width:100%;min-width:0;height:60px;border:0;outline:0;background:transparent;color:#10243d;font-size:1.12rem;font-weight:850;}
body .ops-terminal-scan>span{margin-right:10px;padding:.38rem .52rem;border-radius:9px;background:#e6effa;color:#3e6593;font-size:.58rem;font-weight:950;letter-spacing:.05em;}
body .ops-terminal-info{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;margin-top:10px;padding:11px;border-radius:14px;background:#f2f5f8;border:1px solid #e0e7ee;}
body .ops-terminal-info>span{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#e4ebf2;color:#698097;font-weight:950;}
body .ops-terminal-info strong,body .ops-terminal-info small{display:block;}
body .ops-terminal-info strong{color:#304960;font-size:.76rem;}
body .ops-terminal-info small{margin-top:3px;color:#72869a;font-size:.66rem;}
body .ops-terminal-info.is-success{background:#effaf5;border-color:#b9e2d2;}
body .ops-terminal-info.is-success>span{background:#dff4ea;color:#16825c;}
body .ops-terminal-info.is-error{background:#fff5f5;border-color:#f0c6c6;}
body .ops-terminal-info.is-error>span{background:#fae3e3;color:#c53333;}
body .ops-terminal-step .form-label{color:#405a75;font-size:.68rem;font-weight:900;}
body .ops-terminal-step .form-control{min-height:48px;border-radius:14px;border-color:#d4dfeb;background:#fbfdff;}
body .ops-terminal-quantity{font-size:1.25rem!important;font-weight:900;}
body .ops-terminal-optional{margin-top:0;}
body .ops-terminal-optional summary>span{font-size:1.2rem;font-weight:600;}
body .ops-terminal-submit{min-height:58px;border:0;border-radius:17px;background:linear-gradient(135deg,#2872e9,#1d4eb3);color:#fff;font-size:1rem;font-weight:950;box-shadow:0 14px 28px rgba(29,78,179,.24);}
body .ops-terminal-submit:hover{background:linear-gradient(135deg,#3b82f6,#1d4ed8);color:#fff;}

body .ops-detail-hero{
  --ops-detail-image:none;
  position:relative;
  overflow:hidden;
  min-height:325px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 310px;
  gap:24px;
  align-items:end;
  margin-bottom:16px;
  padding:32px 35px;
  border-radius:28px;
  background-image:linear-gradient(90deg,rgba(3,14,34,.98),rgba(6,28,59,.88) 42%,rgba(3,16,36,.35)),linear-gradient(180deg,transparent 40%,rgba(2,11,27,.82)),var(--ops-detail-image);
  background-size:cover;
  background-position:center;
  color:#fff;
  border:1px solid rgba(96,155,235,.21);
  box-shadow:0 24px 62px rgba(2,10,27,.20);
}
body .ops-detail-copy{align-self:center;max-width:760px;}
body .ops-detail-back{display:inline-flex;margin-bottom:12px;color:#a9cdf8;text-decoration:none;font-size:.7rem;font-weight:900;}
body .ops-detail-back:hover{color:#fff;}
body .ops-detail-copy h1{margin:16px 0 9px;color:#fff;font-size:clamp(2.1rem,4vw,3.25rem);line-height:1;letter-spacing:-.05em;font-weight:950;}
body .ops-detail-copy>p{margin:0;max-width:720px;color:#c9daed;font-size:.88rem;line-height:1.55;}
body .ops-detail-identity{display:grid;gap:11px;align-self:end;padding:17px;border-radius:19px;background:rgba(3,17,39,.76);border:1px solid rgba(255,255,255,.12);backdrop-filter:blur(12px);}
body .ops-detail-identity>.status-chip{justify-self:start;}
body .ops-detail-identity>div{padding-top:10px;border-top:1px solid rgba(255,255,255,.09);}
body .ops-detail-identity small,body .ops-detail-identity strong{display:block;}
body .ops-detail-identity small{color:#91a9c4;font-size:.58rem;font-weight:900;letter-spacing:.06em;}
body .ops-detail-identity strong{margin-top:4px;color:#fff;font-size:.76rem;}
body .ops-kpi-date{font-size:1.45rem!important;}
body .ops-detail-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;margin-bottom:16px;}
body .ops-detail-actions>button,body .ops-detail-actions>a{appearance:none;display:grid;grid-template-columns:46px minmax(0,1fr);gap:11px;align-items:center;min-height:94px;padding:13px;border:1px solid #d9e4ee;border-radius:18px;background:linear-gradient(145deg,#fff,#f7fafc);color:#1c334e;text-align:left;text-decoration:none;box-shadow:0 9px 24px rgba(15,23,42,.05);}
body .ops-detail-actions>button:hover,body .ops-detail-actions>a:hover{border-color:#abc6e8;transform:translateY(-2px);}
body .ops-detail-actions>button>span,body .ops-detail-actions>a>span{width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:#eaf2ff;color:#2563eb;}
body .ops-detail-actions svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .ops-detail-actions small,body .ops-detail-actions strong,body .ops-detail-actions em{display:block;}
body .ops-detail-actions small{color:#4e75a4;font-size:.58rem;font-weight:950;letter-spacing:.055em;}
body .ops-detail-actions strong{margin-top:3px;color:#19314c;font-size:.78rem;}
body .ops-detail-actions em{margin-top:3px;color:#7a8c9e;font-size:.62rem;font-style:normal;line-height:1.35;}
body .ops-dashboard-layout-detail{grid-template-columns:minmax(0,1fr) 350px;}
body .ops-detail-main-stack{display:grid;grid-template-columns:1fr!important;}
body .ops-evidence-link{display:inline-flex;margin-top:5px;color:#2563eb;font-size:.64rem;font-weight:900;text-decoration:none;}
body .ops-linked-parts{display:grid;padding:8px 16px 15px;}
body .ops-linked-parts>div:not(.empty-state){display:grid;grid-template-columns:42px minmax(0,1fr) auto;gap:9px;align-items:center;padding:10px 0;border-bottom:1px solid #edf2f6;}
body .ops-linked-parts img,body .ops-linked-parts>div>span{width:42px;height:42px;display:grid;place-items:center;object-fit:cover;border-radius:12px;background:#edf4ff;color:#2563eb;border:1px solid #dce7f2;}
body .ops-linked-parts svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;}
body .ops-linked-parts strong,body .ops-linked-parts small{display:block;}
body .ops-linked-parts strong{color:#1d344d;font-size:.73rem;}
body .ops-linked-parts small{margin-top:3px;color:#7b8d9e;font-size:.63rem;}
body .ops-linked-parts b{color:#1f4b78;font-size:.7rem;white-space:nowrap;}
body .ops-tech-list{display:grid;grid-template-columns:1fr 1fr;gap:0;margin:0;padding:8px 17px 16px;}
body .ops-tech-list>div{padding:10px 0;border-bottom:1px solid #edf2f6;}
body .ops-tech-list>div:nth-child(odd){padding-right:8px;}
body .ops-tech-list>div:nth-child(even){padding-left:8px;border-left:1px solid #edf2f6;}
body .ops-tech-list>div.wide{grid-column:1/-1;padding-left:0;border-left:0;}
body .ops-tech-list dt{color:#7b8c9e;font-size:.61rem;font-weight:800;}
body .ops-tech-list dd{margin:.2rem 0 0;color:#253f5a;font-size:.7rem;font-weight:850;}
@media(max-width:1200px){body .ops-detail-actions{grid-template-columns:repeat(2,minmax(0,1fr));}body .ops-dashboard-layout-detail{grid-template-columns:1fr;}body .ops-kpi-grid-4{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:800px){body .ops-detail-hero{grid-template-columns:1fr;min-height:430px;padding:25px;background-position:62% center;}body .ops-detail-identity{max-width:420px;}body .ops-detail-actions{grid-template-columns:1fr 1fr;}}
@media(max-width:520px){body .ops-detail-hero{min-height:500px;padding:20px;border-radius:22px;}body .ops-detail-copy h1{font-size:2rem;}body .ops-detail-actions{grid-template-columns:1fr;}body .ops-kpi-grid-4{grid-template-columns:1fr 1fr;}body .ops-tech-list{grid-template-columns:1fr;}body .ops-tech-list>div:nth-child(even){padding-left:0;border-left:0;}body .ops-tech-list>div.wide{grid-column:auto;}}
@media(max-width:650px){
  body .ops-mobile-terminal{margin:-5px;border-radius:20px;}
  body .ops-terminal-head{min-height:230px;align-items:flex-end;flex-direction:column;justify-content:flex-end;padding:21px;background-position:62% center;}
  body .ops-terminal-head>div{width:100%;}
  body .ops-terminal-head .btn{width:100%;}
  body .ops-terminal-head h1{font-size:1.6rem;}
  body .ops-terminal-form{padding:10px;}
  body .ops-terminal-step{padding:14px;}
  body .ops-terminal-scan{grid-template-columns:44px minmax(0,1fr);}
  body .ops-terminal-scan>span{grid-column:1/-1;width:100%;margin:0;border-radius:0;text-align:center;padding:.35rem;}
  body .ops-terminal-scan input{height:54px;font-size:1rem;}
}

/* ========================================================================
   ENTERPRISE INDUSTRIAL V14 · MODALES, MRO, ETIQUETAS Y DISTRIBUCIÓN
   ======================================================================== */

/* Capa modal unificada: el formulario siempre queda por encima del fondo. */
body .modal-backdrop{
  z-index:2380 !important;
  background:#020817 !important;
}
body .modal-backdrop.show{
  opacity:.58 !important;
  backdrop-filter:blur(5px) saturate(.78) !important;
}
body .modal.show,
body .ops-modal,
body .industrial-form-modal{
  z-index:2400 !important;
}
body .ops-modal{
  overflow:hidden !important;
  padding:0 !important;
}
body .ops-modal .modal-dialog{
  width:min(1180px,calc(100vw - 28px));
  max-width:none;
  min-height:100dvh;
  margin:0 auto;
  padding:14px 0;
  display:flex;
  align-items:center;
}
body .ops-modal .modal-content{
  width:100%;
  max-height:calc(100dvh - 28px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-color:#bfcfe0;
  box-shadow:0 48px 110px rgba(1,8,22,.48),0 10px 28px rgba(1,8,22,.20);
}
body .ops-modal .modal-content>form{
  min-height:0;
  max-height:inherit;
  display:flex;
  flex-direction:column;
}
body .ops-modal-header,
body .ops-modal-footer{flex:0 0 auto;}
body .ops-modal-body{
  flex:1 1 auto;
  min-height:0;
  overflow-y:auto;
  overscroll-behavior:contain;
  scrollbar-gutter:stable;
}
body .ops-modal-body::-webkit-scrollbar{width:8px;}
body .ops-modal-body::-webkit-scrollbar-thumb{border-radius:999px;background:#aebfd1;}

/* Cierre técnico estable: dos líneas animadas, sin glifo que pueda desaparecer. */
body .ops-modal-close,
body .industrial-form-modal .industrial-modal-close{
  position:relative !important;
  z-index:50 !important;
  width:48px !important;
  height:48px !important;
  min-width:48px !important;
  min-height:48px !important;
  display:grid !important;
  place-items:center !important;
  padding:0 !important;
  overflow:hidden !important;
  border:1px solid rgba(150,197,255,.30) !important;
  border-radius:15px !important;
  background:linear-gradient(145deg,#102f59,#07182f) !important;
  background-image:linear-gradient(145deg,#102f59,#07182f) !important;
  color:transparent !important;
  font-size:0 !important;
  line-height:0 !important;
  opacity:1 !important;
  filter:none !important;
  box-shadow:0 12px 30px rgba(1,8,22,.34),inset 0 1px 0 rgba(255,255,255,.10) !important;
  transition:transform .28s cubic-bezier(.16,1,.3,1),background .2s ease,box-shadow .2s ease !important;
}
body .industrial-form-modal .industrial-modal-close span{display:none !important;}
body .ops-modal-close::before,
body .ops-modal-close::after,
body .industrial-form-modal .industrial-modal-close::before,
body .industrial-form-modal .industrial-modal-close::after{
  content:"" !important;
  display:block !important;
  position:absolute !important;
  left:13px !important;
  top:22px !important;
  width:22px !important;
  height:2px !important;
  border:0 !important;
  border-radius:999px !important;
  background:#dcecff !important;
  transform-origin:center !important;
  transition:transform .32s cubic-bezier(.16,1,.3,1),width .22s ease !important;
}
body .ops-modal-close::before,
body .industrial-form-modal .industrial-modal-close::before{transform:rotate(45deg) !important;}
body .ops-modal-close::after,
body .industrial-form-modal .industrial-modal-close::after{transform:rotate(-45deg) !important;}
body .ops-modal-close:hover,
body .industrial-form-modal .industrial-modal-close:hover{
  transform:translateY(-1px) rotate(90deg) !important;
  background:linear-gradient(145deg,#174a86,#0a2850) !important;
  box-shadow:0 17px 38px rgba(1,8,22,.42),0 0 0 5px rgba(113,169,240,.10) !important;
}
body .ops-modal-close:active,
body .industrial-form-modal .industrial-modal-close:active{
  transform:scale(.91) rotate(90deg) !important;
  background:linear-gradient(145deg,#0b2446,#061426) !important;
}
body .ops-modal-close:focus-visible,
body .industrial-form-modal .industrial-modal-close:focus-visible{
  outline:3px solid #7db5ff !important;
  outline-offset:3px !important;
}

/* Centro técnico MRO. */
body .mro-command-hero{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-height:390px;
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:30px;
  align-items:end;
  margin-bottom:14px;
  padding:38px 40px;
  border-radius:30px;
  border:1px solid rgba(102,159,239,.24);
  background:#06152d;
  box-shadow:0 28px 72px rgba(2,10,27,.24);
}
body .mro-command-hero-image{position:absolute;z-index:-3;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%;}
body .mro-command-hero-shade{position:absolute;z-index:-2;inset:0;background:linear-gradient(90deg,rgba(2,12,29,.98) 0%,rgba(5,24,51,.91) 43%,rgba(4,18,40,.50) 72%,rgba(2,11,27,.68) 100%),linear-gradient(180deg,transparent 42%,rgba(2,10,25,.92));}
body .mro-command-hero::after{content:"";position:absolute;z-index:-1;left:-70px;top:-100px;width:410px;height:410px;border-radius:50%;background:radial-gradient(circle,rgba(46,126,243,.25),transparent 70%);}
body .mro-command-copy{align-self:center;max-width:790px;}
body .mro-live-kicker{display:inline-flex;align-items:center;gap:9px;padding:.45rem .7rem;border-radius:999px;border:1px solid rgba(125,183,255,.24);background:rgba(16,70,135,.38);color:#c9e4ff;font-size:.68rem;font-weight:950;letter-spacing:.075em;text-transform:uppercase;backdrop-filter:blur(9px);}
body .mro-live-kicker i,body .mro-control-status-head i,body .dc-command-heading>div:first-child>span i,body .dc-control-kicker i,body .dc-live-head i{width:8px;height:8px;border-radius:50%;background:#33d39d;box-shadow:0 0 0 5px rgba(51,211,157,.13);}
body .mro-command-copy h1{margin:18px 0 12px;max-width:760px;color:#fff;font-size:clamp(2.35rem,4.4vw,4rem);line-height:.96;letter-spacing:-.058em;font-weight:950;}
body .mro-command-copy p{margin:0;max-width:720px;color:#cfdef0;font-size:1rem;line-height:1.63;}
body .mro-command-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:25px;}
body .mro-control-status{align-self:end;padding:18px;border-radius:22px;border:1px solid rgba(255,255,255,.13);background:rgba(3,17,39,.80);color:#fff;box-shadow:0 20px 44px rgba(1,8,22,.28);backdrop-filter:blur(15px);}
body .mro-control-status-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:13px;border-bottom:1px solid rgba(255,255,255,.10);}
body .mro-control-status-head span{display:flex;align-items:center;gap:8px;color:#b9cee7;font-size:.65rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;}
body .mro-control-status-head b{color:#8fa9c6;font-size:.65rem;}
body .mro-control-status-main{display:flex;align-items:baseline;gap:9px;padding:16px 2px 13px;}
body .mro-control-status-main strong{color:#fff;font-size:2.7rem;line-height:1;font-weight:950;}
body .mro-control-status-main span{color:#b8cce3;font-size:.75rem;font-weight:800;}
body .mro-control-status-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;}
body .mro-control-status-grid>div{padding:10px;border-radius:13px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.055);}
body .mro-control-status-grid small,body .mro-control-status-grid b{display:block;}
body .mro-control-status-grid small{color:#8fa8c4;font-size:.58rem;}
body .mro-control-status-grid b{margin-top:3px;color:#fff;font-size:.9rem;}
body .mro-process-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin-bottom:14px;padding:9px;border:1px solid #d6e2ee;border-radius:22px;background:#eaf0f6;box-shadow:0 10px 28px rgba(15,23,42,.055);}
body .mro-process-strip article{display:grid;grid-template-columns:38px minmax(0,1fr);gap:10px;align-items:center;min-height:78px;padding:11px 13px;border:1px solid transparent;border-radius:16px;background:rgba(255,255,255,.68);}
body .mro-process-strip article.is-current{border-color:#aecaef;background:#fff;box-shadow:0 8px 20px rgba(37,99,235,.08);}
body .mro-process-strip article>b{width:38px;height:38px;display:grid;place-items:center;border-radius:12px;background:#eaf2ff;color:#2563eb;font-size:.68rem;}
body .mro-process-strip strong,body .mro-process-strip small{display:block;}
body .mro-process-strip strong{color:#1a304a;font-size:.75rem;}
body .mro-process-strip small{margin-top:3px;color:#74869a;font-size:.62rem;line-height:1.35;}
body .mro-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;}
body .mro-kpi-card{--mro-tone:#2563eb;--mro-soft:#eaf2ff;display:grid;grid-template-columns:50px minmax(0,1fr);gap:12px;align-items:center;min-height:112px;padding:16px;border:1px solid #d9e4ee;border-radius:20px;background:linear-gradient(145deg,#fff,#f7fafc);color:inherit;text-decoration:none;box-shadow:0 11px 28px rgba(15,23,42,.055);transition:.2s;}
body .mro-kpi-card:hover{transform:translateY(-3px);border-color:#aec7e7;color:inherit;box-shadow:0 18px 36px rgba(15,23,42,.10);}
body .mro-kpi-card>span{width:50px;height:50px;display:grid;place-items:center;border-radius:15px;background:var(--mro-soft);color:var(--mro-tone);border:1px solid color-mix(in srgb,var(--mro-tone) 15%,white);}
body .mro-kpi-card svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .mro-kpi-card small,body .mro-kpi-card strong,body .mro-kpi-card em{display:block;}
body .mro-kpi-card small{color:#657b92;font-size:.62rem;font-weight:900;text-transform:uppercase;letter-spacing:.045em;}
body .mro-kpi-card strong{margin-top:4px;color:#10243d;font-size:1.65rem;line-height:1;font-weight:950;}
body .mro-kpi-card em{margin-top:6px;color:#7a8b9e;font-size:.64rem;font-style:normal;}
body .mro-kpi-card.tone-red{--mro-tone:#c93232;--mro-soft:#fff0f0;}
body .mro-kpi-card.tone-amber{--mro-tone:#b87500;--mro-soft:#fff7e6;}
body .mro-kpi-card.tone-green{--mro-tone:#13835b;--mro-soft:#e9f8f1;}
body .mro-workspace{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:16px;align-items:start;}
body .mro-module-panel,body .mro-attention-panel{overflow:hidden;border:1px solid #d8e3ed;border-radius:25px;background:#fff;box-shadow:0 16px 38px rgba(15,23,42,.065);}
body .mro-panel-heading,body .mro-attention-head{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:20px 21px;border-bottom:1px solid #e4ebf2;background:linear-gradient(180deg,#fff,#fafcff);}
body .mro-panel-heading span,body .mro-attention-head>div>span{display:block;color:#2d67b5;font-size:.63rem;font-weight:950;letter-spacing:.07em;}
body .mro-panel-heading h2,body .mro-attention-head h2{margin:.35rem 0 .18rem;color:#10243d;font-size:1.2rem;font-weight:950;text-align:left;}
body .mro-panel-heading p{margin:0;color:#718397;font-size:.72rem;}
body .mro-panel-heading>b{padding:.48rem .65rem;border-radius:11px;background:#edf4ff;color:#2563eb;font-size:.67rem;white-space:nowrap;}
body .mro-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:14px;}
body .mro-module-card{--module-tone:#2563eb;--module-soft:#eaf2ff;position:relative;display:grid;grid-template-columns:48px minmax(0,1fr) auto;gap:11px;align-items:center;min-height:126px;padding:15px;border:1px solid #dce6ef;border-radius:18px;background:linear-gradient(145deg,#fff,#f8fafc);color:inherit;text-decoration:none;transition:.2s;}
body .mro-module-card:hover{transform:translateY(-2px);border-color:#b6cce7;color:inherit;box-shadow:0 13px 28px rgba(15,23,42,.08);}
body .mro-module-card.module-stock{--module-tone:#07849a;--module-soft:#e5f8fb;}
body .mro-module-card.module-asset{--module-tone:#7042c4;--module-soft:#f1ebff;}
body .mro-module-card.module-truck{--module-tone:#10786f;--module-soft:#e7f7f4;}
body .mro-module-card.module-monitor{--module-tone:#315b95;--module-soft:#edf3fb;}
body .mro-module-card.module-tasks{--module-tone:#aa6d08;--module-soft:#fff6e6;}
body .mro-module-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:15px;background:var(--module-soft);color:var(--module-tone);}
body .mro-module-icon svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .mro-module-copy{min-width:0;}
body .mro-module-copy small,body .mro-module-copy strong,body .mro-module-copy em{display:block;}
body .mro-module-copy small{color:var(--module-tone);font-size:.57rem;font-weight:950;letter-spacing:.055em;}
body .mro-module-copy strong{margin-top:4px;color:#172d47;font-size:.82rem;line-height:1.25;}
body .mro-module-copy em{margin-top:5px;color:#718397;font-size:.64rem;font-style:normal;line-height:1.38;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
body .mro-module-access{align-self:start;padding:.32rem .48rem;border-radius:8px;background:#eef4fb;color:#315f98;font-size:.6rem;font-weight:900;}
body .mro-attention-panel{position:sticky;top:86px;}
body .mro-attention-head a{padding:.42rem .55rem;border-radius:9px;background:#edf4ff;color:#2563eb;text-decoration:none;font-size:.65rem;font-weight:900;}
body .mro-attention-list{display:grid;padding:6px 15px;}
body .mro-attention-item{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:13px 2px;border-bottom:1px solid #edf2f6;color:inherit;text-decoration:none;}
body .mro-attention-item:last-child{border-bottom:0;}
body .mro-attention-code{padding:.35rem .44rem;border-radius:8px;background:#edf3f8;color:#395a7b;font-size:.58rem;font-weight:950;}
body .mro-attention-item strong,body .mro-attention-item small{display:block;}
body .mro-attention-item strong{color:#1a3049;font-size:.72rem;}
body .mro-attention-item small{margin-top:3px;color:#788a9d;font-size:.61rem;}
body .mro-attention-date{color:#667d94;font-size:.61rem;font-weight:900;white-space:nowrap;}
body .mro-attention-item.is-late .mro-attention-code{background:#ffeded;color:#c43030;}
body .mro-attention-item.is-late .mro-attention-date{color:#c43030;}
body .mro-attention-item.is-high:not(.is-late) .mro-attention-code{background:#fff4df;color:#a76700;}
body .mro-attention-empty{display:flex;min-height:250px;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:24px;color:#73869a;}
body .mro-attention-empty>span{width:58px;height:58px;display:grid;place-items:center;border-radius:19px;background:#eaf8f2;color:#14825c;}
body .mro-attention-empty svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;}
body .mro-attention-empty strong{margin-top:12px;color:#1b3a32;}
body .mro-attention-empty small{margin-top:5px;font-size:.68rem;}
body .mro-attention-footer{display:flex;gap:7px;flex-wrap:wrap;padding:13px 15px;border-top:1px solid #e6edf3;background:#f7f9fb;}
body .mro-attention-footer span{display:flex;align-items:center;gap:5px;color:#60758b;font-size:.59rem;font-weight:850;}
body .mro-attention-footer i{width:7px;height:7px;border-radius:50%;background:#8aa0b6;}
body .mro-attention-footer i.is-green{background:#20a876;}body .mro-attention-footer i.is-blue{background:#3478d6;}body .mro-attention-footer i.is-amber{background:#d69524;}

/* Torre de control de distribución. */
body .dc-command-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:16px;padding:0 2px;}
body .dc-command-heading>div:first-child>span{display:flex;align-items:center;gap:9px;color:#3367aa;font-size:.68rem;font-weight:950;letter-spacing:.07em;text-transform:uppercase;}
body .dc-command-heading h1{margin:.52rem 0 .32rem;color:#10243d;font-size:clamp(1.8rem,3vw,2.6rem);font-weight:950;letter-spacing:-.04em;}
body .dc-command-heading p{margin:0;color:#647a91;font-size:.86rem;}
body .dc-command-actions{display:flex;gap:9px;flex-wrap:wrap;}
body .dc-command-actions .btn{min-height:46px;border-radius:14px;font-weight:850;}
body .dc-control-hero{position:relative;isolation:isolate;overflow:hidden;min-height:380px;display:grid;grid-template-columns:minmax(0,1fr) 325px;gap:28px;align-items:end;margin-bottom:14px;padding:38px 40px;border:1px solid rgba(96,155,235,.23);border-radius:30px;background:#06152d;box-shadow:0 28px 72px rgba(2,10,27,.23);}
body .dc-control-hero>img{position:absolute;z-index:-3;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 57%;}
body .dc-control-hero-shade{position:absolute;z-index:-2;inset:0;background:linear-gradient(90deg,rgba(2,12,29,.99) 0%,rgba(5,25,54,.92) 44%,rgba(5,22,48,.46) 72%,rgba(2,11,27,.71) 100%),linear-gradient(180deg,transparent 42%,rgba(2,10,25,.92));}
body .dc-control-copy{align-self:center;max-width:800px;}
body .dc-control-kicker{display:inline-flex;align-items:center;gap:9px;padding:.44rem .68rem;border-radius:999px;border:1px solid rgba(125,183,255,.24);background:rgba(15,72,139,.40);color:#c8e5ff;font-size:.68rem;font-weight:950;text-transform:uppercase;letter-spacing:.07em;}
body .dc-control-copy h2{margin:18px 0 12px;max-width:770px;color:#fff;font-size:clamp(2.15rem,4vw,3.55rem);line-height:.99;letter-spacing:-.055em;font-weight:950;text-align:left;}
body .dc-control-copy p{margin:0;max-width:690px;color:#cfdef0;font-size:.96rem;line-height:1.62;}
body .dc-control-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:24px;}
body .dc-live-console{align-self:end;padding:18px;border-radius:22px;border:1px solid rgba(255,255,255,.13);background:rgba(3,17,39,.82);color:#fff;box-shadow:0 20px 44px rgba(1,8,22,.28);backdrop-filter:blur(15px);}
body .dc-live-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-bottom:13px;border-bottom:1px solid rgba(255,255,255,.10);}
body .dc-live-head span{display:flex;align-items:center;gap:8px;color:#b9cee7;font-size:.65rem;font-weight:900;text-transform:uppercase;letter-spacing:.06em;}
body .dc-live-head b{padding:.3rem .45rem;border-radius:8px;background:rgba(45,211,153,.12);color:#77e2bd;font-size:.58rem;}
body .dc-live-primary{padding:17px 2px 14px;}
body .dc-live-primary strong,body .dc-live-primary span{display:block;}
body .dc-live-primary strong{color:#fff;font-size:2.7rem;line-height:1;font-weight:950;}
body .dc-live-primary span{margin-top:5px;color:#b8cce3;font-size:.7rem;font-weight:800;}
body .dc-live-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;}
body .dc-live-metrics>div{min-width:0;padding:9px;border-radius:12px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.055);}
body .dc-live-metrics small,body .dc-live-metrics b{display:block;}
body .dc-live-metrics small{color:#8fa8c4;font-size:.53rem;line-height:1.25;}
body .dc-live-metrics b{margin-top:4px;color:#fff;font-size:.92rem;}
body .dc-process-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-bottom:16px;}
body .dc-process-card{appearance:none;display:grid;grid-template-columns:34px 44px minmax(0,1fr);gap:10px;align-items:center;min-height:96px;padding:13px;text-align:left;border:1px solid #d9e4ee;border-radius:19px;background:linear-gradient(145deg,#fff,#f7fafc);box-shadow:0 10px 25px rgba(15,23,42,.055);transition:.2s;}
body .dc-process-card:hover{transform:translateY(-3px);border-color:#afc8e7;box-shadow:0 16px 34px rgba(15,23,42,.10);}
body .dc-process-card>b{width:34px;height:34px;display:grid;place-items:center;border-radius:11px;background:#edf4ff;color:#2563eb;font-size:.65rem;}
body .dc-process-card>span{width:44px;height:44px;display:grid;place-items:center;border-radius:14px;background:linear-gradient(145deg,#123d78,#09264d);color:#fff;}
body .dc-process-card svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;}
body .dc-process-card strong,body .dc-process-card small{display:block;}
body .dc-process-card strong{color:#172d47;font-size:.76rem;line-height:1.25;}
body .dc-process-card small{margin-top:4px;color:#74869a;font-size:.61rem;line-height:1.35;}
body .dc-process-card.is-active{border-color:#aecbf1;background:linear-gradient(145deg,#fff,#eff6ff);}
body #routeBoard{scroll-margin-top:92px;}
body .distribution-board{grid-template-columns:380px minmax(0,1fr);gap:16px;}
body .distribution-sidebar{border-top:5px solid #1b5db6;background:linear-gradient(180deg,#fbfdff,#eef4f9);}
body .distribution-main{border-top:5px solid #0b7490;}
body .distribution-controls{background:linear-gradient(180deg,#fff,#f9fbfd);}
body .distribution-order-card{border-radius:17px;transition:transform .22s cubic-bezier(.16,1,.3,1),border-color .2s ease,box-shadow .2s ease,background .2s ease;}
body .distribution-order-select{overflow:hidden;transition:background .22s ease,border-color .22s ease,transform .28s cubic-bezier(.16,1,.3,1);}
body .distribution-order-select svg{opacity:0;transform:scale(.35) rotate(-40deg);transition:opacity .18s ease,transform .32s cubic-bezier(.16,1,.3,1);}
body .distribution-order-card:has(input:checked){transform:translateX(3px);border-color:#77a9ed;background:linear-gradient(145deg,#f9fcff,#eaf3ff);}
body .distribution-order-card:has(input:checked) .distribution-order-select{transform:scale(1.05);background:linear-gradient(145deg,#2d78e8,#174fae);border-color:#2b69c8;box-shadow:0 6px 14px rgba(37,99,235,.24);}
body .distribution-order-card:has(input:checked) .distribution-order-select svg{opacity:1;transform:scale(1) rotate(0);}
body .distribution-modal .industrial-modal-hero{background:#06152d !important;}
body .distribution-modal .industrial-modal-hero-overlay{background:linear-gradient(90deg,rgba(2,12,29,.97),rgba(5,26,57,.68),rgba(3,14,32,.42)) !important;}
body .distribution-modal .industrial-modal-body{background:#eef3f8 !important;}
body .distribution-modal .industrial-form-section{border-left:4px solid #2d6ec7 !important;}

@media(max-width:1200px){
  body .mro-workspace{grid-template-columns:1fr;}
  body .mro-attention-panel{position:relative;top:auto;}
  body .dc-process-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .distribution-board{grid-template-columns:340px minmax(0,1fr);}
}
@media(max-width:1020px){
  body .mro-command-hero,body .dc-control-hero{grid-template-columns:1fr;min-height:520px;background-position:64% center;}
  body .mro-control-status,body .dc-live-console{width:min(430px,100%);}
  body .mro-process-strip,body .mro-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
  body .distribution-board{grid-template-columns:1fr;}
  body .distribution-sidebar{position:relative;top:auto;}
}
@media(max-width:760px){
  body .modal-backdrop.show{opacity:.52 !important;backdrop-filter:blur(3px) !important;}
  body .ops-modal .modal-dialog{width:calc(100vw - 10px);padding:5px 0;}
  body .ops-modal .modal-content{max-height:calc(100dvh - 10px);border-radius:20px;}
  body .ops-modal-close,body .industrial-form-modal .industrial-modal-close{width:44px !important;height:44px !important;min-width:44px !important;min-height:44px !important;border-radius:14px !important;}
  body .ops-modal-close::before,body .ops-modal-close::after,body .industrial-form-modal .industrial-modal-close::before,body .industrial-form-modal .industrial-modal-close::after{left:12px !important;top:20px !important;width:20px !important;}
  body .mro-command-hero,body .dc-control-hero{min-height:590px;padding:24px 21px;border-radius:24px;}
  body .mro-command-copy h1{font-size:2.35rem;}
  body .dc-control-copy h2{font-size:2.2rem;}
  body .mro-process-strip,body .mro-kpi-grid,body .mro-module-grid,body .dc-process-grid{grid-template-columns:1fr;}
  body .mro-process-strip{padding:7px;}
  body .mro-workspace{gap:12px;}
  body .mro-panel-heading,body .mro-attention-head{align-items:flex-start;}
  body .mro-module-card{grid-template-columns:46px minmax(0,1fr);}
  body .mro-module-access{grid-column:1/-1;justify-self:end;}
  body .dc-command-heading{align-items:flex-start;flex-direction:column;}
  body .dc-command-actions{width:100%;display:grid;grid-template-columns:1fr;}
  body .dc-command-actions .btn{width:100%;}
  body .dc-live-metrics{grid-template-columns:1fr 1fr 1fr;}
}
@media(max-width:470px){
  body .mro-command-hero,body .dc-control-hero{min-height:640px;padding:20px 17px;}
  body .mro-command-actions,body .dc-control-actions{display:grid;grid-template-columns:1fr;width:100%;}
  body .mro-command-actions .btn,body .dc-control-actions .btn{width:100%;}
  body .mro-control-status,body .dc-live-console{padding:14px;}
  body .mro-control-status-grid{grid-template-columns:1fr 1fr;}
  body .mro-attention-item{grid-template-columns:auto minmax(0,1fr);}
  body .mro-attention-date{grid-column:2;}
}
@media(prefers-reduced-motion:reduce){
  body .ops-modal-close,body .industrial-form-modal .industrial-modal-close,body .distribution-order-select,body .distribution-order-select svg{transition:none !important;}
  body .ops-modal-close:hover,body .industrial-form-modal .industrial-modal-close:hover{transform:none !important;}
}

/* ========================================================================
   ENTERPRISE INDUSTRIAL V15 · CIERRE OSCURO SIN DESTELLO BLANCO
   ======================================================================== */
body .ops-modal-close,
body .industrial-form-modal .industrial-modal-close{
  -webkit-appearance:none !important;
  appearance:none !important;
  -webkit-tap-highlight-color:transparent !important;
  background-color:#07182f !important;
  background-image:linear-gradient(145deg,#123865 0%,#07182f 68%,#041126 100%) !important;
  background-clip:padding-box !important;
  border-color:rgba(152,199,255,.32) !important;
  color:transparent !important;
  isolation:isolate;
}
body .ops-modal-close:hover,
body .industrial-form-modal .industrial-modal-close:hover{
  background-color:#0a2a52 !important;
  background-image:linear-gradient(145deg,#1b538f,#0a2a52 72%,#061831) !important;
}
body .ops-modal-close:focus,
body .ops-modal-close:focus-visible,
body .industrial-form-modal .industrial-modal-close:focus,
body .industrial-form-modal .industrial-modal-close:focus-visible{
  background-color:#07182f !important;
  background-image:linear-gradient(145deg,#123865 0%,#07182f 68%,#041126 100%) !important;
  color:transparent !important;
}
body .ops-modal-close:active,
body .industrial-form-modal .industrial-modal-close:active{
  background-color:#041126 !important;
  background-image:linear-gradient(145deg,#0a2b53,#041126) !important;
}
body .ops-modal-close::before,
body .ops-modal-close::after,
body .industrial-form-modal .industrial-modal-close::before,
body .industrial-form-modal .industrial-modal-close::after{
  background-color:#e5f1ff !important;
  background-image:none !important;
}

/* ========================================================================
   ENTERPRISE INDUSTRIAL V16 · CENTRADO, DISTRIBUCIÓN GLOBAL Y CIERRE EXACTO
   ======================================================================== */

/* Tipografía más compacta para la torre de distribución. */
body .dc-command-heading h1{
  font-size:clamp(1.5rem,2.2vw,2.05rem) !important;
  line-height:1.06 !important;
  letter-spacing:-.035em !important;
}
body .dc-command-heading p{font-size:.8rem !important;line-height:1.48 !important;}
body .dc-control-copy h2{
  max-width:690px !important;
  font-size:clamp(1.7rem,2.8vw,2.55rem) !important;
  line-height:1.04 !important;
  letter-spacing:-.042em !important;
}
body .dc-control-copy p{max-width:650px !important;font-size:.88rem !important;line-height:1.52 !important;}
body .dc-live-primary strong{font-size:2.15rem !important;}
body .distribution-sidebar-head h2,
body .distribution-history-head h2,
body .distribution-control-title h2,
body .distribution-summary-head h2,
body .distribution-place-search-copy h2{font-size:1.03rem !important;line-height:1.24 !important;}
body .distribution-sidebar-head p,
body .distribution-history-head p,
body .distribution-place-search-copy p{font-size:.8rem !important;line-height:1.42 !important;}
body .distribution-modal .industrial-modal-hero-copy h2{
  font-size:clamp(1.25rem,2.2vw,1.8rem) !important;
  line-height:1.08 !important;
}
body .distribution-modal .industrial-modal-hero-copy p{font-size:.8rem !important;line-height:1.4 !important;}
body .distribution-modal .industrial-section-heading strong{font-size:.9rem !important;}
body .distribution-modal .industrial-section-heading small{font-size:.72rem !important;}

/* Selector mundial de cobertura operativa. */
body .distribution-global-search{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:14px;align-items:start;}
body .distribution-geo-scope{grid-column:1/-1;padding:15px;border:1px solid #cddded;border-radius:18px;background:linear-gradient(135deg,#f9fcff,#edf5fc);}
body .distribution-geo-scope-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px;}
body .distribution-geo-scope-head h2{margin:.22rem 0 .25rem;color:#10243d;font-size:1.04rem;font-weight:950;}
body .distribution-geo-scope-head p{margin:0;color:#657b92;font-size:.78rem;line-height:1.42;}
body .distribution-geo-badge{display:grid;place-items:center;min-width:62px;height:30px;padding:0 10px;border:1px solid #bcd4ef;border-radius:10px;background:#fff;color:#245b9e;font-size:.62rem;font-weight:950;letter-spacing:.08em;}
body .distribution-geo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:9px;align-items:end;}
body .distribution-geo-grid label{display:block;min-width:0;}
body .distribution-geo-grid label>span{display:block;margin:0 0 5px;color:#45627f;font-size:.68rem;font-weight:900;}
body .distribution-geo-grid label small{color:#8192a5;font-size:.58rem;font-weight:750;}
body .distribution-geo-grid .form-control{height:44px;border-radius:13px;font-size:.82rem;}
body .distribution-geo-locate-btn{height:44px;min-width:120px;white-space:nowrap;}
body #geoScopeFeedback{margin-top:10px;background:#fff;font-size:.76rem;}
body .distribution-place-search-copy{align-self:center;}
body .distribution-place-search-input input{font-size:.86rem !important;}
body .distribution-order-geo{display:block;margin-top:4px;color:#37658f;font-size:.64rem;font-weight:850;letter-spacing:.025em;}

/* La cruz usa el 50% real del botón en todas las medidas y navegadores. */
body .ops-modal-close,
body .industrial-form-modal .industrial-modal-close{
  box-sizing:border-box !important;
  align-items:center !important;
  justify-items:center !important;
  line-height:0 !important;
}
body .ops-modal-close{margin-left:auto !important;}
body .industrial-form-modal .industrial-modal-close{
  left:auto !important;
  right:14px !important;
  top:14px !important;
}
body .ops-modal-close span,
body .industrial-form-modal .industrial-modal-close span{display:none !important;}
body .ops-modal-close::before,
body .ops-modal-close::after,
body .industrial-form-modal .industrial-modal-close::before,
body .industrial-form-modal .industrial-modal-close::after{
  left:50% !important;
  top:50% !important;
  width:22px !important;
  height:2px !important;
  margin:0 !important;
  pointer-events:none !important;
  transform-origin:50% 50% !important;
}
body .ops-modal-close::before,
body .industrial-form-modal .industrial-modal-close::before{transform:translate(-50%,-50%) rotate(45deg) !important;}
body .ops-modal-close::after,
body .industrial-form-modal .industrial-modal-close::after{transform:translate(-50%,-50%) rotate(-45deg) !important;}

@media(max-width:900px){
  body .distribution-global-search{grid-template-columns:1fr;}
  body .distribution-geo-grid{grid-template-columns:1fr 1fr;}
  body .distribution-geo-locate-btn{width:100%;}
}
@media(max-width:560px){
  body .distribution-geo-grid{grid-template-columns:1fr;}
  body .distribution-geo-scope-head{flex-direction:column;}
  body .dc-control-copy h2{font-size:1.7rem !important;}
  body .industrial-form-modal .industrial-modal-close{right:9px !important;top:9px !important;}
}

/* ========================================================================
   ENTERPRISE INDUSTRIAL V17 · VISIÓN QR, FOTO DE CAMPO Y CALIBRACIÓN REAL
   ======================================================================== */
body .ops-capture-launch{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:11px;border:1px solid #c6d9ed;border-radius:16px;background:linear-gradient(135deg,#f8fbff,#edf5fc);}
body .ops-capture-launch>span{color:#60778f;font-size:.72rem;line-height:1.4;}
body .industrial-capture-console{margin-top:12px;overflow:hidden;border:1px solid #9fb9d8;border-radius:22px;background:#eef4f9;box-shadow:0 18px 42px rgba(7,25,48,.12);}
body .industrial-capture-console[hidden]{display:none!important;}
body .industrial-capture-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 17px;background:linear-gradient(135deg,#0d315d,#071a33);color:#fff;}
body .industrial-capture-head>div>span,body .industrial-capture-head strong,body .industrial-capture-head small{display:block;}
body .industrial-capture-head>div>span{display:flex;align-items:center;gap:7px;color:#9fc7f2;font-size:.58rem;font-weight:950;letter-spacing:.09em;}
body .industrial-capture-head>div>span i{width:7px;height:7px;border-radius:50%;background:#35d7a2;box-shadow:0 0 0 5px rgba(53,215,162,.13);}
body .industrial-capture-head strong{margin-top:4px;font-size:.92rem;}
body .industrial-capture-head small{margin-top:3px;color:#c5d7ea;font-size:.66rem;line-height:1.38;}
body .industrial-capture-head>button{position:relative;width:42px;height:42px;display:grid;place-items:center;flex:0 0 42px;padding:0;border:1px solid rgba(255,255,255,.2);border-radius:13px;background:#06162b;color:transparent;font-size:0;line-height:0;transition:.2s;}
body .industrial-capture-head>button::before,body .industrial-capture-head>button::after{content:"";position:absolute;left:50%;top:50%;width:20px;height:2px;border-radius:999px;background:#e7f2ff;transform-origin:50% 50%;}
body .industrial-capture-head>button::before{transform:translate(-50%,-50%) rotate(45deg);}
body .industrial-capture-head>button::after{transform:translate(-50%,-50%) rotate(-45deg);}
body .industrial-capture-head>button:hover{transform:rotate(90deg);background:#123c6c;}
body .industrial-capture-stage{position:relative;isolation:isolate;min-height:330px;overflow:hidden;background:radial-gradient(circle at center,#17395c,#020913 75%);}
body .industrial-capture-stage video{position:absolute;z-index:-2;inset:0;width:100%;height:100%;object-fit:cover;background:#020913;}
body .industrial-capture-grid{position:absolute;z-index:2;left:50%;top:50%;width:min(66%,390px);aspect-ratio:1.28;transform:translate(-50%,-50%);filter:drop-shadow(0 8px 18px rgba(0,0,0,.32));}
body .industrial-capture-grid i{position:absolute;width:44px;height:44px;border-color:#a9ddff;border-style:solid;}
body .industrial-capture-grid i:nth-child(1){left:0;top:0;border-width:3px 0 0 3px;border-radius:14px 0 0;}
body .industrial-capture-grid i:nth-child(2){right:0;top:0;border-width:3px 3px 0 0;border-radius:0 14px 0 0;}
body .industrial-capture-grid i:nth-child(3){left:0;bottom:0;border-width:0 0 3px 3px;border-radius:0 0 0 14px;}
body .industrial-capture-grid i:nth-child(4){right:0;bottom:0;border-width:0 3px 3px 0;border-radius:0 0 14px;}
body .industrial-capture-grid span{position:absolute;left:5%;right:5%;top:50%;height:2px;background:linear-gradient(90deg,transparent,#39d6ff 14%,#d9f8ff 50%,#39d6ff 86%,transparent);box-shadow:0 0 13px #3bd8ff;animation:captureScanV17 2.2s ease-in-out infinite;}
body .industrial-capture-idle,body .industrial-capture-success{position:absolute;z-index:3;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:26px;color:#dcecff;background:rgba(2,9,19,.70);backdrop-filter:blur(4px);}
body .industrial-capture-idle[hidden],body .industrial-capture-success[hidden]{display:none!important;}
body .industrial-capture-idle b,body .industrial-capture-success b{width:60px;height:60px;display:grid;place-items:center;border:1px solid rgba(162,211,255,.3);border-radius:20px;background:rgba(28,88,147,.42);font-size:2rem;}
body .industrial-capture-success b{background:#12805d;border-color:#39d6a5;}
body .industrial-capture-idle strong,body .industrial-capture-success strong{margin-top:12px;font-size:1rem;}
body .industrial-capture-idle small,body .industrial-capture-success small{margin-top:5px;max-width:430px;color:#b8cee5;font-size:.72rem;overflow-wrap:anywhere;}
body .industrial-capture-status{display:flex;align-items:center;gap:9px;min-height:46px;padding:10px 15px;border-bottom:1px solid #d5e1ec;background:#fff;color:#4b647d;font-size:.72rem;font-weight:800;}
body .industrial-capture-status i{width:8px;height:8px;border-radius:50%;background:#8096ac;box-shadow:0 0 0 5px rgba(128,150,172,.11);}
body .industrial-capture-status[data-tone="active"] i{background:#1f8ee5;box-shadow:0 0 0 5px rgba(31,142,229,.12);}
body .industrial-capture-status[data-tone="success"] i{background:#13a16f;box-shadow:0 0 0 5px rgba(19,161,111,.12);}
body .industrial-capture-status[data-tone="error"]{color:#b32929;}body .industrial-capture-status[data-tone="error"] i{background:#d43b3b;}
body .industrial-capture-controls{display:flex;gap:8px;flex-wrap:wrap;padding:13px 15px;background:#f7fafc;}
body .industrial-capture-controls .btn{min-height:42px;border-radius:12px;font-size:.73rem;font-weight:850;}
body .industrial-capture-preview{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:11px;align-items:center;margin:0 15px 13px;padding:9px;border:1px solid #b8d8ca;border-radius:15px;background:#f4fbf7;}
body .industrial-capture-preview[hidden]{display:none!important;}
body .industrial-capture-preview img{width:70px;height:56px;object-fit:cover;border-radius:10px;background:#d9e5df;}
body .industrial-capture-preview strong,body .industrial-capture-preview small{display:block;}body .industrial-capture-preview strong{color:#174d3b;font-size:.76rem;}body .industrial-capture-preview small{margin-top:3px;color:#668276;font-size:.63rem;overflow-wrap:anywhere;}
body .industrial-capture-preview button{border:0;background:transparent;color:#a62d2d;font-size:.68rem;font-weight:900;}
body .industrial-capture-console>footer{display:flex;gap:8px;flex-wrap:wrap;padding:0 15px 14px;color:#71869a;font-size:.56rem;font-weight:800;}body .industrial-capture-console>footer span{padding:.3rem .45rem;border-radius:8px;background:#e6eef5;}
body .ops-timeline-evidence{display:inline-flex;align-items:center;gap:6px;margin-top:7px;padding:4px 7px;border:1px solid #cfdfed;border-radius:9px;background:#f7fbff;color:#285d97;text-decoration:none;font-size:.62rem;font-weight:850;}body .ops-timeline-evidence img{width:28px;height:24px;object-fit:cover;border-radius:5px;}
body .ops-qr-open-result{display:grid;grid-template-columns:44px minmax(0,1fr) auto;gap:11px;align-items:center;margin-top:12px;padding:12px;border:1px solid #a9d9c7;border-radius:16px;background:#f1fbf6;}body .ops-qr-open-result[hidden]{display:none!important;}body .ops-qr-open-result>span{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#16875f;color:#fff;font-weight:950;}body .ops-qr-open-result strong,body .ops-qr-open-result small{display:block;}body .ops-qr-open-result small{margin-top:3px;color:#60796e;font-size:.68rem;overflow-wrap:anywhere;}body .ops-qr-open-result.is-error{border-color:#ecc2c2;background:#fff4f4;}body .ops-qr-open-result.is-error>span{background:#c83d3d;}

/* Acceso público que se abre al leer la etiqueta del activo. */
body.asset-qr-public-v17{min-height:100vh;margin:0;background:radial-gradient(circle at 12% 0,#d9e8f5,transparent 36%),#eaf0f5;color:#12283f;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;}
body .asset-qr-public-shell{width:min(860px,calc(100% - 24px));margin:0 auto;padding:18px 0 34px;}
body .asset-qr-public-alerts .alert{border:0;border-radius:15px;box-shadow:0 10px 24px rgba(15,23,42,.08);}
body .asset-qr-public-hero{position:relative;overflow:hidden;padding:23px;border:1px solid rgba(137,187,239,.23);border-radius:27px;background:linear-gradient(135deg,#0d315d,#071a33 67%,#041124);color:#fff;box-shadow:0 24px 56px rgba(5,18,38,.24);}
body .asset-qr-public-hero::after{content:"";position:absolute;right:-80px;top:-110px;width:320px;height:320px;border-radius:50%;background:radial-gradient(circle,rgba(50,136,229,.27),transparent 68%);}
body .asset-qr-public-signal,body .asset-qr-public-identity,body .asset-qr-public-meta,body .asset-qr-public-equipment{position:relative;z-index:1;}
body .asset-qr-public-signal{display:flex;align-items:center;justify-content:space-between;gap:10px;}body .asset-qr-public-signal>span{display:flex;align-items:center;gap:8px;color:#b9d8f7;font-size:.62rem;font-weight:950;letter-spacing:.08em;}body .asset-qr-public-signal i{width:8px;height:8px;border-radius:50%;background:#37d39e;box-shadow:0 0 0 5px rgba(55,211,158,.12);}body .asset-qr-public-signal b{padding:.38rem .55rem;border-radius:9px;background:rgba(255,255,255,.1);font:900 .7rem ui-monospace,monospace;}
body .asset-qr-public-identity{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-top:24px;}body .asset-qr-public-identity small{color:#8db6e0;font-size:.59rem;font-weight:950;letter-spacing:.09em;}body .asset-qr-public-identity h1{margin:.35rem 0 .32rem;color:#fff;font-size:clamp(1.8rem,6vw,3rem);line-height:1;letter-spacing:-.045em;font-weight:950;}body .asset-qr-public-identity p{margin:0;color:#c4d7eb;font-size:.79rem;}
body .asset-qr-public-status{flex:0 0 auto;padding:.48rem .65rem;border:1px solid rgba(255,190,112,.3);border-radius:11px;background:rgba(190,110,18,.19);color:#ffd092;font-size:.67rem;font-weight:950;}body .asset-qr-public-status.is-ready{border-color:rgba(80,224,174,.3);background:rgba(29,148,106,.18);color:#8af0ca;}
body .asset-qr-public-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:20px;}body .asset-qr-public-meta>div{padding:11px;border:1px solid rgba(255,255,255,.1);border-radius:13px;background:rgba(255,255,255,.055);}body .asset-qr-public-meta small,body .asset-qr-public-meta strong{display:block;}body .asset-qr-public-meta small{color:#86a9ce;font-size:.54rem;font-weight:900;}body .asset-qr-public-meta strong{margin-top:4px;color:#fff;font-size:.72rem;overflow-wrap:anywhere;}
body .asset-qr-public-equipment{width:100%;max-height:280px;margin-top:15px;object-fit:cover;border:1px solid rgba(255,255,255,.14);border-radius:18px;}
body .asset-qr-public-guide{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:12px 0;padding:8px;border:1px solid #d5e1ec;border-radius:20px;background:#f5f8fb;}body .asset-qr-public-guide>div{display:grid;grid-template-columns:36px minmax(0,1fr);gap:9px;align-items:center;padding:9px;border-radius:14px;background:#fff;}body .asset-qr-public-guide b{width:36px;height:36px;display:grid;place-items:center;border-radius:11px;background:#e9f2ff;color:#2765b4;font-size:.65rem;}body .asset-qr-public-guide strong,body .asset-qr-public-guide small{display:block;}body .asset-qr-public-guide strong{font-size:.68rem;}body .asset-qr-public-guide small{margin-top:3px;color:#718498;font-size:.57rem;line-height:1.3;}
body .asset-qr-public-form{display:grid;gap:12px;}body .asset-qr-public-form>section{padding:18px;border:1px solid #d5e1ec;border-radius:22px;background:#fff;box-shadow:0 10px 26px rgba(15,23,42,.045);}body .asset-qr-public-section-head{display:grid;grid-template-columns:40px minmax(0,1fr);gap:10px;align-items:center;margin-bottom:15px;}body .asset-qr-public-section-head>span{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#eaf2ff;color:#2563a9;font-size:.66rem;font-weight:950;}body .asset-qr-public-section-head strong,body .asset-qr-public-section-head small{display:block;}body .asset-qr-public-section-head strong{font-size:.9rem;}body .asset-qr-public-section-head small{margin-top:3px;color:#74879a;font-size:.66rem;line-height:1.35;}body .asset-qr-public-form .form-label{color:#405a73;font-size:.68rem;font-weight:900;}body .asset-qr-public-form .form-control,body .asset-qr-public-form .form-select{min-height:48px;border-color:#cddae6;border-radius:13px;font-size:.83rem;}body .asset-qr-public-form textarea.form-control{min-height:auto;}
body .asset-qr-public-suffix{display:grid;grid-template-columns:minmax(0,1fr) 44px;}body .asset-qr-public-suffix .form-control{border-radius:13px 0 0 13px;}body .asset-qr-public-suffix span{display:grid;place-items:center;border:1px solid #cddae6;border-left:0;border-radius:0 13px 13px 0;background:#eef3f7;color:#567087;font-size:.7rem;font-weight:900;}
body .asset-qr-photo-capture>input:focus+label{outline:3px solid rgba(37,99,235,.2);outline-offset:3px;}body .asset-qr-photo-capture>label{display:grid;grid-template-columns:54px minmax(0,1fr) auto;gap:12px;align-items:center;padding:12px;border:1px dashed #8bb4de;border-radius:17px;background:linear-gradient(135deg,#f8fbff,#edf5fd);cursor:pointer;}body .asset-qr-photo-capture>label>span{width:54px;height:54px;display:grid;place-items:center;border-radius:16px;background:#0e3766;color:#fff;font-size:1.65rem;}body .asset-qr-photo-capture>label strong,body .asset-qr-photo-capture>label small{display:block;}body .asset-qr-photo-capture>label strong{font-size:.82rem;}body .asset-qr-photo-capture>label small{margin-top:4px;color:#6e8297;font-size:.65rem;line-height:1.35;}body .asset-qr-photo-capture>label b{padding:.48rem .65rem;border-radius:10px;background:#2563b4;color:#fff;font-size:.66rem;}
body .asset-qr-photo-preview{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:12px;align-items:center;margin-top:10px;padding:10px;border:1px solid #b9d9ca;border-radius:16px;background:#f3fbf7;}body .asset-qr-photo-preview[hidden]{display:none!important;}body .asset-qr-photo-preview img{width:90px;height:70px;object-fit:cover;border-radius:11px;}body .asset-qr-photo-preview strong,body .asset-qr-photo-preview small{display:block;}body .asset-qr-photo-preview strong{font-size:.76rem;}body .asset-qr-photo-preview small{margin-top:3px;color:#688074;font-size:.62rem;}body .asset-qr-photo-preview button{border:0;background:transparent;color:#af2f2f;font-size:.68rem;font-weight:900;}
body .asset-qr-public-submit{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:15px 17px;border-radius:19px;background:#0b294e;color:#fff;}body .asset-qr-public-submit strong,body .asset-qr-public-submit small{display:block;}body .asset-qr-public-submit strong{font-size:.82rem;}body .asset-qr-public-submit small{margin-top:3px;color:#aec8e1;font-size:.63rem;}body .asset-qr-public-submit button{min-height:48px;padding:0 20px;border-radius:13px;background:#2b73d6;color:#fff;font-size:.77rem;font-weight:950;}body .asset-qr-public-submit button:hover{background:#1f5fb9;color:#fff;}
body .asset-qr-public-footer{text-align:center;padding:20px 15px 0;color:#6f8294;}body .asset-qr-public-footer span{color:#376895;font-size:.58rem;font-weight:950;letter-spacing:.09em;}body .asset-qr-public-footer p{margin:.35rem auto 0;max-width:650px;font-size:.62rem;line-height:1.5;}

@keyframes captureScanV17{0%,100%{top:12%;opacity:.45}50%{top:88%;opacity:1}}
@media(max-width:650px){
  body .industrial-capture-stage{min-height:280px;}
  body .industrial-capture-grid{width:78%;}
  body .industrial-capture-controls{display:grid;grid-template-columns:1fr 1fr;}
  body .industrial-capture-controls .btn,body .industrial-capture-controls label{width:100%;display:grid;place-items:center;}
  body .industrial-capture-preview{grid-template-columns:58px minmax(0,1fr);}body .industrial-capture-preview img{width:58px;height:52px;}body .industrial-capture-preview button{grid-column:2;justify-self:start;}
  body .ops-qr-open-result{grid-template-columns:40px minmax(0,1fr);}body .ops-qr-open-result .btn{grid-column:1/-1;width:100%;}
  body .asset-qr-public-shell{width:min(100% - 14px,860px);padding-top:7px;}
  body .asset-qr-public-hero{padding:18px;border-radius:22px;}
  body .asset-qr-public-identity{align-items:flex-start;flex-direction:column;}body .asset-qr-public-identity h1{font-size:2rem;}
  body .asset-qr-public-meta,body .asset-qr-public-guide{grid-template-columns:1fr;}
  body .asset-qr-public-form>section{padding:15px;border-radius:19px;}
  body .asset-qr-photo-capture>label{grid-template-columns:48px minmax(0,1fr);}body .asset-qr-photo-capture>label>span{width:48px;height:48px;}body .asset-qr-photo-capture>label>b{grid-column:1/-1;text-align:center;}
  body .asset-qr-photo-preview{grid-template-columns:70px minmax(0,1fr);}body .asset-qr-photo-preview img{width:70px;height:60px;}body .asset-qr-photo-preview button{grid-column:2;justify-self:start;}
  body .asset-qr-public-submit{align-items:stretch;flex-direction:column;}body .asset-qr-public-submit button{width:100%;}
}
@media(prefers-reduced-motion:reduce){body .industrial-capture-grid span{animation:none;top:50%;}body .industrial-capture-head>button:hover{transform:none;}}
/* ========================================================================== */
/* V18 · ZEBRA LABEL ENGINE                                                    */
/* ========================================================================== */
.zebra-hero {
  --zebra-blue: #1874ff;
  position: relative;
  min-height: 320px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: end;
  gap: 28px;
  margin-bottom: 24px;
  padding: 42px 46px;
  color: #fff;
  border: 1px solid rgba(67, 134, 216, .35);
  border-radius: 30px;
  background: #07172d;
  box-shadow: 0 26px 60px rgba(11, 33, 61, .18);
}
.zebra-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.zebra-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 17, 36, .98) 0%, rgba(4, 20, 42, .93) 37%, rgba(4, 20, 42, .42) 67%, rgba(4, 20, 42, .18) 100%),
    linear-gradient(0deg, rgba(3, 17, 36, .4), transparent 55%);
}
.zebra-hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(#22d3ee, #1874ff 55%, #7c3aed);
}
.zebra-hero-copy,
.zebra-printer-card { position: relative; z-index: 2; }
.zebra-hero-copy { align-self: center; max-width: 710px; }
.zebra-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .13em;
  color: #9bd9ff;
}
.zebra-eyebrow i,
.zebra-printer-state i,
.zebra-live-chip i,
.zebra-canvas-meta i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  display: inline-block;
  border-radius: 50%;
  background: #32e6a1;
  box-shadow: 0 0 0 5px rgba(50, 230, 161, .1), 0 0 18px rgba(50, 230, 161, .72);
}
.zebra-hero h1 {
  max-width: 690px;
  margin: 0;
  font-size: clamp(2.05rem, 3.3vw, 3.75rem);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 900;
}
.zebra-hero-copy > p {
  max-width: 650px;
  margin: 20px 0 24px;
  font-size: 1rem;
  line-height: 1.65;
  color: #c9d6e8;
}
.zebra-hero-badges { display: flex; flex-wrap: wrap; gap: 9px; }
.zebra-hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(137, 185, 240, .2);
  border-radius: 999px;
  background: rgba(22, 55, 93, .42);
  backdrop-filter: blur(12px);
  color: #b9c9db;
  font-size: .72rem;
  font-weight: 700;
}
.zebra-hero-badges b { color: #fff; font-weight: 900; letter-spacing: .04em; }
.zebra-printer-card {
  align-self: end;
  padding: 20px 22px;
  border: 1px solid rgba(152, 196, 243, .22);
  border-radius: 19px;
  background: rgba(4, 19, 39, .72);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .24);
  backdrop-filter: blur(14px);
}
.zebra-printer-state {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(171, 202, 239, .13);
  font-size: .62rem;
  letter-spacing: .08em;
  color: #9eb0c7;
}
.zebra-printer-state b { color: #49e4ad; font-size: .58rem; }
.zebra-printer-card > strong { display: block; font-size: .98rem; letter-spacing: -.01em; }
.zebra-printer-card > small { display: block; margin-top: 6px; color: #9eb0c7; font-size: .7rem; }

.zebra-studio {
  --zebra-ink: #0b1b31;
  --zebra-muted: #66768c;
  --zebra-line: #d9e3ef;
  --zebra-blue: #176cf4;
  display: grid;
  grid-template-columns: minmax(260px, 308px) minmax(500px, 1fr) minmax(300px, 350px);
  gap: 18px;
  align-items: stretch;
}
.zebra-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d9e4f0;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 13px 35px rgba(19, 50, 89, .08);
}
.zebra-panel-head {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid #e5edf6;
  background: linear-gradient(180deg, #fff, #fbfdff);
}
.zebra-panel-head span,
.zebra-panel-head h2 { display: block; }
.zebra-panel-head div > span {
  margin-bottom: 4px;
  color: #2572de;
  font-size: .58rem;
  font-weight: 900;
  letter-spacing: .13em;
}
.zebra-panel-head h2 { margin: 0; color: var(--zebra-ink); font-size: 1rem; line-height: 1.15; font-weight: 900; }
.zebra-panel-head > b {
  min-width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eaf3ff;
  color: #176cf4;
  font-size: .76rem;
}
.zebra-type-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: 14px 14px 10px;
  padding: 5px;
  border-radius: 15px;
  background: #edf3f9;
}
.zebra-type-switch button {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  color: #6f7e91;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  transition: .2s ease;
}
.zebra-type-switch button.is-active {
  color: #0e4ca8;
  border-color: #cbdff8;
  background: #fff;
  box-shadow: 0 5px 15px rgba(30, 83, 145, .1);
}
.zebra-type-switch svg { width: 20px; height: 20px; flex: 0 0 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zebra-type-switch span { min-width: 0; font-size: .72rem; font-weight: 900; }
.zebra-type-switch small { display: block; margin-top: 2px; font-size: .52rem; font-weight: 700; color: #8291a5; }
.zebra-search {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 14px 11px;
  padding: 0 11px;
  border: 1px solid #d8e3ef;
  border-radius: 12px;
  background: #f8fbff;
}
.zebra-search:focus-within { border-color: #79aef5; box-shadow: 0 0 0 3px rgba(37, 112, 218, .09); }
.zebra-search svg { width: 17px; height: 17px; fill: none; stroke: #718198; stroke-width: 2; stroke-linecap: round; }
.zebra-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #13253c; font-size: .72rem; font-weight: 700; }
.zebra-search input::placeholder { color: #8795a8; }
.zebra-search kbd { padding: 2px 6px; border: 1px solid #d5e0ec; border-radius: 5px; background: #fff; color: #8291a5; box-shadow: none; font-size: .6rem; }
.zebra-label-list { height: 444px; overflow-y: auto; padding: 2px 10px 10px; }
.zebra-label-item {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  padding: 9px;
  text-align: left;
  color: #14243a;
  border: 1px solid #e2eaf3;
  border-radius: 14px;
  background: #fff;
  transition: .18s ease;
}
.zebra-label-item:hover { border-color: #a9c9f5; transform: translateY(-1px); box-shadow: 0 7px 16px rgba(29, 82, 144, .08); }
.zebra-label-item.is-active { border-color: #4389e9; background: #f1f7ff; box-shadow: inset 3px 0 #176cf4, 0 8px 18px rgba(23, 108, 244, .09); }
.zebra-label-symbol {
  width: 58px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 5px;
  border: 1px solid #dbe4ed;
  border-radius: 9px;
  background: #fff;
}
.zebra-label-symbol img { max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: pixelated; }
.zebra-label-copy { min-width: 0; }
.zebra-label-copy small { display: block; color: #2172df; font: 800 .58rem/1.1 ui-monospace, monospace; letter-spacing: .04em; }
.zebra-label-copy strong { display: block; overflow: hidden; margin: 4px 0; font-size: .7rem; line-height: 1.18; text-overflow: ellipsis; white-space: nowrap; }
.zebra-label-copy em { display: block; overflow: hidden; color: #77869a; font-size: .56rem; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.zebra-label-check { color: transparent; font-size: .72rem; }
.zebra-label-item.is-active .zebra-label-check { color: #176cf4; }
.zebra-empty-list { min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 25px; text-align: center; color: #8491a2; }
.zebra-empty-list b { color: #20334c; font-size: .78rem; }
.zebra-empty-list span { margin-top: 5px; font-size: .65rem; }
.zebra-library-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 14px 14px;
  padding: 11px;
  color: #65768b;
  border: 1px solid #dce9f6;
  border-radius: 12px;
  background: #f3f8fe;
}
.zebra-library-note svg { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: #2876dd; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zebra-library-note span { font-size: .57rem; line-height: 1.45; }
.zebra-library-note b { display: block; margin-bottom: 2px; color: #203b60; font-size: .6rem; }

.zebra-canvas-panel { display: flex; flex-direction: column; }
.zebra-canvas-heading { flex: 0 0 auto; }
.zebra-view-tools { display: flex; gap: 6px; }
.zebra-view-tools button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 9px;
  border: 1px solid #d9e4f0;
  border-radius: 9px;
  background: #fff;
  color: #63758c;
  font-size: .58rem;
  font-weight: 800;
}
.zebra-view-tools button.is-on { border-color: #a9caf5; background: #edf5ff; color: #176cf4; }
.zebra-view-tools svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.zebra-canvas-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 18px;
  color: #6f7e91;
  border-bottom: 1px solid #e1eaf3;
  background: #f7fafd;
  font-size: .58rem;
  font-weight: 800;
}
.zebra-canvas-meta > span:first-child { margin-right: auto; color: #1c65c9; font-family: ui-monospace, monospace; font-size: .62rem; }
.zebra-canvas-meta i { width: 6px; height: 6px; margin-right: 5px; }
.zebra-stage {
  position: relative;
  flex: 1;
  min-height: 455px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 46px 28px 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgba(54, 121, 214, .13), transparent 43%),
    linear-gradient(135deg, #eaf0f6, #dce4ec);
}
.zebra-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .28;
  background-image: linear-gradient(rgba(74, 99, 130, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(74, 99, 130, .16) 1px, transparent 1px);
  background-size: 24px 24px;
}
.zebra-stage-ruler { position: absolute; z-index: 2; color: #718094; font: 700 .5rem/1 ui-monospace, monospace; }
.zebra-stage-ruler-x { top: 18px; left: 28px; right: 28px; display: flex; justify-content: space-between; padding-top: 9px; border-top: 1px solid rgba(77, 102, 132, .38); }
.zebra-stage-ruler-x span::before { content: ""; display: block; width: 1px; height: 5px; margin-top: -10px; background: rgba(77, 102, 132, .55); }
.zebra-sheet-wrap { position: relative; z-index: 3; width: 100%; max-width: 980px; margin: auto; }
.zebra-preview { display: block; width: 100%; height: auto; overflow: visible; touch-action: none; }
.zebra-preview-element.is-interactive { cursor: grab; }
.zebra-preview-element.is-interactive:active,
.zebra-is-dragging .zebra-preview-element { cursor: grabbing; }
.zebra-selection-outline { fill: rgba(22, 115, 244, .035); stroke: #1473f5; stroke-width: 1.5; stroke-dasharray: 5 3; vector-effect: non-scaling-stroke; pointer-events: none; }
.zebra-selection-handle { fill: #1473f5; stroke: #fff; stroke-width: 1.2; vector-effect: non-scaling-stroke; pointer-events: none; }
.zebra-stage.hide-guides .zebra-grid-layer,
.zebra-stage.hide-guides .zebra-selection-outline,
.zebra-stage.hide-guides .zebra-selection-handle,
.zebra-stage.hide-guides .zebra-stage-ruler { opacity: 0; }
.zebra-stage-caption { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; margin-top: 14px; color: #637387; text-align: center; font: 700 .52rem/1 ui-monospace, monospace; }
.zebra-stage-caption b { color: #35516f; font-size: .5rem; }
.zebra-selected-strip {
  min-height: 67px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid #dce6f0;
  background: #fff;
}
.zebra-selected-strip > div:first-child span { display: block; color: #7c899b; font-size: .52rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.zebra-selected-strip > div:first-child strong { display: block; margin-top: 2px; color: #142844; font-size: .72rem; }
.zebra-selected-strip > small { grid-column: 1/-1; display: none; }
.zebra-coordinate-readout { display: flex; gap: 6px; }
.zebra-coordinate-readout span { min-width: 58px; padding: 6px 8px; color: #718198; border: 1px solid #dbe5ef; border-radius: 8px; background: #f8fbff; font: 700 .5rem/1 ui-monospace, monospace; }
.zebra-coordinate-readout b { float: right; color: #176cf4; }

.zebra-inspector { display: flex; flex-direction: column; }
.zebra-live-chip {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  color: #168157;
  border: 1px solid #bcebd8;
  border-radius: 99px;
  background: #edfff7;
  font-size: .52rem !important;
  font-weight: 900;
}
.zebra-live-chip i { width: 5px; height: 5px; flex-basis: 5px; box-shadow: none; }
.zebra-element-list { height: 226px; overflow-y: auto; padding: 8px; border-bottom: 1px solid #e1e9f2; background: #f7fafd; }
.zebra-element-list button {
  width: 100%;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  padding: 7px 8px;
  text-align: left;
  color: #4a5e76;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
}
.zebra-element-list button:hover { background: #fff; }
.zebra-element-list button.is-active { color: #155bbd; border-color: #bdd6f7; background: #fff; box-shadow: 0 5px 12px rgba(33, 89, 155, .07); }
.zebra-element-list button.is-hidden { opacity: .48; }
.zebra-element-list button > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #e7f1fe; color: #176cf4; font: 900 .58rem/1 ui-monospace, monospace; }
.zebra-element-list strong { display: block; font-size: .62rem; }
.zebra-element-list small { display: block; margin-top: 1px; color: #8995a6; font-size: .5rem; }
.zebra-element-list i { color: #20aa75; font-size: .48rem; font-style: normal; }
.zebra-control-stack { padding: 13px 15px; }
.zebra-control-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.zebra-control-title > strong { color: #10243f; font-size: .72rem; }
.zebra-control-title button { display: inline-flex; align-items: center; gap: 5px; padding: 5px 7px; color: #178159; border: 1px solid #bfe8d9; border-radius: 8px; background: #effcf7; font-size: .52rem; font-weight: 900; }
.zebra-control-title button.is-off { color: #7d8998; border-color: #d9e0e8; background: #f4f6f8; }
.zebra-control-title svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.zebra-control-row { display: block; margin-bottom: 9px; }
.zebra-control-row > span { display: flex; justify-content: space-between; margin-bottom: 4px; color: #63748a; font-size: .54rem; font-weight: 800; }
.zebra-control-row > span b { color: #196bd7; }
.zebra-control-row > div { display: grid; grid-template-columns: 1fr 54px 20px; align-items: center; gap: 6px; }
.zebra-control-row input[type="range"] { width: 100%; accent-color: #176cf4; }
.zebra-control-row input[type="number"],
.zebra-printer-settings input {
  width: 100%;
  min-width: 0;
  height: 29px;
  padding: 4px 5px;
  color: #15365f;
  text-align: center;
  border: 1px solid #d4e0ec;
  border-radius: 7px;
  background: #f8fbff;
  font: 800 .58rem/1 ui-monospace, monospace;
}
.zebra-control-row em,
.zebra-printer-settings em { color: #8290a2; font-size: .48rem; font-style: normal; }
.zebra-text-control { display: block; margin: 10px 0; }
.zebra-text-control span { display: block; margin-bottom: 4px; color: #63748a; font-size: .54rem; font-weight: 800; }
.zebra-text-control input { width: 100%; height: 34px; padding: 6px 9px; border: 1px solid #d5e1ee; border-radius: 8px; background: #f8fbff; color: #17304f; font-size: .6rem; font-weight: 700; }
.zebra-nudge-pad { margin-top: 8px; padding: 8px; border: 1px solid #e0e8f1; border-radius: 10px; background: #f8fafc; }
.zebra-nudge-pad > span { display: block; margin-bottom: 6px; color: #708095; font-size: .5rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.zebra-nudge-pad > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.zebra-nudge-pad button { padding: 5px 3px; color: #315172; border: 1px solid #d5e0ea; border-radius: 6px; background: #fff; font-size: .5rem; font-weight: 800; }
.zebra-nudge-pad button:hover { color: #176cf4; border-color: #9fc2ef; }
.zebra-reset-element { width: 100%; margin-top: 7px; padding: 7px; color: #66778c; border: 0; background: transparent; font-size: .52rem; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.zebra-printer-settings { margin: auto 12px 12px; overflow: hidden; border: 1px solid #dce6ef; border-radius: 12px; background: #f8fbfe; }
.zebra-printer-settings summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; cursor: pointer; list-style: none; color: #27415f; font-size: .56rem; font-weight: 900; }
.zebra-printer-settings summary::-webkit-details-marker { display: none; }
.zebra-printer-settings summary span { display: inline-flex; align-items: center; gap: 6px; }
.zebra-printer-settings summary b { color: #176cf4; font-size: .46rem; letter-spacing: .07em; }
.zebra-printer-settings svg { width: 15px; height: 15px; fill: none; stroke: #176cf4; stroke-width: 1.8; }
.zebra-printer-settings > div { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 10px 10px; }
.zebra-printer-settings label { display: grid; grid-template-columns: 1fr 48px 18px; align-items: center; gap: 4px; color: #68798d; font-size: .49rem; }
.zebra-printer-settings p { grid-column: 1/-1; margin: 2px 0 0; color: #7c8999; font-size: .48rem; line-height: 1.4; }

.zebra-action-dock {
  position: sticky;
  z-index: 50;
  bottom: 12px;
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 18px 0 8px;
  padding: 13px 16px;
  border: 1px solid #d4e1ee;
  border-radius: 21px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 44px rgba(15, 44, 81, .18);
  backdrop-filter: blur(16px);
}
.zebra-action-status { min-width: 0; flex: 1; display: grid; grid-template-columns: 43px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.zebra-action-icon { width: 43px; height: 43px; display: grid; place-items: center; color: #176cf4; border: 1px solid #cfe1f9; border-radius: 12px; background: #edf5ff; }
.zebra-action-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.zebra-action-status div { min-width: 0; }
.zebra-action-status div span { display: block; color: #718197; font-size: .5rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.zebra-action-status div strong { display: block; overflow: hidden; margin-top: 3px; color: #122842; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.zebra-action-status > small { padding: 5px 8px; color: #18805a; border: 1px solid #c5e8da; border-radius: 99px; background: #f0fbf7; font-size: .5rem; font-weight: 900; }
.zebra-action-status > small.is-dirty { color: #a6610d; border-color: #f0d5a8; background: #fff8ec; }
.zebra-action-buttons { display: flex; align-items: center; gap: 7px; }
.zebra-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: .6rem;
  font-weight: 900;
  transition: .18s ease;
}
.zebra-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zebra-btn-ghost { color: #718096; border: 0; background: transparent; }
.zebra-btn-outline { color: #1d548e; border: 1px solid #cbdbea; background: #fff; }
.zebra-btn-outline:hover { border-color: #8fb6e3; background: #f3f8fe; }
.zebra-btn-primary { padding-inline: 18px; color: #fff; border: 1px solid #176cf4; background: linear-gradient(135deg, #176cf4, #114fc6); box-shadow: 0 9px 20px rgba(23, 108, 244, .26); }
.zebra-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(23, 108, 244, .32); }
.zebra-btn:disabled { cursor: not-allowed; opacity: .48; transform: none; box-shadow: none; }
.zebra-download-group { display: flex; }
.zebra-download-group .zebra-btn { min-width: 47px; padding-inline: 8px; border-radius: 0; }
.zebra-download-group .zebra-btn:first-child { border-radius: 11px 0 0 11px; }
.zebra-download-group .zebra-btn:last-child { margin-left: -1px; border-radius: 0 11px 11px 0; }
.zebra-btn.is-busy::after { content: ""; width: 13px; height: 13px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: zebra-spin .7s linear infinite; }
@keyframes zebra-spin { to { transform: rotate(360deg); } }
.zebra-toast {
  position: fixed;
  z-index: 5000;
  right: 24px;
  bottom: 112px;
  min-width: 300px;
  max-width: min(420px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #fff;
  border: 1px solid rgba(133, 180, 236, .25);
  border-radius: 14px;
  background: #09223f;
  box-shadow: 0 18px 45px rgba(3, 17, 34, .34);
  opacity: 0;
  transform: translateY(15px) scale(.97);
  pointer-events: none;
  transition: .22s ease;
}
.zebra-toast.is-visible { opacity: 1; transform: none; }
.zebra-toast > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(46, 226, 160, .15); color: #46e2ac; font-weight: 900; }
.zebra-toast.tone-error > span { color: #ff8c91; background: rgba(255, 84, 92, .15); }
.zebra-toast.tone-busy > span { animation: zebra-spin 1s linear infinite; }
.zebra-toast strong { display: block; font-size: .7rem; }
.zebra-toast small { display: block; margin-top: 2px; color: #aac0d9; font-size: .56rem; line-height: 1.35; }

[data-theme="dark"] .zebra-panel,
[data-theme="dark"] .zebra-action-dock { color: #dce8f7; border-color: #2a4058; background: #101e2e; }
[data-theme="dark"] .zebra-panel-head { border-color: #2a4058; background: #101e2e; }
[data-theme="dark"] .zebra-panel-head h2,
[data-theme="dark"] .zebra-control-title > strong,
[data-theme="dark"] .zebra-selected-strip > div:first-child strong,
[data-theme="dark"] .zebra-action-status div strong { color: #eef6ff; }
[data-theme="dark"] .zebra-selected-strip { border-color: #2a4058; background: #101e2e; }

@media (max-width: 1540px) {
  .zebra-studio { grid-template-columns: 275px minmax(460px, 1fr) 315px; gap: 13px; }
  .zebra-hero { grid-template-columns: 1fr 320px; min-height: 290px; padding: 34px 36px; }
  .zebra-panel-head { padding-inline: 15px; }
  .zebra-action-dock { flex-wrap: wrap; }
  .zebra-action-buttons { margin-left: auto; }
}
@media (max-width: 1280px) {
  .zebra-studio { grid-template-columns: 280px minmax(0, 1fr); }
  .zebra-inspector { grid-column: 1/-1; display: grid; grid-template-columns: 280px 1fr 290px; align-items: start; }
  .zebra-inspector > .zebra-panel-head { grid-column: 1/-1; }
  .zebra-element-list { height: 285px; border-right: 1px solid #e1e9f2; border-bottom: 0; }
  .zebra-printer-settings { margin: 14px; }
  .zebra-stage { min-height: 400px; }
}
@media (max-width: 900px) {
  .zebra-hero { min-height: 360px; grid-template-columns: 1fr; padding: 30px 26px; }
  .zebra-hero-image { object-position: 65% center; }
  .zebra-hero-overlay { background: linear-gradient(90deg, rgba(3, 17, 36, .97), rgba(4, 20, 42, .66)); }
  .zebra-printer-card { display: none; }
  .zebra-studio { grid-template-columns: 1fr; }
  .zebra-library,
  .zebra-canvas-panel,
  .zebra-inspector { grid-column: 1; }
  .zebra-library { display: grid; grid-template-columns: 1fr 1fr; }
  .zebra-library > .zebra-panel-head,
  .zebra-library > .zebra-library-note { grid-column: 1/-1; }
  .zebra-label-list { height: 270px; grid-column: 2; grid-row: 2/4; }
  .zebra-inspector { display: grid; grid-template-columns: 1fr 1fr; }
  .zebra-inspector > .zebra-panel-head { grid-column: 1/-1; }
  .zebra-printer-settings { grid-column: 1/-1; }
  .zebra-action-dock { position: static; }
  .zebra-action-status { width: 100%; flex-basis: 100%; }
  .zebra-action-buttons { width: 100%; margin: 0; flex-wrap: wrap; }
  .zebra-btn-primary { margin-left: auto; }
}
@media (max-width: 620px) {
  .zebra-hero { min-height: 390px; padding: 28px 20px; border-radius: 22px; }
  .zebra-hero h1 { font-size: 2rem; }
  .zebra-hero-copy > p { font-size: .86rem; }
  .zebra-panel { border-radius: 18px; }
  .zebra-library { display: block; }
  .zebra-label-list { height: 310px; }
  .zebra-stage { min-height: 300px; padding: 42px 10px 20px; }
  .zebra-stage-caption { font-size: .42rem; }
  .zebra-canvas-meta span:last-child { display: none; }
  .zebra-view-tools span { display: none; }
  .zebra-selected-strip { grid-template-columns: 1fr; }
  .zebra-coordinate-readout { justify-content: space-between; }
  .zebra-inspector { display: block; }
  .zebra-element-list { height: 260px; border-right: 0; border-bottom: 1px solid #e1e9f2; }
  .zebra-action-status { grid-template-columns: 40px 1fr; }
  .zebra-action-status > small { grid-column: 1/-1; justify-self: start; }
  .zebra-action-buttons { display: grid; grid-template-columns: 1fr 1fr; }
  .zebra-download-group { display: grid; grid-template-columns: 1fr 1fr; }
  .zebra-download-group .zebra-btn { width: 100%; }
  .zebra-btn-primary { grid-column: 1/-1; margin: 0; }
  .zebra-toast { right: 16px; bottom: 20px; }
}

/* V19 · formato Zebra universal, medios variables y elementos libres */
.zebra-hero-badges i,
.zebra-library-note i { color: inherit; font-style: normal; }
.zebra-library-note span > i { display: block; line-height: 1.42; }
.zebra-add-elements {
  padding: 10px 12px 8px;
  border-bottom: 1px solid #e1e9f2;
  background: linear-gradient(180deg, #fbfdff, #f5f9fd);
}
.zebra-add-elements > span {
  display: block;
  margin-bottom: 7px;
  color: #637891;
  font-size: .49rem;
  font-weight: 900;
  letter-spacing: .1em;
}
.zebra-add-elements > div { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.zebra-add-elements button {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 48px;
  padding: 5px 2px;
  color: #315b8c;
  border: 1px solid #d5e2f0;
  border-radius: 9px;
  background: #fff;
  transition: .18s ease;
}
.zebra-add-elements button:hover { color: #176cf4; border-color: #87b4ed; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(22, 94, 180, .1); }
.zebra-add-elements b { font: 900 .65rem/1 ui-monospace, monospace; }
.zebra-add-elements small { overflow: hidden; max-width: 100%; font-size: .43rem; font-weight: 800; text-overflow: ellipsis; }
.zebra-control-title > div { display: flex; align-items: center; gap: 5px; }
.zebra-control-title .zebra-delete-element {
  color: #be3045;
  border-color: #f0c5cb;
  background: #fff5f6;
}
.zebra-text-control textarea {
  width: 100%;
  min-height: 48px;
  resize: vertical;
  padding: 7px 9px;
  border: 1px solid #d5e1ee;
  border-radius: 8px;
  outline: 0;
  background: #f8fbff;
  color: #17304f;
  font-size: .6rem;
  font-weight: 700;
  line-height: 1.35;
}
.zebra-text-control textarea:focus { border-color: #7eaef0; box-shadow: 0 0 0 3px rgba(23, 108, 244, .08); }
.zebra-format-settings {
  margin: 0 12px 10px;
  overflow: hidden;
  border: 1px solid #cfe0f2;
  border-radius: 13px;
  background: #f6faff;
}
.zebra-format-settings summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px;
  cursor: pointer;
  list-style: none;
  color: #183f70;
  border-bottom: 1px solid transparent;
  font-size: .58rem;
  font-weight: 900;
}
.zebra-format-settings[open] summary { border-bottom-color: #dbe7f3; background: #edf5ff; }
.zebra-format-settings summary::-webkit-details-marker { display: none; }
.zebra-format-settings summary span { display: inline-flex; align-items: center; gap: 6px; }
.zebra-format-settings summary b { color: #176cf4; font-size: .45rem; letter-spacing: .08em; }
.zebra-format-settings svg { width: 15px; height: 15px; fill: none; stroke: #176cf4; stroke-width: 1.8; }
.zebra-format-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 10px;
}
.zebra-format-grid label {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 67px 19px;
  align-items: center;
  gap: 5px;
  color: #62758d;
  font-size: .5rem;
  font-weight: 800;
}
.zebra-format-grid label.is-wide { grid-column: 1/-1; grid-template-columns: 1fr 1.25fr; }
.zebra-format-grid input,
.zebra-format-grid select {
  width: 100%;
  min-width: 0;
  height: 30px;
  padding: 3px 5px;
  color: #123b70;
  text-align: center;
  border: 1px solid #cfdeed;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  font: 800 .55rem/1 ui-monospace, monospace;
}
.zebra-format-grid select { text-align: left; font-family: inherit; }
.zebra-format-grid em { color: #8593a4; font-size: .46rem; font-style: normal; }
.zebra-format-summary {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding-top: 3px;
}
.zebra-format-summary span { padding: 7px; color: #78879a; text-align: center; border: 1px solid #d9e5f1; border-radius: 8px; background: #fff; font-size: .44rem; line-height: 1.35; }
.zebra-format-summary b { display: block; color: #1762c3; font: 900 .52rem/1.2 ui-monospace, monospace; }
.zebra-printer-settings label.is-wide { grid-column: 1/-1; }
.zebra-printer-settings label.is-wide input { text-align: left; padding-inline: 8px; }
.zebra-element-list { height: 254px; }
.zebra-sheet-wrap { display: flex; align-items: center; justify-content: center; }
.zebra-preview { max-height: 490px; }
.zebra-stage-caption { overflow-x: auto; padding-bottom: 2px; }
.zebra-stage-caption > * { min-width: max-content; }

@media (max-width: 1280px) {
  .zebra-inspector {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
  }
  .zebra-inspector > .zebra-panel-head { grid-column: 1/-1; grid-row: 1; }
  .zebra-inspector > .zebra-add-elements { grid-column: 1; grid-row: 2; }
  .zebra-inspector > .zebra-element-list { grid-column: 1; grid-row: 3; height: 310px; border-right: 1px solid #e1e9f2; border-bottom: 0; }
  .zebra-inspector > .zebra-control-stack { grid-column: 2; grid-row: 2/4; }
  .zebra-inspector > .zebra-format-settings,
  .zebra-inspector > .zebra-printer-settings { grid-column: 1/-1; }
  .zebra-format-grid { grid-template-columns: repeat(4, 1fr); }
  .zebra-format-grid label.is-wide { grid-column: span 2; }
  .zebra-format-summary { grid-column: 1/-1; }
}
@media (max-width: 900px) {
  .zebra-inspector { display: block; }
  .zebra-element-list { height: 280px; border-right: 0 !important; border-bottom: 1px solid #e1e9f2 !important; }
  .zebra-format-grid { grid-template-columns: 1fr 1fr; }
  .zebra-format-grid label.is-wide { grid-column: 1/-1; }
}
@media (max-width: 620px) {
  .zebra-format-grid { grid-template-columns: 1fr; }
  .zebra-format-grid label,
  .zebra-format-grid label.is-wide { grid-column: 1; grid-template-columns: minmax(0, 1fr) 74px 20px; }
  .zebra-format-grid label.is-wide { grid-template-columns: 1fr; }
  .zebra-format-summary { grid-template-columns: 1fr; }
  .zebra-add-elements > div { grid-template-columns: repeat(5, minmax(48px, 1fr)); overflow-x: auto; }
}

/* ========================================================================
   ENTERPRISE INDUSTRIAL V20 · CLIENTES, PEDIDOS EDITABLES Y RUTAS VINCULADAS
   ======================================================================== */
body .client-command-heading{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;margin-bottom:16px;}
body .client-command-heading h1{margin:.38rem 0 .28rem;color:#10243d;font-size:clamp(1.5rem,2.2vw,2.05rem);font-weight:950;letter-spacing:-.035em;}
body .client-command-heading p{margin:0;color:#647a91;font-size:.82rem;}
body .client-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px;}
body .client-kpi-grid article{display:flex;align-items:center;gap:13px;min-height:92px;padding:16px;border:1px solid #dbe6f0;border-radius:22px;background:linear-gradient(180deg,#fff,#f6f9fc);box-shadow:0 13px 30px rgba(15,23,42,.055);}
body .client-kpi-grid article>span{display:grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#eaf3ff;color:#2563eb;font-size:.72rem;font-weight:950;}
body .client-kpi-grid small{display:block;color:#657b92;font-size:.72rem;font-weight:850;}
body .client-kpi-grid strong{display:block;margin-top:3px;color:#10243d;font-size:1.48rem;line-height:1;font-weight:950;}
body .client-master-board{overflow:hidden;border:1px solid #dce6ef;border-radius:28px;box-shadow:0 20px 50px rgba(15,23,42,.065);}
body .client-master-board .card-body{padding:22px;}
body .client-master-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:16px;}
body .client-master-head h2{margin:.2rem 0 0;color:#10243d;font-size:1.15rem;font-weight:950;}
body .client-master-head p{margin:.38rem 0 0;color:#6b8096;font-size:.8rem;}
body .client-result-count{display:inline-flex;padding:.5rem .72rem;border-radius:12px;background:#eaf3ff;color:#2563eb;font-size:.72rem;font-weight:900;}
body .client-filter-grid{display:grid;grid-template-columns:minmax(220px,1.4fr) repeat(3,minmax(150px,.75fr)) auto;gap:10px;align-items:end;padding:14px;margin-bottom:16px;border:1px solid #d9e5ef;border-radius:19px;background:#f5f9fc;}
body .client-filter-grid label>span,body .client-location-grid label>span,body .route-sheet-map-controls label{display:block;margin-bottom:5px;color:#496580;font-size:.68rem;font-weight:900;}
body .client-filter-grid label small,body .client-location-grid label small,body .route-sheet-map-controls label small{color:#8494a6;font-size:.58rem;}
body .client-filter-grid .form-control,body .client-filter-grid .form-select{height:44px;border-radius:13px;font-size:.82rem;}
body .client-filter-actions{display:flex;gap:7px;}
body .client-table-wrap{max-height:610px;overflow:auto;}
body .client-master-table thead th{position:sticky;top:0;z-index:2;background:#f2f6fa;color:#60758c;font-size:.68rem;text-transform:uppercase;letter-spacing:.05em;}
body .client-master-table td{font-size:.82rem;}
body .client-master-table td>strong,body .client-master-table td>small{display:block;}
body .client-master-table td>small{margin-top:3px;color:#71869b;font-size:.7rem;}
body .client-geo-state{display:inline-flex;align-items:center;gap:7px;color:#a16207;font-size:.72rem;font-weight:900;}
body .client-geo-state i{width:8px;height:8px;border-radius:50%;background:#f59e0b;box-shadow:0 0 0 4px rgba(245,158,11,.12);}
body .client-geo-state.is-ready{color:#087c4c;}body .client-geo-state.is-ready i{background:#22c55e;box-shadow:0 0 0 4px rgba(34,197,94,.12);}
body .client-order-count{display:grid;place-items:center;width:34px;height:34px;border-radius:12px;background:#edf4ff;color:#1d4ed8;font-weight:950;}
body .client-status-pill{display:inline-flex;padding:.35rem .58rem;border-radius:999px;background:#eafaf2;color:#087d4d;border:1px solid #c5ead7;font-size:.68rem;font-weight:900;}
body .client-status-pill.is-archived{background:#f1f5f9;color:#64748b;border-color:#dbe3eb;}
body .client-row-actions{display:flex;gap:6px;align-items:center;}body .client-row-actions form{margin:0;}
body .client-master-modal .modal-dialog{max-width:1080px!important;}body .client-master-modal .industrial-modal-content{max-height:min(95vh,1000px)!important;}
body .client-modal-hero{height:142px!important;min-height:142px!important;}body .client-modal-body{padding:14px 16px 8px!important;}
body .client-location-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
body .client-location-search{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;}
body .client-location-feedback{display:flex;align-items:center;gap:9px;margin-top:10px;padding:10px 12px;border:1px solid #dce6ef;border-radius:14px;background:#f7fafc;color:#6a8096;font-size:.76rem;font-weight:780;}
body .client-location-feedback i{width:8px;height:8px;border-radius:50%;background:#f59e0b;}body .client-location-feedback.is-ready{color:#087c4c;background:#ecfaf4;border-color:#c8ead9;}body .client-location-feedback.is-ready i{background:#22c55e;}
body .client-picker-map{height:310px;margin-top:10px;overflow:hidden;border:1px solid #cbd9e6;border-radius:19px;background:#dce8f4;}

body .distribution-order-card{padding-bottom:42px;}
body .distribution-order-edit{position:absolute;right:12px;bottom:10px;z-index:3;padding:.28rem .55rem;border:1px solid #b9d0ee;border-radius:9px;background:#fff;color:#225b9f;font-size:.66rem;font-weight:900;line-height:1.1;}
body .distribution-order-edit:hover{background:#eaf3ff;border-color:#8db5eb;}
body .distribution-geo-buttons{display:flex;gap:7px;align-items:center;}
body .distribution-geo-buttons .btn{height:44px;white-space:nowrap;font-size:.76rem;}
body .distribution-place-search-input{grid-template-columns:38px minmax(0,1fr) auto auto;}

body .route-order-bank-section{background:linear-gradient(180deg,#fbfdff,#f4f8fc)!important;}
body .route-order-bank-toolbar{display:grid;grid-template-columns:minmax(240px,1fr) auto auto;gap:9px;align-items:center;margin-bottom:10px;}
body .route-order-bank-toolbar>span{padding:.48rem .65rem;border-radius:11px;background:#eaf3ff;color:#245da4;font-size:.68rem;font-weight:900;white-space:nowrap;}
body .route-order-bank{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:220px;overflow:auto;padding:2px;}
body .route-order-choice{position:relative;display:grid;grid-template-columns:24px minmax(0,1fr);gap:9px;padding:11px;border:1px solid #d8e4ee;border-radius:15px;background:#fff;cursor:pointer;transition:.16s ease;}
body .route-order-choice>input{position:absolute;opacity:0;pointer-events:none;}
body .route-order-choice-check{display:grid;place-items:center;width:22px;height:22px;border:1px solid #cddae6;border-radius:8px;background:#edf2f7;color:transparent;font-size:.7rem;font-weight:950;}
body .route-order-choice:has(input:checked){border-color:#82b1f6;background:#eef5ff;box-shadow:0 8px 22px rgba(37,99,235,.09);}body .route-order-choice:has(input:checked) .route-order-choice-check{border-color:#2563eb;background:#2563eb;color:#fff;}
body .route-order-choice strong,body .route-order-choice small,body .route-order-choice em{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
body .route-order-choice strong{color:#17304e;font-size:.78rem;}body .route-order-choice small{margin-top:3px;color:#5e7690;font-size:.68rem;}body .route-order-choice em{margin-top:4px;color:#8191a3;font-size:.61rem;font-style:normal;}
body .route-sheet-map-controls{display:grid;grid-template-columns:minmax(240px,1.3fr) minmax(130px,.55fr) minmax(150px,.65fr) auto;gap:9px;align-items:end;margin-top:12px;padding-top:12px;border-top:1px solid #dbe5ee;}
body .route-sheet-place-query{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;}
body .route-sheet-map-controls .form-control{height:42px;border-radius:12px;font-size:.78rem;}
body .route-sheet-map-shell{margin-top:10px;padding:10px;border:1px solid #d3e0eb;border-radius:18px;background:#edf4fa;}
body .route-sheet-map-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:9px;color:#17304e;font-size:.76rem;}body .route-sheet-map-head>div{display:flex;align-items:center;gap:8px;}body .route-sheet-map-head small,body .route-sheet-map-head>span{color:#70859a;font-size:.66rem;}
body #routeSheetMap{height:310px;overflow:hidden;border:1px solid #c7d7e5;border-radius:15px;background:#dce8f4;}
body .planning-entry-table .col-sequence{width:44px;text-align:center;}body .route-stop-sequence{text-align:center;color:#2563eb;font-weight:950;}

@media(max-width:1180px){body .client-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr));}body .client-filter-actions{grid-column:1/-1;}body .route-sheet-map-controls{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:850px){body .client-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));}body .client-command-heading{align-items:flex-start;flex-direction:column;}body .client-location-search{grid-template-columns:1fr;}body .route-order-bank{grid-template-columns:1fr;}body .route-order-bank-toolbar{grid-template-columns:1fr;}body .distribution-place-search-input{grid-template-columns:34px minmax(0,1fr);}body .distribution-place-search-input .btn,body .distribution-place-search-input>a{grid-column:1/-1;width:100%;}}
@media(max-width:560px){body .client-kpi-grid,body .client-filter-grid,body .client-location-grid,body .route-sheet-map-controls{grid-template-columns:1fr;}body .client-filter-actions{grid-column:auto;flex-direction:column;}body .client-filter-actions .btn{width:100%;}body .client-master-board .card-body{padding:14px;}body .client-picker-map,body #routeSheetMap{height:260px;}body .distribution-geo-buttons{flex-direction:column;}body .distribution-geo-buttons .btn{width:100%;}}

/* ========================================================================== */
/* V21 · Centro móvil industrial, QR, Zebra rápida y combustible documental   */
/* ========================================================================== */
.login-device-note{display:grid;grid-template-columns:auto 1fr;gap:.12rem .65rem;align-items:center;padding:.85rem 1rem;border:1px solid rgba(15,61,104,.16);border-radius:18px;background:linear-gradient(135deg,#f4f8fc,#eef5fb);color:#11253c}.login-device-note span{font-size:.68rem;letter-spacing:.14em;font-weight:900;color:#4d6a86;text-transform:uppercase}.login-device-note strong{justify-self:end;font-size:.78rem;color:#0c6f8d}.login-device-note small{grid-column:1/-1;color:#607286;line-height:1.45}
.header-mobile-link{white-space:nowrap}
.mobile-portal-page{display:grid;gap:1.35rem;max-width:1500px;margin:0 auto;padding-bottom:2rem}
.mobile-command-hero,.fuel-mobile-hero,.fuel-command-hero{position:relative;min-height:390px;overflow:hidden;border-radius:30px;background:#061525;box-shadow:0 24px 60px rgba(5,22,40,.18);isolation:isolate}
.mobile-command-visual,.fuel-mobile-track,.fuel-command-track{position:absolute;inset:0;overflow:hidden}
.mobile-image-flow,.fuel-mobile-track,.fuel-command-track{display:flex;width:max-content;height:100%;animation:industrialFlowRight 30s linear infinite;will-change:transform}
.mobile-image-flow img,.fuel-mobile-track img,.fuel-command-track img{width:440px;height:100%;object-fit:cover;flex:0 0 auto;filter:saturate(.9) contrast(1.05)}
@keyframes industrialFlowRight{from{transform:translateX(-44%)}to{transform:translateX(0)}}
.mobile-command-overlay,.fuel-mobile-shade,.fuel-command-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,15,30,.96) 0%,rgba(5,25,46,.88) 42%,rgba(5,24,43,.35) 72%,rgba(4,17,31,.62) 100%);z-index:1}
.mobile-command-copy,.fuel-mobile-copy,.fuel-command-copy{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;min-height:390px;max-width:790px;padding:3.3rem;color:#fff}
.mobile-live-label{display:inline-flex;align-items:center;gap:.55rem;width:max-content;font-size:.7rem;letter-spacing:.19em;font-weight:900;color:#b8dff0}.mobile-live-label i{width:8px;height:8px;border-radius:50%;background:#45d99b;box-shadow:0 0 0 6px rgba(69,217,155,.13)}
.mobile-command-copy h1,.fuel-mobile-copy h1,.fuel-command-copy h1{margin:.8rem 0 .7rem;font-size:clamp(2.15rem,5vw,4.4rem);line-height:.95;letter-spacing:-.045em;font-weight:900}.mobile-command-copy p,.fuel-mobile-copy p,.fuel-command-copy p{max-width:680px;margin:0;color:#cfdeeb;font-size:1.02rem;line-height:1.65}
.mobile-command-meta{display:flex;flex-wrap:wrap;gap:.55rem;margin-top:1.3rem}.mobile-command-meta span{padding:.48rem .78rem;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(8,28,48,.45);font-size:.75rem;color:#e5f0f7;backdrop-filter:blur(8px)}
.mobile-command-actions,.fuel-command-actions{display:flex;flex-wrap:wrap;gap:.7rem;margin-top:1.45rem}.mobile-primary-action,.fuel-primary-btn{padding:.78rem 1.08rem;border:0;border-radius:15px;background:linear-gradient(135deg,#0d92b4,#08718f);color:#fff;font-weight:800;box-shadow:0 10px 24px rgba(3,128,163,.25)}.mobile-primary-action:hover,.fuel-primary-btn:hover{color:#fff;transform:translateY(-1px)}.mobile-secondary-action,.fuel-glass-btn{padding:.78rem 1.08rem;border:1px solid rgba(255,255,255,.24);border-radius:15px;background:rgba(255,255,255,.08);color:#fff;font-weight:800;backdrop-filter:blur(10px)}.mobile-secondary-action:hover,.fuel-glass-btn:hover{background:rgba(255,255,255,.15);color:#fff}
.mobile-pulse-grid,.fuel-kpi-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:.85rem}.mobile-pulse-grid article,.fuel-kpi-grid article{position:relative;overflow:hidden;padding:1rem 1.05rem;border:1px solid #dce7ef;border-radius:21px;background:linear-gradient(145deg,#fff,#f3f7fa);box-shadow:0 10px 28px rgba(24,53,78,.07)}.mobile-pulse-grid article:before,.fuel-kpi-grid article:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#0b8eae}.mobile-pulse-grid small,.fuel-kpi-grid small{display:block;color:#687b8c;font-size:.68rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.mobile-pulse-grid strong,.fuel-kpi-grid strong{display:block;margin:.25rem 0;font-size:1.8rem;line-height:1;color:#102a42}.mobile-pulse-grid span,.fuel-kpi-grid span{color:#718292;font-size:.75rem}.fuel-kpi-grid article.is-alert:before{background:#d94848}.fuel-kpi-grid article.is-alert strong{color:#b72828}
.mobile-module-section,.qr-module-section,.fuel-mobile-history{padding:1.25rem;border:1px solid #dce7ef;border-radius:26px;background:#fff;box-shadow:0 13px 34px rgba(26,53,76,.07)}
.mobile-section-heading,.fuel-panel-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem}.mobile-section-heading span,.fuel-panel-heading span{display:block;color:#0b7896;font-size:.68rem;font-weight:900;letter-spacing:.16em}.mobile-section-heading h2,.fuel-panel-heading h2{margin:.18rem 0 0;color:#10283e;font-size:1.45rem;font-weight:900;letter-spacing:-.02em}.mobile-section-heading b,.fuel-panel-heading>b{padding:.48rem .72rem;border-radius:999px;background:#edf5f8;color:#416174;font-size:.72rem;white-space:nowrap}
.mobile-module-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.85rem}.mobile-module-card{position:relative;display:grid;grid-template-columns:54px 1fr auto;gap:.9rem;align-items:center;min-height:132px;padding:1rem;border:1px solid #dbe6ee;border-radius:22px;background:linear-gradient(145deg,#fff,#f6f9fb);text-decoration:none;color:#152d43;overflow:hidden;transition:.2s ease}.mobile-module-card:before,.qr-module-card:before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;background:var(--module-accent,#0b8eae)}.mobile-module-card:hover{transform:translateY(-2px);border-color:color-mix(in srgb,var(--module-accent,#0b8eae) 45%,#dbe6ee);box-shadow:0 16px 34px rgba(18,48,74,.11);color:#152d43}.accent-red{--module-accent:#cf4242}.accent-cyan{--module-accent:#0792aa}.accent-amber{--module-accent:#d59119}.accent-violet{--module-accent:#7657ba}.accent-green{--module-accent:#2b9a68}.accent-blue{--module-accent:#237fc2}.accent-orange{--module-accent:#d66e20}.accent-navy{--module-accent:#244c78}
.mobile-module-icon{display:grid;place-items:center;width:54px;height:54px;border-radius:17px;background:color-mix(in srgb,var(--module-accent,#0b8eae) 12%,white);color:var(--module-accent,#0b8eae)}.mobile-module-icon svg,.qr-module-card-head svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}.mobile-module-copy{display:flex;flex-direction:column;min-width:0}.mobile-module-copy small{color:var(--module-accent,#0b8eae);font-size:.62rem;letter-spacing:.13em;font-weight:900}.mobile-module-copy strong{margin:.2rem 0;font-size:1rem;line-height:1.22}.mobile-module-copy em{color:#6b7d8d;font-size:.78rem;line-height:1.45;font-style:normal}.mobile-module-arrow{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#eaf1f5;color:#274e68;font-weight:900}
.mobile-install-panel{display:flex;justify-content:space-between;align-items:center;gap:1.2rem;padding:1.35rem 1.5rem;border-radius:25px;background:linear-gradient(135deg,#0b2238,#0b4660);color:#fff}.mobile-install-panel span{font-size:.68rem;font-weight:900;letter-spacing:.16em;color:#8ed1e5}.mobile-install-panel h2{margin:.2rem 0;font-size:1.35rem;font-weight:900}.mobile-install-panel p{margin:0;max-width:850px;color:#c6d8e4;font-size:.85rem}
.qr-master-panel{display:grid;grid-template-columns:1fr 310px;gap:1.4rem;padding:1.6rem;border-radius:28px;background:linear-gradient(135deg,#071a2c,#0a4059);color:#fff;box-shadow:0 20px 50px rgba(4,24,42,.18)}.qr-master-copy{padding:1rem}.qr-master-copy h1{margin:.65rem 0;font-size:clamp(2rem,5vw,3.7rem);font-weight:900;letter-spacing:-.04em}.qr-master-copy p{max-width:760px;color:#c8d9e4;line-height:1.6}.qr-master-url{max-width:100%;margin-top:1rem;padding:.75rem 1rem;border:1px solid rgba(255,255,255,.16);border-radius:15px;background:rgba(255,255,255,.07);color:#bfe8f3;font:600 .73rem/1.4 ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}.qr-master-code{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:1rem;border-radius:22px;background:#fff;color:#112a3e}.qr-master-code img{width:min(100%,240px);aspect-ratio:1;object-fit:contain}.qr-master-code strong{margin-top:.7rem;font-size:.92rem}.qr-master-code span{color:#71808d;font-size:.72rem}
.qr-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.85rem}.qr-module-card{position:relative;display:flex;flex-direction:column;align-items:center;padding:1rem;border:1px solid #dce7ef;border-radius:22px;background:linear-gradient(145deg,#fff,#f5f8fa);overflow:hidden;text-align:center}.qr-module-card-head{display:flex;align-items:center;gap:.65rem;width:100%;text-align:left}.qr-module-card-head>span{display:grid;place-items:center;width:42px;height:42px;border-radius:13px;background:color-mix(in srgb,var(--module-accent,#0b8eae) 12%,white);color:var(--module-accent,#0b8eae)}.qr-module-card-head small{display:block;color:var(--module-accent,#0b8eae);font-size:.57rem;letter-spacing:.1em;font-weight:900}.qr-module-card-head strong{display:block;color:#183046;font-size:.84rem;line-height:1.2}.qr-module-image{width:175px;max-width:75%;margin:.9rem auto .55rem;border:8px solid #fff;border-radius:15px;box-shadow:0 8px 22px rgba(18,44,65,.09)}.qr-module-card p{min-height:44px;margin:0;color:#71808e;font-size:.72rem;line-height:1.4}.qr-module-card>a{margin-top:.8rem;color:var(--module-accent,#0b8eae);font-size:.73rem;font-weight:900;text-decoration:none}
.zebra-mobile-hero{position:relative;min-height:300px;overflow:hidden;border-radius:28px;background:#07192a}.zebra-mobile-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.zebra-mobile-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(4,17,31,.95),rgba(6,32,51,.68),rgba(5,24,40,.38))}.zebra-mobile-hero>div:last-child{position:relative;z-index:2;display:flex;flex-direction:column;justify-content:center;min-height:300px;max-width:760px;padding:2.5rem;color:#fff}.zebra-mobile-hero h1{margin:.6rem 0;font-size:clamp(2rem,5vw,3.5rem);font-weight:900}.zebra-mobile-hero p{margin:0;color:#d1dfe8}.zebra-mobile-console{display:grid;grid-template-columns:minmax(0,780px);justify-content:center}.zebra-mobile-form{display:grid;gap:1rem;padding:1.25rem;border:1px solid #dce7ef;border-radius:26px;background:#fff;box-shadow:0 14px 34px rgba(17,45,68,.08)}.zebra-mobile-step,.fuel-form-step{display:flex;align-items:center;gap:.75rem;padding-top:.2rem}.zebra-mobile-step>b,.fuel-form-step>b{display:grid;place-items:center;width:34px;height:34px;flex:0 0 auto;border-radius:11px;background:#0b728d;color:#fff;font-size:.75rem}.zebra-mobile-step strong,.fuel-form-step strong{display:block;color:#153148}.zebra-mobile-step small,.fuel-form-step small{display:block;color:#758695;font-size:.72rem}.zebra-mobile-result{display:flex;align-items:center;gap:.75rem;padding:.9rem;border:1px dashed #bfcfda;border-radius:17px;background:#f7fafc;color:#345165}.zebra-mobile-result>span{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:#e6eff4;font-weight:900}.zebra-mobile-result strong,.zebra-mobile-result small{display:block}.zebra-mobile-result small{color:#718290;font-size:.72rem}.zebra-mobile-result.is-success{border-color:#78c9a5;background:#effaf5;color:#197249}.zebra-mobile-result.is-error{border-color:#e3a1a1;background:#fff4f4;color:#ad3030}.zebra-mobile-result.is-working{border-color:#87bcd0;background:#f0f8fb;color:#176b86}.zebra-mobile-submit{padding:.88rem;border:0;border-radius:16px;background:linear-gradient(135deg,#5b42a8,#3f2b83);color:#fff;font-weight:900}
.fuel-mobile-workspace,.fuel-console-grid,.fuel-analysis-grid{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(300px,.75fr);gap:1rem;align-items:start}.fuel-mobile-order-form,.fuel-industrial-form,.fuel-mobile-procedure,.fuel-alert-panel,.fuel-dashboard-panel{border:1px solid #dce6ed;border-radius:25px;background:#fff;box-shadow:0 13px 34px rgba(18,45,67,.07)}.fuel-mobile-order-form,.fuel-industrial-form{display:grid;gap:1rem;padding:1.25rem}.fuel-mobile-order-form header span,.fuel-industrial-form header span,.fuel-mobile-procedure>span,.fuel-alert-panel>span{font-size:.65rem;font-weight:900;letter-spacing:.15em;color:#b85b18}.fuel-mobile-order-form header h2,.fuel-industrial-form header h2,.fuel-mobile-procedure h2,.fuel-alert-panel h2{margin:.2rem 0;color:#173046;font-size:1.4rem;font-weight:900}.fuel-mobile-order-form header p,.fuel-industrial-form header p{margin:0;color:#71818e;font-size:.8rem}.fuel-form-step>b{background:#c76a24}.fuel-mobile-details{border:1px solid #dce6ed;border-radius:18px;background:#f8fafb}.fuel-mobile-details summary{display:flex;align-items:center;gap:.75rem;padding:.85rem 1rem;cursor:pointer;list-style:none}.fuel-mobile-details summary::-webkit-details-marker{display:none}.fuel-mobile-details summary>span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:#e9f0f4;color:#36556c;font-weight:900}.fuel-mobile-details summary strong,.fuel-mobile-details summary small{display:block}.fuel-mobile-details summary small{font-size:.7rem;color:#72818d}.fuel-mobile-details>.row{padding:0 1rem 1rem}.fuel-mobile-print-btn,.fuel-form-submit{display:flex;flex-direction:column;align-items:center;padding:.88rem;border:0;border-radius:16px;background:linear-gradient(135deg,#cf6f25,#a84a14);color:#fff;font-weight:900}.fuel-mobile-print-btn small{font-size:.66rem;color:#f6d9c6;font-weight:500}.fuel-form-submit.is-secondary{background:linear-gradient(135deg,#0d7d9b,#075e76)}
.fuel-mobile-procedure{padding:1.25rem;position:sticky;top:92px}.fuel-mobile-procedure ol{display:grid;gap:.7rem;padding:0;margin:1rem 0;list-style:none}.fuel-mobile-procedure li{display:flex;gap:.7rem;align-items:center;padding:.75rem;border-radius:16px;background:#f5f8fa}.fuel-mobile-procedure li>b{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:#f2e3d8;color:#a54d18}.fuel-mobile-procedure li strong,.fuel-mobile-procedure li small{display:block}.fuel-mobile-procedure li small{color:#73838f;font-size:.7rem}.fuel-mobile-scope{padding:.9rem;border-radius:17px;background:#102c42;color:#fff}.fuel-mobile-scope p{margin:.3rem 0 0;color:#c7d7e1;font-size:.73rem;line-height:1.5}.fuel-order-card-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}.fuel-order-mobile-card{padding:1rem;border:1px solid #dce6ed;border-radius:19px;background:linear-gradient(145deg,#fff,#f5f8fa)}.fuel-order-mobile-card.is-focused{border-color:#d77b34;box-shadow:0 0 0 4px rgba(215,123,52,.12)}.fuel-order-mobile-head{display:flex;justify-content:space-between;color:#627685;font-size:.72rem}.fuel-order-mobile-head span{font-weight:900;color:#b85b18}.fuel-order-mobile-card h3{margin:.45rem 0 .15rem;color:#193147;font-size:1.2rem;font-weight:900}.fuel-order-mobile-card p{margin:0;color:#73828e;font-size:.75rem}.fuel-order-mobile-card>div:last-child{display:flex;gap:.5rem;margin-top:.75rem}.fuel-order-mobile-card a{padding:.48rem .72rem;border-radius:11px;background:#eaf1f5;color:#264a63;text-decoration:none;font-size:.7rem;font-weight:900}
.fuel-command-hero{min-height:330px}.fuel-command-copy{min-height:330px;padding:2.5rem}.fuel-command-copy h1{font-size:clamp(2.2rem,4vw,4rem)}.fuel-command-track img{width:430px}.fuel-console-grid{margin-top:1rem}.fuel-industrial-form header{padding-bottom:.75rem;border-bottom:1px solid #e4ebf0}.fuel-load-form{background:linear-gradient(145deg,#fff,#f6fafb)}.fuel-dashboard-panel{overflow:hidden;margin-top:1rem}.fuel-panel-heading{padding:1.1rem 1.2rem;margin:0;border-bottom:1px solid #e1e9ef}.fuel-panel-heading p{margin:.2rem 0 0;color:#71818e;font-size:.75rem}.table-row-focus{background:#fff7ed!important;box-shadow:inset 4px 0 #d76f24}.fuel-analysis-grid{margin-top:1rem}.fuel-analysis-grid .fuel-dashboard-panel{margin-top:0}.fuel-filter-inline{display:flex;gap:.45rem;align-items:center}.fuel-alert-panel{padding:1.15rem}.fuel-alert-item{display:flex;gap:.65rem;padding:.72rem 0;border-bottom:1px solid #e4eaef}.fuel-alert-item i{width:9px;height:9px;margin-top:.3rem;border-radius:50%;background:#d94b43;box-shadow:0 0 0 5px rgba(217,75,67,.1)}.fuel-alert-item p{margin:0;color:#5f7180;font-size:.75rem;line-height:1.45}.fuel-all-clear{padding:1rem;border-radius:17px;background:#eff9f4;color:#25734f}.fuel-all-clear p{margin:.3rem 0 0;font-size:.75rem}.fuel-status-alert,.fuel-status-ok{display:inline-flex;padding:.28rem .5rem;border-radius:999px;font-size:.61rem;font-weight:900}.fuel-status-alert{background:#fff0f0;color:#bd3535}.fuel-status-ok{background:#edf9f3;color:#2b7a56}
@media(max-width:1199px){.mobile-app-shell .app-sidebar{width:min(86vw,330px)}.mobile-pulse-grid,.fuel-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.qr-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fuel-mobile-workspace,.fuel-console-grid,.fuel-analysis-grid{grid-template-columns:1fr}.fuel-mobile-procedure{position:static}}
@media(max-width:767px){body.mobile-interface{background:#eef3f6}.mobile-interface .app-page{padding:.75rem!important}.mobile-interface .app-header{padding:.65rem .75rem;gap:.4rem}.mobile-interface .header-kicker{font-size:.55rem}.mobile-interface .header-title{font-size:.9rem}.mobile-interface .role-chip{display:none}.mobile-interface .header-mobile-link{font-size:.65rem;padding:.45rem .6rem}.mobile-portal-page{gap:.85rem}.mobile-command-hero,.fuel-mobile-hero,.fuel-command-hero{min-height:355px;border-radius:23px}.mobile-command-copy,.fuel-mobile-copy,.fuel-command-copy{min-height:355px;padding:1.35rem}.mobile-command-copy h1,.fuel-mobile-copy h1,.fuel-command-copy h1{font-size:2.45rem}.mobile-command-copy p,.fuel-mobile-copy p,.fuel-command-copy p{font-size:.88rem}.mobile-image-flow img,.fuel-mobile-track img,.fuel-command-track img{width:310px}.mobile-command-meta span{font-size:.65rem}.mobile-pulse-grid,.fuel-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:.55rem}.mobile-pulse-grid article,.fuel-kpi-grid article{padding:.8rem}.mobile-pulse-grid strong,.fuel-kpi-grid strong{font-size:1.45rem}.mobile-module-section,.qr-module-section,.fuel-mobile-history{padding:.8rem;border-radius:21px}.mobile-module-grid{grid-template-columns:1fr}.mobile-module-card{grid-template-columns:48px 1fr auto;min-height:116px;padding:.8rem}.mobile-module-icon{width:48px;height:48px}.mobile-module-copy em{font-size:.72rem}.mobile-install-panel{display:grid;padding:1rem}.qr-master-panel{grid-template-columns:1fr;padding:.85rem;border-radius:22px}.qr-master-copy{padding:.45rem}.qr-master-copy h1{font-size:2.2rem}.qr-master-code{padding:.8rem}.qr-master-code img{width:210px}.qr-card-grid{grid-template-columns:1fr}.qr-module-image{width:190px}.zebra-mobile-hero{min-height:270px;border-radius:22px}.zebra-mobile-hero>div:last-child{min-height:270px;padding:1.35rem}.zebra-mobile-form,.fuel-mobile-order-form,.fuel-industrial-form,.fuel-mobile-procedure,.fuel-alert-panel{padding:.85rem;border-radius:21px}.fuel-order-card-list{grid-template-columns:1fr}.fuel-panel-heading{display:grid;padding:.85rem}.fuel-panel-heading>b{justify-self:start}.fuel-filter-inline{width:100%}.fuel-filter-inline select{min-width:0}.header-mobile-link{display:none}.mobile-section-heading h2,.fuel-panel-heading h2{font-size:1.2rem}}
@media print{.app-sidebar,.app-header,.app-sidebar-overlay,.message-notification-box{display:none!important}.app-content{margin:0!important;width:100%!important}.app-page{padding:0!important}.qr-master-panel{box-shadow:none;background:#fff;color:#10283e;border:1px solid #ccd9e2}.qr-master-copy p{color:#506577}.mobile-command-actions{display:none}.qr-module-section{box-shadow:none;break-inside:avoid}.qr-card-grid{grid-template-columns:repeat(3,1fr)}.qr-module-card{break-inside:avoid}.qr-module-image{width:130px}}

/* ========================================================================== */
/* V28 COMMERCIAL GLOBAL · Identidad final, accesibilidad y módulos sin flechas      */
/* ========================================================================== */
body .mobile-module-card{grid-template-columns:54px minmax(0,1fr)!important;}
body .mobile-module-arrow{display:none!important;}
body .header-kicker{display:flex;align-items:center;gap:.48rem;color:#476684;font-weight:900;letter-spacing:.075em;}
body .header-kicker::before{content:"";width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#18a873;box-shadow:0 0 0 5px rgba(24,168,115,.11);}
body .app-header{border-bottom-color:#d6e1eb;box-shadow:0 10px 30px rgba(15,23,42,.055);}
body .panel-card,body .fuel-panel,body .live-card{border-color:#d5e1eb;}
body :where(a,button,input,select,textarea):focus-visible{outline:3px solid rgba(37,99,235,.34)!important;outline-offset:2px!important;}
body .industrial-form-modal .industrial-modal-close{background:linear-gradient(145deg,#102f59,#07182f)!important;color:#fff!important;}
body .industrial-form-modal .industrial-modal-close:hover{background:linear-gradient(145deg,#174a86,#0a2850)!important;}
@media(max-width:767px){body .mobile-module-card{grid-template-columns:48px minmax(0,1fr)!important;}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;}}

/* V32 MOBILE INDUSTRIAL CIERRE BLACK FINAL */


/* ========================================================================
   V31 FINAL · CIERRE DE FLOTANTES UNIFICADO Y MAESTROS DEPURADOS
   ======================================================================== */
/*
   Regla final colocada al cierre del archivo para evitar que estilos de
   versiones anteriores vuelvan a desplazar o agrandar la X en Safari.
*/
body .industrial-form-modal .industrial-modal-hero,
body .ops-modal-header{
  position:relative !important;
}
body .industrial-form-modal .industrial-modal-hero-copy{
  right:76px !important;
  width:auto !important;
  max-width:calc(100% - 104px) !important;
}
body .ops-modal-header{
  padding-right:74px !important;
}
body .industrial-form-modal .industrial-modal-close,
body .ops-modal-close{
  -webkit-appearance:none !important;
  appearance:none !important;
  position:absolute !important;
  top:16px !important;
  right:16px !important;
  left:auto !important;
  bottom:auto !important;
  z-index:80 !important;
  width:40px !important;
  height:40px !important;
  min-width:40px !important;
  min-height:40px !important;
  max-width:40px !important;
  max-height:40px !important;
  margin:0 !important;
  padding:0 !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  border-radius:12px !important;
  border:1px solid rgba(164,205,255,.34) !important;
  background:#06172e !important;
  background-image:linear-gradient(145deg,#123760,#06172e) !important;
  color:transparent !important;
  font-size:0 !important;
  line-height:0 !important;
  text-indent:-9999px !important;
  opacity:1 !important;
  filter:none !important;
  box-shadow:0 10px 24px rgba(2,8,23,.32),inset 0 1px 0 rgba(255,255,255,.10) !important;
  transform:none !important;
  transition:transform .16s ease,background .16s ease,box-shadow .16s ease !important;
  -webkit-tap-highlight-color:transparent !important;
}
body .industrial-form-modal .industrial-modal-close span,
body .ops-modal-close span{
  display:none !important;
}
body .industrial-form-modal .industrial-modal-close::before,
body .industrial-form-modal .industrial-modal-close::after,
body .ops-modal-close::before,
body .ops-modal-close::after{
  content:"" !important;
  display:block !important;
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  width:18px !important;
  height:2px !important;
  margin:0 !important;
  border:0 !important;
  border-radius:999px !important;
  background:#f1f7ff !important;
  background-image:none !important;
  pointer-events:none !important;
  transform-origin:center !important;
}
body .industrial-form-modal .industrial-modal-close::before,
body .ops-modal-close::before{
  transform:translate(-50%,-50%) rotate(45deg) !important;
}
body .industrial-form-modal .industrial-modal-close::after,
body .ops-modal-close::after{
  transform:translate(-50%,-50%) rotate(-45deg) !important;
}
body .industrial-form-modal .industrial-modal-close:hover,
body .ops-modal-close:hover{
  background:#0a2a52 !important;
  background-image:linear-gradient(145deg,#19518b,#0a2a52) !important;
  transform:scale(1.045) !important;
  box-shadow:0 14px 30px rgba(2,8,23,.40),0 0 0 4px rgba(117,174,244,.10) !important;
}
body .industrial-form-modal .industrial-modal-close:active,
body .ops-modal-close:active{
  transform:scale(.94) !important;
}
body .industrial-form-modal .industrial-modal-close:focus-visible,
body .ops-modal-close:focus-visible{
  outline:3px solid rgba(125,181,255,.66) !important;
  outline-offset:3px !important;
}
@media(max-width:767px){
  body .industrial-form-modal .industrial-modal-hero-copy{
    right:62px !important;
    max-width:calc(100% - 78px) !important;
  }
  body .ops-modal-header{padding-right:62px !important;}
  body .industrial-form-modal .industrial-modal-close,
  body .ops-modal-close{
    top:10px !important;
    right:10px !important;
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
    min-height:36px !important;
    max-width:36px !important;
    max-height:36px !important;
    border-radius:11px !important;
  }
  body .industrial-form-modal .industrial-modal-close::before,
  body .industrial-form-modal .industrial-modal-close::after,
  body .ops-modal-close::before,
  body .ops-modal-close::after{width:16px !important;}
}

/* Maestros con navegación más compacta luego de retirar apartados no usados. */
body .masters-nav{gap:.55rem !important;}
body .masters-nav-link{min-height:48px !important;display:flex !important;align-items:center !important;}

/* V32 MOBILE INDUSTRIAL CIERRE BLACK FINAL */


/* ========================================================================
   V32 FINAL · BOTÓN BLACK INDUSTRIAL + CENTRO MÓVIL ESENCIAL
   ======================================================================== */
@keyframes nxCloseBlackPulse{
  0%,100%{box-shadow:0 12px 30px rgba(0,0,0,.46),0 0 0 1px rgba(70,145,232,.32),inset 0 0 0 1px rgba(126,190,255,.12),inset 0 -10px 24px rgba(0,0,0,.34)}
  50%{box-shadow:0 16px 38px rgba(0,0,0,.58),0 0 0 4px rgba(42,126,224,.13),0 0 24px rgba(37,115,210,.26),inset 0 0 0 1px rgba(163,211,255,.26),inset 0 -10px 24px rgba(0,0,0,.42)}
}
@keyframes nxCloseBlackSweep{
  0%{background-position:180% 0,0 0}
  100%{background-position:-80% 0,0 0}
}
@keyframes nxCloseXSignal{
  0%,100%{opacity:.88;filter:drop-shadow(0 0 0 rgba(118,190,255,0))}
  50%{opacity:1;filter:drop-shadow(0 0 5px rgba(118,190,255,.82))}
}
body .modal-content{position:relative !important;}
body .modal-header,
body .industrial-modal-hero,
body .ops-modal-header{position:relative !important;padding-right:78px !important;}
body button[data-bs-dismiss="modal"][aria-label="Cerrar"],
body .industrial-form-modal .industrial-modal-close,
body .ops-modal-close{
  -webkit-appearance:none !important;
  appearance:none !important;
  position:absolute !important;
  top:14px !important;
  right:14px !important;
  left:auto !important;
  bottom:auto !important;
  z-index:120 !important;
  width:52px !important;
  height:52px !important;
  min-width:52px !important;
  min-height:52px !important;
  max-width:52px !important;
  max-height:52px !important;
  margin:0 !important;
  padding:0 !important;
  display:block !important;
  overflow:hidden !important;
  border-radius:17px !important;
  border:1px solid rgba(79,154,239,.78) !important;
  background:
    linear-gradient(110deg,transparent 15%,rgba(72,151,244,.22) 42%,transparent 68%) 180% 0/220% 100% no-repeat,
    linear-gradient(155deg,#081526 0%,#02070e 56%,#07172a 100%) !important;
  color:transparent !important;
  font-size:0 !important;
  line-height:0 !important;
  text-indent:-9999px !important;
  opacity:1 !important;
  filter:none !important;
  transform:translateZ(0) !important;
  animation:nxCloseBlackPulse 2.8s ease-in-out infinite,nxCloseBlackSweep 4.4s linear infinite !important;
  transition:transform .24s cubic-bezier(.2,.8,.2,1),border-color .24s ease,box-shadow .24s ease !important;
  -webkit-tap-highlight-color:transparent !important;
}
body button[data-bs-dismiss="modal"][aria-label="Cerrar"] span,
body .industrial-form-modal .industrial-modal-close span,
body .ops-modal-close span{display:none !important;}
body button[data-bs-dismiss="modal"][aria-label="Cerrar"]::before,
body button[data-bs-dismiss="modal"][aria-label="Cerrar"]::after,
body .industrial-form-modal .industrial-modal-close::before,
body .industrial-form-modal .industrial-modal-close::after,
body .ops-modal-close::before,
body .ops-modal-close::after{
  content:"" !important;
  display:block !important;
  position:absolute !important;
  left:50% !important;
  top:50% !important;
  width:24px !important;
  height:3px !important;
  margin:0 !important;
  border:0 !important;
  border-radius:999px !important;
  background:linear-gradient(90deg,#dceeff,#fff,#b9dcff) !important;
  pointer-events:none !important;
  transform-origin:center !important;
  animation:nxCloseXSignal 2.8s ease-in-out infinite !important;
}
body button[data-bs-dismiss="modal"][aria-label="Cerrar"]::before,
body .industrial-form-modal .industrial-modal-close::before,
body .ops-modal-close::before{transform:translate(-50%,-50%) rotate(45deg) !important;}
body button[data-bs-dismiss="modal"][aria-label="Cerrar"]::after,
body .industrial-form-modal .industrial-modal-close::after,
body .ops-modal-close::after{transform:translate(-50%,-50%) rotate(-45deg) !important;}
body button[data-bs-dismiss="modal"][aria-label="Cerrar"]:hover,
body .industrial-form-modal .industrial-modal-close:hover,
body .ops-modal-close:hover{
  transform:scale(1.08) rotate(4deg) !important;
  border-color:#8bc5ff !important;
  box-shadow:0 20px 46px rgba(0,0,0,.62),0 0 0 5px rgba(47,137,239,.16),0 0 32px rgba(47,137,239,.34),inset 0 0 0 1px rgba(202,231,255,.24) !important;
}
body button[data-bs-dismiss="modal"][aria-label="Cerrar"]:active,
body .industrial-form-modal .industrial-modal-close:active,
body .ops-modal-close:active{transform:scale(.92) rotate(-4deg) !important;}
body button[data-bs-dismiss="modal"][aria-label="Cerrar"]:focus-visible,
body .industrial-form-modal .industrial-modal-close:focus-visible,
body .ops-modal-close:focus-visible{outline:3px solid rgba(82,164,255,.64) !important;outline-offset:4px !important;}

/* El centro móvil no expone el menú corporativo lateral. */
body.mobile-interface .app-sidebar,
body.mobile-interface .app-sidebar-overlay{display:none !important;}
body.mobile-interface .app-content{margin-left:0 !important;width:100% !important;min-width:0 !important;}
body.mobile-interface .app-shell{display:block !important;}
body.mobile-interface .app-page{padding-top:1rem !important;}
body.mobile-interface .mobile-fixed-header-v32{
  position:sticky !important;
  top:0 !important;
  z-index:1080 !important;
  min-height:68px !important;
  padding:.68rem 1rem !important;
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:.7rem !important;
  background:rgba(248,251,254,.96) !important;
  backdrop-filter:blur(18px) saturate(1.2) !important;
  -webkit-backdrop-filter:blur(18px) saturate(1.2) !important;
  border-bottom:1px solid #d8e3ec !important;
  box-shadow:0 12px 30px rgba(15,23,42,.08) !important;
}
.mobile-fixed-brand-v32{display:flex;align-items:center;gap:.65rem;min-width:0;}
.mobile-fixed-brand-v32 img{width:36px;height:36px;border-radius:11px;object-fit:cover;box-shadow:0 8px 18px rgba(15,23,42,.16);}
.mobile-fixed-brand-v32>div{min-width:0;}
.mobile-fixed-brand-v32 .header-kicker{font-size:.58rem;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mobile-fixed-brand-v32 .header-title{font-size:1rem;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.mobile-header-close-v32{
  flex:0 0 auto;
  height:34px;
  min-width:72px;
  padding:0 .72rem;
  border-radius:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.42rem;
  color:#f4f9ff !important;
  text-decoration:none !important;
  background:linear-gradient(155deg,#0b1727,#02070d) !important;
  border:1px solid rgba(66,143,230,.62) !important;
  box-shadow:0 9px 22px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.08) !important;
  font-size:.72rem;
  font-weight:900;
  letter-spacing:.03em;
  transition:transform .18s ease,box-shadow .18s ease !important;
}
.mobile-header-close-v32 span{position:relative;width:13px;height:13px;display:block;}
.mobile-header-close-v32 span::before,.mobile-header-close-v32 span::after{content:"";position:absolute;left:50%;top:50%;width:14px;height:2px;border-radius:99px;background:#dceeff;}
.mobile-header-close-v32 span::before{transform:translate(-50%,-50%) rotate(45deg)}
.mobile-header-close-v32 span::after{transform:translate(-50%,-50%) rotate(-45deg)}
.mobile-header-close-v32:hover{transform:translateY(-1px);box-shadow:0 13px 28px rgba(0,0,0,.32),0 0 0 4px rgba(47,137,239,.10) !important;}

.mobile-portal-v32{max-width:1180px;margin:0 auto;}
.mobile-command-hero-v32{min-height:310px !important;}
.mobile-module-section-v32{max-width:1050px;margin-inline:auto;}
.mobile-install-panel-v32{max-width:1050px;margin-inline:auto;}
.mobile-command-compact-v32{min-height:220px !important;}
.mobile-command-compact-v32 .mobile-command-copy{min-height:220px !important;padding:1.35rem 1.5rem !important;}
.mobile-command-compact-v32 .mobile-command-copy h1{font-size:2.15rem !important;max-width:800px;}
.mobile-command-compact-v32 .mobile-command-copy p{max-width:760px;}
.mobile-subpage-v32{max-width:1100px;margin:0 auto;}
.mobile-single-form-v32{max-width:760px;margin:0 auto;}
.mobile-inventory-actions-v32{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;max-width:1000px;margin:0 auto;}
.mobile-inventory-actions-v32>a{display:flex;align-items:center;gap:1rem;padding:1.15rem;border-radius:22px;background:#fff;border:1px solid #d5e2ec;box-shadow:0 14px 34px rgba(15,23,42,.08);text-decoration:none;color:#10243d;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;}
.mobile-inventory-actions-v32>a:hover{transform:translateY(-4px);border-color:#79aef0;box-shadow:0 20px 42px rgba(15,23,42,.13);}
.mobile-inventory-actions-v32>a>span{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg,#0d3158,#07182f);color:#9ed8ff;font-weight:900;}
.mobile-inventory-actions-v32 strong{display:block;font-size:1rem;}
.mobile-inventory-actions-v32 small{display:block;color:#64748b;margin-top:.2rem;line-height:1.35;}
.mobile-communications-v32{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:1rem;align-items:start;}
.mobile-message-stream-v32{padding:1rem;border-radius:24px;background:#fff;border:1px solid #d6e2ec;box-shadow:0 16px 36px rgba(15,23,42,.08);}
.mobile-message-stream-v32>header span{font-size:.68rem;color:#3479c8;font-weight:900;letter-spacing:.1em;}
.mobile-message-stream-v32>header h2{font-size:1.25rem;margin:.2rem 0 .8rem;}
.mobile-message-stream-v32 article{padding:.85rem;border:1px solid #e0e8ef;border-radius:17px;margin-bottom:.65rem;background:#f8fbfd;}
.mobile-message-stream-v32 article.is-new{border-color:#79aef0;background:#edf6ff;box-shadow:inset 4px 0 0 #2d7de2;}
.mobile-message-stream-v32 article strong{display:block;}
.mobile-message-stream-v32 article small{display:block;color:#6b7f90;font-size:.68rem;margin-top:.15rem;}
.mobile-message-stream-v32 article p{font-size:.78rem;line-height:1.45;margin:.55rem 0;color:#31485e;}
.mobile-message-stream-v32 article footer{display:flex;justify-content:space-between;gap:.6rem;font-size:.65rem;color:#6b7f90;}

@media(max-width:767px){
  body .modal-header,body .industrial-modal-hero,body .ops-modal-header{padding-right:58px !important;}
  body button[data-bs-dismiss="modal"][aria-label="Cerrar"],
  body .industrial-form-modal .industrial-modal-close,
  body .ops-modal-close{
    top:9px !important;right:9px !important;width:42px !important;height:42px !important;min-width:42px !important;min-height:42px !important;max-width:42px !important;max-height:42px !important;border-radius:14px !important;
  }
  body button[data-bs-dismiss="modal"][aria-label="Cerrar"]::before,
  body button[data-bs-dismiss="modal"][aria-label="Cerrar"]::after,
  body .industrial-form-modal .industrial-modal-close::before,
  body .industrial-form-modal .industrial-modal-close::after,
  body .ops-modal-close::before,
  body .ops-modal-close::after{width:19px !important;height:2px !important;}
  body.mobile-interface .app-page{padding:.72rem !important;}
  body.mobile-interface .mobile-fixed-header-v32{min-height:60px !important;padding:.55rem .65rem !important;}
  .mobile-fixed-brand-v32 img{width:32px;height:32px;border-radius:10px;}
  .mobile-fixed-brand-v32 .header-kicker{font-size:.5rem;max-width:190px;}
  .mobile-fixed-brand-v32 .header-title{font-size:.88rem;max-width:200px;}
  .mobile-header-close-v32{height:32px;min-width:62px;padding:0 .55rem;font-size:.66rem;border-radius:10px;}
  .mobile-command-hero-v32{min-height:250px !important;border-radius:22px !important;}
  .mobile-command-hero-v32 .mobile-command-copy{min-height:250px !important;padding:1.1rem !important;}
  .mobile-command-hero-v32 .mobile-command-copy h1{font-size:2rem !important;}
  .mobile-command-hero-v32 .mobile-command-copy p{font-size:.8rem !important;}
  .mobile-command-compact-v32{min-height:190px !important;border-radius:21px !important;}
  .mobile-command-compact-v32 .mobile-command-copy{min-height:190px !important;padding:1rem !important;}
  .mobile-command-compact-v32 .mobile-command-copy h1{font-size:1.65rem !important;line-height:1.04 !important;}
  .mobile-command-compact-v32 .mobile-command-copy p{font-size:.76rem !important;line-height:1.35 !important;}
  .mobile-command-compact-v32 .mobile-live-label{font-size:.57rem !important;}
  .mobile-command-actions{display:none !important;}
  .mobile-inventory-actions-v32{grid-template-columns:1fr;gap:.7rem;}
  .mobile-inventory-actions-v32>a{padding:.85rem;border-radius:18px;}
  .mobile-inventory-actions-v32>a>span{width:42px;height:42px;border-radius:14px;}
  .mobile-communications-v32{grid-template-columns:1fr;}
  .fuel-mobile-workspace{gap:.75rem !important;}
  .fuel-mobile-order-form,.fuel-mobile-procedure{padding:.85rem !important;}
}
@media(prefers-reduced-motion:reduce){
  body button[data-bs-dismiss="modal"][aria-label="Cerrar"],body .industrial-form-modal .industrial-modal-close,body .ops-modal-close{animation:none !important;}
}

/* V32 MOBILE INDUSTRIAL CIERRE BLACK FINAL */

/* === V33 ADMIN CREATOR PREMIUM === */
.mobile-desktop-back-v33{display:none;align-items:center;gap:.42rem;min-height:42px;padding:.4rem .72rem;border:1px solid #cfdfeb;border-radius:14px;background:#fff;color:#11314e;text-decoration:none;font-weight:900;box-shadow:0 8px 18px rgba(15,23,42,.08)}
.mobile-desktop-back-v33 span{font-size:1.7rem;line-height:.8;transform:translateY(-1px)}
.mobile-desktop-back-v33:hover{color:#0f62fe;border-color:#91b8ff;transform:translateX(-2px)}
.mobile-portal-v33{max-width:1180px;margin:0 auto;display:grid;gap:1rem;padding-bottom:2rem}
.mobile-command-hero-v33{position:relative;min-height:270px;overflow:hidden;border-radius:28px;background:linear-gradient(135deg,#03101d,#082a43 58%,#0a4e6d);box-shadow:0 26px 60px rgba(2,16,31,.22);isolation:isolate}
.mobile-command-hero-v33:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 78% 20%,rgba(36,208,255,.24),transparent 28%),radial-gradient(circle at 18% 84%,rgba(16,113,181,.2),transparent 25%)}
.mobile-industrial-grid-v33{position:absolute;inset:0;opacity:.55;background-image:linear-gradient(90deg,rgba(123,220,255,.06) 1px,transparent 1px),linear-gradient(rgba(123,220,255,.06) 1px,transparent 1px);background-size:34px 34px}
.mobile-command-hero-v33 .mobile-command-copy{min-height:270px;padding:2rem 2.2rem;max-width:820px}
.mobile-command-hero-v33 .mobile-command-copy h1{font-size:clamp(2.3rem,6vw,4.4rem)}
.mobile-module-section-v33{background:linear-gradient(145deg,#fff,#f5f9fc);border:1px solid #dbe7ef;border-radius:24px;padding:1rem;box-shadow:0 16px 38px rgba(15,23,42,.07)}
.mobile-install-panel-v33{border-radius:24px;background:linear-gradient(135deg,#071a2b,#0b3851);color:#fff;border:1px solid rgba(99,207,241,.18)}
.mobile-install-panel-v33 p{color:#b8cfdf}
@media(min-width:769px){body.mobile-interface .mobile-desktop-back-v33{display:inline-flex}.mobile-fixed-header-v32{grid-template-columns:auto minmax(0,1fr) auto!important}.mobile-fixed-brand-v32{min-width:0}}
@media(max-width:768px){.mobile-command-hero-v33{min-height:225px;border-radius:21px}.mobile-command-hero-v33 .mobile-command-copy{min-height:225px;padding:1.15rem}.mobile-command-hero-v33 .mobile-command-copy h1{font-size:2.05rem}.mobile-command-hero-v33 .mobile-command-copy p{font-size:.82rem}.mobile-module-section-v33{padding:.75rem;border-radius:20px}.mobile-install-panel-v33{border-radius:20px}}
/* V35 COMUNICACIONES ACTIVOS MOBILE FINAL */

/* V35 comunicaciones, activos y experiencia móvil */
.mobile-command-hero-v35 .mobile-command-visual{z-index:0}.mobile-command-hero-v35 .mobile-command-overlay{z-index:1}.mobile-command-hero-v35 .mobile-industrial-grid-v33{z-index:2;pointer-events:none}.mobile-command-hero-v35 .mobile-command-copy{z-index:3}.mobile-equipment-list{padding:1rem;border-radius:24px;background:#fff;border:1px solid #d6e2ec;box-shadow:0 16px 36px rgba(15,23,42,.08)}.mobile-equipment-list>header{text-align:center;margin-bottom:.8rem}.mobile-equipment-list>header span{font-size:.65rem;letter-spacing:.1em;color:#3479c8;font-weight:900}.mobile-equipment-list>header h2{font-size:1.2rem;margin:.2rem 0}.mobile-equipment-grid{display:grid;gap:.65rem}.mobile-equipment-card{display:grid;gap:.18rem;text-align:center;text-decoration:none;padding:.85rem;border:1px solid #dce7ef;border-radius:17px;background:linear-gradient(145deg,#fff,#f5f9fc);color:#17324d}.mobile-equipment-card:hover{border-color:#78a9e6;transform:translateY(-1px)}.mobile-equipment-card>span{font-size:.62rem;font-weight:900;color:#3479c8}.mobile-equipment-card strong{font-size:.95rem}.mobile-equipment-card small{color:#6b7f90}.mobile-equipment-card em{justify-self:center;font-style:normal;padding:.25rem .55rem;border-radius:999px;background:#e7f5ee;color:#087443;font-size:.64rem;font-weight:900}.equipment-mobile-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.equipment-mobile-data{display:grid;gap:.55rem}.equipment-mobile-data div{display:grid;grid-template-columns:110px 1fr;gap:.55rem;padding:.55rem;border-bottom:1px solid #e5edf4}.equipment-mobile-data dt{color:#64748b;font-size:.68rem;font-weight:900;text-transform:uppercase}.equipment-mobile-data dd{margin:0;font-weight:800}.industrial-message-toast{z-index:99999!important}.industrial-message-toast:not(.d-none){animation:v35MessageIn .42s cubic-bezier(.2,.8,.2,1),v35MessagePulse 2.2s ease-in-out 1}.message-notification-close{display:grid!important;place-items:center!important}@keyframes v35MessageIn{from{opacity:0;transform:translate3d(30px,-18px,0) scale(.92)}to{opacity:1;transform:none}}@keyframes v35MessagePulse{0%,100%{box-shadow:0 22px 58px rgba(2,8,23,.35)}50%{box-shadow:0 24px 66px rgba(14,165,233,.32),0 0 0 5px rgba(14,165,233,.08)}}@media(max-width:767px){.equipment-mobile-detail-grid{grid-template-columns:1fr}.equipment-mobile-workspace{grid-template-columns:1fr!important}.industrial-message-toast{left:10px!important;right:10px!important;top:74px!important;width:auto!important}.mobile-command-hero-v35 .mobile-image-flow img{width:300px}}
/* V36 · Google Maps integrado y directorio vivo de clientes */
body .google-maps-integrated{
  margin:1rem 0;
  overflow:hidden;
  border:1px solid #cfe0ee;
  border-radius:24px;
  background:linear-gradient(145deg,#ffffff,#f4f9fd);
  box-shadow:0 18px 45px rgba(15,23,42,.09);
}
body .google-maps-integrated-head{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;padding:1rem 1.05rem .75rem}
body .google-maps-integrated-head h2{margin:.2rem 0;font-size:1.1rem;font-weight:950;color:#10243a}
body .google-maps-integrated-head p{margin:0;color:#64748b;font-size:.8rem}
body .google-provider-badge{display:inline-flex;align-items:center;gap:.42rem;padding:.42rem .68rem;border-radius:999px;background:#edf7ff;color:#075da8;border:1px solid #b9dcf8;font-size:.72rem;font-weight:900;white-space:nowrap}
body .google-provider-badge i{width:8px;height:8px;border-radius:50%;background:#16a34a;box-shadow:0 0 0 5px rgba(22,163,74,.12)}
body .google-explorer-toolbar{display:grid;grid-template-columns:minmax(220px,1fr) auto auto;gap:.55rem;padding:0 1.05rem .75rem}
body .google-explorer-toolbar .form-control{min-height:45px;border-radius:13px;border-color:#c9d9e8;font-weight:750}
body .google-explorer-status{margin:0 1.05rem .75rem;padding:.65rem .78rem;border-radius:13px;background:#edf5fb;color:#31506d;font-size:.78rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}
body .google-explorer-status>span:first-child{width:8px;height:8px;border-radius:50%;background:#0f62fe;box-shadow:0 0 0 5px rgba(15,98,254,.1)}
body .google-explorer-status.is-ready,body .google-explorer-status.is-selected{background:#ecfdf5;color:#166534}
body .google-explorer-status.is-ready>span:first-child,body .google-explorer-status.is-selected>span:first-child{background:#16a34a}
body .google-explorer-status.is-error{background:#fff5f5;color:#b42318}
body .google-explorer-status.is-error>span:first-child{background:#ef4444}
body .google-explorer-status.is-loading>span:first-child{animation:googleStatusPulse 1s infinite}
body .google-explorer-layout{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(270px,.75fr);min-height:440px;border-top:1px solid #d9e6f0}
body .google-explorer-map{min-height:440px;background:#e8eef4}
body .google-explorer-results{max-height:440px;overflow:auto;padding:.65rem;background:#f8fbfe;border-left:1px solid #d9e6f0}
body .google-place-result{width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) auto;align-items:center;gap:.62rem;text-align:left;border:1px solid #dce7f0;background:#fff;border-radius:14px;padding:.68rem;margin-bottom:.48rem;color:#17324d;transition:.18s}
body .google-place-result:hover{border-color:#79aefd;box-shadow:0 10px 24px rgba(15,98,254,.1);transform:translateY(-1px)}
body .google-place-result>b{width:32px;height:32px;border-radius:11px;display:grid;place-items:center;background:#eaf3ff;color:#0f62fe}
body .google-place-result span{min-width:0}
body .google-place-result strong,body .google-place-result small{display:block}
body .google-place-result strong{font-size:.8rem}
body .google-place-result small{margin-top:.14rem;color:#64748b;font-size:.69rem;line-height:1.25}
body .google-place-result em{font-size:.62rem;font-style:normal;font-weight:900;color:#147447;white-space:nowrap}
body .google-result-empty{display:grid;gap:.3rem;padding:1rem;border:1px dashed #becddd;border-radius:14px;color:#64748b;font-size:.76rem}
body .google-result-empty strong{color:#17324d}
body .google-map-actions{display:flex;gap:.48rem;flex-wrap:wrap;margin-left:auto}
body .google-map-actions button,body .google-map-actions a{font-size:.72rem}
body .nexa-google-pin{width:32px;height:38px;display:grid;place-items:center;border-radius:15px 15px 15px 3px;transform:rotate(-45deg);border:3px solid #fff;box-shadow:0 5px 16px rgba(15,23,42,.28);font:900 12px/1 system-ui;color:#fff;background:#0f62fe}
body .nexa-google-pin::first-letter{transform:rotate(45deg)}
body .nexa-google-pin-stored{background:#0f766e}
body .nexa-google-pin-search{background:#2563eb}
body .nexa-google-pin-selected{width:40px;height:46px;background:#f59e0b;box-shadow:0 8px 24px rgba(245,158,11,.38)}
body .nexa-google-info{display:grid;gap:.22rem;max-width:260px;color:#17324d}
body .nexa-google-info strong{font-size:.86rem}
body .nexa-google-info span{font-size:.72rem;color:#64748b}
body .client-google-directory{margin-bottom:1rem}
body .client-google-directory .google-explorer-map{min-height:380px}
body.google-maps-live .distribution-global-search>.distribution-place-search-copy,
body.google-maps-live .distribution-global-search>.distribution-place-search-box{display:none}
body .admin-map-security-note{padding:.75rem;border-radius:14px;background:#eff8ff;border:1px solid #c8e4fa;display:grid;gap:.2rem;color:#31506d;font-size:.75rem}
body .admin-map-security-note strong{color:#075da8}
@keyframes googleStatusPulse{50%{opacity:.35;transform:scale(.72)}}
@media(max-width:900px){
  body .google-explorer-layout{grid-template-columns:1fr}
  body .google-explorer-results{border-left:0;border-top:1px solid #d9e6f0;max-height:260px}
  body .google-explorer-map{min-height:360px}
}

/* ========================================================================
   V39 · JERARQUÍA CLARA ENTRE MÓDULOS GENERALES Y SUBMÓDULOS
   ======================================================================== */
body .sidebar-nav.custom-scrollbar{gap:7px !important;}
body .sidebar-core-link{
  min-height:46px !important;
  padding:.66rem .82rem !important;
  font-size:.84rem !important;
  font-weight:820 !important;
  border-radius:15px !important;
  background:rgba(255,255,255,.025) !important;
}
body .sidebar-group{gap:0 !important;margin-top:3px;}
body .sidebar-group-toggle{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 26px !important;
  align-items:center !important;
  min-height:64px !important;
  padding:.72rem .82rem !important;
  border-radius:18px !important;
  background:linear-gradient(145deg,rgba(41,91,168,.28),rgba(12,46,91,.46)) !important;
  border:1px solid rgba(113,175,255,.22) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),0 9px 20px rgba(1,8,22,.13) !important;
}
body .sidebar-group-toggle:hover,
body .sidebar-group.open .sidebar-group-toggle{
  background:linear-gradient(145deg,rgba(39,106,203,.56),rgba(14,62,123,.72)) !important;
  border-color:rgba(117,196,255,.48) !important;
}
body .sidebar-group-title{
  display:grid !important;
  gap:2px !important;
  text-align:left !important;
  line-height:1.1 !important;
}
body .sidebar-group-title small{
  display:block;
  color:#74d9ff;
  font-size:.52rem;
  font-weight:950;
  letter-spacing:.13em;
}
body .sidebar-group-title>span{
  color:#fff;
  font-size:1rem;
  font-weight:920;
  letter-spacing:-.01em;
}
body .sidebar-group-arrow{font-size:.92rem;color:#bde9ff;justify-self:center;}
body .sidebar-group-children{
  display:flex !important;
  max-height:0;
  opacity:0;
  overflow:hidden;
  padding:0 0 0 .72rem !important;
  margin-left:.62rem;
  border-left:1px solid rgba(112,190,255,.25);
  gap:4px !important;
  transition:max-height .26s ease,opacity .18s ease,padding .22s ease;
}
body .sidebar-group.open .sidebar-group-children{
  max-height:760px;
  opacity:1;
  padding:.48rem 0 .2rem .72rem !important;
}
body .sidebar-sublink.sidebar-sublink-text-only{
  display:grid !important;
  grid-template-columns:8px minmax(0,1fr) !important;
  gap:9px !important;
  min-height:42px !important;
  padding:.54rem .68rem !important;
  border-radius:13px !important;
  font-size:.78rem !important;
  font-weight:720 !important;
  color:#c7d7e8 !important;
  background:transparent !important;
  border-color:transparent !important;
  box-shadow:none !important;
}
body .sidebar-sublink.sidebar-sublink-text-only:hover,
body .sidebar-sublink.sidebar-sublink-text-only.active{
  color:#fff !important;
  background:rgba(73,132,221,.2) !important;
  border-color:rgba(113,175,255,.2) !important;
}
body .sidebar-submodule-dot{width:6px;height:6px;border-radius:50%;background:#557da8;box-shadow:0 0 0 3px rgba(85,125,168,.12);}
body .sidebar-sublink.active .sidebar-submodule-dot{background:#6ee7ff;box-shadow:0 0 0 4px rgba(110,231,255,.13);}
body.sidebar-collapsed .sidebar-group-toggle,
body.sidebar-collapsed .sidebar-group-children,
body.sidebar-collapsed .sidebar-core-link{display:none !important;}
@media(max-width:1199px){
  body .sidebar-group-toggle{min-height:61px !important;}
  body .sidebar-group-title>span{font-size:.96rem;}
  body .sidebar-sublink.sidebar-sublink-text-only{font-size:.8rem !important;min-height:44px !important;}
}
@media(prefers-reduced-motion:reduce){body .sidebar-group-children{transition:none !important;}}
@media(max-width:640px){
  body .google-maps-integrated-head{display:grid}
  body .google-explorer-toolbar{grid-template-columns:1fr 1fr}
  body .google-explorer-toolbar .form-control{grid-column:1/-1}
  body .google-map-actions{margin-left:0}
}

/* V39 · identidad, prueba gratuita y permisos comerciales */
.avatar-person{--avatar-a:#163c65;--avatar-b:#43bfe8;position:relative;display:inline-grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;overflow:hidden;background:linear-gradient(145deg,var(--avatar-a),var(--avatar-b));box-shadow:inset 0 1px 0 rgba(255,255,255,.28),0 7px 18px rgba(13,42,65,.18)}
.avatar-person:before{content:"";width:11px;height:11px;border-radius:50%;background:#fff;position:absolute;top:8px;opacity:.96}.avatar-person:after{content:"";width:22px;height:15px;border-radius:50% 50% 22% 22%;background:#fff;position:absolute;bottom:4px;opacity:.96}.avatar-person i{position:absolute;inset:2px;border:1px solid rgba(255,255,255,.26);border-radius:50%}
.avatar-navy{--avatar-a:#102f54;--avatar-b:#2b7ec1}.avatar-cyan{--avatar-a:#0a647d;--avatar-b:#3ad1e8}.avatar-emerald{--avatar-a:#0f5f52;--avatar-b:#3bbf91}.avatar-amber{--avatar-a:#8a4c12;--avatar-b:#e6a43a}.avatar-slate{--avatar-a:#37475a;--avatar-b:#8293a7}.avatar-violet{--avatar-a:#51387f;--avatar-b:#9971d9}
.role-chip-avatar-v39{display:flex!important;align-items:center;gap:8px!important;padding:.32rem .72rem .32rem .38rem!important}.role-chip-avatar-v39 img{width:35px;height:35px;object-fit:cover;border-radius:50%;border:2px solid rgba(255,255,255,.9)}.role-chip-avatar-v39 .avatar-person{width:35px;height:35px;flex-basis:35px}.role-chip-avatar-v39 .avatar-person:before{top:7px}.role-chip-avatar-v39 .avatar-person:after{bottom:3px}
.trial-banner-v39{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 16px;padding:11px 14px;border:1px solid #c6dfd5;border-radius:13px;background:linear-gradient(90deg,#edf8f4,#f7fbfa);color:#315b4c;font-size:.78rem}.trial-banner-v39 span{display:flex;align-items:center;gap:7px}.trial-banner-v39 .trial-banner-actions{gap:13px;flex-wrap:wrap;justify-content:flex-end}.trial-banner-v39 .trial-banner-actions a+a{padding-left:13px;border-left:1px solid #c4dcd5}.trial-banner-v39 i{width:8px;height:8px;border-radius:50%;background:#1ba974;box-shadow:0 0 0 5px rgba(27,169,116,.1)}.trial-banner-v39 a{color:#126e8f;font-weight:850;text-decoration:none}.trial-nav-lock{margin-left:auto;color:#8acde7;font-size:.8rem}.sidebar-link.trial-locked-link,.sidebar-sublink.trial-locked-link{opacity:.66}.sidebar-link.trial-locked-link:hover,.sidebar-sublink.trial-locked-link:hover{opacity:1}.sidebar-sublink.sidebar-sublink-text-only.trial-locked-link{grid-template-columns:8px minmax(0,1fr) auto!important}.sidebar-core-link{display:flex!important;align-items:center;gap:8px}
.trial-locked-v39{position:relative;overflow:hidden;min-height:540px;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:clamp(30px,7vw,84px);border:1px solid #d4e1e9;border-radius:28px;background:radial-gradient(circle at 76% 45%,rgba(42,181,220,.16),transparent 24%),linear-gradient(145deg,#fff,#edf4f8);box-shadow:0 30px 80px rgba(14,43,67,.12)}.trial-locked-v39>*{position:relative;z-index:2}.trial-lock-kicker{color:#197a99;font-size:.68rem;font-weight:900;letter-spacing:.14em}.trial-locked-v39 h1{max-width:720px;margin:15px 0 13px;color:#102b40;font-size:clamp(2rem,4.5vw,4rem);line-height:1;letter-spacing:-.05em}.trial-locked-v39>p{max-width:700px;color:#5d7283;line-height:1.65}.trial-lock-details{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:10px;width:min(700px,100%);margin:24px 0}.trial-lock-details div{padding:14px;border:1px solid #d6e2e9;border-radius:14px;background:rgba(255,255,255,.72)}.trial-lock-details small{display:block;color:#7a8f9f;font-size:.68rem}.trial-lock-details strong{display:block;margin-top:4px;color:#1c4058}.trial-lock-actions{display:flex;gap:10px;flex-wrap:wrap}.trial-locked-core{position:absolute!important;right:8%;top:50%;z-index:1!important;width:190px;height:190px;transform:translateY(-50%);border-radius:50%;border:1px solid rgba(39,154,194,.25);box-shadow:0 0 0 28px rgba(48,175,216,.045),0 0 0 65px rgba(48,175,216,.025),0 0 80px rgba(48,175,216,.2);animation:trialCoreBreath 3.6s ease-in-out infinite}.trial-locked-core:before{content:"";position:absolute;inset:56px;border-radius:50%;background:#fff;box-shadow:0 0 25px #fff,0 0 65px #42c7ee}.trial-locked-core i,.trial-locked-core b,.trial-locked-core span{position:absolute;inset:22px;border:1px solid rgba(56,165,205,.22);border-radius:50%}.trial-locked-core b{inset:42px}.trial-locked-core span{inset:72px}@keyframes trialCoreBreath{0%,100%{transform:translateY(-50%) scale(.92);opacity:.55}50%{transform:translateY(-50%) scale(1.08);opacity:1}}
.admin-shell .user-avatar.avatar-navy{background:linear-gradient(145deg,#102f54,#2b7ec1)}.admin-shell .user-avatar.avatar-cyan{background:linear-gradient(145deg,#0a647d,#3ad1e8)}.admin-shell .user-avatar.avatar-emerald{background:linear-gradient(145deg,#0f5f52,#3bbf91)}.admin-shell .user-avatar.avatar-amber{background:linear-gradient(145deg,#8a4c12,#e6a43a)}.admin-shell .user-avatar.avatar-slate{background:linear-gradient(145deg,#37475a,#8293a7)}.admin-shell .user-avatar.avatar-violet{background:linear-gradient(145deg,#51387f,#9971d9)}
@media(max-width:720px){.trial-banner-v39{align-items:flex-start;flex-direction:column}.trial-lock-details{grid-template-columns:1fr}.trial-locked-core{right:-70px;opacity:.35}}
@media(prefers-reduced-motion:reduce){.trial-locked-core{animation:none}}

/* V47 final · mantenimiento legible y táctil en escritorio reducido y móvil. */
@media(min-width:821px) and (max-width:1280px){
  body .maintenance-order-main{
    grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr)!important;
  }
  body .maintenance-order-description-v2{min-height:0}
  body .maintenance-order-controls-v2{grid-template-columns:1fr 1fr!important}
  body .maintenance-priority-control{grid-column:1/-1}
}

@media(max-width:820px){
  body .maintenance-priority-filter,
  body .maintenance-card-actions .btn,
  body .maintenance-card-actions form .btn{min-height:44px!important}
  body .maintenance-card-actions .action-delete{min-width:44px!important}
}

@media(max-width:520px){
  body .maintenance-order-identity{align-items:flex-start!important}
  body .maintenance-order-identity>div>strong{
    display:-webkit-box!important;
    overflow:hidden;
    white-space:normal!important;
    text-overflow:clip!important;
    overflow-wrap:anywhere;
    -webkit-box-orient:vertical;
    -webkit-line-clamp:2;
    line-height:1.25;
  }
}
.pdf-brand-context-launch{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:4px 10px 4px 5px;border:1px solid rgba(39,71,96,.18);border-radius:10px;background:#fff;color:#29445b;text-decoration:none;font-size:.72rem;font-weight:900;box-shadow:0 3px 10px rgba(15,37,56,.06);transition:.18s ease}.pdf-brand-context-launch:hover{color:#0b7192;border-color:#55acc1;transform:translateY(-1px)}.pdf-brand-context-launch>span{position:relative;width:27px;height:27px;border-radius:7px;background:linear-gradient(145deg,#e8f5f8,#f9fcfd);display:grid;place-items:center}.pdf-brand-context-launch>span:before{content:"";width:13px;height:17px;border:1.5px solid #1689a5;border-radius:2px;background:#fff}.pdf-brand-context-launch>span:after{content:"";position:absolute;width:7px;height:1.5px;background:#1689a5;box-shadow:0 4px 0 #1689a5}.pdf-brand-context-launch>span i{position:absolute;left:5px;top:5px;width:5px;height:5px;border-radius:2px;background:#0c5477;z-index:2}@media(max-width:760px){.pdf-brand-context-launch b{display:none}.pdf-brand-context-launch{padding-right:5px}}

/* V50.3 · Monitor de taller: seis bloques equilibrados, búsqueda y recorrido robusto. */
body .industrial-tv-summary-v503{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
}
body .industrial-tv-summary-v503 .industrial-tv-summary-card{
  width:100%;
  min-height:82px !important;
  justify-self:stretch;
  align-self:stretch;
}
body .industrial-tv-filter-console{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:minmax(250px,1.35fr) minmax(190px,.7fr) auto minmax(210px,.85fr);
  gap:10px;
  align-items:end;
  padding:10px 12px;
  border:1px solid rgba(148,184,224,.17);
  border-radius:17px;
  background:rgba(1,9,21,.38);
}
#monitorFilteredEmpty[hidden]{display:none!important;}
body .industrial-tv-filter-field label{
  display:block;
  margin-bottom:5px;
  color:#91abc5;
  font-size:.6rem;
  font-weight:900;
  letter-spacing:.055em;
  text-transform:uppercase;
}
body .industrial-tv-filter-field input,
body .industrial-tv-filter-field select{
  width:100%;
  min-height:40px;
  padding:0 12px;
  border:1px solid rgba(148,184,224,.25);
  border-radius:12px;
  outline:none;
  background:rgba(255,255,255,.09);
  color:#eef7ff;
  font-size:.76rem;
  font-weight:800;
}
body .industrial-tv-filter-field input::placeholder{color:#88a1ba;}
body .industrial-tv-filter-field select option{color:#10243d;background:#fff;}
body .industrial-tv-filter-field input:focus,
body .industrial-tv-filter-field select:focus{border-color:#60a5fa;box-shadow:0 0 0 3px rgba(96,165,250,.14);}
body .industrial-tv-clear-filter{
  min-height:40px;
  padding:0 14px;
  border:1px solid rgba(148,184,224,.25);
  border-radius:12px;
  background:rgba(255,255,255,.08);
  color:#dbeafe;
  font-size:.72rem;
  font-weight:900;
}
body .industrial-tv-clear-filter:hover{border-color:#60a5fa;background:rgba(37,99,235,.24);}
body .industrial-tv-filter-help{
  align-self:center;
  color:#9cb3ca;
  font-size:.68rem;
  line-height:1.4;
}
body .industrial-task-status{
  padding:.34rem .6rem;
  border:1px solid #cbd5e1;
  border-radius:999px;
  background:#f1f5f9;
  color:#475569;
  font-size:.67rem;
  font-weight:950;
}
body .industrial-task-status.status-en-proceso{border-color:#9ac9f5;background:#e9f5ff;color:#135fc9;}
body .industrial-task-status.status-pendiente{border-color:#ddd6fe;background:#f3f0ff;color:#6d48b5;}
body .industrial-tv-task-carousel{scroll-behavior:auto !important;}
body .industrial-tv-task-carousel .industrial-task-slide{
  left:0;
  right:0;
  margin-left:auto !important;
  margin-right:auto !important;
}
@media(max-width:1350px){
  body .industrial-tv-filter-console{grid-template-columns:1fr 1fr auto;}
  body .industrial-tv-filter-help{grid-column:1/-1;}
}
@media(max-width:900px){
  body .industrial-tv-summary-v503{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
  body .industrial-tv-filter-console{grid-template-columns:1fr 1fr;}
  body .industrial-tv-clear-filter{width:100%;}
  body .industrial-tv-filter-help{grid-column:1/-1;}
}
@media(max-width:620px){
  body .industrial-tv-summary-v503,
  body .industrial-tv-filter-console{grid-template-columns:1fr !important;}
  body .industrial-tv-filter-help{grid-column:auto;}
}

/* V50.3 · Preoperacional: N/A visible y acciones independientes del estado. */
body .fleet-state-option.is-na input:checked+span{
  color:#fff !important;
  background:linear-gradient(145deg,#475569,#64748b) !important;
  border-color:#94a3b8 !important;
  box-shadow:0 8px 20px rgba(71,85,105,.24) !important;
}
body .fleet-check-item[data-selected="No aplica"]{
  border-color:#94a3b8 !important;
  background:#f1f5f9 !important;
}
body .fleet-check-item[data-selected="No aplica"] .fleet-check-item-copy::after{
  content:"No aplica para esta unidad";
  display:inline-flex;
  margin-top:6px;
  padding:.22rem .5rem;
  border-radius:999px;
  background:#64748b;
  color:#fff;
  font-size:.55rem;
  font-weight:900;
  text-transform:uppercase;
}
body .fleet-action-register{
  grid-column:1/-1;
  overflow:hidden;
  border:1px solid #d9e4ee;
  border-radius:14px;
  background:#f8fafc;
}
body .fleet-action-register summary{
  padding:10px 12px;
  cursor:pointer;
  color:#36516c;
  font-size:.7rem;
  font-weight:900;
}
body .fleet-action-register summary span{
  display:block;
  margin-top:2px;
  color:#75889b;
  font-size:.6rem;
  font-weight:700;
}
body .fleet-action-register-grid{
  display:grid;
  grid-template-columns:minmax(210px,.85fr) minmax(260px,1.25fr) minmax(190px,.75fr);
  gap:8px;
  align-items:center;
  padding:0 11px 11px;
}
body .fleet-action-check{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:42px;
  padding:8px 10px;
  border:1px solid #d9e4ee;
  border-radius:11px;
  background:#fff;
  color:#31506d;
  font-size:.67rem;
  font-weight:850;
}
body .fleet-action-check input{width:17px;height:17px;flex:0 0 auto;accent-color:#2563eb;}
body .fleet-action-check.is-blocking{border-color:#fecaca;color:#b42318;background:#fff7f7;}
body .fleet-live-verdict{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:3px 10px;
  align-items:center;
  padding:11px 13px;
  border:1px solid #dbe6ef;
  border-radius:14px;
  background:#f8fafc;
}
body .fleet-live-verdict span{color:#64748b;font-size:.65rem;font-weight:900;text-transform:uppercase;}
body .fleet-live-verdict strong{color:#173d6f;font-size:.9rem;}
body .fleet-live-verdict small{grid-column:1/-1;color:#64748b;}
body .fleet-current-result strong.is-neutral{color:#475569;background:#e2e8f0;border-color:#cbd5e1;}
body .fleet-result-badge.is-neutral{color:#475569;background:#e2e8f0;border-color:#cbd5e1;}
body .fleet-finding-chip.is-na{color:#475569;background:#e2e8f0;border-color:#cbd5e1;}
body .fleet-action-list{display:grid;gap:7px;margin-top:10px;}
body .fleet-action-list>div{padding:9px 11px;border:1px solid #f0d18c;border-radius:12px;background:#fff9e8;color:#7c5300;}
body .fleet-action-list>div.is-blocking{border-color:#fecaca;background:#fff1f1;color:#991b1b;}
body .fleet-action-list strong,body .fleet-action-list span{display:block;}
body .fleet-action-list strong{font-size:.72rem;}
body .fleet-action-list span{margin-top:2px;font-size:.68rem;}
body .fleet-inspection-observation p{white-space:pre-line;}
@media(max-width:980px){
  body .fleet-action-register-grid{grid-template-columns:1fr;}
}

/* V50.3.4 - monitor del taller centrado y sin bloques duplicados. */
body .industrial-tv-shell-v4{
  width:min(100%,1500px) !important;
  max-width:1500px !important;
  height:calc(100dvh - 112px) !important;
  min-height:0 !important;
  margin:0 auto !important;
  padding:14px !important;
  gap:10px !important;
}
body .industrial-tv-shell-v4 .industrial-tv-header{
  grid-template-columns:minmax(0,1fr) auto auto !important;
  gap:18px !important;
  padding:15px 19px !important;
}
body .industrial-tv-shell-v4 .industrial-tv-brand h1{
  margin:.5rem 0 .2rem !important;
  font-size:2rem !important;
}
body .industrial-tv-shell-v4 .industrial-tv-brand p{
  max-width:680px;
  color:#bdd0e4 !important;
}
body .industrial-tv-shell-v4 .industrial-tv-clock{font-size:2.7rem !important;}
body .industrial-tv-shell-v4 .industrial-tv-actions{min-width:205px;}
body .industrial-tv-summary-v504{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:10px !important;
}
body .industrial-tv-summary-v504 .industrial-tv-summary-card{
  min-height:76px !important;
  padding:10px 13px !important;
  grid-template-columns:46px minmax(0,1fr) 26px !important;
}
body .industrial-tv-summary-v504 .industrial-tv-summary-icon{
  width:46px !important;
  height:46px !important;
  border-radius:14px !important;
}
body .industrial-tv-summary-v504 .industrial-tv-summary-icon svg{
  width:23px !important;
  height:23px !important;
}
body .industrial-tv-summary-v504 .industrial-tv-summary-copy strong{
  font-size:1.55rem !important;
}
body .industrial-tv-filter-console-v4{
  grid-template-columns:minmax(320px,1fr) minmax(210px,260px) auto !important;
  gap:10px !important;
  padding:9px 11px !important;
}
body .industrial-tv-shell-v4 .industrial-tv-priority-bar{
  padding:8px 12px !important;
}
body .industrial-tv-board-v4{
  width:100%;
  min-height:0;
  margin:0 auto;
  padding:12px 14px 14px !important;
}
body .industrial-tv-board-v4 .industrial-tv-board-head{
  grid-template-columns:minmax(0,1fr) auto !important;
  gap:16px !important;
  padding-bottom:9px !important;
}
body .industrial-tv-board-v4 .industrial-tv-board-navigation{
  justify-self:end !important;
}
body .industrial-tv-board-v4 .industrial-tv-task-carousel{
  width:100%;
  margin:0 auto;
  padding:2px 8px 2px !important;
}
body .industrial-tv-shell-v4 .industrial-task-slide{
  width:min(100%,1220px) !important;
  max-width:1220px !important;
  margin:0 auto 16px !important;
  grid-template-columns:8px minmax(0,1fr) 215px !important;
}
body .industrial-tv-shell-v4 .industrial-task-content{
  padding:19px 21px !important;
}
body .industrial-tv-shell-v4 .industrial-task-title-row-v3{
  margin:12px 0 10px !important;
}
body .industrial-tv-shell-v4 .industrial-task-title-row-v3 h3{
  font-size:1.48rem !important;
}
body .industrial-tv-shell-v4 .industrial-task-description-panel{
  margin-bottom:11px !important;
  padding:12px 15px 12px 18px !important;
}
body .industrial-tv-shell-v4 .industrial-task-description-panel p{
  font-size:.98rem !important;
  -webkit-line-clamp:3 !important;
}
body .industrial-tv-shell-v4 .industrial-task-data-grid-v3{
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:8px !important;
}
body .industrial-tv-shell-v4 .industrial-task-data-grid-v3 .industrial-task-data-item{
  min-height:72px !important;
  padding-top:10px !important;
  padding-bottom:9px !important;
}
body .industrial-tv-shell-v4 .industrial-task-data-grid-v3 strong{
  margin-top:5px !important;
  font-size:.84rem !important;
}
body .industrial-tv-shell-v4 .industrial-task-qr-v3{
  padding:17px 15px !important;
}
body .industrial-tv-shell-v4 .industrial-task-qr-v3 .industrial-task-qr-frame{
  width:156px !important;
  height:156px !important;
}
body .industrial-tv-shell-v4:fullscreen,
body .industrial-tv-shell-v4:-webkit-full-screen{
  width:100vw !important;
  max-width:none !important;
  height:100vh !important;
  padding:16px !important;
}
body .industrial-tv-shell-v4:fullscreen .industrial-task-slide,
body .industrial-tv-shell-v4:-webkit-full-screen .industrial-task-slide{
  width:min(100%,1380px) !important;
  max-width:1380px !important;
}
@media(max-width:1180px){
  body .industrial-tv-shell-v4 .industrial-tv-header{
    grid-template-columns:minmax(0,1fr) auto !important;
  }
  body .industrial-tv-shell-v4 .industrial-tv-actions{
    grid-column:1/-1;
    min-width:0;
    flex-direction:row;
    justify-content:flex-end;
  }
  body .industrial-tv-shell-v4 .industrial-task-slide{
    grid-template-columns:7px minmax(0,1fr) 180px !important;
  }
  body .industrial-tv-shell-v4 .industrial-task-qr-v3 .industrial-task-qr-frame{
    width:138px !important;
    height:138px !important;
  }
}
@media(max-width:900px){
  body .industrial-tv-shell-v4{
    height:auto !important;
    min-height:calc(100dvh - 90px) !important;
    overflow:visible !important;
  }
  body .industrial-tv-shell-v4 .industrial-tv-header{grid-template-columns:1fr !important;}
  body .industrial-tv-shell-v4 .industrial-tv-actions{
    grid-column:auto;
    justify-content:stretch;
  }
  body .industrial-tv-summary-v504{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
  body .industrial-tv-filter-console-v4{grid-template-columns:1fr 1fr !important;}
  body .industrial-tv-filter-console-v4 .industrial-tv-clear-filter{grid-column:1/-1;}
  body .industrial-tv-shell-v4 .industrial-task-slide{
    width:100% !important;
    max-width:none !important;
    grid-template-columns:6px minmax(0,1fr) !important;
  }
  body .industrial-tv-shell-v4 .industrial-task-data-grid-v3{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }
}
@media(max-width:620px){
  body .industrial-tv-summary-v504,
  body .industrial-tv-filter-console-v4{
    grid-template-columns:1fr !important;
  }
  body .industrial-tv-filter-console-v4 .industrial-tv-clear-filter{grid-column:auto;}
  body .industrial-tv-shell-v4 .industrial-tv-actions{flex-direction:column;}
}

/* V50.3.5 · monitor sin scroll, una OT completa y QR centrado. */
body .industrial-tv-shell-v5{
  width:min(100%,1560px) !important;
  max-width:1560px !important;
  height:calc(100dvh - 112px) !important;
  min-height:620px !important;
  display:grid !important;
  grid-template-rows:auto auto minmax(0,1fr) !important;
  gap:8px !important;
  margin:0 auto !important;
  padding:12px !important;
  overflow:hidden !important;
}
body .industrial-tv-shell-v5 .industrial-tv-header{
  grid-template-columns:minmax(0,1fr) auto auto !important;
  gap:16px !important;
  padding:11px 16px !important;
  border-radius:19px !important;
}
body .industrial-tv-shell-v5 .industrial-tv-kicker{
  padding:.3rem .58rem !important;
  font-size:.61rem !important;
}
body .industrial-tv-shell-v5 .industrial-tv-brand h1{
  margin:.4rem 0 .12rem !important;
  font-size:1.75rem !important;
}
body .industrial-tv-shell-v5 .industrial-tv-brand p{
  margin:0 !important;
  font-size:.76rem !important;
}
body .industrial-tv-shell-v5 .industrial-tv-clock{
  font-size:2.2rem !important;
}
body .industrial-tv-shell-v5 .industrial-tv-date{
  margin-top:.2rem !important;
  font-size:.7rem !important;
}
body .industrial-tv-shell-v5 .industrial-tv-actions{
  min-width:210px !important;
  gap:6px !important;
}
body .industrial-tv-shell-v5 .industrial-tv-action{
  min-width:0 !important;
  padding:.48rem .7rem !important;
  font-size:.7rem !important;
}
body .industrial-tv-shell-v5 .industrial-tv-action-copy{
  width:auto !important;
  height:auto !important;
  text-align:left;
}
body .industrial-tv-shell-v5 .industrial-tv-action-copy strong,
body .industrial-tv-shell-v5 .industrial-tv-action-copy small{
  display:block;
}
body .industrial-tv-shell-v5 .industrial-tv-action-copy small{
  color:#a9bfd4;
  font-size:.58rem;
}
body .industrial-tv-summary-v505{
  grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:8px !important;
}
body .industrial-tv-summary-v505 .industrial-tv-summary-card{
  min-height:58px !important;
  grid-template-columns:38px minmax(0,1fr) !important;
  gap:10px !important;
  padding:7px 11px !important;
  border-radius:16px !important;
  transform:none !important;
}
body .industrial-tv-summary-v505 .industrial-tv-summary-icon{
  width:38px !important;
  height:38px !important;
  border-radius:12px !important;
}
body .industrial-tv-summary-v505 .industrial-tv-summary-icon svg{
  width:20px !important;
  height:20px !important;
}
body .industrial-tv-summary-v505 .industrial-tv-summary-copy small{
  font-size:.59rem !important;
}
body .industrial-tv-summary-v505 .industrial-tv-summary-copy strong{
  margin:.1rem 0 0 !important;
  font-size:1.35rem !important;
}
body .industrial-tv-board-v5{
  min-height:0 !important;
  display:grid !important;
  grid-template-rows:auto 4px minmax(0,1fr) !important;
  gap:7px !important;
  padding:9px 11px 11px !important;
  border-radius:20px !important;
  overflow:hidden !important;
}
body .industrial-tv-toolbar-v5{
  display:grid;
  grid-template-columns:minmax(220px,1.4fr) minmax(155px,.65fr) auto auto auto;
  gap:8px;
  align-items:end;
}
body .industrial-tv-toolbar-v5 label{
  display:grid;
  gap:3px;
}
body .industrial-tv-toolbar-v5 label>span{
  color:#6c8198;
  font-size:.56rem;
  font-weight:950;
  letter-spacing:.07em;
  text-transform:uppercase;
}
body .industrial-tv-toolbar-v5 input,
body .industrial-tv-toolbar-v5 select{
  min-height:38px;
  border:1px solid #ccdbea;
  border-radius:11px;
  padding:0 .72rem;
  background:#fff;
  color:#18314d;
  font-size:.72rem;
  font-weight:750;
}
body .industrial-tv-priority-filters-v5{
  display:flex;
  gap:5px;
  align-items:center;
}
body .industrial-tv-priority-filters-v5 button,
body .industrial-tv-clear-filter{
  min-height:38px;
  padding:0 .65rem;
  border:1px solid #ccdae8;
  border-radius:11px;
  background:#fff;
  color:#42617f;
  font-size:.65rem;
  font-weight:900;
}
body .industrial-tv-priority-filters-v5 button b{
  display:inline-grid;
  place-items:center;
  min-width:20px;
  height:20px;
  margin-left:3px;
  border-radius:999px;
  background:#edf3f9;
}
body .industrial-tv-priority-filters-v5 button.is-selected,
body .industrial-tv-clear-filter:hover{
  border-color:#77a9e9;
  background:#eaf3ff;
  color:#145fc8;
}
body .industrial-tv-shell-v5 .industrial-tv-board-navigation{
  align-self:end;
}
body .industrial-tv-shell-v5 .industrial-tv-board-navigation button,
body .industrial-tv-shell-v5 .industrial-tv-task-counter{
  height:38px;
}
body .industrial-tv-shell-v5 .industrial-tv-progress-track{
  height:4px !important;
  margin:0 !important;
}
body .industrial-tv-shell-v5 .industrial-tv-task-carousel{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  display:grid !important;
  place-items:stretch !important;
  padding:0 !important;
  overflow:hidden !important;
  scroll-snap-type:none !important;
}
body .industrial-tv-shell-v5 .industrial-task-slide{
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  max-width:none !important;
  margin:0 !important;
  display:grid !important;
  grid-template-columns:7px minmax(0,1fr) minmax(185px,225px) !important;
  overflow:hidden !important;
  border-radius:20px !important;
  opacity:1 !important;
  transform:none !important;
}
body .industrial-tv-shell-v5 .industrial-task-slide[hidden]{
  display:none !important;
}
body .industrial-tv-shell-v5 .industrial-task-slide.is-current-task{
  animation:workshop-card-enter-v505 .42s cubic-bezier(.16,1,.3,1);
}
@keyframes workshop-card-enter-v505{
  from{opacity:.55;transform:translateX(16px)}
  to{opacity:1;transform:translateX(0)}
}
body .industrial-tv-shell-v5 .industrial-task-content{
  min-width:0 !important;
  min-height:0 !important;
  display:grid !important;
  grid-template-rows:auto auto minmax(0,1fr) auto !important;
  gap:8px !important;
  padding:14px 17px !important;
  overflow:hidden !important;
}
body .industrial-tv-shell-v5 .industrial-task-topline{
  gap:5px !important;
}
body .industrial-tv-shell-v5 .industrial-task-code,
body .industrial-tv-shell-v5 .industrial-task-status,
body .industrial-tv-shell-v5 .industrial-task-priority,
body .industrial-tv-shell-v5 .industrial-task-late{
  padding:.27rem .52rem !important;
  font-size:.61rem !important;
}
body .industrial-tv-shell-v5 .industrial-task-title-row-v5{
  display:grid;
  grid-template-columns:46px minmax(0,1fr);
  gap:11px;
  align-items:center;
}
body .industrial-tv-shell-v5 .industrial-task-title-icon{
  width:46px !important;
  height:46px !important;
  border-radius:14px !important;
  color:#fff !important;
  background:linear-gradient(145deg,#2563eb,#0891b2) !important;
}
body .industrial-tv-shell-v5 .industrial-task-title-icon svg{
  width:24px;
  height:24px;
}
body .industrial-tv-shell-v5 .industrial-task-title-row-v5 small{
  display:block;
  color:#7389a0;
  font-size:.61rem;
  font-weight:950;
  letter-spacing:.07em;
  text-transform:uppercase;
}
body .industrial-tv-shell-v5 .industrial-task-title-row-v5 h2{
  margin:.08rem 0 0;
  color:#0d2038;
  font-size:clamp(1.25rem,1.7vw,1.85rem);
  line-height:1.05;
  font-weight:950;
  letter-spacing:-.035em;
}
body .industrial-tv-shell-v5 .industrial-task-description-panel{
  min-height:0 !important;
  margin:0 !important;
  display:flex !important;
  flex-direction:column;
  justify-content:center;
  padding:14px 18px 14px 22px !important;
  overflow:hidden !important;
  border-radius:16px !important;
}
body .industrial-tv-shell-v5 .industrial-task-description-panel>span{
  margin-bottom:5px !important;
  font-size:.66rem !important;
}
body .industrial-tv-shell-v5 .industrial-task-description-panel p{
  margin:0 !important;
  display:block !important;
  overflow:hidden !important;
  color:#172f49 !important;
  font-size:clamp(1.4rem,2.25vw,2.5rem) !important;
  line-height:1.16 !important;
  font-weight:850 !important;
  -webkit-line-clamp:unset !important;
}
body .industrial-tv-shell-v5 .industrial-task-description-panel.is-medium p{
  font-size:clamp(1.18rem,1.75vw,1.85rem) !important;
  line-height:1.22 !important;
}
body .industrial-tv-shell-v5 .industrial-task-description-panel.is-long p{
  font-size:clamp(1rem,1.35vw,1.45rem) !important;
  line-height:1.24 !important;
}
body .industrial-tv-shell-v5 .industrial-task-data-grid-v5{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:7px;
}
body .industrial-tv-shell-v5 .industrial-task-data-grid-v5>div{
  min-width:0;
  padding:8px 10px;
  border:1px solid #dce7f1;
  border-radius:13px;
  background:#f2f7fc;
}
body .industrial-tv-shell-v5 .industrial-task-data-grid-v5 span{
  display:flex;
  align-items:center;
  gap:5px;
  color:#70859b;
  font-size:.56rem;
  font-weight:950;
  letter-spacing:.045em;
  text-transform:uppercase;
}
body .industrial-tv-shell-v5 .industrial-task-data-grid-v5 svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.8;
}
body .industrial-tv-shell-v5 .industrial-task-data-grid-v5 strong{
  display:block;
  margin-top:4px;
  overflow:hidden;
  color:#1a344f;
  font-size:.76rem;
  font-weight:900;
  text-overflow:ellipsis;
  white-space:nowrap;
}
body .industrial-tv-shell-v5 .industrial-task-data-grid-v5 strong.is-unassigned{
  color:#b45309;
}
body .industrial-tv-shell-v5 .industrial-task-data-grid-v5 .is-overdue-box{
  border-color:#ffcaca;
  background:#fff2f2;
}
body .industrial-tv-shell-v5 .industrial-task-qr-v5{
  min-width:0;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:6px;
  padding:15px !important;
  border-left:1px solid #d8e4ef !important;
  background:linear-gradient(180deg,#f7fbff,#edf4fa) !important;
  text-align:center !important;
}
body .industrial-tv-shell-v5 .industrial-task-qr-v5>span{
  color:#6b8198;
  font-size:.62rem;
  font-weight:950;
  letter-spacing:.09em;
}
body .industrial-tv-shell-v5 .industrial-task-qr-frame{
  width:min(100%,190px) !important;
  aspect-ratio:1 !important;
  height:auto !important;
  align-self:center !important;
  justify-self:center !important;
  margin:8px auto !important;
  padding:10px !important;
  border:2px solid #c6d8e9 !important;
  border-radius:24px !important;
  background:#fff !important;
  box-shadow:0 16px 34px rgba(15,23,42,.13) !important;
}
body .industrial-tv-shell-v5 .industrial-task-qr-frame img{
  width:100% !important;
  height:100% !important;
  display:block !important;
  object-fit:contain !important;
}
body .industrial-tv-shell-v5 .industrial-task-qr-v5>strong{
  color:#102b46;
  font-size:.9rem;
  font-weight:950;
}
body .industrial-tv-shell-v5 .industrial-task-qr-v5>small{
  color:#71869b;
  font-size:.64rem;
  font-weight:800;
}
body .industrial-tv-shell-v5:fullscreen,
body .industrial-tv-shell-v5:-webkit-full-screen{
  width:100vw !important;
  max-width:none !important;
  height:100vh !important;
  min-height:100vh !important;
  padding:14px !important;
  border-radius:0 !important;
}
@media(max-width:1100px){
  body .industrial-tv-shell-v5 .industrial-tv-header{
    grid-template-columns:minmax(0,1fr) auto !important;
  }
  body .industrial-tv-shell-v5 .industrial-tv-actions{
    display:none !important;
  }
  body .industrial-tv-toolbar-v5{
    grid-template-columns:minmax(200px,1fr) 150px auto auto !important;
  }
  body .industrial-tv-priority-filters-v5{
    display:none !important;
  }
  body .industrial-tv-shell-v5 .industrial-task-slide{
    grid-template-columns:6px minmax(0,1fr) 175px !important;
  }
  body .industrial-tv-shell-v5 .industrial-task-qr-frame{
    width:min(100%,145px) !important;
  }
}
@media(max-height:760px){
  body .industrial-tv-shell-v5{
    min-height:0 !important;
  }
  body .industrial-tv-shell-v5 .industrial-tv-brand p,
  body .industrial-tv-shell-v5 .industrial-tv-date{
    display:none !important;
  }
  body .industrial-tv-shell-v5 .industrial-tv-brand h1{
    font-size:1.5rem !important;
  }
  body .industrial-tv-shell-v5 .industrial-task-description-panel p{
    font-size:clamp(1.2rem,1.9vw,2rem) !important;
  }
}

/* V50.3.7 · monitor del taller proporcional y filtros perfectamente alineados */
body .industrial-tv-shell-v5 {
  width: min(calc(100% - 12px), 1580px) !important;
  padding: 10px !important;
  gap: 9px !important;
}
body .industrial-tv-shell-v5 .industrial-tv-header {
  padding: 12px 18px !important;
}
body .industrial-tv-board-v5 {
  padding: 10px 12px 12px !important;
  gap: 8px !important;
}
body .industrial-tv-toolbar-v506 {
  display: grid !important;
  grid-template-columns: minmax(250px, 1.55fr) minmax(155px, .72fr) minmax(280px, 1.15fr) minmax(84px, .42fr) minmax(170px, .72fr) !important;
  align-items: end !important;
  gap: 9px !important;
  padding: 8px !important;
  border: 1px solid #d7e4ef;
  border-radius: 15px;
  background: linear-gradient(180deg, #f9fcff 0%, #f1f6fb 100%);
}
body .industrial-tv-filter-field-v506 {
  min-width: 0;
  display: grid !important;
  grid-template-rows: 15px 40px;
  align-items: stretch !important;
  gap: 4px !important;
  margin: 0 !important;
}
body .industrial-tv-filter-field-v506 > span:first-child {
  color: #617991;
  font-size: .56rem;
  font-weight: 950;
  letter-spacing: .075em;
  line-height: 15px;
  text-transform: uppercase;
}
body .industrial-tv-toolbar-v506 input,
body .industrial-tv-toolbar-v506 select,
body .industrial-tv-toolbar-v506 .industrial-tv-clear-filter,
body .industrial-tv-toolbar-v506 .industrial-tv-priority-filters-v5,
body .industrial-tv-toolbar-v506 .industrial-tv-board-navigation {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
}
body .industrial-tv-toolbar-v506 input,
body .industrial-tv-toolbar-v506 select {
  border-radius: 11px !important;
  padding: 0 .75rem !important;
  box-shadow: 0 4px 12px rgba(16, 50, 82, .04);
}
body .industrial-tv-toolbar-v506 .industrial-tv-priority-filters-v5 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}
body .industrial-tv-toolbar-v506 .industrial-tv-priority-filters-v5 button,
body .industrial-tv-toolbar-v506 .industrial-tv-clear-filter {
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 .48rem !important;
  white-space: nowrap;
}
body .industrial-tv-toolbar-v506 .industrial-tv-priority-filters-v5 button b {
  min-width: 19px;
  height: 19px;
}
body .industrial-tv-toolbar-v506 .industrial-tv-board-navigation {
  display: grid !important;
  grid-template-columns: 40px minmax(72px, 1fr) 40px;
  gap: 5px;
  align-items: stretch !important;
}
body .industrial-tv-toolbar-v506 .industrial-tv-board-navigation button,
body .industrial-tv-toolbar-v506 .industrial-tv-task-counter {
  width: 100% !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  border-radius: 11px !important;
}
body .industrial-tv-shell-v5 .industrial-task-slide {
  grid-template-columns: 7px minmax(0, 1fr) minmax(205px, 235px) !important;
}
body .industrial-tv-shell-v5 .industrial-task-content {
  grid-template-rows: auto minmax(0, 1fr) auto !important;
  gap: 10px !important;
  padding: 14px 18px !important;
}
body .industrial-tv-shell-v5 .industrial-task-main-v506 {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}
body .industrial-tv-shell-v5 .industrial-task-title-row-v5 {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  padding-inline: 2px;
}
body .industrial-tv-shell-v5 .industrial-task-title-icon {
  width: 44px !important;
  height: 44px !important;
}
body .industrial-tv-shell-v5 .industrial-task-description-panel {
  width: 100%;
  min-height: 150px !important;
  max-height: 100% !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr);
  align-content: stretch;
  justify-content: stretch !important;
  gap: 8px;
  padding: clamp(16px, 2.1vh, 25px) clamp(20px, 2.2vw, 34px) !important;
  border: 1px solid #d6e3ee !important;
  border-left: 5px solid #ef4f57 !important;
  background: linear-gradient(145deg, #ffffff 0%, #f8fbfe 100%) !important;
  box-shadow: inset 0 1px 0 #fff, 0 8px 22px rgba(17, 52, 83, .045);
}
body .industrial-tv-shell-v5 .industrial-task-description-panel > span {
  align-self: end;
  margin: 0 !important;
}
body .industrial-tv-shell-v5 .industrial-task-description-panel p {
  width: min(100%, 1120px);
  align-self: center;
  justify-self: start;
  overflow-wrap: anywhere;
  font-size: clamp(1.32rem, 2vw, 2.18rem) !important;
  line-height: 1.16 !important;
}
body .industrial-tv-shell-v5 .industrial-task-description-panel.is-medium p {
  font-size: clamp(1.12rem, 1.55vw, 1.72rem) !important;
}
body .industrial-tv-shell-v5 .industrial-task-description-panel.is-long p {
  font-size: clamp(.95rem, 1.22vw, 1.34rem) !important;
}
body .industrial-tv-shell-v5 .industrial-task-data-grid-v5 {
  gap: 8px;
}
body .industrial-tv-shell-v5 .industrial-task-data-grid-v5 > div {
  min-height: 61px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 11px;
}
body .industrial-tv-shell-v5 .industrial-task-qr-v5 {
  padding: 18px 16px !important;
}
body .industrial-tv-shell-v5 .industrial-task-qr-frame {
  width: min(100%, 178px) !important;
  margin: 10px auto !important;
  padding: 9px !important;
  border-radius: 21px !important;
}
@media (max-width: 1220px) {
  body .industrial-tv-toolbar-v506 {
    grid-template-columns: minmax(230px, 1.35fr) minmax(145px, .7fr) minmax(260px, 1.1fr) 90px 165px !important;
  }
}
@media (max-width: 1100px) {
  body .industrial-tv-toolbar-v506 {
    grid-template-columns: minmax(230px, 1fr) minmax(150px, .65fr) 90px 165px !important;
  }
  body .industrial-tv-toolbar-v506 .industrial-tv-priority-group-v506 {
    display: none !important;
  }
}
@media (max-height: 760px) {
  body .industrial-tv-toolbar-v506 {
    padding: 6px !important;
  }
  body .industrial-tv-filter-field-v506 {
    grid-template-rows: 13px 36px;
    gap: 3px !important;
  }
  body .industrial-tv-toolbar-v506 input,
  body .industrial-tv-toolbar-v506 select,
  body .industrial-tv-toolbar-v506 .industrial-tv-clear-filter,
  body .industrial-tv-toolbar-v506 .industrial-tv-priority-filters-v5,
  body .industrial-tv-toolbar-v506 .industrial-tv-board-navigation,
  body .industrial-tv-toolbar-v506 .industrial-tv-board-navigation button,
  body .industrial-tv-toolbar-v506 .industrial-tv-task-counter {
    height: 36px !important;
    min-height: 36px !important;
  }
  body .industrial-tv-shell-v5 .industrial-task-description-panel {
    min-height: 110px !important;
    padding: 12px 20px !important;
  }
}

/* V50.4.3 · control administrativo de Dynamic Street View */
.admin-street-view-toggle{min-height:118px;border:1px solid #cbdbea;border-radius:18px;padding:16px 18px;background:linear-gradient(145deg,#f8fbff,#edf5fb);display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:center}
.admin-street-view-toggle>div{display:grid;gap:2px}.admin-street-view-toggle strong{color:#0b2948;font-size:1rem}.admin-street-view-toggle span,.admin-street-view-toggle small{color:#60788f}.admin-street-view-toggle small{grid-column:1/-1;font-size:.76rem;line-height:1.35}
.admin-street-view-toggle.is-enabled{border-color:#68cdb8;background:linear-gradient(145deg,#f4fffb,#e5f9f2);box-shadow:0 10px 25px rgba(16,130,104,.08)}
.admin-api-switch{display:flex;align-items:center;gap:8px;cursor:pointer;margin:0}.admin-api-switch input{position:absolute;opacity:0;pointer-events:none}.admin-api-switch i{width:54px;height:30px;border-radius:999px;background:#aebdca;position:relative;box-shadow:inset 0 0 0 1px rgba(9,37,63,.12);transition:.2s}.admin-api-switch i:after{content:"";position:absolute;width:24px;height:24px;left:3px;top:3px;border-radius:50%;background:white;box-shadow:0 3px 8px rgba(15,40,64,.25);transition:.2s}.admin-api-switch input:checked+i{background:#16a881}.admin-api-switch input:checked+i:after{transform:translateX(24px)}.admin-api-switch b{min-width:92px;color:#6b7f91;font-size:.7rem;letter-spacing:.08em}.admin-street-view-toggle.is-enabled .admin-api-switch b{color:#08765e}
@media(max-width:700px){.admin-street-view-toggle{grid-template-columns:1fr}.admin-api-switch{justify-content:space-between}.admin-street-view-toggle small{grid-column:auto}}
