
*,*::before,*::after{margin:0;padding:0;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
:root{
  --void:#07090d;--deep:#0b0e14;--carbon:#121820;--plate:#18202e;--steel:#1e2838;
  --rim:#263042;--wire:#30404e;
  --muted:#9aaab8;--soft:#c4cfd8;--bright:#e6ecf4;--white:#f5f7fc;
  --gold:#ffd500;--gold2:#ffe040;--gold3:#fff099;--gf:rgba(255,213,0,0.08);--gg:rgba(255,213,0,0.18);
  --ember:#d45f2e;--jade:#2eab6f;--ice:#3b82c4;--crimson:#c03040;
  --r:8px;--r2:12px;--r3:16px;
  --nav-h:0px;--topbar-h:60px;
  --safe-top:env(safe-area-inset-top,0px);
  --safe-bot:env(safe-area-inset-bottom,0px);
}
html{background:var(--void);-webkit-text-size-adjust:100%}
body{background:var(--void);color:var(--bright);font-family:'Inter',sans-serif;font-size:15px;line-height:1.5;min-height:100vh;overflow-x:hidden;-webkit-font-smoothing:antialiased}
body.is-ios-standalone{height:100dvh;min-height:100dvh;overflow:hidden;-webkit-overflow-scrolling:auto}

/* ── TOPBAR ── */
.topbar{
  position:fixed;top:0;left:0;right:0;
  height:calc(var(--topbar-h) + var(--safe-top));
  padding-top:var(--safe-top);
  background:rgba(8,10,13,0.95);
  backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);
  border-bottom:1px solid var(--rim);
  display:flex;align-items:center;justify-content:space-between;
  padding-left:16px;padding-right:16px;
  z-index:50;
}
.topbar-left{display:flex;align-items:center;gap:12px}
.hamburger{width:40px;height:40px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border-radius:var(--r);background:var(--plate);border:1px solid var(--wire);cursor:pointer;flex-shrink:0}
.hamburger span{display:block;width:16px;height:1.5px;background:var(--soft);border-radius:2px;transition:all .25s}
.page-label{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:600;letter-spacing:3px;color:var(--gold);text-transform:uppercase;line-height:1}
.page-label.is-titlecase{text-transform:none}
.page-title{font-family:'Inter',sans-serif;font-size:18px;font-weight:600;color:var(--white);line-height:1.1}
.topbar-right{display:flex;align-items:center;gap:8px}
.tb-btn{width:38px;height:38px;border-radius:var(--r);background:var(--plate);border:1px solid var(--wire);color:var(--soft);display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:15px;transition:all .2s;flex-shrink:0}
.tb-btn:hover{border-color:var(--gold);color:var(--gold2)}
.tb-btn{position:relative}
.tb-dot{position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:var(--crimson);color:#fff;font-size:10px;line-height:17px;text-align:center;border:1px solid rgba(0,0,0,.4)}
.tb-btn.primary{background:linear-gradient(135deg,var(--gold),var(--gold2));color:var(--void);border-color:transparent;font-weight:700}
/* Panel de notificaciones global */
.notif-panel{
  position:fixed;
  top:calc(var(--topbar-h) + var(--safe-top) + 8px);
  right:12px;
  width:min(380px,calc(100vw - 24px));
  max-height:65vh;
  background:rgba(11,15,20,.96);
  border:1px solid var(--wire);
  border-radius:12px;
  z-index:120;
  box-shadow:0 20px 40px rgba(0,0,0,.45);
  overflow:hidden;
}
.notif-panel-head{display:flex;justify-content:space-between;align-items:center;padding:10px 12px;border-bottom:1px solid var(--wire)}
.notif-panel-list{padding:8px;display:grid;gap:7px;max-height:52vh;overflow:auto}
.notif-item{border:1px solid var(--wire);border-radius:9px;padding:8px;background:rgba(255,255,255,.02)}
.notif-item.unread{border-color:rgba(255,213,0,.35);background:rgba(255,213,0,.06)}
.notif-item-title{font-size:12px;font-weight:700;color:var(--bright)}
.notif-item-msg{font-size:12px;color:var(--soft);margin-top:2px}
.notif-item-date{font-size:11px;color:var(--muted);margin-top:3px}

/* ── MAIN SCROLL ── */
.main-scroll{
  position:fixed;top:calc(var(--topbar-h) + var(--safe-top));
  left:0;right:0;
  bottom:calc(var(--nav-h) + var(--safe-bot));
  overflow-y:auto;overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  background:var(--void);
}
body.is-ios-standalone .main-scroll{
  position:fixed;
  top:calc(var(--topbar-h) + var(--safe-top));
  left:0;right:0;
  bottom:calc(var(--nav-h) + var(--safe-bot));
  height:auto;
  margin-top:0;
  padding-bottom:18px;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior:contain;
}
.page{display:none;padding:16px 14px 24px;animation:pgIn .25s ease both}
.page.active{display:block}
@keyframes pgIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

/* ── BOTTOM NAV ── */
.bottom-nav{
  position:fixed;bottom:0;left:0;right:0;
  height:calc(var(--nav-h) + var(--safe-bot));
  padding-bottom:var(--safe-bot);
  background:rgba(5,6,8,0.97);
  backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
  border-top:1px solid var(--rim);
  display:none !important;align-items:stretch;
  z-index:50;
}
body.is-ios-standalone .topbar,
body.is-ios-standalone .bottom-nav{
  transform:translate3d(0,0,0);
  -webkit-transform:translate3d(0,0,0);
  will-change:transform;
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}
body.is-ios-standalone .bottom-nav{
  position:fixed!important;
  left:0;right:0;bottom:0!important;
  width:100%;
  min-height:calc(var(--nav-h) + var(--safe-bot));
  overflow:hidden;
}
.nav-tab{
  flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:3px;cursor:pointer;position:relative;
  color:var(--muted);transition:color .2s;
  min-width:0;padding:8px 4px;
}
.nav-tab svg{width:20px;height:20px;stroke-width:1.75;flex-shrink:0;transition:stroke .2s}
.nav-tab span{font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:600;letter-spacing:0.3px;text-transform:uppercase;white-space:nowrap;overflow:hidden;max-width:52px;text-overflow:ellipsis;text-align:center}
.nav-tab.active{color:var(--gold2)}
.nav-tab.active::after{content:'';position:absolute;top:0;left:20%;right:20%;height:2px;background:var(--gold);border-radius:0 0 2px 2px}
.nav-badge{position:absolute;top:6px;right:calc(50% - 18px);background:var(--crimson);color:#fff;font-size:14px;font-weight:700;padding:1px 4px;border-radius:10px;font-family:'Barlow Condensed',sans-serif;min-width:14px;text-align:center;line-height:14px;height:14px}
.nav-badge.gold{background:var(--gold);color:#0a0c10}

/* ── SIDEBAR DRAWER ── */
.sidebar-veil{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:80;display:none;opacity:0;transition:opacity .3s}
.sidebar-veil.open{display:block;opacity:1}
.sidebar{
  position:fixed;top:0;left:-280px;width:280px;height:100%;
  background:linear-gradient(180deg,var(--carbon) 0%,var(--deep) 100%);
  border-right:1px solid var(--wire);
  z-index:90;display:flex;flex-direction:column;
  transition:left .3s cubic-bezier(.22,1,.36,1);
  overflow:hidden;
}
.sidebar.open{left:0}
.sidebar::before{content:'';position:absolute;top:0;left:0;right:0;height:2px;background:linear-gradient(90deg,transparent,var(--gold),transparent)}
.sb-head{padding:calc(20px + var(--safe-top)) 22px 20px;border-bottom:1px solid var(--rim)}
.sb-head > img,
.sb-head > .sb-logo-sub{display:none}
.sb-logo-eye{font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:600;letter-spacing:4px;color:var(--gold);text-transform:uppercase;margin-bottom:5px}
.sb-logo-name{font-family:'Inter',sans-serif;font-size:19px;font-weight:700;color:var(--white);line-height:1}
.sb-logo-name em{font-style:italic;color:var(--gold2)}
.sb-logo-sub{font-family:'Barlow Condensed',sans-serif;font-size:15px;letter-spacing:3px;color:var(--soft);text-transform:uppercase;margin-top:4px}
.sb-role-switch{margin-top:12px}
.sb-role-switch-label{font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:2px;color:var(--gold2);text-transform:uppercase;margin-bottom:8px}
.sb-role-select{width:100%;appearance:none;background:#0b0e14;border:1px solid #30404e;border-radius:8px;color:#e6ecf4;padding:9px 10px;font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:600;outline:none}
.sb-role-select:focus{border-color:rgba(255,213,0,.42);box-shadow:0 0 0 3px rgba(255,213,0,.08)}
.sb-role-switch-hint{margin-top:8px;font-size:12px;line-height:1.35;color:var(--soft)}
.sb-body{flex:1;overflow-y:auto;padding:8px 10px;scrollbar-width:none}
.sb-body::-webkit-scrollbar{display:none}
.sb-cat{font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:600;letter-spacing:3px;color:var(--wire);text-transform:uppercase;padding:0 10px;margin:14px 0 5px}
.sb-cat:first-child{margin-top:4px}
.sb-item{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:var(--r);cursor:pointer;color:#c4cfd8;font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:600;letter-spacing:.3px;transition:all .15s;border:1px solid transparent;margin-bottom:1px;position:relative;user-select:none}
.sb-item:active{background:var(--plate)}
.sb-item.active{color:var(--gold2);background:var(--gf);border-color:rgba(255,213,0,.15)}
.sb-item.active::before{content:'';position:absolute;left:0;top:20%;bottom:20%;width:2px;background:var(--gold);border-radius:0 2px 2px 0}
.sb-item .sb-icon{font-size:15px;width:18px;flex-shrink:0;text-align:center;line-height:1}
.sb-item svg{width:15px;height:15px;stroke-width:1.75;flex-shrink:0}
.sb-item.is-soon{opacity:.62;cursor:not-allowed}
.sb-item.is-soon:hover{background:transparent;border-color:transparent}
.sb-soon{margin-left:auto;padding:2px 6px;border-radius:999px;border:1px solid rgba(255,213,0,.28);background:rgba(255,213,0,.08);color:var(--gold2);font-family:'Barlow Condensed',sans-serif;font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;white-space:nowrap}
.sb-item.is-soon svg{opacity:.55}
.sb-badge{margin-left:auto;background:var(--crimson);color:#fff;font-size:14px;font-weight:700;padding:1px 5px;border-radius:10px;font-family:'Barlow Condensed',sans-serif}
.sb-badge.gold{background:var(--gold);color:var(--void)}
.sb-badge.jade{background:var(--jade);color:var(--void)}
.sb-foot{padding:14px 16px;border-top:1px solid var(--rim);padding-bottom:calc(14px + var(--safe-bot))}
.sb-user{display:flex;align-items:center;gap:10px}
.sb-avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,var(--gold),var(--ember));display:flex;align-items:center;justify-content:center;font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:700;color:var(--void);flex-shrink:0}
.sb-uname{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:600;color:#e6ecf4}
.sb-urole{font-size:12px;color:#9aaab8;margin-top:1px}
.live-dot{width:7px;height:7px;border-radius:50%;background:var(--jade);animation:lp 2.5s ease-in-out infinite;flex-shrink:0;margin-left:auto}
@keyframes lp{0%,100%{box-shadow:0 0 0 0 rgba(46,171,111,.5)}50%{box-shadow:0 0 0 5px rgba(46,171,111,0)}}
.sb-logout{margin-top:10px;width:100%;padding:9px;background:transparent;border:1px solid var(--wire);border-radius:var(--r);color:var(--soft);font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:600;letter-spacing:1px;cursor:pointer;text-transform:uppercase;transition:all .2s}
.sb-logout:hover{border-color:var(--crimson);color:#e96070}

/* ── FAB ── */
.fab{
  position:fixed;bottom:calc(var(--nav-h) + var(--safe-bot) + 14px);right:16px;
  width:52px;height:52px;border-radius:50%;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:var(--void);font-size:24px;font-weight:300;
  border:none;cursor:pointer;
  display:none;align-items:center;justify-content:center;
  box-shadow:0 6px 24px rgba(255,213,0,.45);
  z-index:40;transition:transform .15s;line-height:1;
}
.fab:active{transform:scale(.9)}
.fab.show{display:flex}

/* ── KPI STRIP ── */
.kpi-strip{display:grid;grid-template-columns:1fr 1fr;gap:1px;background:var(--rim);border:1px solid var(--wire);border-radius:var(--r2);overflow:hidden;margin-bottom:16px}
.kpi-cell{background:var(--plate);padding:14px 13px;position:relative;overflow:hidden}
.kpi-cell:last-child:nth-child(odd){grid-column:1/-1}
.kpi-accent{height:2px;width:22px;border-radius:2px;margin-bottom:8px}
.kpi-label{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:600;letter-spacing:2px;color:var(--soft);text-transform:uppercase;margin-bottom:4px}
.kpi-num{font-family:'Inter',sans-serif;font-size:28px;font-weight:700;line-height:1;margin-bottom:2px}
.kpi-sub{font-size:14px;color:var(--soft);font-weight:300}
.kc-jade .kpi-num{color:var(--jade)}.kc-jade .kpi-accent{background:var(--jade)}
.kc-gold .kpi-num{color:var(--gold2)}.kc-gold .kpi-accent{background:var(--gold)}
.kc-crimson .kpi-num{color:var(--crimson)}.kc-crimson .kpi-accent{background:var(--crimson)}
.kc-ice .kpi-num{color:var(--ice)}.kc-ice .kpi-accent{background:var(--ice)}
.kc-dim .kpi-num{color:var(--soft)}.kc-dim .kpi-accent{background:var(--wire)}
.kc-ember .kpi-num{color:var(--ember)}.kc-ember .kpi-accent{background:var(--ember)}

/* ── SECTION ROW ── */
.sec-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:10px;flex-wrap:wrap}
.rh-employee-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rh-sync-note{margin-top:4px;font-size:11px;line-height:1.4;color:#8ea0b3}
.rh-demo-shell{
  display:grid;
  gap:16px;
}
.rh-demo-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
}
.rh-demo-title-wrap{
  min-width:0;
}
.rh-demo-toolbar{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}
.rh-demo-filter{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 10px 0 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.07);
  background:linear-gradient(180deg,rgba(16,22,34,.98),rgba(11,16,25,.98));
  box-shadow:0 10px 22px rgba(0,0,0,.10), inset 0 1px 0 rgba(255,255,255,.025);
}
.rh-demo-filter-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#8fa2b6;
  white-space:nowrap;
}
.rh-demo-filter-select{
  min-height:30px;
  min-width:138px;
  padding:0 26px 0 0;
  border:0;
  background:transparent;
  color:#eef3f9;
  font-size:12px;
  font-weight:600;
  outline:none;
  cursor:pointer;
}
.rh-demo-filter-select option{
  color:#eef3f9;
  background:#101723;
}
.rh-demo-source-pill{
  display:flex;
  align-items:center;
  gap:8px;
  min-height:38px;
  padding:0 11px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.025);
}
.rh-demo-source-pill-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--gold2);
  white-space:nowrap;
}
.rh-demo-source-pill-text{
  font-size:11px;
  line-height:1;
  color:#8497ab;
  white-space:nowrap;
}
.rh-demo-subtitle{
  margin-top:5px;
  max-width:720px;
  font-size:12px;
  line-height:1.55;
  color:#8da0b4;
}
.rh-demo-top{
  display:grid;
  grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);
  gap:12px;
  align-items:stretch;
}
.rh-demo-kpis{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.rh-demo-stat{
  position:relative;
  overflow:hidden;
  display:grid;
  gap:5px;
  padding:13px 14px;
  border-radius:15px;
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(14,20,31,.98),rgba(10,15,24,.98));
  box-shadow:0 12px 24px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.03);
}
.rh-demo-stat::before{
  content:'';
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:rgba(255,213,0,.9);
}
.rh-demo-stat.is-gold::before{background:rgba(255,213,0,.95)}
.rh-demo-stat.is-ice::before{background:rgba(74,163,255,.95)}
.rh-demo-stat.is-rose::before{background:rgba(246,116,141,.92)}
.rh-demo-stat.is-jade::before{background:rgba(79,212,154,.92)}
.rh-demo-stat.is-neutral::before{background:rgba(154,170,184,.55)}
.rh-demo-stat-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.1px;
  text-transform:uppercase;
  color:#91a3b7;
}
.rh-demo-stat-value{
  font-family:'Inter',sans-serif;
  font-size:23px;
  line-height:1.05;
  font-weight:700;
  color:#f4f7fb;
}
.rh-demo-stat-note{
  font-size:11px;
  line-height:1.45;
  color:#7f93a8;
}
.rh-demo-visual-card,
.rh-demo-table-wrap{
  border:1px solid rgba(255,255,255,.06);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(13,19,30,.98),rgba(9,14,23,.98));
  box-shadow:0 14px 30px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.03);
}
.rh-demo-visual-card{
  padding:15px 16px;
  display:grid;
  gap:14px;
}
.rh-demo-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.rh-demo-card-title{
  font-size:14px;
  font-weight:700;
  color:#f4f7fb;
}
.rh-demo-card-subtitle{
  margin-top:4px;
  font-size:12px;
  line-height:1.45;
  color:#879bb0;
}
.rh-demo-badge{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(255,213,0,.24);
  background:rgba(255,213,0,.08);
  color:var(--gold2);
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  white-space:nowrap;
}
.rh-demo-bars{
  display:grid;
  gap:11px;
}
.rh-demo-bar-row{
  display:grid;
  grid-template-columns:minmax(92px,.55fr) minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}
.rh-demo-bar-meta{
  min-width:0;
}
.rh-demo-bar-label{
  font-size:12px;
  font-weight:700;
  color:#eef3f9;
}
.rh-demo-bar-caption{
  margin-top:2px;
  font-size:11px;
  line-height:1.4;
  color:#8094aa;
}
.rh-demo-bar-track{
  position:relative;
  height:10px;
  border-radius:999px;
  overflow:hidden;
  background:rgba(255,255,255,.05);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.03);
}
.rh-demo-bar-fill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,rgba(255,213,0,.88),rgba(255,224,64,.98));
}
.rh-demo-bar-fill.tone-1{background:linear-gradient(90deg,rgba(74,163,255,.85),rgba(127,197,255,.95))}
.rh-demo-bar-fill.tone-2{background:linear-gradient(90deg,rgba(79,212,154,.85),rgba(129,236,196,.95))}
.rh-demo-bar-fill.tone-3{background:linear-gradient(90deg,rgba(246,116,141,.85),rgba(255,164,183,.94))}
.rh-demo-bar-side{
  display:grid;
  justify-items:end;
  gap:2px;
  min-width:70px;
}
.rh-demo-bar-side strong{
  font-family:'Barlow Condensed',sans-serif;
  font-size:18px;
  font-weight:700;
  line-height:1;
  color:#f5f7fc;
}
.rh-demo-bar-side span{
  font-size:11px;
  color:#8598ad;
}
.rh-demo-insights{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:9px;
}
.rh-demo-insight{
  padding:10px 11px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.05);
  background:rgba(255,255,255,.025);
  display:grid;
  gap:4px;
}
.rh-demo-insight-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#8ca0b5;
}
.rh-demo-insight-value{
  font-size:12px;
  line-height:1.45;
  color:#edf2f8;
}
.rh-demo-table-wrap{
  padding:14px;
}
.rh-demo-table-wrap .gfa-no-print{
  margin:0;
}
.rh-demo-table-wrap .gfa-no-print > div:first-child{
  margin-bottom:10px!important;
}
.rh-demo-table-wrap table{
  min-width:760px!important;
}
.rh-demo-footnote{
  margin-top:10px;
  font-size:11px;
  line-height:1.5;
  color:#8194a8;
}
.rh-exp-nav{
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  padding:8px;
  border:1px solid #304054;
  border-radius:10px;
  background:#111b28;
}
.rh-exp-nav button{
  flex:1 1 auto;
  min-height:36px;
  padding:7px 10px;
  border:1px solid transparent;
  border-radius:6px;
  background:transparent;
  color:#bac9da;
  font-family:inherit;
  font-size:12px;
  font-weight:600;
  line-height:1.4;
  cursor:pointer;
}
.rh-exp-nav button:hover{
  background:#243348;
  color:#fff;
}
.rh-exp-nav button[aria-pressed="true"]{
  background:#28394c;
  color:#ffe36b;
  border-color:#687483;
}
.rh-exp-nav button:focus-visible,
.rh-emp-detail-shell button:focus-visible,
#rhAltaVeil button:focus-visible,
#rhAltaVeil input:focus-visible,
#rhAltaVeil select:focus-visible{
  outline:2px solid #ffe36b;
  outline-offset:3px;
}
.rh-exp-description{
  margin:0;
  color:#b2c1d2;
  font-size:12px;
  line-height:1.5;
}
.rh-emp-detail-shell [data-rh-seccion][hidden],
#rhAltaVeil [data-rh-seccion][hidden]{
  display:none !important;
}
.rh-emp-detail-shell{
  display:grid;
  gap:12px;
}
.rh-emp-detail-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.rh-emp-detail-heading{
  display:grid;
  gap:3px;
}
.rh-emp-detail-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:2.1px;
  text-transform:uppercase;
  color:var(--gold2);
}
.rh-emp-detail-title{
  font-size:15px;
  font-weight:700;
  color:#f6f8fc;
}
.rh-emp-detail-tools{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.rh-emp-detail-toolbtn{
  width:38px;
  height:38px;
  border-radius:10px;
  border:1px solid rgba(49,64,84,.88);
  background:linear-gradient(180deg,rgba(20,30,45,.96),rgba(16,24,36,.96));
  color:#a9bad0;
  font-size:18px;
  font-weight:700;
  line-height:1;
  cursor:pointer;
}
.rh-emp-detail-toolbtn.is-gold{
  border-color:rgba(255,213,0,.34);
  background:linear-gradient(180deg,rgba(255,213,0,.98),rgba(236,191,0,.95));
  color:#172131;
}
.rh-emp-detail-hero{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:16px 18px;
  border:1px solid rgba(54,67,86,.88);
  border-radius:0 0 18px 18px;
  background:linear-gradient(180deg,rgba(16,24,38,.96),rgba(13,20,32,.95));
}
.rh-emp-detail-hero-main{
  display:flex;
  align-items:flex-start;
  gap:16px;
  min-width:0;
}
.rh-emp-detail-avatar{
  width:46px;
  height:46px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(36,50,74,.9);
  color:var(--gold2);
  font-family:'Barlow Condensed',sans-serif;
  font-size:21px;
  font-weight:700;
  letter-spacing:.5px;
  flex:0 0 auto;
}
.rh-emp-detail-hero-copy{
  min-width:0;
  display:grid;
  gap:5px;
}
.rh-emp-detail-name-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.rh-emp-detail-name{
  font-size:16px;
  font-weight:700;
  color:#f5f7fc;
  line-height:1.2;
}
.rh-emp-detail-status{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(63,78,97,.9);
  background:rgba(25,35,50,.94);
  color:#9fb0c1;
  font-size:11px;
  font-weight:700;
}
.rh-emp-detail-status.is-active{
  border-color:rgba(51,161,109,.36);
  background:rgba(22,74,54,.42);
  color:#72d5a1;
}
.rh-emp-detail-meta{
  font-size:12px;
  color:#8f9fb1;
  line-height:1.45;
}
.rh-emp-detail-close{
  width:36px;
  height:36px;
  border-radius:999px;
  border:1px solid rgba(58,72,92,.88);
  background:rgba(22,30,42,.96);
  color:#8ea0b4;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  flex:0 0 auto;
}
.rh-emp-detail-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
  gap:12px;
}
.rh-emp-card{
  display:grid;
  align-content:start;
  gap:10px;
  min-width:0;
  min-height:0;
  padding:14px 16px;
  border-radius:10px;
  border:1px solid rgba(48,63,82,.88);
  background:linear-gradient(180deg,rgba(10,17,28,.98),rgba(8,14,24,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.rh-emp-card-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.rh-emp-card-title{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#b9cadc;
}
.rh-emp-icon-btn,
.rh-emp-pdf-btn,
.rh-emp-doc-upload,
.rh-emp-plus-btn{
  border:1px solid rgba(58,74,95,.88);
  background:rgba(23,31,43,.94);
  color:#d6e0ea;
  cursor:pointer;
}
.rh-emp-icon-btn{
  width:30px;
  height:30px;
  border-radius:9px;
  font-size:13px;
}
.rh-emp-pdf-btn,
.rh-emp-doc-upload{
  min-height:23px;
  padding:0 8px;
  border-radius:9px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
}
.rh-emp-pdf-btn{
  border-color:rgba(255,213,0,.32);
  background:rgba(255,213,0,.1);
  color:var(--gold2);
}
.rh-emp-stack{
  display:grid;
  gap:10px;
}
.rh-emp-kv{
  display:grid;
  gap:4px;
}
.rh-emp-kv span,
.rh-emp-field-label,
.rh-emp-metric-label,
.rh-emp-chip-label{
  font-size:11px;
  color:#71849a;
}
.rh-emp-kv strong,
.rh-emp-kv-line,
.rh-emp-loan-title,
.rh-emp-contract-line{
  color:#edf2f8;
  font-size:13px;
  line-height:1.4;
}
.rh-emp-edit-grid{
  display:grid;
  gap:10px;
}
.rh-emp-inline-actions{
  display:flex;
  justify-content:flex-start;
}
.rh-emp-highlight{
  color:var(--gold2);
  font-weight:700;
}
.rh-emp-chip-row,
.rh-emp-tag-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.rh-emp-chip{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:0 10px;
  border-radius:9px;
  border:1px solid rgba(55,69,88,.88);
  background:rgba(18,26,36,.92);
  color:#b8c7d7;
  font-size:11px;
  font-weight:700;
}
.rh-emp-chip.is-gold{
  border-color:rgba(255,213,0,.34);
  background:rgba(255,213,0,.12);
  color:var(--gold2);
}
.rh-emp-chip.is-muted{
  color:#c3ccd7;
}
.rh-emp-chip-action{
  cursor:pointer;
}
.rh-emp-chip-action.is-danger{
  color:#ff867b;
  border-color:rgba(255,120,107,.26);
  background:rgba(72,24,27,.45);
}
.rh-emp-foot-note,
.rh-emp-sub-note{
  font-size:12px;
  line-height:1.45;
  color:#8ea0b3;
}
.rh-emp-input-look,
.rh-emp-select-look,
.rh-emp-inline-input{
  display:flex;
  align-items:center;
  min-height:38px;
  padding:0 12px;
  border-radius:9px;
  border:1px solid rgba(48,63,82,.92);
  background:rgba(6,11,19,.96);
  color:#eef3f9;
  font-size:12px;
  font-weight:600;
}
.rh-emp-select-look{
  justify-content:space-between;
}
.rh-emp-select-look::after{
  content:"⌄";
  color:#6f8498;
  font-size:12px;
  margin-left:8px;
}
.rh-emp-inline-input{
  width:62px;
  justify-content:center;
  padding:0;
}
.rh-emp-field-block{
  display:grid;
  gap:6px;
}
.rh-emp-doc-state{
  color:#90a1b5;
  font-size:13px;
  font-weight:600;
}
.rh-emp-doc-state.is-complete{
  color:#58c58b;
}
.rh-emp-select-look--locked::after{
  content:"";
  display:none;
}
.rh-emp-doc-list{
  display:grid;
  gap:8px;
}
.rh-emp-doc-row{
  display:grid;
  grid-template-columns:auto 1fr auto;
  align-items:center;
  gap:10px;
}
.rh-emp-doc-check{
  width:20px;
  height:20px;
  border-radius:6px;
  border:none;
  background:#223148;
  color:#8ea0b3;
  cursor:pointer;
  font-size:12px;
  font-weight:700;
}
.rh-emp-doc-check.is-complete{
  background:#39c57e;
  color:#0c1a14;
}
.rh-emp-doc-name{
  min-width:0;
  font-size:12px;
  color:#d9e2ec;
  line-height:1.4;
}
.rh-emp-tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  background:#25344a;
  color:#d9e4ef;
  font-size:11px;
}
.rh-emp-tag-x{
  color:#aebed0;
  font-size:11px;
  line-height:1;
}
.rh-emp-empty-note{
  font-size:12px;
  color:#71849a;
}
.rh-emp-card--wide{
  grid-column:span 2;
}
.rh-emp-tool-block,
.rh-emp-tool-list{
  display:grid;
  gap:8px;
}
.rh-emp-tool-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:flex-start;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(46,61,80,.9);
  background:rgba(8,14,24,.92);
}
.rh-emp-tool-row.is-history{
  background:rgba(11,18,30,.76);
}
.rh-emp-payroll-row{
  display:grid;
  gap:8px;
  padding:10px;
  border:1px solid rgba(46,61,80,.9);
  border-radius:10px;
  background:linear-gradient(145deg,rgba(18,27,40,.94),rgba(8,14,24,.94));
}
.rh-emp-payroll-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.rh-emp-payroll-amount{
  color:#f3f6fa;
  font-size:13px;
  font-variant-numeric:tabular-nums;
}
.rh-emp-payroll-title{
  color:#eef3f9;
  font-size:12px;
  font-weight:650;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.rh-emp-payroll-meta{
  display:flex;
  flex-wrap:wrap;
  gap:4px 10px;
  color:#8ea0b3;
  font-size:10px;
  line-height:1.4;
}
.rh-emp-payroll-actions{
  display:flex;
  justify-content:flex-end;
  padding-top:6px;
  border-top:1px solid rgba(46,61,80,.58);
}
.rh-emp-payroll-action{
  min-height:30px;
  padding:0 10px;
  font-size:11px;
}
.rh-emp-tool-main{
  min-width:0;
  display:grid;
  gap:4px;
}
.rh-emp-tool-title{
  color:#eef3f9;
  font-size:13px;
  font-weight:700;
  line-height:1.35;
}
.rh-emp-tool-meta{
  color:#8ea0b3;
  font-size:12px;
  line-height:1.45;
}
.rh-emp-tool-side{
  display:flex;
  justify-content:flex-end;
}
.rh-emp-tool-status{
  display:inline-flex;
  align-items:center;
  min-height:24px;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(58,73,93,.88);
  background:rgba(18,26,36,.92);
  color:#c7d2de;
  font-size:11px;
  font-weight:700;
  white-space:nowrap;
}
.rh-emp-tool-status.is-active{
  border-color:rgba(255,213,0,.28);
  background:rgba(255,213,0,.1);
  color:var(--gold2);
}
.rh-emp-tool-status.is-overdue{
  border-color:rgba(255,120,107,.26);
  background:rgba(72,24,27,.45);
  color:#ff867b;
}
.rh-emp-tool-status.is-closed{
  border-color:rgba(51,161,109,.28);
  background:rgba(22,74,54,.32);
  color:#72d5a1;
}
.rh-emp-responsiva-link{
  display:inline-flex;
  align-items:center;
  justify-self:start;
  min-height:26px;
  max-width:100%;
  padding:0 9px;
  border:1px solid rgba(255,213,0,.28);
  border-radius:7px;
  background:rgba(255,213,0,.07);
  color:var(--gold2);
  font:600 10px 'Inter',sans-serif;
  cursor:pointer;
}
.rh-emp-responsiva-link:hover{
  border-color:rgba(255,213,0,.55);
  background:rgba(255,213,0,.13);
}
.rh-emp-responsiva-link:focus-visible,
.rh-responsiva-close:focus-visible{
  outline:2px solid var(--gold2);
  outline-offset:2px;
}
.rh-emp-responsiva-missing{
  color:#9aaabd;
  font-size:10px;
}
.rh-responsiva-veil{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(4,8,14,.82);
  backdrop-filter:blur(5px);
}
.rh-responsiva-dialog{
  display:flex;
  flex-direction:column;
  width:min(1120px,100%);
  height:min(94vh,940px);
  min-height:0;
  overflow:hidden;
  border:1px solid rgba(65,82,104,.9);
  border-radius:14px;
  background:#111a27;
  box-shadow:0 24px 80px rgba(0,0,0,.5);
}
.rh-responsiva-head{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:11px 14px;
  border-bottom:1px solid rgba(58,73,93,.72);
}
.rh-responsiva-heading{
  min-width:0;
}
.rh-responsiva-kicker{
  color:#899bb0;
  font-size:9px;
  font-weight:700;
  letter-spacing:1.1px;
  text-transform:uppercase;
}
.rh-responsiva-heading h2{
  margin:3px 0 0;
  color:#f1f5fa;
  font-size:14px;
  line-height:1.3;
}
.rh-responsiva-date{
  margin-top:3px;
  color:#90a0b2;
  font-size:10px;
}
.rh-responsiva-actions{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:8px;
}
.rh-responsiva-actions .btn{
  min-height:30px;
  padding:0 10px;
  font-size:10px;
}
.rh-responsiva-close{
  display:grid;
  width:30px;
  height:30px;
  place-items:center;
  border:1px solid rgba(58,73,93,.88);
  border-radius:8px;
  background:#0b121c;
  color:#d7e0eb;
  font-size:18px;
  cursor:pointer;
}
.rh-responsiva-content{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  background:#d8dde5;
}
.rh-responsiva-frame{
  display:block;
  width:100%;
  min-height:100%;
  border:0;
  background:#fff;
}
.rh-tool-payroll-request.is-focus{
  outline:2px solid rgba(255,213,0,.52);
  outline-offset:2px;
}
.rh-emp-add-course{
  display:grid;
  grid-template-columns:minmax(0,1fr) 36px;
  gap:8px;
  align-items:center;
}
.rh-emp-input-look.is-placeholder{
  color:#74889e;
  font-weight:500;
}
.rh-emp-plus-btn{
  width:36px;
  height:36px;
  border-radius:9px;
  font-size:18px;
  font-weight:700;
}
.rh-emp-loan-status{
  justify-self:end;
  font-size:12px;
  font-weight:700;
  color:#ff8c80;
}
.rh-emp-loan-status.is-done{
  color:#57cf96;
}
@media (max-width:1080px){
  .rh-emp-detail-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (max-width:760px){
  .rh-responsiva-veil{
    padding:7px;
  }
  .rh-responsiva-dialog{
    width:100%;
    height:calc(100vh - 14px);
    border-radius:11px;
  }
  .rh-responsiva-head{
    align-items:flex-start;
    gap:8px;
    padding:9px;
  }
  .rh-responsiva-actions{
    gap:5px;
  }
  .rh-responsiva-actions .btn{
    max-width:138px;
    min-height:29px;
    white-space:normal;
  }
  .rh-responsiva-close{
    width:28px;
    height:28px;
  }
  .rh-emp-detail-topbar{
    align-items:center;
  }
  .rh-emp-detail-hero{
    flex-direction:column;
    border-radius:16px;
  }
  .rh-emp-detail-close{
    align-self:flex-end;
  }
  .rh-emp-detail-grid{
    grid-template-columns:1fr;
  }
  .rh-emp-card{
    min-height:unset;
  }
  .rh-emp-card--wide{
    grid-column:auto;
  }
  .rh-emp-doc-row{
    grid-template-columns:auto 1fr;
  }
  .rh-emp-doc-upload{
    grid-column:2;
    justify-self:start;
  }
  .rh-emp-tool-row{
    grid-template-columns:1fr;
  }
  .rh-emp-tool-side{
    justify-content:flex-start;
  }
  .rh-emp-payroll-actions button{
    width:100%;
    justify-content:center;
  }
}
.sec-title{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;color:var(--white);display:flex;align-items:baseline;gap:8px}
.sec-count{font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:500;letter-spacing:1px;color:var(--soft)}

/* ── FILTER SCROLL ── */
.filter-scroll{display:flex;gap:6px;margin-bottom:12px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.filter-scroll::-webkit-scrollbar{display:none}
.search-wrap{margin-bottom:10px}
.search-field{display:flex;align-items:center;gap:9px;background:var(--plate);border:1px solid var(--wire);border-radius:var(--r);padding:10px 13px;transition:border-color .2s}
.search-field:focus-within{border-color:rgba(255,213,0,.4)}
.search-field input{background:none;border:none;outline:none;color:var(--bright);font-family:'Inter',sans-serif;font-size:16px;width:100%;min-height:24px}
.search-field input::placeholder{color:var(--soft);font-size:14px}
.chip{display:inline-flex;align-items:center;gap:5px;padding:7px 12px;border-radius:100px;border:1px solid var(--wire);background:transparent;color:var(--soft);font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:600;letter-spacing:1px;text-transform:uppercase;cursor:pointer;transition:all .15s;white-space:nowrap;flex-shrink:0}
.chip.active{background:var(--gf);border-color:rgba(255,213,0,.35);color:var(--gold2)}
.chip-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0}

.rh-modal{
  width:min(100%,468px);
  max-width:468px;
  display:flex;
  flex-direction:column;
  background:#151c26;
  border:1px solid rgba(58,70,88,.92);
  border-radius:20px;
  box-shadow:0 22px 56px rgba(0,0,0,.34);
  overflow:hidden;
}
.rh-modal--employee{
  width:min(100%,920px);
  max-width:920px;
  max-height:min(90vh,calc(100vh - 48px));
  border-radius:18px;
  border-color:rgba(49,63,81,.9);
  box-shadow:0 18px 44px rgba(0,0,0,.3);
}
.rh-modal--employee .rh-modal-head{
  padding:18px 20px 14px;
  gap:14px;
  background:#182231;
}
.rh-modal--employee .rh-modal-kicker{
  font-size:10px;
  letter-spacing:1.3px;
  margin-bottom:4px;
}
.rh-modal--employee .rh-modal-title{
  font-size:17px;
}
.rh-modal--employee .rh-modal-sub{
  margin-top:5px;
  max-width:470px;
  font-size:11px;
  line-height:1.42;
}
.rh-modal--employee .rh-modal-close{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:9px;
  font-size:13px;
}
.rh-modal--employee .rh-modal-body{
  padding:18px 20px;
  gap:14px;
}
.rh-modal--employee .rh-modal-foot{
  padding:14px 20px 18px;
}
.rh-modal--employee .rh-modal-foot .btn{
  min-height:38px;
  padding:0 16px;
  border-radius:10px;
  font-size:12px;
}
.rh-modal--employee .rh-modal-foot .btn-gold{
  box-shadow:0 2px 10px rgba(255,213,0,.18);
}
.rh-modal--employee .rh-panel-card{
  padding:16px;
  border-radius:16px;
  border-color:rgba(50,63,81,.8);
  background:#0f1722;
}
.rh-modal--employee .rh-panel-card--hero{
  background:linear-gradient(180deg,#121d2b 0%, #0f1722 100%);
}
.rh-modal--employee .rh-panel-card--section{
  gap:12px;
}
.rh-modal--employee .rh-panel-title{
  font-size:14px;
}
.rh-modal--employee .rh-panel-copy{
  font-size:11px;
  line-height:1.42;
  max-width:50ch;
}
.rh-modal--employee .rh-form-block{
  gap:8px;
}
.rh-modal--employee .rh-split-layout{
  grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);
  gap:12px;
  align-items:start;
}
.rh-modal--employee .rh-field-grid{
  gap:8px;
}
.rh-modal--employee .rh-field-label{
  font-size:10px;
  letter-spacing:1px;
}
.rh-modal--employee .rh-field-grid--employee-top{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:end;
}
.rh-modal--employee .rh-input{
  min-height:40px;
  padding:8px 11px;
  border-radius:10px;
  font-size:13px;
}
.rh-modal--employee .rh-input--lg{
  min-height:44px;
  font-size:14px;
}
.rh-modal--training{
  width:min(100%,560px);
  max-width:560px;
  border-radius:18px;
  border-color:rgba(49,63,81,.9);
  box-shadow:0 18px 44px rgba(0,0,0,.28);
}
.rh-modal--training .rh-modal-head{
  padding:18px 20px 14px;
  gap:14px;
  background:#182231;
}
.rh-modal--training .rh-modal-kicker{
  font-size:10px;
  letter-spacing:1.3px;
  margin-bottom:4px;
}
.rh-modal--training .rh-modal-title{
  font-size:17px;
}
.rh-modal--training .rh-modal-sub{
  margin-top:5px;
  max-width:48ch;
  font-size:11px;
  line-height:1.45;
}
.rh-modal--training .rh-modal-close{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:9px;
  font-size:13px;
}
.rh-modal-body--training{
  display:grid;
  gap:12px;
  padding:18px 20px 16px;
}
.rh-panel-card--training{
  gap:12px;
}
.rh-panel-card--training-upload{
  padding-top:14px;
}
.rh-cap-drop{
  min-height:110px;
  margin-top:2px;
  border-radius:14px;
  background:linear-gradient(180deg,rgba(15,21,31,.98),rgba(10,15,24,.98));
}
.rh-cap-drop .media-drop-ico{
  font-size:24px;
  margin-bottom:6px;
}
.rh-cap-drop .media-drop-txt{
  font-size:13px;
  letter-spacing:.4px;
}
.rh-cap-drop .media-drop-sub{
  margin-top:4px;
  font-size:11px;
}
.rh-modal-actions--training{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  padding:0 20px 18px;
}
.rh-modal-actions--training .btn{
  min-height:38px;
  padding:0 16px;
  border-radius:10px;
  font-size:12px;
}
.rh-input--locked{
  opacity:.68;
  cursor:not-allowed;
}
.rh-modal--employee .rh-choice-grid{
  gap:6px;
}
.rh-modal--employee .rh-choice-card:not(.rh-choice-card--benefit) > span{
  position:relative;
  justify-content:flex-start;
  min-height:38px;
  padding:0 31px 0 31px;
  border-radius:10px;
  font-size:12px;
}
.rh-modal--employee .rh-choice-card:not(.rh-choice-card--benefit) > span::before{
  content:'';
  position:absolute;
  left:12px;
  top:50%;
  width:7px;
  height:7px;
  border-radius:999px;
  transform:translateY(-50%);
  background:#6f8094;
  box-shadow:0 0 0 4px rgba(111,128,148,.12);
}
.rh-modal--employee .rh-choice-card:not(.rh-choice-card--benefit) > span::after{
  content:'';
  position:absolute;
  right:10px;
  top:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  border-radius:999px;
  transform:translateY(-50%);
  opacity:0;
  transition:opacity .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.rh-modal--employee .rh-choice-card:not(.rh-choice-card--benefit) input:checked + span{
  border-color:rgba(255,213,0,.38);
  background:linear-gradient(180deg,rgba(80,69,20,.26) 0%, rgba(22,31,43,.94) 100%);
  color:#fff3c8;
  box-shadow:inset 0 0 0 1px rgba(255,213,0,.12);
}
.rh-modal--employee .rh-choice-card:not(.rh-choice-card--benefit) input:checked + span::before{
  background:#f0cd62;
  box-shadow:0 0 0 5px rgba(255,213,0,.12);
}
.rh-modal--employee .rh-choice-card:not(.rh-choice-card--benefit) input:checked + span::after{
  content:'\2713';
  opacity:1;
  background:rgba(255,213,0,.16);
  color:#ffe27c;
  box-shadow:0 0 0 1px rgba(255,213,0,.2);
}
.rh-modal--employee .rh-choice-card--contract > span{
  min-height:38px;
  padding:0 31px 0 31px;
}
}
.rh-modal--expediente{
  width:min(100%,980px);
  max-width:980px;
  max-height:min(90vh,calc(100vh - 48px));
}
.rh-modal--position{
  width:min(100%,760px);
  max-width:760px;
  max-height:min(90vh,calc(100vh - 48px));
}
.rh-modal--position{
  width:min(100%,736px);
  max-width:736px;
  border-radius:18px;
  border-color:rgba(50,64,82,.9);
  box-shadow:0 18px 44px rgba(0,0,0,.3);
}
.rh-modal--position .rh-modal-head{
  padding:18px 20px 14px;
  gap:14px;
  background:#182231;
}
.rh-modal--position .rh-modal-kicker{
  font-size:10px;
  letter-spacing:1.3px;
  margin-bottom:4px;
}
.rh-modal--position .rh-modal-title{
  font-size:17px;
}
.rh-modal--position .rh-modal-sub{
  margin-top:5px;
  font-size:11px;
  line-height:1.4;
  max-width:420px;
}
.rh-modal--position .rh-modal-close{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:9px;
  font-size:13px;
}
.rh-modal--position .rh-modal-body{
  padding:18px 20px;
  gap:14px;
}
.rh-modal--position .rh-modal-foot{
  padding:14px 20px 18px;
}
.rh-modal--position .rh-panel-card{
  padding:16px;
  border-radius:16px;
  border-color:rgba(52,65,83,.78);
}
.rh-modal--position .rh-panel-card--section{
  gap:12px;
}
.rh-modal--position .rh-panel-card--position-top{
  padding:16px;
}
.rh-modal--position .rh-panel-kicker{
  font-size:10px;
  letter-spacing:1.05px;
}
.rh-modal--position .rh-panel-title{
  font-size:14px;
}
.rh-modal--position .rh-panel-title--sub{
  font-size:13px;
}
.rh-modal--position .rh-panel-copy{
  font-size:11px;
  line-height:1.4;
}
.rh-modal--position .rh-split-layout--position-editor{
  gap:14px;
}
.rh-modal--position .rh-field-grid{
  gap:8px;
}
.rh-modal--position .rh-field{
  gap:5px;
}
.rh-modal--position .rh-field-label{
  font-size:10px;
  letter-spacing:1px;
}
.rh-modal--position .rh-input{
  min-height:38px;
  padding:8px 11px;
  border-radius:10px;
  font-size:13px;
}
.rh-modal--position .rh-field-note,
.rh-modal--position .rh-inline-note{
  font-size:11px;
  line-height:1.4;
}
.rh-modal--position .rh-inline-note{
  padding:10px 12px;
  border-radius:11px;
}
.rh-modal--position .rh-field--salary-primary{
  gap:6px;
  padding:12px;
  border-radius:12px;
}
.rh-modal--position .rh-field--salary-side{
  padding:10px;
  border-radius:12px;
}
.rh-modal--position .rh-choice-grid{
  gap:6px;
}
.rh-modal--position .rh-choice-card > span{
  min-height:38px;
  padding:0 12px;
  border-radius:10px;
  font-size:13px;
}
.rh-modal--position .rh-choice-grid--risk .rh-choice-card > span{
  min-height:40px;
  font-size:12px;
}
.rh-modal--position .rh-choice-grid--compact .rh-choice-card > span{
  min-height:40px;
  font-size:12px;
}
.rh-modal--position .rh-choice-card:not(.rh-choice-card--benefit) input:checked + span{
  border-width:1px;
  box-shadow:inset 0 0 0 1px rgba(160,176,194,.12);
}
.rh-modal--position .rh-choice-card.rh-choice-card--paycycle > span{
  padding:0 31px 0 31px;
}
.rh-modal--position .rh-choice-card.rh-choice-card--paycycle > span::before{
  left:12px;
  width:7px;
  height:7px;
}
.rh-modal--position .rh-choice-card.rh-choice-card--paycycle > span::after{
  right:10px;
  width:16px;
  height:16px;
  font-size:10px;
}
.rh-modal--position .rh-choice-card.rh-choice-card--risk-option > span{
  padding:0 32px 0 32px;
}
.rh-modal--position .rh-choice-card.rh-choice-card--risk-option > span::before{
  left:12px;
  width:7px;
  height:7px;
}
.rh-modal--position .rh-choice-card.rh-choice-card--risk-option > span::after{
  right:10px;
  width:16px;
  height:16px;
  font-size:10px;
}
.rh-modal--position .rh-choice-card--benefit > span{
  min-height:76px;
  padding:14px 16px;
  border-radius:14px;
  font-size:12px;
}
.rh-modal--position .rh-benefit-option{
  gap:6px;
  padding-right:100px;
}
.rh-modal--position .rh-benefit-option::before{
  top:12px;
  right:12px;
  width:20px;
  height:20px;
}
.rh-modal--position .rh-benefit-option::after{
  top:11px;
  right:40px;
  min-height:22px;
  padding:0 8px;
  font-size:9px;
}
.rh-modal--position .rh-benefit-title{
  font-size:13px;
}
.rh-modal--position .rh-benefit-copy{
  font-size:11px;
  line-height:1.38;
}
.rh-modal--position .rh-help-trigger{
  width:16px;
  height:16px;
  font-size:10px;
}
.rh-modal--position .rh-help-tooltip{
  width:min(272px,calc(100vw - 56px));
  padding:9px 10px;
  border-radius:11px;
  font-size:11px;
}
.rh-modal--position .rh-modal-foot .btn{
  min-height:38px;
  border-radius:10px;
  padding:0 16px;
  font-size:12px;
}
.rh-modal--position .rh-modal-foot .btn-gold{
  box-shadow:0 2px 10px rgba(255,213,0,.18);
}
.rh-modal--position-detail{
  width:min(100%,760px);
  max-width:760px;
  max-height:min(90vh,calc(100vh - 48px));
}
.rh-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:22px 24px 18px;
  border-bottom:1px solid rgba(58,70,88,.72);
  background:#1a2230;
}
.rh-modal-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.45px;
  text-transform:uppercase;
  color:#93a2b2;
  margin-bottom:5px;
}
.rh-modal-title{
  font-family:'Inter',sans-serif;
  font-size:20px;
  font-weight:700;
  line-height:1.1;
  color:var(--bright);
}
.rh-modal-sub{
  margin-top:6px;
  font-size:12px;
  line-height:1.45;
  color:var(--soft);
  max-width:430px;
}
.rh-modal-head--employee .rh-modal-sub{
  max-width:520px;
}
.rh-modal-close{
  width:32px;
  height:32px;
  flex:0 0 32px;
  border-radius:10px;
  border:1px solid rgba(58,70,88,.92);
  background:#121820;
  color:#c7d1db;
  font-size:14px;
}
.rh-modal-close:hover{
  background:#161f2a;
  border-color:#748396;
}
.rh-modal-body{
  padding:22px 24px;
  display:flex;
  flex-direction:column;
  gap:16px;
  overflow:auto;
}
.rh-modal-body--employee{
  gap:18px;
}
.rh-modal-body--position{
  gap:20px;
}
.rh-modal-body--position-detail{
  gap:16px;
}
.rh-modal-body--expediente{
  padding-top:16px;
}
#rhExpedienteVeil .rh-modal--expediente{
  width:min(100%,980px);
  max-width:980px;
  height:min(90vh,calc(100vh - 40px));
  max-height:min(90vh,calc(100vh - 40px));
  min-height:0;
}
#rhExpedienteVeil .rh-modal-head{
  flex:0 0 auto;
}
#rhExpedienteVeil .rh-modal-body--expediente{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  padding:16px 20px 18px;
}
#rhExpedienteVeil #rhExpedienteBody{
  min-height:0;
}
.rh-modal-foot{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  padding:16px 24px 20px;
  border-top:1px solid rgba(58,70,88,.72);
  background:#121820;
}
.rh-form-block{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.rh-panel-card{
  border:1px solid rgba(58,70,88,.82);
  border-radius:18px;
  background:#10161e;
  padding:20px;
}
.rh-panel-card--hero{
  background:#121a24;
}
.rh-panel-card--section{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.rh-panel-card--position-top{
  padding:18px;
  background:linear-gradient(180deg,#172234 0%, #10161e 100%);
}
.rh-panel-card--position-comp{
  background:linear-gradient(180deg,#141d28 0%, #10161e 100%);
}
.rh-panel-card--position-benefits-shell{
  background:linear-gradient(180deg,#131d2b 0%, #10161e 100%);
}
.rh-panel-card--position-detail-hero{
  display:flex;
  flex-direction:column;
  gap:16px;
  background:linear-gradient(180deg,#152030 0%, #10161e 100%);
}
.rh-panel-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.15px;
  text-transform:uppercase;
  color:#93a2b4;
}
.rh-panel-title{
  font-family:'Inter',sans-serif;
  font-size:15px;
  font-weight:700;
  color:var(--bright);
  line-height:1.2;
}
.rh-panel-title--sub{
  font-size:14px;
}
.rh-panel-copy{
  font-size:12px;
  line-height:1.45;
  color:#96a5b6;
  max-width:58ch;
}
.rh-position-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
}
.rh-position-head-copy{
  display:flex;
  flex-direction:column;
  gap:5px;
  min-width:0;
}
.rh-position-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:#8fa0b2;
}
.rh-position-name{
  font-size:24px;
  line-height:1.05;
  font-weight:800;
  color:#f4f7fb;
}
.rh-position-meta{
  font-size:13px;
  line-height:1.4;
  color:#a5b4c3;
}
.rh-position-risk{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:.8px;
  text-transform:uppercase;
  white-space:nowrap;
}
.rh-position-risk.is-high{
  border:1px solid rgba(224,119,111,.32);
  background:rgba(224,119,111,.12);
  color:#f1aea5;
}
.rh-position-risk.is-standard{
  border:1px solid rgba(127,224,180,.28);
  background:rgba(127,224,180,.1);
  color:#9ce6c1;
}
.rh-position-stat-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
  gap:10px;
}
.rh-position-stat{
  padding:12px;
  border-radius:14px;
  border:1px solid rgba(58,70,88,.84);
  background:#0f161f;
}
.rh-position-stat--accent{
  border-color:rgba(255,213,0,.26);
  background:linear-gradient(180deg,rgba(255,213,0,.08) 0%, rgba(255,213,0,.025) 100%);
}
.rh-position-stat--accent-soft{
  border-color:rgba(127,174,255,.24);
  background:linear-gradient(180deg,rgba(92,130,212,.1) 0%, rgba(92,130,212,.03) 100%);
}
.rh-position-stat-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#8fa0b1;
}
.rh-position-stat-value{
  margin-top:6px;
  font-size:20px;
  line-height:1.1;
  font-weight:800;
  color:#f4f7fb;
}
.rh-info-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.rh-benefit-chip-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.rh-benefit-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(91,112,138,.52);
  background:#131b26;
  color:#b8c6d5;
  font-size:11.5px;
  font-weight:700;
  line-height:1;
}
.rh-benefit-chip--included{
  border-color:rgba(74,173,126,.36);
  background:rgba(51,131,91,.18);
  color:#92dfb6;
}
.rh-benefit-chip--medical{
  border-color:rgba(164,132,255,.3);
  background:rgba(118,86,208,.16);
  color:#c7b7ff;
}
.rh-benefit-chip--fleet{
  border-color:rgba(114,184,255,.28);
  background:rgba(76,128,207,.16);
  color:#b8d7ff;
}
.rh-info-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  padding:10px 0;
  border-top:1px solid rgba(58,70,88,.58);
}
.rh-info-row:first-child{
  border-top:none;
  padding-top:0;
}
.rh-info-label{
  font-size:12px;
  line-height:1.4;
  color:#8fa0b1;
}
.rh-info-value{
  font-size:13px;
  line-height:1.35;
  font-weight:700;
  color:#eff4f8;
  text-align:right;
}
.rh-occupancy-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.rh-occupancy-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 13px;
  border-radius:13px;
  border:1px solid rgba(58,70,88,.74);
  background:#121922;
}
.rh-occupancy-name{
  font-size:13px;
  line-height:1.35;
  font-weight:700;
  color:#f2f6fa;
}
.rh-occupancy-meta{
  margin-top:2px;
  font-size:11px;
  line-height:1.3;
  color:#8ea0b0;
}
.rh-occupancy-state{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(127,224,180,.24);
  background:rgba(127,224,180,.1);
  color:#9ce6c1;
  font-family:'Barlow Condensed',sans-serif;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.7px;
  text-transform:uppercase;
}
.rh-occupancy-empty{
  padding:18px 14px;
  border-radius:13px;
  border:1px dashed rgba(58,70,88,.72);
  background:#111821;
  font-size:12.5px;
  line-height:1.5;
  color:#95a4b5;
}
.rh-split-layout{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.rh-split-layout--position-editor{
  grid-template-columns:1fr;
  align-items:start;
  gap:18px;
}
.rh-split-layout--position-detail{
  align-items:start;
}
.rh-field-grid{
  display:grid;
  gap:10px;
}
.rh-field-grid--2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.rh-field-grid--labor{
  grid-template-columns:1fr;
}
.rh-field-grid--identity{
  grid-template-columns:1fr;
}
.rh-field-grid--3{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.rh-field-grid--employee-top{
  grid-template-columns:1.1fr .9fr;
  align-items:end;
}
.rh-field-grid--position-top{
  grid-template-columns:1.2fr .8fr;
  align-items:end;
}
.rh-field-grid--bank{
  grid-template-columns:.9fr 1.1fr;
}
.rh-field-grid--contact{
  grid-template-columns:1.5fr .85fr;
}
.rh-field-grid--health{
  grid-template-columns:.7fr 1.3fr;
}
.rh-field-grid--salary{
  grid-template-columns:1fr;
}
.rh-field-grid--salary-support{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.rh-field-grid--position-meta{
  grid-template-columns:minmax(0,.78fr) minmax(0,1.22fr);
  align-items:start;
}
.rh-field-grid--position-benefits{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.rh-field-grid--position-pay{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.rh-field-grid--position-pay > :last-child,
.rh-field-grid--position-benefits > :last-child{
  grid-column:1 / -1;
}
.rh-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  min-width:0;
}
.rh-field-head{
  position:relative;
  display:flex;
  align-items:center;
  gap:6px;
  width:fit-content;
  max-width:100%;
}
.rh-field--stack{
  gap:8px;
}
.rh-field--risk{
  gap:10px;
}
.rh-field--risk .rh-panel-copy{
  max-width:none;
}
.rh-field--salary-primary{
  gap:8px;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(255,213,0,.18);
  background:linear-gradient(180deg,rgba(255,213,0,.075) 0%, rgba(255,213,0,.03) 100%);
}
.rh-field--salary-side{
  padding:12px;
  border-radius:13px;
  border:1px solid rgba(58,70,88,.74);
  background:#121922;
}
.rh-inline-note{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(58,70,88,.82);
  background:#131b25;
  font-size:11.5px;
  line-height:1.5;
  color:#b8c4d0;
}
.rh-inline-note strong{
  color:#edf3f8;
  font-weight:700;
}
.rh-salary-subhead{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.rh-salary-subtitle{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.1px;
  text-transform:uppercase;
  color:#98a7b7;
}
.rh-salary-subcopy{
  font-size:12px;
  line-height:1.45;
  color:#94a3b4;
}
.rh-field-note{
  font-size:11px;
  line-height:1.4;
  color:#a9b7c6;
}
.rh-help-trigger{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  border:1px solid rgba(120,136,154,.72);
  background:#151d28;
  color:#dce5ed;
  font-family:'Inter',sans-serif;
  font-size:11px;
  font-weight:700;
  line-height:1;
  cursor:help;
  padding:0;
  transition:border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.rh-help-trigger:hover,
.rh-help-trigger:focus-visible{
  border-color:rgba(255,213,0,.42);
  background:#1b2532;
  color:#fff3bc;
  outline:none;
  transform:translateY(-1px);
}
.rh-help-tooltip{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  width:min(290px,calc(100vw - 56px));
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(58,70,88,.92);
  background:#111922;
  box-shadow:0 14px 30px rgba(0,0,0,.32);
  font-size:12px;
  line-height:1.5;
  color:#c3cfda;
  opacity:0;
  visibility:hidden;
  transform:translateY(4px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index:8;
  pointer-events:none;
}
.rh-help-tooltip strong{
  color:#fff0a8;
  font-weight:700;
}
.rh-field-head:hover .rh-help-tooltip,
.rh-field-head:focus-within .rh-help-tooltip{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}
.rh-choice-grid{
  display:grid;
  gap:8px;
}
.rh-choice-grid--compact{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.rh-choice-grid--compact .rh-choice-card > span{
  min-height:44px;
}
.rh-choice-card.rh-choice-card--paycycle > span{
  position:relative;
  justify-content:flex-start;
  padding:0 34px 0 35px;
}
.rh-choice-card.rh-choice-card--paycycle > span::before{
  content:'';
  position:absolute;
  left:14px;
  top:50%;
  width:8px;
  height:8px;
  border-radius:999px;
  transform:translateY(-50%);
  background:#6e8095;
  box-shadow:0 0 0 4px rgba(110,128,149,.12);
  transition:background .18s ease, box-shadow .18s ease;
}
.rh-choice-card.rh-choice-card--paycycle > span::after{
  content:'';
  position:absolute;
  right:12px;
  top:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  transform:translateY(-50%);
  opacity:0;
  transition:opacity .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.rh-choice-card--paycycle-weekly > span::before{
  background:#e1bc4e;
  box-shadow:0 0 0 4px rgba(225,188,78,.12);
}
.rh-choice-card--paycycle-biweekly > span::before{
  background:#67a8ff;
  box-shadow:0 0 0 4px rgba(103,168,255,.12);
}
.rh-choice-card--paycycle-weekly input:checked + span{
  border-color:rgba(225,188,78,.54);
  background:linear-gradient(180deg,rgba(87,69,18,.34) 0%, rgba(26,33,43,.95) 100%);
  color:#fff2c7;
  box-shadow:inset 0 0 0 1px rgba(225,188,78,.18);
}
.rh-choice-card--paycycle-weekly input:checked + span::before{
  background:#f0cd62;
  box-shadow:0 0 0 5px rgba(225,188,78,.18);
}
.rh-choice-card--paycycle-weekly input:checked + span::after{
  content:'\2713';
  opacity:1;
  background:rgba(225,188,78,.18);
  color:#ffe27c;
  box-shadow:0 0 0 1px rgba(225,188,78,.24);
}
.rh-choice-card--paycycle-biweekly input:checked + span{
  border-color:rgba(103,168,255,.56);
  background:linear-gradient(180deg,rgba(30,61,101,.36) 0%, rgba(20,29,42,.95) 100%);
  color:#deecff;
  box-shadow:inset 0 0 0 1px rgba(103,168,255,.18);
}
.rh-choice-card--paycycle-biweekly input:checked + span::before{
  background:#8bc0ff;
  box-shadow:0 0 0 5px rgba(103,168,255,.18);
}
.rh-choice-card--paycycle-biweekly input:checked + span::after{
  content:'\2713';
  opacity:1;
  background:rgba(103,168,255,.18);
  color:#b9daff;
  box-shadow:0 0 0 1px rgba(103,168,255,.24);
}
.rh-choice-grid--benefits{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.rh-choice-grid--benefits .rh-choice-card:last-child{
  grid-column:1 / -1;
}
.rh-choice-grid--contract{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.rh-choice-grid--risk{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.rh-choice-grid--risk .rh-choice-card > span{
  min-height:46px;
  font-size:13px;
}
.rh-choice-card.rh-choice-card--risk-option > span{
  position:relative;
  justify-content:flex-start;
  padding:0 36px 0 36px;
}
.rh-choice-card.rh-choice-card--risk-option > span::before{
  content:'';
  position:absolute;
  left:14px;
  top:50%;
  width:8px;
  height:8px;
  border-radius:999px;
  transform:translateY(-50%);
  background:#708195;
  box-shadow:0 0 0 4px rgba(112,129,149,.12);
  transition:background .18s ease, box-shadow .18s ease;
}
.rh-choice-card.rh-choice-card--risk-option > span::after{
  content:'';
  position:absolute;
  right:12px;
  top:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  border-radius:999px;
  transform:translateY(-50%);
  opacity:0;
  transition:opacity .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.rh-choice-card--risk-standard > span::before{
  background:#4cbf91;
  box-shadow:0 0 0 4px rgba(76,191,145,.12);
}
.rh-choice-card--risk-high > span::before{
  background:#d79255;
  box-shadow:0 0 0 4px rgba(215,146,85,.12);
}
.rh-choice-card--risk-standard input:checked + span{
  border-color:rgba(76,191,145,.5);
  background:linear-gradient(180deg,rgba(37,94,74,.34) 0%, rgba(22,35,45,.94) 100%);
  color:#dcf7eb;
  box-shadow:inset 0 0 0 1px rgba(76,191,145,.16);
}
.rh-choice-card--risk-standard input:checked + span::after{
  content:'\2713';
  opacity:1;
  background:rgba(76,191,145,.18);
  color:#7ff0c3;
  box-shadow:0 0 0 1px rgba(76,191,145,.22);
}
.rh-choice-card--risk-standard input:checked + span::before{
  background:#6fe0b4;
  box-shadow:0 0 0 5px rgba(76,191,145,.18);
}
.rh-choice-card--risk-high input:checked + span{
  border-color:rgba(224,119,111,.56);
  background:linear-gradient(180deg,rgba(98,39,36,.4) 0%, rgba(27,22,28,.95) 100%);
  color:#ffe3de;
  box-shadow:inset 0 0 0 1px rgba(224,119,111,.16);
}
.rh-choice-card--risk-high input:checked + span::after{
  content:'!';
  opacity:1;
  background:rgba(224,119,111,.2);
  color:#ffb1a8;
  box-shadow:0 0 0 1px rgba(224,119,111,.24);
}
.rh-choice-card--risk-high input:checked + span::before{
  background:#ff9c90;
  box-shadow:0 0 0 5px rgba(224,119,111,.2);
}
.rh-choice-card--risk-option:hover > span{
  border-color:#8293a8;
}
.rh-choice-card{
  position:relative;
  display:block;
  cursor:pointer;
  min-width:0;
}
.rh-choice-card input{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}
.rh-choice-card > span{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 14px;
  border-radius:12px;
  border:1px solid rgba(58,70,88,.92);
  background:#10161e;
  color:#d7e0e8;
  font-family:'Barlow Condensed',sans-serif;
  font-size:14px;
  font-weight:700;
  letter-spacing:.5px;
  text-transform:uppercase;
  transition:border-color .18s ease, background .18s ease, color .18s ease;
}
.rh-choice-card--benefit > span{
  justify-content:flex-start;
  min-height:84px;
  padding:16px 18px;
  border-radius:16px;
  background:linear-gradient(180deg,#121b27 0%, #101822 100%);
  font-size:13px;
  letter-spacing:.3px;
  text-transform:none;
}
.rh-choice-card:hover > span{
  border-color:#78879a;
  background:#131b25;
}
.rh-choice-card input:checked + span{
  border-color:#8a9bad;
  background:#1c2735;
  color:#f3f6f9;
}
.rh-choice-card--contract > span{
  min-height:40px;
  padding:0 10px;
  font-size:12px;
  letter-spacing:.2px;
  white-space:nowrap;
}
.rh-benefit-option{
  position:relative;
  display:flex;
  width:100%;
  flex-direction:column;
  align-items:flex-start;
  justify-content:flex-start;
  gap:7px;
  padding-right:112px;
  overflow:hidden;
  text-align:left;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.rh-benefit-option::before{
  content:'';
  position:absolute;
  top:14px;
  right:14px;
  width:22px;
  height:22px;
  border-radius:999px;
  border:1px solid rgba(123,139,158,.52);
  background:#121922;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  transition:border-color .18s ease, background .18s ease, transform .18s ease;
}
.rh-benefit-option::after{
  content:'Disponible';
  position:absolute;
  top:13px;
  right:44px;
  min-height:24px;
  display:inline-flex;
  align-items:center;
  padding:0 9px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(255,255,255,.04);
  color:#a8b6c6;
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:.7px;
  text-transform:uppercase;
  transition:all .18s ease;
}
.rh-benefit-title{
  width:100%;
  max-width:none;
  font-family:'Inter',sans-serif;
  font-size:14px;
  font-weight:700;
  line-height:1.2;
  text-align:left;
  color:#f2f6fa;
}
.rh-benefit-copy{
  width:100%;
  max-width:none;
  font-size:12px;
  line-height:1.45;
  text-align:left;
  color:#96a6b7;
}
.rh-choice-card--benefit:hover .rh-benefit-option{
  transform:translateY(-1px);
  box-shadow:0 12px 24px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
}
.rh-choice-card--benefit input:checked + .rh-benefit-option{
  color:#f3f7fb;
}
.rh-choice-card--benefit input:checked + .rh-benefit-option::before{
  content:'✓';
  border-color:transparent;
  background:linear-gradient(135deg,#ffd500,#ffe470);
  color:#0f141c;
  font-size:13px;
  font-weight:800;
  transform:scale(1.02);
}
.rh-choice-card--benefit input:checked + .rh-benefit-option::after{
  content:'Asignado';
  border-color:rgba(255,213,0,.28);
  background:rgba(255,213,0,.14);
  color:#ffe480;
}
.rh-choice-card--benefit input:checked + .rh-benefit-option .rh-benefit-copy{
  color:#c6d2dc;
}
.rh-choice-card--benefit-auto input:checked + .rh-benefit-option{
  border-color:rgba(96,165,250,.34);
  background:linear-gradient(180deg,rgba(74,163,255,.14) 0%, rgba(16,24,34,.96) 100%);
  box-shadow:0 14px 30px rgba(18,44,82,.24), inset 0 1px 0 rgba(255,255,255,.05);
}
.rh-choice-card--benefit-gmm input:checked + .rh-benefit-option{
  border-color:rgba(164,132,255,.34);
  background:linear-gradient(180deg,rgba(118,86,208,.16) 0%, rgba(16,24,34,.96) 100%);
  box-shadow:0 14px 30px rgba(49,26,101,.22), inset 0 1px 0 rgba(255,255,255,.05);
}
.rh-choice-card--benefit-comedor input:checked + .rh-benefit-option{
  border-color:rgba(74,173,126,.34);
  background:linear-gradient(180deg,rgba(51,131,91,.16) 0%, rgba(16,24,34,.96) 100%);
  box-shadow:0 14px 30px rgba(18,64,43,.22), inset 0 1px 0 rgba(255,255,255,.05);
}
.rh-field-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.1px;
  text-transform:uppercase;
  color:#98a7b7;
}
.rh-input{
  width:100%;
  min-height:42px;
  padding:10px 12px;
  border-radius:11px;
  border:1px solid rgba(58,70,88,.92);
  background:#10161e;
  color:#eef3f8;
  font-family:'Inter',sans-serif;
  font-size:14px;
}
.rh-input--lg{
  min-height:48px;
  font-size:15px;
  font-weight:600;
}
.rh-field--salary-primary .rh-input{
  border-color:rgba(255,213,0,.3);
  background:#131c27;
}
.rh-modal--employee{
  width:min(100%,920px);
  max-width:920px;
  border-radius:18px;
  border-color:rgba(49,63,81,.9);
  box-shadow:0 18px 44px rgba(0,0,0,.3);
}
.rh-modal--employee .rh-modal-head{
  padding:18px 20px 14px;
  gap:14px;
  background:#182231;
}
.rh-modal--employee .rh-modal-kicker{
  font-size:10px;
  letter-spacing:1.3px;
  margin-bottom:4px;
}
.rh-modal--employee .rh-modal-title{
  font-size:17px;
}
.rh-modal--employee .rh-modal-sub{
  margin-top:5px;
  max-width:470px;
  font-size:11px;
  line-height:1.42;
}
.rh-modal--employee .rh-modal-close{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:9px;
  font-size:13px;
}
.rh-modal--employee .rh-modal-body{
  padding:18px 20px;
  gap:14px;
}
.rh-modal--employee .rh-modal-foot{
  padding:14px 20px 18px;
}
.rh-modal--employee .rh-modal-foot .btn{
  min-height:38px;
  padding:0 16px;
  border-radius:10px;
  font-size:12px;
}
.rh-modal--employee .rh-modal-foot .btn-gold{
  box-shadow:0 2px 10px rgba(255,213,0,.18);
}
.rh-modal--employee .rh-panel-card{
  padding:16px;
  border-radius:16px;
  border-color:rgba(50,63,81,.8);
  background:#0f1722;
}
.rh-modal--employee .rh-panel-card--hero{
  background:linear-gradient(180deg,#121d2b 0%, #0f1722 100%);
}
.rh-modal--employee .rh-panel-card--section{
  gap:12px;
}
.rh-modal--employee .rh-panel-title{
  font-size:14px;
}
.rh-modal--employee .rh-panel-copy{
  font-size:11px;
  line-height:1.42;
  max-width:50ch;
}
.rh-modal--employee .rh-form-block{
  gap:8px;
}
.rh-modal--employee .rh-split-layout{
  grid-template-columns:minmax(0,1.06fr) minmax(0,.94fr);
  gap:12px;
  align-items:start;
}
.rh-modal--employee .rh-field-grid{
  gap:8px;
}
.rh-modal--employee .rh-field-label{
  font-size:10px;
  letter-spacing:1px;
}
.rh-modal--employee .rh-field-grid--employee-top{
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  align-items:end;
}
.rh-modal--employee .rh-input{
  min-height:40px;
  padding:8px 11px;
  border-radius:10px;
  font-size:13px;
}
.rh-modal--employee .rh-input--lg{
  min-height:44px;
  font-size:14px;
}
.rh-modal--employee .rh-choice-grid{
  gap:6px;
}
.rh-modal--employee .rh-choice-card:not(.rh-choice-card--benefit) > span{
  position:relative;
  justify-content:flex-start;
  min-height:38px;
  padding:0 31px 0 31px;
  border-radius:10px;
  font-size:12px;
}
.rh-modal--employee .rh-choice-card:not(.rh-choice-card--benefit) > span::before{
  content:'';
  position:absolute;
  left:12px;
  top:50%;
  width:7px;
  height:7px;
  border-radius:999px;
  transform:translateY(-50%);
  background:#6f8094;
  box-shadow:0 0 0 4px rgba(111,128,148,.12);
}
.rh-modal--employee .rh-choice-card:not(.rh-choice-card--benefit) > span::after{
  content:'';
  position:absolute;
  right:10px;
  top:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  border-radius:999px;
  transform:translateY(-50%);
  opacity:0;
  transition:opacity .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.rh-modal--employee .rh-choice-card:not(.rh-choice-card--benefit) input:checked + span{
  border-color:rgba(255,213,0,.38);
  background:linear-gradient(180deg,rgba(80,69,20,.26) 0%, rgba(22,31,43,.94) 100%);
  color:#fff3c8;
  box-shadow:inset 0 0 0 1px rgba(255,213,0,.12);
}
.rh-modal--employee .rh-choice-card:not(.rh-choice-card--benefit) input:checked + span::before{
  background:#f0cd62;
  box-shadow:0 0 0 5px rgba(255,213,0,.12);
}
.rh-modal--employee .rh-choice-card:not(.rh-choice-card--benefit) input:checked + span::after{
  content:'\2713';
  opacity:1;
  background:rgba(255,213,0,.16);
  color:#ffe27c;
  box-shadow:0 0 0 1px rgba(255,213,0,.2);
}
.rh-modal--employee .rh-choice-card--contract > span{
  min-height:38px;
  padding:0 31px 0 31px;
}
.rh-input:focus{
  outline:none;
  border-color:#7c8da2;
  box-shadow:0 0 0 3px rgba(124,141,162,.12);
}
.rh-input[readonly]{
  background:#0d141c;
  color:#d8e2eb;
  border-color:rgba(78,92,111,.9);
  cursor:default;
}
.rh-segmented-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.rh-segmented-option{
  position:relative;
  display:block;
  cursor:pointer;
}
.rh-segmented-option input{
  position:absolute;
  inset:0;
  opacity:0;
  pointer-events:none;
}
.rh-segmented-option span{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-height:64px;
  justify-content:center;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(58,70,88,.92);
  background:#10161e;
  color:#dce4ec;
  font-family:'Barlow Condensed',sans-serif;
  font-size:15px;
  font-weight:700;
  letter-spacing:.5px;
  transition:border-color .18s ease, background .18s ease, color .18s ease;
}
.rh-segmented-option small{
  font-family:'Inter',sans-serif;
  font-size:11px;
  font-weight:500;
  letter-spacing:0;
  color:#8ea0b1;
}
.rh-segmented-option:hover span{
  border-color:#78879a;
  background:#131b25;
}
.rh-segmented-option input:checked + span{
  border-color:#8a9bad;
  background:#1c2735;
  color:#f3f6f9;
}
.rh-segmented-option input:checked + span small{
  color:#c4ced8;
}
.rh-period-hint{
  padding:11px 12px;
  border-radius:12px;
  border:1px solid rgba(58,70,88,.78);
  background:#111823;
  color:#aab7c4;
  font-size:12px;
  line-height:1.45;
}
.rh-period-hint strong{
  color:#f4f7fb;
}
.rh-modal--period{
  width:min(100%,456px);
  max-width:456px;
  border-radius:18px;
  border-color:rgba(49,63,81,.9);
  box-shadow:0 18px 44px rgba(0,0,0,.3);
}
.rh-modal--period .rh-modal-head{
  padding:18px 20px 14px;
  gap:14px;
  background:#182231;
}
.rh-modal--period .rh-modal-kicker{
  font-size:10px;
  letter-spacing:1.3px;
  margin-bottom:4px;
}
.rh-modal--period .rh-modal-title{
  font-size:17px;
}
.rh-modal--period .rh-modal-sub{
  margin-top:5px;
  max-width:360px;
  font-size:11px;
  line-height:1.42;
}
.rh-modal--period .rh-modal-close{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:9px;
  font-size:13px;
}
.rh-modal--period .rh-modal-body{
  padding:18px 20px;
  gap:14px;
}
.rh-modal--period .rh-modal-foot{
  padding:14px 20px 18px;
}
.rh-modal--period .rh-modal-foot .btn{
  min-height:38px;
  padding:0 16px;
  border-radius:10px;
  font-size:12px;
}
.rh-modal--period .rh-modal-foot .btn-gold{
  box-shadow:0 2px 10px rgba(255,213,0,.18);
}
.rh-modal--period .rh-form-block{
  gap:8px;
}
.rh-modal--period .rh-field-grid{
  gap:8px;
}
.rh-modal--period .rh-field-label{
  font-size:10px;
  letter-spacing:1px;
}
.rh-modal--period .rh-input{
  min-height:40px;
  padding:8px 11px;
  border-radius:10px;
  font-size:13px;
}
.rh-modal--period .rh-segmented-grid{
  gap:6px;
}
.rh-modal--period .rh-segmented-option span{
  position:relative;
  min-height:58px;
  gap:1px;
  justify-content:center;
  padding:10px 34px 10px 32px;
  border-radius:12px;
  font-size:13px;
}
.rh-modal--period .rh-segmented-option span::before{
  content:'';
  position:absolute;
  left:12px;
  top:50%;
  width:7px;
  height:7px;
  border-radius:999px;
  transform:translateY(-50%);
  background:#6f8094;
  box-shadow:0 0 0 4px rgba(111,128,148,.12);
}
.rh-modal--period .rh-segmented-option span::after{
  content:'';
  position:absolute;
  right:10px;
  top:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  border-radius:999px;
  transform:translateY(-50%);
  opacity:0;
  transition:opacity .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.rh-modal--period .rh-segmented-option small{
  font-size:10px;
}
.rh-modal--period .rh-segmented-option--weekly span::before{
  background:#e1bc4e;
  box-shadow:0 0 0 4px rgba(225,188,78,.12);
}
.rh-modal--period .rh-segmented-grid .rh-segmented-option:first-child span::before{
  background:#e1bc4e;
  box-shadow:0 0 0 4px rgba(225,188,78,.12);
}
.rh-modal--period .rh-segmented-option--biweekly span::before{
  background:#67a8ff;
  box-shadow:0 0 0 4px rgba(103,168,255,.12);
}
.rh-modal--period .rh-segmented-grid .rh-segmented-option:last-child span::before{
  background:#67a8ff;
  box-shadow:0 0 0 4px rgba(103,168,255,.12);
}
.rh-modal--period .rh-segmented-option--weekly input:checked + span{
  border-color:rgba(225,188,78,.54);
  background:linear-gradient(180deg,rgba(87,69,18,.34) 0%, rgba(26,33,43,.95) 100%);
  color:#fff2c7;
  box-shadow:inset 0 0 0 1px rgba(225,188,78,.18);
}
.rh-modal--period .rh-segmented-grid .rh-segmented-option:first-child input:checked + span{
  border-color:rgba(225,188,78,.54);
  background:linear-gradient(180deg,rgba(87,69,18,.34) 0%, rgba(26,33,43,.95) 100%);
  color:#fff2c7;
  box-shadow:inset 0 0 0 1px rgba(225,188,78,.18);
}
.rh-modal--period .rh-segmented-option--weekly input:checked + span::before{
  background:#f0cd62;
  box-shadow:0 0 0 5px rgba(225,188,78,.18);
}
.rh-modal--period .rh-segmented-grid .rh-segmented-option:first-child input:checked + span::before{
  background:#f0cd62;
  box-shadow:0 0 0 5px rgba(225,188,78,.18);
}
.rh-modal--period .rh-segmented-option--weekly input:checked + span::after{
  content:'\2713';
  opacity:1;
  background:rgba(225,188,78,.18);
  color:#ffe27c;
  box-shadow:0 0 0 1px rgba(225,188,78,.24);
}
.rh-modal--period .rh-segmented-grid .rh-segmented-option:first-child input:checked + span::after{
  content:'\2713';
  opacity:1;
  background:rgba(225,188,78,.18);
  color:#ffe27c;
  box-shadow:0 0 0 1px rgba(225,188,78,.24);
}
.rh-modal--period .rh-segmented-option--biweekly input:checked + span{
  border-color:rgba(103,168,255,.56);
  background:linear-gradient(180deg,rgba(30,61,101,.36) 0%, rgba(20,29,42,.95) 100%);
  color:#deecff;
  box-shadow:inset 0 0 0 1px rgba(103,168,255,.18);
}
.rh-modal--period .rh-segmented-grid .rh-segmented-option:last-child input:checked + span{
  border-color:rgba(103,168,255,.56);
  background:linear-gradient(180deg,rgba(30,61,101,.36) 0%, rgba(20,29,42,.95) 100%);
  color:#deecff;
  box-shadow:inset 0 0 0 1px rgba(103,168,255,.18);
}
.rh-modal--period .rh-segmented-option--biweekly input:checked + span::before{
  background:#8bc0ff;
  box-shadow:0 0 0 5px rgba(103,168,255,.18);
}
.rh-modal--period .rh-segmented-grid .rh-segmented-option:last-child input:checked + span::before{
  background:#8bc0ff;
  box-shadow:0 0 0 5px rgba(103,168,255,.18);
}
.rh-modal--period .rh-segmented-option--biweekly input:checked + span::after{
  content:'\2713';
  opacity:1;
  background:rgba(103,168,255,.18);
  color:#b9daff;
  box-shadow:0 0 0 1px rgba(103,168,255,.24);
}
.rh-modal--period .rh-segmented-grid .rh-segmented-option:last-child input:checked + span::after{
  content:'\2713';
  opacity:1;
  background:rgba(103,168,255,.18);
  color:#b9daff;
  box-shadow:0 0 0 1px rgba(103,168,255,.24);
}
.rh-modal--period .rh-period-hint{
  padding:10px 11px;
  border-radius:11px;
  font-size:11px;
  line-height:1.42;
}
.rh-modal--loan{
  width:min(100%,492px);
  max-width:492px;
  border-radius:18px;
  border-color:rgba(49,63,81,.9);
  box-shadow:0 18px 44px rgba(0,0,0,.3);
}
.rh-modal--loan .rh-modal-head{
  padding:18px 20px 14px;
  gap:14px;
  background:#182231;
}
.rh-modal--loan .rh-modal-kicker{
  font-size:10px;
  letter-spacing:1.3px;
  margin-bottom:4px;
}
.rh-modal--loan .rh-modal-title{
  font-size:17px;
}
.rh-modal--loan .rh-modal-sub{
  margin-top:5px;
  max-width:390px;
  font-size:11px;
  line-height:1.42;
}
.rh-modal--loan .rh-modal-close{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:9px;
  font-size:13px;
}
.rh-modal--loan .rh-modal-body{
  padding:18px 20px;
  gap:14px;
}
.rh-modal--loan .rh-modal-foot{
  padding:14px 20px 18px;
}
.rh-modal--loan .rh-modal-foot .btn{
  min-height:38px;
  padding:0 16px;
  border-radius:10px;
  font-size:12px;
}
.rh-modal--loan .rh-modal-foot .btn-gold{
  box-shadow:0 2px 10px rgba(255,213,0,.18);
}
.rh-modal--loan .rh-panel-card{
  padding:16px;
  border-radius:16px;
  border-color:rgba(50,63,81,.8);
  background:#0f1722;
}
.rh-modal--loan .rh-panel-card--section{
  gap:12px;
}
.rh-modal--loan .rh-panel-title{
  font-size:14px;
}
.rh-modal--loan .rh-panel-copy{
  font-size:11px;
  line-height:1.42;
  max-width:50ch;
}
.rh-modal--loan .rh-form-block{
  gap:8px;
}
.rh-modal--loan .rh-field-grid{
  gap:8px;
}
.rh-modal--loan .rh-field-grid--loan{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.rh-modal--loan .rh-field-label{
  font-size:10px;
  letter-spacing:1px;
}
.rh-modal--loan .rh-input{
  min-height:40px;
  padding:8px 11px;
  border-radius:10px;
  font-size:13px;
}
.rh-choice-grid--loan{
  grid-template-columns:minmax(0,1fr);
  gap:6px;
}
.rh-choice-card--loan-wide{
  grid-column:1 / -1;
}
.rh-choice-card--loan > span{
  position:relative;
  justify-content:flex-start;
  min-height:38px;
  padding:0 31px 0 31px;
  border-radius:10px;
  font-size:12px;
}
.rh-choice-card--loan > span::before{
  content:'';
  position:absolute;
  left:12px;
  top:50%;
  width:7px;
  height:7px;
  border-radius:999px;
  transform:translateY(-50%);
  background:#6f8094;
  box-shadow:0 0 0 4px rgba(111,128,148,.12);
}
.rh-choice-card--loan > span::after{
  content:'';
  position:absolute;
  right:10px;
  top:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  width:16px;
  height:16px;
  border-radius:999px;
  transform:translateY(-50%);
  opacity:0;
  transition:opacity .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}
.rh-choice-card--loan input:checked + span{
  border-color:rgba(255,213,0,.38);
  background:linear-gradient(180deg,rgba(80,69,20,.26) 0%, rgba(22,31,43,.94) 100%);
  color:#fff3c8;
  box-shadow:inset 0 0 0 1px rgba(255,213,0,.12);
}
.rh-choice-card--loan input:checked + span::before{
  background:#f0cd62;
  box-shadow:0 0 0 5px rgba(255,213,0,.12);
}
.rh-choice-card--loan input:checked + span::after{
  content:'\2713';
  opacity:1;
  background:rgba(255,213,0,.16);
  color:#ffe27c;
  box-shadow:0 0 0 1px rgba(255,213,0,.2);
}
.rh-loan-other-field{
  display:none;
  margin-top:10px;
}
.rh-loan-other-field.is-visible{
  display:flex;
}
.rh-loan-field-note{
  margin-top:8px;
  font-size:11px;
  line-height:1.42;
  color:#8ea0b3;
}
.rh-loan-legal-hint{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(49,63,81,.78);
  background:rgba(15,23,34,.92);
  font-size:11px;
  line-height:1.45;
  color:#8ea0b3;
}
.rh-loan-legal-hint.is-ok{
  border-color:rgba(86,179,133,.35);
  background:rgba(24,43,33,.75);
  color:#bfe6cf;
}
.rh-loan-legal-hint.is-warn{
  border-color:rgba(224,162,106,.35);
  background:rgba(52,35,21,.7);
  color:#f2c79b;
}
.rh-modal--loan-docs{
  width:min(100%,920px);
  max-width:920px;
  border-radius:18px;
  border-color:rgba(49,63,81,.9);
  box-shadow:0 18px 44px rgba(0,0,0,.3);
}
.rh-modal--loan-docs .rh-modal-head{
  padding:18px 20px 14px;
  gap:14px;
  background:#182231;
}
.rh-modal--loan-docs .rh-modal-kicker{
  font-size:10px;
  letter-spacing:1.3px;
  margin-bottom:4px;
}
.rh-modal--loan-docs .rh-modal-title{
  font-size:17px;
}
.rh-modal--loan-docs .rh-modal-sub{
  margin-top:5px;
  max-width:520px;
  font-size:11px;
  line-height:1.42;
}
.rh-modal--loan-docs .rh-modal-close{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:9px;
  font-size:13px;
}
.rh-modal--loan-docs .rh-modal-body{
  max-height:min(78vh,860px);
  padding:18px 20px;
  gap:14px;
}
.rh-modal--loan-docs .rh-modal-foot{
  padding:14px 20px 18px;
}
.rh-modal--loan-docs .rh-modal-foot .btn{
  min-height:38px;
  padding:0 16px;
  border-radius:10px;
  font-size:12px;
}
.rh-modal--loan-docs .rh-modal-foot .btn-gold{
  box-shadow:0 2px 10px rgba(255,213,0,.18);
}
.rh-loan-docs-shell{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.rh-loan-docs-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.rh-loan-doc-stat{
  padding:13px 14px;
  border-radius:14px;
  border:1px solid rgba(49,63,81,.8);
  background:#0f1722;
}
.rh-loan-doc-stat span,
.rh-loan-doc-stat small{
  display:block;
}
.rh-loan-doc-stat span{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#8da0b4;
}
.rh-loan-doc-stat strong{
  display:block;
  margin-top:5px;
  font-size:15px;
  font-weight:700;
  color:#f4f7fb;
}
.rh-loan-doc-stat small{
  margin-top:4px;
  font-size:11px;
  line-height:1.35;
  color:#93a3b4;
}
.rh-loan-doc{
  padding:18px 18px 16px;
  border-radius:18px;
  border:1px solid rgba(49,63,81,.84);
  background:#0f1722;
}
.rh-loan-doc-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:#8da0b4;
}
.rh-loan-doc-title{
  margin:6px 0 10px;
  font-size:16px;
  line-height:1.15;
  color:#f4f7fb;
}
.rh-loan-doc-copy{
  margin:0 0 10px;
  font-size:12px;
  line-height:1.56;
  color:#d3dbe4;
}
.rh-loan-doc-list,
.rh-loan-doc-bullets{
  margin:0;
  padding-left:18px;
  display:grid;
  gap:8px;
  color:#dce4ed;
  font-size:12px;
  line-height:1.56;
}
.rh-loan-doc-signatures{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:16px;
  margin-top:16px;
}
.rh-loan-doc-party{
  min-width:0;
}
.rh-loan-doc-party-title{
  margin-bottom:10px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#8da0b4;
}
.rh-loan-signature-slot{
  min-height:116px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
}
.rh-loan-doc-signature{
  max-width:220px;
  max-height:76px;
  object-fit:contain;
  margin-bottom:8px;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,.18));
}
.rh-loan-signature-line{
  width:100%;
  border-bottom:1px solid rgba(141,160,180,.45);
}
.rh-loan-signature-meta{
  margin-top:6px;
  font-size:11px;
  line-height:1.35;
  color:#93a3b4;
}
.rh-loan-signature-panel{
  display:flex;
}
.rh-check-line{
  display:flex;
  align-items:flex-start;
  gap:10px;
  font-size:12px;
  line-height:1.42;
  color:#dce4ed;
}
.rh-check-line input{
  margin-top:2px;
}
.rh-loan-sign-box{
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(49,63,81,.84);
  background:#0c131d;
}
.rh-loan-sign-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  margin-bottom:10px;
}
.rh-loan-sign-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#8da0b4;
}
.rh-loan-sign-canvas{
  display:block;
  width:100%;
  height:190px;
  border-radius:12px;
  border:1px dashed rgba(111,128,148,.35);
  background:#08111d;
  touch-action:none;
  cursor:crosshair;
}
.rh-loan-sign-hint{
  margin-top:8px;
  font-size:11px;
  color:#8192a4;
  transition:opacity .18s ease;
}
.rh-loan-table-action{
  min-height:28px;
  padding:0 10px;
  border-radius:9px;
  border:1px solid rgba(49,64,83,.9);
  background:#0f1722;
  color:#d6dee7;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:.72px;
  text-transform:uppercase;
}
.rh-loan-table-note{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10.5px;
  font-weight:700;
  letter-spacing:.72px;
  text-transform:uppercase;
  color:#8192a4;
}
@media (max-width: 1100px){
  .rh-loan-docs-summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .rh-loan-doc-signatures{
    grid-template-columns:1fr;
  }
}
@media (max-width: 760px){
  .rh-loan-docs-summary{
    grid-template-columns:1fr;
  }
  .rh-modal--loan-docs .rh-modal-body{
    padding:14px;
  }
  .rh-modal--loan-docs .rh-modal-foot{
    padding:12px 14px 14px;
    flex-wrap:wrap;
  }
  .rh-modal--loan-docs .rh-modal-foot .btn{
    flex:1 1 180px;
  }
  .rh-loan-doc{
    padding:15px 14px 14px;
  }
  .rh-loan-sign-box{
    padding:12px;
  }
  .rh-loan-sign-canvas{
    height:168px;
  }
}
.rh-exp-shell{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.rh-exp-hero{
  display:grid;
  grid-template-columns:minmax(0,1.4fr) minmax(240px,.85fr);
  gap:14px;
  padding:16px;
  border-radius:18px;
  border:1px solid rgba(58,70,88,.84);
  background:#121a24;
}
.rh-exp-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:#93a2b2;
  margin-bottom:6px;
}
.rh-exp-name{
  font-size:24px;
  font-weight:700;
  color:var(--bright);
  line-height:1.08;
}
.rh-exp-role{
  margin-top:6px;
  font-size:14px;
  color:#b8c4cf;
}
.rh-exp-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.rh-exp-badge{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 12px;
  border-radius:999px;
  border:1px solid rgba(58,70,88,.88);
  background:#10161e;
  color:#d5dee7;
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:.7px;
  text-transform:uppercase;
}
.rh-exp-badge.is-gold{
  border-color:rgba(255,213,0,.28);
  background:rgba(255,213,0,.08);
  color:var(--gold2);
}
.rh-exp-side{
  display:grid;
  gap:10px;
}
.rh-exp-stat{
  border:1px solid rgba(58,70,88,.82);
  border-radius:14px;
  background:#10161e;
  padding:13px 14px;
}
.rh-exp-stat-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:#93a2b2;
  margin-bottom:6px;
}
.rh-exp-stat-value{
  font-size:22px;
  font-weight:800;
  color:var(--bright);
  line-height:1;
}
.rh-exp-stat-meta{
  margin-top:6px;
  font-size:12px;
  line-height:1.4;
  color:#96a5b6;
}
.rh-exp-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.rh-exp-card{
  border:1px solid rgba(58,70,88,.82);
  border-radius:16px;
  background:#10161e;
  padding:15px;
}
.rh-exp-card--full{
  grid-column:1 / -1;
}
.rh-exp-card-title{
  font-family:'Inter',sans-serif;
  font-size:15px;
  font-weight:700;
  color:var(--bright);
  margin-bottom:12px;
}
.rh-exp-info-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.rh-exp-info-grid--2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.rh-exp-info{
  border:1px solid rgba(58,70,88,.68);
  border-radius:12px;
  background:#121a24;
  padding:11px 12px;
}
.rh-exp-info-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.1px;
  text-transform:uppercase;
  color:#93a2b2;
  margin-bottom:4px;
}
.rh-exp-info-value{
  font-size:14px;
  font-weight:600;
  color:#eef3f8;
  line-height:1.3;
  word-break:break-word;
}
.rh-exp-fiscal-edit{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
  margin-top:10px;
}
.rh-exp-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.rh-exp-doc-list{
  display:grid;
  gap:8px;
}
.rh-exp-doc-item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 12px;
  border:1px solid rgba(58,70,88,.68);
  border-radius:12px;
  background:#121a24;
}
.rh-exp-doc-text{
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.rh-exp-doc-dot{
  width:9px;
  height:9px;
  border-radius:999px;
  background:#6d7f92;
  flex:0 0 9px;
}
.rh-exp-doc-dot.is-complete{
  background:#4fd49a;
}
.rh-exp-doc-name{
  font-size:13px;
  color:#e6edf4;
}
.rh-exp-doc-name.is-muted{
  color:#98a7b7;
}
.rh-exp-check{
  display:inline-flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
}
.rh-exp-check input{
  width:16px;
  height:16px;
}
.rh-modal-foot .btn{
  min-height:40px;
  border-radius:10px;
  box-shadow:none;
}
.rh-modal-foot .btn-ghost{
  border:1px solid rgba(58,70,88,.92);
  background:transparent;
  color:#c7d1db;
}
.rh-modal-foot .btn-ghost:hover{
  background:#18202b;
}
.rh-modal-foot .btn-gold{
  border:none;
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#11161d;
  box-shadow:0 4px 16px rgba(255,213,0,.25);
}
.rh-modal-foot .btn-gold:hover{
  background:linear-gradient(135deg,var(--gold),var(--gold2));
}

.rh-salary-shell{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.rh-salary-detail-shell{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.rh-salary-detail-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px 10px;
  border:1px solid rgba(38,52,70,.82);
  border-radius:0;
  background:linear-gradient(180deg,#0f1c2b 0%, #0c1622 100%);
}
.rh-salary-detail-overline{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.45px;
  text-transform:uppercase;
  color:#75879b;
}
.rh-salary-detail-role{
  margin:4px 0 3px;
  font-family:'Inter',sans-serif;
  font-size:18px;
  font-weight:800;
  line-height:1.06;
  color:#f6f8fc;
}
.rh-salary-detail-meta{
  font-size:12px;
  line-height:1.3;
  color:#899aaf;
}
.rh-detail-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.rh-detail-edit{
  min-height:31px;
  padding:0 12px;
  border-radius:10px;
  border:1px solid rgba(49,64,83,.9);
  background:#0f1722;
  color:#cdd7e1;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:.75px;
  text-transform:uppercase;
}
.rh-detail-edit:hover{
  background:#132032;
  border-color:#6d7f95;
}
.rh-detail-back{
  min-height:31px;
  padding:0 13px;
  border-radius:10px;
  border:1px solid rgba(49,64,83,.9);
  background:#132032;
  color:#d6dee7;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:.75px;
  text-transform:uppercase;
}
.rh-detail-back:hover{
  background:#17263a;
  border-color:#6d7f95;
}
.rh-detail-card{
  padding:14px 16px;
  border:1px solid rgba(38,52,70,.82);
  border-radius:14px;
  background:linear-gradient(180deg,#0f1723 0%, #0c141f 100%);
}
.rh-detail-card--occupants{
  padding-top:0;
  overflow:hidden;
}
.rh-detail-card--occupants .rh-detail-card-label{
  margin:0 -16px 0;
  padding:10px 16px 9px;
  background:linear-gradient(180deg,#101c2b 0%, #0d1723 100%);
  border-bottom:1px solid rgba(24,36,51,.95);
}
.rh-detail-card-label{
  margin-bottom:12px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.35px;
  text-transform:uppercase;
  color:#6f8297;
}
.rh-detail-grid{
  display:grid;
  gap:10px;
}
.rh-detail-grid--salary,
.rh-detail-grid--benefits{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.rh-detail-field-label{
  margin-bottom:5px;
  font-size:11px;
  line-height:1.3;
  color:#92a4b8;
}
.rh-detail-field-label.is-accent{
  color:#ffd43f;
  font-weight:700;
}
.rh-detail-field-value{
  min-height:36px;
  display:flex;
  align-items:center;
  padding:0 12px;
  border:1px solid rgba(37,51,68,.86);
  border-radius:11px;
  background:#09111a;
  color:#f3f7fb;
  font-size:13px;
  font-weight:700;
}
.rh-detail-benefits{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.rh-detail-benefit{
  display:inline-flex;
  align-items:center;
  min-height:26px;
  padding:0 10px;
  border-radius:9px;
  border:1px solid rgba(58,70,88,.92);
  background:#101824;
  font-size:11px;
  font-weight:700;
  color:#d8e1ea;
}
.rh-detail-benefit.is-green{
  border-color:rgba(74,173,126,.34);
  background:rgba(51,131,91,.14);
  color:#7fe0b4;
}
.rh-detail-benefit.is-purple{
  border-color:rgba(164,132,255,.32);
  background:rgba(118,86,208,.14);
  color:#c8baff;
}
.rh-detail-benefit.is-blue{
  border-color:rgba(114,184,255,.28);
  background:rgba(76,128,207,.16);
  color:#b8d7ff;
}
.rh-detail-stats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin-top:14px;
  padding-top:10px;
  border-top:1px solid rgba(24,36,51,.95);
}
.rh-detail-stat-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:#6f8297;
}
.rh-detail-stat-value{
  margin-top:4px;
  font-size:14px;
  font-weight:800;
  color:#f2f6fa;
}
.rh-detail-stat-value.is-gold{
  color:#ffd43f;
}
.rh-detail-occupants{
  border-top:none;
}
.rh-detail-occupant{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:12px 16px;
  border-top:1px solid rgba(24,36,51,.9);
}
.rh-detail-occupant:first-child{
  border-top:none;
}
.rh-detail-occupant-main{
  min-width:0;
  flex:1 1 auto;
}
.rh-detail-occupant-name{
  font-size:13px;
  font-weight:700;
  color:#f4f7fb;
}
.rh-detail-occupant-meta{
  margin-top:2px;
  font-size:11px;
  color:#8ea0b4;
}
.rh-detail-occupant-bar{
  width:274px;
  max-width:100%;
  height:5px;
  margin-top:8px;
  border-radius:999px;
  overflow:hidden;
  background:#202c3d;
  position:relative;
}
.rh-detail-occupant-marker{
  position:absolute;
  top:0;
  width:2px;
  height:100%;
  border-radius:999px;
  background:#ffd43f;
  box-shadow:0 0 0 1px rgba(255,212,63,.18);
}
.rh-detail-occupant-pay{
  flex:0 0 auto;
  font-size:13px;
  font-weight:800;
  color:#f4f7fb;
}
.rh-detail-empty{
  padding:16px;
  font-size:12px;
  color:#95a6b8;
}
.rh-salary-topbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}
.rh-salary-titlegroup{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.rh-salary-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--gold2);
}
.rh-salary-title{
  font-family:'Inter',sans-serif;
  font-size:18px;
  font-weight:700;
  line-height:1.1;
  color:#f6f8fc;
}
.rh-salary-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.rh-salary-iconbtn{
  width:40px;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid rgba(58,70,88,.92);
  background:#162131;
  color:#c9d4de;
  font-size:18px;
  font-weight:700;
  box-shadow:0 10px 22px rgba(0,0,0,.16);
}
.rh-salary-iconbtn:hover{
  background:#1a2739;
  border-color:#738397;
}
.rh-salary-iconbtn--primary{
  border-color:rgba(255,213,0,.3);
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  color:#11161d;
}
.rh-salary-iconbtn--primary:hover{
  background:linear-gradient(135deg,var(--gold),var(--gold2));
  border-color:rgba(255,213,0,.45);
}
.rh-salary-metrics{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  border:1px solid rgba(58,70,88,.86);
  border-radius:16px;
  overflow:hidden;
  background:#121b28;
}
.rh-salary-metric{
  position:relative;
  padding:14px 16px 12px;
  background:linear-gradient(180deg,#162233 0%, #121b28 100%);
  border-right:1px solid rgba(58,70,88,.7);
}
.rh-salary-metric:last-child{
  border-right:none;
}
.rh-salary-metric::before{
  content:'';
  position:absolute;
  top:12px;
  left:14px;
  width:20px;
  height:2px;
  border-radius:999px;
  background:#7f90a6;
}
.rh-salary-metric-value{
  margin-top:6px;
  font-size:18px;
  line-height:1.05;
  font-weight:800;
  color:#f4f7fb;
}
.rh-salary-metric-label{
  margin-top:6px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:#92a2b4;
}
.rh-salary-metric.is-blue::before{background:#68a7ff}
.rh-salary-metric.is-blue .rh-salary-metric-value{color:#68a7ff}
.rh-salary-metric.is-gold::before{background:#ffd33d}
.rh-salary-metric.is-gold .rh-salary-metric-value{color:#ffd33d}
.rh-salary-metric.is-green::before{background:#2fd3a1}
.rh-salary-metric.is-green .rh-salary-metric-value{color:#2fd3a1}
.rh-salary-metric.is-emerald::before{background:#38c78f}
.rh-salary-metric.is-emerald .rh-salary-metric-value{color:#38c78f}
.rh-salary-metric.is-emerald .rh-salary-metric-value{
  font-size:17px;
}
.rh-salary-search{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:42px;
  padding:0 14px;
  border-radius:13px;
  border:1px solid rgba(58,70,88,.82);
  background:#101a27;
}
.rh-salary-search-icon{
  color:#6f8095;
  font-size:14px;
  line-height:1;
}
.rh-salary-search-icon svg{
  display:block;
  width:12px;
  height:12px;
  stroke:currentColor;
}
.rh-salary-search-input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  color:#eef3f8;
  font-size:14px;
}
.rh-salary-search-input::placeholder{
  color:#73859a;
}
.rh-salary-board{
  border:1px solid rgba(58,70,88,.84);
  border-radius:18px;
  background:#111a27;
  overflow:hidden;
}
.rh-salary-board-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  background:linear-gradient(180deg,#0f1620 0%, #101924 100%);
}
.rh-salary-board-title{
  font-family:'Inter',sans-serif;
  font-size:14px;
  font-weight:700;
  color:#f5f8fc;
}
.rh-salary-board-count{
  font-family:'Barlow Condensed',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:1.2px;
  color:#8fa0b4;
}
.rh-salary-table-shell{
  overflow-x:auto;
  overflow-y:hidden;
}
.rh-salary-table{
  width:100%;
  border-collapse:collapse;
  table-layout:fixed;
}
.rh-salary-table thead th{
  padding:10px 10px;
  background:#0f1722;
  border-top:1px solid rgba(58,70,88,.72);
  border-bottom:1px solid rgba(58,70,88,.72);
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:#9babbc;
  white-space:nowrap;
  text-align:left;
}
.rh-salary-col--role{width:22%}
.rh-salary-col--level{width:13%}
.rh-salary-col--range{width:16%}
.rh-salary-col--base{width:14%}
.rh-salary-col--benefits{width:16%}
.rh-salary-col--staffing{width:19%}
.rh-salary-table tbody tr{
  border-bottom:1px solid rgba(38,49,67,.86);
  background:linear-gradient(180deg,rgba(20,29,42,.96) 0%, rgba(18,27,40,.96) 100%);
}
.rh-salary-table tbody tr:hover{
  background:linear-gradient(180deg,rgba(32,45,63,.98) 0%, rgba(28,40,57,.98) 100%);
}
.rh-salary-table tbody tr:last-child{
  border-bottom:none;
}
.rh-salary-table td{
  padding:12px 10px;
  vertical-align:middle;
  color:#edf3f8;
  font-size:13px;
  text-align:left;
}
.rh-salary-table thead th:last-child,
.rh-salary-cell--staffing{
  text-align:right;
}
.rh-salary-cell--level{
  white-space:nowrap;
}
.rh-salary-role{
  font-size:13px;
  font-weight:700;
  line-height:1.2;
  color:#f4f7fb;
}
.rh-salary-role-meta{
  margin-top:3px;
  font-size:11px;
  line-height:1.3;
  color:#8fa0b3;
}
.rh-salary-level{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:23px;
  padding:0 8px;
  border-radius:999px;
  background:#243044;
  color:#dbe4ed;
  font-size:10px;
  font-weight:800;
  line-height:1;
}
.rh-salary-level.is-specialized{background:rgba(255,213,0,.16);color:#ffd43f}
.rh-salary-level.is-technical{background:rgba(34,197,94,.16);color:#31d27c}
.rh-salary-level.is-operative{background:rgba(116,136,166,.18);color:#9dadc0}
.rh-salary-level.is-coordination{background:rgba(34,124,255,.18);color:#58a2ff}
.rh-salary-level.is-analyst{background:rgba(63,148,255,.18);color:#5fb0ff}
.rh-salary-level.is-leadership{background:rgba(135,92,255,.18);color:#a58dff}
.rh-salary-range,
.rh-salary-base,
.rh-salary-benefit-main{
  font-size:12px;
  font-weight:700;
  color:#edf3f8;
  white-space:nowrap;
}
.rh-salary-base{
  font-size:12.5px;
}
.rh-salary-sub{
  margin-top:3px;
  font-size:11px;
  color:#7f92a7;
}
.rh-salary-staffing{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:12px;
}
.rh-salary-staffing-bar{
  width:88px;
  flex:0 0 88px;
  height:6px;
  overflow:hidden;
  border-radius:999px;
  background:#263242;
}
.rh-salary-staffing-bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:#f5d11d;
}
.rh-salary-staffing-bar span.is-full{
  background:#27c98a;
}
.rh-salary-staffing-text{
  font-size:12px;
  font-weight:800;
  color:#f5d11d;
  white-space:nowrap;
  min-width:32px;
  text-align:right;
}
.rh-salary-staffing-text.is-full{
  color:#27c98a;
}
.rh-salary-empty{
  padding:22px;
  color:#90a1b4;
  font-size:13px;
}
.rh-salary-metric.is-coral::before{background:#ff7b73}
.rh-salary-metric.is-coral .rh-salary-metric-value{color:#ff7b73}
.rh-salary-metric.is-amber::before{background:#ffbe5c}
.rh-salary-metric.is-amber .rh-salary-metric-value{color:#ffbe5c}
.rh-meal-metric-action{
  border:none;
  width:100%;
  text-align:left;
  cursor:pointer;
}
.rh-meal-metric-action:hover{
  background:linear-gradient(180deg,#1a2840 0%, #152133 100%);
}
.rh-meal-table .rh-meal-col--employee{width:29%}
.rh-meal-table .rh-meal-col--bought{width:13%}
.rh-meal-table .rh-meal-col--consumption{width:21%}
.rh-meal-table .rh-meal-col--balance{width:12%}
.rh-meal-table .rh-meal-col--debt{width:16%}
.rh-meal-table .rh-meal-col--action{width:9%}
.rh-meal-number{
  font-size:13px;
  font-weight:700;
  color:#edf3f8;
}
.rh-meal-consumption{
  display:flex;
  align-items:center;
  gap:10px;
}
.rh-meal-consumption-bar{
  width:118px;
  flex:0 0 118px;
  height:6px;
  overflow:hidden;
  border-radius:999px;
  background:#263242;
}
.rh-meal-consumption-bar span{
  display:block;
  height:100%;
  border-radius:999px;
  background:#f5d11d;
}
.rh-meal-consumption-text{
  min-width:38px;
  font-size:12px;
  font-weight:800;
  color:#f5d11d;
  white-space:nowrap;
}
.rh-meal-consumption-text.is-zero{
  color:#caa948;
}
.rh-meal-balance{
  font-size:12px;
  font-weight:800;
  color:#f3f7fb;
  white-space:nowrap;
}
.rh-meal-balance.is-zero{
  color:#ff7b73;
}
.rh-meal-debt{
  font-size:12px;
  font-weight:800;
  color:#f3f7fb;
  white-space:nowrap;
}
.rh-meal-debt.is-danger{
  color:#ff7b73;
}
.rh-meal-cell--action{
  text-align:right;
}
.rh-meal-action{
  min-height:30px;
  padding:0 11px;
  border-radius:10px;
  border:1px solid rgba(49,64,83,.9);
  background:#0f1722;
  color:#d6dee7;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:.75px;
  text-transform:uppercase;
}
.rh-meal-action:hover{
  background:#132032;
  border-color:#6d7f95;
}
.rh-meal-shell .rh-salary-empty{
  padding:18px 16px 16px;
  font-size:12px;
  color:#8ea0b5;
}
.rh-modal--meal-price{
  width:min(100%,404px);
  max-width:404px;
  border-radius:18px;
  border-color:rgba(49,63,81,.9);
  box-shadow:0 18px 44px rgba(0,0,0,.3);
}
.rh-modal--meal-price .rh-modal-head{
  padding:18px 20px 14px;
  gap:14px;
  background:#182231;
}
.rh-modal--meal-price .rh-modal-kicker{
  font-size:10px;
  letter-spacing:1.3px;
  margin-bottom:4px;
}
.rh-modal--meal-price .rh-modal-title{
  font-size:17px;
}
.rh-modal--meal-price .rh-modal-sub{
  margin-top:5px;
  max-width:320px;
  font-size:11px;
  line-height:1.42;
}
.rh-modal--meal-price .rh-modal-close{
  width:30px;
  height:30px;
  flex:0 0 30px;
  border-radius:9px;
  font-size:13px;
}
.rh-modal--meal-price .rh-modal-body{
  padding:18px 20px;
  gap:14px;
}
.rh-modal--meal-price .rh-modal-foot{
  padding:14px 20px 18px;
}
.rh-modal--meal-price .rh-modal-foot .btn{
  min-height:38px;
  padding:0 16px;
  border-radius:10px;
  font-size:12px;
}
.rh-modal--meal-price .rh-modal-foot .btn-gold{
  box-shadow:0 2px 10px rgba(255,213,0,.18);
}
.rh-modal--meal-price .rh-panel-card{
  padding:16px;
  border-radius:16px;
  border-color:rgba(50,63,81,.8);
  background:#0f1722;
}
.rh-modal--meal-price .rh-panel-card--section{
  gap:12px;
}
.rh-modal--meal-price .rh-panel-title{
  font-size:14px;
}
.rh-modal--meal-price .rh-panel-copy{
  font-size:11px;
  line-height:1.42;
  max-width:45ch;
}
.rh-modal--meal-price .rh-field-label{
  font-size:10px;
  letter-spacing:1px;
}
.rh-modal--meal-price .rh-input{
  min-height:42px;
  padding:8px 11px;
  border-radius:10px;
  font-size:13px;
}
.rh-meal-price-input{
  text-align:center;
  font-size:24px;
  font-weight:800;
  color:#ffd43f;
}

@media (max-width: 1100px){
  .rh-meal-consumption{
    gap:8px;
  }
  .rh-meal-consumption-bar{
    width:100px;
    flex-basis:100px;
  }
  .rh-meal-action{
    padding:0 10px;
    font-size:10px;
  }
}

/* ── CARDS ── */
.cards-list{display:flex;flex-direction:column;gap:8px}
.eq-card{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r3);padding:14px 15px;cursor:pointer;transition:border-color .2s;position:relative;overflow:hidden}
.eq-card:active{background:var(--plate)}
.eq-card-top{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:10px;gap:8px}
.eq-card-id{font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:700;letter-spacing:2px;color:var(--gold);margin-bottom:2px}
.eq-card-name{font-family:'Inter',sans-serif;font-size:16px;font-weight:600;color:var(--white);line-height:1.1}
.eq-card-brand{font-size:15px;color:var(--soft);font-weight:300;margin-top:2px}
.eq-card-body{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.eq-card-meta{display:flex;align-items:center;gap:14px;margin-top:8px;padding-top:8px;border-top:1px solid rgba(28,35,51,.7)}
.eq-card-loc{display:flex;align-items:center;gap:5px;font-size:15px;color:var(--soft);font-weight:300}
.eq-card-mant{font-family:'Barlow Condensed',sans-serif;font-size:15px;margin-left:auto}
/* ── EQ CARD QUICK LINKS ── */
.eq-card-links{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid var(--wire)}
.eq-link{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:8px 4px;border-radius:var(--r);border:1px solid var(--wire);background:var(--steel);color:var(--soft);font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:.3px;cursor:pointer;transition:all .15s;-webkit-tap-highlight-color:transparent;min-height:52px;position:relative}
.eq-link:active{opacity:.7}
.eq-link-active{border-color:rgba(255,213,0,.35);background:rgba(255,213,0,.07);color:var(--gold)}
.eq-link-warn{border-color:rgba(192,48,64,.35);background:rgba(192,48,64,.08);color:#e96070}
.eq-link-ghost{grid-column:span 4;border-color:var(--rim);background:transparent;color:var(--muted);flex-direction:row;min-height:36px;font-size:12px;justify-content:center}
.eq-link-ico{font-size:16px;line-height:1}
.eq-link-num{font-size:13px;font-weight:800;line-height:1}
.eq-link-lbl{font-size:10px;color:inherit;opacity:.85}
.eq-link-badge{position:absolute;top:4px;right:4px;background:var(--gold);color:#0a0c10;font-size:9px;font-weight:800;padding:1px 5px;border-radius:6px;line-height:1.5}
.eq-link-badge.warn{background:var(--crimson);color:#fff}


.cap-bar-w{width:40px;height:3px;background:var(--rim);border-radius:3px;overflow:hidden;flex-shrink:0}
.cap-fill{height:100%;border-radius:3px}
.cap-num{font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:600;color:var(--bright)}

/* ── STATUS PILLS ── */
.spill{display:inline-flex;align-items:center;gap:5px;padding:4px 9px;border-radius:100px;font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:600;letter-spacing:1px;text-transform:uppercase;white-space:nowrap;flex-shrink:0}
.s-dot{width:5px;height:5px;border-radius:50%;flex-shrink:0}
.sp-op{background:rgba(46,171,111,.1);border:1px solid rgba(46,171,111,.2);color:#4fd49a}
.sp-op .s-dot{background:var(--jade);animation:sop 2s ease-in-out infinite}
@keyframes sop{0%,100%{box-shadow:0 0 0 0 rgba(46,171,111,.6)}50%{box-shadow:0 0 0 3px rgba(46,171,111,0)}}
.sp-maint{background:rgba(255,213,0,.08);border:1px solid rgba(255,213,0,.2);color:var(--gold3)}
.sp-maint .s-dot{background:var(--gold)}
.sp-fs{background:rgba(192,48,64,.1);border:1px solid rgba(192,48,64,.25);color:#e96070}
.sp-fs .s-dot{background:var(--crimson)}
.sp-sb{background:rgba(59,130,196,.1);border:1px solid rgba(59,130,196,.2);color:#6fb0e8}
.sp-sb .s-dot{background:var(--ice)}
.sp-pend{background:rgba(212,95,46,.1);border:1px solid rgba(212,95,46,.25);color:#e8895a}
.sp-pend .s-dot{background:var(--ember)}
.sp-comp{background:rgba(46,171,111,.1);border:1px solid rgba(46,171,111,.2);color:#4fd49a}
.sp-comp .s-dot{background:var(--jade)}

/* ── TABLE (desktop) ── */
.tframe{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r2);overflow:hidden}
table{width:100%;border-collapse:collapse}
thead{background:var(--deep);border-bottom:1px solid var(--wire)}
thead th{padding:11px 14px;text-align:left;font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:600;letter-spacing:2.5px;color:var(--soft);text-transform:uppercase;white-space:nowrap}
tbody tr{border-bottom:1px solid rgba(28,35,51,.8);cursor:pointer;transition:background .15s}
tbody tr:last-child{border-bottom:none}
tbody tr:active{background:var(--plate)}
td{padding:12px 14px;font-size:14px;color:var(--bright);vertical-align:middle}
.cell-id .eq-id{font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:700;letter-spacing:1.5px;color:var(--gold);display:block}
.cell-id .eq-name{font-family:'Inter',sans-serif;font-size:14px;font-weight:500;color:var(--white)}

.mc{font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:500}
.mc.over{color:var(--crimson)}.mc.soon{color:var(--gold2)}.mc.fine{color:var(--soft)}

/* ── BUTTONS ── */
.btn{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border-radius:var(--r);font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;cursor:pointer;border:none;transition:all .2s;justify-content:center;min-height:40px}
.btn-sm{padding:7px 12px;min-height:34px;border-radius:12px;font-size:12px;letter-spacing:1.1px;gap:5px;box-shadow:none}
.btn-gold{background:linear-gradient(135deg,var(--gold),var(--gold2));color:#0a0c10;box-shadow:0 4px 16px rgba(255,213,0,.25)}
.btn-gold:active{opacity:.85}
.btn-ghost{background:transparent;color:var(--soft);border:1px solid var(--wire)}
.btn-ghost:active{background:var(--plate)}
.btn-danger{background:rgba(192,48,64,.15);color:#e96070;border:1px solid rgba(192,48,64,.25)}
.btn-jade{background:rgba(46,171,111,.15);color:#4fd49a;border:1px solid rgba(46,171,111,.25)}
.btn-ice{background:rgba(59,130,196,.15);color:#7bbce8;border:1px solid rgba(59,130,196,.3)}
#tecnicoVeil .mfoot{justify-content:flex-end}
#tecnicoVeil .mfoot .btn{flex:0 0 auto;min-width:120px;padding:8px 14px;min-height:36px;font-size:13px;letter-spacing:1.1px}
#tecnicoVeil .mfoot .btn-ghost{min-width:108px}
.supply-inline-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:10px}
.supply-inline-btn{padding:7px 12px;min-height:34px;font-size:13px;letter-spacing:.4px;text-transform:none;border-radius:10px;justify-content:flex-start}
.comp-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:8px 14px;border-radius:9px;font-family:'Barlow Condensed',sans-serif;font-size:12.5px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;cursor:pointer;white-space:nowrap}
.comp-btn--ghost{background:transparent;border:1px solid #30404e;color:#c4cfd8}
.comp-btn--gold{border:none;background:linear-gradient(135deg,#ffd500,#ffe040);color:#0a0c10}
.comp-btn--ice{background:rgba(59,130,196,.12);border:1px solid rgba(59,130,196,.3);color:#bfe7ff}
.comp-btn--danger{background:rgba(192,48,64,.12);border:1px solid rgba(192,48,64,.35);color:#f29aa6}
.comp-inline-btn{padding:6px 11px;min-height:31px;border-radius:8px;font-size:11.5px;letter-spacing:.5px}
.comp-modal-shell{background:#18202e;border:1px solid #30404e;border-radius:18px;overflow:hidden;box-shadow:0 24px 80px rgba(0,0,0,.42)}
.comp-modal-head{padding:18px 22px;border-bottom:1px solid #263042;background:#18202e}
.comp-modal-title{font-size:16px;font-weight:700;color:#f5f7fc}
.comp-modal-sub{font-size:12px;color:#8a98a6;margin-top:3px}
.comp-modal-body{padding:18px 22px;background:#18202e;flex:1 1 auto;min-height:0;overflow:auto}
.comp-modal-foot{padding:16px 22px;border-top:1px solid #263042;background:#121820;display:flex;justify-content:flex-end;gap:8px;align-items:center}
.comp-note{margin-bottom:12px;padding:11px 12px;border-radius:12px;border:1px solid rgba(255,213,0,.2);background:rgba(255,213,0,.06);font-size:12px;color:var(--soft)}
.comp-note strong{color:var(--gold)}
.supply-table-panel{padding:14px}
.supply-table-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-bottom:12px}
.supply-table-heading{display:grid;gap:4px}
.supply-table-kicker{font-family:'Barlow Condensed',sans-serif;font-size:18px;font-weight:700;letter-spacing:1.5px;color:var(--bright);text-transform:uppercase}
.supply-table-sub{font-size:12px;color:var(--muted)}
.supply-table-search{min-width:min(420px,100%);flex:1 1 320px}
.supply-bulk-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px;padding:12px 14px;border-radius:14px;border:1px solid rgba(255,213,0,.18);background:linear-gradient(180deg,rgba(255,213,0,.09),rgba(255,213,0,.04))}
.supply-bulk-copy{font-size:12px;color:var(--soft)}
.supply-bulk-copy strong{color:var(--gold)}
.supply-bulk-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.supply-table-scroll{max-height:min(68vh,760px)}
.supply-workflow-table{min-width:1040px}
.supply-workflow-table td{vertical-align:top}
.supply-select-cell,.supply-select-head{display:inline-flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;font-weight:700;letter-spacing:.6px;text-transform:uppercase;color:var(--muted)}
.supply-select-cell input,.supply-select-head input{width:16px;height:16px;accent-color:#ffd500;cursor:pointer}
.supply-select-disabled{display:inline-flex;align-items:center;justify-content:center;width:100%;font-size:11px;color:var(--muted)}
.supply-table-primary{font-size:11px;font-weight:700;color:var(--gold);margin-bottom:3px}
.supply-table-title{font-size:13px;font-weight:600;color:var(--bright);line-height:1.35}
.supply-table-meta{font-size:11px;color:var(--soft);margin-top:4px;line-height:1.45}
.supply-table-note{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.45}
.supply-table-accent{color:var(--gold)}
.supply-table-chip{display:inline-flex;align-items:center;padding:4px 9px;border-radius:999px;border:1px solid rgba(255,255,255,.08);font-size:10px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;color:var(--bright)}
.supply-table-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.comp-table-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.comp-overlay{position:fixed;top:60px;left:280px;right:0;bottom:0;z-index:70;background:rgba(4,5,8,.75);backdrop-filter:blur(3px);display:flex;justify-content:center;padding:20px;overflow:auto}
.comp-overlay--center{align-items:center}
.comp-overlay--top{align-items:flex-start}
.comp-modal-shell--wide{display:flex;flex-direction:column;width:100%;max-width:1080px;max-height:calc(100vh - 120px);min-height:0}
.comp-modal-shell--xl{display:flex;flex-direction:column;width:100%;max-width:980px;max-height:calc(100vh - 120px);min-height:0}
.comp-modal-shell--md{display:flex;flex-direction:column;width:100%;max-width:840px;max-height:calc(100vh - 120px);min-height:0}
.comp-modal-shell--sm{display:flex;flex-direction:column;width:100%;max-width:460px;max-height:calc(100vh - 120px);min-height:0}
.comp-modal-card{border:1px solid #263042;border-radius:14px;padding:14px;background:#121820}
.comp-modal-grid-2{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.comp-field-stack{display:grid;gap:12px}
.comp-field-label{display:block;margin-bottom:6px;font-family:'Barlow Condensed',sans-serif;font-size:11.5px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#9aaab8}
.comp-helper-text{font-size:11px;color:var(--muted);line-height:1.45}
.comp-table-scroll{border:1px solid #263042;border-radius:14px;overflow:auto;background:#121820}
.comp-table{width:100%;min-width:640px;border-collapse:collapse}
.comp-table th{padding:12px 14px;border-bottom:1px solid #263042;font-family:'Barlow Condensed',sans-serif;font-size:11.5px;font-weight:700;letter-spacing:.9px;text-transform:uppercase;color:#9aaab8;text-align:left;background:#121820}
.comp-table td{padding:12px 14px;border-bottom:1px solid rgba(38,48,66,.8);vertical-align:top;font-size:12px;color:var(--soft)}
.comp-table tbody tr:last-child td{border-bottom:none}
.comp-choice-btn{width:100%;padding:10px;border-radius:10px;border:1px solid #30404e;background:#121820;color:var(--soft);cursor:pointer;text-align:left}
.comp-choice-btn.is-active{background:rgba(79,212,154,.14);border-color:rgba(79,212,154,.4);color:var(--bright)}
.comp-choice-btn[disabled]{cursor:default;opacity:.92}
.comp-eyebrow{font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:700;letter-spacing:1.1px;text-transform:uppercase;color:var(--gold)}
.supply-compact-card{padding:10px 12px!important}
.supply-compact-head{margin-bottom:6px!important}
.supply-compact-actions{margin-top:6px!important}
.supply-compact-summary{margin-top:6px!important;padding:8px 10px!important}
.supply-compact-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.supply-compact-summary-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-top:6px}
.supply-dense-card{padding:9px 12px!important}
.supply-dense-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:start;margin-bottom:4px}
.supply-dense-title{display:flex;align-items:center;gap:8px;min-width:0}
.supply-dense-folio{font-size:11px;font-weight:700;color:var(--gold);white-space:nowrap}
.supply-dense-name{font-size:13px;font-weight:600;color:var(--bright);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.supply-dense-meta{font-size:11px;color:var(--muted);display:flex;gap:8px;flex-wrap:wrap;min-width:0}
.supply-dense-summary{margin-top:4px;padding:6px 8px!important}
.supply-dense-summary-grid{display:grid;grid-template-columns:1.25fr .8fr .8fr auto;gap:8px;align-items:center}
.supply-dense-actions{margin-top:5px!important}
.supply-dense-actions .supply-inline-btn{padding:5px 10px;min-height:30px;font-size:12px}
.almx-shell{display:grid;gap:10px;min-width:0}
.almx-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:0}
.almx-kpi-card{position:relative;padding:11px 12px;border:1px solid var(--wire);border-radius:13px;background:linear-gradient(180deg,#18202e 0%,#121820 100%);display:grid;gap:4px;overflow:hidden;min-width:0}
.almx-kpi-card::before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:rgba(255,224,64,.9)}
.almx-kpi-card.is-crimson::before{background:rgba(233,96,112,.95)}
.almx-kpi-card.is-ice::before{background:rgba(74,163,255,.95)}
.almx-kpi-card.is-gold::before{background:rgba(255,213,0,.95)}
.almx-kpi-card span{font-size:10px;font-family:'Barlow Condensed',sans-serif;font-weight:700;letter-spacing:1px;color:var(--soft);text-transform:uppercase}
.almx-kpi-card strong{font-size:24px;line-height:1;color:var(--bright);font-family:'Barlow Condensed',sans-serif;font-weight:700}
.almx-kpi-card small{font-size:11px;color:var(--muted);line-height:1.3}
.almx-kpi-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;min-width:0}
.almx-kpi-strip-item{display:grid;gap:4px;padding:11px 13px;border:1px solid var(--wire);border-radius:13px;background:rgba(255,255,255,.02);position:relative;overflow:hidden;min-width:0}
.almx-kpi-strip-item::before{content:'';position:absolute;inset:0 auto 0 0;width:3px;background:rgba(255,224,64,.9)}
.almx-kpi-strip-item.is-crimson::before{background:rgba(233,96,112,.95)}
.almx-kpi-strip-item.is-ice::before{background:rgba(74,163,255,.95)}
.almx-kpi-strip-item.is-jade::before{background:rgba(46,171,111,.95)}
.almx-kpi-strip-item.is-gold::before{background:rgba(255,213,0,.95)}
.almx-kpi-strip-item span{font-size:10px;font-family:'Barlow Condensed',sans-serif;font-weight:700;letter-spacing:.9px;color:var(--soft);text-transform:uppercase;line-height:1.2}
.almx-kpi-strip-item strong{font-size:22px;line-height:1;color:var(--bright);font-family:'Barlow Condensed',sans-serif;font-weight:700}
.almx-panel{border:1px solid var(--wire);border-radius:16px;background:linear-gradient(180deg,#18202e 0%,#121820 100%);padding:15px;min-width:0}
.almx-shell--prestamos{gap:12px}
.almx-shell--prestamos .almx-panel{padding:14px}
.almx-shell--prestamos .almx-kpi-strip{gap:8px}
.almx-shell--prestamos .almx-kpi-strip-item{gap:2px;padding:10px 12px;border-radius:12px}
.almx-shell--prestamos .almx-kpi-strip-item span{font-size:9.5px;letter-spacing:.8px}
.almx-shell--prestamos .almx-kpi-strip-item strong{font-size:21px}
.almx-panel-kicker,.almx-modal-kicker{font-family:'Barlow Condensed',sans-serif;font-size:11.5px;font-weight:700;letter-spacing:1.35px;color:var(--soft);text-transform:uppercase}
.almx-toolbar{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;flex-wrap:wrap;margin-bottom:10px;min-width:0}
.almx-toolbar-copy{flex:1 1 320px;min-width:0}
.almx-toolbar-sub{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.4}
.almx-toolbar-meta{display:flex;flex-wrap:wrap;gap:8px 12px;align-items:center;margin-top:7px;min-width:0}
.almx-toolbar-count{font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:700;letter-spacing:1px;color:#9aaab8;text-transform:uppercase}
.almx-toolbar-source{font-size:11.5px;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.almx-toolbar-actions{display:flex;gap:8px 10px;flex-wrap:wrap;align-items:center;justify-content:space-between;flex:1 1 100%;min-width:0}
.almx-toolbar-actions--prestamos{align-items:flex-start;gap:12px}
.almx-filter-row,.almx-action-row{display:flex;gap:8px;flex-wrap:wrap;align-items:center;min-width:0}
.almx-filter-row{flex:1 1 320px}
.almx-action-row{flex:0 0 auto;justify-content:flex-end}
.almx-filter-row--prestamos{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.almx-action-row--prestamos .almx-toolbar-btn{min-width:220px}
.almx-shell--prestamos .almx-toolbar{gap:12px;margin-bottom:12px}
.almx-shell--prestamos .almx-toolbar-copy{flex:1 1 360px}
.almx-shell--prestamos .almx-toolbar-sub{font-size:11.5px;line-height:1.45;max-width:70ch}
.almx-shell--prestamos .almx-toolbar-meta{gap:6px 10px;margin-top:6px}
.almx-shell--prestamos .almx-toolbar-count{font-size:11.5px;letter-spacing:.9px}
.almx-shell--prestamos .almx-toolbar-source{font-size:11px;white-space:normal;overflow:visible;text-overflow:clip}
.almx-shell--prestamos .almx-filter-row--prestamos{gap:6px}
.almx-shell--prestamos .almx-filter-chip{min-height:34px;padding:0 12px;border-radius:10px;font-size:12px;letter-spacing:.42px}
.almx-shell--prestamos .almx-chip-count{font-size:10.5px}
.almx-shell--prestamos .almx-toolbar-btn{height:34px;padding:0 13px;border-radius:10px;font-size:12.5px;letter-spacing:.8px}
.almx-shell--prestamos .almx-action-row--prestamos .almx-toolbar-btn{min-width:200px}
.almx-toolbar .btn.btn-sm{min-height:32px;padding:6px 11px;border-radius:9px;font-size:11.5px;letter-spacing:.7px}
.almx-filter-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:9px;cursor:pointer;font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:600;letter-spacing:.5px;text-transform:uppercase;border:1px solid #30404e;background:#18202e;color:#c4cfd8;white-space:nowrap;flex-shrink:0;transition:all .15s}
.almx-filter-chip.active{background:linear-gradient(135deg,#ffd500,#ffe040);color:#0a0c10;border-color:transparent}
.almx-chip-count{font-size:11.5px;font-family:'Inter',sans-serif;font-weight:800;color:#f5f7fc}
.almx-filter-chip.active .almx-chip-count{color:#0a0c10}
.almx-table-part{font-size:11.5px;font-family:'Barlow Condensed',sans-serif;font-weight:700;letter-spacing:.72px;color:var(--gold)}
.almx-table-sku-meta{font-size:11px;color:var(--muted);margin-top:2px}
.almx-table-name{font-size:13.5px;font-weight:600;color:var(--bright);line-height:1.3}
.almx-table-meta{font-size:10.5px;color:var(--muted);margin-top:3px;line-height:1.35}
.almx-toolbar-btn,.almx-table-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;text-transform:uppercase;white-space:nowrap}
.almx-toolbar-btn{height:38px;padding:0 15px;border-radius:8px;font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:13.5px;letter-spacing:1px}
.almx-toolbar-btn--primary{border:none;background:linear-gradient(135deg,#ffd500,#ffe040);color:#0a0c10}
.almx-toolbar-btn--ghost{border:1px solid #30404e;background:transparent;color:#c4cfd8;font-size:13px;letter-spacing:.7px}
.almx-doc-help-wrap{display:flex;justify-content:flex-end;margin-bottom:10px}
.almx-doc-help-trigger{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border-radius:999px;border:1px solid #30404e;background:#121820;color:#cbd6e2;font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:700;cursor:pointer;user-select:none;text-decoration:none;appearance:none}
.almx-doc-help-trigger:hover{border-color:#4b6076;background:#162233;color:#eef4fb}
.almx-table-scroll{max-height:min(68vh,760px);overflow-x:auto;overflow-y:auto}
.almx-table{min-width:0}
.ot-table.almx-table--inventario{min-width:680px}
.ot-table.almx-table--salidas{min-width:760px;width:100%}
.ot-table.almx-table--prestamos{min-width:980px;table-layout:fixed}
.almx-table--prestamos th:nth-child(1),.almx-table--prestamos td:nth-child(1){width:13%}
.almx-table--prestamos th:nth-child(2),.almx-table--prestamos td:nth-child(2){width:17%}
.almx-table--prestamos th:nth-child(3),.almx-table--prestamos td:nth-child(3){width:11%}
.almx-table--prestamos th:nth-child(4),.almx-table--prestamos td:nth-child(4){width:9%}
.almx-table--prestamos th:nth-child(5),.almx-table--prestamos td:nth-child(5){width:13%}
.almx-table--prestamos th:nth-child(6),.almx-table--prestamos td:nth-child(6){width:9%;text-align:center}
.almx-table--prestamos th:nth-child(7),.almx-table--prestamos td:nth-child(7){width:10%;text-align:center}
.almx-table--prestamos th:nth-child(8),.almx-table--prestamos td:nth-child(8){width:18%;text-align:right;white-space:nowrap}
.almx-table--prestamos .almx-table-part,
.almx-table--prestamos .almx-table-name,
.almx-table--prestamos .almx-table-meta,
.almx-table--prestamos .almx-table-min{overflow-wrap:anywhere}
.almx-table--prestamos td:nth-child(6),
.almx-table--prestamos td:nth-child(7){vertical-align:top}
.almx-table--prestamos td:nth-child(8){vertical-align:middle}
.almx-table--prestamos .almx-status-chip{min-width:72px}
.almx-table--prestamos .almx-table-actions{align-items:flex-end;flex-direction:column}
.almx-table--prestamos .almx-table-btn--success{min-width:176px}
.almx-shell--prestamos .almx-table-scroll--prestamos{border-top:1px solid rgba(255,255,255,.05);padding-top:0}
.almx-shell--prestamos .almx-table thead th{padding:10px 10px;font-size:10.5px;letter-spacing:1px}
.almx-shell--prestamos .almx-table td{padding:8px 10px}
.almx-shell--prestamos .almx-table-name{font-size:13px;line-height:1.28}
.almx-shell--prestamos .almx-table-part{font-size:11px;letter-spacing:.64px}
.almx-shell--prestamos .almx-table-meta{font-size:10px;line-height:1.3}
.almx-shell--prestamos .almx-table-min{font-size:11.5px}
.almx-shell--prestamos .almx-status-chip{min-height:26px;padding:2px 8px;font-size:10.5px;letter-spacing:.42px}
.almx-shell--prestamos .almx-table-btn{min-height:28px;padding:4px 9px;border-radius:9px;font-size:10.5px;letter-spacing:.45px}
.almx-shell--prestamos .almx-table-btn--success{min-width:160px;padding:5px 10px}
.almx-shell--prestamos .almx-table-btn--danger{border-color:rgba(192,48,64,.35);color:#f29aa6}
.almx-shell--prestamos .almx-table-actions{gap:6px;align-items:center;flex-direction:row;justify-content:flex-end;flex-wrap:nowrap}
.almx-shell--prestamos .almx-table-btn--icon{width:32px;height:32px;min-width:32px;min-height:32px;padding:0;border-radius:9px}
.almx-shell--prestamos .almx-table-btn--icon svg{width:16px;height:16px;display:block;fill:currentColor}
.almx-shell--prestamos .almx-table-btn--success.almx-table-btn--icon{min-width:32px;padding:0}
.almx-shell--prestamos .almx-table-btn--compact{min-width:0;padding:0 10px;gap:5px;white-space:nowrap}
.almx-shell--prestamos .almx-table-btn--compact span{display:block;line-height:1}
.almx-table--salidas thead th,.almx-table--salidas td{padding:6px 7px;box-sizing:border-box}
.almx-table--salidas .almx-status-chip{padding:2px 8px;font-size:11px}
.almx-table--salidas th:nth-child(1),.almx-table--salidas td:nth-child(1){width:13%}
.almx-table--salidas th:nth-child(2),.almx-table--salidas td:nth-child(2){width:29%}
.almx-table--salidas th:nth-child(3),.almx-table--salidas td:nth-child(3){width:9%;text-align:center}
.almx-table--salidas th:nth-child(4),.almx-table--salidas td:nth-child(4){width:16%}
.almx-table--salidas th:nth-child(5),.almx-table--salidas td:nth-child(5){width:15%}
.almx-table--salidas th:nth-child(6),.almx-table--salidas td:nth-child(6){width:14%}
.almx-table--salidas .almx-table-name,.almx-table--salidas .almx-table-part,.almx-table--salidas .almx-table-meta,.almx-table--salidas .almx-table-min{overflow-wrap:anywhere}
.almx-table thead th{padding:11px 12px;font-size:11.5px;letter-spacing:1.1px}
.almx-table tbody tr{cursor:pointer}
.almx-table tbody tr:hover{background:#1a2331}
.almx-table td{vertical-align:middle;padding:9px 11px}
.almx-table-stock{font-size:13px;color:var(--bright);font-weight:700}
.almx-table-stock.is-low{color:#f49aa4}
.almx-table-min,.almx-table-loc{font-size:12px;color:var(--soft)}
.almx-table-actions{display:flex;justify-content:flex-end;gap:6px;flex-wrap:wrap}
.almx-table-btn{min-height:30px;padding:5px 10px;border-radius:8px;font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:.55px}
.almx-table-btn--ghost{background:transparent;border:1px solid #30404e;color:#c4cfd8}
.almx-table-btn--gold{border:none;background:linear-gradient(135deg,#ffd500,#ffe040);color:#0a0c10}
.almx-table-btn--success{background:transparent;border:1px solid #30404e;color:#7fe0b4;font-size:12px;letter-spacing:.5px;padding:6px 12px}
.almx-status-chip{display:inline-flex;align-items:center;justify-content:center;padding:3px 10px;border-radius:100px;border:1px solid rgba(255,255,255,.08);font-size:11.5px;font-family:'Barlow Condensed',sans-serif;font-weight:700;letter-spacing:.4px;text-transform:uppercase;color:var(--bright);line-height:1.2}
.almx-status-chip.is-jade{background:rgba(46,171,111,.12);border-color:rgba(46,171,111,.32);color:#93e4b9}
.almx-status-chip.is-crimson{background:rgba(233,96,112,.12);border-color:rgba(233,96,112,.32);color:#f0a2ad}
.almx-status-chip.is-ice{background:rgba(74,163,255,.12);border-color:rgba(74,163,255,.3);color:#9bd4ff}
.almx-status-chip.is-gold{background:rgba(255,213,0,.12);border-color:rgba(255,213,0,.3);color:#ffe480}
.almx-status-chip.is-dim{background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.08);color:var(--soft)}
.almx-panel--inventario{background:transparent;border:none;padding:0}
.almx-toolbar--inventario{margin-bottom:12px}
.almx-toolbar-actions--inventario{gap:8px 12px}
.almx-toolbar--inventario .almx-search-row{flex:1 1 100%}
.almx-toolbar--inventario .almx-search-row .fi{width:100%}
.almx-toolbar--inventario .almx-filter-row{flex:1 1 auto;gap:8px}
.almx-toolbar--inventario .almx-action-row{flex:0 0 auto;margin-left:auto}
.almx-toolbar--inventario .almx-action-row .almx-toolbar-btn--create{min-width:172px}
.almx-inventory-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:8px 0 12px}
.almx-inventory-title{font-size:15px;font-weight:700;color:#f5f7fc}
.almx-panel--inventario [data-alm-sync-status]:empty{display:none}
.almx-panel--inventario .almx-empty-block{margin-bottom:12px}
.almx-panel--inventario .almx-table-scroll{overflow:auto;border:1px solid #30404e;border-radius:12px;background:#18202e}
.almx-panel--inventario .almx-table thead th{padding:11px 14px;background:#0b0e14;font-size:12px;letter-spacing:2px;color:#9aaab8;border-bottom:1px solid #30404e}
.almx-panel--inventario .almx-table td{padding:11px 14px;border-top:1px solid #263042;vertical-align:middle}
.almx-panel--inventario .almx-table tbody tr:hover{background:#1e2838}
.veil.almx-overlay{position:fixed;top:calc(var(--topbar-h) + var(--safe-top));left:0;right:0;bottom:calc(var(--nav-h) + var(--safe-bot));background:rgba(4,5,8,.42);backdrop-filter:blur(2px);z-index:2300;display:flex;align-items:center;justify-content:center;overflow:auto;padding:20px 18px}
.almx-modal{width:min(1080px,100%);max-width:min(1080px,100%);max-height:min(92vh,calc(100vh - var(--nav-h) - var(--safe-bot) - 26px));display:flex;flex-direction:column;overflow:hidden;background:linear-gradient(180deg,#121820 0%,#07090d 100%);border:1px solid var(--wire);border-radius:16px}
.almx-modal--detail{width:min(1220px,calc(100vw - 56px));max-width:1220px;height:min(86vh,calc(100vh - 120px));max-height:min(86vh,calc(100vh - 120px));background:#18202e;border:1px solid #30404e;border-radius:16px}
.almx-modal--detail--single{width:min(1220px,calc(100vw - 56px));max-width:1220px}
.almx-modal--detail .almx-modal-head{padding:20px 26px;border-bottom:1px solid #263042;display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.almx-modal-title{font-size:17px;line-height:1.08;color:var(--bright);font-family:'Barlow Condensed',sans-serif;font-weight:700}
.almx-modal--detail .almx-modal-title{font-family:'Inter',sans-serif;font-size:19px;line-height:1.1;color:#f5f7fc}
.almx-modal-sub{font-size:11px;color:var(--soft);margin-top:4px}
.almx-modal--detail .almx-modal-sub{font-size:12.5px;color:#8a98a6;margin-top:3px}
.almx-modal-body{padding:14px;overflow-y:auto;display:flex;flex-direction:column;gap:12px;min-height:0}
.almx-modal--detail .almx-modal-body{flex:1 1 0;overflow-y:auto;padding:22px 26px;display:block;min-height:0}
.almx-modal-foot{padding:10px 14px calc(10px + var(--safe-bot));border-top:1px solid var(--wire);display:flex;justify-content:flex-end;gap:8px;background:rgba(11,14,20,.98);flex-shrink:0}
.almx-modal-actions{display:flex;gap:8px;justify-content:flex-end;align-items:center;margin-left:auto}
.almx-modal--detail .almx-modal-foot{flex-shrink:0;padding:14px 26px;border-top:1px solid #263042;background:#121820;display:flex;gap:8px;justify-content:flex-end;border-radius:0 0 16px 16px;overflow:hidden;clip-path:inset(0 round 0 0 16px 16px)}
.almx-modal--detail .almx-modal-foot .btn{min-height:auto;border-radius:8px;font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:13px;letter-spacing:.6px;text-transform:uppercase}
.almx-modal--detail .almx-modal-foot .btn-ghost{padding:9px 18px}
.almx-modal--detail .almx-modal-foot .btn-gold{padding:9px 20px}
.almx-detail-foot-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:42px;padding:0 14px;border-radius:10px;cursor:pointer;font-family:'Barlow Condensed',sans-serif;font-weight:700;font-size:12.5px;letter-spacing:.5px;text-transform:uppercase}
.almx-detail-foot-btn--ghost{background:transparent;border:1px solid #30404e;color:#c4cfd8}
.almx-detail-foot-btn--gold{border:none;background:linear-gradient(135deg,#ffd500,#ffe040);color:#0a0c10}
.almx-detail-foot-icon{font-size:14px;line-height:1}
.almx-modal--detail .btn-ghost{background:transparent;border:1px solid #30404e;color:#c4cfd8}
.almx-modal--detail .btn-gold{background:linear-gradient(135deg,#ffd500,#ffe040);color:#0a0c10;box-shadow:none}
.almx-modal--detail .xbtn{width:32px;height:32px;margin-left:0;border-radius:8px;border:1px solid #30404e;background:#121820;color:#c4cfd8;font-size:15px}
.almx-detail-head-btn{width:28px!important;height:28px!important;min-width:28px;border-radius:8px}
.veil.almx-overlay.almx-overlay--etiquetas{position:fixed;top:calc(var(--topbar-h) + var(--safe-top));left:0;right:0;bottom:0;background:rgba(4,5,8,.82);backdrop-filter:blur(3px);z-index:2300;display:flex;align-items:center;justify-content:center;padding:10px 12px}
.almx-modal--etiquetas{display:flex;flex-direction:column;width:100%;max-width:470px;max-height:calc(100% - 4px);background:#18202e;border:1px solid #30404e;border-radius:14px;overflow:hidden;animation:none}
.almx-detail-head-main{min-width:0;flex:1 1 auto}
.almx-detail-head-row{display:flex;align-items:flex-start;gap:10px;flex-wrap:wrap;min-width:0}
.almx-detail-title-wrap{display:flex;align-items:flex-start;gap:6px;min-width:0;flex:1 1 280px}
.almx-detail-head-row .almx-modal-title{flex:1 1 280px;min-width:0}
.almx-detail-head-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.almx-detail-grid{display:grid;grid-template-columns:minmax(340px,400px) minmax(0,1fr);gap:22px;align-items:start;align-content:start}
.almx-detail-grid--single{grid-template-columns:minmax(340px,400px) minmax(0,1fr)}
.almx-modal--detail .almx-panel{padding:0;border:none;border-radius:0;background:transparent}
.almx-item-media-wrap{display:grid;gap:10px;justify-items:start}
.almx-item-media{width:min(100%,320px);aspect-ratio:4/3;border-radius:12px;border:1px dashed #30404e;background:#121820;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:#586474}
.almx-item-media img{width:100%;height:100%;object-fit:contain;display:block;background:#121820}
.almx-item-media.is-empty{border-style:dashed}
.almx-item-media-icon{font-size:28px;line-height:1}
.almx-item-media-copy{font-size:12px}
.almx-item-media-empty{padding:14px;text-align:center;color:#586474;font-size:12px;line-height:1.45}
.almx-item-media-tools{width:min(100%,320px);display:grid;gap:6px}
.almx-item-media-upload-control{position:relative;display:flex;flex:1 1 auto;min-width:0}
.almx-item-media-upload{display:inline-flex;align-items:center;justify-content:center;flex:1 1 auto;min-height:38px;padding:0 14px;border-radius:10px;border:1px solid #30404e;background:#121820;color:#c4cfd8;font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:700;letter-spacing:.7px;text-transform:uppercase;cursor:pointer;overflow:hidden}
.almx-item-media-upload:hover{border-color:rgba(255,213,0,.24);background:rgba(255,213,0,.05);color:#ffe480}
.almx-item-media-upload-control.is-busy{opacity:.7;pointer-events:none}
.almx-item-media-upload-input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;z-index:1}
.almx-item-media-actions{display:flex;align-items:stretch;gap:8px;flex-wrap:nowrap}
.almx-item-media-delete{display:inline-flex;align-items:center;justify-content:center;flex:0 0 38px;width:38px;min-width:38px;height:38px;padding:0;border-radius:10px;border:1px solid rgba(192,48,64,.35);background:#121820;color:#f29aa6;cursor:pointer}
.almx-item-media-delete:hover{background:rgba(192,48,64,.08);border-color:rgba(192,48,64,.55);color:#ffc3cb}
.almx-item-media-delete svg{width:16px;height:16px;display:block;fill:currentColor}
.almx-item-media-delete[hidden]{display:none}
.almx-item-media-delete:disabled{opacity:.55;cursor:default}
.almx-item-media-hint{font-size:11px;line-height:1.4;color:#8a98a6}
.almx-detail-section-title{font-size:11px;letter-spacing:1.5px;color:#8a98a6;margin:20px 0 10px}
.almx-item-facts{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.almx-item-fact{padding:12px 14px;border-radius:11px;border:1px solid #263042;background:#121820;display:grid;gap:4px;min-width:0}
.almx-item-fact-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.almx-item-fact span{font-size:10.5px;font-family:'Barlow Condensed',sans-serif;font-weight:700;letter-spacing:1px;color:#8a98a6;text-transform:uppercase}
.almx-item-fact strong{font-size:14px;font-weight:700;line-height:1.35;color:#f5f7fc;overflow-wrap:anywhere}
.almx-item-fact-value--description{line-height:1.5!important;font-size:14px!important;white-space:normal}
.almx-item-fact strong.is-low{color:#f0a2ad}
.almx-item-fact strong.is-ice{color:#6fb0e8}
.almx-item-fact--wide{grid-column:1 / -1}
.almx-inline-edit{width:20px;height:20px;border-radius:5px;border:none;background:transparent;color:#8a98a6;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:12px;line-height:1}
.almx-inline-edit:hover{color:#ffd500;background:rgba(255,213,0,.08)}
.almx-inline-edit--generate{width:auto;height:24px;min-width:74px;padding:0 8px;border-radius:7px;border:1px solid rgba(255,213,0,.35);background:rgba(255,213,0,.08);color:#ffd500;font-size:11px;letter-spacing:.6px;text-transform:uppercase}
.almx-detail-note,.almx-return-copy{margin-top:8px;font-size:11.5px;line-height:1.45;color:var(--muted)}
.almx-panel--history{display:grid;grid-template-rows:auto minmax(0,auto);gap:8px;height:auto;min-height:0;min-width:0;align-self:start;align-content:start;align-items:start}
.almx-panel--history .almx-detail-section-title{margin:10px 0 10px}
.almx-move-table-wrap{height:fit-content;min-height:0;max-height:min(48vh,420px);align-self:start;border:1px solid rgba(78,93,118,.42);border-radius:14px;overflow:auto;background:linear-gradient(180deg,rgba(18,24,32,.98),rgba(14,19,27,.98))}
.almx-move-table{width:100%;border-collapse:collapse;font-size:11.5px;table-layout:fixed}
.almx-move-table tbody{display:table-row-group}
.almx-move-table tbody tr{display:table-row}
.almx-move-table tbody tr.almx-move-row-main td{border-bottom:none}
.almx-move-table tbody tr.almx-move-row-detail td{padding-top:0;padding-bottom:9px;border-bottom:1px solid #263042}
.almx-move-table .almx-move-col--date{width:64px}
.almx-move-table .almx-move-col--time{width:74px}
.almx-move-table .almx-move-col--type{width:84px}
.almx-move-table .almx-move-col--actor{width:124px}
.almx-move-table .almx-move-col--before{width:66px}
.almx-move-table .almx-move-col--delta{width:62px}
.almx-move-table .almx-move-col--after{width:72px}
.almx-move-table thead th{position:sticky;top:0;z-index:1;padding:8px 10px;background:#121820;color:#8a98a6;font-family:'Barlow Condensed',sans-serif;font-size:10.5px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;text-align:left;border-bottom:1px solid #30404e}
.almx-move-table thead th,.almx-move-table tbody td{min-width:0}
.almx-move-table tbody td{padding:8px 8px;border-bottom:1px solid #263042;vertical-align:top;color:#e6ecf4;line-height:1.25;overflow:hidden}
.almx-move-table tbody tr:last-child td{border-bottom:none}
.almx-move-table tbody tr:hover td{background:rgba(24,32,46,.92)}
.almx-move-col-date,.almx-move-col-time,.almx-move-col-detail,.almx-move-col-actor,.almx-move-col-before,.almx-move-col-delta,.almx-move-col-after{font-size:12px;min-width:0}
.almx-move-col-type{min-width:0}
.almx-move-date-main,.almx-move-time-main,.almx-move-actor-main,.almx-move-qty{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.almx-move-date-main{font-size:11px;font-weight:700;color:#eaf0f6;line-height:1.1;text-transform:uppercase}
.almx-move-time-main{font-size:10.5px;font-weight:600;color:#8fa0b2;line-height:1.2}
.almx-move-actor-main{font-size:11px;font-weight:600;color:#e8eef5;line-height:1.15}
.almx-move-actor-sub{margin-top:2px;font-size:10px;color:#8a98a6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.almx-move-qty{display:inline-block;font-size:11px;font-weight:700;line-height:1.2;color:#edf2f7;white-space:nowrap}
.almx-move-col-before .almx-move-qty,
.almx-move-col-after .almx-move-qty{color:#dbe4ec}
.almx-move-col-delta .almx-move-qty{padding:2px 0}
.almx-move-col-delta.is-pos .almx-move-qty{color:#9ae6b4}
.almx-move-col-delta.is-neg .almx-move-qty{color:#f6a6af}
.almx-move-col-delta.is-flat .almx-move-qty{color:#c7d2dd}
.almx-move-col-detail{white-space:normal;overflow:hidden;padding-left:8px;padding-right:8px}
.almx-move-detail-main{font-size:11px;color:#eef3f8;line-height:1.22;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.almx-move-detail-meta{display:block;margin-top:3px;font-size:9.5px;color:#8d9cad;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.almx-modal--detail .almx-status-chip{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:1px 6px;font-size:9.5px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.almx-move-empty{text-align:center;color:#586474;font-size:12.5px;padding:24px!important}
.almx-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.almx-field{display:grid;gap:7px;position:relative}
.almx-field span{font-size:11px;font-family:'Barlow Condensed',sans-serif;font-weight:700;letter-spacing:1px;color:var(--soft);text-transform:uppercase}
.almx-field--location{z-index:2}
.almx-suggest-list{display:grid;gap:6px;margin-top:8px}
.almx-suggest-item{padding:9px 11px;border-radius:9px;border:1px solid rgba(255,255,255,.08);background:#121820;color:var(--bright);font-size:12px;text-align:left;cursor:pointer}
.almx-suggest-item:hover{border-color:rgba(255,213,0,.22);color:var(--gold2)}
.almx-preview-card{padding:13px 14px;border-radius:12px;border:1px solid rgba(255,255,255,.06);background:rgba(255,255,255,.02)}
.almx-preview-label{font-size:11px;font-family:'Barlow Condensed',sans-serif;font-weight:700;letter-spacing:1px;color:var(--soft);text-transform:uppercase}
.almx-preview-value{font-size:24px;font-family:'Barlow Condensed',sans-serif;font-weight:700;color:var(--jade);margin-top:5px}
.almx-preview-value.is-low{color:#f0a2ad}
.almx-preview-copy{margin-top:5px;font-size:13px;line-height:1.5;color:var(--bright)}
.almx-empty-block{padding:18px 16px;border:1px dashed rgba(255,255,255,.12);border-radius:12px;background:rgba(255,255,255,.02);text-align:center;font-size:12px;color:var(--muted)}
.almx-dialog-part{font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:700;letter-spacing:.35px;color:#ffd500;text-transform:uppercase}
.almx-dialog-close-row{display:flex;justify-content:flex-start}
.almx-dialog-stack{display:grid;gap:14px}
.almx-dialog-section{display:grid;gap:8px;min-width:0}
.almx-dialog-label{font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:700;letter-spacing:1.5px;color:#cfd5dd;text-transform:uppercase}
.almx-dialog-input,.almx-dialog-select{background:#121c2a;border:1px solid #324762;border-radius:12px;color:#f5f7fc;font-family:'Inter',sans-serif;font-size:16px;min-height:52px;padding:13px 16px}
.almx-dialog-input::placeholder{color:#7e8a98}
.almx-dialog-input:focus,.almx-dialog-select:focus{border-color:#466b95;box-shadow:0 0 0 1px rgba(70,107,149,.35)}
.almx-action-btn{cursor:pointer;text-transform:uppercase}
.almx-action-btn:disabled{opacity:.55;cursor:not-allowed;filter:saturate(.7)}
.almx-adjust-shell{display:grid;gap:14px}
.almx-adjust-card{border:1px solid #2b3c54;border-radius:14px;background:linear-gradient(180deg,#121c29 0%,#101827 100%);padding:14px 16px;display:grid;gap:12px}
.almx-adjust-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.almx-adjust-row span{font-size:13px;color:#a8b2bf}
.almx-adjust-row strong{font-size:15px;font-weight:700;color:#f5f7fc}
.almx-adjust-row strong.is-ok{color:#31cf8d}
.almx-adjust-divider{height:1px;background:#26364d}
.almx-adjust-stepper{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:10px;align-items:center}
.almx-adjust-btn{width:44px;height:44px;border-radius:10px;border:1px solid #334863;background:#172335;color:#d4dde8;font-size:24px;font-weight:700;display:flex;align-items:center;justify-content:center;cursor:pointer}
.almx-adjust-btn.minus{color:#ff7f8f}
.almx-adjust-btn.plus{color:#72e2b0}
.almx-adjust-delta{background:#05080d!important;border:1px solid #2f4864!important;border-radius:10px!important;text-align:center;font-family:'Barlow Condensed',sans-serif!important;font-size:18px!important;font-weight:700!important;min-height:44px!important;padding:8px 10px!important}
.almx-modal--detail .almx-action-btn{padding:9px 18px;border-radius:8px;font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:700;letter-spacing:.6px}
.almx-modal--detail .almx-action-btn--ghost{background:transparent;border:1px solid #30404e;color:#c4cfd8}
.almx-modal--detail .almx-action-btn--gold{padding:9px 20px;border:none;background:linear-gradient(135deg,#ffd500,#ffe040);color:#0a0c10}
.veil.almx-overlay.almx-overlay--config,.veil.almx-overlay.almx-overlay--adjust,.veil.almx-overlay.almx-overlay--salida,.veil.almx-overlay.almx-overlay--prestamo,.veil.almx-overlay.almx-overlay--prestamo-detail,.veil.almx-overlay.almx-overlay--devolucion{position:fixed;top:calc(var(--topbar-h) + var(--safe-top));left:0;right:0;bottom:calc(var(--nav-h) + var(--safe-bot));background:rgba(4,5,8,.75);backdrop-filter:blur(3px);z-index:2300;display:flex;align-items:center;justify-content:center;padding:20px 18px}
.almx-modal--edit-field,.almx-modal--config,.almx-modal--adjust,.almx-modal--salida,.almx-modal--prestamo,.almx-modal--prestamo-detail,.almx-modal--devolucion{display:flex;flex-direction:column;width:100%;background:#18202e;border:1px solid #30404e;box-shadow:0 26px 64px rgba(0,0,0,.38)}
.veil.almx-overlay.almx-overlay--edit-field{position:fixed;inset:0;background:rgba(4,5,8,.75);backdrop-filter:blur(3px);z-index:90;display:flex;align-items:center;justify-content:center;padding:20px}
.almx-modal--edit-field{max-width:400px;border-radius:16px;overflow:hidden}
.almx-modal--edit-field .almx-modal-head{flex-shrink:0;padding:16px 20px;border-bottom:1px solid #263042;border-radius:16px 16px 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.almx-modal--edit-field .almx-modal-title{font-size:15px;font-weight:700;color:#f5f7fc;line-height:1.15}
.almx-modal--edit-field .xbtn{width:28px;height:28px;border-radius:7px;border:1px solid #30404e;background:#121820;color:#c4cfd8;font-size:13px;flex-shrink:0}
.almx-modal--edit-field .almx-modal-body{padding:18px 20px;display:block}
.almx-modal--edit-field .almx-dialog-section{gap:0}
.almx-modal--edit-field .almx-dialog-label{font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#8a98a6;margin-bottom:6px}
.almx-modal--edit-field .almx-dialog-input{width:100%;box-sizing:border-box;padding:10px 12px;border-radius:9px;background:#121820;border:1px solid #30404e;color:#e6ecf4;font-family:'Inter',sans-serif;font-size:14px;min-height:0}
.almx-modal--edit-field .almx-modal-foot{flex-shrink:0;padding:14px 20px;border-top:1px solid #263042;background:#121820;border-radius:0 0 18px 18px;display:flex;gap:12px;justify-content:flex-end}
.almx-modal--edit-field .almx-action-btn{padding:9px 16px;border-radius:9px;font-family:'Barlow Condensed',sans-serif;font-size:13px;letter-spacing:.6px}
.almx-modal--edit-field .almx-action-btn--ghost{background:transparent;border:1px solid #30404e;color:#c4cfd8;font-weight:600}
.almx-modal--edit-field .almx-action-btn--gold{padding:9px 18px;border:none;background:linear-gradient(135deg,#ffd500,#ffe040);color:#0a0c10;font-weight:700}
.veil.almx-overlay.almx-overlay--adjust{position:fixed;top:calc(var(--topbar-h) + var(--safe-top));left:0;right:0;bottom:calc(var(--nav-h) + var(--safe-bot));background:rgba(4,5,8,.75);backdrop-filter:blur(3px);z-index:2300;display:flex;align-items:center;justify-content:center;padding:20px 18px}
.almx-modal--adjust{display:flex;flex-direction:column;width:100%;max-width:560px;max-height:88vh;background:#18202e;border:1px solid #30404e;border-radius:18px;overflow:visible}
.almx-modal--adjust .almx-modal-head{flex-shrink:0;padding:18px 22px;border-bottom:1px solid #263042;border-radius:18px 18px 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.almx-modal--adjust .almx-dialog-part{font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:700;color:#ffe040;letter-spacing:0}
.almx-modal--adjust .almx-modal-title{font-size:16px;font-weight:700;color:#f5f7fc;margin-top:2px}
.almx-modal--adjust .xbtn{width:30px;height:30px;border-radius:8px;border:1px solid #30404e;background:#121820;color:#c4cfd8;font-size:14px}
.almx-modal--adjust .almx-modal-body{flex:1;overflow-y:auto;overflow-x:visible;padding:20px 22px;display:flex;flex-direction:column;gap:16px}
.almx-modal--adjust .almx-adjust-shell{display:flex;flex-direction:column;gap:16px}
.almx-modal--adjust .almx-dialog-label{font-family:'Barlow Condensed',sans-serif;font-size:11.5px;font-weight:700;letter-spacing:1.2px;color:#9aaab8;text-transform:uppercase}
.almx-modal--adjust .almx-adjust-card{border:1px solid #263042;border-radius:12px;background:#121820;padding:14px;display:grid;gap:0}
.almx-modal--adjust .almx-adjust-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.almx-modal--adjust .almx-adjust-row span{font-size:13px;color:#9aaab8}
.almx-modal--adjust .almx-adjust-row strong{font-size:15px;font-weight:700;color:#f5f7fc}
.almx-modal--adjust .almx-adjust-row strong.is-ok{color:#31cf8d}
.almx-modal--adjust .almx-adjust-row:first-of-type{margin-bottom:12px}
.almx-modal--adjust .almx-adjust-stepper-wrap{display:grid;gap:8px}
.almx-modal--adjust .almx-adjust-stepper-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.almx-modal--adjust .almx-adjust-stepper-label{font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:1px;color:#c9d4de;text-transform:uppercase}
.almx-modal--adjust .almx-adjust-stepper-hint{font-size:11px;line-height:1.3;color:#8fa0b1}
.almx-modal--adjust .almx-adjust-stepper{display:flex;align-items:center;gap:8px}
.almx-modal--adjust .almx-adjust-btn{width:38px;height:38px;flex-shrink:0;border-radius:9px;background:#18202e;border:1px solid #30404e;font-size:18px;font-weight:700}
.almx-modal--adjust .almx-adjust-delta{flex:1;text-align:center;padding:9px;border-radius:9px;background:#07090d!important;border:1px solid #30404e!important;color:#e6ecf4;font-family:'Barlow Condensed',sans-serif!important;font-size:16px!important;font-weight:700!important;min-height:38px!important}
.almx-modal--adjust .almx-adjust-divider{margin-top:12px;padding-top:12px;border-top:1px solid #263042;height:auto;background:none}
.almx-modal--adjust .almx-dialog-input,.almx-modal--adjust .almx-dialog-select{width:100%;padding:10px 12px;border-radius:9px;background:#121820;border:1px solid #30404e;color:#e6ecf4;font-family:'Inter',sans-serif;font-size:14px;min-height:0}
.almx-modal--adjust .almx-modal-foot{flex-shrink:0;padding:10px 18px;border-top:1px solid #263042;background:#121820;border-radius:0 0 18px 18px;display:flex;gap:8px;justify-content:flex-end}
.almx-modal--adjust .almx-action-btn{padding:10px 16px;border-radius:9px;font-family:'Barlow Condensed',sans-serif;font-size:13.5px;letter-spacing:.5px;min-width:0}
.almx-modal--adjust .almx-action-btn--ghost{background:transparent;border:1px solid #30404e;color:#c4cfd8;font-weight:600}
.almx-modal--adjust .almx-action-btn--gold{padding:10px 18px;border:none;background:linear-gradient(135deg,#ffd500,#ffe040);color:#0a0c10;font-weight:700}
.almx-modal--adjust #alm-ajuste-save{min-width:168px}
.almx-modal--config{max-width:560px;max-height:88vh;border-radius:18px;overflow:visible}
.almx-modal--config .almx-modal-head{flex-shrink:0;padding:18px 22px;border-bottom:1px solid #263042;border-radius:18px 18px 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.almx-modal--config .almx-dialog-part{font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:700;color:#ffe040;letter-spacing:0}
.almx-modal--config .almx-modal-title{font-size:16px;font-weight:700;color:#f5f7fc;margin-top:2px}
.almx-modal--config .xbtn{width:30px;height:30px;border-radius:8px;border:1px solid #30404e;background:#121820;color:#c4cfd8;font-size:14px}
.almx-modal--config .almx-modal-body{flex:1;overflow-y:auto;overflow-x:visible;padding:20px 22px;display:flex;flex-direction:column;gap:16px}
.almx-modal--config .almx-adjust-shell{display:flex;flex-direction:column;gap:16px}
.almx-modal--config .almx-dialog-label{font-family:'Barlow Condensed',sans-serif;font-size:11.5px;font-weight:700;letter-spacing:1.2px;color:#9aaab8;text-transform:uppercase}
.almx-modal--config .almx-dialog-input{width:100%;padding:10px 12px;border-radius:9px;background:#121820;border:1px solid #30404e;color:#e6ecf4;font-family:'Inter',sans-serif;font-size:14px;min-height:0}
.almx-modal--config .almx-adjust-card{border:1px solid #263042;border-radius:12px;background:#121820;padding:14px;display:grid;gap:0}
.almx-config-stock-card{gap:10px}
.almx-config-inline-field{display:grid;gap:6px}
.almx-modal--config .almx-adjust-row{display:flex;align-items:center;justify-content:space-between;gap:12px}
.almx-modal--config .almx-adjust-row span{font-size:13px;color:#9aaab8}
.almx-modal--config .almx-adjust-row strong{font-size:15px;font-weight:700;color:#f5f7fc}
.almx-modal--config .almx-adjust-divider{margin-top:12px;padding-top:12px;border-top:1px solid #263042;height:auto;background:none}
.almx-modal--config .almx-modal-foot{flex-shrink:0;padding:15px 22px;border-top:1px solid #263042;background:#121820;border-radius:0 0 18px 18px;display:flex;gap:8px;justify-content:flex-end}
.almx-modal--config .almx-action-btn{padding:10px 16px;border-radius:9px;min-height:0;font-size:13.5px;letter-spacing:.5px;font-family:'Barlow Condensed',sans-serif;min-width:0}
.almx-modal--config .almx-action-btn--ghost{background:transparent;border:1px solid #30404e;color:#c4cfd8;font-weight:600}
.almx-modal--config .almx-action-btn--gold{padding:10px 18px;border:none;background:linear-gradient(135deg,#ffd500,#ffe040);color:#0a0c10;font-weight:700}
.almx-modal--create-item .almx-modal-body{scrollbar-gutter:stable}
.almx-modal--create-item .almx-adjust-shell{gap:16px}
.almx-modal--create-item .almx-adjust-card{gap:0}
.almx-create-type-toggle{display:flex;gap:10px;flex-wrap:wrap}
.almx-create-type-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;font-family:'Barlow Condensed',sans-serif;font-size:14px;letter-spacing:.55px;text-transform:uppercase}
.almx-create-inline-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.almx-modal--create-item #alm-create-category{width:100%;min-height:52px;padding:13px 16px;border-radius:12px;background:#121c2a;border:1px solid #324762;color:#f5f7fc;font-family:'Inter',sans-serif;font-size:16px}
.almx-modal--create-item #alm-create-description{min-height:112px;resize:vertical}
.almx-location-composer{display:grid;gap:8px}
.almx-location-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.almx-location-head-tag{display:inline-flex;align-items:center;min-height:22px;padding:0 8px;border-radius:999px;border:1px solid #30404e;background:rgba(18,24,32,.88);color:#b7c4d1;font-family:'Barlow Condensed',sans-serif;font-size:10px;font-weight:700;letter-spacing:.75px;text-transform:uppercase}
.almx-location-panel,.almx-location-existing,.almx-location-preview{border:1px solid #263042;border-radius:12px;background:linear-gradient(180deg,rgba(18,24,32,.96) 0%,rgba(14,19,27,.96) 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.almx-location-panel{display:grid;gap:8px;padding:10px}
.almx-location-panel-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.almx-location-panel-title{font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:.9px;color:#e6edf5;text-transform:uppercase}
.almx-location-note{font-size:10.5px;color:#8d9cab;line-height:1.2}
.almx-location-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 8px}
.almx-location-field{display:grid;gap:4px;min-width:0}
.almx-location-field span{font-size:10px;color:#8fa0b1;font-weight:700;letter-spacing:.5px;text-transform:uppercase}
.almx-location-input{text-transform:uppercase;padding:6px 9px!important;min-height:38px!important;border-radius:9px!important;background:#0d1218!important;font-size:12.5px!important}
.almx-location-input::placeholder{color:#607282}
.almx-location-preview{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px}
.almx-location-preview-main{min-width:0}
.almx-location-preview-label{font-size:10.5px;color:#8fa0b1;text-transform:uppercase;letter-spacing:.9px;font-weight:700}
.almx-location-preview-value{font-family:'Barlow Condensed',sans-serif;font-size:16px;line-height:1.02;color:#f5f7fc;margin-top:4px;letter-spacing:.5px;word-break:break-word}
.almx-location-preview-hint{font-size:10.5px;color:#8d9cab;margin-top:4px;line-height:1.25}
.almx-location-preview-hint.is-error{color:#f0a2ad}
.almx-location-preview-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:5px}
.almx-location-preview-actions .almx-toolbar-btn{min-height:30px;padding:0 10px;border-radius:8px;font-size:10.5px;letter-spacing:.45px}
.almx-location-existing{display:grid;gap:7px;padding:10px}
.almx-location-existing-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.almx-location-existing-label{font-size:10.5px;color:#9aaab8;text-transform:uppercase;letter-spacing:.9px;font-weight:700}
.almx-location-existing-note{font-size:10.5px;color:#7f91a2;text-align:right}
.almx-location-existing-toolbar{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}
.almx-location-search{min-width:0;padding:6px 9px!important;min-height:36px!important;border-radius:9px!important;background:#0d1218!important;font-size:12.5px!important}
.almx-location-existing-meta{font-size:10.5px;color:#8a98a6;text-align:right;white-space:nowrap}
.almx-location-existing-list{display:grid;gap:5px;max-height:144px;overflow:auto;padding-right:2px}
.almx-location-chip{padding:7px 10px;border-radius:999px;border:1px solid #30404e;background:#121820;color:#dce4ee;font-size:12px;cursor:pointer}
.almx-location-chip.active{border-color:#ffe040;background:rgba(255,224,64,.12);color:#ffe040}
.almx-location-option{display:flex;align-items:center;justify-content:flex-start;width:100%;padding:8px 10px;border-radius:9px;border:1px solid #283547;background:#111822;color:#dce4ee;font-size:11.5px;cursor:pointer;text-align:left;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.almx-location-option:hover{border-color:#4b6076;background:#162233}
.almx-location-option:active{transform:translateY(1px)}
.almx-location-option.active{border-color:#ffe040;background:rgba(255,224,64,.12);color:#ffe040}
.almx-location-empty,.almx-location-warning{font-size:10.5px;color:#8d9cab;line-height:1.3}
.almx-location-warning{color:#f0c176;padding:0 2px}
.almx-inline-clear{background:none;border:none;cursor:pointer;color:#ffd500;font-family:'Barlow Condensed',sans-serif;font-size:11.5px;font-weight:700;letter-spacing:.5px;text-transform:uppercase}
.almx-modal--salida,.almx-modal--prestamo,.almx-modal--devolucion{max-width:480px;max-height:88vh;border-radius:18px;overflow:hidden}
.almx-modal--prestamo-detail{max-width:560px;max-height:88vh;border-radius:18px;overflow:hidden}
.almx-modal--salida .almx-modal-head,.almx-modal--prestamo .almx-modal-head,.almx-modal--devolucion .almx-modal-head,.almx-modal--prestamo-detail .almx-modal-head{flex-shrink:0;padding:18px 22px;border-bottom:1px solid #263042;border-radius:18px 18px 0 0;display:flex;align-items:center;justify-content:space-between;gap:12px}
.almx-modal--salida .almx-modal-kicker,.almx-modal--prestamo .almx-modal-kicker,.almx-modal--devolucion .almx-modal-kicker,.almx-modal--prestamo-detail .almx-modal-kicker{font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:700;letter-spacing:1.2px;color:#8a98a6;text-transform:uppercase}
.almx-modal--salida .almx-modal-title,.almx-modal--prestamo .almx-modal-title,.almx-modal--devolucion .almx-modal-title,.almx-modal--prestamo-detail .almx-modal-title{font-size:16px;font-weight:700;color:#f5f7fc;margin-top:2px}
.almx-modal--salida .almx-modal-title{font-size:19px;line-height:1.15}
.almx-modal--salida .almx-modal-sub,.almx-modal--prestamo .almx-modal-sub,.almx-modal--devolucion .almx-modal-sub,.almx-modal--prestamo-detail .almx-modal-sub{font-size:12px;color:#8a98a6;margin-top:3px}
.almx-modal--salida .xbtn,.almx-modal--prestamo .xbtn,.almx-modal--devolucion .xbtn,.almx-modal--prestamo-detail .xbtn{width:30px;height:30px;border-radius:8px;border:1px solid #30404e;background:#121820;color:#c4cfd8;font-size:14px;flex-shrink:0}
.almx-modal--salida .almx-modal-body{flex:1;overflow-y:auto;padding:18px 20px;display:flex;flex-direction:column;gap:16px}
.almx-modal--prestamo .almx-modal-body,.almx-modal--devolucion .almx-modal-body{flex:1;overflow-y:auto;padding:20px 22px;display:flex;flex-direction:column;gap:13px}
.almx-modal--prestamo-detail .almx-modal-body{flex:1;overflow-y:auto;padding:20px 22px;display:flex;flex-direction:column;gap:18px}
.almx-modal--salida .almx-field span{font-size:11.5px;color:#8a98a6;margin-bottom:6px}
.almx-modal--prestamo .almx-field span,.almx-modal--devolucion .almx-field span{font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#8a98a6;margin-bottom:6px}
.almx-modal--salida .fi,.almx-modal--salida .fsel,.almx-modal--prestamo .fi,.almx-modal--prestamo .fsel,.almx-modal--devolucion .fi,.almx-modal--devolucion .fsel{width:100%;padding:10px 12px;border-radius:9px;background:#121820;border:1px solid #30404e;color:#e6ecf4;font-family:'Inter',sans-serif;font-size:14px;outline:none}
.almx-modal--salida .almx-form-grid,.almx-modal--prestamo .almx-form-grid{grid-template-columns:1fr 1fr;gap:12px}
.almx-salida-line-index{display:flex;align-items:center;justify-content:center;width:36px;height:32px;border-radius:8px;background:linear-gradient(180deg,#1a2634 0%,#121a24 100%);border:1px solid #30404e;color:#e6ecf4;font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:700;letter-spacing:.35px;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)}
.almx-salida-search-btn{width:34px;height:32px;padding:0;border-radius:8px;cursor:pointer;background:rgba(24,32,46,.72);border:1px dashed #3b82c4;color:#6fb0e8;font-size:15px;line-height:1;display:flex;align-items:center;justify-content:center}
.almx-salida-qty{display:grid;grid-template-columns:minmax(0,1fr) 18px;align-items:stretch;width:78px;height:32px;border-radius:8px;border:1px solid #30404e;background:#0d1218;overflow:hidden;box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}
.almx-salida-qty-input{border:none!important;border-radius:0!important;background:transparent!important;color:#f5f7fc!important;padding:0 4px 0 8px!important;font-family:'Barlow Condensed',sans-serif!important;font-size:15px!important;font-weight:700!important;min-height:32px!important;text-align:center}
.almx-salida-qty-input::-webkit-outer-spin-button,.almx-salida-qty-input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.almx-salida-qty-input[type=number]{-moz-appearance:textfield;appearance:textfield}
.almx-salida-qty-spin{display:grid;grid-template-rows:1fr 1fr;border-left:1px solid rgba(48,64,78,.9);background:linear-gradient(180deg,#18202e 0%,#121820 100%)}
.almx-salida-qty-btn{border:none;background:transparent;color:#8fbfff;cursor:pointer;font-size:10px;line-height:1;display:flex;align-items:center;justify-content:center;padding:0}
.almx-salida-qty-btn.up{border-bottom:1px solid rgba(48,64,78,.9)}
.almx-salida-qty-btn:hover{background:rgba(111,176,232,.08)}
.almx-salida-picker{display:grid;gap:6px;max-height:200px;overflow:auto;padding:6px;border:1px solid #263042;border-radius:10px;background:#0f141c}
.almx-salida-picker-item{width:100%;text-align:left;background:#121820;border:1px solid #263042;border-radius:10px;padding:10px 12px;color:inherit;cursor:pointer}
.almx-salida-picker-item.is-active{border-color:#ffd500;background:rgba(255,213,0,.08)}
.almx-salida-picker-part{font-size:11.5px;font-family:'Barlow Condensed',sans-serif;font-weight:700;letter-spacing:.72px;color:var(--gold)}
.almx-salida-picker-name{font-size:13px;font-weight:600;color:var(--bright);line-height:1.3;margin-top:2px}
.almx-salida-picker-meta,.almx-salida-picker-empty{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.35}
.almx-salida-picker-empty{padding:10px 12px;margin-top:0}
.almx-modal--prestamo .almx-panel,.almx-modal--devolucion .almx-panel{background:#121820;border:1px solid #263042;border-radius:12px}
.almx-modal--salida .almx-modal-foot,.almx-modal--prestamo .almx-modal-foot,.almx-modal--devolucion .almx-modal-foot,.almx-modal--prestamo-detail .almx-modal-foot{flex-shrink:0;padding:14px 20px;border-top:1px solid #263042;background:#121820;border-radius:0 0 18px 18px;display:flex;gap:8px;justify-content:flex-end}
.almx-modal--salida .almx-action-btn,.almx-modal--prestamo .almx-action-btn,.almx-modal--devolucion .almx-action-btn,.almx-modal--prestamo-detail .almx-action-btn{padding:9px 16px;border-radius:9px;font-family:'Barlow Condensed',sans-serif;font-size:13px;letter-spacing:.6px;min-width:0}
.almx-modal--salida .almx-action-btn--ghost,.almx-modal--prestamo .almx-action-btn--ghost,.almx-modal--devolucion .almx-action-btn--ghost,.almx-modal--prestamo-detail .almx-action-btn--ghost{background:transparent;border:1px solid #30404e;color:#c4cfd8;font-weight:600}
.almx-modal--salida .almx-action-btn--gold,.almx-modal--prestamo .almx-action-btn--gold,.almx-modal--devolucion .almx-action-btn--gold,.almx-modal--prestamo-detail .almx-action-btn--gold{padding:9px 18px;border:none;background:linear-gradient(135deg,#ffd500,#ffe040);color:#0a0c10;font-weight:700}
.almx-loan-field{display:flex;flex-direction:column}
.almx-loan-label{font-size:11.5px;color:#8a98a6;margin-bottom:6px}
.almx-loan-input{width:100%;padding:10px 12px;border-radius:9px;background:#121820;border:1px solid #30404e;color:#e6ecf4;font-family:'Inter',sans-serif;font-size:14px;outline:none;box-sizing:border-box}
.almx-loan-input--inner{padding:9px 11px;border-radius:8px;background:#07090d}
.almx-photo-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.almx-photo-slot{position:relative;width:100%;padding-top:100%;border-radius:9px;overflow:hidden}
.almx-photo-slot--add{border:1.5px dashed #30404e;background:#121820;cursor:pointer}
.almx-photo-slot--add span{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:20px;color:#586474}
.almx-photo-slot--filled{background:#121820 center/cover no-repeat;border:1px solid rgba(255,255,255,.08);cursor:pointer}
.almx-photo-slot-remove{position:absolute;top:4px;right:4px;width:20px;height:20px;border-radius:6px;border:none;background:rgba(0,0,0,.65);color:#fff;cursor:pointer;font-size:11px;line-height:20px;padding:0}
.almx-sign-card{flex-shrink:0;border:1px solid #263042;border-radius:12px;background:#121820;overflow:hidden}
.almx-sign-card-top{padding:11px 13px;border-bottom:1px solid #263042}
.almx-sign-card-bottom{padding:11px 13px 13px}
.almx-sign-card-row{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.almx-sign-card-label{font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:600;letter-spacing:1.2px;color:#8a98a6;text-transform:uppercase}
.almx-sign-canvas{display:block;width:100%;height:110px;border-radius:8px;background:#f5f7fc;border:1px solid #30404e;touch-action:none;cursor:crosshair}
.almx-prestamo-detail-head{min-width:0}
.almx-prestamo-detail-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.almx-prestamo-detail-folio{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:700;color:#ffd500}
.almx-prestamo-detail-state{display:inline-flex;padding:3px 10px;border-radius:100px;font-family:'Barlow Condensed',sans-serif;font-size:11.5px;font-weight:700;text-transform:uppercase;color:#f5f7fc;background:color-mix(in srgb, var(--state-color) 15%, transparent);border:1px solid color-mix(in srgb, var(--state-color) 40%, transparent)}
.almx-prestamo-detail-title{font-size:17px;font-weight:700;color:#f5f7fc;margin-top:4px}
.almx-prestamo-detail-summary{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.almx-prestamo-detail-stat{background:#121820;border:1px solid #263042;border-radius:10px;padding:11px 13px}
.almx-prestamo-detail-stat span{display:block;font-family:'Barlow Condensed',sans-serif;font-size:10.5px;font-weight:600;letter-spacing:1px;color:#8a98a6;text-transform:uppercase}
.almx-prestamo-detail-stat strong{display:block;font-size:13.5px;font-weight:700;color:#f5f7fc;margin-top:4px}
@media (max-width: 900px){
  .supply-table-panel{padding:12px}
  .supply-table-search{min-width:100%}
  .supply-compact-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .supply-dense-summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .almx-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .almx-kpi-strip{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .veil.almx-overlay.almx-overlay--detail{padding:0;align-items:stretch;justify-content:flex-start;background:rgba(7,10,14,.92);backdrop-filter:none}
  .almx-modal--detail{width:100%;max-width:none;height:100%;max-height:none;min-height:0;flex:1 1 auto;align-self:stretch;border-radius:0;margin:0;border-left:none;border-right:none}
  .almx-modal--detail--single{width:min(720px,calc(100vw - 48px));max-width:min(720px,calc(100vw - 48px))}
  .almx-modal--detail .almx-modal-head{padding:10px 12px 8px;gap:8px}
  .almx-modal--detail .almx-modal-body{padding:10px 12px 8px;display:flex;flex-direction:column;gap:10px}
  .almx-modal--detail .almx-modal-foot{padding:8px 12px calc(8px + var(--safe-bot));flex-wrap:wrap;position:sticky;bottom:0;z-index:2;box-shadow:0 -12px 28px rgba(0,0,0,.28);border-top:1px solid rgba(48,64,78,.92);background:linear-gradient(180deg,rgba(18,24,32,.96) 0%,rgba(10,14,20,.985) 100%)}
  .almx-modal--detail .almx-action-btn{flex:1 1 100%;min-width:0}
  .almx-modal--detail .almx-modal-foot{display:flex;align-items:center;justify-content:stretch;gap:6px}
  .almx-modal--detail .almx-modal-foot > button{width:auto;min-width:0;margin-right:0!important}
  .almx-modal--detail .almx-modal-foot > [data-adjust-stock]{grid-column:auto;order:0;width:100%;min-height:38px;margin-left:0;padding:0 12px;font-size:11px;letter-spacing:.3px;border-radius:9px}
  .almx-modal--detail .almx-modal-foot > [data-open-labels]{display:none}
  .almx-modal--detail .almx-modal-foot > [data-close]{display:none}
  .almx-detail-head-main{display:grid;gap:2px}
  .almx-detail-head-row{gap:6px}
  .almx-detail-grid{gap:12px}
  .veil.almx-overlay.almx-overlay--etiquetas{padding:8px 10px}
  .almx-modal--etiquetas{max-width:min(470px,100%);max-height:calc(100% - 2px)}
  .almx-item-facts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;order:1}
  .almx-detail-grid,.almx-form-grid{grid-template-columns:1fr}
  .almx-panel--summary{display:flex;flex-direction:column;gap:8px}
  .almx-panel--summary .almx-detail-section-title{order:0}
  .almx-panel--summary .almx-item-facts{order:1}
  .almx-item-media-wrap{order:2;gap:8px}
  .almx-move-table-wrap{max-height:none;border:none;background:transparent;overflow:visible}
  .almx-move-table{min-width:0;width:100%;table-layout:auto}
  .almx-move-table colgroup,
  .almx-move-table thead{display:none}
  .almx-move-table tbody{display:grid;gap:8px}
  .almx-move-table tbody tr{display:grid;gap:8px;padding:10px;border:1px solid #263042;border-radius:12px;background:#121820}
  .almx-move-table tbody tr.almx-move-row-main{padding-bottom:6px;border-bottom:none;border-radius:12px 12px 0 0}
  .almx-move-table tbody tr.almx-move-row-detail{margin-top:-8px;padding-top:0;border-top:none;border-radius:0 0 12px 12px}
  .almx-move-table tbody tr:hover td{background:transparent}
  .almx-move-table tbody td{display:grid;grid-template-columns:minmax(76px,88px) minmax(0,1fr);gap:8px;padding:0;border:none;align-items:start}
  .almx-move-table tbody td::before{content:attr(data-label);font-family:'Barlow Condensed',sans-serif;font-size:10.5px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:#8a98a6}
  .almx-move-col-type .almx-status-chip{justify-self:start}
  .almx-move-row-detail .almx-move-col-detail{padding-top:4px}
  .almx-move-empty{padding:18px!important;border:1px dashed #30404e;border-radius:12px;background:#121820}
  .almx-toolbar{align-items:stretch}
  .almx-shell--inventario .almx-toolbar-copy{flex:1 1 100%}
  .almx-toolbar-actions,.almx-table-actions{width:100%;justify-content:flex-start}
  .almx-filter-row,.almx-action-row{flex:1 1 100%;justify-content:flex-start}
  .almx-shell--inventario .almx-search-row{width:100%}
  .almx-shell--inventario .almx-search-row .fi{width:100%}
  .almx-toolbar-actions--prestamos{display:grid;grid-template-columns:1fr;gap:10px}
  .almx-filter-row--prestamos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
  .almx-filter-row--prestamos .almx-filter-chip{width:100%;justify-content:center;min-height:44px;padding:10px 12px}
  .almx-action-row--prestamos{width:100%}
  .almx-action-row--prestamos .almx-toolbar-btn{width:100%;min-width:0;min-height:46px}
  .ot-table-scroll.almx-table-scroll--prestamos{max-height:none;overflow-x:hidden;overflow-y:visible}
  .almx-table--prestamos{min-width:0;width:100%;table-layout:auto}
  .almx-table--prestamos thead{display:none}
  .almx-table--prestamos tbody{display:grid;gap:10px}
  .almx-table--prestamos tbody tr{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"folio" "estado" "herramienta" "entregado" "prestamo" "compromiso" "sla" "actions";gap:0;padding:18px 16px 16px;border:1px solid rgba(50,64,84,.92);border-radius:18px;background:linear-gradient(180deg,rgba(8,12,19,.99) 0%,rgba(6,10,18,.985) 100%);box-shadow:0 12px 24px rgba(0,0,0,.16)}
  .almx-table--prestamos tbody tr:hover{background:linear-gradient(180deg,rgba(12,17,26,.98) 0%,rgba(9,13,21,.98) 100%)}
  .almx-table--prestamos td{display:flex;flex-direction:column;gap:8px;padding:14px 0 0;border:none;text-align:left !important;vertical-align:top;min-width:0;border-top:1px solid rgba(255,255,255,.07)}
  .almx-table--prestamos td::before{content:attr(data-label);font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase;color:#98a4b3;line-height:1}
  .almx-table--prestamos td:nth-child(1),
  .almx-table--prestamos td:nth-child(2),
  .almx-table--prestamos td:nth-child(3),
  .almx-table--prestamos td:nth-child(4),
  .almx-table--prestamos td:nth-child(5),
  .almx-table--prestamos td:nth-child(6),
  .almx-table--prestamos td:nth-child(7),
  .almx-table--prestamos td:nth-child(8){width:auto}
  .almx-prestamo-cell--folio{grid-area:folio}
  .almx-prestamo-cell--herramienta{grid-area:herramienta}
  .almx-prestamo-cell--entregado{grid-area:entregado}
  .almx-prestamo-cell--prestamo{grid-area:prestamo}
  .almx-prestamo-cell--compromiso{grid-area:compromiso}
  .almx-prestamo-cell--sla{grid-area:sla}
  .almx-prestamo-cell--estado{grid-area:estado;justify-self:start;align-items:flex-start}
  .almx-prestamo-cell--actions{grid-area:actions;justify-self:start;align-self:stretch}
  .almx-prestamo-cell--folio::before,
  .almx-prestamo-cell--herramienta::before,
  .almx-prestamo-cell--estado::before,
  .almx-prestamo-cell--actions::before{display:none}
  .almx-prestamo-cell--folio{padding-top:0;border-top:none;padding-bottom:12px}
  .almx-prestamo-cell--estado,
  .almx-prestamo-cell--herramienta,
  .almx-prestamo-cell--entregado,
  .almx-prestamo-cell--prestamo,
  .almx-prestamo-cell--compromiso,
  .almx-prestamo-cell--sla,
  .almx-prestamo-cell--actions{padding-top:14px}
  .almx-prestamo-cell--folio .almx-table-part{font-size:18px;letter-spacing:1px;line-height:1.1}
  .almx-prestamo-cell--herramienta .almx-table-name{font-size:17px;line-height:1.18;font-weight:700}
  .almx-prestamo-cell--entregado .almx-table-min,
  .almx-prestamo-cell--prestamo .almx-table-meta,
  .almx-prestamo-cell--compromiso .almx-table-meta{font-size:13px;line-height:1.35;color:#d7dde7;margin-top:0}
  .almx-prestamo-cell--compromiso .almx-table-meta + .almx-table-meta{color:#f0a2ad}
  .almx-prestamo-cell--estado .almx-status-chip,
  .almx-prestamo-cell--sla .almx-status-chip{min-height:28px;padding:4px 10px;font-size:10.5px}
  .almx-table--prestamos .almx-status-chip{justify-self:start;align-self:flex-start;min-width:0}
  .almx-prestamo-cell--estado .almx-status-chip{align-self:flex-start}
  .almx-table--prestamos .almx-table-actions{align-items:center;flex-direction:row;gap:12px;justify-content:flex-start;flex-wrap:nowrap}
  .almx-table--prestamos .almx-table-actions--prestamo-card{display:flex;align-items:center;justify-content:flex-start;width:100%}
  .almx-table--prestamos .almx-table-actions .almx-table-btn,
  .almx-table--prestamos .almx-table-actions .almx-table-meta{text-align:center;justify-content:center}
  .almx-prestamo-action-main{width:auto;min-width:124px;padding:0 18px;border-radius:18px}
  .almx-prestamo-action-note{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 20px;border-radius:18px;border:1px solid rgba(255,255,255,.08);background:rgba(255,255,255,.04);color:#aab4c1;font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:700;letter-spacing:.8px;text-transform:uppercase;white-space:nowrap}
  .almx-prestamo-action-delete{justify-self:start}
  .almx-prestamo-action-main.almx-table-btn--success{border-color:rgba(255,255,255,.12);color:#c2c9d3;background:rgba(255,255,255,.035)}
  .almx-prestamo-action-delete.almx-table-btn--danger{border-color:rgba(192,48,64,.45);color:#f29aa6;background:rgba(192,48,64,.06)}
  .almx-table--prestamos .almx-table-btn{min-height:42px}
  .almx-shell--prestamos .almx-panel{padding:12px}
  .almx-shell--prestamos .almx-kpi-strip-item{padding:10px 11px}
  .almx-shell--prestamos .almx-kpi-strip-item strong{font-size:20px}
  .almx-shell--prestamos .almx-toolbar-sub{font-size:11px;display:none}
  .almx-shell--prestamos .almx-toolbar-count,
  .almx-shell--prestamos .almx-toolbar-source{font-size:10.5px}
  .almx-shell--prestamos .almx-filter-row--prestamos .almx-filter-chip{min-height:40px;padding:8px 10px;font-size:11.5px}
  .almx-shell--prestamos .almx-action-row--prestamos .almx-toolbar-btn{min-height:42px;font-size:12px}
  .almx-shell--prestamos .almx-table--prestamos tbody{gap:8px}
  .almx-shell--prestamos .almx-table--prestamos tbody tr{padding:13px}
  .almx-shell--prestamos .almx-table--prestamos td{padding:0}
  .almx-shell--prestamos .almx-table--prestamos td::before{font-size:10px}
  .almx-shell--prestamos .almx-table--prestamos .almx-status-chip{min-height:24px;padding:3px 13px;font-size:10.5px}
  .almx-shell--prestamos .almx-table--prestamos .almx-table-btn{min-height:46px;font-size:12px}
  .almx-shell--prestamos .almx-table--prestamos .almx-table-actions{justify-content:flex-start}
  .almx-shell--prestamos .almx-table--prestamos .almx-table-actions .almx-table-btn--icon{width:46px;height:46px;min-width:46px;min-height:46px;border-radius:16px}
  .almx-shell--prestamos .almx-table--prestamos .almx-table-btn--compact{min-height:46px;padding:0 18px}
  .almx-shell--prestamos .almx-prestamo-action-note{min-height:46px;font-size:12px}
  .veil.almx-overlay{align-items:stretch;justify-content:flex-start;overflow:hidden;padding:10px 10px calc(var(--nav-h) + var(--safe-bot) + 10px)}
  .veil.almx-overlay > .almx-modal--detail{max-height:none}
  .almx-modal-foot .btn,.almx-modal-foot .almx-action-btn{flex:1 1 180px}
  .almx-dialog-input,.almx-dialog-select{font-size:15px;min-height:48px;padding:12px 14px}
  .almx-adjust-stepper{grid-template-columns:42px minmax(0,1fr) 42px;gap:8px}
  .almx-adjust-btn{width:42px;height:42px}
  .veil.almx-overlay.almx-overlay--config,.veil.almx-overlay.almx-overlay--adjust,.veil.almx-overlay.almx-overlay--salida,.veil.almx-overlay.almx-overlay--prestamo,.veil.almx-overlay.almx-overlay--prestamo-detail,.veil.almx-overlay.almx-overlay--devolucion{top:calc(var(--topbar-h) + var(--safe-top));left:0;right:0;bottom:calc(var(--nav-h) + var(--safe-bot));padding:14px}
  .veil.almx-overlay.almx-overlay--edit-field{inset:0;padding:14px}
  .almx-modal--edit-field,.almx-modal--config,.almx-modal--adjust,.almx-modal--salida,.almx-modal--prestamo,.almx-modal--prestamo-detail,.almx-modal--devolucion{max-width:min(100%,calc(100vw - 24px))}
  .almx-modal--edit-field .almx-modal-head,.almx-modal--config .almx-modal-head,.almx-modal--adjust .almx-modal-head,.almx-modal--salida .almx-modal-head,.almx-modal--prestamo .almx-modal-head,.almx-modal--prestamo-detail .almx-modal-head,.almx-modal--devolucion .almx-modal-head{padding:14px 14px 12px}
  .almx-modal--edit-field .almx-modal-body,.almx-modal--config .almx-modal-body,.almx-modal--adjust .almx-modal-body,.almx-modal--salida .almx-modal-body,.almx-modal--prestamo .almx-modal-body,.almx-modal--prestamo-detail .almx-modal-body,.almx-modal--devolucion .almx-modal-body{padding:14px}
  .almx-modal--edit-field .almx-modal-foot,.almx-modal--config .almx-modal-foot,.almx-modal--adjust .almx-modal-foot,.almx-modal--salida .almx-modal-foot,.almx-modal--prestamo .almx-modal-foot,.almx-modal--prestamo-detail .almx-modal-foot,.almx-modal--devolucion .almx-modal-foot{padding:12px 14px;flex-wrap:wrap}
  .almx-modal--edit-field .almx-action-btn,.almx-modal--config .almx-action-btn,.almx-modal--adjust .almx-action-btn,.almx-modal--salida .almx-action-btn,.almx-modal--prestamo .almx-action-btn,.almx-modal--prestamo-detail .almx-action-btn,.almx-modal--devolucion .almx-action-btn{flex:1 1 160px;min-width:0}
  .almx-modal--edit-field .almx-dialog-input{min-height:52px;padding:14px 16px;font-size:16px}
  .almx-modal--adjust,.almx-modal--config,.almx-modal--salida,.almx-modal--prestamo,.almx-modal--devolucion{max-width:min(560px,100%)}
  .almx-modal--prestamo-detail{max-width:min(560px,100%)}
  .veil.almx-overlay.almx-overlay--adjust{padding:0;align-items:stretch;justify-content:flex-start;background:rgba(7,10,14,.92);backdrop-filter:none}
  .almx-modal--adjust{width:100%;max-width:none;height:100%;max-height:none;min-height:0;align-self:stretch;border-radius:0;border-left:none;border-right:none}
  .almx-modal--adjust .almx-modal-head{padding:12px 12px 10px;gap:10px;align-items:flex-start}
  .almx-modal--adjust .almx-modal-body{padding:12px;gap:12px}
  .almx-modal--adjust .almx-modal-foot{padding:7px 10px calc(7px + var(--safe-bot));display:flex;justify-content:flex-end;gap:6px;border-radius:0;position:sticky;bottom:0;z-index:2}
  .almx-modal--adjust .almx-action-btn{width:auto;flex:0 0 auto;min-height:40px}
  .almx-modal--adjust .almx-action-btn--gold{order:0}
  .almx-modal--adjust .almx-action-btn--ghost{order:1}
  .almx-modal--adjust .almx-adjust-row{flex-wrap:wrap}
  .almx-modal--adjust .almx-adjust-stepper-head{align-items:flex-start}
  .almx-modal--adjust .almx-adjust-stepper{gap:10px}
  .almx-modal--adjust .almx-dialog-part{font-size:12px}
  .almx-modal--adjust .almx-modal-title{font-size:15px;line-height:1.12}
  .almx-modal--salida .almx-form-grid,.almx-modal--prestamo .almx-form-grid{grid-template-columns:1fr}
  .almx-prestamo-detail-summary{grid-template-columns:1fr}
  .almx-location-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .almx-location-head,.almx-location-existing-head,.almx-location-panel-head{flex-direction:column;align-items:flex-start}
  .almx-location-preview{flex-direction:column}
  .almx-location-preview-actions{justify-content:flex-start}
  .almx-location-existing-toolbar{grid-template-columns:1fr}
  .almx-location-existing-meta,.almx-location-existing-note{text-align:left;white-space:normal}
  .almx-detail-head-row{align-items:flex-start;gap:8px;flex-wrap:nowrap}
  .almx-detail-title-wrap{gap:5px;flex:1 1 auto}
  .almx-detail-head-row .almx-modal-title{flex:1 1 auto;font-size:15px;line-height:1.08}
  .almx-modal--detail .almx-modal-kicker{font-size:10px;letter-spacing:1.25px;margin-bottom:2px}
  .almx-modal--detail .almx-modal-sub{font-size:10.5px;line-height:1.22;margin-top:1px}
  .almx-item-media-wrap{justify-items:stretch}
  .almx-item-media,
  .almx-item-media-tools{width:100%}
  .almx-item-media{max-width:none;min-height:120px;max-height:144px;aspect-ratio:auto;border-radius:10px}
  .almx-item-media-upload{width:100%}
  .almx-item-media-hint{text-align:left}
  .almx-item-media-actions{gap:6px}
  .almx-detail-section-title{margin:8px 0 7px}
  .almx-item-fact{padding:10px 10px;gap:5px;border-radius:10px}
  .almx-item-fact-head{align-items:flex-start}
  .almx-item-fact span{font-size:9.8px;letter-spacing:.86px}
  .almx-item-fact strong{font-size:12.75px;line-height:1.3}
  .almx-inline-edit--generate{min-width:68px;height:23px;padding:0 7px;font-size:10.5px;letter-spacing:.45px}
  .almx-item-fact--wide{grid-column:1 / -1}
  .almx-panel--history .almx-detail-section-title{margin-top:2px}
  .almx-modal--detail .almx-modal-foot .almx-action-btn{min-height:44px}
}

@media (max-width: 560px){
  .almx-kpi-strip{grid-template-columns:1fr}
  .almx-kpi-strip-item strong{font-size:24px}
  .almx-filter-row--prestamos{grid-template-columns:1fr}
  .almx-table--prestamos tbody tr{grid-template-columns:minmax(0,1fr);grid-template-areas:"folio" "estado" "herramienta" "entregado" "prestamo" "compromiso" "sla" "actions";gap:0;padding:16px 14px 14px}
  .almx-table--prestamos td{gap:7px}
  .almx-prestamo-cell--estado{justify-self:start;align-items:flex-start}
  .almx-prestamo-cell--actions{padding-top:14px;justify-self:start}
  .almx-prestamo-cell--estado .almx-status-chip{align-self:flex-start}
  .almx-table--prestamos .almx-table-actions--prestamo-card{display:flex;justify-content:flex-start;width:100%}
  .almx-prestamo-action-delete{justify-self:start}
  .almx-shell--prestamos .almx-panel{padding:11px}
  .almx-modal--detail{border-radius:0}
  .almx-modal--detail .almx-modal-head{padding:8px 10px 6px;gap:6px}
  .almx-modal--detail .almx-modal-body{padding:9px 10px 8px}
  .almx-modal--detail .almx-modal-foot{padding:6px 10px calc(6px + var(--safe-bot));gap:6px}
  .almx-modal--detail .almx-modal-foot > button{min-height:36px}
  .almx-detail-title-wrap{gap:3px}
  .almx-detail-head-row .almx-modal-title{font-size:13.5px;line-height:1.08}
  .almx-modal--detail .xbtn,.almx-detail-head-btn{width:24px!important;height:24px!important;min-width:24px;border-radius:7px;font-size:12px}
  .almx-detail-foot-btn{min-height:36px;padding:0 9px;font-size:10.5px;letter-spacing:.25px;border-radius:8px}
  .almx-detail-foot-icon{font-size:13px}
  .almx-modal--detail .almx-modal-sub{font-size:10px;line-height:1.16;margin-top:1px}
  .almx-item-facts{gap:7px}
  .almx-item-fact{padding:9px 9px}
  .almx-item-fact strong{font-size:12.25px}
  .almx-inline-edit--generate{min-width:64px;height:22px;padding:0 6px;font-size:10px}
  .almx-item-media{min-height:104px;max-height:120px}
  .almx-move-table tbody td{grid-template-columns:1fr;gap:4px}
  .almx-move-table tbody td::before{font-size:10px}
  .almx-move-col-date,.almx-move-col-time,.almx-move-col-detail,.almx-move-col-actor,.almx-move-col-before,.almx-move-col-delta,.almx-move-col-after{font-size:12px}
  .almx-shell--prestamos .almx-kpi-strip{gap:7px}
  .almx-shell--prestamos .almx-kpi-strip-item{padding:9px 10px}
  .almx-shell--prestamos .almx-kpi-strip-item strong{font-size:19px}
  .almx-shell--prestamos .almx-filter-row--prestamos .almx-filter-chip,
  .almx-shell--prestamos .almx-action-row--prestamos .almx-toolbar-btn{min-height:38px}
  .almx-shell--prestamos .almx-table--prestamos tbody tr{padding:15px 13px 13px}
  .almx-shell--prestamos .almx-table--prestamos .almx-table-actions{gap:10px;justify-content:flex-start;flex-wrap:nowrap}
  .almx-shell--prestamos .almx-table--prestamos .almx-table-actions .almx-table-btn--icon{width:44px;height:44px;min-width:44px;min-height:44px}
  .almx-shell--prestamos .almx-table--prestamos .almx-table-btn--compact{min-height:44px;padding:0 16px}
  .almx-shell--prestamos .almx-prestamo-action-main{min-width:116px}
  .almx-shell--prestamos .almx-prestamo-action-note{width:auto;justify-content:center;min-height:44px}
  .almx-modal--adjust .almx-modal-head{padding:10px 10px 8px;gap:8px}
  .almx-modal--adjust .almx-modal-body{padding:10px 10px 8px;gap:10px}
  .almx-modal--adjust .almx-modal-foot{padding:6px 8px calc(6px + var(--safe-bot));gap:6px}
  .almx-modal--adjust .almx-adjust-card{padding:11px}
  .almx-modal--adjust .almx-adjust-row{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 10px}
  .almx-modal--adjust .almx-adjust-row span{font-size:11.5px}
  .almx-modal--adjust .almx-adjust-row strong{font-size:14px}
  .almx-modal--adjust .almx-adjust-stepper-wrap{gap:7px}
  .almx-modal--adjust .almx-adjust-stepper-head{gap:4px}
  .almx-modal--adjust .almx-adjust-stepper-label{font-size:10px;letter-spacing:.9px}
  .almx-modal--adjust .almx-adjust-stepper-hint{font-size:10px;line-height:1.2}
  .almx-modal--adjust .almx-adjust-stepper{display:grid;grid-template-columns:40px minmax(0,1fr) 40px;gap:8px}
  .almx-modal--adjust .almx-adjust-btn{width:40px;height:40px;border-radius:10px;font-size:20px}
  .almx-modal--adjust .almx-adjust-delta{min-height:40px!important;font-size:18px!important;padding:8px!important}
  .almx-modal--adjust .almx-dialog-input,.almx-modal--adjust .almx-dialog-select{font-size:16px;min-height:48px;padding:12px 14px}
  .almx-modal--adjust .almx-action-btn{min-height:38px;font-size:12px;letter-spacing:.35px}
  .almx-modal--adjust #alm-ajuste-save{min-width:150px;padding:0 14px}
}

@media (display-mode: standalone) and (max-width: 560px){
  .almx-modal--detail .almx-modal-foot{padding:4px 8px calc(4px + var(--safe-bot));gap:4px}
  .almx-modal--detail .almx-modal-foot > [data-adjust-stock]{width:100%;min-height:34px;padding:0 10px;font-size:10px;letter-spacing:.2px;border-radius:8px}
  .almx-detail-foot-btn{min-height:34px;padding:0 8px;font-size:10px;letter-spacing:.2px;border-radius:8px}
  .almx-modal--adjust .almx-modal-head{padding:8px 8px 6px;gap:7px}
  .almx-modal--adjust .almx-modal-body{padding:8px 8px 6px;gap:8px}
  .almx-modal--adjust .almx-modal-foot{padding:4px 7px calc(4px + var(--safe-bot));gap:4px}
  .almx-modal--adjust .almx-adjust-card{padding:10px}
  .almx-modal--adjust .almx-action-btn{min-height:36px}
  .almx-modal--adjust #alm-ajuste-save{min-width:142px;padding:0 12px}
}


/* ── MEDIA UPLOADER ── */
.media-uploader{margin-top:4px}
.media-drop{
  border:2px dashed var(--wire);border-radius:var(--r2);
  padding:22px 14px;text-align:center;cursor:pointer;
  transition:all .2s;background:var(--plate);
  position:relative;overflow:hidden;
  min-height:90px;display:flex;flex-direction:column;align-items:center;justify-content:center;
}
.media-drop:hover,.media-drop.drag-over{border-color:var(--gold);background:var(--gf)}
.media-drop:active{border-color:var(--gold);background:var(--gf)}
.media-drop input[type=file]{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;font-size:16px}
.media-drop-ico{font-size:28px;margin-bottom:8px;line-height:1}
.media-drop-txt{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:700;letter-spacing:.5px;color:var(--bright)}
.media-drop-sub{font-size:12px;color:var(--muted);margin-top:3px}
.seg-overlay{
  align-items:center;
  justify-content:center;
  padding:22px 16px;
  z-index:170;
  background:rgba(6,9,14,.82);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}
.seg-shell{
  width:min(100%, 480px);
  max-height:88vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  padding:0 !important;
  background:linear-gradient(180deg,#07111d 0%,#0a1523 100%) !important;
  border:1px solid #1b2b43 !important;
  border-radius:22px !important;
  box-shadow:0 32px 80px rgba(0,0,0,.48);
}
.seg-shell--fleet{
  max-width:480px;
}
.seg-shell--visitor{
  max-width:480px;
}
.seg-shell--detail{
  max-width:480px;
}
.seg-shell--bit{
  max-width:460px;
}
.seg-shell-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:22px 20px 18px;
  border-bottom:1px solid rgba(34,51,77,.9);
  background:linear-gradient(180deg,rgba(8,18,31,.96),rgba(8,18,31,.92));
}
.seg-shell-body{
  padding:18px 20px 16px;
  overflow-y:auto;
  background:linear-gradient(180deg,#091524 0%,#0a1626 100%);
}
.seg-shell-body--visitor{
  padding-bottom:18px;
}
.seg-shell-body--detail{
  padding-top:16px;
}
.seg-shell-foot{
  display:flex;
  gap:10px;
  padding:16px 20px 20px;
  border-top:1px solid rgba(34,51,77,.9);
  background:rgba(10,20,34,.96);
}
.seg-shell-foot .btn{
  min-height:58px;
  border-radius:14px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:15px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  flex:1 1 auto;
}
.seg-shell-foot .btn:first-child{
  flex:0 0 106px;
}
.seg-shell-foot .btn:not(.btn-gold){
  background:#111a29;
  border:1px solid rgba(43,68,102,.95);
  color:#cbd5e1;
}
.seg-shell-foot .btn.btn-gold{
  background:#111a29;
  color:#6f7a89;
  border:1px solid rgba(43,68,102,.95);
  box-shadow:none;
}
.seg-block{
  margin-bottom:14px;
}
.seg-block:last-child{
  margin-bottom:0;
}
.seg-modal{
  width:min(100%,520px);
  max-height:88vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:linear-gradient(180deg,#17202a 0%,#0d1218 100%);
  border:1px solid #30404e;
  border-radius:18px;
  box-shadow:0 28px 64px rgba(0,0,0,.42);
}
.seg-modal--fleet{
  max-width:480px;
  background:#18202e;
  border-color:#30404e;
  border-radius:18px;
}
.seg-modal--narrow{width:min(100%,480px)}
.seg-modal-head{
  padding:18px 20px 14px;
  border-bottom:1px solid rgba(48,64,78,.95);
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.015));
}
.seg-modal-head--with-close{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.seg-modal-title{
  font-size:17px;
  font-weight:800;
  color:#f5f7fc;
  line-height:1.1;
}
.seg-modal-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:2px;
  color:#8a98a6;
  text-transform:uppercase;
  margin-bottom:6px;
}
.seg-modal-sub{
  font-size:11.5px;
  color:#8a98a6;
  margin-top:3px;
  line-height:1.45;
}
.seg-close-btn{
  width:38px;
  height:38px;
  flex-shrink:0;
  border-radius:999px;
  border:1px solid rgba(60,78,102,.75);
  background:rgba(18,24,32,.9);
  color:#8f9cad;
  cursor:pointer;
  font-size:16px;
}
.seg-modal-body{
  padding:18px 20px;
  overflow-y:auto;
  background:linear-gradient(180deg,rgba(255,255,255,.018),rgba(255,255,255,0));
}
.seg-modal-body--fleet{
  display:flex;
  flex-direction:column;
  gap:20px;
  padding:22px 26px 18px;
  background:linear-gradient(180deg,#0f1824 0%,#101927 100%);
}
.seg-modal-foot{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  padding:14px 20px 18px;
  border-top:1px solid rgba(38,48,66,.95);
  background:#0e141b;
}
.seg-modal-foot--fleet{
  padding:22px 26px;
  background:#0d1521;
  border-top:1px solid #263042;
}
.seg-info-card{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(48,64,78,.9);
  border-radius:12px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
.seg-gallery-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:110px;
  width:100%;
  padding:16px;
  border-radius:12px;
  border:1px dashed rgba(72,87,104,.9);
  background:rgba(255,255,255,.02);
  color:#8a98a6;
  text-align:center;
}
.seg-panel{
  padding:0;
  border:none;
  border-radius:0;
  background:transparent;
  display:grid;
  gap:10px;
}
.seg-panel--span{
  grid-column:1 / -1;
}
.seg-section-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:2px;
  color:#9aaab8;
  text-transform:uppercase;
  margin-bottom:10px;
}
.seg-field-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px 12px;
}
.seg-field-grid--single{
  grid-template-columns:1fr;
  gap:18px;
}
.seg-field{
  display:grid;
  gap:8px;
  min-width:0;
}
.seg-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.8px;
  color:#8a98a6;
  text-transform:uppercase;
}
.seg-input{
  width:100%;
  min-height:50px;
  padding:0 16px;
  border-radius:12px;
  background:#030a13;
  border:1px solid rgba(44,68,103,.9);
  color:#e6ecf4;
  font-family:'Inter',sans-serif;
  font-size:13px;
  font-weight:500;
  outline:none;
  box-shadow:inset 0 0 0 1px rgba(18,33,55,.28);
}
.seg-input--compact{
  min-height:44px;
  padding:0 14px;
  border-radius:10px;
  font-size:13px;
}
.seg-input:focus{
  border-color:rgba(92,126,174,.95);
  box-shadow:inset 0 0 0 1px rgba(46,77,123,.5),0 0 0 3px rgba(52,86,132,.12);
}
.seg-input::placeholder{
  color:#6d7888;
}
.seg-input--select{
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23dbe4ef' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:right 14px center;
  padding-right:40px;
}
.seg-field-note{
  margin-top:8px;
  font-size:11px;
  line-height:1.45;
  color:#8e9bab;
}
.seg-field-note strong{
  color:#e7edf6;
  font-weight:700;
}
.seg-field-note.is-error{
  color:#f3b2b2;
}
.seg-field-note.is-error strong{
  color:#ffd4d4;
}
.seg-field-alert{
  margin-top:10px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(55,79,112,.9);
  background:rgba(8,18,31,.92);
  font-size:12px;
  line-height:1.45;
  color:#d7e1ee;
}
.seg-field-alert strong{
  color:#f7fbff;
}
.seg-field-alert.is-warn{
  border-color:rgba(197,151,66,.92);
  background:rgba(56,42,9,.28);
  color:#f3deb1;
}
.seg-field-alert.is-danger{
  border-color:rgba(190,96,96,.92);
  background:rgba(61,18,18,.3);
  color:#f1c1c1;
}
.seg-textarea{
  width:100%;
  min-height:96px;
  padding:12px 14px;
  border-radius:12px;
  background:#030a13;
  border:1px solid rgba(44,68,103,.9);
  color:#e6ecf4;
  font-family:'Inter',sans-serif;
  font-size:13px;
  font-weight:500;
  outline:none;
  resize:vertical;
  box-shadow:inset 0 0 0 1px rgba(18,33,55,.28);
}
.seg-textarea:focus{
  border-color:rgba(92,126,174,.95);
  box-shadow:inset 0 0 0 1px rgba(46,77,123,.5),0 0 0 3px rgba(52,86,132,.12);
}
.seg-textarea::placeholder{
  color:#6d7888;
}
#segBitVeil{
  padding:20px 18px;
  align-items:center;
  justify-content:center;
}
#segBitVeil .seg-shell--bitacora{
  width:min(100%,480px);
  max-width:480px;
  max-height:88vh;
  border-radius:20px;
  border:1px solid rgba(40,61,92,.86);
  background:linear-gradient(180deg,#0d1827 0%,#0b1625 100%);
  box-shadow:0 26px 64px rgba(0,0,0,.46);
  overflow:hidden;
}
#segBitVeil .seg-shell-head{
  padding:22px 20px 18px;
  border-bottom:1px solid rgba(35,50,74,.9);
  background:linear-gradient(180deg,rgba(14,24,39,.96),rgba(13,23,36,.96));
}
#segBitVeil .seg-modal-kicker{
  color:#8593a3;
  font-size:12px;
  letter-spacing:2px;
}
#segBitVeil .seg-modal-title{
  margin-top:6px;
  font-size:18px;
  font-weight:800;
  color:#f6f8fc;
}
#segBitVeil .seg-close-btn{
  width:38px;
  height:38px;
  border-radius:50%;
  border:1px solid rgba(50,72,101,.92);
  background:rgba(20,31,48,.84);
  color:#91a0b2;
  font-size:16px;
}
#segBitVeil .seg-shell-body--bitacora{
  padding:18px 20px 16px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
#segBitVeil .seg-shell-foot--bitacora{
  padding:16px 20px 20px;
  border-top:1px solid rgba(35,50,74,.9);
  background:rgba(12,21,34,.88);
  display:flex;
  gap:10px;
}
#segBitVeil .seg-shell-foot--bitacora .btn{
  min-height:58px;
  border-radius:14px;
  font-size:15px;
  letter-spacing:1px;
  box-shadow:none;
  flex:1 1 0;
}
#segBitVeil .seg-shell-foot--bitacora .btn:first-child{
  flex:0 0 126px;
}
#segBitVeil .seg-shell-foot--bitacora .btn:not(.btn-gold){
  background:linear-gradient(180deg,#101b2c,#10192a);
  border:1px solid rgba(41,68,108,.92);
  color:#dbe2ea;
}
#segBitVeil .seg-shell-foot--bitacora .btn.btn-gold{
  background:linear-gradient(180deg,#ffd500,#f0c800);
  color:#091018;
}
#segBitVeil .seg-shell-foot--bitacora .btn[disabled]{
  background:linear-gradient(180deg,#172436,#142132);
  border:1px solid rgba(34,51,78,.9);
  color:#65758a;
  cursor:not-allowed;
}
#segBitVeil .seg-block--compact{
  margin:0;
}
#segBitVeil .seg-label{
  margin-bottom:8px;
  color:#8693a4;
  font-size:11px;
  letter-spacing:1.8px;
}
#segBitVeil .seg-input--select,
#segBitVeil .seg-bit-textarea{
  width:100%;
  background:#060d16;
  border:1px solid rgba(39,66,102,.92);
  border-radius:22px;
  color:#f4f7fb;
  box-shadow:none;
}
#segBitVeil .seg-input--select{
  min-height:50px;
  padding:0 16px;
  font-size:13px;
  font-weight:600;
  background-position:right 14px center;
  border-radius:12px;
}
#segBitVeil .seg-input--select option{
  color:#f4f7fb;
}
#segBitVeil .seg-bit-textarea{
  min-height:104px;
  padding:14px 16px;
  resize:vertical;
  font-family:'Inter',sans-serif;
  font-size:13px;
  font-weight:500;
  outline:none;
  border-radius:16px;
}
#segBitVeil .seg-bit-textarea::placeholder{
  color:#6f7985;
}
.seg-bit-option-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}
.seg-bit-option-grid--severity{
  gap:8px;
}
.seg-bit-option{
  position:relative;
  display:block;
  min-width:0;
}
.seg-bit-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.seg-bit-option-card{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  padding:10px 8px;
  border-radius:14px;
  border:2px solid rgba(42,68,104,.92);
  background:#060d16;
  color:#b5bec9;
  font-family:'Inter',sans-serif;
  font-size:13px;
  font-weight:800;
  line-height:1.1;
  text-align:center;
  transition:all .18s ease;
  cursor:pointer;
}
.seg-bit-option-grid--severity .seg-bit-option-card{
  min-height:54px;
  font-size:13px;
}
.seg-bit-option input:checked + .seg-bit-option-card{
  border-color:#f0d217;
  background:rgba(255,213,0,.16);
  color:#ffd500;
}
.seg-bit-check-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.seg-bit-check-grid .chip{
  width:100%;
  min-height:44px;
  justify-content:flex-start;
  padding:0 12px;
  border-radius:14px;
  border:1px solid rgba(42,68,104,.92);
  background:#060d16;
  color:#c9d0d8;
  font-size:12px;
  letter-spacing:.6px;
  text-transform:none;
}
.seg-bit-check-grid .chip input{
  margin-right:8px !important;
}
.seg-bit-upload{
  min-height:112px;
  border-radius:16px;
  border:2px dashed rgba(132,146,164,.58);
  background:rgba(31,41,58,.42);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  gap:4px;
  padding:14px;
}
.seg-bit-upload-icon{
  width:28px;
  height:28px;
  color:#8d98a7;
}
.seg-bit-upload-icon svg{
  width:100%;
  height:100%;
}
.seg-bit-upload-title{
  color:#d6dce3;
  font-size:14px;
  font-weight:700;
}
.seg-bit-upload-sub{
  color:#c3c8d0;
  font-size:12px;
  text-decoration:underline;
}
.seg-bit-previews{
  margin-top:12px;
}
.seg-mobile-search{
  position:relative;
  margin-bottom:12px;
}
.seg-mobile-search-ico{
  position:absolute;
  left:13px;
  top:50%;
  transform:translateY(-50%);
  font-size:13px;
  color:#6b7887;
  pointer-events:none;
}
.seg-mobile-search input{
  width:100%;
  box-sizing:border-box;
  padding:11px 13px 11px 36px;
  border-radius:10px;
  background:#121820;
  border:1px solid #30404e;
  color:#e6ecf4;
  font-family:'Inter',sans-serif;
  font-size:14px;
  outline:none;
}
.seg-mobile-chip-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:14px;
}
.seg-mobile-section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.seg-mobile-section-title{
  font-size:15px;
  font-weight:600;
  color:#f5f7fc;
}
.seg-mobile-section-count{
  font-family:'Barlow Condensed',sans-serif;
  font-size:13px;
  letter-spacing:1px;
  color:#9aaab8;
  white-space:nowrap;
}
.seg-mobile-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.seg-mobile-card{
  width:100%;
  display:block;
  text-align:left;
  padding:14px;
  border-radius:14px;
  border:1px solid #30404e;
  background:#18202e;
  color:#e6ecf4;
  cursor:pointer;
  box-shadow:none;
}
.seg-mobile-card-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.seg-mobile-card-title{
  font-size:15px;
  font-weight:700;
  color:#f5f7fc;
  line-height:1.2;
}
.seg-mobile-card-sub{
  margin-top:4px;
  font-size:12px;
  color:#9aaab8;
}
.seg-mobile-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:28px;
  padding:0 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.04);
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:.8px;
  text-transform:uppercase;
  white-space:nowrap;
}
.seg-mobile-pill.is-ok{
  border-color:rgba(46,171,111,.35);
  background:rgba(46,171,111,.12);
  color:#7fe0b4;
}
.seg-mobile-pill.is-warn{
  border-color:rgba(224,162,106,.35);
  background:rgba(224,162,106,.12);
  color:#e8a87c;
}
.seg-mobile-pill.is-muted{
  border-color:rgba(154,168,182,.28);
  background:rgba(154,168,182,.1);
  color:#c1cad4;
}
.seg-mobile-pill.is-outline{
  border-color:rgba(213,189,64,.35);
  background:rgba(213,189,64,.1);
  color:#f3d76e;
}
.seg-mobile-kv-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
  margin-top:12px;
}
.seg-mobile-kv{
  min-width:0;
  padding:10px 11px;
  border-radius:12px;
  background:#111923;
  border:1px solid rgba(48,64,78,.92);
}
.seg-mobile-kv span{
  display:block;
  margin-bottom:4px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.1px;
  color:#8fa0b0;
  text-transform:uppercase;
}
.seg-mobile-kv strong{
  display:block;
  font-size:12.5px;
  font-weight:600;
  color:#f3f7fc;
  line-height:1.35;
  word-break:break-word;
}
.seg-mobile-note{
  margin-top:12px;
  font-size:12.5px;
  color:#cfd7e3;
  line-height:1.45;
}
.seg-mobile-footer{
  margin-top:10px;
  font-size:11.5px;
  color:#9aaab8;
}
.seg-mobile-actions{
  display:flex;
  justify-content:flex-end;
  gap:8px;
  margin-top:12px;
}
.seg-mobile-empty{
  padding:18px 16px;
  text-align:center;
  color:#8fa0b0;
}
.seg-detail-grid{
  display:grid;
  gap:10px;
}
.seg-detail-grid--two{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.seg-detail-card{
  padding:10px 12px;
}
.seg-carousel-image{
  display:block;
}
@media (max-width:900px){
  #segBitVeil .seg-shell--bitacora{
    max-width:100%;
    border-radius:20px;
  }
  #segBitVeil .seg-shell-head,
  #segBitVeil .seg-shell-body--bitacora,
  #segBitVeil .seg-shell-foot--bitacora{
    padding-left:18px;
    padding-right:18px;
  }
  #segBitVeil .seg-shell-foot--bitacora{
    gap:8px;
  }
  #segBitVeil .seg-shell-foot--bitacora .btn{
    min-height:58px;
    border-radius:14px;
    font-size:14px;
  }
  #segBitVeil .seg-shell-foot--bitacora .btn:first-child{
    flex:0 0 116px;
  }
  .seg-bit-option-grid{
    grid-template-columns:1fr;
  }
  .seg-bit-check-grid{
    grid-template-columns:1fr;
  }
}
.seg-move-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.seg-move-option{
  display:block;
  min-width:0;
  cursor:pointer;
}
.seg-move-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.seg-move-card{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:58px;
  border-radius:12px;
  border:1px solid rgba(50,73,105,.95);
  background:#030a13;
  color:#b8c2d0;
  font-size:14px;
  font-weight:700;
  box-shadow:inset 0 0 0 1px rgba(16,30,48,.4);
}
.seg-move-option input:checked + .seg-move-card{
  border-color:#f6d200;
  color:#f6d200;
  background:rgba(246,210,0,.14);
  box-shadow:inset 0 0 0 1px rgba(246,210,0,.16);
}
.seg-choice-row{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.seg-choice-row--tight{gap:6px}
.seg-choice{
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:9px 12px;
  border-radius:9px;
  border:1px solid #30404e;
  background:#18202e;
  color:#dce4ee;
  font-family:'Barlow Condensed',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:.5px;
  text-transform:uppercase;
  cursor:pointer;
}
.seg-choice--small{
  padding:8px 10px;
  font-size:12px;
}
.seg-choice input{
  margin:0;
}
.seg-check{
  display:flex;
  align-items:center;
  gap:8px;
  cursor:pointer;
  margin-bottom:10px;
  color:#d9e0e8;
  font-size:12px;
  line-height:1.45;
}
.seg-check input{
  margin:0;
}
.seg-action-toggle{
  width:100%;
  min-height:58px;
  padding:0 16px;
  border-radius:18px;
  border:1px solid rgba(52,76,110,.85);
  background:rgba(10,20,34,.78);
  color:#b7c1cf;
  font-family:'Inter',sans-serif;
  font-size:14px;
  font-weight:700;
  letter-spacing:0;
  cursor:pointer;
  transition:all .15s ease;
  box-shadow:inset 0 0 0 1px rgba(20,36,58,.35);
  margin-bottom:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}
.seg-action-toggle.is-active{
  border-color:#f6d200;
  background:rgba(246,210,0,.14);
  color:#f6d200;
}
.seg-action-toggle-icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:inherit;
  flex:0 0 18px;
}
.seg-action-toggle-icon svg{
  width:100%;
  height:100%;
  display:block;
}
.seg-action-toggle-icon--emoji{
  font-size:16px;
  line-height:1;
}
.seg-upload-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px;
}
.seg-upload-tile{
  min-height:118px;
  border-radius:12px;
  border:1.5px dashed rgba(140,153,172,.5);
  background:rgba(255,255,255,.03);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  padding:10px;
}
.seg-upload-tile--inline{
  min-height:84px;
}
.seg-inline-drop{
  min-height:0;
  padding:12px 10px;
  border-radius:10px;
  justify-content:center;
}
.seg-inline-drop--visitor-id{
  min-height:86px;
  gap:8px;
  padding:14px 12px;
}
.seg-inline-drop--damage{
  margin-top:6px;
}
.seg-inline-drop--cargo{
  margin-bottom:10px;
}
#seg-drop-carga[hidden]{
  display:none !important;
}
.seg-inline-drop-text{
  font-size:12px;
  line-height:1.25;
  color:#9aa5b3;
  text-align:center;
}
.seg-upload-icon--compact{
  width:22px;
  height:22px;
}
.seg-note-card{
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(48,64,78,.95);
  background:#030a13;
  color:#8f99a6;
  font-size:11px;
  line-height:1.55;
  box-shadow:inset 0 0 0 1px rgba(18,33,55,.18);
}
.seg-sign-card{
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(48,64,78,.95);
  background:#030a13;
}
.seg-sign-wrap{
  position:relative;
  border-radius:10px;
  overflow:hidden;
  border:1.5px dashed rgba(140,153,172,.5);
  background:#fff;
}
.seg-sign-canvas{
  width:100%;
  height:132px;
  display:block;
  touch-action:none;
  cursor:crosshair;
}
.seg-sign-hint{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#94a3b8;
  font-size:12px;
  pointer-events:none;
}
.seg-sign-clear{
  margin-top:8px;
  min-width:112px;
}
.seg-upload-title{
  font-size:13px;
  font-weight:700;
  letter-spacing:0;
  color:#cfd7e3;
  text-transform:none;
}
.seg-upload-sub{
  margin-top:4px;
  font-size:10px;
  color:#7f8894;
}
.seg-upload-icon{
  width:26px;
  height:26px;
  color:#8e99a7;
}
.seg-upload-browse{
  font-size:10px;
  color:#9aa5b3;
}
.seg-upload-browse span{
  color:#cfd7e3;
  text-decoration:underline;
}
.seg-upload-caption{
  font-size:10px;
  color:#8f99a6;
}
.seg-shell .media-drop{
  position:relative;
  background:rgba(255,255,255,.035);
  border-color:rgba(140,153,172,.5);
}
.seg-fuel-grid{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px;
}
.seg-fuel-pick{
  appearance:none;
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:72px;
  padding:10px 4px 8px;
  border-radius:9px;
  border:2px solid rgba(48,64,78,.95);
  background:#030a13;
  color:#cfd7e3;
  cursor:pointer;
  font-family:inherit;
  text-align:center;
}
.seg-fuel-pick.is-active{
  border-color:#f6d200;
  background:rgba(246,210,0,.14);
  color:#f6d200;
}
.seg-fuel-pick.is-active .seg-fuel-label{
  color:#f6d200;
}
.seg-fuel-pick.is-active .seg-fuel-ico{
  color:#f6d200;
}
.seg-fuel-option{
  display:block;
  min-width:0;
  cursor:pointer;
}
.seg-fuel-option input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}
.seg-fuel-card{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  min-height:88px;
  padding:10px 6px 12px;
  border-radius:18px;
  border:1px solid rgba(50,73,105,.95);
  background:#030a13;
  color:#cfd7e3;
  box-shadow:inset 0 0 0 1px rgba(16,30,48,.4);
}
.seg-fuel-option input:checked + .seg-fuel-card{
  border-color:#5e7ca7;
  background:linear-gradient(180deg,#0a1320,#07101a);
}
.seg-fuel-ico{
  font-size:15px;
  letter-spacing:1px;
  line-height:1;
  color:inherit;
}
.seg-fuel-label{
  font-size:10px;
  font-weight:400;
  color:inherit;
  margin-top:3px;
}
.seg-modal .btn.btn-sm{
  min-width:36px;
  min-height:34px;
  border-radius:10px;
}
.seg-modal-foot--fleet .btn{
  min-height:78px;
  border-radius:18px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:18px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  flex:1 1 0;
}
.seg-modal-foot--fleet .btn:not(.btn-gold){
  background:#111a29;
  border:1px solid rgba(43,68,102,.95);
  color:#cbd5e1;
}
.seg-modal-foot--fleet .btn.btn-gold{
  background:#111a29;
  color:#6f7a89;
  border:1px solid rgba(43,68,102,.95);
  box-shadow:none;
}
@media (max-width: 768px){
  .seg-overlay{
    padding:0;
    align-items:stretch;
    justify-content:flex-end;
    background:rgba(7,10,14,.92);
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .seg-modal{
    width:100%;
    max-width:none;
    max-height:none;
    min-height:0;
    border-radius:18px 18px 0 0;
    border-left:none;
    border-right:none;
    border-bottom:none;
  }
  .seg-shell{
    width:100%;
    max-width:none;
    max-height:none;
    min-height:0;
    height:100dvh;
    border-radius:22px 22px 0 0 !important;
    border-left:none !important;
    border-right:none !important;
    border-bottom:none !important;
  }
  .seg-shell-head{
    padding:20px 18px 16px;
  }
  .seg-shell-body{
    padding:16px 18px 12px;
    flex:1 1 auto;
    min-height:0;
  }
  .seg-shell-foot{
    padding:14px 18px calc(14px + var(--safe-bot));
    flex-direction:column-reverse;
  }
  .seg-shell-foot .btn{
    min-height:56px;
    font-size:14px;
    width:100%;
  }
  .seg-shell-foot .btn:first-child{
    flex:1 1 auto;
  }
  .seg-modal-body{
    padding:14px;
  }
  .seg-modal-body--fleet{
    padding:14px;
  }
  .seg-modal-head{
    padding:14px 14px 12px;
  }
  .seg-modal-foot{
    padding:12px 14px calc(12px + var(--safe-bot));
  }
  .seg-modal-foot--fleet{
    padding:12px 14px calc(12px + var(--safe-bot));
  }
  .seg-field-grid,
  .seg-upload-grid{
    grid-template-columns:1fr;
  }
  .seg-fuel-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .seg-move-grid{
    grid-template-columns:1fr 1fr;
  }
  .seg-input{
    min-height:56px;
    padding:0 18px;
    font-size:15px;
  }
  .seg-modal-foot--fleet .btn{
    min-height:64px;
    font-size:16px;
  }
  #segBitVeil .seg-shell-foot--bitacora{
    flex-direction:column-reverse;
  }
  #segBitVeil .seg-shell-foot--bitacora .btn:first-child{
    flex:1 1 auto;
  }
  .seg-mobile-kv-grid,
  .seg-detail-grid--two{
    grid-template-columns:1fr;
  }
  .seg-carousel-image{
    height:172px !important;
  }
  .seg-sign-canvas{
    height:120px;
  }
}
@media (max-width: 560px){
  .seg-shell-head{
    padding:18px 16px 14px;
  }
  .seg-shell-body{
    padding:14px 16px 10px;
  }
  .seg-shell-foot{
    padding:12px 16px calc(12px + var(--safe-bot));
  }
  .seg-fuel-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .seg-mobile-section-head{
    flex-direction:column;
  }
  .seg-mobile-section-count{
    white-space:normal;
  }
}
.media-previews{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.media-thumb{
  position:relative;width:90px;height:90px;
  border-radius:var(--r);overflow:hidden;
  border:1px solid var(--wire);flex-shrink:0;
  background:var(--steel);
}
.media-thumb img,.media-thumb video{width:100%;height:100%;object-fit:cover}
.media-thumb-del{
  position:absolute;top:3px;right:3px;
  width:20px;height:20px;border-radius:50%;
  background:rgba(0,0,0,.7);color:#fff;
  font-size:11px;border:none;cursor:pointer;
  display:flex;align-items:center;justify-content:center;
  line-height:1;
}
.media-thumb-type{
  position:absolute;bottom:3px;left:3px;
  font-family:'Barlow Condensed',sans-serif;font-size:9px;font-weight:700;
  background:rgba(0,0,0,.6);color:#fff;
  padding:1px 4px;border-radius:3px;letter-spacing:.5px;
}
.media-count{font-family:'Barlow Condensed',sans-serif;font-size:10px;color:var(--muted);margin-top:6px}

/* Media gallery in cards/drawer */
.media-gallery{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.mg-item{
  width:88px;height:88px;border-radius:var(--r);overflow:hidden;
  border:1px solid var(--wire);cursor:pointer;position:relative;
  background:var(--steel);flex-shrink:0;
}
.mg-item img,.mg-item video{width:100%;height:100%;object-fit:cover}
.mg-item:active{opacity:.8}

/* Lightbox */
.lightbox{
  position:fixed;inset:0;background:rgba(0,0,0,.95);
  z-index:500;display:none;align-items:center;justify-content:center;
  flex-direction:column;padding:20px;
}
.lightbox.open{display:flex}
.lightbox img,.lightbox video{max-width:100%;max-height:80vh;border-radius:var(--r);object-fit:contain}
.lightbox-close{position:absolute;top:16px;right:16px;width:36px;height:36px;border-radius:50%;background:rgba(255,255,255,.15);border:none;color:#fff;font-size:18px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.lightbox-cap{margin-top:12px;font-size:13px;color:var(--soft);text-align:center}

/* =========================================================
   PDF BITACORA GEG - CSS CORREGIDO / FULL BLEED A4
   ========================================================= */

@page{
  size:A4;
  margin:0;
}

/* Reset fuerte SOLO para exportacion/impresion */
@media print{
  html,body{
    width:210mm!important;
    min-height:297mm!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }

  body *{
    visibility:hidden!important;
  }

  #print-zone,
  #print-zone *,
  .btpdf,
  .btpdf *{
    visibility:visible!important;
  }

  #print-zone{
    display:block!important;
    position:absolute!important;
    inset:0 auto auto 0!important;
    width:210mm!important;
    min-height:297mm!important;
    margin:0!important;
    padding:0!important;
    background:#fff!important;
    overflow:visible!important;
    color:#111!important;
    z-index:999999!important;
  }

  .topbar,.bottom-nav,.sidebar,.sidebar-veil,.fab,.toast,.veil,.dveil,.drawer,.lightbox{
    display:none!important;
  }
}

/* =========================================================
   BASE PDF
   ========================================================= */
.btpdf,
.btpdf *{
  box-sizing:border-box;
  -webkit-print-color-adjust:exact;
  print-color-adjust:exact;
}

.btpdf{
  width:210mm;
  max-width:none;
  margin:0;
  padding:0;
  color:#111827;
  background:#fff;
  font-family:Inter,Arial,Helvetica,sans-serif;
  text-rendering:geometricPrecision;
  -webkit-font-smoothing:antialiased;
}

.btpdf-page{
  position:relative;
  width:210mm;
  min-height:297mm;
  margin:0;
  padding:0;
  background:#fff;
  break-after:page;
  page-break-after:always;
}

.btpdf-page:last-child{
  break-after:auto;
  page-break-after:auto;
}

/* =========================================================
   PORTADA PREMIUM - SIN MARGENES BLANCOS
   ========================================================= */
.btpdf-cover{
  position:relative;
  display:flex;
  flex-direction:column;
  width:210mm;
  height:297mm;
  min-height:297mm;
  margin:0;
  padding:0;
  overflow:hidden;
  color:#f8fafc;
  background:
    radial-gradient(circle at 18% 10%,rgba(255,213,0,.14),transparent 24%),
    radial-gradient(circle at 82% 26%,rgba(214,173,66,.10),transparent 28%),
    linear-gradient(135deg,#010203 0%,#050608 42%,#090b0e 100%);
}

.btpdf-cover::before{
  content:'';
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:9mm;
  background:linear-gradient(90deg,#8f6a12 0%,#ffd500 42%,#fff3a6 52%,#d6ad42 100%);
}

.btpdf-cover::after{
  content:'';
  position:absolute;
  right:-34mm;
  bottom:-46mm;
  width:150mm;
  height:150mm;
  border-radius:50%;
  border:1px solid rgba(255,213,0,.16);
  background:radial-gradient(circle,rgba(255,213,0,.08),transparent 62%);
}

.btpdf-cover-top{
  position:relative;
  z-index:2;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:4pt;
  width:100%;
  padding:20mm 18mm 0;
  text-align:center;
}

.btpdf-cover-kicker{
  font-family:'Barlow Condensed',Inter,Arial,sans-serif;
  font-size:8.5pt;
  font-weight:800;
  letter-spacing:2.4px;
  text-transform:uppercase;
  color:#f4d77f;
}

.btpdf-cover-side{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6pt;
}

.btpdf-cover-logo{
  width:60mm;
  height:auto;
  display:block;
  object-fit:contain;
  margin:0 0 12pt;
  filter:drop-shadow(0 10px 20px rgba(0,0,0,.38));
}

.btpdf-cover-brand{
  font-family:'Barlow Condensed',Inter,Arial,sans-serif;
  font-size:7.4pt;
  font-weight:800;
  letter-spacing:2.2px;
  text-transform:uppercase;
  color:#f4d77f;
  text-align:center;
}

.btpdf-cover-main{
  position:relative;
  z-index:2;
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  width:210mm;
  padding:8mm 18mm 26mm;
  text-align:center;
}

.btpdf-cover-main > *{
  margin-left:auto;
  margin-right:auto;
}

.btpdf-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6pt 12pt;
  border-radius:999px;
  border:1px solid rgba(255,213,0,.38);
  background:rgba(255,213,0,.08);
  color:#ffe68a;
  font-size:7pt;
  font-weight:900;
  letter-spacing:2.2px;
  text-transform:uppercase;
}

.btpdf-cover-rule{
  width:54mm;
  height:2px;
  margin:10pt 0 14pt;
  background:linear-gradient(90deg,#ffd500,rgba(255,213,0,.18),transparent);
  border-radius:999px;
}

.btpdf-cover-code{
  font-family:'Barlow Condensed',Inter,Arial,sans-serif;
  font-size:21pt;
  line-height:1;
  font-weight:900;
  letter-spacing:1.4px;
  color:#ffd500;
  text-transform:uppercase;
}

.btpdf-cover-title{
  max-width:142mm;
  margin:7pt 0 8pt;
  color:#fff;
  font-size:24pt;
  line-height:1.06;
  font-weight:900;
  letter-spacing:-.4pt;
}

.btpdf-cover-sub{
  max-width:138mm;
  color:#aab4c5;
  font-size:9.2pt;
  line-height:1.35;
}

.btpdf-status{
  display:inline-flex;
  margin-top:12pt;
  padding:6pt 12pt;
  border-radius:999px;
  background:#dcfce7;
  color:#166534;
  border:1px solid #bbf7d0;
  font-size:7pt;
  font-weight:900;
  letter-spacing:1.4px;
  text-transform:uppercase;
}

.btpdf-status.sp-op{
  background:rgba(46,171,111,.16)!important;
  border-color:rgba(46,171,111,.35)!important;
  color:#9ef2cc!important;
}

.btpdf-status.sp-maint{
  background:rgba(255,213,0,.16)!important;
  border-color:rgba(255,213,0,.35)!important;
  color:#ffe68a!important;
}

.btpdf-status.sp-fs{
  background:rgba(192,48,64,.22)!important;
  border-color:rgba(192,48,64,.55)!important;
  color:#ffd3d8!important;
}

.btpdf-status.sp-sb{
  background:rgba(59,130,196,.18)!important;
  border-color:rgba(59,130,196,.4)!important;
  color:#cfe6ff!important;
}

.btpdf-status.sp-pend{
  background:rgba(212,95,46,.18)!important;
  border-color:rgba(212,95,46,.42)!important;
  color:#ffd8c1!important;
}

.btpdf-cover-meta,
.btpdf-cover-grid{
  width:100%;
  display:grid;
  gap:8pt;
  margin-top:14pt;
  align-items:stretch;
}

.btpdf-cover-meta{grid-template-columns:repeat(4,1fr)}
.btpdf-cover-grid{grid-template-columns:repeat(3,1fr)}

.btpdf-cover-card{
  min-height:46pt;
  padding:8pt 10pt;
  border:1px solid rgba(255,255,255,.10);
  border-radius:11pt;
  background:rgba(255,255,255,.052);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035);
  text-align:left;
  display:grid;
  grid-template-rows:auto 1fr;
  align-content:stretch;
  gap:3pt;
}

.btpdf-cover-label{
  display:block;
  margin:0;
  color:#8994a8;
  font-size:6.2pt;
  font-weight:900;
  letter-spacing:1.3px;
  line-height:1.12;
  text-transform:uppercase;
}

.btpdf-cover-value{
  display:flex;
  align-items:center;
  color:#f8fafc;
  font-size:8.5pt;
  font-weight:800;
  line-height:1.2;
  word-break:break-word;
  overflow-wrap:anywhere;
  text-wrap:pretty;
}

.btpdf-cover-footer{
  position:absolute;
  z-index:2;
  left:18mm;
  right:18mm;
  bottom:12mm;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12pt;
  padding-top:8pt;
  border-top:1px solid rgba(255,213,0,.25);
  color:#aab4c5;
  font-size:7pt;
}

/* =========================================================
   HOJAS INTERIORES
   ========================================================= */
.btpdf-sheet{
  width:210mm;
  min-height:297mm;
  margin:0;
  padding:12mm 10mm 10mm;
  background:#fff;
  color:#111827;
  display:flex;
  flex-direction:column;
}

.btpdf-sheet-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12pt;
  margin-bottom:9pt;
}

.btpdf-sheet-top-copy{min-width:0}

.btpdf-sheet-top-kicker,
.btpdf-kicker{
  font-family:'Barlow Condensed',Inter,Arial,sans-serif;
  margin-bottom:4pt;
  color:#7c8798;
  font-size:7.6pt;
  font-weight:900;
  letter-spacing:2.6px;
  text-transform:uppercase;
}

.btpdf-sheet-top-title{
  color:#0f172a;
  font-size:11pt;
  font-weight:900;
  line-height:1.18;
}

.btpdf-sheet-top-meta{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:6pt;
  flex-wrap:wrap;
}

.btpdf-page-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:38pt;
  padding:4pt 8pt;
  border-radius:999px;
  background:#111827;
  color:#fff;
  font-size:6.8pt;
  font-weight:900;
  letter-spacing:1.5px;
  text-transform:uppercase;
}

.btpdf-sheet-divider{
  height:2px;
  margin-bottom:12pt;
  border-radius:999px;
  background:linear-gradient(90deg,#ffd500 0%,#d6ad42 24%,#1f2937 58%,#e5e7eb 100%);
}

.btpdf-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:10pt;
  margin-bottom:12pt;
  padding-bottom:8pt;
  border-bottom:1.4pt solid #1f2937;
}

.btpdf-header-copy{min-width:0}

.btpdf-title{
  margin:0 0 2pt;
  color:#0f172a;
  font-size:20pt;
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.2pt;
}

.btpdf-subtitle{
  color:#64748b;
  font-size:9.2pt;
  line-height:1.35;
}

.btpdf-header-date{
  text-align:right;
  color:#64748b;
  font-size:8.5pt;
  font-weight:800;
  white-space:nowrap;
}

.btpdf-doc-band{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10pt;
  margin-bottom:12pt;
  padding:8pt 10pt;
  border:1pt solid #dbe3ef;
  border-left:3pt solid #d6ad42;
  border-radius:10pt;
  background:#f8fafc;
}

.btpdf-doc-main{
  color:#475569;
  font-size:7pt;
  font-weight:900;
  letter-spacing:1.8px;
  text-transform:uppercase;
}

.btpdf-doc-meta{
  color:#64748b;
  font-size:8pt;
  line-height:1.35;
  text-align:right;
}

/* KPIs */
.btpdf-kpis{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:7pt;
  margin-bottom:14pt;
}

.btpdf-kpi{
  position:relative;
  overflow:hidden;
  padding:10pt 7pt;
  border:1pt solid #dbe3ef;
  border-radius:12pt;
  background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);
  text-align:center;
}

.btpdf-kpi::before{
  content:'';
  position:absolute;
  left:0;
  right:0;
  top:0;
  height:2pt;
  background:#d6ad42;
}

.btpdf-kpi-num{
  color:#111827;
  font-size:18pt;
  line-height:1;
  font-weight:900;
}

.btpdf-kpi-label{
  margin-top:5pt;
  color:#7c8798;
  font-size:6.7pt;
  font-weight:900;
  letter-spacing:1.6px;
  text-transform:uppercase;
}

/* Secciones */
.btpdf-section{
  margin-top:12pt;
  break-inside:avoid;
  page-break-inside:avoid;
}

.btpdf-section-title{
  position:relative;
  margin-bottom:9pt;
  padding-bottom:4pt;
  border-bottom:1pt solid #e5eaf2;
  color:#64748b;
  font-family:'Barlow Condensed',Inter,Arial,sans-serif;
  font-size:8.6pt;
  font-weight:900;
  letter-spacing:2.2px;
  text-transform:uppercase;
}

.btpdf-section-title::after{
  content:'';
  position:absolute;
  left:0;
  bottom:-1pt;
  width:28mm;
  height:2px;
  border-radius:999px;
  background:#d6ad42;
}

.btpdf-specs{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:7pt;
}

.btpdf-spec{
  padding:8pt 9pt;
  border:1pt solid #dbe3ef;
  border-top:2pt solid #d6ad42;
  border-radius:10pt;
  background:#fff;
  break-inside:avoid;
  page-break-inside:avoid;
}

.btpdf-spec--wide{grid-column:1 / -1}

.btpdf-label,
.btpdf-value{display:block}

.btpdf-label{
  margin-bottom:3pt;
  color:#7c8798;
  font-size:6.7pt;
  font-weight:900;
  letter-spacing:1.4px;
  text-transform:uppercase;
}

.btpdf-value{
  color:#111827;
  font-size:9.8pt;
  line-height:1.34;
  word-break:break-word;
}

/* Tablas */
.btpdf-table-shell{
  width:100%;
  overflow:hidden;
  border:1pt solid #dbe3ef;
  border-radius:11pt;
  background:#fff;
}

.btpdf-table{
  width:100%;
  table-layout:fixed;
  border-collapse:collapse;
  font-size:8.5pt;
}

.btpdf-table thead{display:table-header-group}
.btpdf-table tfoot{display:table-footer-group}

.btpdf-table th{
  padding:6pt 6pt;
  border:1pt solid #e2e8f0;
  background:#f1f5f9;
  color:#475569;
  text-align:left;
  font-size:6.5pt;
  line-height:1.15;
  font-weight:900;
  letter-spacing:.9px;
  text-transform:uppercase;
  white-space:normal;
}

.btpdf-table td{
  padding:6pt 6pt;
  border:1pt solid #e2e8f0;
  color:#1f2937;
  font-size:8.1pt;
  line-height:1.28;
  vertical-align:top;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.btpdf-table tr{
  break-inside:avoid;
  page-break-inside:avoid;
}

.btpdf-table tr:nth-child(even) td{background:#f8fafc}

.btpdf-empty-row td{
  padding:14pt 12pt!important;
  color:#7c8798!important;
  text-align:center!important;
  font-style:italic;
}

/* Anchos de tablas: ajustados para que no se revienten */
.btpdf-table--ots .btpdf-col-folio{width:11%}
.btpdf-table--ots .btpdf-col-desc{width:28%}
.btpdf-table--ots .btpdf-col-tipo{width:11%}
.btpdf-table--ots .btpdf-col-prio{width:10%}
.btpdf-table--ots .btpdf-col-asig{width:15%}
.btpdf-table--ots .btpdf-col-fecha{width:12%}
.btpdf-table--ots .btpdf-col-estado{width:13%}

.btpdf-table--fallas .btpdf-col-folio{width:10%}
.btpdf-table--fallas .btpdf-col-desc{width:24%}
.btpdf-table--fallas .btpdf-col-sistema{width:12%}
.btpdf-table--fallas .btpdf-col-sev{width:10%}
.btpdf-table--fallas .btpdf-col-reporta{width:14%}
.btpdf-table--fallas .btpdf-col-fecha{width:15%}
.btpdf-table--fallas .btpdf-col-ot{width:7%}
.btpdf-table--fallas .btpdf-col-estado{width:8%}

.btpdf-table--refs .btpdf-col-folio{width:10%}
.btpdf-table--refs .btpdf-col-ref{width:25%}
.btpdf-table--refs .btpdf-col-parte{width:13%}
.btpdf-table--refs .btpdf-col-ot{width:9%}
.btpdf-table--refs .btpdf-col-cant{width:8%}
.btpdf-table--refs .btpdf-col-costo{width:12%}
.btpdf-table--refs .btpdf-col-estado{width:12%}
.btpdf-table--refs .btpdf-col-fecha{width:11%}

.btpdf-table--horas .btpdf-col-fecha{width:16%}
.btpdf-table--horas .btpdf-col-horas{width:10%}
.btpdf-table--horas .btpdf-col-operador{width:18%}
.btpdf-table--horas .btpdf-col-estado{width:14%}
.btpdf-table--horas .btpdf-col-comentario{width:42%}

.btpdf-table td:nth-child(4),
.btpdf-table td:nth-child(7),
.btpdf-table td:nth-child(8){
  text-align:center;
  vertical-align:middle;
}

/* Badges compactos para que no rompan columnas */
.btpdf-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  max-width:100%;
  padding:4pt 6pt;
  border-radius:999px;
  font-size:6.2pt;
  line-height:1.1;
  font-weight:900;
  text-align:center;
  text-transform:uppercase;
  white-space:normal;
  overflow-wrap:anywhere;
}

.btpdf-badge.op,
.btpdf-badge.completado,
.btpdf-badge.baja{background:#dcfce7;color:#166534}
.btpdf-badge.maint,
.btpdf-badge.media{background:#fef3c7;color:#92400e}
.btpdf-badge.fuera,
.btpdf-badge.alta,
.btpdf-badge.critica,
.btpdf-badge.pendiente{background:#fee2e2;color:#991b1b}
.btpdf-badge.proceso{background:#dbeafe;color:#1e3a8a}

.btpdf-footer,
.btpdf-page-footer{
  margin-top:auto;
  padding-top:8pt;
  border-top:1pt solid #e5eaf2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12pt;
  color:#7c8798;
  font-size:7.4pt;
  letter-spacing:.2px;
}

/* =========================================================
   JS RECOMENDADO PARA EXPORTAR CON html2pdf
   Usa esto si hoy estas usando window.print() y quieres evitar margenes blancos.
   Requiere html2pdf.bundle.min.js cargado en tu proyecto.
   ========================================================= */

/*
async function exportarBitacoraPDF(nombreArchivo = 'bitacora-geg.pdf'){
  const element = document.querySelector('.btpdf') || document.getElementById('print-zone');

  if(!element){
    console.error('No encontre .btpdf ni #print-zone para generar el PDF');
    return;
  }

  if(typeof html2pdf === 'undefined'){
    console.warn('html2pdf no esta cargado. Abro impresion como respaldo.');
    window.print();
    return;
  }

  document.body.classList.add('is-exporting-btpdf');

  const opt = {
    margin:[0,0,0,0],
    filename:nombreArchivo,
    image:{ type:'jpeg', quality:0.98 },
    html2canvas:{
      scale:2,
      useCORS:true,
      allowTaint:true,
      backgroundColor:'#ffffff',
      scrollX:0,
      scrollY:0,
      windowWidth:794
    },
    jsPDF:{
      unit:'mm',
      format:'a4',
      orientation:'portrait',
      compress:true
    },
    pagebreak:{
      mode:['css','legacy'],
      before:'.btpdf-page:not(:first-child)',
      avoid:['.btpdf-kpi','.btpdf-spec','.btpdf-section','tr']
    }
  };

  try{
    await html2pdf().set(opt).from(element).save();
  }finally{
    document.body.classList.remove('is-exporting-btpdf');
  }
}
*/

/* ── BOTTOM SHEET (modal) ── */
.veil{position:fixed;inset:0;background:rgba(0,0,0,.75);backdrop-filter:blur(8px);z-index:100;display:none;align-items:flex-end;justify-content:center}
.veil.open{display:flex;animation:veilIn .2s ease}
@keyframes veilIn{from{opacity:0}to{opacity:1}}
#rhAltaVeil{z-index:2400}
#rhAltaVeil .rh-modal{position:relative;z-index:1}
.mbox{
  background:var(--plate);
  border:1px solid var(--wire);
  border-bottom:none;
  border-radius:16px 16px 0 0;
  width:100%;
  max-height:90vh;
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  animation:sheetUp .3s cubic-bezier(.22,1,.36,1);
  padding-bottom:var(--safe-bot);
}
.mbox.almx-modal{
  border:1px solid var(--wire);
  border-bottom:1px solid var(--wire);
  border-radius:16px;
  overflow:hidden;
  padding-bottom:0;
}
@keyframes sheetUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
.sheet-handle{width:36px;height:4px;background:var(--wire);border-radius:2px;margin:12px auto 0}
.estado-motivo-overlay{
  position:fixed;
  inset:0;
  z-index:160;
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:18px;
  background:rgba(0,0,0,.72);
  backdrop-filter:blur(3px);
}
.estado-motivo-sheet{
  width:min(100%, 480px);
  background:linear-gradient(180deg,#121820 0%,#090d13 100%);
  border:1px solid var(--wire);
  border-radius:18px;
  box-shadow:0 18px 42px rgba(0,0,0,.34);
  padding:12px 16px 16px;
  animation:sheetUp .28s cubic-bezier(.22,1,.36,1);
}
.estado-motivo-handle{margin:0 auto 12px}
.estado-motivo-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:4px;
}
.estado-motivo-title{
  font-size:15px;
  line-height:1.3;
  font-weight:700;
  color:var(--bright);
  margin-bottom:8px;
}
.estado-motivo-copy{
  font-size:12px;
  line-height:1.45;
  color:var(--soft);
  margin-bottom:10px;
}
.estado-motivo-label{
  font-size:11px;
  font-weight:600;
  color:var(--muted);
  margin-bottom:6px;
}
.estado-motivo-input{
  width:100%;
  font-size:14px;
  margin-bottom:12px;
}
.estado-motivo-input--textarea{
  min-height:82px;
  max-height:160px;
  resize:vertical;
}
.estado-motivo-actions{
  display:flex;
  gap:8px;
}
.estado-motivo-actions .btn{flex:1}
.mtop{padding:18px 20px 14px;border-bottom:1px solid var(--rim);display:flex;align-items:flex-start;justify-content:space-between}
.mey{display:block;font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:600;letter-spacing:3px;line-height:1.15;color:var(--gold);text-transform:uppercase;margin-bottom:4px;padding-top:1px}
.mttl{font-family:'Inter',sans-serif;font-size:17px;font-weight:600;color:var(--white)}
.xbtn{width:32px;height:32px;border-radius:var(--r);background:var(--plate);border:1px solid var(--wire);color:var(--soft);font-size:14px;cursor:pointer;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-left:12px}
.mbody{padding:18px 20px}
.mfoot{padding:14px 20px;border-top:1px solid var(--rim);display:flex;gap:8px}
.mfoot .btn{flex:1}

.refd-mbox{
  width:min(1060px,95vw);
  max-width:min(1060px,95vw);
  max-height:95vh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:linear-gradient(180deg,#121820 0%,#0b0e14 100%);
}
.refd-head{
  padding:12px 16px 10px;
  border-bottom:1px solid var(--wire);
  background:rgba(11,14,20,.96);
  flex-shrink:0;
}
.refd-head-main{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.refd-kicker,
.refd-progress-kicker,
.refd-panel-kicker,
.refd-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.8px;
  text-transform:uppercase;
}
.refd-kicker,
.refd-progress-kicker,
.refd-panel-kicker{
  color:var(--gold);
}
.refd-title-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.refd-title-block{
  min-width:0;
  flex:1;
}
.refd-folio{
  font-family:'Barlow Condensed',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:1.5px;
  color:var(--gold2);
  text-transform:uppercase;
}
.refd-title{
  margin-top:2px;
  font-size:20px;
  line-height:1.1;
  font-weight:700;
  color:var(--white);
}
.refd-head-actions{
  display:flex;
  align-items:center;
  gap:6px;
  flex-shrink:0;
}
.refd-badges{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:6px;
}
.refd-badges .spill{
  padding:3px 8px;
  font-size:10px;
  letter-spacing:.55px;
}
.refd-body{
  padding:12px 16px 14px;
  overflow-y:auto;
  min-height:0;
  display:flex;
  flex-direction:column;
  gap:14px;
}
.refd-progress{
  display:flex;
  flex-direction:column;
  gap:6px;
}
.refd-progress-track{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:6px;
}
.refd-step{
  display:flex;
  align-items:center;
  gap:6px;
  padding:6px 8px;
  border-radius:9px;
  border:1px solid rgba(48,64,78,.9);
  background:rgba(18,24,32,.86);
  min-width:0;
}
.refd-step-dot{
  width:18px;
  height:18px;
  border-radius:999px;
  border:1px solid rgba(48,64,78,.95);
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  color:var(--soft);
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:.5px;
  background:#0f141c;
}
.refd-step-copy{
  min-width:0;
}
.refd-step-label{
  font-size:11px;
  line-height:1.15;
  color:var(--soft);
  font-weight:600;
}
.refd-step.is-done{
  border-color:color-mix(in srgb, var(--step) 44%, #30404e);
  background:color-mix(in srgb, var(--step) 10%, rgba(18,24,32,.92));
}
.refd-step.is-done .refd-step-dot,
.refd-step.is-current .refd-step-dot{
  border-color:transparent;
  background:var(--step);
  color:#07090d;
}
.refd-step.is-current{
  border-color:color-mix(in srgb, var(--step) 50%, #30404e);
  box-shadow:0 0 0 1px color-mix(in srgb, var(--step) 22%, transparent);
}
.refd-step.is-current .refd-step-label{
  color:var(--white);
}
.refd-alert{
  border-radius:10px;
  padding:8px 10px;
  font-size:12px;
  line-height:1.4;
  border:1px solid rgba(192,48,64,.34);
  background:rgba(192,48,64,.1);
  color:#ffc5cd;
}
.refd-layout{
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);
  gap:12px;
  align-items:start;
}
.refd-layout.is-empty-media{
  grid-template-columns:minmax(0,1.4fr) minmax(220px,.55fr);
}
.refd-panel{
  border:1px solid rgba(48,64,78,.92);
  border-radius:14px;
  background:rgba(18,24,32,.92);
  padding:10px 11px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
}
.refd-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 10px;
}
.refd-field{
  display:flex;
  flex-direction:column;
  gap:3px;
  min-width:0;
}
.refd-field--wide{
  grid-column:1 / -1;
}
.refd-label{
  color:var(--muted);
}
.refd-value{
  font-size:14px;
  line-height:1.35;
  color:var(--white);
  word-break:break-word;
}
.refd-input{
  min-height:38px;
}
.refd-note-block{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.refd-richtext{
  font-size:13px;
  line-height:1.5;
  color:var(--soft);
  white-space:pre-wrap;
}
.refd-media{
  min-height:132px;
}
.refd-panel--media.has-media .refd-media{
  min-height:220px;
}
.refd-panel--media.is-empty{
  gap:8px;
}
.refd-layout.is-empty-media .refd-panel--media{
  padding:9px 10px;
}
.refd-evidence-empty{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:82px;
  border:1px dashed rgba(48,64,78,.95);
  border-radius:12px;
  color:var(--muted);
  text-align:center;
  padding:10px;
  font-size:11px;
  line-height:1.35;
  background:rgba(11,14,20,.45);
}
.refd-foot{
  padding:9px 16px;
  border-top:1px solid var(--wire);
  background:rgba(11,14,20,.98);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-shrink:0;
}
.refd-foot.is-compact{
  justify-content:flex-end;
}
.refd-foot-copy{
  flex:1;
  min-width:0;
  font-size:12px;
  line-height:1.4;
  color:var(--soft);
}
.refd-foot-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}
.refd-foot-actions .btn{
  flex:0 0 auto;
  min-width:128px;
  min-height:36px;
  padding-inline:14px;
  font-size:12px;
}
.refd-foot-actions--solo{
  margin-left:auto;
}

.hrf-table tbody tr[data-ref-id],
.hrf-card{
  cursor:pointer;
}
.hrf-table tbody tr[data-ref-id]:hover{
  background:#1a2331;
}

@media (max-width: 900px){
  #refDetailVeil{
    align-items:stretch;
  }
  .refd-mbox{
    width:100%;
    max-width:100%;
    max-height:100dvh;
    border-radius:16px 16px 0 0;
  }
  .refd-head,
  .refd-body,
  .refd-foot{
    padding-left:12px;
    padding-right:12px;
  }
  .refd-title{
    font-size:18px;
  }
  .refd-progress-track,
  .refd-layout,
  .refd-grid{
    grid-template-columns:1fr;
  }
  .refd-field--wide{
    grid-column:auto;
  }
  .refd-foot{
    flex-direction:column;
    align-items:stretch;
  }
  .refd-foot-actions{
    width:100%;
  }
  .refd-foot-actions .btn{
    flex:1 1 100%;
    min-width:0;
  }
}

/* ── OPERADORES: ASIGNACION EQUIPOS ── */
.ops-assign-overlay{
  position:fixed;inset:0;z-index:9999;background:rgba(0,0,0,.78);
  display:flex;align-items:center;justify-content:center;padding:18px;
}
.ops-assign-modal{
  width:min(1080px,96vw);max-height:92vh;overflow:auto;
  background:#111826;border:1px solid #263042;border-radius:14px;
}
.ops-assign-head{padding:14px 16px;border-bottom:1px solid var(--wire);display:flex;align-items:flex-start;justify-content:space-between}
.ops-assign-body{padding:14px 16px;display:grid;gap:12px}
.ops-assign-form{display:grid;gap:10px}
.ops-assign-shell{border:1px solid var(--wire);border-radius:12px;background:rgba(255,255,255,.015);padding:10px;display:grid;gap:8px}
.ops-assign-tools{display:grid;gap:8px}
.ops-assign-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.ops-assign-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ops-assign-actions label{font-size:12px;color:var(--soft);display:flex;align-items:center;gap:6px}
.ops-assign-alert{background:rgba(192,48,64,.12);border:1px solid rgba(192,48,64,.3);border-radius:8px;padding:8px 10px;font-size:12px;color:#ffb9c1}
.ops-assign-tree{max-height:38vh;overflow:auto;display:grid;gap:10px;padding-right:4px}
.ops-group-title{font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:700;letter-spacing:2px;color:var(--gold2);text-transform:uppercase;margin-bottom:6px}
.ops-subgroup{display:grid;gap:6px}
.ops-subgroup-title{font-size:11px;font-weight:700;color:var(--muted);letter-spacing:1px;text-transform:uppercase}
.ops-eq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ops-eq-item{
  text-align:left;border:1px solid var(--wire);background:var(--plate);border-radius:10px;padding:8px;cursor:pointer;
  display:grid;gap:3px;color:var(--bright);transition:all .15s;
}
.ops-eq-item:hover{border-color:rgba(255,213,0,.3)}
.ops-eq-item.active{border-color:rgba(255,213,0,.45);background:rgba(255,213,0,.08)}
.ops-eq-item.assigned{border-color:rgba(192,48,64,.25)}
.ops-eq-top{display:flex;align-items:center;justify-content:space-between;gap:6px}
.ops-eq-code{font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:700;color:var(--gold2);letter-spacing:1px}
.ops-eq-tag{font-size:10px;background:rgba(192,48,64,.2);color:#ffd6db;border:1px solid rgba(192,48,64,.35);padding:1px 6px;border-radius:999px}
.ops-eq-name{font-size:13px;font-weight:600;color:var(--white);line-height:1.2}
.ops-eq-meta{font-size:11px;color:var(--muted)}
.ops-eq-assigned-to{font-size:10px;color:#f7b7bf}
.ops-assign-empty{border:1px dashed var(--wire);border-radius:8px;padding:14px;text-align:center;color:var(--muted);font-size:12px}
.ops-assign-preview{border:1px solid var(--wire);border-radius:12px;background:rgba(255,255,255,.015);padding:10px;display:grid;gap:8px}
.ops-assign-preview-title{font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:700;letter-spacing:2px;color:var(--gold2);text-transform:uppercase}
.ops-assign-summary{font-size:12px;color:var(--soft)}
.ops-assign-chips{display:flex;flex-wrap:wrap;gap:6px}
.ops-chip{font-size:11px;color:var(--bright);background:var(--steel);border:1px solid var(--wire);padding:4px 8px;border-radius:999px}
.ops-empty-chip{font-size:11px;color:var(--muted)}
.ops-assign-foot{padding:12px 16px;border-top:1px solid var(--wire);display:flex;gap:8px}
.ops-assign-foot .btn{flex:1}
.ops-field-error{border-color:rgba(192,48,64,.9)!important;box-shadow:0 0 0 3px rgba(192,48,64,.16)!important}

@media(max-width:767px){
  .ops-assign-overlay{padding:10px}
  .ops-assign-modal{width:100%;max-height:96vh}
  .ops-eq-grid{grid-template-columns:1fr}
  .ops-assign-filters{grid-template-columns:1fr}
  .ops-assign-tree{max-height:34vh}
}

/* Header de detalle de falla */
.falla-sheet{
  width:min(920px,94vw);
  max-width:min(920px,94vw);
  border-radius:16px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  animation:fallaSheetIn .16s cubic-bezier(.2,.9,.25,1);
}
@keyframes fallaSheetIn{
  from{opacity:0;transform:translateY(10px) scale(.992)}
  to{opacity:1;transform:translateY(0) scale(1)}
}
.falla-body{
  flex:1;
  min-height:0;
  padding:14px 18px 8px;
  overflow-y:auto;
  overscroll-behavior:contain;
}
.falla-sheet .sheet-handle,
.falla-sheet .falla-top,
.falla-sheet .mfoot{
  flex-shrink:0;
}
.falla-top{
  padding:14px 18px 12px!important;
  border-bottom:1px solid rgba(255,255,255,.08)!important;
  align-items:center;
}
.falla-top-main{flex:1;min-width:0}
.falla-top-nav{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:6px;
}
.falla-back-btn{
  min-height:28px;
  padding:0 12px;
  border-radius:999px;
  font-size:11px;
  font-weight:600;
  letter-spacing:.06em;
}
.falla-top-breadcrumb{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:600;
  letter-spacing:.14em;
  color:rgba(154,170,184,.88);
  text-transform:uppercase;
}
.falla-top-breadcrumb strong{
  color:var(--gold2);
  font-weight:600;
}
.falla-sheet .mfoot{
  position:relative;
  z-index:1;
  background:linear-gradient(180deg,rgba(17,24,35,.96),rgba(12,18,28,.98));
}
.falla-top-pills{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:4px}
.falla-top #fld-folio{
  margin-bottom:0;
  font-size:12px!important;
  letter-spacing:.06em!important;
  color:var(--muted);
  padding-top:0;
}
.falla-top-title{
  font-family:'Barlow Condensed',sans-serif;
  font-size:24px!important;
  font-weight:600;
  line-height:1;
  letter-spacing:.02em;
}
.falla-top #fld-sistema{
  margin-top:5px!important;
  font-size:12px!important;
  color:var(--muted)!important;
  line-height:1.25;
}
.falla-hero{
  margin-bottom:12px;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(18,25,37,.9),rgba(15,21,31,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.falla-hero #fld-desc{
  font-size:14px!important;
  line-height:1.5!important;
}
.falla-section-kicker{
  margin-bottom:6px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:600;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--soft);
}
.falla-section-kicker-danger{color:#ff8e99}
.falla-section-kicker-ice{color:var(--ice)}
.falla-section-kicker-muted{color:var(--muted)}
.falla-info-grid{
  gap:10px!important;
}
.falla-info-card{
  min-width:0;
  padding:9px 10px;
  border:1px solid rgba(255,255,255,.05);
  border-radius:12px;
  background:rgba(255,255,255,.018);
}
.falla-mini-label{
  margin-bottom:4px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--muted);
}
.falla-panel{
  margin-bottom:12px;
  padding:10px 12px;
  border:1px solid rgba(255,255,255,.05);
  border-radius:14px;
  background:rgba(255,255,255,.018);
}
.falla-panel-ice{
  border-color:rgba(72,176,232,.16);
  background:rgba(72,176,232,.035);
}
.falla-panel-content{
  padding:10px 11px;
  border:1px solid rgba(255,255,255,.05);
  border-radius:12px;
  background:rgba(13,19,28,.46);
}
.falla-panel-content-clickable{
  transition:border-color .16s ease, background .16s ease, transform .16s ease;
}
.falla-panel-content-clickable:hover{
  border-color:rgba(72,176,232,.26);
  background:rgba(72,176,232,.06);
  transform:translateY(-1px);
}
.falla-panel-head{
  margin-bottom:4px;
}
.falla-media-uploader{
  margin-top:6px!important;
}
.falla-media-uploader .media-drop{
  min-height:92px;
  padding:12px 10px;
  border-radius:12px;
  border-color:rgba(255,255,255,.06);
  background:rgba(255,255,255,.01);
}
.falla-media-uploader .media-drop-ico{
  font-size:22px;
  margin-bottom:5px;
  opacity:.7;
}
.falla-media-uploader .media-drop-txt{
  font-size:12px;
  letter-spacing:.04em;
}
.falla-media-uploader .media-drop-sub{
  font-size:11px;
  margin-top:2px;
}
.falla-media-uploader .media-previews{
  gap:6px;
  margin-top:8px;
}
.falla-top-close{
  width:38px;
  height:38px;
  border-radius:12px;
  margin-left:14px;
  background:rgba(15,22,33,.7);
  border-color:rgba(103,149,198,.22);
}
#fallaDetailVeil.from-ot{
  background:rgba(3,8,18,.56);
  backdrop-filter:blur(5px);
}

@media(max-width:767px){
  #fallaDetailVeil{
    align-items:flex-start;
    padding-top:max(12px, var(--safe-top));
    padding-bottom:max(8px, var(--safe-bot));
  }
  .falla-sheet{
    width:100%;
    max-width:100%;
    border-radius:16px 16px 0 0;
  }
  .falla-top{padding:12px 16px 10px!important}
  .falla-body{padding:12px 16px 6px}
  .falla-hero,
  .falla-panel{padding:12px}
  .falla-info-card{padding:9px 10px}
  .falla-panel-content{padding:10px}
  .falla-top-main{padding-right:4px}
  .falla-top-nav{gap:8px;margin-bottom:5px}
  .falla-back-btn{min-height:26px;padding:0 10px;font-size:10.5px}
  .falla-top-pills{gap:6px}
  .falla-top-breadcrumb{font-size:10px;letter-spacing:.12em}
  .falla-top-pills .spill{font-size:12px;letter-spacing:.6px;padding:3px 7px}
  .falla-top-pills .mey{font-size:10px!important;letter-spacing:.1em!important}
  .falla-top-title{font-size:17px!important;line-height:1.1}
  .falla-top #fld-sistema{font-size:11px!important;line-height:1.3}
  .falla-top-close{width:30px;height:30px;font-size:13px;margin-left:8px}
  .falla-info-grid{grid-template-columns:1fr!important}
  .falla-section-kicker{font-size:12px}
  .falla-media-uploader .media-drop{min-height:84px}
  #fallaDetailVeil .falla-sheet{
    max-height:calc(100dvh - max(12px, var(--safe-top)) - max(8px, var(--safe-bot)) - 8px)!important;
    margin-top:0!important;
  }
}

/* ── FORM ── */
.fgrid{display:flex;flex-direction:column;gap:12px}
.fg{display:flex;flex-direction:column;gap:6px}
.fl{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:600;letter-spacing:2px;color:var(--soft);text-transform:uppercase}
.fi,.fsel{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r);padding:11px 13px;color:var(--bright);font-family:'Inter',sans-serif;font-size:16px;outline:none;transition:all .2s;-webkit-appearance:none;appearance:none;width:100%;min-height:44px}
.fi[type="date"],
.fi[type="datetime-local"],
.fi[type="time"],
.fi[type="month"],
.almx-dialog-input[type="date"],
.almx-dialog-input[type="datetime-local"],
.almx-dialog-input[type="time"],
.almx-dialog-input[type="month"],
.almx-loan-input[type="date"],
.almx-loan-input[type="datetime-local"],
.almx-loan-input[type="time"],
.almx-loan-input[type="month"],
.rh-input[type="date"],
.rh-input[type="datetime-local"],
.rh-input[type="time"],
.rh-input[type="month"]{
  color-scheme:dark;
  -webkit-appearance:auto;
  appearance:auto;
}
.fi[type="date"]::-webkit-calendar-picker-indicator,
.fi[type="datetime-local"]::-webkit-calendar-picker-indicator,
.fi[type="time"]::-webkit-calendar-picker-indicator,
.fi[type="month"]::-webkit-calendar-picker-indicator,
.almx-dialog-input[type="date"]::-webkit-calendar-picker-indicator,
.almx-dialog-input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.almx-dialog-input[type="time"]::-webkit-calendar-picker-indicator,
.almx-dialog-input[type="month"]::-webkit-calendar-picker-indicator,
.almx-loan-input[type="date"]::-webkit-calendar-picker-indicator,
.almx-loan-input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.almx-loan-input[type="time"]::-webkit-calendar-picker-indicator,
.almx-loan-input[type="month"]::-webkit-calendar-picker-indicator,
.rh-input[type="date"]::-webkit-calendar-picker-indicator,
.rh-input[type="datetime-local"]::-webkit-calendar-picker-indicator,
.rh-input[type="time"]::-webkit-calendar-picker-indicator,
.rh-input[type="month"]::-webkit-calendar-picker-indicator{
  filter:brightness(0) invert(1);
  opacity:.95;
  cursor:pointer;
}
.fi[type="date"]::-webkit-calendar-picker-indicator:hover,
.fi[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
.fi[type="time"]::-webkit-calendar-picker-indicator:hover,
.fi[type="month"]::-webkit-calendar-picker-indicator:hover,
.almx-dialog-input[type="date"]::-webkit-calendar-picker-indicator:hover,
.almx-dialog-input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
.almx-dialog-input[type="time"]::-webkit-calendar-picker-indicator:hover,
.almx-dialog-input[type="month"]::-webkit-calendar-picker-indicator:hover,
.almx-loan-input[type="date"]::-webkit-calendar-picker-indicator:hover,
.almx-loan-input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
.almx-loan-input[type="time"]::-webkit-calendar-picker-indicator:hover,
.almx-loan-input[type="month"]::-webkit-calendar-picker-indicator:hover,
.rh-input[type="date"]::-webkit-calendar-picker-indicator:hover,
.rh-input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover,
.rh-input[type="time"]::-webkit-calendar-picker-indicator:hover,
.rh-input[type="month"]::-webkit-calendar-picker-indicator:hover{
  filter:brightness(0) invert(1);
  opacity:1;
}
.fi:focus,.fsel:focus{border-color:var(--gold);box-shadow:0 0 0 3px rgba(255,213,0,.08)}
.fsel option{background:var(--plate);color:var(--bright)}
.fgrid-2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.fdiv{height:1px;background:linear-gradient(90deg,var(--rim),transparent)}
.flota-mbox{
  width:min(1080px,96vw);
  max-width:min(1080px,96vw);
  max-height:92vh;
  border-radius:18px;
  border-bottom:1px solid var(--wire);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:linear-gradient(180deg,#121820 0%,#0b0e14 100%);
}
.flota-mbox .mtop,
.flota-mbox .mfoot{
  flex-shrink:0;
  background:rgba(11,14,20,.92);
}
.flota-mbox .mbody{
  flex:1;
  overflow:auto;
  padding:18px 20px 20px;
}
.fleet-form{
  display:flex;
  flex-direction:column;
  gap:16px;
}
.fleet-form-section{
  display:grid;
  gap:14px;
  padding:16px;
  border-radius:16px;
  border:1px solid rgba(58,72,90,.92);
  background:linear-gradient(180deg,rgba(24,32,46,.98),rgba(16,21,31,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.fleet-form-section[hidden]{
  display:none!important;
}
.fleet-form-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}
.fleet-form-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.8px;
  text-transform:uppercase;
  color:var(--gold);
}
.fleet-form-title{
  margin-top:4px;
  font-size:18px;
  font-weight:700;
  color:var(--white);
  line-height:1.15;
}
.fleet-form-tip{
  max-width:320px;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,213,0,.14);
  background:rgba(255,213,0,.06);
  color:#d7dfeb;
  font-size:12px;
  line-height:1.45;
}
.fleet-form-divider{
  height:1px;
  background:linear-gradient(90deg,rgba(255,255,255,.14),transparent);
}
.fleet-form-subtitle{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:#a6b4c2;
}
.fleet-form-grid-wide{
  grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);
}
.fleet-form-split{
  display:grid;
  grid-template-columns:1fr;
  gap:14px;
}
.fleet-form-card{
  display:grid;
  gap:12px;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(58,72,90,.88);
  background:rgba(8,12,18,.32);
}
.fleet-form-card-title{
  font-family:'Barlow Condensed',sans-serif;
  font-size:14px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--white);
}
.fleet-form.is-titan .fleet-form-section--operation .fleet-form-title::after{
  content:" · operativo";
  color:var(--gold2);
}
.fleet-form .fg{min-width:0}
.fleet-form .fg[hidden]{display:none}
.fleet-passenger-group{min-width:0;border-top:1px solid #3a485a;padding-top:12px}
.fleet-passenger-group>summary{cursor:pointer;padding:8px 0;color:#d7dfeb}
.fleet-passenger-group>summary:focus-visible{outline:2px solid #ffe066;outline-offset:2px}
.fleet-passenger-group .fgrid-2{margin-top:10px}
.fleet-form-section--passenger .fi{min-width:0;width:100%}
@media(max-width:600px){
  .fleet-form-section--passenger .fgrid-2{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:820px){
  .flota-mbox{
    width:100%;
    max-width:100%;
    max-height:94vh;
    border-radius:16px 16px 0 0;
  }
  .flota-mbox .mbody{
    padding:14px;
  }
  .fleet-form{
    gap:12px;
  }
  .fleet-form-section{
    padding:14px;
    gap:12px;
    border-radius:14px;
  }
  .fleet-form-head{
    flex-direction:column;
  }
  .fleet-form-title{
    font-size:16px;
  }
  .fleet-form-tip{
    max-width:none;
    width:100%;
  }
  .fleet-form-split,
  .fleet-form-grid-wide,
  .fleet-form .fgrid-2{
    grid-template-columns:1fr;
  }
}
.maint-plan-mbox{
  width:min(1120px,96vw);
  max-height:90vh;
  border-radius:18px;
  border-bottom:1px solid var(--wire);
}
.maint-plan-body{display:grid;gap:14px}
.maint-plan-grid{display:grid;gap:14px}
.maint-plan-card{
  background:linear-gradient(180deg,rgba(30,40,56,.92),rgba(24,32,46,.96));
  border:1px solid rgba(59,72,90,.9);
  border-radius:14px;
  padding:14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.maint-plan-card.full{grid-column:1 / -1}
.maint-plan-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:10px}
.maint-plan-card-title{font-family:'Inter',sans-serif;font-size:15px;font-weight:700;color:var(--white)}
.maint-plan-card-sub{font-size:12px;color:var(--muted);margin-top:2px}
.maint-plan-tools{display:grid;gap:8px}
.maint-picker-box{
  border:1px solid var(--wire);
  background:rgba(9,12,18,.32);
  border-radius:12px;
  padding:10px;
}
.maint-picker-hint{font-size:11px;color:var(--muted);line-height:1.45}
.maint-picker-results,.maint-picker-selected{display:grid;gap:8px}
.maint-picker-results{max-height:220px;overflow:auto;padding-right:2px}
.maint-picker-selected{max-height:260px;overflow:auto;padding-right:2px}
.maint-picker-group-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:var(--soft);
  margin-top:2px;
}
.maint-picker-group-label.catalogo{color:var(--gold2)}
.maint-picker-group-label.zoho{color:#86c4ff}
.maint-picker-empty{
  border:1px dashed rgba(154,170,184,.26);
  border-radius:12px;
  padding:12px;
  font-size:12px;
  color:var(--muted);
  background:rgba(255,255,255,.015);
}
.maint-picker-item{
  width:100%;
  border:1px solid var(--wire);
  border-radius:12px;
  background:rgba(255,255,255,.02);
  padding:10px 12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  color:inherit;
  cursor:pointer;
}
.maint-picker-item:hover{border-color:rgba(255,213,0,.26);background:rgba(255,255,255,.04)}
.maint-picker-item-main{min-width:0;flex:1}
.maint-picker-item-title{font-size:13px;font-weight:700;color:var(--bright);line-height:1.3;word-break:break-word}
.maint-picker-item-meta{font-size:11px;color:var(--muted);margin-top:4px;line-height:1.35;word-break:break-word}
.maint-picker-item-action{
  color:var(--ice);
  font-family:'Barlow Condensed',sans-serif;
  font-size:14px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  white-space:nowrap;
}
.maint-picker-item.catalogo .maint-picker-item-action{color:var(--gold2)}
.maint-ref-table-wrap{
  border:1px solid var(--wire);
  border-radius:12px;
  overflow:auto;
  background:rgba(255,255,255,.015);
}
.maint-ref-table{
  width:100%;
  border-collapse:collapse;
  min-width:620px;
}
.maint-ref-table th,
.maint-ref-table td{
  padding:10px 12px;
  border-bottom:1px solid rgba(59,72,90,.75);
  text-align:left;
  vertical-align:top;
}
.maint-ref-table th{
  position:sticky;
  top:0;
  z-index:1;
  background:rgba(17,24,36,.96);
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--soft);
}
.maint-ref-table tr:last-child td{border-bottom:none}
.maint-ref-name{
  font-size:13px;
  font-weight:700;
  color:var(--bright);
  line-height:1.35;
}
.maint-ref-sub{
  font-size:11px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.35;
}
.maint-ref-tag{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:76px;
  padding:4px 8px;
  border-radius:999px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  border:1px solid var(--wire);
  background:rgba(255,255,255,.03);
  color:var(--soft);
}
.maint-ref-tag.catalogo{
  border-color:rgba(255,213,0,.3);
  background:rgba(255,213,0,.08);
  color:var(--gold2);
}
.maint-ref-tag.zoho{
  border-color:rgba(59,130,196,.3);
  background:rgba(59,130,196,.08);
  color:#86c4ff;
}
.maint-ref-table .fi{
  min-height:38px;
  padding:8px 10px;
  font-size:14px;
}
.maint-ref-table .btn{
  min-height:36px;
  white-space:nowrap;
}
.maint-ref-table .qty-cell{width:110px}
.maint-ref-table .action-cell{width:112px}
.maint-selected-card{
  border:1px solid rgba(59,72,90,.9);
  border-radius:12px;
  background:rgba(7,10,16,.28);
  padding:12px;
  display:grid;
  gap:10px;
}
.maint-selected-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.maint-selected-title{font-size:14px;font-weight:700;color:var(--white);line-height:1.35}
.maint-selected-meta{font-size:11px;color:var(--soft);margin-top:4px;line-height:1.4;word-break:break-word}
.maint-selected-fields{display:grid;grid-template-columns:minmax(0,120px) minmax(0,1fr);gap:10px}
.maint-plan-stack{display:grid;gap:14px}
.maint-plan-textarea{min-height:180px !important}
.maint-plan-textarea.sm{min-height:110px !important}
.maint-plan-foot{
  position:sticky;
  bottom:0;
  background:rgba(24,32,46,.96);
  backdrop-filter:blur(10px);
}
.maint-plan-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.maint-summary-pill{
  border:1px solid var(--wire);
  background:rgba(255,255,255,.02);
  border-radius:12px;
  padding:10px 12px;
}
.maint-summary-label{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;color:var(--muted);margin-bottom:4px}
.maint-summary-value{font-size:14px;font-weight:700;color:var(--bright)}
.maint-plan-intro{
  padding:0 2px;
}
.maint-plan-intro-title{
  font-size:16px;
  font-weight:700;
  color:var(--white);
}
.maint-plan-intro-sub{
  font-size:13px;
  color:var(--muted);
  margin-top:4px;
  max-width:760px;
}
.maint-plan-definition-grid,
.maint-plan-metrics-grid,
.maint-plan-main-grid,
.maint-plan-side-stack,
.maint-dual-list{
  display:grid;
  gap:12px;
}
.maint-plan-definition-grid{
  margin-top:2px;
}
.maint-plan-metrics-grid{
  margin-top:12px;
}
.maint-span-2{
  grid-column:span 2;
}
.maint-section-tools{
  display:grid;
  gap:10px;
}
.maint-plan-hint{
  font-size:12px;
  color:var(--muted);
  line-height:1.45;
}
.maint-list-panel{
  border:1px solid var(--wire);
  border-radius:14px;
  background:rgba(9,12,18,.32);
  overflow:hidden;
}
.maint-list-panel-head{
  padding:12px 14px;
  border-bottom:1px solid rgba(59,72,90,.8);
  background:rgba(255,255,255,.02);
}
.maint-list-panel-title{
  font-size:14px;
  font-weight:700;
  color:var(--white);
}
.maint-list-panel-sub{
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
}
.maint-list-body{
  display:grid;
  gap:10px;
  padding:12px;
  max-height:310px;
  overflow:auto;
}
.maint-list-group{
  display:grid;
  gap:8px;
}
.maint-list-group-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:var(--soft);
}
.maint-list-group-label.catalogo{color:var(--gold2)}
.maint-list-group-label.zoho{color:#86c4ff}
.maint-work-item{
  border:1px solid rgba(59,72,90,.9);
  border-radius:12px;
  background:rgba(255,255,255,.02);
  padding:12px;
  display:grid;
  gap:10px;
}
.maint-work-item.selected{
  background:rgba(7,10,16,.28);
}
.maint-work-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.maint-work-main{
  min-width:0;
  flex:1;
}
.maint-work-title{
  font-size:14px;
  font-weight:700;
  color:var(--white);
  line-height:1.35;
}
.maint-work-meta{
  font-size:11px;
  color:var(--soft);
  line-height:1.45;
  margin-top:4px;
  word-break:break-word;
}
.maint-work-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:6px;
}
.maint-source-pill{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  border:1px solid var(--wire);
  background:rgba(255,255,255,.03);
  color:var(--soft);
}
.maint-source-pill.catalogo{
  border-color:rgba(255,213,0,.3);
  background:rgba(255,213,0,.08);
  color:var(--gold2);
}
.maint-source-pill.zoho{
  border-color:rgba(59,130,196,.3);
  background:rgba(59,130,196,.08);
  color:#86c4ff;
}
.maint-soft-pill{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-size:11px;
  color:var(--muted);
  background:rgba(255,255,255,.03);
  border:1px solid rgba(59,72,90,.9);
}
.maint-inline-fields{
  display:grid;
  grid-template-columns:minmax(0,120px) minmax(0,1fr);
  gap:10px;
}
.maint-inline-fields .fi{
  min-height:38px;
  padding:8px 10px;
  font-size:14px;
}
.maint-work-empty{
  border:1px dashed rgba(154,170,184,.26);
  border-radius:12px;
  padding:14px;
  font-size:12px;
  color:var(--muted);
  background:rgba(255,255,255,.015);
}
.maint-v2{
  display:grid;
  gap:18px;
}
.maint-v2-hero{
  padding:2px 2px 0;
}
.maint-v2-hero-title{
  font-size:18px;
  font-weight:700;
  color:var(--white);
  line-height:1.25;
}
.maint-v2-hero-sub{
  font-size:13px;
  color:var(--muted);
  margin-top:5px;
  max-width:820px;
}
.maint-v2-step{
  display:grid;
  gap:10px;
}
.maint-v2-step-head{
  display:flex;
  align-items:flex-start;
  gap:12px;
}
.maint-v2-step-num{
  width:28px;
  height:28px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,213,0,.14);
  border:1px solid rgba(255,213,0,.2);
  color:var(--gold2);
  font-family:'Barlow Condensed',sans-serif;
  font-size:14px;
  font-weight:700;
  letter-spacing:1px;
  flex-shrink:0;
}
.maint-v2-step-title{
  font-size:16px;
  font-weight:700;
  color:var(--white);
  line-height:1.25;
}
.maint-v2-step-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
  line-height:1.45;
}
.maint-v2-card{
  background:linear-gradient(180deg,rgba(27,37,53,.96),rgba(19,26,39,.98));
  border:1px solid rgba(59,72,90,.9);
  border-radius:16px;
  padding:16px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
  display:grid;
  gap:14px;
}
.maint-v2-card-title{
  font-size:15px;
  font-weight:700;
  color:var(--white);
}
.maint-v2-card-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
  line-height:1.45;
}
.maint-v2-form-grid,
.maint-v2-rule-grid,
.maint-v2-rule-strip,
.maint-v2-content-grid,
.maint-v2-side-grid,
.maint-v2-pickers{
  display:grid;
  gap:12px;
}
.maint-v2-span-2{
  grid-column:span 2;
}
.maint-v2-rule-card{
  border:1px solid rgba(59,72,90,.8);
  border-radius:14px;
  background:rgba(255,255,255,.02);
  padding:12px;
  display:grid;
  gap:10px;
}
.maint-v2-rule-title{
  font-family:'Barlow Condensed',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--soft);
}
.maint-v2-textarea.lg{min-height:220px !important}
.maint-v2-textarea.sm{min-height:130px !important}
.maint-v2-toolbar{
  display:grid;
  gap:10px;
}
.maint-v2-toolbar-main{
  display:grid;
  gap:8px;
}
.maint-v2-hint{
  font-size:12px;
  color:var(--muted);
  line-height:1.45;
}
.maint-v2-panel{
  border:1px solid rgba(59,72,90,.9);
  border-radius:16px;
  overflow:hidden;
  background:rgba(8,12,18,.34);
  min-height:260px;
  display:grid;
  grid-template-rows:auto 1fr;
}
.maint-v2-panel-head{
  padding:12px 14px;
  border-bottom:1px solid rgba(59,72,90,.8);
  background:rgba(255,255,255,.02);
}
.maint-v2-panel-title{
  font-size:14px;
  font-weight:700;
  color:var(--white);
}
.maint-v2-panel-sub{
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
}
.maint-v2-panel-body{
  padding:12px;
  display:grid;
  gap:10px;
  overflow:auto;
}
.maint-v2-group{
  display:grid;
  gap:8px;
}
.maint-v2-group-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:var(--soft);
}
.maint-v2-group-label.catalogo{color:var(--gold2)}
.maint-v2-group-label.zoho{color:#86c4ff}
.maint-v2-item{
  border:1px solid rgba(59,72,90,.9);
  border-radius:14px;
  background:rgba(255,255,255,.02);
  padding:12px;
  display:grid;
  gap:10px;
}
.maint-v2-item.selected{
  background:rgba(7,10,16,.28);
}
.maint-v2-item-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.maint-v2-item-main{
  min-width:0;
  flex:1;
}
.maint-v2-item-title{
  font-size:14px;
  font-weight:700;
  color:var(--white);
  line-height:1.35;
}
.maint-v2-item-meta{
  font-size:11px;
  color:var(--soft);
  line-height:1.45;
  margin-top:4px;
  word-break:break-word;
}
.maint-v2-item-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:6px;
}
.maint-v2-pill{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  border:1px solid rgba(59,72,90,.9);
  background:rgba(255,255,255,.03);
  color:var(--soft);
}
.maint-v2-pill.catalogo{
  border-color:rgba(255,213,0,.3);
  background:rgba(255,213,0,.08);
  color:var(--gold2);
}
.maint-v2-pill.zoho{
  border-color:rgba(59,130,196,.3);
  background:rgba(59,130,196,.08);
  color:#86c4ff;
}
.maint-v2-pill.soft{
  font-family:'Inter',sans-serif;
  font-weight:500;
  letter-spacing:0;
  text-transform:none;
  color:var(--muted);
}
.maint-v2-item-fields{
  display:grid;
  grid-template-columns:minmax(0,120px) minmax(0,1fr);
  gap:10px;
}
.maint-v2-item-fields .fi{
  min-height:38px;
  padding:8px 10px;
  font-size:14px;
}
.maint-v2-empty{
  border:1px dashed rgba(154,170,184,.26);
  border-radius:14px;
  padding:14px;
  font-size:12px;
  color:var(--muted);
  background:rgba(255,255,255,.015);
  line-height:1.45;
}
.maint-wizard-mbox{
  width:min(1340px,97vw);
  max-width:1340px;
}
.maint-wizard-top{
  padding-bottom:14px;
}
.maint-wizard-body{
  display:grid;
  gap:0;
  padding:0;
}
.maint-wizard-stepper{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(0,1.2fr) minmax(0,.78fr) minmax(0,1.06fr) minmax(0,1fr);
  gap:10px;
  padding:16px 18px 14px;
  border-top:1px solid rgba(59,72,90,.75);
  border-bottom:1px solid rgba(59,72,90,.75);
  background:rgba(6,10,18,.42);
  overflow:visible;
  align-items:start;
  position:relative;
}
.maint-step-chip{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:10px 16px 10px 12px;
  border-radius:16px;
  border:1px solid transparent;
  background:transparent;
  color:var(--soft);
  text-align:left;
  transition:.18s ease;
  position:relative;
  z-index:1;
  overflow:visible;
}
.maint-step-chip:hover{
  border-color:rgba(255,213,0,.16);
  background:rgba(255,255,255,.02);
}
.maint-step-chip-num{
  width:26px;
  height:26px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Barlow Condensed',sans-serif;
  font-size:13px;
  font-weight:700;
  background:rgba(132,171,88,.18);
  color:#bddf88;
  flex-shrink:0;
}
.maint-step-chip-copy{
  display:grid;
  gap:2px;
  min-width:0;
  padding-right:4px;
  overflow:visible;
}
.maint-step-chip-title{
  display:block;
  font-size:13px;
  font-weight:700;
  color:#d6e4b2;
  line-height:1.15;
  padding-right:2px;
  white-space:nowrap;
  overflow-wrap:normal;
}
.maint-step-chip-sub{
  display:block;
  font-size:11px;
  color:var(--muted);
  line-height:1.2;
  padding-right:2px;
  white-space:nowrap;
  overflow-wrap:normal;
}
.maint-step-chip.is-active{
  border-color:rgba(255,198,92,.34);
  background:linear-gradient(180deg,rgba(255,198,92,.10),rgba(255,198,92,.03));
  box-shadow:inset 0 0 0 1px rgba(255,198,92,.06);
}
.maint-step-chip.is-active .maint-step-chip-num{
  background:rgba(255,198,92,.95);
  color:#1c1608;
}
.maint-step-chip.is-active .maint-step-chip-title{
  color:#ffd885;
}
.maint-step-chip.is-complete .maint-step-chip-num{
  background:rgba(132,171,88,.9);
  color:#0d1606;
}
.maint-step-chip.is-complete .maint-step-chip-title{
  color:#d6e4b2;
}
.maint-wizard-shell{
  display:grid;
  grid-template-columns:minmax(0,1.58fr) 312px;
  min-height:620px;
}
.maint-wizard-main{
  padding:20px;
  border-right:1px solid rgba(59,72,90,.75);
}
.maint-wizard-side{
  padding:16px;
  display:grid;
  gap:14px;
  align-content:start;
  background:linear-gradient(180deg,rgba(5,9,16,.66),rgba(7,11,18,.52));
}
.maint-pane{
  display:none;
  gap:12px;
}
.maint-pane.is-active{
  display:grid;
}
.maint-pane-callout{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 15px;
  border-radius:16px;
  border:1px solid rgba(255,198,92,.18);
  background:linear-gradient(180deg,rgba(255,198,92,.07),rgba(255,198,92,.025));
  max-width:760px;
}
.maint-pane-icon{
  width:32px;
  height:32px;
  border-radius:11px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  background:rgba(255,198,92,.18);
  color:#ffd885;
  font-family:'Barlow Condensed',sans-serif;
  font-weight:700;
}
.maint-pane-title{
  font-size:16px;
  font-weight:700;
  color:var(--white);
  line-height:1.2;
}
.maint-pane-sub{
  font-size:12.5px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.45;
}
.maint-wizard-card{
  display:grid;
  gap:12px;
  padding:14px 16px 16px;
  border-radius:16px;
  border:1px solid rgba(59,72,90,.8);
  background:linear-gradient(180deg,rgba(10,15,24,.74),rgba(8,12,20,.88));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.maint-wizard-card .fg{
  gap:7px;
}
.maint-wizard-card .fl{
  font-size:12px;
  letter-spacing:1.4px;
  color:#a7b7c9;
}
.maint-wizard-card .fi,
.maint-wizard-card .fsel{
  min-height:46px;
  padding:10px 12px;
  font-size:15px;
  border-radius:12px;
  background:rgba(11,16,26,.9);
  border-color:rgba(59,72,90,.9);
}
.maint-wizard-card .fi:focus,
.maint-wizard-card .fsel:focus{
  border-color:rgba(255,198,92,.35);
  box-shadow:0 0 0 3px rgba(255,198,92,.08);
}
.maint-wizard-card textarea.fi{
  line-height:1.45;
}
.maint-wizard-grid,
.maint-rule-grid,
.maint-trigger-grid,
.maint-task-builder{
  display:grid;
  gap:12px;
}
.maint-wizard-grid.cols-2{
  grid-template-columns:repeat(2,minmax(0,1fr));
}
.maint-col-span-2{
  grid-column:span 2;
}
.maint-wizard-textarea.md{min-height:88px !important}
.maint-wizard-textarea.sm{min-height:120px !important}
.maint-trigger-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
  align-items:stretch;
}
.maint-trigger-card{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:5px;
  min-height:96px;
  padding:15px 14px;
  border-radius:16px;
  border:1px solid rgba(59,72,90,.85);
  background:rgba(255,255,255,.02);
  text-align:left;
  color:var(--soft);
  transition:.18s ease;
}
.maint-trigger-card:hover{
  border-color:rgba(255,198,92,.22);
}
.maint-trigger-card.is-active{
  border-color:rgba(255,198,92,.44);
  background:linear-gradient(180deg,rgba(255,198,92,.14),rgba(255,198,92,.05));
  box-shadow:inset 0 0 0 1px rgba(255,198,92,.08);
}
.maint-trigger-title{
  font-size:16px;
  font-weight:700;
  color:var(--white);
  line-height:1.18;
}
.maint-trigger-sub{
  font-size:11px;
  color:var(--muted);
}
.maint-rule-box{
  display:grid;
  gap:10px;
  padding:13px;
  border-radius:16px;
  border:1px solid rgba(59,72,90,.8);
  background:rgba(255,255,255,.02);
  align-content:start;
}
.maint-rule-title{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.35px;
  text-transform:uppercase;
  color:var(--soft);
  min-height:32px;
  display:flex;
  align-items:flex-start;
  line-height:1.2;
}
.maint-rule-grid{
  grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;
}
.maint-rule-grid .fg{
  height:100%;
  display:grid;
  grid-template-rows:34px minmax(46px,auto);
  align-content:start;
}
.maint-rule-grid .fl{
  min-height:34px;
  display:flex;
  align-items:flex-start;
  margin-bottom:6px;
}
.maint-task-builder{
  grid-template-columns:minmax(0,1fr) auto;
  align-items:end;
}
.maint-task-list{
  display:grid;
  gap:8px;
}
.maint-task-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(59,72,90,.8);
  background:rgba(255,255,255,.02);
}
.maint-task-row-main{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:0;
}
.maint-task-grip{
  color:var(--muted);
  font-size:16px;
  line-height:1;
  padding-top:2px;
}
.maint-task-title{
  font-size:14px;
  font-weight:700;
  color:var(--white);
  line-height:1.35;
}
.maint-task-sub{
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
}
.maint-task-empty{
  border:1px dashed rgba(154,170,184,.26);
  border-radius:16px;
  padding:16px;
  font-size:12px;
  color:var(--muted);
  background:rgba(255,255,255,.015);
}
.maint-toolbar{
  display:grid;
  gap:8px;
}
.maint-toolbar-hint{
  font-size:11.5px;
  color:var(--muted);
  line-height:1.45;
  max-width:760px;
}
.maint-picker-panel{
  display:grid;
  grid-template-rows:auto 1fr;
  min-height:330px;
  border:1px solid rgba(59,72,90,.85);
  border-radius:18px;
  overflow:hidden;
  background:rgba(255,255,255,.015);
}
.maint-picker-head{
  padding:12px 14px;
  border-bottom:1px solid rgba(59,72,90,.8);
  background:rgba(255,255,255,.02);
}
.maint-picker-title{
  font-size:14px;
  font-weight:700;
  color:var(--white);
}
.maint-picker-sub{
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
}
.maint-picker-body{
  padding:10px;
  display:grid;
  gap:8px;
  overflow:auto;
}
.maint-parts-card{
  gap:14px;
}
.maint-parts-intro{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border:1px solid rgba(255,198,92,.18);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,198,92,.07),rgba(255,198,92,.02));
}
.maint-parts-intro-icon{
  width:40px;
  height:40px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,198,92,.15);
  flex-shrink:0;
}
.maint-parts-intro-title{
  font-size:15px;
  font-weight:700;
  color:var(--white);
}
.maint-parts-intro-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
}
.maint-parts-search .fi{
  min-height:48px;
}
.sref-flow-section{
  display:grid;
  gap:10px;
  padding:14px;
  border:1px solid rgba(59,72,90,.72);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(10,16,26,.9),rgba(7,12,20,.96));
}
.sref-flow-section + .sref-flow-section{
  margin-top:12px;
}
.sref-flow-search{
  border-color:rgba(79,118,170,.34);
}
.sref-flow-selected{
  border-color:rgba(255,198,92,.28);
  box-shadow:inset 0 0 0 1px rgba(255,198,92,.06);
}
.sref-flow-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(59,72,90,.55);
}
.sref-flow-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.8px;
  text-transform:uppercase;
  color:var(--soft);
}
.sref-flow-title{
  margin-top:2px;
  font-size:14px;
  font-weight:700;
  color:var(--white);
}
.sref-flow-status{
  flex-shrink:0;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(59,72,90,.85);
  background:rgba(255,255,255,.02);
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:var(--muted);
}
.sref-flow-status.is-accent{
  border-color:rgba(255,198,92,.24);
  color:#ffd885;
}
.maint-parts-results{
  max-height:220px;
  overflow:auto;
  border:1px solid rgba(59,72,90,.82);
  border-radius:16px;
  background:rgba(9,14,22,.84);
}
.maint-parts-selected{
  display:grid;
  gap:10px;
}
.maint-parts-empty{
  padding:16px;
  font-size:12px;
  color:var(--muted);
  border:1px dashed rgba(154,170,184,.22);
  border-radius:14px;
  background:rgba(255,255,255,.015);
}
.maint-parts-group{
  display:grid;
}
.maint-parts-group + .maint-parts-group{
  border-top:1px solid rgba(59,72,90,.68);
}
.maint-parts-group-label{
  padding:10px 14px 8px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:var(--soft);
}
.maint-parts-group-label.catalogo{color:#b9da83}
.maint-parts-group-label.zoho{color:#86c4ff}
.maint-part-result{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-top:1px solid rgba(59,72,90,.45);
}
.maint-part-result:first-of-type{
  border-top:none;
}
.maint-part-result-main{
  min-width:0;
}
.maint-part-result-title{
  font-size:14px;
  font-weight:700;
  color:var(--white);
  line-height:1.25;
}
.maint-part-result-sub{
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
  line-height:1.35;
}
.maint-part-result-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:6px;
}
.maint-part-chip{
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
}
.maint-part-chip.catalogo{
  background:rgba(132,171,88,.16);
  color:#c8e49d;
}
.maint-part-chip.zoho{
  background:rgba(56,122,196,.18);
  color:#a7d3ff;
}
.maint-part-chip.soft{
  background:rgba(255,255,255,.05);
  color:var(--soft);
}
.maint-part-selected{
  display:grid;
  grid-template-columns:minmax(0,1.25fr) 76px 86px 40px;
  gap:10px;
  align-items:center;
  padding:12px 14px;
  border:1px solid rgba(59,72,90,.85);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(6,10,18,.92),rgba(8,12,20,.96));
}
.maint-part-selected-main{
  min-width:0;
}
.maint-part-selected-title{
  font-size:15px;
  font-weight:700;
  color:var(--white);
  line-height:1.2;
}
.maint-part-selected-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.35;
}
.maint-part-selected-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:6px;
}
.maint-part-inline{
  display:flex;
  align-items:center;
  gap:8px;
}
.maint-part-inline .fi,
.maint-part-inline .fsel{
  min-height:40px;
  padding:8px 10px;
  border-radius:10px;
  font-size:14px;
}
.maint-part-inline .fi{
  text-align:center;
}
.maint-part-action{
  width:36px;
  height:36px;
  border-radius:10px;
  border:1px solid rgba(59,72,90,.85);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.maint-part-action:hover{
  border-color:rgba(255,198,92,.34);
  color:#ffd885;
}
.maint-fleet-card{
  gap:14px;
}
.maint-fleet-section{
  display:grid;
  gap:10px;
  padding:14px;
  border:1px solid rgba(59,72,90,.72);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(10,16,26,.92),rgba(7,12,20,.96));
}
.maint-fleet-section-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding-bottom:8px;
  border-bottom:1px solid rgba(59,72,90,.55);
}
.maint-fleet-section-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.7px;
  text-transform:uppercase;
  color:#ffd885;
}
.maint-fleet-section-title{
  font-size:13px;
  font-weight:700;
  color:var(--white);
}
.maint-fleet-intro{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border:1px solid rgba(255,198,92,.18);
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,198,92,.07),rgba(255,198,92,.02));
}
.maint-fleet-intro-icon{
  width:40px;
  height:40px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,198,92,.15);
  flex-shrink:0;
}
.maint-fleet-intro-title{
  font-size:15px;
  font-weight:700;
  color:var(--white);
}
.maint-fleet-intro-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:3px;
}
.maint-fleet-search .fi{
  min-height:48px;
}
.maint-fleet-results{
  max-height:240px;
  overflow:auto;
  border:1px solid rgba(59,72,90,.82);
  border-radius:16px;
  background:rgba(9,14,22,.84);
}
.maint-fleet-selected{
  display:grid;
  gap:10px;
}
.maint-fleet-empty{
  padding:16px;
  font-size:12px;
  color:var(--muted);
  border:1px dashed rgba(154,170,184,.22);
  border-radius:14px;
  background:rgba(255,255,255,.015);
}
.maint-fleet-section .maint-fleet-empty{
  background:rgba(255,255,255,.02);
}
.maint-fleet-result{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border-top:1px solid rgba(59,72,90,.45);
}
.maint-fleet-result:first-child{
  border-top:none;
}
.maint-fleet-result-main{
  min-width:0;
}
.maint-fleet-result-title{
  font-size:14px;
  font-weight:700;
  color:var(--white);
  line-height:1.25;
}
.maint-fleet-result-sub{
  font-size:11px;
  color:var(--muted);
  margin-top:3px;
  line-height:1.35;
}
.maint-fleet-result-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:6px;
}
.maint-fleet-chip{
  display:inline-flex;
  align-items:center;
  padding:3px 8px;
  border-radius:999px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  background:rgba(255,255,255,.05);
  color:var(--soft);
}
.maint-fleet-selected-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border:1px solid rgba(59,72,90,.85);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(6,10,18,.92),rgba(8,12,20,.96));
}
.maint-fleet-selected-main{
  min-width:0;
}
.maint-fleet-selected-title{
  font-size:15px;
  font-weight:700;
  color:var(--white);
  line-height:1.2;
}
.maint-fleet-selected-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
  line-height:1.35;
}
.maint-fleet-selected-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:6px;
}
.tec-vendor-selected{
  margin-top:10px;
}
.tec-vendor-picked{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  padding:12px 14px;
  border:1px solid rgba(209,177,75,.34);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(33,28,18,.98),rgba(19,18,15,.98));
}
.tec-vendor-picked-main{
  min-width:0;
}
.tec-vendor-picked-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:var(--gold);
}
.tec-vendor-picked-title{
  margin-top:4px;
  font-size:14px;
  font-weight:700;
  color:var(--white);
  line-height:1.25;
}
.tec-vendor-picked-meta{
  margin-top:4px;
  font-size:11px;
  color:var(--soft);
}
.tec-vendor-results{
  display:grid;
  gap:0;
  margin-top:10px;
  max-height:220px;
  overflow:auto;
  border:1px solid rgba(59,72,90,.82);
  border-radius:16px;
  background:rgba(9,14,22,.88);
}
.tec-vendor-result{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  width:100%;
  padding:12px 14px;
  border:none;
  border-top:1px solid rgba(59,72,90,.45);
  background:transparent;
  color:inherit;
  text-align:left;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease;
}
.tec-vendor-result:first-child{
  border-top:none;
}
.tec-vendor-result:hover{
  background:rgba(255,255,255,.03);
}
.tec-vendor-result-main{
  min-width:0;
  display:grid;
  gap:3px;
}
.tec-vendor-result-title{
  font-size:13px;
  font-weight:700;
  color:var(--white);
  line-height:1.25;
}
.tec-vendor-result-meta{
  font-size:11px;
  color:var(--muted);
}
.tec-vendor-result-action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:78px;
  padding:6px 10px;
  border:1px solid rgba(209,177,75,.28);
  border-radius:11px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.15px;
  text-transform:uppercase;
  color:var(--gold);
  background:rgba(209,177,75,.06);
}
.tec-vendor-empty{
  padding:14px;
  font-size:12px;
  color:var(--muted);
}
.maint-side-card{
  display:grid;
  gap:10px;
  padding:14px;
  border-radius:16px;
  border:1px solid rgba(59,72,90,.82);
  background:linear-gradient(180deg,rgba(19,29,46,.96),rgba(12,19,31,.96));
}
.maint-side-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.7px;
  text-transform:uppercase;
  color:var(--soft);
}
.maint-side-name{
  font-size:20px;
  font-weight:700;
  color:var(--white);
  line-height:1.15;
}
.maint-side-badge{
  font-family:'Barlow Condensed',sans-serif;
  font-size:13px;
  font-weight:700;
  letter-spacing:.8px;
  color:#ffd885;
}
.maint-side-metrics{
  display:grid;
  gap:8px;
}
.maint-side-row{
  display:grid;
  grid-template-columns:88px minmax(0,1fr);
  align-items:start;
  gap:12px;
  padding-top:8px;
  border-top:1px dashed rgba(59,72,90,.9);
  font-size:13px;
  color:var(--soft);
}
.maint-side-row strong{
  color:var(--white);
  text-align:right;
  line-height:1.35;
  font-size:13px;
}
.maint-progress-list{
  display:grid;
  gap:9px;
}
.maint-progress-row{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:13px;
  color:var(--muted);
}
.maint-progress-dot{
  width:17px;
  height:17px;
  border-radius:999px;
  border:1px solid rgba(154,170,184,.32);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:10px;
  color:var(--muted);
  flex-shrink:0;
}
.maint-progress-row.active{
  color:#ffd885;
}
.maint-progress-row.active .maint-progress-dot{
  border-color:rgba(255,198,92,.48);
  color:#ffd885;
}
.maint-progress-row.done{
  color:#d6e4b2;
}
.maint-progress-row.done .maint-progress-dot{
  border-color:rgba(132,171,88,.5);
  background:rgba(132,171,88,.15);
  color:#d6e4b2;
}
.maint-tip-card{
  padding:13px 14px;
  border-radius:16px;
  border:1px solid rgba(56,122,196,.26);
  background:rgba(16,41,68,.32);
  color:#c8def6;
  font-size:12px;
  line-height:1.5;
}
.maint-wizard-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.maint-foot-step{
  font-size:13px;
  color:var(--muted);
}
.maint-foot-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.maint-foot-actions .btn[disabled]{
  opacity:.45;
  pointer-events:none;
}
.maint-v2-group{
  display:grid;
  gap:8px;
}
.maint-v2-group-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:var(--soft);
}
.maint-v2-group-label.catalogo{color:var(--gold2)}
.maint-v2-group-label.zoho{color:#86c4ff}
.maint-v2-item{
  border:1px solid rgba(59,72,90,.9);
  border-radius:16px;
  background:rgba(255,255,255,.02);
  padding:11px 12px;
  display:grid;
  gap:8px;
}
.maint-v2-item.selected{
  background:rgba(7,10,16,.28);
}
.maint-v2-item-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.maint-v2-item-main{
  min-width:0;
  flex:1;
}
.maint-v2-item-title{
  font-size:13.5px;
  font-weight:700;
  color:var(--white);
  line-height:1.35;
}
.maint-v2-item-meta{
  font-size:10.5px;
  color:var(--soft);
  line-height:1.45;
  margin-top:4px;
  word-break:break-word;
}
.maint-v2-item-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:6px;
}
.maint-v2-pill{
  display:inline-flex;
  align-items:center;
  padding:4px 8px;
  border-radius:999px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  border:1px solid rgba(59,72,90,.9);
  background:rgba(255,255,255,.03);
  color:var(--soft);
}
.maint-v2-pill.catalogo{
  border-color:rgba(255,213,0,.3);
  background:rgba(255,213,0,.08);
  color:var(--gold2);
}
.maint-v2-pill.zoho{
  border-color:rgba(59,130,196,.3);
  background:rgba(59,130,196,.08);
  color:#86c4ff;
}
.maint-v2-pill.soft{
  font-family:'Inter',sans-serif;
  font-weight:500;
  letter-spacing:0;
  text-transform:none;
  color:var(--muted);
}
.maint-v2-item-fields{
  display:grid;
  grid-template-columns:minmax(0,120px) minmax(0,1fr);
  gap:8px;
}
.maint-v2-item-fields .fi{
  min-height:36px;
  padding:7px 9px;
  font-size:13px;
}
.maint-v2-empty{
  border:1px dashed rgba(154,170,184,.26);
  border-radius:14px;
  padding:13px;
  font-size:11.5px;
  color:var(--muted);
  background:rgba(255,255,255,.015);
  line-height:1.45;
}
.falla-equipo-fixed{
  background:linear-gradient(180deg, rgba(255,213,0,.08), rgba(255,213,0,.04));
  border:1px solid rgba(255,213,0,.22);
  border-radius:var(--r);
  padding:12px 14px;
}
.falla-equipo-fixed-code{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.8px;
  text-transform:uppercase;
  color:var(--gold);
  margin-bottom:3px;
}
.falla-equipo-fixed-name{
  font-size:14px;
  font-weight:600;
  color:var(--bright);
  line-height:1.35;
}
.falla-equipo-fixed-sub{
  margin-top:4px;
  font-size:12px;
  color:var(--muted);
}

/* ── DETAIL DRAWER ── */
.dveil{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:90;display:none}
.dveil.open{display:block}
.drawer{
  position:fixed;top:0;right:0;width:100%;height:100%;
  background:linear-gradient(180deg,var(--carbon) 0%,var(--deep) 100%);
  border-left:1px solid var(--rim);
  z-index:91;overflow-y:auto;
  transition:transform .3s cubic-bezier(.22,1,.36,1), visibility .3s ease;
  transform:translateX(100%);
  visibility:hidden;
  pointer-events:none;
  padding-bottom:calc(20px + var(--safe-bot));
}
.drawer.open{transform:translateX(0);visibility:visible;pointer-events:auto}
.dhero{padding:calc(20px + var(--safe-top)) 20px 18px;border-bottom:1px solid var(--rim);background:linear-gradient(135deg,var(--plate),var(--carbon))}
.dherotop{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:12px}
.dey{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:600;letter-spacing:3px;color:var(--gold);text-transform:uppercase;margin-bottom:4px}
.dname{font-family:'Inter',sans-serif;font-size:22px;font-weight:700;color:var(--white);line-height:1.1}
.dbrand{font-size:15px;color:var(--soft);font-weight:300;margin-top:2px}
.dsec{padding:16px 20px;border-bottom:1px solid rgba(28,35,51,.6)}
.dstitle{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:600;letter-spacing:3px;color:var(--soft);text-transform:uppercase;margin-bottom:12px;display:flex;align-items:center;gap:8px}
.dstitle::after{content:'';flex:1;height:1px;background:var(--rim)}
.specgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.speci label{display:block;font-family:'Barlow Condensed',sans-serif;font-size:14px;letter-spacing:2px;color:var(--soft);text-transform:uppercase;margin-bottom:2px}
.speci value{font-size:15px;color:var(--bright)}
.nbox{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r);padding:12px 14px;font-size:14px;color:var(--soft);font-weight:300;line-height:1.6;font-style:italic}
.hentry{display:flex;gap:11px;padding:9px 0;border-bottom:1px solid rgba(28,35,51,.5)}
.hentry:last-child{border-bottom:none}
.hline{display:flex;flex-direction:column;align-items:center;flex-shrink:0;padding-top:2px}
.hcircle{width:8px;height:8px;border-radius:50%;border:1px solid;flex-shrink:0}
.htail{width:1px;flex:1;background:var(--rim);margin-top:3px;min-height:8px}
.hevent{font-size:14px;color:var(--bright);margin-bottom:2px}
.hmeta{font-family:'Barlow Condensed',sans-serif;font-size:14px;color:var(--soft)}

/* ── EMPTY ── */
.empty{text-align:center;padding:50px 20px}
.empty-ico{font-size:40px;opacity:.15;margin-bottom:12px}
.empty-title{font-family:'Inter',sans-serif;font-size:18px;color:var(--soft);margin-bottom:6px}
.empty-sub{font-size:14px;color:var(--soft)}

/* ── TOAST ── */
.toast{
  position:fixed;bottom:calc(var(--nav-h) + var(--safe-bot) + 12px);
  left:14px;right:14px;
  background:var(--plate);border:1px solid var(--wire);border-left:3px solid var(--jade);
  border-radius:var(--r);padding:12px 16px;font-size:15px;color:var(--bright);
  z-index:300;display:none;box-shadow:0 16px 48px rgba(0,0,0,.5);
}
.toast.show{display:flex;align-items:center;gap:10px;animation:tin .25s ease}
.toast.warn{border-left-color:var(--gold)}.toast.err{border-left-color:var(--crimson)}
@keyframes tin{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}

/* ── OT CARD ── */
.ot-card{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r3);padding:14px 15px;margin-bottom:8px;cursor:pointer;transition:border-color .15s}
.ot-card:active{border-color:rgba(255,213,0,.3)}
.ot-card-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:8px}
.ot-folio{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:700;letter-spacing:1.5px;color:var(--gold)}
.ot-eq{font-size:15px;color:var(--soft);margin-top:1px}
.ot-desc{font-size:15px;color:var(--bright);line-height:1.4;margin-bottom:8px}
.ot-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ot-date{font-family:'Barlow Condensed',sans-serif;font-size:14px;color:var(--soft);margin-left:auto}
.ot-table-shell{border-radius:18px}
.ot-table-scroll{
  overflow:auto;
  max-height:min(70vh, 780px);
  background:#0c111a;
}
.ot-table{
  min-width:980px;
  border-collapse:separate;
  border-spacing:0;
}
.ot-table thead th{
  padding:0;
  font-size:13px;
  letter-spacing:2px;
  position:sticky;
  top:0;
  z-index:3;
  background:#0c111a;
  backdrop-filter:none;
  border-bottom:1px solid rgba(74,87,108,.5);
  box-shadow:0 1px 0 rgba(74,87,108,.5), 0 8px 16px rgba(0,0,0,.12);
}
.ot-table tbody tr{
  background:rgba(10,14,22,.45);
}
.ot-table tbody tr:hover{
  background:rgba(255,255,255,.025);
}
.ot-table td{
  padding:12px 14px;
  font-size:13px;
  border-top:1px solid rgba(74,87,108,.18);
  vertical-align: top;
}
.ot-sort-btn{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border:0;
  background:transparent;
  color:var(--soft);
  font:inherit;
  font-size:13px;
  font-weight:700;
  letter-spacing:2px;
  text-transform:uppercase;
  cursor:pointer;
}
.ot-sort-btn:hover{
  color:var(--gold2);
  background:rgba(255,255,255,.025);
}
.ot-sort-btn.is-active{color:var(--bright)}
.ot-sort-indicator{
  min-width:14px;
  text-align:center;
  font-size:12px;
  color:inherit;
}
.ot-table-folio{
  font-family:'Barlow Condensed',sans-serif;
  font-size:14px;
  font-weight:700;
  letter-spacing:1.3px;
  color:var(--gold);
  white-space:nowrap;
}
.ot-table-meta{
  margin-top:3px;
  font-size:10px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:1.1px;
}
.ot-table-eq,
.ot-table-tech{
  color:var(--bright);
  line-height:1.35;
}
.ot-table-desc{
  color:var(--soft);
  line-height:1.4;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:4;
  overflow:hidden;
  text-overflow:ellipsis;
  word-break:break-word;
  min-width:0;
  max-width:360px;
  max-height:calc(1.4em * 4);
}
.ot-cell-desc{width:34%}
.ot-cell-status{width:150px}
.ot-table-status{
  font-size:11px;
  white-space:nowrap;
}
.ot-table-empty{
  padding:18px 20px;
  font-size:13px;
  color:var(--muted);
}
.ot-search-wrap{margin-top:2px}
.ot-search-wrap .search-field span{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:var(--soft);
  flex-shrink:0;
}
.ot-pagination-bar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top:12px;
  flex-wrap:wrap;
}
.ot-pagination-info{
  font-size:12px;
  color:var(--muted);
}
.ot-pagination-actions{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.ot-page-btn{
  min-height:34px;
  min-width:34px;
  padding:7px 11px;
  border-radius:10px;
  border:1px solid var(--wire);
  background:rgba(255,255,255,.02);
  color:var(--soft);
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.2px;
  text-transform:uppercase;
  cursor:pointer;
}
.ot-page-btn:hover{border-color:rgba(255,213,0,.28);color:var(--gold2)}
.ot-page-btn.is-active{
  background:rgba(255,213,0,.1);
  border-color:rgba(255,213,0,.35);
  color:var(--gold2);
}
.ot-page-btn:disabled{
  opacity:.45;
  cursor:not-allowed;
}
.ot-page-gap{
  color:var(--muted);
  font-size:14px;
  padding:0 2px;
}
.hrf-page-head{
  align-items:flex-end;
  gap:16px;
  margin-bottom:14px;
}
.hrf-page-copy{
  min-width:0;
  flex:1;
}
.hrf-page-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:2.8px;
  text-transform:uppercase;
  color:#ffd500;
  margin-bottom:5px;
}
.hrf-page-title{
  font-family:'Inter',sans-serif;
  font-size:22px;
  line-height:1.08;
  font-weight:700;
  color:#f5f7fc;
}
.hrf-page-sub{
  margin-top:8px;
  max-width:760px;
  font-size:13px;
  line-height:1.5;
  color:#97a7b5;
}
.hrf-page-cta{
  min-height:40px;
  padding:8px 16px;
  font-size:13px;
  white-space:nowrap;
  flex-shrink:0;
}
.hrf-shell{
  display:flex;
  flex-direction:column;
  gap:12px;
  width:100%;
  max-width:none;
  margin:0;
}
.hrf-band{
  display:flex;
  align-items:center;
  gap:12px;
  padding:9px 14px;
  border-radius:11px;
  border:1px solid rgba(48,64,78,.7);
  background:#121820;
}
.hrf-band.is-action{
  border-color:rgba(255,213,0,.28);
  background:rgba(255,213,0,.07);
}
.hrf-band.is-clear{
  border-color:rgba(46,171,111,.24);
  background:rgba(46,171,111,.06);
}
.hrf-band-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:10px;
  background:rgba(255,255,255,.05);
  font-size:16px;
  flex-shrink:0;
}
.hrf-band-copy{
  min-width:0;
  flex:1;
}
.hrf-band-title{
  font-size:14px;
  font-weight:600;
  color:var(--bright);
}
.hrf-pipeline{
  display:flex;
  gap:6px;
  overflow:visible;
  flex-wrap:wrap;
  padding:2px 0 6px;
}
.hrf-pipe-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 11px;
  border-radius:10px;
  border:1px solid #263042;
  background:#121820;
  color:#c4cfd8;
  cursor:pointer;
  white-space:nowrap;
  flex-shrink:0;
}
.hrf-pipe-chip.is-active{
  background:rgba(255,213,0,.08);
  border-color:rgba(255,213,0,.34);
  color:#f5f7fc;
}
.hrf-pipe-dot{
  width:8px;
  height:8px;
  border-radius:2px;
  background:var(--pipe,#ffd500);
  flex-shrink:0;
}
.hrf-pipe-count{
  min-width:20px;
  padding:1px 7px;
  border-radius:6px;
  background:rgba(255,255,255,.06);
  font-size:12px;
  font-weight:800;
  text-align:center;
}
.hrf-toolbar{
  display:flex;
  align-items:center;
  gap:12px;
  margin:10px 0 12px;
}
.hrf-toolbar-actions{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
  flex-wrap:wrap;
}
.hrf-search{
  flex:1;
  min-width:320px;
  display:flex;
  align-items:center;
  gap:10px;
  background:linear-gradient(180deg, rgba(18,24,32,.94), rgba(15,22,31,.98));
  border:1px solid rgba(54,69,86,.88);
  border-radius:12px;
  padding:10px 14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.hrf-search input{
  flex:1;
  min-width:0;
  background:none;
  border:none;
  outline:none;
  color:#e6ecf4;
  font-family:'Inter',sans-serif;
  font-size:14px;
}
.hrf-search-ico{
  color:#9aaab8;
  font-size:13px;
}
.hrf-sort-control{
  display:flex;
  align-items:center;
  gap:10px;
  padding:8px 12px;
  border:1px solid rgba(54,69,86,.88);
  border-radius:12px;
  background:linear-gradient(180deg, rgba(18,24,32,.94), rgba(15,22,31,.98));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
  flex-shrink:0;
}
.hrf-sort-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:#8d9aac;
  white-space:nowrap;
}
.hrf-sort-select{
  min-width:220px;
  background:#121820;
  border:1px solid #30404e;
  border-radius:10px;
  color:#e6ecf4;
  font-family:'Inter',sans-serif;
  font-size:13px;
  padding:9px 12px;
  outline:none;
}
.hrf-sort-select:focus{
  border-color:rgba(255,213,0,.42);
  box-shadow:0 0 0 3px rgba(255,213,0,.08);
}
.hrf-result-count{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:600;
  letter-spacing:.9px;
  color:#8d9aac;
  white-space:nowrap;
  flex-shrink:0;
}
.hrf-view-toggle{
  display:inline-flex;
  padding:3px;
  border-radius:12px;
  background:#0f141c;
  border:1px solid rgba(45,58,74,.92);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.hrf-view-toggle button{
  padding:7px 14px;
  border:none;
  background:transparent;
  color:var(--muted);
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:.7px;
  text-transform:uppercase;
  cursor:pointer;
  border-radius:9px;
}
.hrf-view-toggle button.is-active{
  background:#182231;
  color:#ffe040;
}
.hrf-table-wrap{
  border:1px solid #263042;
  border-radius:15px;
  overflow:hidden;
  background:#121820;
  box-shadow:0 12px 30px rgba(0,0,0,.18);
}
.hrf-table-scroll{
  overflow:auto;
  max-width:100%;
  max-height:62vh;
  overscroll-behavior:contain;
}
.hrf-table{
  width:max(100%,1040px);
  min-width:1040px;
  border-collapse:collapse;
  table-layout:auto;
}
.hrf-col-folio{ width:120px; }
.hrf-col-ref{ width:auto; }
.hrf-col-eqot{ width:148px; }
.hrf-col-cost{ width:88px; }
.hrf-col-status{ width:122px; }
.hrf-col-wait{ width:60px; }
.hrf-col-action{ width:220px; }
.hrf-table th{
  position:sticky;
  top:0;
  z-index:2;
  padding:9px 12px;
  text-align:left;
  background:#0b0e14;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11.5px;
  font-weight:600;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:#9aaab8;
  box-shadow:0 1px 0 #263042;
  white-space:nowrap;
}
.hrf-th-eqot{
  text-align:left !important;
  padding-left:12px !important;
  padding-right:12px !important;
}
.hrf-th-status,
.hrf-th-wait{
  text-align:left;
}
.hrf-th-sort-btn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0;
  border:none;
  background:none;
  color:inherit;
  font:inherit;
  letter-spacing:inherit;
  text-transform:inherit;
  cursor:pointer;
}
.hrf-th-sort-btn.is-active{
  color:#ffe040;
}
.hrf-th-sort-icon{
  font-size:11px;
  line-height:1;
}
.hrf-table th.is-right{
  text-align:right;
}
.hrf-table td{
  padding:9px 12px;
  vertical-align:middle;
  border-top:1px solid #1f2937;
  white-space:nowrap;
}
.hrf-table tbody tr{
  transition:background .15s ease;
  background:#161e2b;
}
.hrf-table tbody tr.is-alt{
  background:#121820;
}
.hrf-table tbody tr.is-actionable{
  box-shadow:none;
}
.hrf-folio{
  font-family:'Barlow Condensed',sans-serif;
  font-size:13.5px;
  font-weight:700;
  letter-spacing:.8px;
  color:#ffd500;
  line-height:1;
}
.hrf-folio-inline{
  display:inline-flex;
  align-items:center;
  min-height:22px;
  white-space:nowrap;
}
.hrf-cell-folio{
  white-space:nowrap;
  border-left:3px solid transparent;
}
.hrf-ref-line{
  display:flex;
  align-items:baseline;
  flex-wrap:wrap;
  gap:7px;
  min-width:0;
}
.hrf-ref-name{
  font-size:14px;
  font-weight:600;
  line-height:1.3;
  color:#f5f7fc;
  white-space:normal;
  overflow:visible;
  text-overflow:clip;
}
.hrf-ref-meta{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  color:#8a98a6;
  white-space:nowrap;
  line-height:1;
  margin-top:0;
}
.hrf-eqot-col,
.hrf-status-col,
.hrf-wait-col,
.hrf-action-cell{
  vertical-align:middle !important;
  padding-top:12px;
  padding-bottom:12px;
}
.hrf-eqot-col{
  padding-left:10px !important;
  padding-right:10px !important;
}
.hrf-status-col{
  padding-left:8px !important;
  padding-right:8px !important;
}
.hrf-wait-col{
  padding-left:8px !important;
  padding-right:8px !important;
}
.hrf-col-center,
.hrf-col-start,
.hrf-col-end{
  display:flex;
  align-items:center;
  min-height:26px;
  width:100%;
  white-space:nowrap;
}
.hrf-col-center{
  justify-content:center;
}
.hrf-action-icon{
  align-self:flex-end;
}
.hrf-action-wrap .btn-gold{
  box-shadow:inset 0 1px 0 rgba(255,255,255,.2), 0 6px 16px rgba(255,213,0,.16);
}
.hrf-action-wrap .hrf-btn-ice,
.hrf-action-wrap .hrf-btn-ghost,
.hrf-action-wrap .hrf-btn-danger{
  box-shadow:none;
}
.hrf-col-start{
  justify-content:flex-start;
}
.hrf-col-end{
  justify-content:flex-end;
}
.hrf-cell-wrap{
  min-width:0;
}
.hrf-chip-mini{
  display:inline-flex;
  align-items:center;
  gap:5px;
  padding:3px 9px;
  border-radius:999px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11.5px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
}
.hrf-state-inline{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:7px;
  min-height:22px;
  white-space:nowrap;
}
.hrf-table .ot-table-status{
  min-height:unset;
  padding:2px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.6px;
  line-height:1;
}
.hrf-cell-cost{
  text-align:right;
  font-size:13.5px;
  font-weight:600;
  color:#e6ecf4;
  white-space:nowrap;
}
.hrf-eq-id{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  min-height:20px;
  padding:0;
  min-width:auto;
  border-radius:0;
  background:transparent;
  border:none;
  font-family:'Barlow Condensed',sans-serif;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.5px;
  color:#ffe040;
  line-height:1;
}
.hrf-eqot-inline{
  gap:6px;
}
.hrf-ot-inline{
  display:inline-flex;
  align-items:center;
  min-height:20px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  color:#6fb0e8;
  letter-spacing:.2px;
  line-height:1;
}
.hrf-wait-short{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  min-height:20px;
  min-width:26px;
  padding:0;
  background:transparent;
  border:none;
  font-family:'Barlow Condensed',sans-serif;
  font-size:12.5px;
  color:#9aaab8;
  line-height:1;
  white-space:nowrap;
}
.hrf-status-col{
  text-align:left;
}
.hrf-action-cell{
  text-align:right;
  padding-left:10px;
  padding-right:14px;
}
.hrf-action-wrap{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:6px;
  min-height:24px;
  justify-content:center;
  width:auto;
  margin-left:auto;
}
.hrf-action-wrap.hrf-table-actions{
  flex-direction:row;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:nowrap;
  gap:5px;
  width:100%;
  min-height:30px;
}
.hrf-action-wrap.hrf-table-actions.is-stock-routing{
  gap:6px;
}
.hrf-table-note{
  display:inline-flex;
  align-items:center;
  font-size:11px;
  color:#5b6977;
  white-space:nowrap;
  line-height:1;
  max-width:132px;
  justify-content:flex-end;
  text-align:right;
}
.hrf-table .btn.btn-sm{
  min-height:30px;
  padding:6px 12px;
  font-size:12.5px;
  letter-spacing:.8px;
  white-space:nowrap;
  border-radius:8px;
}
.hrf-action-btn{
  width:auto;
  min-width:unset;
  justify-content:center;
  border-width:1px;
  border-style:solid;
  border-radius:8px;
  box-shadow:none;
}
.hrf-action-wrap.hrf-table-actions .hrf-action-btn{
  flex:0 0 auto;
  white-space:nowrap;
}
.hrf-action-wrap.hrf-table-actions.is-stock-routing .hrf-action-btn{
  min-width:unset;
}
.hrf-action-wrap.hrf-table-actions.is-stock-routing .hrf-action-btn--tengo-stock{
  min-height:30px;
  border-radius:8px;
  background:linear-gradient(135deg,#ffd500,#ffe040);
  border-color:transparent;
  color:#0a0c10;
  box-shadow:none;
}
.hrf-action-wrap.hrf-table-actions.is-stock-routing .hrf-action-btn--a-compras{
  min-height:30px;
  border-radius:8px;
  background:transparent;
  border-color:#30404e;
  color:#c4cfd8;
  font-size:12.5px;
  letter-spacing:.8px;
}
.hrf-action-wrap.hrf-table-actions.is-stock-routing .hrf-action-btn--a-compras:hover{
  background:transparent;
  border-color:#30404e;
  color:#c4cfd8;
}
@media (max-width: 1200px){
  .hrf-table{
    width:100%;
    min-width:0;
    table-layout:fixed;
  }
  .hrf-col-folio{ width:96px; }
  .hrf-col-eqot{ width:118px; }
  .hrf-col-status{ width:106px; }
  .hrf-col-wait{ width:54px; }
  .hrf-col-action{ width:148px; }
  .hrf-table th,
  .hrf-table td{
    padding-left:8px;
    padding-right:8px;
  }
  .hrf-ref-name{
    font-size:13px;
    line-height:1.25;
  }
  .hrf-ref-meta{
    display:block;
    white-space:normal;
    line-height:1.15;
  }
  .hrf-table .ot-table-status{
    padding:2px 8px;
    font-size:10px;
  }
  .hrf-action-cell{
    padding-left:8px;
    padding-right:8px;
  }
  .hrf-action-wrap.hrf-table-actions{
    flex-direction:column;
    align-items:stretch;
    gap:4px;
  }
  .hrf-action-wrap.hrf-table-actions .hrf-action-btn{
    width:100%;
  }
  .hrf-table .btn.btn-sm{
    min-height:28px;
    padding:5px 8px;
    font-size:11.5px;
    letter-spacing:.45px;
  }
  .hrf-table-note{
    max-width:none;
    white-space:normal;
    line-height:1.2;
  }
}
.hrf-btn-ghost{
  background:transparent;
  border-color:#30404e;
  color:#c4cfd8;
}
.hrf-btn-ghost:hover{
  border-color:#30404e;
  color:#c4cfd8;
}
.hrf-btn-ice{
  background:transparent;
  border-color:#30404e;
  color:#c4cfd8;
}
.hrf-btn-ice:hover{
  border-color:#30404e;
  color:#c4cfd8;
}
.hrf-btn-danger{
  background:rgba(192,48,64,.12);
  border-color:rgba(192,48,64,.38);
  color:#e96070;
}
.hrf-btn-danger:hover{
  border-color:rgba(192,48,64,.38);
  color:#e96070;
}
.hrf-btn-icon{
  width:30px;
  height:30px;
  padding:0;
  border-radius:8px;
  border:1px solid #30404e;
  background:transparent;
  color:#c4cfd8;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex-shrink:0;
}
.hrf-btn-icon.is-danger{
  border-color:rgba(192,48,64,.38);
  background:rgba(192,48,64,.12);
  color:#e96070;
}
.hrf-cards{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.hrf-card{
  display:flex;
  flex-direction:column;
  gap:0;
  padding:15px 17px;
  border:1px solid #263042;
  border-radius:16px;
  background:#18202e;
  transition:border-color .2s ease;
}
.hrf-card.is-actionable{
  box-shadow:none;
}
.hrf-card:hover{
  border-color:#30404e;
}
.hrf-card-top{
  display:flex;
  align-items:center;
  gap:9px;
  flex-wrap:wrap;
}
.hrf-card-name{
  font-size:17px;
  font-weight:700;
  line-height:1.35;
  color:var(--bright);
  margin-top:9px;
}
.hrf-card-wait{
  margin-left:auto;
  font-family:'Barlow Condensed',sans-serif;
  font-size:12.5px;
  letter-spacing:.5px;
  color:#9aaab8;
}
.hrf-card-urg{
  font-size:11.5px;
}
.hrf-card-subline{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:5px;
  font-size:13.5px;
  color:#c4cfd8;
}
.hrf-card-part{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12.5px;
  letter-spacing:.5px;
  color:#6fb0e8;
}
.hrf-card-sep{
  font-size:13px;
  color:#9aaab8;
}
.hrf-card-cost{
  font-size:14px;
  font-weight:600;
  color:#e6ecf4;
}
.hrf-card-tags{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin-top:11px;
}
.hrf-equip-chip{
  display:inline-flex;
  align-items:center;
  gap:6px;
  background:#1e2838;
  border:1px solid #30404e;
  border-radius:8px;
  padding:5px 10px;
  color:#c4cfd8;
  font-size:13px;
}
.hrf-ot-chip{
  display:inline-flex;
  align-items:center;
  gap:5px;
  background:rgba(59,130,196,.1);
  border:1px solid rgba(59,130,196,.22);
  border-radius:8px;
  padding:5px 10px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.5px;
  color:#6fb0e8;
}
.hrf-card-tech{
  font-size:13px;
  color:#9aaab8;
}
.hrf-track{
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:14px;
}
.hrf-track-col{
  flex:1;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:5px;
}
.hrf-track-bar{
  width:100%;
  height:4px;
  border-radius:3px;
  background:#263042;
}
.hrf-track-bar.is-current{
  box-shadow:0 0 0 1px rgba(255,255,255,.22);
}
.hrf-track-bar.is-done{
  background:var(--track,#ffd500);
}
.hrf-track-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:600;
  letter-spacing:.3px;
  text-transform:uppercase;
  color:#586474;
}
.hrf-track-label.is-current{
  color:#ffd500;
}
.hrf-card-foot{
  display:flex;
  align-items:center;
  gap:12px;
  margin-top:14px;
  padding-top:13px;
  border-top:1px solid #263042;
}
.hrf-card-note{
  font-size:13px;
  color:#9aaab8;
  flex:1;
}
.hrf-card-reject{
  margin-top:12px;
  padding:10px 12px;
  background:rgba(192,48,64,.08);
  border:1px solid rgba(192,48,64,.25);
  border-radius:10px;
  font-size:13.5px;
  color:#c4cfd8;
}
.hrf-card-reject-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1px;
  color:#e96070;
  text-transform:uppercase;
  margin-right:8px;
}
.hrf-empty{
  text-align:center;
  padding:48px 20px;
  color:#9aaab8;
  border:none;
  border-radius:0;
  background:transparent;
}
.hrf-empty-ico{
  font-size:34px;
  margin-bottom:10px;
}
.hrf-empty-title{
  font-size:16px;
  font-weight:600;
  color:#c4cfd8;
}
.hrf-empty-sub{
  margin-top:5px;
  font-size:13.5px;
  color:#9aaab8;
}
@media (max-width:900px){
  .hrf-band{
    align-items:flex-start;
    flex-wrap:wrap;
  }
  .hrf-toolbar-actions{
    flex-wrap:wrap;
  }
  .hrf-sort-control{
    order:2;
  }
  .hrf-result-count{
    order:3;
  }
}
@media (max-width:640px){
  .hrf-page-head{
    align-items:flex-start;
  }
  .hrf-page-title{
    font-size:19px;
  }
  .hrf-page-sub{
    max-width:none;
    font-size:12.5px;
  }
  .hrf-page-cta{
    width:100%;
  }
  .hrf-pipeline{
    overflow-x:auto;
    flex-wrap:nowrap;
  }
  .hrf-search{
    min-width:100%;
  }
  .hrf-sort-control{
    width:100%;
    flex-wrap:wrap;
    align-items:flex-start;
  }
  .hrf-sort-select{
    width:100%;
    min-width:0;
  }
  .hrf-view-toggle{
    width:100%;
  }
  .hrf-view-toggle button{
    flex:1;
  }
  .hrf-card-foot{
    flex-wrap:wrap;
    align-items:flex-start;
  }
  .hrf-track{
    overflow-x:auto;
  }
  .hrf-track-col{
    min-width:68px;
  }
}

/* ── USERS TABLE ── */
#usuariosList.users-list-table,
#usuariosList.users-list-view{
  display:block;
}
.users-panel{
  display:flex;
  flex-direction:column;
  gap:14px;
}
.users-toolbar{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding:16px 18px;
  border:1px solid rgba(255,213,0,.16);
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,213,0,.05), rgba(255,255,255,.02));
}
.users-toolbar-main{
  min-width:min(100%, 360px);
}
.users-toolbar-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.8px;
  text-transform:uppercase;
  color:var(--gold2);
}
.users-toolbar-title{
  margin-top:4px;
  font-size:22px;
  font-weight:800;
  color:var(--bright);
}
.users-toolbar-sub{
  margin-top:4px;
  max-width:720px;
  font-size:12px;
  color:var(--muted);
  line-height:1.45;
}
.users-toolbar-side{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.users-stat-pill{
  display:flex;
  flex-direction:column;
  gap:2px;
  min-width:92px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(74,87,108,.42);
  background:rgba(12,17,26,.72);
}
.users-stat-pill strong{
  font-family:'Barlow Condensed',sans-serif;
  font-size:22px;
  font-weight:700;
  line-height:1;
  color:var(--bright);
}
.users-stat-pill span{
  font-size:10px;
  letter-spacing:1.2px;
  text-transform:uppercase;
  color:var(--muted);
}
.users-search-wrap{
  max-width:520px;
}
.users-search-wrap .search-field span{
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:var(--soft);
  flex-shrink:0;
}
.users-list-shell{
  overflow:hidden;
}
.users-list-stack{
  display:flex;
  flex-direction:column;
  gap:10px;
}
.users-list-item{
  padding:15px 16px;
  border:1px solid rgba(74,87,108,.34);
  border-radius:16px;
  background:rgba(12,17,26,.72);
}
.users-list-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.users-list-badges{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}
.users-list-meta{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin-top:12px;
}
.users-list-meta-item{
  min-width:0;
}
.users-list-meta-label{
  margin-bottom:4px;
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.3px;
  text-transform:uppercase;
  color:var(--muted);
}
.users-list-actions{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(74,87,108,.24);
}
.users-user{
  display:flex;
  align-items:flex-start;
  gap:12px;
  min-width:260px;
}
.users-avatar{
  width:38px;
  height:38px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--gold),var(--ember));
  display:flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
  font-family:'Barlow Condensed',sans-serif;
  font-size:14px;
  font-weight:700;
  color:#111;
}
.users-user-main{
  min-width:0;
}
.users-user-name{
  font-size:13px;
  font-weight:700;
  color:var(--bright);
  line-height:1.35;
}
.users-user-tags{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
  margin-top:5px;
}
.users-mini-tag{
  display:inline-flex;
  align-items:center;
  padding:3px 7px;
  border-radius:999px;
  font-size:10px;
  font-weight:700;
  letter-spacing:.8px;
  text-transform:uppercase;
  background:rgba(74,87,108,.18);
  color:var(--soft);
}
.users-mini-tag.is-self{
  background:rgba(255,213,0,.12);
  color:var(--gold2);
}
.users-mini-tag.is-pending{
  background:rgba(232,131,49,.12);
  color:#f2b36a;
}
.users-user-meta{
  margin-top:6px;
  font-size:11px;
  color:var(--ice);
}
.users-role-pill{
  font-size:11px;
}
.users-contact-primary,
.users-date-primary{
  color:var(--bright);
  line-height:1.4;
}
.users-contact-secondary,
.users-date-secondary{
  margin-top:3px;
  font-size:11px;
  color:var(--muted);
}
.users-state-badge{
  display:inline-flex;
  align-items:center;
  padding:5px 10px;
  border-radius:999px;
  border:1px solid rgba(74,87,108,.38);
  font-family:'Barlow Condensed',sans-serif;
  font-size:12px;
  font-weight:700;
  letter-spacing:1.1px;
  text-transform:uppercase;
  white-space:nowrap;
}
.users-state-badge.is-active{
  color:#8be0b3;
  background:rgba(79,212,154,.08);
  border-color:rgba(79,212,154,.2);
}
.users-state-badge.is-pending{
  color:var(--gold2);
  background:rgba(255,213,0,.08);
  border-color:rgba(255,213,0,.22);
}
.users-row-actions{
  display:flex;
  gap:6px;
  flex-wrap:wrap;
}
.users-row-actions .btn{
  min-height:30px;
  padding:6px 10px;
  font-size:11px;
}
.users-btn-warn{
  background:rgba(255,213,0,.1);
  border-color:rgba(255,213,0,.28);
  color:var(--gold);
}
.users-btn-info{
  background:rgba(72,176,232,.12);
  border-color:rgba(72,176,232,.3);
  color:var(--ice);
}
.users-btn-danger{
  background:rgba(192,48,64,.12);
  border-color:rgba(192,48,64,.3);
  color:var(--crimson);
}
.users-inline-note{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  font-size:11px;
  color:var(--muted);
}
.users-empty-row{
  padding:22px 18px;
  font-size:13px;
  color:var(--muted);
  text-align:center;
}
.users-empty-state{
  padding:30px 18px;
  text-align:center;
}
.users-empty-icon{
  width:54px;
  height:54px;
  margin:0 auto 10px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,213,0,.08);
  color:var(--gold2);
  font-family:'Barlow Condensed',sans-serif;
  font-size:24px;
  font-weight:700;
}
.users-empty-title{
  font-size:15px;
  font-weight:700;
  color:var(--bright);
}
.users-empty-copy{
  margin-top:6px;
  font-size:12px;
  color:var(--muted);
}
@media (max-width:900px){
  .users-toolbar{
    padding:14px;
    border-radius:14px;
  }
  .users-toolbar-title{
    font-size:19px;
  }
  .users-search-wrap{
    max-width:none;
  }
  .users-list-meta{
    grid-template-columns:1fr;
  }
}

/* ── FALLA CARD ── */
.falla-card{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r3);padding:14px 15px;margin-bottom:8px;position:relative;overflow:hidden}
.falla-card.critica,
.falla-card.alta,
.falla-card.media,
.falla-card.baja{border-left:0}
.page-fallas .fallas-kpi-strip{grid-template-columns:repeat(4,minmax(0,1fr));margin-bottom:12px}
.page-fallas .fallas-kpi-strip .kpi-cell{padding:12px 14px}
.page-fallas .fallas-kpi-strip .kpi-label{font-size:12px;letter-spacing:1.8px;margin-bottom:3px}
.page-fallas .fallas-kpi-strip .kpi-num{font-size:24px;margin-bottom:3px}
.page-fallas .fallas-kpi-strip .kpi-sub{font-size:12px}
.page-fallas .fallas-kpi-delta{margin-top:7px;font-size:12px;font-weight:600;line-height:1.4;color:#c6d1dd;overflow-wrap:anywhere}
.page-fallas .fallas-kpi-delta.is-better{color:#8de2ae}
.page-fallas .fallas-kpi-delta.is-worse{color:#ffa4ab}
.page-fallas .fallas-kpi-strip .kpi-cell{min-width:0}
.page-fallas .fallas-filter-scroll{gap:8px;margin-bottom:10px;flex-wrap:wrap;overflow:visible}
.page-fallas .fallas-filter-scroll .chip{min-height:34px;padding:6px 11px;font-size:12px;letter-spacing:.85px}
.page-fallas .fallas-filter-scroll .chip .sec-count{font-size:13px}
.page-fallas .fallas-subfilters{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;padding:12px;background:var(--plate);border:1px solid var(--wire);border-radius:10px}
.page-fallas .fallas-subfilters label{display:flex;flex-direction:column;gap:6px;flex:1 1 175px;min-width:0;font-size:12px;font-weight:600;color:#d1d9e2}
.page-fallas .fallas-subfilters .fallas-search-label{flex:2 1 220px}
.page-fallas .fallas-subfilters [hidden]{display:none}
.page-fallas .fallas-subfilters :is(input,select){box-sizing:border-box;width:100%;min-width:0;min-height:38px;padding:8px 10px;border:1px solid #63758a;border-radius:6px;background:#111b26;color:#f3f6f9;font:inherit}
.page-fallas .fallas-subfilters option{background:#111b26;color:#f3f6f9}
.page-fallas .fallas-subfilters .btn{min-height:38px;color:#d1d9e2}
.page-fallas :is(.fallas-subfilters input,.fallas-subfilters select,.fallas-subfilters button,.fallas-filter-scroll button):focus-visible{outline:2px solid #f5cf57;outline-offset:3px}
.page-fallas .fallas-filter-hint{font-size:12px;line-height:1.5;color:#b7c4d2;margin:9px 0 14px}
.page-fallas .fallas-list-head{margin-bottom:8px}
.page-fallas .fallas-list-hint{font-size:12px;color:var(--muted)}
.fallas-list{display:block}
.fallas-empty-state{padding:18px 16px;border:1px solid rgba(44,58,73,.78);border-radius:12px;background:linear-gradient(180deg,rgba(20,30,44,.96),rgba(18,28,41,.98));font-size:13px;color:#93a2b2}
.fallas-table-shell{border:1px solid rgba(44,58,73,.82);border-radius:14px;overflow:hidden;background:linear-gradient(180deg,rgba(19,29,42,.98),rgba(17,26,39,.99))}
.fallas-table{width:100%;border-collapse:collapse;table-layout:fixed}
.fallas-table thead th{padding:10px 12px;border-bottom:1px solid rgba(48,64,78,.9);background:rgba(17,27,39,.96);font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:1.1px;color:#8f9cab;text-transform:uppercase;text-align:left;position:sticky;top:0;z-index:1}
.fallas-th-folio{width:14%}
.fallas-th-equipo{width:20%}
.fallas-th-desc{width:28%}
.fallas-th-sev{width:10%}
.fallas-th-status{width:11%}
.fallas-th-ot{width:8%}
.fallas-th-report{width:17%}
.fallas-th-open{width:36px}
.fallas-row{cursor:pointer;transition:background .16s ease}
.fallas-row:hover{background:rgba(255,255,255,.025)}
.fallas-row + .fallas-row td{border-top:1px solid rgba(40,54,69,.72)}
.fallas-row-critica{box-shadow:inset 3px 0 0 rgba(232,63,84,.72)}
.fallas-row-alta{box-shadow:inset 3px 0 0 rgba(255,132,60,.7)}
.fallas-row-media{box-shadow:inset 3px 0 0 rgba(255,213,77,.58)}
.fallas-row-baja{box-shadow:inset 3px 0 0 rgba(62,214,140,.52)}
.fallas-cell{padding:10px 12px;vertical-align:middle;font-size:12px;color:#d5dee7}
.fallas-cell-folio,.fallas-cell-report{vertical-align:top}
.fallas-folio{font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:700;letter-spacing:1px;color:#b1bdc9}
.fallas-system{margin-top:2px;font-size:11px;color:#7f8d9d}
.fallas-cell-equipo,.fallas-cell-desc{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fallas-cell-equipo{font-weight:600;color:#f2c83b}
.fallas-cell-desc{color:#d8e0e7}
.fallas-cell-status,.fallas-cell-sev,.fallas-cell-ot,.fallas-cell-open{text-align:left}
.fallas-cell-report{color:#93a2b2}
.fallas-report-name{font-size:12px;color:#d5dee7}
.fallas-report-meta{margin-top:2px;font-size:11px;color:#7f8d9d}
.fallas-report-origin{margin-top:5px}
.fallas-cell-muted{font-size:12px;color:#69798a}
.fallas-mobile-list{display:none}
.fallas-mobile-list .falla-card{margin-bottom:0}
.falla-card{background:linear-gradient(180deg,rgba(23,34,48,.98),rgba(20,30,44,.99));border:1px solid rgba(44,58,73,.82);border-radius:12px;padding:10px 12px;position:relative;overflow:hidden;box-shadow:none;transition:border-color .16s ease,background .16s ease}
.falla-card:hover{border-color:rgba(86,111,134,.82);background:linear-gradient(180deg,rgba(26,39,55,.99),rgba(22,33,49,.99))}
.falla-card::before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:rgba(255,255,255,.1)}
.falla-card.critica::before{background:linear-gradient(180deg,var(--crimson),rgba(255,95,95,.35))}
.falla-card.alta::before{background:linear-gradient(180deg,var(--ember),rgba(255,155,70,.35))}
.falla-card.media::before{background:linear-gradient(180deg,var(--gold),rgba(255,213,77,.3))}
.falla-card.baja::before{background:linear-gradient(180deg,var(--jade),rgba(62,214,140,.28))}
.falla-card-shell{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 12px;align-items:center}
.falla-main{min-width:0;display:grid;gap:4px}
.falla-id-row{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}
.falla-id{font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:700;letter-spacing:1px;color:#93a2b2;line-height:1.15}
.falla-eq{font-family:'Inter',sans-serif;font-size:15px;font-weight:700;line-height:1.2;color:#f2c83b}
.falla-sev-pill{display:inline-flex;align-items:center;justify-content:center;min-height:22px;padding:0 9px;border-radius:999px;border:1px solid rgba(255,255,255,.08);font-family:'Barlow Condensed',sans-serif;font-size:10px;font-weight:700;letter-spacing:.9px;text-transform:uppercase;white-space:nowrap;flex-shrink:0}
.falla-sev-pill.is-critica{background:rgba(232,63,84,.14);border-color:rgba(232,63,84,.34);color:#ff8796}
.falla-sev-pill.is-alta{background:rgba(255,132,60,.14);border-color:rgba(255,132,60,.3);color:#ffad73}
.falla-sev-pill.is-media{background:rgba(255,213,77,.14);border-color:rgba(255,213,77,.3);color:#ffd86f}
.falla-sev-pill.is-baja{background:rgba(62,214,140,.14);border-color:rgba(62,214,140,.28);color:#7ae7b0}
.falla-desc{font-size:13px;color:#d4dde6;line-height:1.35;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.falla-inline-meta{display:flex;align-items:center;gap:5px 8px;flex-wrap:wrap}
.falla-status-pill,.falla-origin-pill{font-size:10px !important;padding:3px 7px !important;min-height:20px}
.falla-ot-pill{display:inline-flex;align-items:center;min-height:20px;padding:0 8px;border-radius:999px;background:rgba(255,213,77,.08);border:1px solid rgba(255,213,77,.16);font-family:'Barlow Condensed',sans-serif;font-size:10px;font-weight:700;letter-spacing:.8px;color:#f2c83b}
.falla-by{font-size:11.5px;color:#8190a0}
.falla-rail{display:flex;flex-direction:column;align-items:flex-end;justify-content:center;gap:5px;min-width:120px}
.falla-open-glyph{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:999px;color:rgba(255,213,77,.78);font-size:18px;line-height:1;transform:translateX(1px)}
.falla-actions{display:flex;gap:6px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(28,35,51,.7)}

/* ── MAINT CARD ── */
.maint-card{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r3);padding:14px 15px;margin-bottom:8px}
.maint-card-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:6px}
.maint-eq{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:700;letter-spacing:1.5px;color:var(--gold)}
.maint-desc{font-size:15px;color:var(--bright);line-height:1.4;margin-bottom:8px}
.maint-foot{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* ── REF CARD ── */
.ref-card{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r3);padding:13px 15px;margin-bottom:8px}
.ref-card.critico{border-left:3px solid var(--crimson)}
.ref-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:6px}
.ref-nombre{font-size:15px;font-weight:500;color:var(--bright)}
.ref-parte{font-family:'Barlow Condensed',sans-serif;font-size:14px;letter-spacing:1px;color:var(--gold)}
.ref-stock-big{font-family:'Inter',sans-serif;font-size:28px;font-weight:600;line-height:1}
.ref-foot{display:flex;align-items:center;justify-content:space-between;margin-top:8px;padding-top:8px;border-top:1px solid rgba(28,35,51,.7)}

/* ── DASH CARD ── */
.dash-card{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r2);padding:16px;margin-bottom:12px}
.dash-card-title{font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:600;letter-spacing:2.5px;color:var(--soft);text-transform:uppercase;margin-bottom:14px}
.rpt-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px;padding:10px 12px;border:1px solid rgba(255,255,255,.06);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.02) 0%,rgba(255,255,255,.012) 100%)}
.rpt-toolbar-group{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.rpt-toolbar-label{font-size:10px;font-weight:700;letter-spacing:1px;color:#8fa3b8;text-transform:uppercase}
.rpt-toolbar-select-wrap{position:relative}
.rpt-toolbar-select{min-width:220px;height:34px;padding:0 34px 0 12px;border-radius:12px;border:1px solid rgba(255,255,255,.08);background:rgba(8,14,24,.92);color:var(--bright);font-size:12px;outline:none}
.rpt-toolbar-context{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.rpt-toolbar-chip{display:inline-flex;align-items:center;min-height:26px;padding:0 10px;border-radius:999px;border:1px solid rgba(255,213,0,.18);background:rgba(255,213,0,.08);color:var(--gold2);font-size:11px;font-weight:700}
.rpt-toolbar-chip.is-muted{border-color:rgba(126,195,255,.18);background:rgba(126,195,255,.08);color:#b7d9ff}
.rpt-toolbar-sub{font-size:11px;color:var(--muted)}
.rpt-kpi-strip{margin-bottom:12px}
.rpt-kpi-strip--executive{grid-template-columns:repeat(5,minmax(0,1fr))}
.rpt-report-grid{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr);gap:12px;min-width:0}
.rpt-report-grid--stacked{grid-template-columns:1fr}
.rpt-report-grid--bottom{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);margin-top:12px}
.rpt-panel{padding:14px 14px 15px;min-width:0}
.rpt-panel--hero{background:linear-gradient(180deg,rgba(18,27,43,.98) 0%,rgba(16,23,37,.98) 100%)}
.rpt-stack{display:grid;gap:10px}
.rpt-caption{font-size:12px;line-height:1.45;color:var(--muted)}
.rpt-hero-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:12px}
.rpt-hero-title{font-size:18px;font-weight:700;letter-spacing:.2px;color:var(--bright)}
.rpt-hero-sub{font-size:12px;line-height:1.45;color:var(--muted);max-width:620px;margin-top:4px}
.rpt-health-badge{display:grid;gap:2px;min-width:180px;padding:10px 12px;border-radius:14px;border:1px solid rgba(255,255,255,.07);background:rgba(255,255,255,.025)}
.rpt-health-badge strong{font-size:13px;font-weight:700;color:var(--bright)}
.rpt-health-badge span{font-size:11px;line-height:1.35;color:var(--muted)}
.rpt-health-badge.is-good{border-color:rgba(74,182,128,.28);background:rgba(74,182,128,.09)}
.rpt-health-badge.is-alert{border-color:rgba(220,90,90,.28);background:rgba(220,90,90,.08)}
.rpt-health-badge.is-neutral{border-color:rgba(255,255,255,.08)}
.rpt-trend-legend{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:10px}
.rpt-trend-legend span{display:flex;align-items:center;gap:6px;font-size:11px;color:var(--muted)}
.rpt-trend-legend i{display:inline-block;width:10px;height:10px;border-radius:999px}
.rpt-trend-legend i.is-active{background:linear-gradient(180deg,rgba(255,213,0,.98) 0%,rgba(255,180,0,.9) 100%)}
.rpt-trend-legend i.is-tenure{background:linear-gradient(180deg,rgba(126,195,255,.95) 0%,rgba(72,138,234,.88) 100%)}
.rpt-trend-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:12px}
.rpt-trend-strip-item{display:grid;gap:3px;padding:10px 12px;border:1px solid rgba(255,255,255,.055);border-radius:14px;background:linear-gradient(180deg,rgba(255,255,255,.022) 0%,rgba(255,255,255,.012) 100%)}
.rpt-trend-strip-item span{font-size:10px;font-weight:700;letter-spacing:.85px;color:#8fa3b8;text-transform:uppercase}
.rpt-trend-strip-item strong{font-family:'Barlow Condensed',sans-serif;font-size:22px;line-height:1;color:var(--bright);font-weight:700}
.rpt-trend-strip-item small{font-size:11px;line-height:1.35;color:var(--muted)}
.rpt-trend-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;padding:0 0 6px 0;margin:0 0 12px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.rpt-za-shell{display:inline-block;width:max-content;max-width:none;min-width:100%;padding:4px 4px 0 4px}
.rpt-za-chart{display:block;max-width:none}
.rpt-za-axis-caption{font-size:10px;font-weight:700;letter-spacing:.85px;fill:#8fa3b8;text-transform:uppercase}
.rpt-za-axis-row .rpt-za-grid-line{stroke:rgba(255,255,255,.06);stroke-width:1}
.rpt-za-axis-text{font-size:10px;fill:#7f92a7}
.rpt-za-current-band{fill:rgba(255,255,255,.024);stroke:rgba(255,255,255,.035);stroke-width:1}
.rpt-za-area{fill:url(#rptZaAreaFill)}
.rpt-za-bar{fill:url(#rptZaBarFill);filter:drop-shadow(0 5px 8px rgba(255,213,0,.11))}
.rpt-za-bar.is-current{filter:drop-shadow(0 8px 14px rgba(255,213,0,.18))}
.rpt-za-line{fill:none;stroke:#7ec3ff;stroke-width:2.1;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 2px 6px rgba(126,195,255,.16))}
.rpt-za-point-ring{fill:rgba(10,19,33,.9);stroke:#7ec3ff;stroke-width:1.6}
.rpt-za-point-dot{fill:#dff0ff}
.rpt-za-point.is-current .rpt-za-point-ring{fill:#11233a;stroke:#ffffff}
.rpt-za-month{font-size:11px;font-weight:700;fill:#dfe6ef}
.rpt-za-year{font-size:10px;fill:#7f92a7}
.rpt-za-label.is-current .rpt-za-month{fill:#ffd94f}
.rpt-za-hit rect{pointer-events:all}
.rpt-insight-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:12px}
.rpt-insight-card{display:grid;gap:3px;padding:10px 11px;border:1px solid rgba(255,255,255,.06);border-radius:13px;background:rgba(255,255,255,.018)}
.rpt-insight-card span{font-size:10px;font-weight:700;letter-spacing:.85px;color:#8fa3b8;text-transform:uppercase}
.rpt-insight-card strong{font-family:'Barlow Condensed',sans-serif;font-size:23px;line-height:1;color:var(--bright);font-weight:700}
.rpt-insight-card small{font-size:11px;line-height:1.35;color:var(--muted)}
.rpt-month-chart{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:8px;align-items:end;min-height:228px;padding:14px 14px 12px;border:1px solid rgba(255,255,255,.06);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.025) 0%,rgba(255,255,255,.015) 100%);margin-bottom:12px}
.rpt-month-col{display:grid;gap:8px;align-items:end;min-width:0}
.rpt-month-bar-wrap{height:132px;border-radius:12px;background:linear-gradient(180deg,rgba(255,255,255,.035) 0%,rgba(255,255,255,.01) 100%);border:1px solid rgba(255,255,255,.05);display:flex;align-items:flex-end;overflow:hidden}
.rpt-month-bar{width:100%;border-radius:10px 10px 0 0;background:linear-gradient(180deg,rgba(255,213,0,.98) 0%,rgba(255,180,0,.9) 100%);box-shadow:0 8px 18px rgba(255,213,0,.14)}
.rpt-month-metrics{display:flex;align-items:center;justify-content:space-between;gap:6px;font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:.5px;color:#9ecfb4}
.rpt-month-metrics span:last-child{color:#f2a394}
.rpt-month-active{font-family:'Barlow Condensed',sans-serif;font-size:20px;font-weight:700;line-height:1;color:var(--bright);letter-spacing:.4px}
.rpt-month-label{font-size:11px;line-height:1.15;color:var(--muted);text-transform:lowercase}
.rpt-table-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.rpt-table-title{font-size:14px;font-weight:700;color:var(--bright)}
.rpt-table-sub{font-size:11px;line-height:1.35;color:var(--muted);margin-top:2px}
.rpt-table-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;min-width:min(100%,520px)}
.rpt-table-kpi{display:grid;gap:2px;padding:8px 10px;border:1px solid rgba(255,255,255,.055);border-radius:12px;background:rgba(255,255,255,.016)}
.rpt-table-kpi span{font-size:10px;font-weight:700;letter-spacing:.85px;color:#8fa3b8;text-transform:uppercase}
.rpt-table-kpi strong{font-family:'Barlow Condensed',sans-serif;font-size:20px;line-height:1;color:#f3f6fb;font-weight:700}
.rpt-table-kpi strong.is-jade{color:#8ff0c2}
.rpt-table-kpi strong.is-crimson{color:#ff9e90}
.rpt-table-wrap{overflow:auto;border:1px solid rgba(255,255,255,.05);border-radius:16px;background:linear-gradient(180deg,rgba(255,255,255,.015) 0%,rgba(255,255,255,.008) 100%)}
.rpt-table{width:100%;border-collapse:separate;border-spacing:0;min-width:620px;table-layout:fixed}
.rpt-table thead th{position:sticky;top:0;z-index:1;padding:10px 12px;border-bottom:1px solid rgba(255,255,255,.07);background:rgba(6,12,22,.98);font-size:10px;font-weight:700;letter-spacing:.9px;color:#8fa3b8;text-transform:uppercase;text-align:left;white-space:nowrap}
.rpt-table thead th:not(:first-child){text-align:right}
.rpt-table-row:nth-child(even){background:rgba(255,255,255,.01)}
.rpt-table-row:hover{background:rgba(255,255,255,.018)}
.rpt-table-cell{padding:9px 12px;border-bottom:1px solid rgba(255,255,255,.04);font-size:13px;color:#dbe5ee;vertical-align:middle}
.rpt-table-cell.is-strong{font-weight:700;color:#f3f6fb}
.rpt-table-cell.is-number{text-align:right;font-family:'Barlow Condensed',sans-serif;font-size:20px;letter-spacing:.2px}
.rpt-table-cell.is-jade{color:#7fe0b4}
.rpt-table-cell.is-crimson{color:#ff8b7a}
.rpt-table-cell.is-gold{color:#ffd500;font-weight:700}
.rpt-table-month-inline{font-size:14px;line-height:1.15;color:#f3f6fb;font-weight:700}
.rpt-info-card{display:grid;gap:8px;padding:12px 13px;border:1px solid rgba(255,255,255,.06);border-radius:15px;background:linear-gradient(180deg,rgba(255,255,255,.028) 0%,rgba(255,255,255,.016) 100%)}
.rpt-info-title{font-size:13px;font-weight:700;color:var(--bright)}
.rpt-info-sub{font-size:12px;line-height:1.4;color:var(--muted)}
.rpt-split-list{display:grid;gap:12px}
.rpt-split-row{display:grid;gap:6px}
.rpt-split-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.rpt-split-label{font-size:13px;font-weight:700;color:var(--bright)}
.rpt-split-sub,.rpt-split-meta{font-size:11.5px;line-height:1.35;color:var(--muted)}
.rpt-split-value{font-family:'Barlow Condensed',sans-serif;font-size:20px;font-weight:700;color:var(--bright);line-height:1}
.rpt-split-track,.rpt-tenure-track,.rpt-dept-track{height:8px;border-radius:999px;background:rgba(255,255,255,.06);overflow:hidden}
.rpt-split-fill,.rpt-tenure-fill,.rpt-dept-fill{height:100%;border-radius:999px}
.rpt-split-fill.is-m{background:linear-gradient(90deg,#86b7ff,#b8ccff)}
.rpt-split-fill.is-h{background:linear-gradient(90deg,#ffd347,#ffe38b)}
.rpt-split-fill.is-sd{background:linear-gradient(90deg,#617287,#8a9aab)}
.rpt-mini-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.rpt-mini-grid--single{grid-template-columns:1fr}
.rpt-mini-item{display:grid;gap:3px;padding:10px 11px;border:1px solid rgba(255,255,255,.06);border-radius:13px;background:rgba(255,255,255,.018)}
.rpt-mini-item span{font-size:10px;font-weight:700;letter-spacing:.9px;color:#8fa3b8;text-transform:uppercase}
.rpt-mini-item strong{font-family:'Barlow Condensed',sans-serif;font-size:23px;line-height:1;color:var(--bright);font-weight:700}
.rpt-mini-item small{font-size:11px;line-height:1.35;color:var(--muted)}
.rpt-tenure-list{display:grid;gap:8px}
.rpt-tenure-row,.rpt-dept-row{display:grid;gap:7px;padding:12px 13px;border:1px solid rgba(255,255,255,.06);border-radius:14px;background:rgba(255,255,255,.018)}
.rpt-tenure-head,.rpt-dept-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.rpt-tenure-label,.rpt-dept-name{font-size:13px;font-weight:700;color:var(--bright)}
.rpt-tenure-count{font-family:'Barlow Condensed',sans-serif;font-size:19px;font-weight:700;color:var(--ice)}
.rpt-tenure-fill{background:linear-gradient(90deg,rgba(255,213,0,.96),rgba(255,244,163,.92))}
.rpt-tenure-meta,.rpt-dept-sub,.rpt-dept-meta{font-size:11.5px;line-height:1.35;color:var(--muted)}
.rpt-dept-fill{background:linear-gradient(90deg,rgba(108,175,255,.92),rgba(72,138,234,.88))}
.rpt-dept-value{text-align:right}
.rpt-dept-value strong{display:block;font-family:'Barlow Condensed',sans-serif;font-size:22px;line-height:1;color:var(--gold2)}
.rpt-dept-value span{display:block;font-size:11px;color:var(--muted);margin-top:3px}
.rpt-dept-meta{display:flex;align-items:center;justify-content:space-between;gap:10px}
@media (max-width: 1100px){
  .rpt-toolbar{align-items:flex-start}
  .rpt-report-grid,
  .rpt-report-grid--bottom{grid-template-columns:1fr}
  .rpt-kpi-strip--executive,
  .rpt-insight-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 760px){
  .rpt-toolbar-select{min-width:190px;width:100%}
  .rpt-toolbar-group,
  .rpt-toolbar-context{width:100%}
  .rpt-trend-strip{grid-template-columns:1fr}
  .rpt-table-kpis{grid-template-columns:repeat(2,minmax(0,1fr));min-width:0;width:100%}
  .rpt-mini-grid{grid-template-columns:1fr}
  .rpt-kpi-strip--executive,
  .rpt-insight-strip{grid-template-columns:1fr}
  .rpt-table{min-width:560px}
  .rpt-table thead th,
  .rpt-table-cell{padding:10px 12px}
  .rpt-table-cell.is-number{font-size:18px}
}
.bar-row{display:flex;align-items:center;gap:10px;margin-bottom:8px}
.bar-label{font-size:15px;color:var(--soft);width:110px;flex-shrink:0;font-weight:300;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bar-track{flex:1;height:5px;background:var(--rim);border-radius:5px;overflow:hidden}
.bar-fill{height:100%;border-radius:5px;transition:width .6s ease}
.bar-val{font-family:'Barlow Condensed',sans-serif;font-size:15px;color:var(--bright);font-weight:600;width:32px;text-align:right;flex-shrink:0}
.pie-row{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.pie-item{display:flex;align-items:center;gap:6px}
.pie-dot{width:8px;height:8px;border-radius:2px;flex-shrink:0}
.pie-label{font-size:15px;color:var(--soft);font-weight:300}
.pie-pct{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:600;color:var(--bright);margin-left:2px}
.alert-item{display:flex;align-items:flex-start;gap:10px;padding:10px 0;border-bottom:1px solid rgba(28,35,51,.6)}
.alert-item:last-child{border-bottom:none}
.alert-ico{font-size:14px;flex-shrink:0;margin-top:1px}
.alert-title{font-size:14px;color:var(--bright);margin-bottom:2px}
.alert-meta{font-family:'Barlow Condensed',sans-serif;font-size:15px;color:var(--soft);letter-spacing:.5px}


/* ── Drawer section highlight on scroll-to ── */
.dsec.highlight{animation:secFlash .8s ease}
@keyframes secFlash{
  0%{background:rgba(255,213,0,.12)}
  100%{background:transparent}
}
/* ── DRAWER ITEM (OTs, fallas, horas dentro del drawer) ── */
.di{background:var(--steel);border:1px solid var(--wire);border-radius:var(--r);padding:10px 12px;margin-bottom:6px}
.di:last-child{margin-bottom:0}
.di-head{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:4px}
.di-folio{font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:700;letter-spacing:1.5px;color:var(--gold)}
.di-title{font-size:14px;color:var(--bright);line-height:1.3;margin-bottom:4px}
.di-meta{font-size:14px;color:var(--soft);display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.di-empty{font-size:15px;color:var(--soft);font-style:italic;padding:6px 0}
.di.falla-critica{border-left:3px solid var(--crimson)}
.di.falla-alta{border-left:3px solid var(--ember)}
.di.falla-media{border-left:3px solid var(--gold)}
.di.falla-baja{border-left:3px solid var(--jade)}
.di.ot-closed{opacity:.65}
.person-card{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r3);padding:14px 15px;margin-bottom:8px}
.person-head{display:flex;align-items:center;gap:12px;margin-bottom:10px}
.person-av{width:40px;height:40px;border-radius:50%;background:linear-gradient(135deg,var(--steel),var(--rim));border:2px solid var(--wire);display:flex;align-items:center;justify-content:center;font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:700;color:var(--soft);flex-shrink:0}
.person-name{font-family:'Inter',sans-serif;font-size:16px;font-weight:500;color:var(--white)}
.person-sub{font-size:15px;color:var(--soft);font-weight:300;margin-top:1px}

/* ── CHECKLIST ITEM ── */
.ck-item{display:flex;align-items:center;gap:12px;background:var(--plate);border:1px solid var(--wire);border-radius:var(--r);padding:12px 13px;margin-bottom:6px;cursor:pointer}
.ck-item input[type=checkbox]{width:18px;height:18px;accent-color:var(--jade);cursor:pointer;flex-shrink:0}
.ck-item label{font-size:15px;color:var(--bright);cursor:pointer;flex:1}
.ck-mbox{width:min(1120px,96vw)!important;max-width:min(1120px,96vw)!important;display:flex;flex-direction:column;overflow:hidden}
.ck-mbody{padding:18px 20px 28px;flex:1;min-height:0;overflow-y:auto;-webkit-overflow-scrolling:touch}
.ck-layout{display:flex;flex-direction:column;gap:12px}
.ck-signature-card{background:rgba(255,255,255,.02);border:1px solid var(--wire);border-radius:12px;padding:12px}
.ck-modal-foot{
  background:rgba(18,24,32,.98);
  border-top:1px solid var(--rim);
  box-shadow:0 -12px 24px rgba(0,0,0,.28);
  position:relative;
  z-index:2;
}
.ck-top-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.ck-summary-card{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(320px,.9fr);gap:12px;border:1px solid var(--wire);border-radius:12px;padding:12px;background:rgba(255,255,255,.02)}
.ck-items-list{display:grid;gap:10px}
.ck-group-card{border:1px solid var(--wire);border-radius:14px;padding:12px;background:rgba(255,255,255,.02)}
.ck-group-title{font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:700;letter-spacing:1.8px;color:var(--gold);text-transform:uppercase;margin-bottom:10px}
.ck-point-card{border:1px solid var(--wire);border-radius:12px;padding:12px;background:rgba(255,255,255,.02);transition:border-color .2s, background .2s}
.ck-point-card.is-falla{border-color:rgba(192,48,64,.35);background:rgba(192,48,64,.06)}
.ck-point-card.is-na{border-color:rgba(154,170,184,.25);background:rgba(154,170,184,.04)}
.ck-point-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.ck-point-copy{flex:1;min-width:0}
.ck-point-text{font-size:15px;font-weight:600;color:var(--bright);line-height:1.35}
.ck-point-sub{font-size:12px;color:var(--muted);margin-top:4px}
.ck-state-group{display:grid;grid-template-columns:repeat(3,minmax(100px,1fr));gap:8px;min-width:360px}
.ck-state-btn{border:1px solid var(--wire);background:var(--plate);color:var(--soft);border-radius:10px;min-height:46px;padding:10px 12px;font-family:'Inter',sans-serif;font-size:15px;font-weight:600;cursor:pointer;transition:all .18s}
.ck-state-btn.is-active{color:var(--white)}
.ck-state-btn.is-active[data-state="correcto"]{border-color:rgba(46,171,111,.45);background:rgba(46,171,111,.12);box-shadow:0 0 0 3px rgba(46,171,111,.08)}
.ck-state-btn.is-active[data-state="con_falla"]{border-color:rgba(192,48,64,.45);background:rgba(192,48,64,.14);box-shadow:0 0 0 3px rgba(192,48,64,.08)}
.ck-state-btn.is-active[data-state="no_aplica"]{border-color:rgba(154,170,184,.35);background:rgba(154,170,184,.10)}
.ck-hallazgo-wrap{margin-top:12px;border-top:1px solid var(--wire);padding-top:12px}
.ck-hallazgo-grid{display:grid;grid-template-columns:minmax(0,1fr) 170px;gap:10px;align-items:start}
.ck-hallazgo-note{font-size:11px;color:var(--muted);margin-top:6px}
.ck-summary-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.ck-summary-pill{border-radius:12px;padding:10px 10px;border:1px solid var(--wire);background:rgba(255,255,255,.02);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:84px;text-align:center}
.ck-summary-pill span{font-size:22px;font-weight:700;line-height:1}
.ck-summary-pill small{font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:1px;line-height:1.2;white-space:normal;overflow-wrap:anywhere}
.ck-summary-ok span{color:var(--jade)}
.ck-summary-bad span{color:#e96070}
.ck-summary-na span{color:var(--soft)}
.ck-summary-pending span{color:var(--ice)}
.ck-summary-total span{color:var(--gold2)}
.ck-mobile-step{display:grid;gap:12px}
.ck-mobile-progress{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ck-mobile-step-label{font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:1.8px;color:var(--gold);text-transform:uppercase}
.ck-mobile-step-cat{font-size:13px;color:var(--soft);margin-top:4px}
.ck-mobile-step-pct{font-size:24px;font-weight:700;color:var(--gold2);line-height:1}
.ck-mobile-bar{height:8px;border-radius:999px;background:rgba(255,255,255,.06);overflow:hidden}
.ck-mobile-bar span{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--gold),var(--gold2))}
.ck-mobile-card{border:1px solid var(--wire);border-radius:16px;padding:16px;background:rgba(255,255,255,.02)}
.ck-mobile-card.is-falla{border-color:rgba(192,48,64,.35);background:rgba(192,48,64,.06)}
.ck-mobile-card.is-na{border-color:rgba(154,170,184,.25);background:rgba(154,170,184,.04)}
.ck-mobile-question{font-size:21px;font-weight:700;line-height:1.28;color:var(--white)}
.ck-mobile-hint{font-size:13px;color:var(--muted);margin-top:8px}
.ck-state-group-mobile{grid-template-columns:1fr!important;min-width:0!important;margin-top:14px}
.ck-mobile-nav{display:flex;gap:8px}
.ck-mobile-nav .btn{flex:1}
.ck-mobile-nav .btn[disabled],.ck-state-btn[disabled]{opacity:.45;cursor:not-allowed}

@media(max-width:767px){
  #checkVeil{align-items:stretch}
  .ck-mbox{
    width:100%!important;
    max-width:100%!important;
    min-height:100dvh;
    max-height:100dvh;
    border-radius:0!important;
    border-left:none!important;
    border-right:none!important;
    border-bottom:none!important;
  }
  #checkVeil .sheet-handle{display:none}
  #checkVeil .mtop{
    position:sticky;
    top:0;
    z-index:3;
    background:rgba(24,32,46,.96);
    backdrop-filter:blur(12px);
    padding:14px 16px 12px;
  }
  .ck-mbody{padding:12px 12px 24px}
  .ck-top-grid{grid-template-columns:1fr}
  .ck-summary-card{grid-template-columns:1fr;padding:10px}
  .ck-point-head{flex-direction:column}
  .ck-point-text{font-size:16px}
  .ck-point-sub{font-size:11px}
  .ck-state-group{
    min-width:0;
    width:100%;
    grid-template-columns:1fr 1fr 1fr;
  }
  .ck-state-btn{
    min-height:48px;
    padding:10px 6px;
    font-size:14px;
    border-radius:12px;
  }
  .ck-mobile-question{font-size:22px}
  .ck-hallazgo-wrap{
    background:rgba(255,255,255,.02);
    border-radius:12px;
    padding:12px;
    margin-top:10px;
  }
  .ck-hallazgo-grid{grid-template-columns:1fr}
  .ck-summary-strip{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .ck-summary-pill{
    min-height:72px;
    padding:8px;
  }
  .ck-summary-pill:last-child:nth-child(odd){
    grid-column:1 / -1;
  }
  #checkVeil .ck-modal-foot{
    padding:10px 12px calc(10px + var(--safe-bot));
    backdrop-filter:blur(12px);
  }
}

/* ── SELECT STATE INLINE ── */
.inline-sel{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r);padding:5px 8px;color:var(--bright);font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:600;outline:none;-webkit-appearance:none;appearance:none;cursor:pointer}

/* ── LOGIN ── */
#loginScreen{position:fixed;inset:0;background:var(--void);z-index:999;display:none;align-items:center;justify-content:center;padding:20px}
#loginScreen::before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0%,rgba(255,213,0,0.06),transparent 60%)}
.login-box{width:100%;max-width:380px;position:relative;z-index:1}
.login-logo{text-align:center;margin-bottom:32px}
.login-eye{font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:600;letter-spacing:4px;color:var(--gold);text-transform:uppercase;margin-bottom:8px}
.login-name{font-family:'Inter',sans-serif;font-size:28px;font-weight:700;color:var(--white);line-height:1}
.login-name em{font-style:italic;color:var(--gold2)}
.login-sub{font-family:'Barlow Condensed',sans-serif;font-size:15px;letter-spacing:3px;color:var(--soft);margin-top:6px;text-transform:uppercase}
.login-card{background:var(--plate);border:1px solid var(--wire);border-radius:12px;padding:28px;box-shadow:0 40px 80px rgba(0,0,0,.5)}
.login-card::before{content:'';display:block;height:2px;background:linear-gradient(90deg,transparent,var(--gold),transparent);margin:-28px -28px 24px;border-radius:12px 12px 0 0}

/* ── TEC PANEL ── */
#tecPanel{display:none;position:fixed;inset:0;background:var(--void);z-index:200;overflow-y:auto}
.tec-topbar{background:rgba(8,10,13,.95);backdrop-filter:blur(20px);border-bottom:1px solid var(--wire);padding:calc(16px + var(--safe-top)) 16px 14px;position:sticky;top:0;z-index:10}
.tec-topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}
.tec-name{font-family:'Inter',sans-serif;font-size:18px;font-weight:600;color:var(--white)}
.tec-label{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:600;letter-spacing:3px;color:var(--gold);text-transform:uppercase;margin-bottom:2px}
.tec-body{padding:16px 14px calc(20px + var(--safe-bot))}
.tec-section-title{font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:600;letter-spacing:3px;color:var(--soft);text-transform:uppercase;margin:20px 0 12px;display:flex;align-items:center;gap:8px}
.tec-section-title::after{content:'';flex:1;height:1px;background:var(--rim)}
.tec-ot-card{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r3);padding:14px 15px;margin-bottom:8px}
.tec-ot-head{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:8px}
.tec-ot-folio{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:700;letter-spacing:1.5px;color:var(--gold)}
.tec-ot-eq{font-family:'Inter',sans-serif;font-size:15px;font-weight:600;color:var(--white);margin-top:2px}
.tec-ot-desc{font-size:14px;color:var(--soft);margin:4px 0 10px;line-height:1.4}
.tec-ot-actions{display:flex;gap:6px;flex-wrap:wrap}

/* ── QUICK ACTIONS (Home) ── */
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}
.quick-btn{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r3);padding:16px 14px;cursor:pointer;transition:border-color .15s;display:flex;flex-direction:column;gap:8px;align-items:flex-start;position:relative;overflow:hidden}
.quick-btn:active{border-color:rgba(255,213,0,.3);background:var(--plate)}
.quick-btn::before{content:'';position:absolute;top:0;left:0;right:0;height:2px}
.quick-btn.jade::before{background:var(--jade)}
.quick-btn.gold::before{background:var(--gold)}
.quick-btn.crimson::before{background:var(--crimson)}
.quick-btn.ice::before{background:var(--ice)}
.quick-btn.ember::before{background:var(--ember)}
.quick-icon{font-size:22px;line-height:1}
.quick-label{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:700;letter-spacing:.5px;color:var(--bright);line-height:1.2}
.quick-sub{font-size:14px;color:var(--soft);font-weight:300}

/* ── REPORT CARDS ── */
.report-card{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r3);padding:14px 15px;margin-bottom:8px;cursor:pointer;display:flex;align-items:center;gap:14px}
.report-card:active{border-color:rgba(255,213,0,.25)}
.report-card-ico{width:40px;height:40px;border-radius:var(--r);display:flex;align-items:center;justify-content:center;font-size:18px;flex-shrink:0}
.report-card-body{flex:1;min-width:0}
.report-card-title{font-size:15px;font-weight:500;color:var(--bright);margin-bottom:2px}
.report-card-sub{font-size:15px;color:var(--soft);font-weight:300}
.report-card-meta{font-family:'Barlow Condensed',sans-serif;font-size:15px;letter-spacing:1px;color:var(--soft);margin-top:4px}

/* ── SCROLLBAR ── */
::-webkit-scrollbar{width:3px;height:3px}
::-webkit-scrollbar-track{background:var(--void)}
::-webkit-scrollbar-thumb{background:var(--wire);border-radius:2px}


/* ══════════════════════════════════
   EQUIPO — PÁGINA DE DETALLE
══════════════════════════════════ */
.eq-page-hero{
  background:transparent;
  border:none;border-radius:0;
  padding:0;margin-bottom:18px;position:relative;overflow:visible;
  box-shadow:none;
}
.eq-page-hero::before{display:none}
.eq-page-breadcrumb{font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:600;letter-spacing:.9px;margin-bottom:22px;text-transform:uppercase}
.eq-page-head{display:grid;grid-template-columns:minmax(0,1.15fr) auto;align-items:start;gap:32px}
.eq-page-title-block{min-width:0;display:flex;flex-direction:column;gap:4px}
.eq-page-kicker{
  font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:2.4px;
  color:var(--muted);text-transform:uppercase;margin-bottom:2px;
}
.eq-page-id{
  display:block;
  font-family:'Barlow Condensed',sans-serif;font-size:44px;font-weight:700;letter-spacing:.8px;
  color:#f5c518;line-height:.98;
  margin-bottom:8px;
}
.eq-page-name{font-family:'Inter',sans-serif;font-size:26px;font-weight:600;color:var(--white);line-height:1.05}
.eq-page-sub{font-size:14px;color:#a6b0bc;font-weight:400;margin-top:6px}
.eq-page-meta-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:14px}
.eq-meta-chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:6px 10px;border-radius:999px;border:1px solid var(--wire);
  background:rgba(255,255,255,.03);
  font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:1px;
  color:var(--bright);text-transform:uppercase;
}
.eq-meta-chip.is-gold{border-color:rgba(255,213,0,.24);background:rgba(255,213,0,.08);color:var(--gold2)}
.eq-meta-chip.is-ice{border-color:rgba(74,163,255,.22);background:rgba(74,163,255,.08);color:#9bd4ff}
.eq-meta-chip.is-jade{border-color:rgba(46,171,111,.25);background:rgba(46,171,111,.08);color:#89e3b4}
.eq-meta-chip.is-dim{border-color:rgba(255,255,255,.08);background:rgba(255,255,255,.025);color:var(--soft)}
.eq-page-status-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:14px}
.eq-alert-chip{
  display:inline-flex;align-items:center;
  background:rgba(239,68,68,.12);border:1px solid rgba(239,68,68,.35);
  color:#f87171;font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:700;
  letter-spacing:.2px;text-transform:none;padding:8px 14px;border-radius:8px;
}
.eq-maint-chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:5px 10px;border-radius:999px;border:1px solid rgba(255,213,0,.18);
  background:rgba(255,213,0,.08);
  font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:1px;
  text-transform:uppercase;color:var(--gold2);
}
.eq-page-status-link{
  font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:1.2px;
  color:var(--muted);text-transform:uppercase;cursor:pointer;
}
.eq-page-status-link:hover{color:var(--gold2)}
.eq-page-command{
  min-width:0;
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  border-radius:16px;padding:16px;
  display:flex;flex-direction:column;gap:14px;
}
.eq-page-command-head{display:flex;flex-direction:column;gap:4px}
.eq-page-command-title{
  font-family:'Barlow Condensed',sans-serif;font-size:15px;font-weight:700;letter-spacing:2px;
  color:var(--gold2);text-transform:uppercase;
}
.eq-page-command-sub{font-size:12px;color:var(--soft);line-height:1.45}
.eq-page-actions-top{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.eq-page-actions-top .btn{width:100%;justify-content:center}
.eq-page-kpis{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:18px}
.eq-kpi{
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.08);border-radius:14px;padding:14px 15px;min-height:132px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.02);
}
.eq-kpi-lbl{font-family:'Barlow Condensed',sans-serif;font-size:9px;font-weight:600;letter-spacing:2px;color:var(--muted);text-transform:uppercase;margin-bottom:4px}
.eq-kpi-val{font-family:'Inter',sans-serif;font-size:26px;font-weight:600;line-height:1}
.eq-kpi-sub{font-size:11px;color:var(--soft);margin-top:4px;line-height:1.35}

.eq-page-section-head{
  display:flex;align-items:flex-end;justify-content:space-between;gap:16px;
  margin:0 0 12px;
}
.eq-page-section-title{
  font-family:'Inter',sans-serif;font-size:20px;font-weight:700;color:var(--white);line-height:1.1;
}
.eq-page-section-sub{font-size:13px;color:var(--muted);margin-top:4px}

/* Action cards grid */
.eq-page-actions-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-bottom:18px}
.eq-action-card{
  background:linear-gradient(180deg,rgba(22,30,42,.92),rgba(13,18,27,.98));
  border:1px solid rgba(255,255,255,.08);border-radius:16px;
  min-height:138px;padding:14px;cursor:pointer;transition:all .18s ease;position:relative;overflow:hidden;
  display:flex;flex-direction:column;gap:10px;
  box-shadow:0 16px 28px rgba(0,0,0,.18);
}
.eq-action-card:active,.eq-action-card:hover{border-color:rgba(255,213,0,.22);transform:translateY(-1px);background:linear-gradient(180deg,rgba(25,34,48,.96),rgba(15,20,30,.99))}
.eq-action-card:focus-visible{
  outline:none;border-color:rgba(255,213,0,.55);
  box-shadow:0 0 0 3px rgba(255,213,0,.16);
}
.eq-action-card::before{content:'';position:absolute;top:0;left:0;right:0;height:2px}
.eq-action-card.ac-gold::before{background:var(--gold)}
.eq-action-card.ac-crimson::before{background:var(--crimson)}
.eq-action-card.ac-jade::before{background:var(--jade)}
.eq-action-card.ac-ice::before{background:var(--ice)}
.eq-action-card.ac-ember::before{background:var(--ember)}
.eq-action-card.ac-dim::before{background:var(--wire)}
.eq-ac-head{display:flex;align-items:flex-start;gap:10px}
.eq-ac-badge{
  position:absolute;top:14px;right:14px;
  background:var(--crimson);color:#fff;
  font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;
  padding:3px 8px;border-radius:999px;
}
.eq-ac-badge.gold{background:var(--gold);color:var(--void)}
.eq-ac-badge.jade{background:var(--jade);color:var(--void)}
.eq-ac-code{
  width:38px;height:38px;border-radius:12px;
  display:flex;align-items:center;justify-content:center;
  font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:800;letter-spacing:1px;
  flex-shrink:0;
}
.eq-ac-meta{
  min-width:0;
  font-family:'Barlow Condensed',sans-serif;font-size:10px;font-weight:700;letter-spacing:1px;text-transform:uppercase;
  color:#95a3b5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px;
}
.eq-ac-body{display:flex;flex-direction:column;gap:3px;min-height:0}
.eq-ac-title{font-family:'Inter',sans-serif;font-size:15px;font-weight:700;color:var(--white);line-height:1.2}
.eq-ac-desc{
  font-size:11px;color:#b0bccb;font-weight:350;line-height:1.32;
  display:-webkit-box;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.eq-ac-accent{
  margin-top:8px;
  font-family:'Barlow Condensed',sans-serif;font-size:10px;font-weight:700;letter-spacing:1px;
  text-transform:uppercase;color:var(--muted);
}
.eq-ac-actions{display:flex;align-items:center;gap:6px;margin-top:auto}
.eq-ac-btn{
  border-radius:10px;padding:7px 10px;border:1px solid transparent;cursor:pointer;
  font-family:'Barlow Condensed',sans-serif;font-size:10px;font-weight:800;letter-spacing:.9px;text-transform:uppercase;
  transition:all .15s ease;
}
.eq-ac-btn--primary{background:var(--gf);border-color:rgba(255,213,0,.35);color:var(--gold2)}
.eq-ac-btn--primary:hover{background:rgba(255,213,0,.16)}
.eq-ac-btn--ghost{background:transparent;border-color:var(--wire);color:var(--soft)}
.eq-ac-btn--ghost:hover{border-color:rgba(255,255,255,.2);color:var(--bright)}
.eq-ac-btn:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px rgba(255,213,0,.2);
}

/* Tabs */
.eq-page-tabs-shell{
  border:1px solid rgba(255,255,255,.08);
  background:linear-gradient(180deg,rgba(20,27,39,.9),rgba(11,16,24,.96));
  border-radius:16px;
  padding:12px 12px 10px;
  margin-bottom:14px;
}
.eq-page-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;padding-bottom:2px}
.eq-page-tabs::-webkit-scrollbar{display:none}
.eq-tab{
  flex-shrink:0;padding:10px 16px;border-radius:999px;
  font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:700;letter-spacing:.7px;
  color:var(--soft);background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);
  cursor:pointer;transition:all .15s;
}
.eq-tab.active{background:var(--gf);border-color:rgba(255,213,0,.3);color:var(--gold2);box-shadow:inset 0 0 0 1px rgba(255,213,0,.06)}
.eq-tab:active{background:var(--steel)}

/* Tab content */
.eq-tab-section{margin-bottom:10px}
.eq-tab-header{
  display:flex;align-items:center;justify-content:space-between;margin-bottom:12px;gap:12px;flex-wrap:wrap
}
.eq-tab-title{font-family:'Inter',sans-serif;font-size:20px;font-weight:700;color:var(--white)}

/* Info ficha */
.eq-info-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.eq-info-item{background:var(--plate);border:1px solid var(--wire);border-radius:var(--r);padding:12px 14px}
.eq-info-item label{display:block;font-family:'Barlow Condensed',sans-serif;font-size:9px;font-weight:600;letter-spacing:2px;color:var(--muted);text-transform:uppercase;margin-bottom:4px}
.eq-info-item value{font-size:15px;color:var(--bright)}

.eq-tech-shell{display:flex;flex-direction:column;gap:10px}
.eq-tech-hero{
  display:grid;grid-template-columns:minmax(0,1.7fr) minmax(260px,.95fr);gap:10px;
  padding:16px;border:1px solid var(--wire);border-radius:var(--r3);
  background:linear-gradient(135deg,rgba(255,213,0,.08),rgba(59,130,196,.06) 52%,rgba(18,24,32,.96));
}
.eq-tech-kicker{
  font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:1.8px;
  color:var(--gold2);text-transform:uppercase;margin-bottom:6px;
}
.eq-tech-name-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.eq-tech-id{
  font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:700;letter-spacing:1.7px;
  color:var(--gold);margin-bottom:3px;
}
.eq-tech-name{font-family:'Inter',sans-serif;font-size:22px;font-weight:700;color:var(--white);line-height:1.08}
.eq-tech-sub{margin-top:6px;font-size:13px;color:var(--soft)}
.eq-tech-hero-side{display:grid;grid-template-columns:1fr;gap:8px}
.eq-tech-hero-card{
  min-height:74px;padding:12px 13px;border-radius:var(--r2);
  border:1px solid rgba(255,255,255,.08);background:rgba(7,9,13,.38);
  display:flex;flex-direction:column;justify-content:center;
}
.eq-tech-hero-label{
  font-family:'Barlow Condensed',sans-serif;font-size:10px;font-weight:700;letter-spacing:1.5px;
  color:var(--muted);text-transform:uppercase;margin-bottom:5px;
}
.eq-tech-hero-value{font-size:15px;font-weight:600;color:var(--bright);line-height:1.2}
.eq-tech-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.eq-tech-kpi{
  background:var(--plate);border:1px solid var(--wire);border-radius:var(--r2);
  padding:12px 13px;
}
.eq-tech-kpi-label{
  font-family:'Barlow Condensed',sans-serif;font-size:10px;font-weight:700;letter-spacing:1.5px;
  color:var(--muted);text-transform:uppercase;margin-bottom:5px;
}
.eq-tech-kpi-value{font-size:22px;font-weight:700;color:var(--bright);line-height:1}
.eq-tech-kpi-value.is-gold,.eq-tech-cell.is-gold .eq-tech-value{color:var(--gold2)}
.eq-tech-kpi-value.is-warn{color:#ff9d67}
.eq-tech-sections{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:10px}
.eq-tech-section{
  grid-column:1 / -1;
  background:var(--plate);border:1px solid var(--wire);border-radius:var(--r3);padding:14px;
}
.eq-tech-section-title{
  font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:700;letter-spacing:1.7px;
  color:var(--gold2);text-transform:uppercase;margin-bottom:10px;
}
.eq-tech-grid{display:grid;gap:8px}
.eq-tech-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.eq-tech-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.eq-tech-grid.cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.eq-status-chip{
  display:inline-flex;align-items:center;gap:6px;
  padding:8px 14px;border-radius:8px;border:1px solid currentColor;
  font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:700;letter-spacing:.8px;
  text-transform:uppercase;background:rgba(255,255,255,.03);
}
.eq-status-caret,.eq-export-caret{opacity:.85}
.eq-page-actions-top{
  display:flex;flex-wrap:nowrap;justify-content:flex-end;gap:10px;
  align-items:center;max-width:unset;
}
.eq-page-actions-top .btn,
.eq-page-actions-top summary.btn{
  width:auto;
  min-height:40px;
  padding:9px 15px;
  border-radius:10px;
  font-size:12.5px;
  font-weight:700;
  letter-spacing:.15px;
  text-transform:none;
  box-shadow:0 8px 16px rgba(0,0,0,.09), inset 0 1px 0 rgba(255,255,255,.03);
  transition:transform .18s ease,border-color .18s ease,background .18s ease,color .18s ease,box-shadow .18s ease;
}
.eq-page-actions-top .btn-ghost,
.eq-page-actions-top summary.btn{
  background:linear-gradient(180deg,#1a2027 0%, #141920 100%);
  border:1px solid rgba(132,144,160,.22);
  color:#d5d8dd;
}
.eq-page-actions-top .btn:hover,
.eq-page-actions-top summary.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 12px 22px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.05);
}
.eq-export-menu{
  position:relative;
  flex:0 0 auto;
  margin-right:2px;
}
.eq-export-trigger{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 12px 8px 9px;
  background:linear-gradient(180deg,#1c232d 0%, #131922 100%);
  border:1px solid rgba(129,145,164,.26);
  box-shadow:0 10px 22px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.05);
  position:relative;
  overflow:hidden;
}
.eq-export-trigger:hover{
  background:linear-gradient(180deg,#242c38 0%, #171e28 100%);
  border-color:rgba(255,213,0,.26);
  color:var(--bright);
}
.eq-export-trigger::before{
  content:'';
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(255,255,255,.08),transparent 42%);
  pointer-events:none;
  opacity:.65;
}
.eq-export-trigger-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:30px;
  height:20px;
  padding:0 7px;
  border-radius:999px;
  background:linear-gradient(180deg,rgba(255,255,255,.10),rgba(255,255,255,.04));
  border:1px solid rgba(255,255,255,.10);
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:800;
  letter-spacing:1.2px;
  color:#eef3f9;
  line-height:1;
  position:relative;
  z-index:1;
}
.eq-export-trigger-label{
  font-size:12px;
  font-weight:700;
  letter-spacing:.15px;
  color:inherit;
  white-space:nowrap;
  position:relative;
  z-index:1;
}
.eq-export-trigger .eq-export-caret{
  font-size:10px;
  color:var(--muted);
  transition:transform .18s ease,color .18s ease;
  position:relative;
  z-index:1;
}
.eq-export-menu[open] .eq-export-trigger{
  border-color:rgba(255,213,0,.30);
  background:linear-gradient(180deg,#252f3d 0%, #171f2a 100%);
}
.eq-export-menu[open] .eq-export-trigger .eq-export-caret{
  transform:rotate(180deg);
  color:var(--gold2);
}
.eq-page-actions-top .btn:focus-visible,
.eq-page-actions-top summary.btn:focus-visible{
  outline:none;
  border-color:rgba(255,213,0,.42);
  box-shadow:0 0 0 3px rgba(255,213,0,.12), 0 12px 24px rgba(0,0,0,.16);
}
.eq-page-actions-top .btn-danger{
  background:linear-gradient(180deg,rgba(110,27,35,.36),rgba(73,18,25,.36));
  border:1px solid rgba(239,68,68,.38);
  color:#ff8f98;
}
.eq-page-actions-top .btn-gold{
  background:linear-gradient(180deg,#ffd52f 0%, #e8b100 100%);
  border:1px solid #f5c518;
  color:#0a0c0f;
}
.eq-export-menu summary{list-style:none}
.eq-export-menu summary::-webkit-details-marker{display:none}
.eq-export-menu-list{
  position:absolute;top:calc(100% + 10px);right:0;min-width:210px;z-index:8;
  background:linear-gradient(180deg,#151b24 0%, #0e1319 100%);
  border:1px solid rgba(125,141,160,.16);border-radius:14px;
  box-shadow:0 18px 40px rgba(0,0,0,.34);
  padding:8px;display:flex;flex-direction:column;gap:4px;
  backdrop-filter:blur(12px);
}
.eq-export-menu-list button{
  border:none;background:transparent;color:var(--soft);text-align:left;cursor:pointer;
  border-radius:10px;padding:11px 12px;font-size:12px;font-weight:600;
  line-height:1.35;
}
.eq-export-menu-list button:hover{
  background:rgba(255,255,255,.05);
  color:var(--bright);
}
.eq-export-menu-list button:focus-visible{
  outline:none;
  background:rgba(255,213,0,.08);
  color:var(--bright);
}
.eq-page-kpis{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-top:36px}
.eq-kpi{
  min-height:194px;
  padding:20px;
  border-radius:10px;
  background:#12151a;
  border:1px solid #23272e;
  box-shadow:none;
}
.eq-kpi-head{
  display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px;
}
.eq-kpi-icon{
  width:22px;height:22px;border-radius:6px;
  display:inline-flex;align-items:center;justify-content:center;
  font-size:12px;font-weight:700;line-height:1;
  flex-shrink:0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.eq-kpi-icon svg{
  width:14px;height:14px;display:block;
}
.eq-kpi-icon--danger{
  background:rgba(239,68,68,.12);
  border:1px solid rgba(239,68,68,.35);
  color:#f87171;
}
.eq-kpi-icon--gold{
  background:rgba(245,197,24,.12);
  border:1px solid rgba(245,197,24,.35);
  color:#f5c518;
}
.eq-kpi-icon--slate{
  background:rgba(139,146,160,.12);
  border:1px solid rgba(139,146,160,.32);
  color:#b8c0cc;
}
.eq-kpi-gauge-row{display:flex;align-items:center;gap:14px}
.eq-kpi-gauge{
  width:58px;height:58px;border-radius:50%;
  background:conic-gradient(var(--tone) calc(var(--pct) * 1%), rgba(255,255,255,.08) 0);
  display:grid;place-items:center;flex-shrink:0;position:relative;
}
.eq-kpi-gauge::after{
  content:'';position:absolute;inset:7px;border-radius:50%;
  background:#12151a;border:1px solid rgba(255,255,255,.05);
}
.eq-kpi-gauge-center{
  position:relative;z-index:1;font-family:'Inter',sans-serif;font-size:15px;font-weight:700;color:var(--white)
}
.eq-kpi-side-copy{display:flex;flex-direction:column;gap:3px}
.eq-kpi-lbl{font-size:11px;letter-spacing:1.8px;margin-bottom:0}
.eq-kpi-val{font-size:34px;font-weight:700}
.eq-kpi-sub{font-size:12px;color:#9eacba}
.eq-kpi-link{
  margin-top:12px;font-family:'Barlow Condensed',sans-serif;font-size:12px;font-weight:700;
  letter-spacing:1px;text-transform:uppercase;color:var(--gold2);cursor:pointer;
}
.eq-kpi-hours-stack{
  display:flex;gap:0;align-items:stretch;margin-top:14px;min-height:8px;overflow:hidden;
  border-radius:999px;background:rgba(255,255,255,.06);
}
.eq-kpi-hours-stack span{
  display:flex;align-items:center;justify-content:flex-start;padding:0 8px;
  color:transparent;font-size:0;line-height:1;min-width:0;height:8px;border-radius:0;
}
.eq-page-tabs-shell{
  position:relative;
  padding:0;
  background:transparent;
  border:none;
  border-bottom:1px solid rgba(255,255,255,.08);
  border-radius:0;
  margin:22px 0 24px;
}
.eq-page-tabs{
  display:flex;
  gap:2px;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.14) transparent;
  -webkit-overflow-scrolling:touch;
  padding:0 0 8px;
}
.eq-tab{
  position:relative;
  display:inline-flex;align-items:center;gap:4px;
  flex:0 0 auto;
  padding:10px 14px 13px;
  border-radius:0;
  background:transparent;
  border:none;
  color:rgba(214,223,235,.62);
  font-size:13px;
  font-weight:600;
  letter-spacing:.08px;
  line-height:1.1;
  text-transform:none;
  white-space:nowrap;
  transition:color .18s ease, opacity .18s ease;
}
.eq-tab::after{
  content:'';
  position:absolute;
  left:14px;
  right:14px;
  bottom:-1px;
  height:2px;
  border-radius:999px;
  background:transparent;
  transition:background .18s ease, opacity .18s ease;
}
.eq-tab:hover{
  color:rgba(236,242,250,.86);
}
.eq-tab-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:auto;
  height:auto;
  margin-left:2px;
  padding:0;
  border-radius:0;
  background:transparent;
  color:rgba(144,154,168,.92);
  font-size:11px;
  font-weight:700;
  letter-spacing:.2px;
}
.eq-tab-badge::before{
  content:'·';
  margin-right:5px;
  color:rgba(115,124,136,.7);
}
.eq-tab.active{
  background:transparent;
  box-shadow:none;
  color:#f3f6fb;
}
.eq-tab.active::after{
  background:#f5c518;
}
.eq-tab.active .eq-tab-badge{
  color:rgba(245,197,24,.95);
}
.eq-tab.active .eq-tab-badge::before{
  color:rgba(245,197,24,.55);
}
.eq-page-tabs::-webkit-scrollbar{
  height:4px;
}
.eq-page-tabs::-webkit-scrollbar-track{
  background:transparent;
}
.eq-page-tabs::-webkit-scrollbar-thumb{
  background:rgba(255,255,255,.14);
  border-radius:999px;
}
.eq-page-tabs::-webkit-scrollbar-thumb:hover{
  background:rgba(255,255,255,.22);
}
.eq-mock-panel{
  background:#12151a;
  border:1px solid #23272e;border-radius:12px;padding:28px;
  box-shadow:none
}
.eq-mock-section-head,.eq-mock-toolbar{
  display:flex;align-items:flex-start;justify-content:space-between;gap:14px;flex-wrap:wrap
}
.eq-mock-section-title{
  font-family:'Inter',sans-serif;font-size:22px;font-weight:700;color:var(--white);line-height:1.05
}
.eq-inline-count{
  font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:700;color:var(--muted)
}
.eq-mock-section-sub,.eq-mock-toolbar-sub{font-size:13px;color:var(--muted);margin-top:4px}
.eq-summary-grid{
  display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:16px 0
}
.eq-summary-metric{
  background:#171b21;border:1px solid #23272e;border-radius:10px;
  padding:13px 14px;border-top:2px solid rgba(255,255,255,.12)
}
.eq-summary-metric.tone-danger{border-top-color:#ef4444}
.eq-summary-metric.tone-info{border-top-color:#60a5fa}
.eq-summary-metric.tone-success{border-top-color:#4ade80}
.eq-summary-metric.tone-pending{border-top-color:#f5c518}
.eq-summary-label{
  font-family:'Barlow Condensed',sans-serif;font-size:10px;font-weight:700;letter-spacing:1.6px;
  color:var(--muted);text-transform:uppercase;margin-bottom:5px
}
.eq-summary-value{font-size:28px;font-weight:700;color:var(--white);line-height:1}
.eq-summary-sub{font-size:12px;color:var(--soft);margin-top:5px;line-height:1.35}
.eq-summary-grid--compact{
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}
.eq-summary-grid--compact .eq-summary-metric{
  padding:10px 12px;
}
.eq-summary-grid--compact .eq-summary-label{
  margin-bottom:4px;
  letter-spacing:1.2px;
}
.eq-summary-grid--compact .eq-summary-value{
  font-size:24px;
}
.eq-summary-grid--compact .eq-summary-sub{
  margin-top:4px;
  font-size:11px;
  line-height:1.25;
}
.eq-mock-toolbar{margin-bottom:10px}
.eq-mock-toolbar-title{
  font-family:'Inter',sans-serif;font-size:16px;font-weight:700;color:var(--white)
}
.eq-filter-row{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  padding:12px;
  margin:12px 0 14px;
  border:1px solid #23272e;
  border-radius:14px;
  background:rgba(12,16,22,.82);
}
.eq-filter-pill{
  border:1px solid #23272e;background:#171b21;color:#d5d8dd;
  border-radius:999px;padding:8px 14px;min-height:36px;cursor:pointer;font-family:'Barlow Condensed',sans-serif;
  font-size:12px;font-weight:700;letter-spacing:.5px;display:inline-flex;align-items:center;gap:7px;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.eq-filter-pill:hover{
  border-color:#343b45;
  background:#1b2129;
  color:var(--bright);
}
.eq-filter-pill span{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:18px;height:18px;padding:0 6px;border-radius:999px;
  background:rgba(255,255,255,.08);color:inherit;font-size:11px;line-height:1;
  opacity:1;
}
.eq-filter-pill.active{
  background:#f5c518;border-color:#f5c518;color:#0a0c0f
}
.eq-filter-pill.active span{background:rgba(10,12,15,.14)}
.eq-grid-meta{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  font-size:12px;color:var(--muted);margin:8px 0 10px
}
.eq-grid-block{border:none;border-radius:0;overflow:visible;background:transparent}
.eq-grid-head,.eq-grid-row{
  display:grid;align-items:center;gap:12px
}
.eq-grid-head{
  background:transparent;
  font-family:'Barlow Condensed',sans-serif;font-size:11px;font-weight:700;letter-spacing:1.2px;
  color:var(--muted);text-transform:uppercase;
  padding:0 16px 10px
}
.eq-grid-row{
  font-size:13px;color:var(--soft);
  background:#171b21;
  border:1px solid #23272e;
  border-radius:9px;
  padding:14px 16px;
  margin-bottom:10px
}
.eq-grid-row--ots{grid-template-columns:1.1fr 2.6fr 1.4fr 1.5fr .9fr;cursor:pointer}
.eq-grid-head--ots{grid-template-columns:1.1fr 2.6fr 1.4fr 1.5fr .9fr}
.eq-grid-row--fallas,.eq-grid-head--fallas{grid-template-columns:1.3fr 2.1fr 1.4fr .9fr .8fr}
.eq-grid-row--mant,.eq-grid-head--mant{grid-template-columns:.9fr 2fr 1fr 1.4fr}
.eq-grid-row--refs,.eq-grid-head--refs{grid-template-columns:1fr 1.6fr 1.3fr .9fr .8fr .8fr}
.eq-grid-cell{min-width:0}
.eq-code-cell{font-family:'Barlow Condensed',sans-serif;font-size:14px;font-weight:700;color:var(--gold2)}
.eq-row-main{font-size:14px;font-weight:600;color:var(--bright);line-height:1.3}
.eq-row-main--clamp{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
  text-overflow:ellipsis;
}
.eq-row-sub{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.35}
.eq-row-pill-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.eq-row-pill{
  display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:6px;
  border:1px solid rgba(255,255,255,.1);font-family:'Barlow Condensed',sans-serif;font-size:12px;
  font-weight:700;letter-spacing:1px;text-transform:uppercase;min-height:24px
}
.eq-row-pill.is-pending,.eq-row-pill.is-warn{background:rgba(245,197,24,.10);border-color:rgba(245,197,24,.35);color:#f5c518}
.eq-row-pill.is-danger{background:rgba(239,68,68,.12);border-color:rgba(239,68,68,.35);color:#f87171}
.eq-row-pill.is-info{background:rgba(59,130,246,.12);border-color:rgba(96,165,250,.35);color:#93c5fd}
.eq-row-pill.is-success{background:rgba(34,197,94,.12);border-color:rgba(74,222,128,.35);color:#86efac}
.eq-row-pill.is-muted,.eq-row-pill.is-outline{background:rgba(255,255,255,.03);border-color:#33383f;color:#d5d8dd}
.eq-empty-state{padding:28px;text-align:center}
.eq-maint-hero{
  display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;
  padding:16px 18px;border-radius:10px;background:#171b21;border:1px solid #23272e
}
.eq-maint-hero-title{font-size:24px;font-weight:700;color:var(--white);line-height:1.05}
.eq-hours-list{display:flex;flex-direction:column;gap:12px}
.eq-hours-row{
  display:grid;grid-template-columns:110px 1fr 72px;gap:14px;align-items:center
}
.eq-hours-label{
  font-family:'Barlow Condensed',sans-serif;font-size:13px;font-weight:700;letter-spacing:.8px;color:var(--soft)
}
.eq-hours-bar{
  height:14px;border-radius:999px;background:rgba(255,255,255,.06);overflow:hidden;position:relative
}
.eq-hours-bar span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--gold),#ffd96d)}
.eq-hours-value{font-family:'Barlow Condensed',sans-serif;font-size:18px;font-weight:700;color:var(--bright);text-align:right}
.eq-note-banner{
  margin-top:14px;padding:12px 14px;border-radius:10px;border:1px solid rgba(245,197,24,.18);
  background:rgba(245,197,24,.07);color:var(--soft);font-size:13px
}
.eq-tech-mock-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.eq-tech-mock-card{
  background:#171b21;border:1px solid #23272e;border-radius:10px;padding:14px 15px
}
.eq-tech-mock-card label{
  display:block;font-family:'Barlow Condensed',sans-serif;font-size:10px;font-weight:700;letter-spacing:1.8px;
  color:var(--muted);text-transform:uppercase;margin-bottom:6px
}
.eq-tech-mock-card value{
  display:block;font-size:15px;font-weight:600;color:var(--bright);line-height:1.35;word-break:break-word
}
.eq-tech-cell{
  min-width:0;padding:11px 12px;border-radius:var(--r2);
  background:rgba(7,9,13,.34);border:1px solid rgba(255,255,255,.06);
}
.eq-tech-label{
  font-family:'Barlow Condensed',sans-serif;font-size:9px;font-weight:700;letter-spacing:1.5px;
  color:var(--muted);text-transform:uppercase;margin-bottom:4px;
}
.eq-tech-value{font-size:14px;font-weight:600;color:var(--bright);line-height:1.25;word-break:break-word}
.eq-tech-cell.is-code .eq-tech-value{font-family:Consolas,'Courier New',monospace;font-size:12.5px}
.eq-tech-note{
  padding:12px 13px;border-radius:var(--r2);
  background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.06);
  color:var(--soft);font-size:13px;line-height:1.5;
}
.eq-docs-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin-bottom:12px;
}
.eq-docs-intro{
  margin:-2px 0 12px;
  font-size:12px;
  color:rgba(214,223,235,.72);
  line-height:1.45;
}
.eq-docs-summary-card{
  padding:12px 14px;
  border-radius:var(--r2);
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg, rgba(20,28,42,.62), rgba(10,14,22,.54));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.eq-docs-summary-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:6px;
}
.eq-docs-summary-value{
  font-size:20px;
  font-weight:700;
  color:var(--bright);
  line-height:1;
}
.eq-docs-table{
  border:1px solid rgba(255,255,255,.06);
  border-radius:14px;
  overflow:hidden;
  background:linear-gradient(180deg, rgba(16,23,35,.78), rgba(9,13,20,.72));
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}
.eq-docs-head,
.eq-docs-row{
  display:grid;
  grid-template-columns:minmax(220px,1.15fr) 140px minmax(280px,1.65fr);
  gap:10px;
  align-items:flex-start;
  padding:11px 14px;
}
.eq-docs-head{
  background:rgba(255,255,255,.035);
  border-bottom:1px solid rgba(255,255,255,.06);
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:var(--muted);
}
.eq-docs-row{
  border-bottom:1px solid rgba(255,255,255,.05);
  background:rgba(255,255,255,.012);
}
.eq-docs-row:last-child{
  border-bottom:none;
}
.eq-docs-title{
  font-size:13px;
  font-weight:700;
  color:var(--bright);
  line-height:1.25;
}
.eq-docs-sub{
  margin-top:4px;
  font-size:11px;
  color:var(--muted);
  line-height:1.35;
}
.eq-docs-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:88px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  font-family:'Barlow Condensed',sans-serif;
  font-size:11px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
}
.eq-docs-status.is-complete{
  color:#63d59a;
  background:rgba(52,164,106,.12);
  border-color:rgba(52,164,106,.28);
}
.eq-docs-status.is-pending{
  color:#ffcf70;
  background:rgba(245,197,24,.10);
  border-color:rgba(245,197,24,.24);
}
.eq-docs-status.is-warning{
  color:#ffd977;
  background:rgba(255,196,58,.12);
  border-color:rgba(255,196,58,.28);
}
.eq-docs-status.is-expired{
  color:#ff9ca6;
  background:rgba(255,92,110,.12);
  border-color:rgba(255,92,110,.26);
}
.eq-docs-col--files{
  display:grid;
  gap:8px;
}
.eq-docs-file{
  padding:9px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.022);
}
.eq-docs-file-link{
  color:var(--bright);
  font-size:12px;
  font-weight:600;
  text-decoration:none;
  word-break:break-word;
}
.eq-docs-file-link:hover{
  color:var(--gold2);
}
.eq-docs-file-meta{
  margin-top:4px;
  font-size:11px;
  color:var(--muted);
  line-height:1.35;
}
.eq-docs-remove{
  margin-top:7px;
  border:none;
  background:transparent;
  padding:0;
  color:#ff9ca6;
  font-size:11px;
  font-weight:700;
  cursor:pointer;
}
.eq-docs-remove:hover{
  color:#ffb8bf;
}
.eq-docs-empty,
.eq-docs-readonly{
  font-size:12px;
  color:var(--muted);
}
.eq-docs-expiry-block{
  padding:9px 10px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg, rgba(255,255,255,.022), rgba(255,255,255,.012));
}
.eq-docs-expiry-note{
  margin-top:7px;
  font-size:11px;
  color:rgba(214,223,235,.66);
  line-height:1.4;
}
.eq-docs-date-wrap{
  position:relative;
}
.eq-docs-date-wrap::after{
  content:'';
  position:absolute;
  top:50%;
  right:11px;
  width:14px;
  height:14px;
  transform:translateY(-50%);
  pointer-events:none;
  opacity:.9;
  background-repeat:no-repeat;
  background-position:center;
  background-size:14px 14px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eef3fb' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2.5'/%3E%3Cpath d='M7.5 3.5v4M16.5 3.5v4M3.5 9.5h17'/%3E%3C/svg%3E");
}
.eq-docs-expiry-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:8px;
}
.eq-docs-expiry-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.4px;
  text-transform:uppercase;
  color:var(--muted);
}
.eq-docs-expiry-value{
  font-size:11px;
  font-weight:600;
  color:var(--bright);
}
.eq-docs-expiry-value.is-warning{
  color:#ffd977;
}
.eq-docs-expiry-value.is-expired{
  color:#ff9ca6;
}
.eq-docs-date-input{
  width:100%;
  min-height:36px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(8,12,19,.86);
  color:var(--bright);
  padding:7px 36px 7px 10px;
  font-size:12px;
  color-scheme:dark;
  appearance:none;
  -webkit-appearance:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.03);
}
.eq-docs-date-input:focus{
  outline:none;
  border-color:rgba(255,196,58,.48);
  box-shadow:0 0 0 3px rgba(255,196,58,.12);
}
.eq-docs-date-input::-webkit-calendar-picker-indicator{
  filter:none;
  opacity:0;
  cursor:pointer;
  width:36px;
  height:100%;
}
.eq-docs-date-input::-webkit-datetime-edit,
.eq-docs-date-input::-webkit-datetime-edit-fields-wrapper,
.eq-docs-date-input::-webkit-datetime-edit-text,
.eq-docs-date-input::-webkit-datetime-edit-month-field,
.eq-docs-date-input::-webkit-datetime-edit-day-field,
.eq-docs-date-input::-webkit-datetime-edit-year-field{
  color:var(--bright);
}
.eq-docs-actions-inline{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  margin-top:6px;
}
.eq-docs-upload-btn{
  min-width:88px;
  min-height:32px;
  padding:7px 12px;
  border-radius:10px;
  font-family:'Inter',sans-serif;
  font-size:12px;
  font-weight:600;
  letter-spacing:.1px;
  text-transform:none;
}
.eq-docs-upload-btn--modal{
  min-width:140px;
}
.eq-docs-modal{
  width:min(760px,92vw);
  max-height:88vh;
  padding:0;
  border:1px solid rgba(255,255,255,.08);
  border-bottom:1px solid rgba(255,255,255,.08);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(19,26,38,.98),rgba(9,13,20,.99));
  overflow:hidden;
}
#eqExpedienteVeil{
  align-items:center;
  justify-content:center;
  padding:24px 18px;
}
#eqExpedienteVeil .eq-docs-modal{
  width:min(760px, calc(100vw - 36px));
  max-height:min(88vh, calc(100vh - 48px));
  margin:0;
  border-radius:18px;
  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow:0 28px 80px rgba(0,0,0,.42);
}
.eq-docs-modal-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:18px 22px 16px;
  border-bottom:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01));
}
.eq-docs-modal-kicker{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.6px;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:6px;
}
.eq-docs-modal-title{
  font-size:22px;
  font-weight:700;
  color:var(--bright);
  line-height:1.15;
}
.eq-docs-modal-sub{
  margin-top:6px;
  font-size:13px;
  color:rgba(214,223,235,.72);
  line-height:1.45;
}
.eq-docs-modal-close{
  flex:0 0 auto;
}
.eq-docs-modal-body{
  padding:18px 22px 20px;
}
.eq-docs-modal-status-row{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.eq-docs-modal-status-text{
  font-size:12px;
  color:rgba(214,223,235,.68);
}
.eq-docs-modal-grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(250px,.85fr);
  gap:14px;
}
.eq-docs-modal-section{
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.06);
  background:linear-gradient(180deg,rgba(255,255,255,.022),rgba(255,255,255,.012));
}
.eq-docs-modal-label{
  font-family:'Barlow Condensed',sans-serif;
  font-size:10px;
  font-weight:700;
  letter-spacing:1.5px;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:6px;
}
.eq-docs-modal-help{
  font-size:12px;
  color:rgba(214,223,235,.68);
  line-height:1.45;
}
.eq-docs-modal-purpose{
  margin-top:12px;
  padding:11px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.02);
}
.eq-docs-modal-purpose-title{
  font-size:12px;
  font-weight:700;
  color:var(--bright);
  margin-bottom:5px;
}
.eq-docs-modal-purpose-text{
  font-size:12px;
  color:rgba(214,223,235,.76);
  line-height:1.45;
}
.eq-docs-modal-purpose-meta{
  margin-top:6px;
  font-size:11px;
  color:var(--muted);
}
.eq-docs-modal-purpose-list{
  display:grid;
  gap:7px;
  margin-top:10px;
}
.eq-docs-modal-purpose-item{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
  color:rgba(214,223,235,.78);
}
.eq-docs-modal-purpose-index{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:20px;
  height:20px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  color:var(--bright);
  font-size:11px;
  font-weight:700;
}
.eq-docs-modal-current{
  margin-top:12px;
}
.eq-docs-modal-current-title{
  font-size:12px;
  font-weight:700;
  color:var(--bright);
  margin-bottom:8px;
}
.eq-docs-modal-current-list{
  display:grid;
  gap:8px;
}
.eq-docs-modal-current-item{
  display:flex;
  flex-direction:column;
  gap:3px;
  padding:10px 11px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.02);
  text-decoration:none;
}
.eq-docs-modal-current-label{
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--muted);
}
.eq-docs-modal-current-name{
  font-size:12px;
  font-weight:600;
  color:var(--bright);
  word-break:break-word;
}
.eq-docs-modal-current-meta{
  font-size:11px;
  color:var(--muted);
}
.eq-docs-modal-picker{
  margin-top:12px;
  display:grid;
  gap:10px;
}
.eq-docs-modal-selected{
  display:grid;
  gap:8px;
}
.eq-docs-modal-empty{
  padding:10px 11px;
  border-radius:10px;
  border:1px dashed rgba(255,255,255,.08);
  color:rgba(214,223,235,.56);
  font-size:12px;
  line-height:1.45;
}
.eq-docs-modal-pick{
  padding:10px 11px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.06);
  background:rgba(255,255,255,.022);
}
.eq-docs-modal-pick-label{
  font-size:10px;
  font-weight:700;
  letter-spacing:1px;
  text-transform:uppercase;
  color:var(--muted);
  margin-bottom:4px;
}
.eq-docs-modal-pick-name{
  font-size:12px;
  font-weight:600;
  color:var(--bright);
  word-break:break-word;
}
.eq-docs-modal-pick-meta{
  margin-top:4px;
  font-size:11px;
  color:var(--muted);
}
.eq-docs-date-wrap--modal{
  margin-top:12px;
}
.eq-docs-modal-note{
  margin-top:10px;
  font-size:12px;
  color:rgba(214,223,235,.66);
  line-height:1.45;
}
.eq-docs-modal-foot{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  padding:14px 22px 18px;
  border-top:1px solid rgba(255,255,255,.06);
  background:rgba(9,12,18,.92);
}

@media(max-width:767px){
  .eq-page-hero{padding:0}
  .eq-page-head{grid-template-columns:1fr}
  .eq-page-id{font-size:42px}
  .eq-page-name{font-size:21px}
  .eq-page-tabs{gap:0}
  .eq-tab{
    padding:10px 12px 12px;
    font-size:12px;
  }
  .eq-tab::after{
    left:12px;
    right:12px;
  }
  .eq-page-actions-top{justify-content:flex-start;flex-wrap:wrap}
  .eq-page-actions-top .btn,
  .eq-page-actions-top summary.btn{min-height:36px;padding:8px 12px}
  .eq-export-trigger{
    gap:7px;
    padding:7px 11px 7px 8px;
  }
  .eq-export-trigger-icon{
    min-width:28px;
    height:19px;
    padding:0 6px;
    font-size:9.5px;
  }
  .eq-export-menu-list{
    min-width:176px;
  }
  .eq-page-kpis{grid-template-columns:1fr}
  .eq-summary-grid{grid-template-columns:1fr 1fr}
  .eq-grid-head{display:none}
  .eq-grid-row--ots,
  .eq-grid-row--fallas,
  .eq-grid-row--mant,
  .eq-grid-row--refs{grid-template-columns:1fr;gap:8px}
  .eq-tech-mock-grid{grid-template-columns:1fr}
  .eq-hours-row{grid-template-columns:1fr;gap:8px}
  .eq-tech-sections{grid-template-columns:1fr}
  .eq-tech-hero{grid-template-columns:1fr}
  .eq-tech-name{font-size:21px}
  .eq-tech-name-row{flex-direction:column}
  .eq-tech-kpis{grid-template-columns:repeat(2,1fr)}
  .eq-tech-grid.cols-2,
  .eq-tech-grid.cols-3,
  .eq-tech-grid.cols-4{grid-template-columns:1fr}
  .eq-docs-summary{grid-template-columns:1fr}
  .eq-docs-head{display:none}
  .eq-docs-row{grid-template-columns:1fr}
  .eq-docs-row{padding:12px}
  .eq-docs-expiry-head{flex-direction:column;align-items:flex-start}
  .eq-docs-modal{
    width:min(100%, calc(100vw - 24px));
    max-height:calc(100vh - 24px);
    border-radius:16px;
  }
  #eqExpedienteVeil{
    padding:12px;
    align-items:center;
  }
  .eq-docs-modal-head,
  .eq-docs-modal-body,
  .eq-docs-modal-foot{
    padding-left:14px;
    padding-right:14px;
  }
  .eq-docs-modal-grid{
    grid-template-columns:1fr;
  }
  .eq-docs-modal-foot{
    flex-wrap:wrap;
  }
  .eq-docs-modal-foot .btn{
    flex:1 1 100%;
  }
}

@media(min-width:768px){
  .eq-tech-section--meta,
  .eq-tech-section--specs,
  .eq-tech-section--techid,
  .eq-tech-section--ops{
    grid-column:span 6;
  }
  .eq-tech-section--docs{
    grid-column:1 / -1;
  }
  .eq-info-grid{grid-template-columns:repeat(3,1fr)}
}

@media(min-width:768px) and (max-width:1180px){
  .eq-tech-grid.cols-4{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
}

/* ══════════════════════════════════════════
   DESKTOP — layout completo, no mobile
══════════════════════════════════════════ */
@media(min-width:768px){

  /* Reset mobile shell */
  body{overflow:auto;height:auto}
  #page-equipo{
    width:min(100%, 1460px);
    max-width:min(100%, 1460px);
    margin:0 auto;
    padding-left:16px;
    padding-right:16px;
  }
  #page-equipo .eq-page-breadcrumb{margin-bottom:16px}
  #page-equipo .eq-page-head{
    grid-template-columns:minmax(320px,520px) minmax(420px,1fr);
    gap:20px 28px;
  }
  #page-equipo .eq-page-title-block{
    max-width:520px;
  }
  #page-equipo .eq-page-sub{
    max-width:560px;
  }
  #page-equipo .eq-page-actions-top{
    justify-self:end;
    align-self:start;
    max-width:620px;
    flex-wrap:nowrap;
    justify-content:flex-end;
  }
  #page-equipo .eq-page-kpis{
    grid-template-columns:repeat(4,minmax(210px,1fr));
    gap:16px;
    margin-top:24px;
    align-items:stretch;
  }
  #page-equipo .eq-page-tabs-shell{
    margin:18px 0 18px;
  }
  #eqp-tab-content{
    width:100%;
    min-width:0;
  }
  #page-equipo .eq-mock-panel{
    padding:24px;
  }

  /* Topbar — fijo, pero solo del ancho sin sidebar */
  .topbar{
    position:fixed;top:0;left:280px;right:0;
    height:60px;padding-left:22px;padding-right:22px;
    background:rgba(8,10,13,.95);
    border-bottom:1px solid #263042;
  }
  .topbar-left .hamburger{display:none}

  /* Sidebar — fijo izquierda, ancho completo */
  .sidebar{
    position:fixed;top:0;left:0;width:280px;height:100vh;
    transform:none!important;
  }
  .sidebar-veil{display:none!important}

  /* Main scroll — margen izquierdo = sidebar, arriba = topbar */
  .main-scroll{
    position:fixed;
    top:60px;
    left:280px;
    right:0;
    bottom:0;
    margin-left:0;
    margin-top:0;
    height:auto;
    overflow-y:auto;
    overflow-x:hidden;
    padding-bottom:0;
    background:var(--void);
  }
  .veil.almx-overlay{
    top:60px;
    left:280px;
    right:0;
    bottom:0;
    align-items:center;
    justify-content:center;
    padding:20px;
    background:rgba(4,5,8,.75);
    backdrop-filter:blur(3px);
    -webkit-backdrop-filter:blur(3px);
  }
  .veil.almx-overlay.almx-overlay--config,
  .veil.almx-overlay.almx-overlay--adjust,
  .veil.almx-overlay.almx-overlay--salida,
  .veil.almx-overlay.almx-overlay--prestamo,
  .veil.almx-overlay.almx-overlay--prestamo-detail,
  .veil.almx-overlay.almx-overlay--devolucion{
    top:60px;
    left:280px;
    right:0;
    bottom:0;
    padding:20px;
  }

  /* Pages */
  .page{padding:20px 24px 60px}

  /* Hide mobile-only */
  .bottom-nav{display:none!important}
  .fab{display:none!important}

  /* KPI strip — 5 columnas */
  .kpi-strip{grid-template-columns:repeat(5,1fr)}
  .kpi-cell:last-child:nth-child(odd){grid-column:auto}
  .kpi-cell{padding:18px 20px}
  .kpi-num{font-size:36px}

  /* Cards: 2 col grid */
  .cards-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .cards-list .eq-card{margin-bottom:0}

  /* Drawer: panel lateral fijo */
  .dveil{display:none!important}
  .drawer{
    position:fixed;top:64px;right:0;
    width:520px;height:calc(100vh - 64px);
    border-radius:0;
    transform:translateX(100%);
    transition:transform .3s cubic-bezier(.22,1,.36,1);
  }
  .drawer.open{transform:translateX(0)}

  /* Modals: center floating */
  .veil{align-items:center;justify-content:center}
  .mbox:not(.almx-modal){
    width:780px;max-width:92vw;
    border-radius:14px;border:1px solid var(--wire);
    max-height:88vh;
  }
  #modal-reportar-falla-1 .mbox{
    width:860px;
    max-width:94vw;
  }
  @keyframes sheetUp{
    from{opacity:0;transform:scale(.96) translateY(12px)}
    to{opacity:1;transform:scale(1) translateY(0)}
  }

  /* Form grids on desktop */
  .fgrid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
  .fgrid .fg{margin-bottom:0}
  .fgrid-2{grid-template-columns:1fr 1fr}
  .maint-wizard-grid.cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .maint-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .maint-v2-form-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .maint-v2-rule-strip{grid-template-columns:repeat(2,minmax(0,1fr))}
  .maint-v2-rule-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .maint-v2-content-grid{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)}
  .maint-v2-side-grid{grid-template-columns:1fr}
  .maint-v2-pickers{grid-template-columns:repeat(2,minmax(0,1fr))}
  .maint-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .maint-plan-stack{grid-template-columns:repeat(2,minmax(0,1fr))}
  .maint-plan-definition-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .maint-plan-metrics-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .maint-plan-main-grid{grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)}
  .maint-dual-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  #checkVeil .ck-layout{display:flex;flex-direction:column}
  #checkVeil .ck-top-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  #checkVeil .ck-summary-card{grid-template-columns:minmax(0,1.3fr) minmax(320px,.9fr)}
  #checkVeil .ck-items-list{display:grid;grid-template-columns:1fr}

  /* Quick actions */
  .quick-grid{grid-template-columns:repeat(4,1fr)}

  /* Dash */
  .dash-two-col{display:grid;grid-template-columns:1fr 1fr;gap:16px}

  /* Toast bottom right */
  .toast{left:auto;right:24px;bottom:24px;width:320px}
}

/* ═══════════════════════════════════════════════════════
   MODAL OT PREMIUM - v2
═══════════════════════════════════════════════════════ */

.ot-mbox-premium {
  display: flex;
  flex-direction: column;
  max-height: 95vh;
  padding: 0;
}

/* HEADER STICKY */
.ot-header-sticky {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 14px 18px 12px;
  background: linear-gradient(180deg, rgba(16,22,32,.98), rgba(16,22,32,.94));
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.ot-header-text {
  flex: 1;
  min-width: 0;
}

.ot-create-top-main {
  flex: 1;
  min-width: 0;
}

.ot-create-top-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.ot-create-top-folio {
  margin-bottom: 0;
  padding-top: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}

.ot-create-static-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.ot-create-static-pill .s-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.ot-header-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.ot-header-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  line-height: 1;
  letter-spacing: .02em;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ot-header-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
}

.ot-meta-sep {
  color: var(--wire);
}

.ot-meta-val {
  color: var(--soft);
  font-weight: 600;
}

.ot-meta-val-muted {
  color: var(--muted);
  font-style: italic;
  font-weight: 500;
}

/* BODY SCROLLABLE */
.ot-body-premium {
  flex: 1;
  overflow-y: auto;
  padding: 14px 18px 8px;
}

.ot-create-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: start;
}

.ot-create-main,
.ot-create-side {
  min-width: 0;
}

.ot-create-side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
}

.ot-detail-layout {
  display: block;
}

.ot-detail-main,
.ot-detail-side {
  min-width: 0;
}

.otd-eyebrow {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.otd-top {
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  align-items: center;
}

.otd-top-main {
  flex: 1;
  min-width: 0;
}

.otd-top-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.otd-top-folio {
  margin-bottom: 0;
  padding-top: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--muted);
}

.otd-top-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1;
  letter-spacing: .02em;
}

.otd-top-subtitle {
  margin-top: 5px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.25;
}

.otd-top-close {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  margin-left: 14px;
  background: rgba(15,22,33,.7);
  border-color: rgba(103,149,198,.22);
}

.otd-alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-bottom: 1px solid rgba(192,48,64,.28);
  background: linear-gradient(180deg, rgba(192,48,64,.14), rgba(192,48,64,.08));
  color: #ffb8bf;
  font-size: 12.5px;
  font-weight: 500;
}

.otd-alert-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,184,191,.32);
  font-size: 12px;
  color: #ffd7db;
}

.otd-alert-sep {
  color: rgba(255,255,255,.46);
}

.otd-hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(15,22,33,.42);
}

.otd-hero-stat {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid rgba(255,255,255,.06);
}

.otd-hero-stat:last-child {
  border-right: 0;
}

.otd-reassign-enabled{
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.otd-hero-stat.otd-reassign-enabled:hover,
.otd-control-meta-row.otd-reassign-enabled:hover{
  background:rgba(255,255,255,.03);
  box-shadow:inset 0 0 0 1px rgba(245,197,24,.16);
}

.otd-hero-label {
  font-size: 10px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.otd-hero-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.otd-hero-value-gold {
  color: var(--gold);
}

.otd-hero-value-mono {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 24px;
}

.otd-hero-value-compact {
  font-size: 22px;
}

.otd-hero-sub {
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.otd-tabbar {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  overflow-x: auto;
  background: rgba(15,22,33,.22);
}

.otd-tab-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.otd-tab-btn.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.otd-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: inherit;
  font-size: 11px;
  font-weight: 700;
}

.otd-tab-panel {
  min-width: 0;
}

.otd-body {
  padding: 14px 18px 8px;
}

.otd-summary-grid {
  margin-top: 0;
}

.otd-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 18px;
  align-items: start;
}

.otd-primary {
  min-width: 0;
}

.otd-control-col {
  min-width: 0;
}

.otd-support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.otd-support-card {
  margin-bottom: 0;
  background: rgba(16,22,32,.28);
  border-color: rgba(255,255,255,.05);
}

.otd-support-card-full {
  grid-column: 1 / -1;
}

.otd-control-panel {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.otd-panel,
.otd-section {
  background: rgba(18,25,36,.42);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
}

.otd-panel-kicker,
.otd-section-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tx2, var(--soft));
}

.otd-panel-subkicker {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 3px;
}

.otd-section-kicker-danger {
  color: var(--crimson);
}

.otd-panel-title {
  margin-top: 8px;
  font-size: 15px;
  color: var(--bright);
  line-height: 1.55;
}

.otd-panel-note {
  font-size: 13px;
  color: var(--soft);
  white-space: pre-line;
}

.otd-summary-meta {
  display: grid;
  gap: 8px;
}

.otd-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

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

.otd-summary-key {
  font-size: 12px;
  color: var(--muted);
}

.otd-summary-value {
  font-size: 12.5px;
  color: var(--bright);
  font-weight: 600;
  text-align: right;
}

.otd-summary-value-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.otd-inline-date-input {
  min-height: 34px;
  min-width: 148px;
  padding: 6px 10px;
  font-size: 12px;
}

.otd-inline-edit-btn {
  min-height: 28px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.otd-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.otd-section-meta,
.otd-section-subline,
.otd-section-side-note {
  font-size: 11.5px;
  color: var(--muted);
}

.otd-section-side-note {
  white-space: nowrap;
}

.otd-inline-form {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.otd-thin-progress {
  height: 4px;
  background: rgba(255,255,255,.08);
  border-radius: 999px;
  overflow: hidden;
}

.otd-thin-progress-bar {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #f7df71);
  transition: width .25s ease;
}

.otd-top-pills .spill {
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .02em;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.otd-top-pills .s-dot {
  width: 6px;
  height: 6px;
}

.otd-top-pills .sp-op {
  color: #8ecbff;
  border-color: rgba(72,176,232,.28);
  background: rgba(72,176,232,.10);
}

.otd-top-pills .sp-maint {
  color: #ffe57b;
  border-color: rgba(255,213,0,.28);
  background: rgba(255,213,0,.08);
}

.otd-top-pills .sp-fs {
  color: #ffb0ba;
  border-color: rgba(192,48,64,.24);
  background: rgba(192,48,64,.10);
}

.otd-top-pills .sp-sb {
  color: #9fdcff;
  border-color: rgba(72,176,232,.22);
  background: rgba(72,176,232,.08);
}

.otd-top-pills .sp-pend {
  color: #c9d4e7;
  border-color: rgba(201,212,231,.18);
  background: rgba(201,212,231,.06);
}

.otd-top-pills .sp-comp {
  color: #8fe0b4;
  border-color: rgba(46,171,111,.24);
  background: rgba(46,171,111,.10);
}

.otd-eyebrow-gold {
  color: var(--gold);
}

.otd-timer-shell {
  background: rgba(24,35,58,.96);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 0;
  align-items: stretch;
  justify-content: flex-start;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}

.otd-timer-main {
  min-width: 0;
  flex: 1;
}

.otd-timer-display {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .02em;
  line-height: 1;
}

.otd-timer-status {
  font-size: 11.5px;
  color: var(--tx3, var(--muted));
  margin-top: 0;
}

.otd-timer-actions,
.otd-manual-actions,
.otd-state-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.otd-timer-actions {
  width: 100%;
  justify-content: stretch;
}

.otd-action-btn {
  min-width: 0;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 8px;
}

.otd-action-btn-primary {
  flex: 1;
  width: 100%;
}

.otd-manual-time-wrap {
  display: none;
  background: rgba(255,213,0,.05);
  border: 1px solid rgba(255,213,0,.18);
  border-radius: 10px;
  padding: 12px;
  margin: -2px 0 12px;
}

.otd-manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.otd-manual-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.otd-manual-actions {
  justify-content: flex-end;
  margin-top: 10px;
}

.otd-progress-card,
.otd-control-meta {
  background: rgba(24,35,58,.96);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  padding: 11px 12px;
}

.otd-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 5px;
}

.otd-progress-label {
  font-size: 11.5px;
  color: var(--tx2, var(--soft));
  font-weight: 500;
}

.otd-progress-estimate {
  font-size: 11.5px;
  color: var(--muted);
}

.otd-progress-summary {
  font-size: 11px;
  color: var(--tx3, var(--muted));
  font-weight: 400;
  margin-bottom: 8px;
}

.otd-control-meta {
  padding: 0;
  overflow: hidden;
}

.otd-control-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.otd-control-meta-row:last-child {
  border-bottom: 0;
}

.otd-control-meta-row-clickable {
  cursor: pointer;
}

.otd-control-meta-key {
  font-size: 12.5px;
  color: var(--muted);
}

.otd-control-meta-value {
  font-size: 12.5px;
  color: var(--bright);
  font-weight: 500;
  text-align: right;
}

.otd-control-meta-value-gold {
  color: var(--gold);
  font-weight: 600;
}

.otd-side-btn,
.otd-validate-btn {
  width: 100%;
  min-height: 42px;
}

.otd-validate-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.otd-validate-btn {
  min-height: 40px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}

.otd-validate-btn:disabled {
  opacity: .45;
  box-shadow: none;
}

.otd-main-action-hint {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.otd-more-actions {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
}

.otd-more-actions-footer {
  align-items: flex-start;
}

.otd-more-actions-toggle {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

.otd-more-actions-list {
  position: absolute;
  left: 0;
  bottom: calc(100% + 10px);
  z-index: 24;
  width: 220px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 6px;
  border-radius: 10px;
  border: 1px solid #262B33;
  background: #171B21;
  box-shadow: 0 12px 28px rgba(0,0,0,.5);
}

.otd-more-actions-list[hidden] {
  display: none !important;
}

.otd-more-action-item,
.otd-more-action-empty {
  width: 100%;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  color: var(--soft);
  font-size: 11.5px;
  font-weight: 600;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.otd-more-action-item {
  cursor: pointer;
}

.otd-more-action-item.is-danger {
  color: #ff9ca7;
  border-color: rgba(192,48,64,.25);
  background: rgba(192,48,64,.08);
}

.otd-more-action-empty {
  color: var(--muted);
}

.otd-secondary-zone {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.06);
}

.otd-secondary-zone #otd-pausas-sec,
.otd-secondary-zone #otd-related-sec,
.otd-secondary-zone #otd-reasig-log {
  margin-bottom: 12px;
}

.otd-cost-breakdown {
  display: grid;
  gap: 10px;
}

.otd-cost-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(15,22,33,.35);
}

.otd-cost-row.is-total {
  border-color: rgba(255,213,0,.18);
  background: rgba(255,213,0,.05);
}

.otd-cost-label {
  font-size: 13px;
  color: var(--bright);
  font-weight: 600;
}

.otd-cost-meta {
  font-size: 11.5px;
  color: var(--muted);
}

.otd-cost-value {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 13px;
  color: var(--gold);
  font-weight: 700;
  text-align: right;
}

.otd-cost-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.otd-cost-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(15,22,33,.35);
}

.otd-cost-card.is-accent {
  border-color: rgba(255,213,0,.18);
  background: rgba(255,213,0,.05);
}

.otd-cost-card-key {
  font-size: 10px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--muted);
}

.otd-cost-card-value {
  margin-top: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 28px;
  line-height: 1;
  color: var(--bright);
  font-weight: 600;
}

.otd-cost-card.is-accent .otd-cost-card-value {
  color: var(--gold);
}

.otd-cost-card-sub {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

.ot-related-section {
  margin-top: 0;
}

.ot-related-total-badge {
  color: var(--ice);
  background: rgba(72,176,232,.14);
}

.ot-related-group {
  margin-top: 10px;
}

.ot-related-group:first-child {
  margin-top: 0;
}

.ot-related-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.ot-related-group-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--soft);
}

.ot-related-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.06);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 700;
  color: var(--bright);
}

.ot-related-scroll {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
  max-height: 140px;
  overflow-y: auto;
  padding-right: 4px;
}

.ot-related-scroll::-webkit-scrollbar,
.ot-activity-scroll::-webkit-scrollbar {
  width: 8px;
}

.ot-related-scroll::-webkit-scrollbar-thumb,
.ot-activity-scroll::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.14);
  border-radius: 999px;
}

.ot-related-card {
  position: relative;
  background: rgba(8,12,18,.26);
  border: 1px solid rgba(255,255,255,.04);
  border-left: 2px solid var(--gold);
  border-radius: 12px;
  padding: 8px 9px;
  cursor: pointer;
  transition: transform .14s ease, border-color .14s ease, background .14s ease;
}

.ot-related-card:hover {
  transform: translateY(-1px);
  border-color: rgba(255,213,0,.12);
  background: rgba(13,18,26,.42);
}

.ot-related-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ot-related-card-main {
  min-width: 0;
}

.ot-related-card-folio {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--gold);
  text-transform: uppercase;
}

.ot-related-card-desc {
  font-size: 12px;
  font-weight: 600;
  color: var(--bright);
  line-height: 1.3;
  margin-top: 2px;
}

.ot-related-card-meta {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 4px;
}

.otd-falla-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.otd-falla-card {
  position: relative;
  border: 0;
  border-left: 3px solid rgba(255,255,255,.1);
  border-radius: 0;
  background: rgba(24,35,58,.94);
  padding: 11px 13px;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}

.otd-falla-card.is-critica {
  border-left-color: #e24b4a;
}

.otd-falla-card.is-alta {
  border-left-color: #f5a623;
}

.otd-falla-card.is-media,
.otd-falla-card.is-baja {
  border-left-color: rgba(255,255,255,.22);
}

.otd-falla-card.state-en_proceso {
  border-left-color: #f5c518;
  background: rgba(245,197,24,.06);
}

.otd-falla-card.state-pausada {
  opacity: .92;
}

.otd-falla-card.state-completada {
  border-left-color: #2ecc8f;
  background: rgba(46,204,143,.07);
}

.otd-falla-card.state-completada .otd-falla-title {
  color: var(--soft);
  text-decoration: line-through;
}

.otd-falla-card.state-completada .otd-falla-time {
  color: #7fe3bc;
}

.otd-falla-card-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.otd-falla-card-main {
  min-width: 0;
}

.otd-falla-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-bottom: 4px;
}

.otd-falla-folio {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.otd-falla-title {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--bright);
  line-height: 1.32;
}

.otd-falla-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--soft);
}

.otd-falla-card-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.otd-falla-select {
  width: 100%;
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(30,42,68,.96);
  color: var(--bright);
  padding: 0 10px;
  font-size: 12.5px;
}

.otd-falla-ia-link {
  border: 0;
  background: transparent;
  color: var(--ice);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.otd-falla-ia-hint {
  margin-top: 8px;
  font-size: 12px;
  color: var(--ice);
}

.otd-falla-tools {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.otd-falla-tool-btn {
  flex: 1;
  min-height: 34px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(30,42,68,.96);
  color: var(--soft);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

.otd-falla-tool-btn:hover {
  background: rgba(255,255,255,.08);
}

.otd-falla-tool-btn:disabled {
  opacity: .55;
  cursor: not-allowed;
}

.otd-falla-tool-btn.has {
  color: var(--bright);
}

.otd-falla-tool-btn-accent {
  color: #90e2c1;
  border-color: rgba(46,204,143,.34);
  background: rgba(46,204,143,.14);
}

.otd-falla-tool-btn-accent.has {
  background: rgba(46,204,143,.18);
}

.otd-falla-ref {
  margin-top: 8px;
}

.otd-falla-ref-head {
  width: 100%;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.08);
  border-left: 2px solid #e87722;
  border-radius: 0 6px 6px 0;
  background: rgba(30,42,68,.96);
  color: var(--tx2, var(--soft));
  padding: 0 10px;
  cursor: pointer;
}

.otd-falla-ref-head-main {
  color: var(--bright);
  font-size: 11.5px;
  font-weight: 500;
}

.otd-falla-ref-head-side {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.otd-ref-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 500;
}

.otd-ref-pill.is-pending {
  background: rgba(245,166,35,.16);
  color: #f6c77a;
}

.otd-ref-pill.is-transit {
  background: rgba(53,138,221,.16);
  color: #7fb6f0;
}

.otd-ref-pill.is-dispatched {
  background: rgba(108,92,231,.18);
  color: #b6abff;
}

.otd-ref-pill.is-received {
  background: rgba(46,204,143,.16);
  color: #7fe3bc;
}

.otd-ref-pill.is-rejected {
  background: rgba(216,86,105,.16);
  color: #f0a0ac;
}

.otd-falla-ref-chevron {
  color: var(--muted);
  transition: transform .2s ease;
}

.otd-falla-ref-chevron.open {
  transform: rotate(90deg);
}

.otd-falla-ref-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height .22s ease, margin-top .22s ease;
}

.otd-falla-ref-list.open {
  max-height: 220px;
  margin-top: 4px;
  overflow-y: auto;
}

.otd-ref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  font-size: 11px;
  color: var(--soft);
}

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

.otd-ref-row-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.otd-ref-row-status {
  flex-shrink: 0;
  font-weight: 600;
}

.otd-ref-row-status.is-pending {
  color: #f6c77a;
}

.otd-ref-row-status.is-transit {
  color: #7fb6f0;
}

.otd-ref-row-status.is-dispatched {
  color: #b6abff;
}

.otd-ref-row-status.is-received {
  color: #7fe3bc;
}

.otd-ref-row-status.is-rejected {
  color: #f29aaa;
}

.otd-falla-card-side {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 0;
  flex-wrap: nowrap;
  justify-content: flex-start;
}

.otd-falla-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.otd-falla-action-btn {
  min-width: 94px;
}

.otd-falla-time {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 15px;
  font-weight: 700;
  color: var(--bright);
  letter-spacing: .02em;
}

.otd-falla-expand-wrap {
  display: flex;
  justify-content: flex-end;
}

.otd-falla-detail {
  margin-top: 12px;
}

.otd-add-falla-btn {
  width: 100%;
  margin-top: 10px;
  border: 1px dashed var(--wire);
  color: var(--gold);
  font-size: 12.5px;
}

.ot-detail-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.ot-detail-foot-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.otd-footer-tool {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 11px;
  color: var(--muted);
  border-color: rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
}

.ot-fallas-table-wrap {
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(9,14,22,.42);
}

.ot-fallas-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.ot-fallas-table thead th {
  text-align: left;
  padding: 10px 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(255,255,255,.03);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.ot-fallas-table tbody td {
  padding: 10px 12px;
  font-size: 13px;
  color: var(--bright);
  border-bottom: 1px solid rgba(255,255,255,.05);
  vertical-align: middle;
}

.ot-fallas-table tbody tr:last-child td {
  border-bottom: 0;
}

.ot-falla-row {
  cursor: pointer;
}

.ot-falla-row:hover {
  background: rgba(255,255,255,.025);
}

.ot-falla-col-main {
  min-width: 0;
}

.ot-falla-main-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ot-falla-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f5c518;
  flex-shrink: 0;
}

.ot-falla-main-text {
  min-width: 0;
}

.ot-falla-main-folio {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: var(--soft);
  letter-spacing: 1px;
}

.ot-falla-main-desc {
  font-size: 13px;
  font-weight: 600;
  color: var(--bright);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ot-falla-main-meta {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.ot-falla-chip {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 5px;
  border: 0;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--bright);
}

.ot-falla-chip.is-main {
  border-color: rgba(255,213,0,.16);
  color: var(--gold);
  background: rgba(255,213,0,.06);
}

.ot-falla-chip.is-new {
  border-color: rgba(72,176,232,.16);
  color: var(--ice);
  background: rgba(72,176,232,.06);
}

.ot-falla-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ot-falla-actions .btn {
  min-width: auto;
}

.ot-falla-detail-row td {
  padding: 0;
  background: rgba(255,255,255,.02);
}

.ot-falla-detail-inner {
  padding: 12px;
}

.ot-detail-foot {
  justify-content: flex-end;
  gap: 10px;
}

.ot-detail-foot .btn {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 9px 18px;
  font-size: 13px;
  letter-spacing: 1px;
}

.ot-detail-foot-secondary {
  min-width: 128px;
}

.ot-detail-foot-primary {
  min-width: 210px;
}

.ot-related-card .spill {
  flex-shrink: 0;
}

.ot-activity-scroll {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

/* BANNER IA */
.ot-ia-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: rgba(255, 213, 0, 0.07);
  border: 1px solid rgba(255, 213, 0, 0.25);
  border-left: 3px solid var(--gold);
  border-radius: var(--r);
  margin-bottom: 18px;
}

.ot-ia-banner-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
  padding-top: 2px;
}

.ot-ia-banner-content {
  flex: 1;
  min-width: 0;
}

.ot-ia-banner-title {
  font-size: 12px;
  color: var(--bright);
  line-height: 1.5;
  font-weight: 500;
}

.ot-ia-banner-hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
  font-style: italic;
}

/* SECCIONES */
.ot-section {
  margin-bottom: 14px;
  background: rgba(18,25,36,.42);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px;
  padding: 14px;
}

.ot-create-side-card {
  margin-bottom: 0;
}

.ot-section-head {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 12px;
}

.ot-section-num {
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: rgba(255, 213, 0, 0.12);
  border: 1px solid rgba(255, 213, 0, 0.22);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.ot-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--tx2, var(--soft));
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ot-section-optional {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  font-style: italic;
}

/* GRIDS */
.ot-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.ot-grid-2:last-child {
  margin-bottom: 0;
}

.ot-grid-2-asym {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.ot-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.ot-inline-hint {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
}

.ot-retrabajo-context {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,0.02);
}

.ot-retrabajo-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--soft);
  cursor: pointer;
}

/* Mobile */
@media (max-width: 640px) {
  .ot-header-sticky {
    padding: 12px 16px 10px;
  }
  .otd-hero-strip {
    grid-template-columns: 1fr 1fr;
    padding: 0 16px;
  }
  .otd-hero-stat:nth-child(2n) {
    border-right: 0;
  }
  .otd-tabbar {
    padding: 0 16px;
    gap: 14px;
  }
  .ot-header-title {
    white-space: normal;
  }
  .ot-body-premium {
    padding: 12px 16px 6px;
  }
  .ot-create-workspace {
    grid-template-columns: 1fr;
  }
  .ot-create-side {
    position: static;
  }
  .otd-alert,
  .otd-top {
    padding: 12px 16px 10px;
  }
  .otd-top {
    align-items: flex-start;
  }
  .otd-body {
    padding: 12px 16px 6px;
  }
  .otd-workspace {
    grid-template-columns: 1fr;
  }
  .otd-support-grid {
    grid-template-columns: 1fr;
  }
  .otd-cost-row {
    grid-template-columns: 1fr;
  }
  .otd-cost-summary-grid {
    grid-template-columns: 1fr;
  }
  .otd-control-panel {
    position: static;
  }
  .otd-top-title {
    white-space: normal;
  }
  .otd-top-close {
    width: 34px;
    height: 34px;
    margin-left: 10px;
  }
  .otd-top-pills .spill {
    min-height: 28px;
    padding: 0 10px;
  }
  .otd-timer-shell {
    flex-direction: column;
    align-items: stretch;
  }
  .otd-timer-actions,
  .otd-manual-actions,
  .otd-state-actions {
    justify-content: stretch;
  }
  .otd-falla-card-row {
    grid-template-columns: 1fr;
  }
  .otd-falla-card-side {
    justify-content: flex-start;
    align-items: flex-start;
  }
  .otd-falla-card-controls,
  .otd-falla-tools,
  .ot-detail-foot,
  .ot-detail-foot-tools {
    flex-direction: column;
    align-items: stretch;
  }
  .otd-more-actions-footer {
    align-items: stretch;
  }
  .otd-timer-actions .btn,
  .otd-manual-actions .btn,
  .otd-state-actions .btn {
    flex: 1;
    min-width: 0;
  }
  .otd-manual-grid {
    grid-template-columns: 1fr;
  }
  .ot-grid-2,
  .ot-grid-2-asym {
    grid-template-columns: 1fr;
  }
  .ot-related-scroll,
  .ot-activity-scroll {
    max-height: none;
  }
  .ot-detail-foot {
    justify-content: stretch;
  }
  .ot-detail-foot .btn {
    flex: 1;
    min-width: 0;
  }
}

@media (max-width: 900px){
  .maint-plan-mbox{
    width:100%;
    max-height:92vh;
    border-radius:16px 16px 0 0;
  }
  .maint-wizard-mbox{
    width:100%;
    max-width:none;
  }
  .maint-wizard-stepper{
    grid-template-columns:1fr;
    padding:12px 14px;
  }
  .maint-wizard-shell{
    grid-template-columns:1fr;
  }
  .maint-wizard-main{
    border-right:none;
    border-bottom:1px solid rgba(59,72,90,.75);
    padding:14px;
  }
  .maint-wizard-side{
    padding:14px;
  }
  .maint-wizard-grid.cols-2,
  .maint-rule-grid,
  .maint-trigger-grid,
  .maint-v2-form-grid,
  .maint-v2-rule-strip,
  .maint-v2-rule-grid,
  .maint-v2-content-grid,
  .maint-v2-side-grid,
  .maint-v2-pickers,
  .maint-v2-item-fields{
    grid-template-columns:1fr;
  }
  .maint-task-builder{
    grid-template-columns:1fr;
  }
  .maint-col-span-2,
  .maint-v2-form-grid,
  .maint-v2-span-2{
    grid-column:auto;
  }
  .maint-plan-grid,
  .maint-plan-main-grid,
  .maint-plan-definition-grid,
  .maint-plan-metrics-grid,
  .maint-dual-list,
  .maint-plan-stack,
  .maint-plan-summary,
  .maint-selected-fields,
  .maint-inline-fields{
    grid-template-columns:1fr;
  }
  .maint-span-2{
    grid-column:auto;
  }
  .maint-plan-card{padding:12px}
  .maint-wizard-card,
  .maint-v2-card{padding:14px}
  .maint-wizard-foot{
    flex-direction:column;
    align-items:stretch;
  }
  .maint-foot-actions{
    justify-content:stretch;
  }
  .maint-foot-actions .btn{
    width:100%;
  }
  .maint-picker-item,
  .maint-selected-head,
  .maint-work-top,
  .maint-v2-item-top{align-items:flex-start}
}

/* MARCADOR IA */
.ot-ai-mark {
  display: inline-block;
  margin-left: 4px;
  font-size: 11px;
  color: var(--gold);
  vertical-align: baseline;
}

.ot-ai-chip {
  font-size: 11px;
  color: var(--gold);
  font-weight: 500;
  padding: 3px 8px;
  background: rgba(255, 213, 0, 0.1);
  border-radius: 10px;
}

/* Campos con valor IA tienen borde sutil */
.fi.ot-filled-ai,
.fsel.ot-filled-ai {
  border-color: rgba(255, 213, 0, 0.3);
  background: rgba(255, 213, 0, 0.04);
}

/* DESCRIPCIÓN DE FALLA (debajo de selectores) */
.ot-falla-desc-wrap {
  margin-top: 10px;
}

.ot-falla-desc-wrap #ot-falla-desc-text {
  padding: 10px 14px;
  background: rgba(192, 48, 64, 0.05);
  border: 1px solid rgba(192, 48, 64, 0.2);
  border-left: 3px solid var(--crimson);
  border-radius: var(--r);
  font-size: 12px;
  color: var(--soft);
  line-height: 1.5;
  font-style: italic;
}

/* TEXTAREA */
.ot-textarea {
  resize: vertical;
  min-height: 70px;
  font-family: inherit;
  line-height: 1.5;
}

/* TAREAS */
.ot-tareas-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ot-tareas-list {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--wire);
  border-radius: var(--r);
  padding: 4px;
  margin-bottom: 8px;
  min-height: 40px;
}

.ot-tareas-list:empty::before {
  content: "Sin tareas — agrega pasos específicos abajo";
  display: block;
  padding: 12px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.ot-tarea-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ot-tarea-item:last-child {
  border-bottom: none;
}



/* ═══════════════════════════════════════════════════════
   MOBILE UX PACK — OTs / Fallas / Listas principales
═══════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .page {
    padding: 14px 12px calc(96px + env(safe-area-inset-bottom, 0px));
  }

  .sec-row {
    margin-bottom: 10px;
    gap: 8px;
  }

  .sec-title {
    font-size: 15px;
    line-height: 1.25;
  }

  .chip {
    min-height: 38px;
    padding: 8px 11px;
    font-size: 12px;
    letter-spacing: 0.7px;
  }

  .kpi-strip {
    margin-bottom: 12px;
    border-radius: 12px;
  }

  .page-fallas .fallas-kpi-strip {
    grid-template-columns: 1fr 1fr;
  }

  .kpi-cell {
    padding: 12px 11px;
  }

  .kpi-label {
    font-size: 12px;
    letter-spacing: 1.4px;
  }

  .kpi-num {
    font-size: 24px;
  }

  .kpi-sub {
    font-size: 12px;
  }

  .rh-demo-top {
    grid-template-columns: 1fr;
  }

  .rh-demo-insights {
    grid-template-columns: 1fr;
  }

  .rh-demo-head {
    align-items:stretch;
    flex-direction:column;
  }

  .rh-demo-toolbar {
    width:100%;
    justify-content:flex-start;
  }

  #otList,
  #fallasList,
  #flotaList,
  #tecnicosList {
    display: grid;
    gap: 10px;
  }

  .ot-card,
  .falla-card {
    margin-bottom: 0;
    padding: 12px 12px;
    border-radius: 12px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .ot-card-head,
  .falla-head {
    gap: 8px;
    margin-bottom: 0;
  }

  .ot-folio,
  .falla-id {
    font-size: 13px;
    letter-spacing: 1px;
    line-height: 1.25;
  }

  .ot-eq,
  .falla-eq {
    font-size: 14px;
    line-height: 1.25;
  }

  .ot-desc,
  .falla-desc {
    font-size: 14px;
    line-height: 1.45;
    margin-bottom: 0;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .ot-foot,
  .falla-meta {
    gap: 6px;
  }

  .ot-date,
  .falla-by {
    font-size: 12px;
    margin-left: 0;
    width: 100%;
  }

  .spill {
    font-size: 12px !important;
    padding: 4px 8px !important;
  }

  .page-fallas .fallas-filter-scroll {
    gap: 6px;
  }

  .page-fallas .fallas-filter-scroll .chip {
    min-height: 36px;
    padding: 7px 10px;
  }

  .page-fallas .fallas-list-hint {
    width: 100%;
    font-size: 11px;
  }

  .fallas-table-shell {
    display: none;
  }

  .fallas-mobile-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .falla-card-shell {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .falla-inline-meta {
    gap: 5px 6px;
  }

  .falla-rail {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }

  .falla-sev-pill {
    min-height: 22px;
    padding: 0 8px;
    font-size: 10px;
  }

  .falla-desc {
    -webkit-line-clamp: 2;
  }

  .falla-by {
    width: 100%;
  }

  .falla-open-glyph {
    margin-left: auto;
  }

  .falla-actions .btn,
  .ot-card .btn {
    min-height: 38px;
  }
}

/* ═══════════════════════════════════════════════════════
   PÁGINA VALIDACIONES (B2) — Pulido desktop + mobile
═══════════════════════════════════════════════════════ */

.sb-badge.crimson {
  background: var(--crimson);
  color: white;
}

#page-validaciones {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 120px; /* espacio para botones sticky */
}

/* ─── Filtros ─── */
.val-filtros {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 24px;
  padding-bottom: 4px;
  scrollbar-width: none;
  flex-wrap: wrap;
}

.val-filtros::-webkit-scrollbar { display: none; }

.val-chip {
  flex-shrink: 0;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--wire);
  border-radius: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: all 0.15s;
}

.val-chip:hover {
  color: var(--soft);
  border-color: var(--soft);
}

.val-chip.active {
  background: rgba(255, 213, 0, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

.val-chip-count {
  font-size: 10px;
  padding: 1px 7px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  font-weight: 700;
}

.val-chip.active .val-chip-count {
  background: rgba(255, 213, 0, 0.2);
  color: var(--gold);
}

/* ─── Badges de prioridad ─── */
.val-prio-pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.val-prio-critica {
  background: rgba(233, 69, 96, 0.15);
  color: var(--crimson);
  border: 1px solid rgba(233, 69, 96, 0.35);
}

.val-prio-alta {
  background: rgba(232, 131, 49, 0.12);
  color: #F5C0A0;
  border: 1px solid rgba(232, 131, 49, 0.3);
}

.val-prio-media {
  background: rgba(255, 213, 0, 0.1);
  color: var(--gold);
  border: 1px solid rgba(255, 213, 0, 0.3);
}

.val-prio-baja {
  background: rgba(97, 196, 89, 0.1);
  color: var(--jade);
  border: 1px solid rgba(97, 196, 89, 0.3);
}

/* ─── Grid de cards ─── */
#val-lista {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 900px) {
  #val-lista {
    grid-template-columns: 1fr 1fr;
  }
}

.val-card {
  background: var(--steel);
  border: 1px solid var(--wire);
  border-radius: var(--r2);
  padding: 18px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
}

.val-card:hover {
  background: rgba(255,255,255,0.04);
  border-color: var(--gold);

/* Create OT visual polish */
.ot-mbox-premium {
  width: min(760px, calc(100vw - 32px));
  background: #0F1216;
  border: 1px solid #23272E;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0,0,0,.54);
}

.ot-mbox-premium .ot-header-sticky {
  padding: 22px 24px 14px;
  border-bottom: 1px solid #23272E;
  background: #0F1216;
}

.otc-hero-strip,
.otc-summary-card,
.ot-create-top-pills,
.ot-header-eyebrow {
  display: none;
}

.ot-header-title {
  font-family: Inter, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.ot-header-meta {
  gap: 10px;
  font-size: 13px;
  color: #8E98A5;
}

.ot-body-premium {
  padding: 16px 24px 18px;
}

.ot-create-workspace {
  display: block;
  max-width: 680px;
  margin: 0 auto;
}

.ot-create-side {
  position: static;
  display: block;
}

.ot-section.ot-create-card {
  margin-bottom: 18px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #23272E;
  border-radius: 0;
  padding: 0 0 18px;
  box-shadow: none;
}

.ot-section-title {
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  color: #D5D8DD;
  text-transform: none;
}

.ot-section-num {
  display: none;
}

.ot-section-head {
  display: block;
  margin-bottom: 10px;
}

.ot-section.ot-create-card:last-child {
  margin-bottom: 0;
  border-bottom: 0;
  padding-bottom: 0;
}

.ot-field-head .btn,
.ot-tarea-add .btn,
.ot-footer-sticky .btn {
  letter-spacing: 0;
}

.ot-field-head .btn,
.ot-tarea-add .btn,
.ot-footer-actions .btn {
  min-height: 38px;
}

.ot-tareas-list:empty::before {
  content: "Sin tareas todavía";
  display: block;
  padding: 16px 0;
  font-size: 13px;
  color: #7F8894;
  font-style: italic;
}

.ot-tarea-add {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
}

.ot-media-uploader,
.media-uploader#ot-media-wrap {
  margin-top: 0;
}

#ot-media-wrap .media-drop {
  min-height: 132px;
  border-radius: 10px;
  border: 1px dashed rgba(255,255,255,.12);
  background: #171B21;
}

#ot-media-wrap .media-drop-txt {
  font-weight: 700;
  color: #fff;
}

#ot-media-wrap .media-drop-sub {
  color: #7F8894;
}

.ot-footer-sticky {
  padding: 14px 24px 18px;
  background: #0F1216;
  border-top: 1px solid #23272E;
  justify-content: flex-end;
}

.ot-footer-actions {
  gap: 8px;
  margin-left: auto;
}

.ot-footer-actions .btn-ice {
  background: #171B21;
  border-color: #33383F;
  color: #fff;
}

.ot-footer-sticky > .btn-ghost {
  margin-right: auto;
}

#ot-save-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.ot-grid-2,
.ot-grid-2-asym {
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (max-width: 900px) {
  .ot-mbox-premium {
    width: min(760px, calc(100vw - 20px));
  }

  .ot-mbox-premium .ot-header-sticky,
  .ot-body-premium,
  .ot-footer-sticky {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (max-width: 640px) {
  .ot-tarea-add {
    grid-template-columns: 1fr;
  }

  .ot-footer-sticky {
    align-items: stretch;
  }
}

/* OT detail visual polish vs handoff */
.otd-modal-shell {
  width: min(920px, calc(100vw - 48px));
  background: #0F1216;
  border: 1px solid #23272E;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(0,0,0,.54);
}

.otd-top {
  padding: 18px 28px 16px;
  border-bottom: 1px solid #23272E;
  align-items: flex-start;
}

.otd-top-pills {
  gap: 10px;
  margin-bottom: 8px;
}

.otd-top-folio {
  font-size: 13px;
  font-weight: 500;
  color: #7F8894;
  font-family: var(--mono, ui-monospace, monospace);
}

.otd-top-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.otd-top-subtitle {
  margin-top: 4px;
  font-size: 13px;
  color: #7F8894;
}

.otd-top-close {
  width: 36px;
  height: 36px;
  background: transparent;
  border-color: #33383F;
  color: #d5d8dd;
}

.otd-hero-strip {
  padding: 14px 28px;
  border-bottom: 1px solid #1C2026;
  background: transparent;
}

.otd-hero-stat {
  padding: 0 16px;
  border-right-color: #1C2026;
}

.otd-hero-stat:first-child {
  padding-left: 0;
}

.otd-hero-label {
  color: #7F8894;
  font-weight: 800;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}

.otd-hero-value {
  font-family: inherit;
  font-size: 19px;
  font-weight: 800;
}

.otd-hero-value-mono {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 19px;
}

.otd-hero-value-compact {
  font-size: 15px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  line-height: 1.2;
}

.otd-hero-sub {
  color: #7F8894;
}

.otd-tabbar {
  gap: 4px;
  padding: 0 28px;
  border-bottom: 0;
  background: transparent;
}

.otd-tab-btn {
  min-height: 40px;
  padding: 10px 14px;
  color: #a1a8b4;
  font-weight: 700;
}

.otd-tab-badge {
  min-width: 18px;
  height: 16px;
  padding: 0 5px;
  border-radius: 9px;
  font-size: 10px;
}

.otd-body {
  padding: 22px 28px;
}

.otd-workspace {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.otd-support-grid {
  gap: 16px;
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.otd-summary-grid {
  grid-template-columns: 1.3fr 1fr;
}

.otd-panel,
.otd-section,
.otd-support-card,
.otd-progress-card,
.otd-timer-shell,
.otd-manual-time-wrap {
  background: #12151A;
  border-color: #23272E;
  border-radius: 12px;
}

.otd-panel,
.otd-section {
  padding: 18px 20px;
  margin-bottom: 0;
}

.otd-control-panel {
  gap: 14px;
}

.otd-panel-kicker,
.otd-section-kicker {
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #7F8894;
}

.otd-panel-title {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.55;
  color: #D5D8DD;
}

.otd-panel-note {
  color: #D5D8DD;
}

.otd-summary-meta {
  gap: 0;
}

.otd-summary-row {
  padding: 12px 18px;
  border-bottom-color: #1C2026;
}

.otd-summary-key {
  font-size: 13px;
  color: #7F8894;
}

.otd-summary-value {
  font-size: 13px;
  color: #fff;
  font-weight: 700;
}

.otd-progress-card {
  padding: 16px 20px;
}

.otd-timer-display {
  font-size: 30px;
  letter-spacing: 2px;
  color: #F5C518;
}

.otd-timer-status {
  color: #7F8894;
}

.otd-tareas-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.otd-inline-form {
  margin-top: 10px;
}

.otd-task-composer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  margin-top: 10px;
  padding-top: 8px;
}

.otd-task-composer .otd-task-input-wrap {
  min-width: 0;
  width: 100%;
}

.otd-task-composer #otd-tarea-input {
  min-width: 0;
  width: 100%;
  min-height: 46px;
  margin-top: 0;
  margin-bottom: 0;
}

.otd-task-composer .otd-task-actions-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: 6px;
  text-align: right;
}

.otd-task-composer .otd-task-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  text-align: right;
  max-width: 100%;
}

.otd-task-composer .btn {
  min-height: 42px;
  white-space: nowrap;
  width: auto;
  justify-content: center;
  padding-inline: 18px;
}

.otd-task-composer .ot-tarea-ai-btn {
  min-width: 0;
}

.otd-task-composer .btn.btn-gold {
  min-width: 0;
}

.otd-cost-breakdown {
  display: block;
}

.otd-cost-row {
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid #23272E;
  border-top: 0;
  background: transparent;
}

.otd-cost-row:first-child {
  border-top: 1px solid #23272E;
  border-radius: 10px 10px 0 0;
}

.otd-cost-row:last-child {
  border-radius: 0 0 10px 10px;
}

.otd-cost-meta {
  display: none;
}

.otd-cost-row.is-total {
  background: rgba(245,197,24,0.06);
}

.otd-cost-label,
.otd-cost-value {
  color: #D5D8DD;
}

.otd-cost-row.is-total .otd-cost-label,
.otd-cost-row.is-total .otd-cost-value {
  color: #F5C518;
}

.otd-cost-card {
  padding: 10px 14px;
  border-radius: 8px;
  border-color: #23272E;
  background: #171B21;
}

.otd-cost-card-key {
  color: #7F8894;
}

.otd-cost-card-value {
  margin-top: 6px;
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 13px;
  line-height: 1.25;
  color: #D5D8DD;
  font-weight: 700;
}

.otd-cost-card-sub {
  color: #7F8894;
}

.otd-evidence-hint {
  margin-bottom: 14px;
  font-size: 12px;
  color: #7F8894;
}

.otd-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.otd-evidence-slot {
  position: relative;
  width: 100%;
  min-height: 136px;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 12px 12px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #b9b1a5;
  background: #ded9d0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.42), 0 1px 2px rgba(0,0,0,.08);
}

.otd-evidence-slot-empty {
  cursor: pointer;
  user-select: none;
  justify-self: stretch;
  align-self: stretch;
}

.otd-evidence-slot-empty:focus-visible {
  outline: 2px solid rgba(67,184,216,.7);
  outline-offset: 2px;
}

.otd-evidence-slot-empty > * {
  pointer-events: none;
}

.otd-evidence-slot.is-filled {
  align-items: stretch;
  justify-content: stretch;
  background: #171B21;
  padding: 0;
  border-color: rgba(255,255,255,.08);
}

.otd-evidence-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.otd-evidence-slot-label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(15,18,22,.78);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

.otd-evidence-placeholder-icon {
  width: 28px;
  height: 24px;
  margin-bottom: 10px;
  border: 2px solid rgba(90, 84, 76, 0.42);
  border-radius: 5px;
  position: relative;
  opacity: .78;
}

.otd-evidence-placeholder-icon::before,
.otd-evidence-placeholder-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.otd-evidence-placeholder-icon::before {
  left: 4px;
  right: 4px;
  bottom: 4px;
  height: 8px;
  background: linear-gradient(135deg, transparent 0 14%, rgba(90, 84, 76, 0.42) 14% 44%, transparent 44% 54%, rgba(90, 84, 76, 0.42) 54% 82%, transparent 82%);
}

.otd-evidence-placeholder-icon::after {
  top: 4px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: rgba(90, 84, 76, 0.42);
}

.otd-evidence-placeholder-title {
  font-size: 13px;
  color: #504a42;
  font-weight: 700;
}

.otd-evidence-placeholder-sub {
  margin-top: 5px;
  font-size: 11px;
  color: #7c756a;
}

.otd-evidence-slot-dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: #43b8d8;
  border: 2px solid rgba(15,18,22,.32);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08);
}

.otd-evidence-zoom {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 6px;
  background: rgba(15,18,22,.74);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  z-index: 2;
}

.otd-evidence-upload {
  display: none !important;
}

.otd-evidence-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.otd-evidence-previews {
  display: none;
}

.otd-activity-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 0 0 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid #1C2026;
}

.otd-activity-row:last-child {
  margin-bottom: 0;
}

.otd-activity-when {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 11px;
  color: #5B6270;
  white-space: nowrap;
}

.otd-activity-text {
  font-size: 13px;
  color: #D5D8DD;
}

.otd-activity-user {
  color: #7F8894;
}

.ot-detail-foot {
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  padding: 18px 28px;
  border-top: 1px solid #23272E;
  position: sticky;
  bottom: 0;
  z-index: 6;
  background: #0F1216;
}

.ot-detail-foot-tools {
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  margin-right: auto;
}

.otd-more-actions-toggle {
  padding: 0;
  border: 0;
  background: transparent;
  color: #F5C518;
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
}

.ot-detail-foot-actions {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  gap: 8px;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-end;
  flex: 1 1 auto;
  min-width: 0;
}

.ot-detail-foot .btn {
  min-height: 40px;
  padding: 10px 14px;
  font-size: 12.5px;
  letter-spacing: 0;
  white-space: nowrap;
}

.ot-detail-foot-primary {
  min-width: 142px;
}

.ot-detail-foot-secondary {
  min-width: 96px;
  background: #171B21;
  border-color: #33383F;
  color: #fff;
}

.ot-detail-foot-danger {
  min-width: 116px;
}

.btn-danger-soft {
  border: 1px solid rgba(239,68,68,0.45);
  background: rgba(239,68,68,0.08);
  color: #F25F73;
}

@media (max-width: 900px) {
  .otd-modal-shell {
    width: min(920px, calc(100vw - 20px));
  }
  .otd-top,
  .otd-hero-strip,
  .otd-tabbar,
  .otd-body,
  .ot-detail-foot {
    padding-left: 16px;
    padding-right: 16px;
  }
  .otd-hero-strip,
  .otd-summary-grid,
  .otd-workspace,
  .otd-support-grid {
    grid-template-columns: 1fr;
  }
  .otd-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .otd-hero-stat {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid #1C2026;
  }
  .otd-hero-stat:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 560px) {
  .otd-evidence-grid {
    grid-template-columns: 1fr;
  }
  .ot-detail-foot,
  .ot-detail-foot-tools,
  .ot-detail-foot-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .ot-detail-foot-actions {
    display: flex;
  }
  .ot-detail-foot .btn {
    width: 100%;
  }
}
  border-color: var(--gold);
  transform: translateY(-1px);
}

.val-card.por_validar { border-left: 3px solid var(--gold); }
.val-card.rechazada { border-left: 3px solid var(--crimson); }
.val-card.completado { border-left: 3px solid var(--jade); }

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

.val-card-title-block {
  flex: 1;
  min-width: 0;
}

.val-card-folio {
  font-size: 15px;
  color: var(--bright);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 2px;
}

.val-card-equipo {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.val-card-badges {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.val-card-desc {
  font-size: 13px;
  color: var(--soft);
  margin-bottom: 14px;
  line-height: 1.4;
  flex: 1;
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.val-card-meta {
  display: flex;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
  flex-wrap: wrap;
  padding-top: 10px;
  border-top: 1px solid var(--wire);
}

.val-card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.val-tiempo-pill {
  padding: 3px 8px;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.val-vacio {
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
  grid-column: 1 / -1;
}

.val-vacio-icon {
  font-size: 56px;
  margin-bottom: 16px;
  opacity: 0.3;
}

.val-table-wrap {
  grid-column: 1 / -1;
  width: 100%;
  overflow-x: auto;
  background: var(--steel);
  border: 1px solid var(--wire);
  border-radius: var(--r2);
}

.val-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.val-table thead {
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--wire);
}

.val-table th {
  padding: 12px 14px;
  text-align: left;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}

.val-table tbody tr {
  border-bottom: 1px solid rgba(28,35,51,.8);
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.val-table tbody tr:last-child {
  border-bottom: none;
}

.val-table tbody tr:hover {
  background: rgba(255,255,255,0.03);
}

.val-table td {
  padding: 14px;
  font-size: 13px;
  color: var(--soft);
  vertical-align: top;
}

.val-td-main {
  font-weight: 700;
  color: var(--bright);
}

.val-td-sub {
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}

.val-td-desc {
  max-width: 360px;
  color: var(--soft);
  line-height: 1.4;
}

.val-table-prio {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
}

/* ═══ Vista detalle ═══ */
#val-vista-detalle {
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 120px;
}

.val-detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--wire);
  gap: 20px;
}

.val-back-btn {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--wire);
  color: var(--soft);
  font-size: 13px;
  cursor: pointer;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 8px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.val-back-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(255, 213, 0, 0.08);
}

.val-detail-title {
  text-align: center;
  flex: 1;
}

.val-detail-eyebrow {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.val-detail-folio {
  font-size: 20px;
  color: var(--bright);
  font-weight: 700;
  line-height: 1.2;
}

.val-detail-equipo {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ─── Banner ─── */
.val-banner {
  background: rgba(255, 213, 0, 0.08);
  border: 1px solid rgba(255, 213, 0, 0.25);
  border-radius: var(--r2);
  padding: 18px 22px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.val-banner.completado {
  background: rgba(97, 196, 89, 0.08);
  border-color: rgba(97, 196, 89, 0.25);
}

.val-banner.rechazada {
  background: rgba(233, 69, 96, 0.08);
  border-color: rgba(233, 69, 96, 0.25);
}

.val-banner-icon {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
}

.val-banner-text { flex: 1; }

.val-banner-title {
  font-size: 16px;
  color: var(--bright);
  font-weight: 600;
  margin-bottom: 3px;
}

.val-banner-sub {
  font-size: 12px;
  color: var(--soft);
}

/* ─── Semáforo ─── */
.val-semaforo {
  border-radius: var(--r2);
  padding: 18px 22px;
  margin-bottom: 6px;
  border: 1px solid;
}

.val-semaforo-ok {
  background: rgba(97, 196, 89, 0.06);
  border-color: rgba(97, 196, 89, 0.25);
}

.val-semaforo-info {
  background: rgba(255, 213, 0, 0.06);
  border-color: rgba(255, 213, 0, 0.25);
}

.val-semaforo-warning {
  background: rgba(232, 131, 49, 0.08);
  border-color: rgba(232, 131, 49, 0.35);
}

.val-semaforo-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.val-semaforo-icon {
  font-size: 28px;
  line-height: 1;
}

.val-semaforo-ok .val-semaforo-icon { color: var(--jade); }
.val-semaforo-info .val-semaforo-icon { color: var(--gold); }
.val-semaforo-warning .val-semaforo-icon { color: #F5C0A0; }

.val-semaforo-titulo {
  font-size: 16px;
  color: var(--bright);
  font-weight: 700;
  margin-bottom: 2px;
}

.val-semaforo-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.val-semaforo-grupo {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
}

.val-semaforo-item {
  font-size: 12px;
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.val-semaforo-item.ok { color: var(--jade); }
.val-semaforo-item.warn { color: #F5C0A0; }

/* ─── Body: grid 2 cols en desktop ─── */
.val-detail-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 24px;
}

@media (min-width: 900px) {
  .val-detail-body {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .val-section.full-width,
  .val-semaforo.full-width {
    grid-column: 1 / -1;
  }
}

.val-section {
  background: var(--steel);
  border: 1px solid var(--wire);
  border-radius: var(--r2);
  padding: 18px;
}

.val-section-label {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

/* ─── Info del equipo ─── */
.val-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--wire);
}

.val-info-label {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.val-info-value {
  font-size: 12px;
  color: var(--soft);
  font-weight: 500;
}

/* ─── Stats grid ─── */
.val-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

.val-stat {
  padding: 16px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  text-align: center;
}

.val-stat-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}

.val-stat-value {
  font-size: 22px;
  color: var(--bright);
  font-weight: 700;
  font-family: 'Barlow Condensed', monospace;
  letter-spacing: 1px;
  line-height: 1;
}

.val-stat-sub {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}

.val-stat-sub.ok { color: var(--jade); }
.val-stat-sub.warn { color: #F5C0A0; }

/* ─── Fallas ─── */
.val-falla-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--wire);
}

.val-falla-row:last-child { border-bottom: none; padding-bottom: 0; }
.val-falla-row:first-child { padding-top: 0; }

.val-falla-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.val-falla-folio {
  font-size: 13px;
  color: var(--bright);
  font-weight: 600;
}

.val-falla-tiempo {
  font-size: 11px;
  color: var(--jade);
  font-family: 'Courier New', monospace;
}

.val-falla-desc {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.4;
  margin-bottom: 4px;
}

.val-falla-meta {
  font-size: 11px;
  color: var(--muted);
}

.val-falla-estado {
  color: var(--muted);
}

.val-falla-estado.ok {
  color: var(--jade);
  font-weight: 600;
}

/* ─── Notas ─── */
.val-notas-tecnico {
  padding: 14px;
  background: rgba(255, 213, 0, 0.04);
  border-left: 3px solid var(--gold);
  border-radius: 8px;
  font-size: 13px;
  color: var(--soft);
  line-height: 1.6;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.val-notas-tecnico.notas-cortas {
  font-size: 13px;
  padding: 12px;
}

.val-notas-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  text-align: right;
  font-style: italic;
}

/* ─── Pausas ─── */
.val-pausa-row {
  padding: 10px 12px;
  background: rgba(232, 131, 49, 0.05);
  border-left: 2px solid #E88331;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 12px;
}

.val-pausa-row:last-child { margin-bottom: 0; }

.val-pausa-row strong { color: #F5C0A0; }

.val-pausa-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

/* ─── Acciones del jefe — al final del contenido, NO sticky ─── */
.val-actions {
  display: flex;
  gap: 10px;
  padding: 20px 0 40px 0;
  justify-content: flex-end;
  flex-wrap: wrap;
  border-top: 1px solid var(--wire);
  margin-top: 24px;
}

@media (max-width: 768px) {
  .val-actions {
    justify-content: stretch;
  }
  .val-action-btn {
    flex: 1;
    min-width: 0 !important;
  }
}

.val-action-btn {
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s;
  min-width: 180px;
}

.val-action-btn:hover {
  transform: translateY(-1px);
}

.val-btn-reject {
  background: rgba(233, 69, 96, 0.1);
  border: 1px solid var(--crimson);
  color: var(--crimson);
}

.val-btn-reject:hover { background: rgba(233, 69, 96, 0.2); }

.val-btn-observe {
  background: rgba(255, 213, 0, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold);
}

.val-btn-observe:hover { background: rgba(255, 213, 0, 0.2); }

.val-btn-approve {
  background: var(--jade);
  color: #173404;
}

.val-btn-approve:hover { background: #7dd570; }

/* ─── Historial de pausas con scroll/collapse ─── */
.val-pausas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  padding: 4px 0 12px 0;
  user-select: none;
}

.val-pausas-toggle {
  background: transparent;
  border: 1px solid var(--wire);
  color: var(--soft);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.val-pausas-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.val-pausas-toggle-icon {
  font-size: 10px;
}

.val-pausas-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
  scroll-behavior: smooth;
}

/* Scrollbar personalizado desktop */
.val-pausas-list::-webkit-scrollbar {
  width: 6px;
}

.val-pausas-list::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.03);
  border-radius: 3px;
}

.val-pausas-list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
}

.val-pausas-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

/* Collapsed state: mobile colapsa full, desktop mantiene scroll limitado */
.val-pausas-list.collapsed {
  max-height: 0;
  overflow: hidden;
  padding-right: 0;
}

/* Mobile: por default colapsado cuando hay muchas */
@media (max-width: 768px) {
  .val-pausas-list {
    max-height: none; /* en mobile, si lo abres, se ve todo */
  }
}

/* ═══════════════════════════════════════════════════════
   HISTÓRICO TÉCNICO (Pantalla 4)
═══════════════════════════════════════════════════════ */

.tec-hist-filtros {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--wire);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tec-hist-filtros::-webkit-scrollbar {
  display: none;
}

.tec-hist-filtro-btn {
  flex-shrink: 0;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--wire);
  border-radius: 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s;
}

.tec-hist-filtro-btn:active {
  transform: scale(0.97);
}

.tec-hist-filtro-btn.active {
  background: rgba(255, 213, 0, 0.12);
  border-color: var(--gold);
  color: var(--gold);
}

.tec-hist-filtro-count {
  font-size: 10px;
  padding: 1px 7px;
  background: rgba(255,255,255,0.08);
  border-radius: 8px;
  font-weight: 700;
}

.tec-hist-filtro-btn.active .tec-hist-filtro-count {
  background: rgba(255, 213, 0, 0.2);
  color: var(--gold);
}

.tec-hist-lista {
  padding: 14px 16px;
  padding-bottom: 80px;
}

.tec-hist-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--wire);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: background 0.15s;
}

.tec-hist-card:active {
  background: rgba(255,255,255,0.05);
}

.tec-hist-card.estado-completado {
  border-left: 3px solid var(--jade);
}

.tec-hist-card.estado-por_validar {
  border-left: 3px solid var(--gold);
}

.tec-hist-card.estado-rechazada {
  border-left: 3px solid #E88331;
  background: rgba(232, 131, 49, 0.04);
}

/* ═══════════════════════════════════════════════════════
   OPERADOR HUB
═══════════════════════════════════════════════════════ */
.op-hub-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.op-hub-eyebrow{font-family:'Barlow Condensed',sans-serif;font-size:11px;letter-spacing:2px;color:var(--gold);text-transform:uppercase}
.op-hub-title-main{font-size:20px;font-weight:700;color:var(--white)}
.op-hub-grid{display:grid;gap:10px;grid-template-columns:1fr}
.op-hub-card{position:relative;overflow:hidden;background:
linear-gradient(180deg,rgba(21,34,54,.98),rgba(13,24,40,.98));
border:1px solid rgba(120,147,177,.18);border-radius:var(--r2);padding:12px;
box-shadow:inset 0 1px 0 rgba(255,255,255,.03),0 10px 24px rgba(0,0,0,.18)}
.op-hub-card::before{content:"";position:absolute;left:0;right:0;top:0;height:2px;background:linear-gradient(90deg,rgba(255,213,0,.95),rgba(255,213,0,.08))}
.op-hub-card::after{content:"";position:absolute;top:10px;right:-28px;width:88px;height:18px;transform:rotate(35deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.03),transparent);pointer-events:none}
.op-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:8px}
.op-hub-title{font-family:'Barlow Condensed',sans-serif;font-size:16px;font-weight:700;letter-spacing:.5px;color:var(--bright);margin-bottom:8px;text-transform:uppercase}
.op-hub-subtitle{font-size:11px;color:var(--muted);margin-bottom:6px}
.op-hub-kpi-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:8px}
.op-hub-kpi-label{font-size:10px;color:var(--muted);letter-spacing:1px;text-transform:uppercase}
.op-hub-kpi-num{font-size:21px;font-weight:700;color:var(--gold)}
.op-hub-line{font-size:12px;color:var(--soft);margin-bottom:6px}
.op-hub-chip-row{display:flex;flex-wrap:wrap;gap:6px}
.op-hub-chip{background:linear-gradient(180deg,rgba(255,213,0,.12),rgba(255,213,0,.05));border:1px solid rgba(255,213,0,.24);border-radius:999px;padding:4px 9px;font-size:11px;color:var(--gold);box-shadow:inset 0 1px 0 rgba(255,255,255,.06)}
.op-hub-empty{font-size:12px;color:var(--muted);font-style:italic}
.op-hub-actions{display:flex;flex-wrap:wrap;gap:8px}
.op-hub-actions .btn{flex:1;min-width:130px;min-height:42px;font-family:'Barlow Condensed',sans-serif;font-size:15px;letter-spacing:.5px;text-transform:uppercase}
.op-profile-head{display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:start;margin-bottom:8px}
.op-profile-head--hero{margin-top:12px}
.op-avatar-wrap{display:flex;flex-direction:column;align-items:center;gap:7px}
.op-avatar{width:88px;height:88px;border-radius:999px;object-fit:cover;border:2px solid rgba(255,213,0,.48);background:rgba(255,255,255,.04);box-shadow:0 0 0 4px rgba(255,213,0,.06),0 14px 24px rgba(0,0,0,.22)}
.op-avatar-empty{display:flex;align-items:center;justify-content:center;font-size:30px;color:var(--muted)}
.op-avatar-btn{font-size:11px;padding:6px 8px}
.op-avatar-edit{position:absolute;top:-4px;right:-2px;z-index:2;width:32px;height:32px;border-radius:999px;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#1b2740,#101827);border:1px solid rgba(255,255,255,.16);box-shadow:0 12px 24px rgba(0,0,0,.24);color:#f4f7fb;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.op-avatar-edit:hover{transform:translateY(-1px);border-color:rgba(255,213,0,.38);box-shadow:0 14px 28px rgba(0,0,0,.28)}
.op-avatar-edit svg{width:14px;height:14px;fill:currentColor}
.op-avatar-edit input{display:none}
.op-profile-progress-head{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--soft)}
.op-profile-progress-bar{height:10px;background:rgba(255,255,255,.06);border-radius:999px;overflow:hidden;margin-top:6px}
.op-profile-progress-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--gold),#ffe88a)}
.op-profile-checks{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px}
.op-profile-check{font-size:12px;padding:6px 8px;border-radius:8px;border:1px solid var(--wire);color:var(--muted)}
.op-profile-check.ok{color:var(--jade);border-color:rgba(79,212,154,.35);background:rgba(79,212,154,.07)}
.op-profile-check.pending{color:var(--muted)}
.op-doc-card{margin-top:10px}
.op-doc-form{display:grid;grid-template-columns:1fr;gap:8px;margin-bottom:8px}
.op-doc-drop{margin-top:6px}
.op-doc-preview{margin-top:8px}
.op-doc-preview img{width:100%;max-height:210px;object-fit:cover;border-radius:10px;border:1px solid var(--wire)}
.op-doc-pdf-preview{border:1px dashed rgba(255,213,0,.3);border-radius:10px;padding:14px;color:var(--gold);font-size:13px}
.op-doc-progress-wrap{display:flex;align-items:center;gap:8px;margin-top:8px}
.op-doc-progress-bar{height:8px;flex:1;background:rgba(255,255,255,.06);border-radius:999px;overflow:hidden}
.op-doc-progress-bar span{display:block;height:100%;width:0;background:linear-gradient(90deg,var(--gold),#ffe88a);transition:width .18s ease}
.op-doc-progress-label{font-size:11px;color:var(--muted);min-width:34px;text-align:right}
.op-doc-error{min-height:16px;color:var(--crimson);font-size:12px;margin-top:6px}
.op-doc-list{display:grid;gap:7px;margin-top:10px}
.op-doc-item{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px;border:1px solid var(--wire);border-radius:9px;background:rgba(255,255,255,.02)}
.op-doc-item.missing{border-style:dashed;background:rgba(255,255,255,.01)}
.op-doc-main{min-width:0}
.op-doc-title{font-size:12px;font-weight:700;color:var(--bright);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.op-doc-meta{font-size:11px;color:var(--muted)}
.op-doc-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.op-doc-badge{padding:3px 8px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.2px}
.op-doc-badge.ok{background:rgba(79,212,154,.12);color:var(--jade);border:1px solid rgba(79,212,154,.35)}
.op-doc-badge.warn{background:rgba(255,213,0,.11);color:var(--gold);border:1px solid rgba(255,213,0,.35)}
.op-doc-badge.late{background:rgba(192,48,64,.12);color:var(--crimson);border:1px solid rgba(192,48,64,.35)}
.op-home-hero{background:radial-gradient(circle at top right, rgba(255,213,0,.13), transparent 36%),linear-gradient(160deg, rgba(6,17,30,.95), rgba(18,32,52,.96));border-color:rgba(255,213,0,.18)}
.op-home-header{background:
radial-gradient(circle at top right, rgba(255,213,0,.16), transparent 28%),
linear-gradient(135deg,rgba(20,31,48,.98),rgba(9,17,29,.99))}
.op-home-header::before{height:3px;background:linear-gradient(90deg,#ffd500,rgba(255,213,0,.18))}
.op-home-header::after{content:"";position:absolute;left:14px;right:14px;bottom:10px;height:6px;border-radius:999px;background:repeating-linear-gradient(135deg,rgba(255,213,0,.22) 0 10px,transparent 10px 20px);opacity:.45}
.op-home-header-main{display:grid;gap:12px}
.op-home-header--pro{padding:18px}
.op-home-header--pro .op-home-header-main{gap:16px}
.op-home-identity-top{display:grid;grid-template-columns:110px 1fr;gap:16px;align-items:center}
.op-identity-badge{position:relative;width:96px;height:96px}
.op-identity-badge::after{content:"";position:absolute;inset:-8px;border-radius:999px;border:1px solid rgba(255,213,0,.12);pointer-events:none}
.op-identity-dot{position:absolute;right:4px;bottom:6px;width:14px;height:14px;border-radius:999px;background:#2adf9b;border:2px solid #101722;box-shadow:0 0 0 3px rgba(42,223,155,.14)}
.op-avatar--xl{width:96px;height:96px;font-size:36px;font-weight:800}
.op-home-profile{display:grid;grid-template-columns:96px 1fr;gap:12px;align-items:center}
.op-home-identity{min-width:0}
.op-home-greet{font-size:14px;color:var(--soft)}
.op-home-name{font-family:'Barlow Condensed',sans-serif;font-size:48px;line-height:.88;font-weight:800;letter-spacing:.6px;color:var(--white);text-transform:uppercase;max-width:440px}
.op-home-badges{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:8px}
.op-rank-badge{display:inline-flex;align-items:center;padding:6px 12px;border-radius:999px;background:rgba(255,213,0,.12);border:1px solid rgba(255,213,0,.32);font-family:'Barlow Condensed',sans-serif;font-size:18px;font-weight:700;color:var(--gold)}
.op-active-line{display:inline-flex;align-items:center;gap:6px;color:#46e2b0;font-weight:700;font-size:14px}
.op-active-line::before{content:"";width:8px;height:8px;border-radius:999px;background:#46e2b0;box-shadow:0 0 12px rgba(70,226,176,.3)}
.op-home-unit{margin-top:12px;font-size:13px;color:var(--muted)}
.op-home-hero-main{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.op-home-hero-copy{font-size:13px;color:var(--soft);margin-top:6px;max-width:520px;line-height:1.45}
.op-home-aspire{margin-top:6px;font-family:'Barlow Condensed',sans-serif;font-size:15px;letter-spacing:.4px;color:#ffe37a;text-transform:uppercase}
.op-home-status-wrap{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}
.op-status-pill{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:11px;font-weight:700;border:1px solid var(--wire);background:rgba(255,255,255,.03);white-space:nowrap}
.op-status-pill.ok{color:var(--jade);border-color:rgba(79,212,154,.35)}
.op-status-pill.warn{color:var(--gold);border-color:rgba(255,213,0,.35)}
.op-status-pill.alert{color:var(--ember);border-color:rgba(255,149,0,.35)}
.op-hero-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;width:100%}
.op-hero-meta-card{padding:10px;border-radius:12px;border:1px solid var(--wire);background:rgba(255,255,255,.025)}
.op-hero-meta-value{font-size:14px;color:var(--bright);font-weight:700;line-height:1.35;margin-top:4px}
.op-hero-mini-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.op-hero-mini-card{position:relative;padding:16px 14px 12px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(8,12,18,.92),rgba(10,14,22,.98))}
.op-hero-mini-card{box-shadow:0 10px 20px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.03)}
.op-hero-mini-card.tone-gold{border-color:rgba(255,213,0,.24)}
.op-hero-mini-card.tone-ember{border-color:rgba(255,120,40,.22)}
.op-hero-mini-card.tone-jade{border-color:rgba(79,212,154,.22)}
.op-mini-overline{font-size:11px;letter-spacing:1.6px;color:var(--muted);text-transform:uppercase}
.op-hero-mini-value{font-family:'Barlow Condensed',sans-serif;font-size:34px;line-height:.95;font-weight:800;color:var(--white);margin-top:10px}
.op-hero-mini-sub{font-size:12px;color:var(--soft);margin-top:8px}
.op-hub-actions--hero{margin-top:8px}
.op-summary-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}
.op-summary-grid--compact{margin-top:2px}
.op-summary-card{position:relative;overflow:hidden;padding:12px;border-radius:14px;border:1px solid var(--wire);background:
linear-gradient(180deg,rgba(19,33,53,.98),rgba(11,20,35,.98))}
.op-summary-card::before{content:"";position:absolute;left:12px;top:0;width:44px;height:3px;border-radius:0 0 4px 4px;background:rgba(255,213,0,.9)}
.op-summary-card::after{content:"";position:absolute;inset:auto 10px 10px auto;width:42px;height:42px;border:1px solid rgba(255,255,255,.04);border-radius:10px;opacity:.5}
.op-summary-card.tone-gold{border-color:rgba(255,213,0,.25)}
.op-summary-card.tone-crimson{border-color:rgba(192,48,64,.28)}
.op-summary-card.tone-jade{border-color:rgba(79,212,154,.28)}
.op-summary-card.tone-ice{border-color:rgba(72,176,232,.28)}
.op-summary-value{font-size:24px;font-weight:800;color:var(--bright);margin:6px 0 4px}
.op-summary-sub{font-size:12px;color:var(--muted);line-height:1.4}
.op-home-two-col{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}
.op-preview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:10px}
.op-mini-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border-radius:999px;font-size:10px;font-weight:700;color:#1b1400;border:1px solid rgba(255,213,0,.45);background:linear-gradient(180deg,#ffe37a,#ffcf00);box-shadow:inset 0 1px 0 rgba(255,255,255,.45)}
.op-inline-progress{display:flex;align-items:center;gap:10px;margin-top:8px}
.op-inline-progress-bar{height:8px;flex:1;background:rgba(255,255,255,.06);border-radius:999px;overflow:hidden}
.op-inline-progress-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--gold),#ffe88a)}
.op-inline-progress-text{font-size:12px;color:var(--bright);font-weight:700;white-space:nowrap}
.op-inline-note{margin-top:10px;font-size:12px;color:var(--soft);line-height:1.45}
.op-course-list{display:grid;gap:9px}
.op-course-row{padding:10px;border-radius:10px;border:1px solid rgba(120,147,177,.16);background:linear-gradient(180deg,rgba(255,255,255,.02),rgba(255,255,255,.01))}
.op-course-row.is-muted{opacity:.72}
.op-course-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.op-course-title{font-size:12px;font-weight:700;color:var(--bright)}
.op-course-hours{font-size:11px;color:var(--gold);font-weight:700;white-space:nowrap}
.op-course-bar{height:8px;background:rgba(255,255,255,.06);border-radius:999px;overflow:hidden;box-shadow:inset 0 1px 2px rgba(0,0,0,.2)}
.op-course-bar span{display:block;height:100%;background:linear-gradient(90deg,#ffd500,#ffea8d 60%,#fff1ba)}
.op-course-foot{font-size:11px;color:var(--muted);margin-top:5px}
.op-spotlight-card{padding:11px;border-radius:12px;border:1px solid rgba(255,149,0,.2);background:linear-gradient(180deg,rgba(255,149,0,.08),rgba(255,149,0,.03))}
.op-spotlight-title{font-size:14px;color:var(--bright);font-weight:700}
.op-spotlight-sub{font-size:12px;color:var(--soft);line-height:1.45;margin-top:5px}
.op-preview-card{opacity:.96;border-style:dashed}
.op-preview-card .op-inline-note{position:relative;padding-left:14px}
.op-preview-card .op-inline-note::before{content:"";position:absolute;left:0;top:7px;width:7px;height:7px;border-radius:999px;background:var(--gold);box-shadow:0 0 10px rgba(255,213,0,.25)}
.op-preview-tag{display:inline-flex;align-items:center;justify-content:center;padding:4px 9px;border-radius:999px;font-size:10px;font-weight:700;color:var(--gold);border:1px solid rgba(255,213,0,.24);background:rgba(255,213,0,.07)}
.op-showcase-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:12px}
.op-showcase-grid--top{margin-top:12px}
.op-install-card{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-top:12px;border-color:rgba(255,213,0,.28);background:linear-gradient(135deg,rgba(255,213,0,.12),rgba(16,21,30,.98) 42%)}
.op-install-copy{min-width:0}
.op-install-card .op-hub-title{margin-bottom:4px}
.op-install-actions{display:flex;gap:8px;flex-shrink:0}
.op-tier-card{margin-top:12px;padding:16px;border-color:rgba(255,213,0,.34);background:radial-gradient(circle at top right, rgba(255,213,0,.12), transparent 38%),linear-gradient(180deg,rgba(33,26,2,.94),rgba(10,11,14,.98))}
.op-tier-head{display:grid;grid-template-columns:88px 1fr auto;gap:14px;align-items:center}
.op-tier-mark{display:flex;flex-direction:column;align-items:center;justify-content:center;width:72px;height:72px;border-radius:16px;background:linear-gradient(180deg,#ffd500,#e8bb00);color:#1a1400;font-family:'Barlow Condensed',sans-serif;font-size:18px;font-weight:800;line-height:.9}
.op-tier-mark span{font-size:42px}
.op-tier-copy .op-hub-title{margin-bottom:4px}
.op-tier-name{font-family:'Barlow Condensed',sans-serif;font-size:40px;line-height:.9;font-weight:800;color:var(--white);text-transform:uppercase}
.op-tier-progress-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:14px;font-size:13px;color:var(--soft)}
.op-tier-progress-head strong{color:var(--gold)}
.op-tier-progress{margin-top:8px;height:10px;border-radius:999px;background:rgba(255,213,0,.1);overflow:hidden}
.op-tier-progress span{display:block;height:100%;background:linear-gradient(90deg,#ffd500,#ffea8d)}
.op-tier-req-title{margin-top:14px;font-family:'Barlow Condensed',sans-serif;font-size:16px;letter-spacing:2px;color:#b8a87a;text-transform:uppercase}
.op-tier-req-list{display:grid;gap:8px;margin-top:10px}
.op-tier-req{display:grid;grid-template-columns:24px 1fr auto;gap:8px;align-items:center;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.05)}
.op-tier-req:last-child{border-bottom:0}
.op-tier-req-icon{display:flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:999px;background:rgba(255,255,255,.06);font-weight:800}
.op-tier-req.ok .op-tier-req-icon{background:rgba(79,212,154,.14);color:var(--jade)}
.op-tier-req.pending .op-tier-req-icon{background:rgba(255,255,255,.06);color:var(--muted)}
.op-tier-req-label{font-size:14px;color:var(--bright)}
.op-tier-req-meta{font-size:13px;font-weight:700}
.op-tier-req.ok .op-tier-req-meta{color:var(--jade)}
.op-tier-req.pending .op-tier-req-meta{color:var(--gold)}
.op-performance-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.op-performance-card{padding:14px;border-radius:16px;border:1px solid rgba(255,255,255,.08);background:linear-gradient(180deg,rgba(9,12,18,.92),rgba(9,12,18,.98))}
.op-performance-card.tone-jade{border-color:rgba(79,212,154,.24)}
.op-performance-card.tone-amber{border-color:rgba(255,185,0,.24)}
.op-performance-card.tone-blue{border-color:rgba(74,150,255,.26)}
.op-performance-card.tone-rose{border-color:rgba(246,116,141,.2)}
.op-performance-value{font-family:'Barlow Condensed',sans-serif;font-size:46px;line-height:.9;font-weight:800;color:#fff}
.op-performance-label{margin-top:8px;font-size:14px;color:var(--soft)}
.op-performance-note{margin-top:4px;font-size:13px;color:#4fe49f}
.op-commit-list{display:grid;gap:10px}
.op-commit-card{display:grid;grid-template-columns:54px 1fr auto;gap:12px;align-items:center;padding:12px;border-radius:14px;border:1px solid rgba(255,255,255,.06);background:linear-gradient(180deg,rgba(11,13,18,.95),rgba(12,14,20,.99))}
.op-commit-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;border-radius:14px;background:rgba(255,213,0,.08);font-size:24px}
.op-commit-main{min-width:0}
.op-commit-title{font-size:15px;font-weight:700;color:#fff}
.op-commit-note{font-size:12px;color:var(--muted);margin-top:4px}
.op-commit-bar{margin-top:8px;height:5px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.op-commit-bar span{display:block;height:100%;background:linear-gradient(90deg,#ffd500,#ffea8d)}
.op-commit-card.blue .op-commit-bar span{background:linear-gradient(90deg,#5ab1ff,#7ec7ff)}
.op-commit-card.jade .op-commit-bar span{background:linear-gradient(90deg,#31d49b,#8ef0ca)}
.op-commit-badge{padding:6px 10px;border-radius:999px;border:1px solid rgba(255,213,0,.3);font-size:12px;font-weight:700;color:var(--gold)}
.op-doc-count{font-size:13px;font-weight:700;color:#43e2ab}
.op-doc-status-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;border:1px solid rgba(255,255,255,.06);border-radius:18px;overflow:hidden;background:linear-gradient(180deg,rgba(8,12,18,.88),rgba(8,12,18,.96))}
.op-doc-status-card{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:132px;padding:14px;border-right:1px solid rgba(255,255,255,.06);border-bottom:1px solid rgba(255,255,255,.06);text-align:center}
.op-doc-status-card:nth-child(2n){border-right:0}
.op-doc-status-card:nth-last-child(-n+2){border-bottom:0}
.op-doc-status-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;border-radius:14px;background:rgba(255,255,255,.05);font-size:20px;font-weight:800;color:var(--muted)}
.op-doc-status-card.ok .op-doc-status-icon{background:rgba(79,212,154,.12);color:var(--jade)}
.op-doc-status-title{margin-top:12px;font-size:14px;color:#d9e2ee}
.op-doc-status-state{margin-top:6px;font-size:14px;font-weight:700;color:var(--jade);text-transform:uppercase}
.op-doc-status-card.pending .op-doc-status-state{color:var(--gold)}
.op-course-highlight{display:flex;flex-direction:column;gap:4px;margin-top:12px;padding:14px 16px;border-radius:18px;background:linear-gradient(180deg,#ffd500,#e8ba00);color:#161000}
.op-course-highlight strong{font-family:'Barlow Condensed',sans-serif;font-size:28px;line-height:.95;text-transform:uppercase}
.op-course-highlight span{font-size:15px}
.op-home-header--pro,.op-tier-card,.op-install-card,.op-showcase-grid>.op-hub-card{box-shadow:0 18px 36px rgba(0,0,0,.16)}
.op-notif-list{display:grid;gap:7px;margin-top:4px}
.op-notif-item{border:1px solid var(--wire);border-radius:9px;padding:9px;background:rgba(255,255,255,.02)}
.op-notif-item.unread{border-color:rgba(255,213,0,.35);background:rgba(255,213,0,.05)}
.op-notif-title{font-size:12px;font-weight:700;color:var(--bright)}
.op-notif-msg{font-size:12px;color:var(--soft);margin-top:2px}
.op-notif-date{font-size:11px;color:var(--muted);margin-top:4px}
.op-hub-switch{display:inline-flex;align-items:center;gap:6px;margin-right:10px;font-size:12px;color:var(--soft)}
.op-hub-notif{padding:8px;border-radius:8px;border:1px solid var(--wire);font-size:12px;color:var(--soft);margin-bottom:6px;display:flex;justify-content:space-between;gap:8px}
.op-hub-notif.unread{border-color:rgba(255,213,0,.35);background:rgba(255,213,0,.06)}
.op-hub-notif span{font-size:11px;color:var(--muted)}
.op-hub-filters{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin-bottom:10px}
.op-hub-history-item{padding:9px;border-radius:8px;border:1px solid var(--wire);background:rgba(255,255,255,.02);margin-bottom:6px}

@media (min-width:768px){
  .op-hub-grid{grid-template-columns:1fr 1fr}
  .op-doc-form{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:1024px){
  .op-hub-grid{grid-template-columns:repeat(3,1fr)}
  .op-doc-form{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:320px){
  .op-hub-card{padding:10px}
  .op-doc-actions{flex-direction:column;align-items:flex-end}
  .op-profile-checks{grid-template-columns:1fr}
}
@media (max-width:767px){
  .page{padding:12px 12px 22px}
  .topbar{padding-left:12px;padding-right:12px}
  .page-label{font-size:12px;letter-spacing:2px}
  .page-title{font-size:16px}
  .tb-btn{width:36px;height:36px}
  .rh-demo-toolbar{width:100%;gap:8px}
  .rh-demo-filter{width:100%;justify-content:space-between}
  .rh-demo-filter-select{min-width:0;flex:1}
  .rh-demo-source-pill{width:100%;justify-content:space-between}
  .rh-demo-kpis{grid-template-columns:1fr}
  .rh-demo-bar-row{grid-template-columns:1fr;gap:7px}
  .rh-demo-bar-side{justify-items:start;min-width:0}
  .rh-demo-table-wrap{padding:11px}
  .rh-modal-actions--training{flex-direction:column-reverse;align-items:stretch}
  .rh-modal-actions--training .btn{width:100%}
  .op-hub-card{padding:13px 12px;border-radius:18px}
  .op-home-hero-main,.op-card-head,.op-inline-progress{flex-direction:column;align-items:flex-start}
  .op-home-status-wrap{justify-content:flex-start}
  .op-summary-grid,.op-home-two-col,.op-hero-meta,.op-preview-grid,.op-home-profile,.op-showcase-grid,.op-home-identity-top{grid-template-columns:1fr}
  .op-hub-kpi-row{grid-template-columns:1fr 1fr 1fr}
  .op-hub-title-main{font-size:18px}
  .op-profile-head{grid-template-columns:1fr;justify-items:center}
  .op-profile-progress{width:100%}
  .op-tier-head{grid-template-columns:1fr}
  .op-home-header--pro{padding:14px 14px 12px;border-radius:22px}
  .op-identity-badge{width:78px;height:78px}
  .op-avatar--xl{width:78px;height:78px;font-size:28px}
  .op-avatar-edit{width:28px;height:28px;top:-2px;right:-2px}
  .op-avatar-edit svg{width:12px;height:12px}
  .op-home-greet{font-size:13px;color:#d6dee7}
  .op-home-name{font-size:30px;max-width:none;letter-spacing:.3px}
  .op-rank-badge{font-size:15px;padding:5px 10px}
  .op-active-line{font-size:13px}
  .op-home-unit{margin-top:8px;font-size:12px}
  .op-home-aspire{font-size:12px;letter-spacing:.7px;color:#ffe58b}
  .op-hero-mini-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
    padding-top:2px;
    margin-top:2px;
  }
  .op-hero-mini-card{
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:12px 12px 11px;
    border-radius:16px;
    min-height:92px;
    background:linear-gradient(180deg,rgba(9,13,19,.98),rgba(13,18,28,.98));
  }
  .op-hero-mini-card:first-child{
    grid-column:1 / -1;
    min-height:88px;
    padding:12px 13px 10px;
  }
  .op-hero-mini-card:first-child .op-hero-mini-value{
    font-size:22px;
    line-height:.95;
    margin-top:8px;
  }
  .op-hero-mini-card:not(:first-child) .op-hero-mini-value{
    font-size:28px;
    line-height:.95;
    margin-top:8px;
  }
  .op-hero-mini-sub{font-size:11px;margin-top:4px;line-height:1.25}
  .op-tier-card{padding:15px 13px;border-radius:20px}
  .op-tier-mark{width:64px;height:64px;border-radius:14px;font-size:16px}
  .op-tier-mark span{font-size:34px}
  .op-tier-name{font-size:30px;letter-spacing:.3px}
  .op-tier-progress-head{font-size:12px;align-items:flex-start;flex-direction:column}
  .op-tier-req{
    grid-template-columns:22px 1fr;
    gap:8px;
    padding:10px 0;
  }
  .op-tier-req-meta{grid-column:2;font-size:12px}
  .op-showcase-grid{gap:10px;margin-top:10px}
  .op-showcase-grid--top{margin-top:10px}
  .op-card-head{gap:6px;margin-bottom:10px}
  .op-card-head .op-hub-title{margin-bottom:2px}
  .op-card-head .op-hub-subtitle{font-size:11px;color:#8ea0b3}
  .op-performance-grid{gap:9px;grid-template-columns:repeat(2,minmax(0,1fr))}
  .op-performance-card{
    padding:13px 12px;
    border-radius:16px;
    min-height:138px;
    background:linear-gradient(180deg,rgba(9,12,18,.98),rgba(12,16,24,.98));
  }
  .op-performance-value{font-size:38px}
  .op-performance-label{font-size:13px;line-height:1.25}
  .op-performance-note{font-size:12px;line-height:1.3}
  .op-commit-card{grid-template-columns:44px 1fr}
  .op-commit-card{padding:11px 10px;border-radius:16px}
  .op-commit-icon{width:40px;height:40px;border-radius:12px;font-size:21px}
  .op-commit-title{font-size:14px}
  .op-commit-note{font-size:11px}
  .op-doc-status-grid{border-radius:16px}
  .op-doc-status-card{min-height:108px;padding:12px}
  .op-doc-status-title,.op-doc-status-state{font-size:12px}
  .op-doc-status-icon{width:38px;height:38px;font-size:18px}
  .op-course-row{padding:10px 9px;border-radius:14px}
  .op-course-head{align-items:flex-start;flex-direction:column;gap:4px}
  .op-course-hours{font-size:12px}
  .op-course-highlight{
    padding:14px 14px 13px;
    border-radius:18px;
    box-shadow:0 12px 22px rgba(255,213,0,.14);
  }
  .op-course-highlight strong{font-size:22px}
  .op-course-highlight span{font-size:13px}
  .op-install-card{padding:14px 13px;border-radius:18px}
  .op-block-actions{background:linear-gradient(180deg,rgba(17,25,39,.98),rgba(10,16,25,.98))}
  .op-block-fallas{background:linear-gradient(180deg,rgba(20,23,30,.98),rgba(12,16,23,.98))}
  .op-hub-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:10px;
  }
  .op-hub-actions .btn{
    min-height:46px;
    font-size:14px;
    border-radius:14px;
    justify-content:center;
    box-shadow:0 10px 18px rgba(0,0,0,.14);
  }
  .op-hub-actions .btn:nth-child(-n+2){grid-column:1 / -1}
  .op-spotlight-card{padding:13px 12px;border-radius:16px}
  .op-preview-tag,.op-doc-count{font-size:11px}
  .op-block-tier .op-preview-tag,
  .op-block-performance .op-preview-tag,
  .op-block-commitments .op-preview-tag,
  .op-block-courses .op-preview-tag{opacity:.78}
  .op-block-actions .op-card-head .op-hub-subtitle,
  .op-block-fallas .op-card-head .op-hub-subtitle,
  .op-block-docs .op-card-head .op-hub-subtitle{display:none}
  .op-block-tier .op-hub-subtitle{line-height:1.35}
  .op-block-docs .op-card-head,
  .op-block-courses .op-card-head,
  .op-block-performance .op-card-head,
  .op-block-commitments .op-card-head{margin-bottom:12px}
  .op-commit-badge{justify-self:start}
  .op-install-card,.op-install-actions{flex-direction:column;align-items:flex-start}
  .op-install-actions{width:100%}
  .op-install-actions .btn{width:100%}
}

.tec-hist-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 6px;
}

.tec-hist-folio {
  font-size: 14px;
  color: var(--bright);
  font-weight: 600;
}

.tec-hist-badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.tec-hist-badge.completado {
  background: rgba(97, 196, 89, 0.15);
  color: var(--jade);
}

.tec-hist-badge.por_validar {
  background: rgba(255, 213, 0, 0.15);
  color: var(--gold);
}

.tec-hist-badge.rechazada {
  background: rgba(232, 131, 49, 0.15);
  color: #F5C0A0;
}

.tec-hist-card-titulo {
  font-size: 12px;
  color: var(--soft);
  margin-bottom: 8px;
  line-height: 1.4;
}

.tec-hist-card-meta {
  display: flex;
  gap: 12px;
  font-size: 10px;
  color: var(--muted);
  flex-wrap: wrap;
}

.tec-hist-card-meta span {
  display: flex;
  align-items: center;
  gap: 3px;
}

.tec-hist-card-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--wire);
  font-size: 11px;
  color: var(--muted);
}

.tec-hist-rechazo-motivo {
  margin-top: 8px;
  padding: 8px 10px;
  background: rgba(232, 131, 49, 0.08);
  border-left: 2px solid #E88331;
  border-radius: 6px;
  font-size: 11px;
  color: #F5C0A0;
  font-style: italic;
  line-height: 1.4;
}

.tec-hist-vacio {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 13px;
}

.tec-hist-vacio-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.tec-hist-cargar-mas {
  text-align: center;
  padding: 20px;
}

.tec-hist-cargar-btn {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--wire);
  border-radius: 20px;
  color: var(--soft);
  font-size: 12px;
  cursor: pointer;
}

.tec-exec-ia-disclaimer {
  font-size: 10px;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.3px;
  display: inline-block;
  margin-top: 2px;
}

/* Mejoras visuales para el análisis IA completo */

.tec-exec-ia-empty {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  padding: 6px 0;
}

.tec-exec-ia-field.resumen {
  background: rgba(120, 99, 218, 0.08);
  border-radius: 6px;
  padding: 10px 12px;
  border-left: 2px solid #8E7DE8;
}

.tec-exec-ia-field.piezas {
  background: rgba(255, 213, 0, 0.04);
  border-radius: 6px;
  padding: 10px 12px;
  border-left: 2px solid var(--gold);
}

.tec-exec-ia-field.pruebas {
  background: rgba(97, 196, 89, 0.06);
  border-radius: 6px;
  padding: 10px 12px;
  border-left: 2px solid var(--jade);
}

.tec-exec-ia-field.piezas .tec-exec-ia-label {
  color: var(--gold);
}

.tec-exec-ia-field.pruebas .tec-exec-ia-label {
  color: var(--jade);
}

.tec-exec-ia-list {
  margin: 4px 0 0 0;
  padding-left: 18px;
  list-style: none;
}

.tec-exec-ia-list li {
  position: relative;
  margin-bottom: 4px;
  padding-left: 4px;
  font-size: 12px;
  color: var(--soft);
  line-height: 1.45;
}

.tec-exec-ia-list li::before {
  content: "•";
  position: absolute;
  left: -12px;
  color: var(--muted);
  font-weight: bold;
}

.tec-exec-ia-field.pruebas .tec-exec-ia-list li::before {
  content: "✓";
  color: var(--jade);
}

.tec-exec-ia-field.warning .tec-exec-ia-list li::before {
  content: "⚠";
  color: #E88331;
}

.tec-exec-ia-ol {
  margin: 6px 0 0 22px;
  padding: 0;
  list-style-type: decimal;
  color: var(--muted);
}

.tec-exec-ia-ol li {
  margin-bottom: 6px;
  padding-left: 4px;
  font-size: 12px;
  color: var(--soft);
  line-height: 1.5;
}

.tec-exec-ia-ol li::marker {
  color: var(--gold);
  font-weight: 700;
}

.tec-exec-ia-footer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--wire);
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.tec-exec-ia-footer strong {
  color: var(--bright);
}

/* ═══════════════════════════════════════════════════════
   MODALES CUSTOM DEL TÉCNICO
═══════════════════════════════════════════════════════ */

.tec-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  padding-top: 40px;
  padding-bottom: 40px;
  overflow-y: auto;
  animation: tec-modal-fadein 0.15s ease-out;
}

@keyframes tec-modal-fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}

.tec-modal {
  background: #111826;
  border: 1px solid #263042;
  border-radius: 14px;
  padding: 24px 20px;
  max-width: 380px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  animation: tec-modal-slideup 0.2s ease-out;
  -webkit-overflow-scrolling: touch;
}

.tec-modal::-webkit-scrollbar {
  width: 4px;
}

.tec-modal::-webkit-scrollbar-thumb {
  background: #263042;
  border-radius: 2px;
}

/* Ajuste específico para modal de pausa (contenido largo en móvil) */
.tec-modal.tec-modal-pausa {
  max-height: calc(100dvh - 24px);
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
}

.tec-modal-pausa-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
}

.tec-modal-actions.tec-modal-actions-sticky {
  position: sticky;
  bottom: 0;
  padding-top: 10px;
  border-top: 1px solid var(--wire);
  background: #111826;
  margin-top: 10px !important;
}

@keyframes tec-modal-slideup {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.tec-modal-icon {
  font-size: 36px;
  text-align: center;
  margin-bottom: 10px;
}

.tec-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--bright);
  text-align: center;
  margin-bottom: 6px;
}

.tec-modal-subtitle {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-bottom: 18px;
  line-height: 1.5;
}

.tec-modal-box {
  background: rgba(255, 213, 0, 0.06);
  border-left: 3px solid var(--gold);
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--soft);
  line-height: 1.5;
}

.tec-modal-box.success {
  background: rgba(97, 196, 89, 0.06);
  border-left-color: var(--jade);
}

.tec-modal-box.warning {
  background: rgba(232, 131, 49, 0.06);
  border-left-color: #E88331;
}

.tec-modal-tiempo {
  font-size: 24px;
  font-weight: 600;
  color: var(--bright);
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  text-align: center;
  margin: 8px 0;
}

.tec-modal-actions {
  display: flex;
  gap: 10px;
}

.tec-modal-btn {
  flex: 1;
  padding: 14px;
  border-radius: 10px;
  border: none;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.tec-modal-btn.cancel {
  background: transparent;
  border: 1px solid var(--wire);
  color: var(--soft);
}

.tec-modal-btn.cancel:active {
  background: rgba(255,255,255,0.04);
}

.tec-modal-btn.primary {
  background: var(--gold);
  color: #111;
}

.tec-modal-btn.success {
  background: var(--jade);
  color: #173404;
}

.tec-modal-btn.warning {
  background: #E88331;
  color: #3D1F08;
}

.tec-modal-btn.danger {
  background: var(--crimson);
  color: #fff;
}

@media (max-width: 520px) {
  .tec-modal-overlay {
    padding: 10px;
    padding-top: max(12px, env(safe-area-inset-top));
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }
  .tec-modal {
    max-height: calc(100dvh - 20px);
  }
  .tec-pausa-motivos {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* Estados de pausada en cards de fallas */
.tec-exec-falla-card.pausada {
  background: rgba(232, 131, 49, 0.06);
  border: 1px solid rgba(232, 131, 49, 0.25);
  border-left: 3px solid #E88331;
}

.tec-exec-falla-card.pausada .tec-exec-falla-meta {
  color: #F5C0A0;
}

/* Botón reanudar */
.tec-exec-falla-btn.reanudar {
  background: #E88331;
  color: #3D1F08;
}

/* ═══════════════════════════════════════════════════════
   PANTALLA 3 — Cierre de OT
═══════════════════════════════════════════════════════ */

.tec-cierre-banner {
  padding: 20px 16px;
  text-align: center;
  background: rgba(97, 196, 89, 0.08);
  border-bottom: 1px solid rgba(97, 196, 89, 0.2);
}

.tec-cierre-banner-icon {
  font-size: 42px;
  color: var(--jade);
  margin-bottom: 4px;
  line-height: 1;
}

.tec-cierre-banner-title {
  font-size: 17px;
  color: var(--bright);
  font-weight: 600;
  margin-bottom: 4px;
}

.tec-cierre-banner-sub {
  font-size: 12px;
  color: var(--soft);
}

.tec-cierre-section {
  padding: 16px;
  border-bottom: 1px solid var(--wire);
}

.tec-cierre-label {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}

.tec-cierre-required {
  color: var(--crimson);
  margin-left: 3px;
}

.tec-cierre-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.tec-cierre-stat {
  padding: 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
}

.tec-cierre-stat-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
  letter-spacing: 0.5px;
}

.tec-cierre-stat-value {
  font-size: 20px;
  color: var(--bright);
  font-weight: 600;
  font-family: 'Courier New', monospace;
  line-height: 1.1;
}

.tec-cierre-stat-value.tec-cierre-stat-green {
  color: var(--jade);
  font-family: var(--font-sans, inherit);
}

.tec-cierre-stat-sub {
  font-size: 10px;
  color: var(--gold);
  margin-top: 4px;
}

.tec-cierre-stat-sub.over {
  color: #F5C0A0;
}

.tec-cierre-stat-sub.under {
  color: var(--jade);
}

.tec-cierre-fallas-label {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.tec-cierre-falla-item {
  padding: 10px 12px;
  background: rgba(97, 196, 89, 0.06);
  border-left: 3px solid var(--jade);
  border-radius: 6px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.tec-cierre-falla-info {
  flex: 1;
  min-width: 0;
}

.tec-cierre-falla-titulo {
  font-size: 12px;
  color: var(--bright);
  font-weight: 500;
  line-height: 1.3;
}

.tec-cierre-falla-meta {
  font-size: 10px;
  color: var(--jade);
  margin-top: 3px;
}

.tec-cierre-falla-check {
  color: var(--jade);
  font-size: 14px;
  flex-shrink: 0;
}

.tec-cierre-textarea {
  width: 100%;
  min-height: 100px;
  padding: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--wire);
  border-radius: 10px;
  color: var(--bright);
  /* 16px evita auto-zoom en iOS al enfocar campos */
  font-size: 16px;
  font-family: var(--font-sans, inherit);
  line-height: 1.5;
  resize: none;
  box-sizing: border-box;
}

.tec-cierre-textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(255,255,255,0.06);
}

.tec-cierre-hint {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  font-style: italic;
}

.tec-cierre-hint.ok {
  color: var(--jade);
  font-style: normal;
}

.tec-cierre-hint.warn {
  color: #F5C0A0;
  font-style: normal;
}

.tec-cierre-estado-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.tec-cierre-estado-btn {
  padding: 14px 10px;
  background: transparent;
  border: 1px solid var(--wire);
  border-radius: 12px;
  color: var(--soft);
  font-size: 12px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transition: all 0.15s;
}

.tec-cierre-estado-btn:active {
  transform: scale(0.98);
}

.tec-cierre-estado-btn.selected {
  background: rgba(97, 196, 89, 0.12);
  border-color: var(--jade);
  color: var(--jade);
}

.tec-cierre-estado-btn.selected[data-estado="seguimiento"] {
  background: rgba(232, 131, 49, 0.12);
  border-color: #E88331;
  color: #F5C0A0;
}

.tec-cierre-estado-icon {
  font-size: 20px;
  line-height: 1;
}

.tec-cierre-estado-txt {
  font-weight: 600;
  font-size: 13px;
}

.tec-cierre-estado-sub {
  font-size: 10px;
  color: var(--muted);
}

.tec-cierre-estado-btn.selected .tec-cierre-estado-sub {
  color: inherit;
  opacity: 0.8;
}

.tec-cierre-firma {
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--wire);
}

.tec-cierre-firma-row {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.tec-cierre-firma-row input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--jade);
  flex-shrink: 0;
  cursor: pointer;
}

.tec-cierre-firma-text {
  flex: 1;
}

.tec-cierre-firma-confirm {
  font-size: 12px;
  color: var(--bright);
  line-height: 1.4;
}

.tec-cierre-firma-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}

.tec-cierre-enviar {
  padding: 16px;
  background: rgba(97, 196, 89, 0.05);
  border-top: 1px solid rgba(97, 196, 89, 0.15);
}

.tec-cierre-enviar-btn {
  width: 100%;
  padding: 15px;
  background: var(--jade);
  border: none;
  border-radius: 12px;
  color: #173404;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tec-cierre-enviar-btn:disabled {
  background: rgba(97, 196, 89, 0.2);
  color: rgba(97, 196, 89, 0.5);
  cursor: not-allowed;
}

.tec-cierre-enviar-btn:not(:disabled):active {
  transform: scale(0.99);
}

.tec-cierre-enviar-hint {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

.tec-cierre-enviar-hint.ok {
  color: var(--jade);
  font-style: normal;
}

/* ═══════════════════════════════════════════════════════
   MODAL DE PAUSA CON MOTIVO
═══════════════════════════════════════════════════════ */

.tec-pausa-motivos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}

.tec-pausa-motivo-btn {
  padding: 12px 8px;
  background: transparent;
  border: 1px solid var(--wire);
  border-radius: 10px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  text-align: center;
  line-height: 1.3;
  transition: all 0.15s;
}

.tec-pausa-motivo-btn:active {
  transform: scale(0.97);
}

.tec-pausa-motivo-btn.selected {
  background: rgba(232, 131, 49, 0.15);
  border-color: #E88331;
  color: #F5C0A0;
}

.tec-pausa-motivo-icon {
  display: block;
  font-size: 20px;
  margin-bottom: 4px;
  line-height: 1;
}

.tec-pausa-detalle {
  width: 100%;
  min-height: 60px;
  padding: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--wire);
  border-radius: 8px;
  color: var(--bright);
  font-size: 12px;
  font-family: inherit;
  line-height: 1.4;
  resize: vertical;
  box-sizing: border-box;
  margin-top: 8px;
}

.tec-pausa-detalle:focus {
  outline: none;
  border-color: var(--gold);
}

/* ═══════════════════════════════════════════════════════
   HISTORIAL DE PAUSAS (visible en Pantalla 2 y detalle OT)
═══════════════════════════════════════════════════════ */

.tec-pausas-section {
  padding: 16px;
  border-bottom: 1px solid var(--wire);
}

.tec-pausas-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  cursor: pointer;
}

.tec-pausas-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.tec-pausas-count {
  font-size: 10px;
  color: #F5C0A0;
  background: rgba(232, 131, 49, 0.12);
  padding: 3px 8px;
  border-radius: 8px;
  font-weight: 600;
}

.tec-pausa-item {
  padding: 10px 12px;
  background: rgba(232, 131, 49, 0.04);
  border-left: 3px solid #E88331;
  border-radius: 6px;
  margin-bottom: 6px;
}

.tec-pausa-item.abierta {
  background: rgba(232, 131, 49, 0.08);
  animation: tec-pausa-pulse 2s ease-in-out infinite;
}

@keyframes tec-pausa-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.tec-pausa-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.tec-pausa-info {
  flex: 1;
  min-width: 0;
}

.tec-pausa-motivo {
  font-size: 12px;
  color: var(--bright);
  font-weight: 600;
  margin-bottom: 3px;
}

.tec-pausa-meta {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 3px;
}

.tec-pausa-detalle-txt {
  font-size: 11px;
  color: var(--soft);
  font-style: italic;
  margin-top: 4px;
  padding-left: 8px;
  border-left: 2px solid var(--wire);
}

.tec-pausa-duracion {
  font-size: 11px;
  color: #F5C0A0;
  font-weight: 600;
  font-family: 'Courier New', monospace;
  flex-shrink: 0;
  text-align: right;
}

.tec-pausa-duracion.abierta {
  color: #E88331;
}

/* ═══════════════════════════════════════════════════════
   EXPANSIÓN DE CARD DE FALLA (tec)
═══════════════════════════════════════════════════════ */

.tec-exec-falla-card {
  cursor: pointer;
}

.tec-exec-falla-top {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tec-exec-falla-body {
  flex: 1;
  min-width: 0;
}

.tec-exec-falla-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.tec-exec-falla-chevron {
  color: var(--muted);
  font-size: 11px;
  flex-shrink: 0;
  transition: transform 0.2s;
  padding: 2px 4px;
}

.tec-exec-falla-expanded {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--wire);
  cursor: default;
  animation: tec-exp-fadein 0.2s ease-out;
}

@keyframes tec-exp-fadein {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.tec-exec-falla-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.tec-exec-badge {
  font-size: 9px;
  padding: 3px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--wire);
  border-radius: 8px;
  color: var(--soft);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-weight: 600;
}

.tec-exec-badge.severidad-critica {
  background: rgba(233, 69, 96, 0.12);
  border-color: rgba(233, 69, 96, 0.3);
  color: #FFB3C1;
}

.tec-exec-badge.severidad-alta {
  background: rgba(232, 131, 49, 0.12);
  border-color: rgba(232, 131, 49, 0.3);
  color: #F5C0A0;
}

.tec-exec-badge.severidad-media {
  background: rgba(255, 213, 0, 0.08);
  border-color: rgba(255, 213, 0, 0.2);
  color: var(--gold);
}

.tec-exec-badge.severidad-baja {
  background: rgba(97, 196, 89, 0.08);
  border-color: rgba(97, 196, 89, 0.25);
  color: var(--jade);
}

.tec-exec-falla-block {
  background: rgba(255,255,255,0.02);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 8px;
}

.tec-exec-falla-block.ia {
  background: rgba(120, 99, 218, 0.06);
  border-left: 3px solid #8E7DE8;
}

.tec-exec-falla-block.accion {
  background: rgba(97, 196, 89, 0.06);
  border-left: 3px solid var(--jade);
}

.tec-exec-falla-block-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 6px;
}

.tec-exec-falla-block.ia .tec-exec-falla-block-label {
  color: #A99BE8;
}

.tec-exec-falla-block.accion .tec-exec-falla-block-label {
  color: var(--jade);
}

.tec-exec-falla-block-content {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.5;
}

.tec-exec-ia-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tec-exec-ia-field {
  padding-left: 0;
}

.tec-exec-ia-field.warning {
  background: rgba(232, 131, 49, 0.06);
  border-radius: 6px;
  padding: 8px 10px;
  border-left: 2px solid #E88331;
}

.tec-exec-ia-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--bright);
  margin-bottom: 4px;
  letter-spacing: 0.3px;
}

.tec-exec-ia-field.warning .tec-exec-ia-label {
  color: #F5C0A0;
}

.tec-exec-ia-value {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.5;
}

.tec-exec-ia-value strong {
  color: var(--bright);
  font-weight: 600;
}

.tec-exec-falla-actions {
  margin-top: 10px;
}

/* Evitar que el click en el contenido expandido cierre la card */
.tec-exec-falla-expanded * {
  cursor: default;
}

.tec-exec-falla-doc-block {
  margin-top: 10px;
  border: 1px solid rgba(48,64,78,.78);
  border-radius: 12px;
  background: rgba(10,17,26,.72);
  overflow: hidden;
}

.tec-exec-falla-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid rgba(48,64,78,.65);
  background: rgba(14,21,32,.84);
}

.tec-exec-falla-doc-title {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #eef3f8;
}

.tec-exec-falla-doc-subtitle {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #8a98a6;
}

.tec-exec-falla-doc-status {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(138,152,166,.18);
  background: rgba(138,152,166,.08);
  color: #9fb0bf;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tec-exec-falla-doc-status.has-data {
  color: #ffe78a;
  background: rgba(255,213,0,.12);
  border-color: rgba(255,213,0,.24);
}

.tec-exec-falla-doc-composer {
  padding: 12px;
}

.tec-exec-falla-doc-textarea {
  width: 100%;
  min-height: 86px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #30404e;
  background: rgba(15,24,36,.94);
  color: #eef3f8;
  font-size: 16px;
  line-height: 1.45;
  resize: vertical;
  box-sizing: border-box;
}

.tec-exec-falla-doc-textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px rgba(255,213,0,.16);
}

.tec-exec-falla-doc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.tec-exec-falla-doc-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  min-width: 0;
  flex: 1;
}

.tec-exec-falla-doc-select {
  min-width: 180px;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid #30404e;
  background: #131b26;
  color: #eef3f8;
  font-size: 13px;
  appearance: none;
  color-scheme: dark;
}

.tec-exec-falla-doc-select:focus {
  outline: none;
  border-color: var(--gold);
}

.tec-exec-falla-doc-select option {
  background: #131b26;
  color: #eef3f8;
}

.tec-exec-falla-doc-ai-btn,
.tec-exec-falla-doc-save {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(48,64,78,.9);
  background: rgba(255,255,255,.04);
  color: #eef3f8;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.tec-exec-falla-doc-ai-btn {
  color: #b7a7ff;
  border-color: rgba(108,92,231,.34);
  background: rgba(108,92,231,.12);
}

.tec-exec-falla-doc-save {
  color: #ffe78a;
  border-color: rgba(255,213,0,.24);
  background: rgba(255,213,0,.08);
}

.tec-exec-falla-doc-ai-btn:disabled,
.tec-exec-falla-doc-save:disabled {
  opacity: .55;
  cursor: wait;
}

.tec-exec-falla-doc-meta {
  font-size: 11px;
  color: #7f8d9b;
  line-height: 1.35;
}

.tec-exec-falla-history-shell {
  border-top: 1px solid rgba(48,64,78,.65);
  background: rgba(8,14,22,.5);
}

.tec-exec-falla-history-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(48,64,78,.65);
  background: rgba(14,21,32,.78);
}

.tec-exec-falla-history-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #eef3f8;
}

.tec-exec-falla-history-caption {
  font-size: 11px;
  color: #8a98a6;
}

.tec-exec-falla-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 240px;
  overflow: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(95,124,150,.55) rgba(12,19,29,.22);
}

.tec-exec-falla-history-item {
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(48,64,78,.7);
  background: rgba(10,17,26,.78);
}

.tec-exec-falla-history-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.tec-exec-falla-history-type {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(138,152,166,.18);
  background: rgba(138,152,166,.08);
  color: #c4cfd8;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.tec-exec-falla-history-type.is-diagnostico {
  color: #8fd3ff;
  background: rgba(72,176,232,.12);
  border-color: rgba(72,176,232,.26);
}

.tec-exec-falla-history-type.is-prueba {
  color: #ffe78a;
  background: rgba(255,213,0,.12);
  border-color: rgba(255,213,0,.24);
}

.tec-exec-falla-history-type.is-solucion {
  color: #7fe0b4;
  background: rgba(46,171,111,.12);
  border-color: rgba(46,171,111,.26);
}

.tec-exec-falla-history-type.is-seguimiento {
  color: #c7b5ff;
  background: rgba(108,92,231,.14);
  border-color: rgba(108,92,231,.24);
}

.tec-exec-falla-history-meta {
  font-size: 11px;
  color: #8a98a6;
  line-height: 1.35;
  text-align: right;
}

.tec-exec-falla-history-copy {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #eef3f8;
  white-space: pre-wrap;
}

.tec-exec-falla-history-empty {
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px dashed rgba(48,64,78,.76);
  background: rgba(10,17,26,.42);
  color: #8a98a6;
  font-size: 12px;
}

.tec-exec-falla-history-list::-webkit-scrollbar {
  width: 10px;
}

.tec-exec-falla-history-list::-webkit-scrollbar-track {
  background: rgba(12,19,29,.24);
  border-radius: 999px;
}

.tec-exec-falla-history-list::-webkit-scrollbar-thumb {
  background: rgba(95,124,150,.55);
  border-radius: 999px;
  border: 2px solid rgba(12,19,29,.24);
}

@media (max-width: 640px) {
  .tec-exec-falla-doc-head,
  .tec-exec-falla-doc-toolbar,
  .tec-exec-falla-history-head,
  .tec-exec-falla-history-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .tec-exec-falla-doc-select,
  .tec-exec-falla-doc-ai-btn,
  .tec-exec-falla-doc-save {
    width: 100%;
  }

  .tec-exec-falla-history-meta {
    text-align: left;
  }
}

/* Header con logo de marca para Pantalla 1 técnico */
.tec-header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--wire);
  background: linear-gradient(to bottom, rgba(255,213,0,.03), transparent);
}

.tec-header-logo {
  height: 38px;
  width: auto;
  border-radius: 4px;
  flex-shrink: 0;
}

.tec-header-brand-text {
  flex: 1;
  min-width: 0;
}

.tec-header-brand-name {
  font-size: 14px;
  color: var(--bright);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tec-header-brand-sub {
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 500;
}

/* Ajustar el header del saludo para que fluya con el de marca */
.tec-header-brand + .tec-header {
  padding-top: 14px;
  border-top: none;
}

/* Logo chico en header de Pantalla 2 */
.tec-exec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.tec-exec-header-logo {
  height: 24px;
  width: auto;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════
   PANTALLA 2 — Ejecución de OT (Técnico)
═══════════════════════════════════════════════════════ */

/* Header */
.tec-exec-header {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--wire);
  background: var(--pit);
  position: relative;
  z-index: 2;
}

.tec-exec-back {
  background: transparent;
  border: none;
  color: var(--ice);
  font-size: 14px;
  padding: 10px 12px;
  min-height: 40px;
  min-width: 96px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  z-index: 3;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.tec-exec-back:active {
  color: #B5D4F4;
  background: rgba(72, 176, 232, 0.1);
}

.tec-exec-title {
  flex: 1;
  text-align: center;
  pointer-events: none;
}

.tec-exec-eyebrow {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tec-exec-folio {
  font-size: 14px;
  color: var(--bright);
  font-weight: 600;
}

/* Contexto equipo */
.tec-exec-contexto {
  padding: 14px 16px;
  border-bottom: 1px solid var(--wire);
}

.tec-exec-contexto.critica {
  background: rgba(192, 48, 64, 0.08);
}

.tec-exec-contexto.alta {
  background: rgba(232, 131, 49, 0.08);
}

.tec-exec-contexto-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.tec-exec-contexto-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.tec-exec-equipo {
  font-size: 15px;
  color: var(--bright);
  font-weight: 600;
}

.tec-exec-prio-pill {
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
  text-transform: capitalize;
}

.tec-exec-prio-pill.critica {
  background: rgba(192, 48, 64, 0.2);
  color: #F7C1C1;
}

.tec-exec-prio-pill.alta {
  background: rgba(232, 131, 49, 0.22);
  color: #F5C0A0;
}

.tec-exec-prio-pill.media {
  background: rgba(255, 213, 0, 0.15);
  color: #FAC775;
}

.tec-exec-prio-pill.baja {
  background: rgba(97, 196, 89, 0.15);
  color: #C0DD97;
}

.tec-exec-desc {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.45;
}

/* Cronómetro */
.tec-exec-crono-box {
  padding: 20px 16px;
  text-align: center;
  border-bottom: 1px solid var(--wire);
  background: var(--pit);
}

.tec-exec-crono-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tec-exec-crono {
  font-size: 38px;
  color: var(--bright);
  font-weight: 600;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
  margin-bottom: 8px;
  line-height: 1;
}

.tec-exec-crono-activa {
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}

.tec-exec-crono-btn {
  width: 100%;
  max-width: 360px;
  padding: 16px;
  background: var(--crimson);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
}

.tec-exec-crono-btn:active {
  transform: scale(0.98);
}

.tec-exec-crono-btn.pausado {
  background: var(--jade);
  color: #173404;
}

/* Secciones */
.tec-exec-section {
  padding: 16px;
  border-bottom: 1px solid var(--wire);
}

.tec-exec-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tec-exec-section-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.tec-exec-section-badge {
  font-size: 10px;
  color: var(--gold);
  background: rgba(255, 213, 0, 0.15);
  padding: 3px 10px;
  border-radius: 8px;
  font-weight: 600;
}

/* Fallas cards */
.tec-exec-falla-card {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  border: 1px solid var(--wire);
  background: rgba(255, 255, 255, 0.02);
}

.tec-exec-falla-card.en-curso {
  background: rgba(255, 213, 0, 0.07);
  border: 1px solid rgba(255, 213, 0, 0.3);
  border-left: 3px solid var(--gold);
}

.tec-exec-falla-card.completada {
  background: rgba(97, 196, 89, 0.08);
  border: 1px solid rgba(97, 196, 89, 0.25);
}

.tec-exec-falla-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tec-exec-falla-dot {
  font-size: 14px;
  flex-shrink: 0;
}

.tec-exec-falla-info {
  flex: 1;
  min-width: 0;
}

.tec-exec-falla-titulo {
  font-size: 13px;
  color: var(--bright);
  font-weight: 500;
  line-height: 1.3;
}

.tec-exec-falla-card.completada .tec-exec-falla-titulo {
  text-decoration: line-through;
  color: var(--muted);
}

.tec-exec-falla-meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}

.tec-exec-falla-card.completada .tec-exec-falla-meta {
  color: var(--jade);
}

.tec-exec-falla-btn {
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

.tec-exec-falla-btn.iniciar {
  background: var(--ice);
  color: #042C53;
}

.tec-exec-falla-btn.terminar {
  background: var(--jade);
  color: #173404;
}

.tec-exec-ver-ia-btn {
  width: 100%;
  margin-top: 8px;
  padding: 8px;
  background: rgba(72, 176, 232, 0.1);
  border: 1px solid rgba(72, 176, 232, 0.25);
  border-radius: 8px;
  color: var(--ice);
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
}

/* Checklist */
.tec-exec-progreso-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 2px;
  margin-bottom: 12px;
  overflow: hidden;
}

.tec-exec-progreso-fill {
  height: 100%;
  background: var(--jade);
  border-radius: 2px;
  width: 0%;
  transition: width 0.25s ease;
}

.tec-exec-tarea {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s;
}

.tec-exec-tarea:active {
  transform: scale(0.99);
}

.tec-exec-tarea.completada {
  background: rgba(97, 196, 89, 0.05);
}

.tec-exec-tarea.activa {
  background: rgba(72, 176, 232, 0.06);
  border: 1px solid rgba(72, 176, 232, 0.2);
}

.tec-exec-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 2px solid var(--wire);
  background: transparent;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: transparent;
}

.tec-exec-tarea.completada .tec-exec-check {
  background: var(--jade);
  border-color: var(--jade);
  color: #173404;
}

.tec-exec-tarea-texto {
  flex: 1;
  min-width: 0;
}

.tec-exec-tarea-titulo {
  font-size: 13px;
  color: var(--bright);
  line-height: 1.35;
}

.tec-exec-tarea.completada .tec-exec-tarea-titulo {
  text-decoration: line-through;
  color: var(--muted);
}

.tec-exec-tarea-falla-badge {
  font-size: 9px;
  color: var(--gold);
  margin-top: 3px;
}

/* Acciones rápidas */
.tec-exec-acciones {
  padding: 12px 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  border-bottom: 1px solid var(--wire);
}

.tec-exec-accion-btn {
  padding: 14px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--wire);
  border-radius: 10px;
  color: var(--soft);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.tec-exec-accion-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.tec-exec-accion-btn.tec-exec-accion-alerta {
  background: rgba(192, 48, 64, 0.08);
  border-color: rgba(192, 48, 64, 0.3);
  color: #F09595;
}

/* Terminar OT */
.tec-exec-terminar {
  padding: 16px;
  background: rgba(97, 196, 89, 0.04);
  border-top: 1px solid rgba(97, 196, 89, 0.15);
}

.tec-exec-terminar-btn {
  width: 100%;
  padding: 14px;
  background: var(--jade);
  border: none;
  border-radius: 12px;
  color: #173404;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.tec-exec-terminar-btn:disabled {
  background: rgba(97, 196, 89, 0.15);
  color: rgba(97, 196, 89, 0.5);
  cursor: not-allowed;
}

.tec-exec-terminar-btn:not(:disabled):active {
  transform: scale(0.99);
}

.tec-exec-terminar-hint {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* Responsive */
@media (max-width: 380px) {
  .tec-exec-crono { font-size: 32px; }
  .tec-exec-contexto,
  .tec-exec-section { padding: 14px; }
}

/* ═══════════════════════════════════════════════════════
   VISTA TÉCNICO (SPA)
═══════════════════════════════════════════════════════ */

.tecnico-app {
  position: fixed;
  inset: 0;
  background: var(--pit);
  z-index: 90;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--font-sans);
}

.tec-pantalla {
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 24px;
  min-height: 100vh;
}

/* ─── Header personal ─── */
.tec-header {
  padding: 20px 18px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--wire);
}

.tec-greet {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 2px;
}

.tec-name {
  font-size: 22px;
  color: var(--bright);
  font-weight: 600;
  letter-spacing: -0.3px;
}

.tec-role {
  font-size: 11px;
  color: var(--gold);
  margin-top: 3px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.tec-menu-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--wire);
  color: var(--soft);
  font-size: 15px;
  cursor: pointer;
  transition: background 0.15s;
}

.tec-menu-btn:active {
  background: var(--plate);
}

/* ─── Stats ─── */
.tec-stats {
  padding: 14px 18px;
  background: rgba(97, 196, 89, 0.04);
  border-bottom: 1px solid rgba(97, 196, 89, 0.15);
}

.tec-stats-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.tec-stats-title {
  font-size: 10px;
  color: var(--jade);
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.tec-stats-period {
  font-size: 11px;
  color: var(--muted);
}

.tec-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.tec-stat {
  text-align: left;
}

.tec-stat-value {
  font-size: 23px;
  color: var(--bright);
  font-weight: 600;
  line-height: 1;
}

.tec-stat-value.tec-stat-green { color: var(--jade); }
.tec-stat-value.tec-stat-gold { color: var(--gold); }

.tec-stat-sub {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  margin-left: 2px;
}

.tec-stat-label {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.3px;
}

/* ─── Banner notificación ─── */
.tec-notif-banner {
  margin: 12px 18px;
  padding: 12px 14px;
  background: rgba(255, 213, 0, 0.06);
  border: 1px solid rgba(255, 213, 0, 0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tec-notif-icon { font-size: 20px; }

.tec-notif-content { flex: 1; }

.tec-notif-title {
  font-size: 13px;
  color: var(--bright);
  font-weight: 500;
}

.tec-notif-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

/* ─── Secciones ─── */
.tec-section {
  padding: 18px 18px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.tec-section:first-of-type {
  border-top: none;
}

.tec-section-label {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 700;
}

.tec-section-label-gold {
  color: var(--gold);
}

.tec-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.tec-section-count {
  font-size: 11px;
  color: var(--muted);
}

/* ─── Cards de OT ─── */
.tec-ot-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--wire);
  background: transparent;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.15s;
}

.tec-ot-card:active {
  transform: scale(0.99);
}

.tec-ot-card.tec-ot-encurso {
  background: rgba(255, 213, 0, 0.07);
  border: 1px solid rgba(255, 213, 0, 0.3);
  border-left: 3px solid var(--gold);
  margin-bottom: 8px;
}

.tec-ot-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 6px;
  gap: 8px;
}

.tec-ot-folio {
  font-size: 15px;
  color: var(--bright);
  font-weight: 600;
}

.tec-ot-equipo {
  font-size: 11px;
  color: var(--soft);
  margin-top: 2px;
}

.tec-ot-prio-pill {
  padding: 4px 9px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tec-ot-prio-critica {
  background: rgba(192, 48, 64, 0.25);
  color: #F7C1C1;
}
.tec-ot-prio-alta {
  background: rgba(232, 131, 49, 0.22);
  color: #F5C0A0;
}
.tec-ot-prio-media {
  background: rgba(255, 213, 0, 0.15);
  color: #FAC775;
}
.tec-ot-prio-baja {
  background: rgba(97, 196, 89, 0.15);
  color: #C0DD97;
}

.tec-ot-desc {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.4;
  margin: 8px 0 10px;
}

.tec-ot-venc {
  font-size: 10px;
  color: var(--crimson);
  background: rgba(192, 48, 64, 0.15);
  padding: 3px 7px;
  border-radius: 7px;
  font-weight: 600;
  letter-spacing: 0.4px;
}

.tec-ot-venc-normal {
  color: var(--muted);
  background: transparent;
  padding: 0;
  font-weight: 400;
  font-style: italic;
}

.tec-ot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tec-ot-encurso-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tec-ot-cronometro {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.tec-ot-progreso-fallas {
  font-size: 10px;
  color: var(--muted);
}

.tec-ot-btn {
  padding: 9px 14px;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.tec-ot-btn-continuar {
  background: var(--gold);
  color: #412402;
}

.tec-ot-btn-iniciar {
  background: var(--ice);
  color: #042C53;
  width: 100%;
  padding: 11px;
  margin-top: 8px;
}

.tec-ot-tiempo-est {
  font-size: 10px;
  color: var(--muted);
}

/* ─── Footer ─── */
.tec-footer-stats {
  padding: 20px 18px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

.tec-footer-dot {
  margin: 0 6px;
  color: var(--wire);
}

.tec-footer-link {
  color: var(--ice);
  cursor: pointer;
  font-weight: 500;
}

.tec-footer-link:active {
  color: #B5D4F4;
}

/* ─── Estado vacío ─── */
.tec-empty {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
}

/* ─── Mobile ─── */
@media (max-width: 380px) {
  .tec-header { padding: 16px 14px 12px; }
  .tec-section { padding: 16px 14px 8px; }
  .tec-stats { padding: 12px 14px; }
  .tec-stat-value { font-size: 20px; }
}

/* Badge de estado ejecucion en detalle OT */
.ot-falla-estado-badge {
  font-size: 9px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 8px;
  border: 1px solid;
  background: rgba(255, 255, 255, 0.03);
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Badge NUEVA (falla descubierta durante ejecucion) */
.ot-falla-badge-descubierta {
  font-size: 9px;
  font-weight: 700;
  color: var(--ice);
  background: rgba(72, 176, 232, 0.15);
  padding: 3px 7px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
  animation: pulseBadge 2s ease-in-out infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* En detalle, la card debe tener ancho completo */
#otd-fallas-list .ot-falla-card {
  margin-bottom: 8px;
}

#otd-fallas-list .ot-falla-card-row {
  grid-template-columns: 22px 1fr auto auto auto !important;
}

@media (max-width: 520px) {
  #otd-fallas-list .ot-falla-card-row {
    grid-template-columns: 22px 1fr auto !important;
  }
}

/* Botón "Hacer principal" ⭐ */
.ot-falla-star {
  background: transparent;
  border: 1px solid var(--wire);
  color: var(--gold);
  cursor: pointer;
  font-size: 12px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.ot-falla-star:hover {
  background: rgba(255, 213, 0, 0.15);
  border-color: var(--gold);
  transform: scale(1.1);
}

/* Aumentar columnas para acomodar botón ⭐ */
.ot-falla-card-row {
  grid-template-columns: 22px 1fr auto auto auto !important;
}

/* Principal solo tiene badge + ✕ (no ⭐) */
.ot-falla-card.ot-falla-principal .ot-falla-card-row {
  grid-template-columns: 22px 1fr auto auto !important;
}

.ot-tarea-num {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: rgba(255, 213, 0, 0.12);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}

.ot-tarea-num.ot-tarea-num-custom {
  background: rgba(72, 176, 232, 0.12);
  color: var(--ice);
}

.ot-tarea-texto {
  flex: 1;
  font-size: 13px;
  color: var(--bright);
  line-height: 1.4;
}

.ot-tarea-del {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.ot-tarea-del:hover {
  background: rgba(192, 48, 64, 0.1);
  color: var(--crimson);
}

.ot-tarea-add {
  display: flex;
  gap: 8px;
}

.ot-tarea-add input {
  flex: 1;
}

.ot-tarea-ai-btn {
  white-space: nowrap;
  min-width: 82px;
}

.ot-tareas-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  font-style: italic;
}

/* FOOTER STICKY */
.ot-footer-sticky {
  position: sticky;
  bottom: 0;
  background: var(--steel);
  border-top: 1px solid var(--wire);
  padding: 14px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  z-index: 10;
}

.ot-footer-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

/* Mobile footer */
@media (max-width: 640px) {
  .ot-footer-sticky {
    flex-direction: column;
    gap: 8px;
  }

  .ot-footer-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ot-footer-sticky .btn-ghost {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════
   SELECTOR MÚLTIPLE DE FALLAS EN OT
═══════════════════════════════════════════════════════ */

/* Badge contador */
.ot-fallas-badge {
  font-size: 11.5px;
  color: var(--muted);
  background: transparent;
  padding: 0;
  border-radius: 0;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
}

/* Contenedor de fallas seleccionadas */
.ot-fallas-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 10px;
  min-height: 0;
}

.ot-fallas-vacio {
  padding: 14px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* Card individual de falla */
.ot-falla-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.15s;
}

.ot-falla-card:last-child {
  border-bottom: none;
}

.ot-falla-card.ot-falla-principal {
  background: rgba(192, 48, 64, 0.06);
  border: 1px solid rgba(192, 48, 64, 0.2);
  border-left: 3px solid var(--crimson);
  border-radius: var(--r);
  margin-bottom: 4px;
}

.ot-falla-card-icon {
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.ot-falla-card-info {
  flex: 1;
  min-width: 0;
}

.ot-falla-card-folio {
  font-size: 13px;
  font-weight: 600;
  color: var(--bright);
  line-height: 1.3;
}

.ot-falla-card-meta {
  font-size: 11px;
  color: var(--soft);
  margin-top: 2px;
}

.ot-falla-principal .ot-falla-card-folio {
  color: #FFB4B4;
}

.ot-falla-principal .ot-falla-card-meta {
  color: #F09595;
}

/* Badge "PRINCIPAL" */
.ot-falla-badge-principal {
  font-size: 9px;
  color: var(--gold);
  background: rgba(255, 213, 0, 0.18);
  padding: 2px 6px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}

/* Botón quitar */
.ot-falla-del {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.15s;
  flex-shrink: 0;
}

.ot-falla-del:hover {
  background: rgba(192, 48, 64, 0.1);
  color: var(--crimson);
}

/* Texto de ayuda */
.ot-fallas-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  font-style: italic;
  line-height: 1.4;
}

.ot-create-card .ot-fallas-box {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 10px;
}

.ot-create-card .ot-fallas-vacio {
  padding: 16px 14px;
}

.ot-create-card .ot-tareas-list {
  background: rgba(15,22,33,.55);
  border-color: rgba(255,255,255,.06);
  border-radius: 12px;
}

.ot-create-card .media-uploader {
  background: rgba(15,22,33,.35);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  padding: 10px;
}

/* ═══════════════════════════════════════════════════════
   CARDS EXPANDIBLES DE FALLAS EN OT
═══════════════════════════════════════════════════════ */

.ot-falla-card {
  display: block !important;
  padding: 0 !important;
  overflow: hidden;
}

.ot-falla-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
}

.ot-falla-card.ot-falla-expandida {
  background: rgba(255, 213, 0, 0.03);
}

.ot-falla-card.ot-falla-principal.ot-falla-expandida {
  background: rgba(192, 48, 64, 0.08);
}

/* Botón expandir */
.ot-falla-expand {
  background: transparent;
  border: 1px solid var(--wire);
  color: var(--gold);
  cursor: pointer;
  font-size: 11px;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  transition: all 0.15s;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.ot-falla-expand:hover {
  background: rgba(255, 213, 0, 0.15);
  border-color: var(--gold);
}

/* Panel expandido */
.ot-falla-ia-panel {
  padding: 0 12px 14px;
  border-top: 1px dashed rgba(255, 213, 0, 0.2);
  margin-top: 2px;
  animation: slideDownIA 0.2s ease-out;
}

@keyframes slideDownIA {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.ot-falla-ia-block {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--wire);
  border-radius: var(--r);
}

.ot-falla-ia-block-warn {
  background: rgba(192, 48, 64, 0.05);
  border-color: rgba(192, 48, 64, 0.2);
  border-left: 3px solid var(--crimson);
}

.ot-falla-ia-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ot-falla-ia-block-warn .ot-falla-ia-label {
  color: var(--crimson);
}

.ot-falla-ia-text {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.55;
  white-space: pre-wrap;
}

.ot-falla-ia-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--soft);
  line-height: 1.6;
}

.ot-falla-ia-list li {
  margin-bottom: 3px;
}

.ot-falla-ia-empty {
  padding: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

/* ═══════════════════════════════════════════════════════
   CARDS DE FALLAS - FIX DE LAYOUT
═══════════════════════════════════════════════════════ */

/* Card contenedora */
.ot-falla-card {
  display: block !important;
  padding: 0 !important;
  overflow: visible;
  margin-bottom: 8px;
  border: 1px solid var(--wire);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.01);
  transition: all 0.15s;
}

.ot-falla-card:last-child {
  margin-bottom: 0;
}

.ot-falla-card:hover {
  border-color: rgba(255, 213, 0, 0.2);
}

/* Card principal destacada */
.ot-falla-card.ot-falla-principal {
  background: rgba(192, 48, 64, 0.06);
  border: 1px solid rgba(192, 48, 64, 0.25);
  border-left: 3px solid var(--crimson);
}

.ot-falla-card.ot-falla-expandida {
  background: rgba(255, 213, 0, 0.04);
  border-color: rgba(255, 213, 0, 0.3);
}

.ot-falla-card.ot-falla-principal.ot-falla-expandida {
  background: rgba(192, 48, 64, 0.09);
}

/* Fila principal: ícono + info + controles */
.ot-falla-card-row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  min-height: 52px;
}

/* Ícono de severidad */
.ot-falla-card-icon {
  font-size: 16px;
  line-height: 1;
  width: 22px;
  text-align: center;
}

/* Info: folio + meta */
.ot-falla-card-info {
  min-width: 0;
  overflow: hidden;
}

.ot-falla-card-folio {
  font-size: 13px;
  font-weight: 600;
  color: var(--bright);
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ot-falla-card-meta {
  font-size: 11px;
  color: var(--soft);
  margin-top: 3px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ot-falla-principal .ot-falla-card-folio {
  color: #FFB4B4;
}

.ot-falla-principal .ot-falla-card-meta {
  color: #F5959A;
}

/* Botón expandir ▼ */
.ot-falla-expand {
  background: transparent;
  border: 1px solid var(--wire);
  color: var(--gold);
  cursor: pointer;
  font-size: 10px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.ot-falla-expand:hover {
  background: rgba(255, 213, 0, 0.15);
  border-color: var(--gold);
  transform: scale(1.05);
}

/* Badge PRINCIPAL */
.ot-falla-badge-principal {
  font-size: 9px;
  color: var(--gold);
  background: rgba(255, 213, 0, 0.2);
  padding: 4px 8px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Botón quitar ✕ */
.ot-falla-del {
  background: transparent;
  border: 1px solid var(--wire);
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
}

.ot-falla-del:hover {
  background: rgba(192, 48, 64, 0.15);
  border-color: var(--crimson);
  color: var(--crimson);
}

/* Panel expandido */
.ot-falla-ia-panel {
  padding: 0 14px 14px 44px;
  animation: slideDownIA 0.2s ease-out;
}

@keyframes slideDownIA {
  from { opacity: 0; max-height: 0; }
  to { opacity: 1; max-height: 1000px; }
}

.ot-falla-ia-block {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--wire);
  border-radius: var(--r);
}

.ot-falla-ia-block-warn {
  background: rgba(192, 48, 64, 0.05);
  border-color: rgba(192, 48, 64, 0.2);
  border-left: 3px solid var(--crimson);
}

.ot-falla-ia-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.ot-falla-ia-block-warn .ot-falla-ia-label {
  color: var(--crimson);
}

.ot-falla-ia-text {
  font-size: 12px;
  color: var(--soft);
  line-height: 1.55;
  white-space: pre-wrap;
}

.ot-falla-ia-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--soft);
  line-height: 1.6;
}

.ot-falla-ia-list li {
  margin-bottom: 4px;
}

.ot-falla-ia-empty {
  padding: 14px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* Contenedor de cards */
.ot-fallas-box {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin-bottom: 10px;
  min-height: 0;
}

.ot-fallas-vacio {
  padding: 14px;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* Responsive para móvil */
@media (max-width: 520px) {
  .ot-falla-card-row {
    grid-template-columns: 22px 1fr auto;
    gap: 8px;
    padding: 10px;
  }

  /* En móvil, el ícono de expandir pasa debajo */
  .ot-falla-card-row .ot-falla-expand {
    grid-column: 1 / -1;
    width: 100%;
    height: 24px;
    margin-top: 4px;
  }

  .ot-falla-card-folio {
    white-space: normal;
    line-height: 1.4;
  }

  .ot-falla-card-meta {
    white-space: normal;
    line-height: 1.4;
  }

  .ot-falla-ia-panel {
    padding: 0 10px 12px 10px;
  }
}

/* Badge del folio de falla origen en cada tarea */
.ot-tarea-origen {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--gold);
  background: rgba(255, 213, 0, 0.12);
  padding: 3px 7px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.ot-tarea-ia {
  background: rgba(255, 213, 0, 0.02);
}

.ot-tarea-custom {
  background: rgba(72, 176, 232, 0.02);
}

.ot-tarea-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ot-tarea-item:last-child {
  border-bottom: none;
}
/* OT detail task composer runtime fix:
   keep this override at the end of the stylesheet because an older
   OT detail polish block is not consistently reaching CSSOM in runtime. */
#otd-tarea-composer.otd-task-composer {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
  width: 100%;
  margin-top: 10px;
  padding-top: 8px;
}

#otd-tarea-composer .otd-task-input-wrap {
  min-width: 0;
  width: 100%;
}

#otd-tarea-composer #otd-tarea-input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 6px 0;
}

#otd-tarea-composer .otd-task-actions-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  width: 100%;
  margin-top: 6px;
  text-align: right;
}

#otd-tarea-composer .otd-task-actions {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  max-width: 100%;
  text-align: right;
}

#otd-tarea-composer .btn {
  min-height: 42px;
  width: auto;
  white-space: nowrap;
  justify-content: center;
  padding-inline: 18px;
}

/* OT detail V4 shell override */
#otDetailVeil {
  position: fixed;
  top: 60px;
  left: 280px;
  right: 0;
  bottom: 0;
  z-index: 75 !important;
  padding: 10px 12px 12px;
  background: rgba(4,5,8,.74);
  backdrop-filter: blur(4px);
  align-items: stretch;
  justify-content: stretch;
}

.ot-page-detail-host {
  width: 100%;
  min-width: 0;
  flex: 1 1 auto;
  min-height: 0;
  min-height: calc(100vh - 92px);
  height: 100%;
  display: flex;
  overflow: hidden;
}

.ot-page-detail-host > #otDetailVeil {
  flex: 1 1 auto;
  min-height: 0;
}

#page-ot.page.active {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  transform: none !important;
  padding: 8px 10px 8px;
}

.ot-page-detail-view {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0;
  height: 100%;
  min-height: 0;
  min-height: calc(100vh - 76px);
}

.ot-page-detail-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 2px;
}

#page-ot.page.active .ot-page-detail-head {
  display: none;
}

#otDetailVeil.ot-detail-inline {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: auto !important;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
  flex: 1 1 auto;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

#otDetailVeil.ot-detail-inline.open {
  display: flex;
  animation: none;
}

#otDetailVeil .sheet-handle {
  display: none;
}

#otDetailVeil .otd-modal-shell {
  width: 100%;
  max-width: none;
  height: calc(100vh - 82px);
  min-height: 640px;
  max-height: none !important;
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  border: 1px solid rgba(48,64,78,.96);
  background:
    linear-gradient(180deg, rgba(18,26,38,.98) 0%, rgba(14,20,30,.98) 100%);
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}

#otDetailVeil.ot-detail-inline .otd-modal-shell {
  width: 100%;
  max-width: none;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
}

#otDetailVeil.ot-detail-inline .ot-detail-foot {
  position: relative;
  bottom: auto;
}

#otDetailVeil .otd-body-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  flex: 1 1 0;
  width: 100%;
  gap: 12px;
  align-items: start;
  min-height: 0;
  height: auto;
  overflow: visible;
}

#otDetailVeil .otd-body-main {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: visible;
}

#otDetailVeil .otd-alert {
  flex-shrink: 0;
  gap: 10px;
  padding: 8px 14px;
  background: linear-gradient(180deg, rgba(197,32,52,.12), rgba(197,32,52,.08));
  border-bottom: 1px solid rgba(229,72,77,.32);
  color: #f4a3a8;
  font-size: 11.5px;
  line-height: 1.2;
}

#otDetailVeil .otd-alert-ico {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #e5484d;
  color: #e5484d;
  font-size: 11px;
  font-weight: 700;
}

#otDetailVeil .otd-top {
  padding: 8px 12px 6px !important;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

#otDetailVeil .otd-top-main {
  min-width: 0;
}

#otDetailVeil .otd-top-pills {
  gap: 5px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

#otDetailVeil .otd-top-folio {
  font-size: 10.5px;
  letter-spacing: .03em;
}

#otDetailVeil .otd-top-pills .spill {
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: .65px;
}

#otDetailVeil .otd-top-pills .s-dot {
  width: 6px;
  height: 6px;
}

#otDetailVeil .otd-top-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
}

#otDetailVeil .otd-top-subtitle {
  margin-top: 2px;
  font-size: 10.5px;
  line-height: 1.2;
}

#otDetailVeil .otd-top-close {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 8px;
  margin-left: 0;
  align-self: start;
}

#otDetailVeil .otd-hero-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
  padding: 4px 12px 0;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
}

#otDetailVeil .otd-hero-stat {
  background: linear-gradient(180deg, rgba(19,27,38,.98), rgba(16,23,33,.98));
  padding: 6px 9px;
  border: 1px solid rgba(38,48,66,.88);
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}

#otDetailVeil .otd-hero-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .9px;
  text-transform: uppercase;
  color: #8a98a6;
  margin-bottom: 2px;
}

#otDetailVeil .otd-hero-value {
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  color: #f5f7fc;
}

#otDetailVeil .otd-hero-value-compact {
  font-size: 11.5px;
  line-height: 1.1;
}

#otDetailVeil .otd-hero-value-gold {
  color: #ffd500;
}

#otDetailVeil .otd-hero-sub {
  margin-top: 2px;
  font-size: 9px;
  color: #8a98a6;
}

#otDetailVeil .otd-tabbar {
  gap: 12px;
  padding: 8px 16px 0;
  border-bottom: 1px solid rgba(38,48,66,.92);
  background: linear-gradient(180deg, rgba(15,21,31,.08), rgba(15,21,31,0));
}

#otDetailVeil .otd-tab-btn {
  gap: 6px;
  min-height: 0;
  padding: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #8a98a6;
}

#otDetailVeil .otd-tab-btn.is-active {
  color: #ffd500;
  font-weight: 700;
  border-bottom: 2px solid #ffd500;
}

#otDetailVeil .otd-tab-badge {
  min-width: 0;
  height: auto;
  padding: 1px 6px;
  border-radius: 100px;
  font-size: 10px;
  font-weight: 700;
  background: #232d3d;
  color: #8a98a6;
}

#otDetailVeil .otd-tab-btn.is-active .otd-tab-badge {
  background: rgba(255,213,0,.16);
  color: #ffd500;
}

#otDetailVeil .otd-body {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 12px 16px 16px;
  scrollbar-gutter: stable;
}

#otDetailVeil .otd-tab-panel {
  min-height: auto;
}

#otDetailVeil .otd-tab-panel[hidden] {
  display: none !important;
}

#otDetailVeil .otd-tab-panel:not([hidden]) {
  display: block;
  width: 100%;
  min-width: 0;
}

#otDetailVeil .otd-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 12px;
  align-items: flex-start;
  width: 100%;
}

#otDetailVeil .otd-primary {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
}

#otDetailVeil .otd-control-col {
  flex: 0 0 272px;
  width: 272px;
  min-width: 0;
  min-height: 0;
  height: auto;
  max-height: none;
  overflow: visible;
  position: sticky;
  top: 0;
  align-self: start;
}

#otDetailVeil .otd-control-panel {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

#otDetailVeil #otd-tab-panel-progreso .otd-primary {
  padding-bottom: 24px;
}

#otDetailVeil #otd-tab-panel-progreso .otd-workspace {
  grid-template-columns: 1fr;
}

#otDetailVeil #otd-tab-panel-progreso .otd-falla-filter-row {
  flex-wrap: wrap;
}

#otDetailVeil #otd-tab-panel-progreso #otd-tareas-sec {
  margin-bottom: 24px;
}

#otDetailVeil #otd-manual-time-wrap,
#otDetailVeil .otd-secondary-zone {
  display: none !important;
}

#otDetailVeil .otd-panel,
#otDetailVeil .otd-section,
#otDetailVeil .otd-support-card,
#otDetailVeil .otd-progress-card,
#otDetailVeil .otd-timer-shell,
#otDetailVeil .otd-control-meta,
#otDetailVeil .otd-manual-time-wrap {
  background: linear-gradient(180deg, rgba(19,27,38,.98), rgba(16,24,35,.98));
  border: 1px solid rgba(38,48,66,.88);
  border-radius: 12px;
}

#otDetailVeil .otd-panel,
#otDetailVeil .otd-section {
  padding: 12px 14px;
  margin-bottom: 0;
}

#otDetailVeil .otd-summary-card {
  padding: 0;
  overflow: hidden;
}

#otDetailVeil #otd-desc {
  display: none;
  padding: 14px 15px 0;
}

#otDetailVeil .otd-summary-desc-card {
  border: 1px solid #263042;
  border-radius: 11px;
  background: #101720;
  padding: 12px 14px;
}

#otDetailVeil .otd-summary-desc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#otDetailVeil .otd-summary-desc-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

#otDetailVeil .otd-summary-desc-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a98a6;
}

#otDetailVeil .otd-summary-desc-toggle {
  border: 0;
  background: transparent;
  color: #ffd500;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

#otDetailVeil .otd-summary-desc-copy {
  margin-top: 8px;
  color: #e6ecf4;
  font-size: 13px;
  line-height: 1.55;
  text-wrap: pretty;
}

#otDetailVeil .otd-summary-desc-editor {
  margin-top: 10px;
}

#otDetailVeil .otd-summary-desc-hint,
#otDetailVeil .otd-summary-desc-empty {
  color: #8a98a6;
  font-size: 12px;
  line-height: 1.5;
}

#otDetailVeil .otd-summary-desc-empty {
  margin-top: 8px;
}

#otDetailVeil .otd-summary-desc-input {
  width: 100%;
  min-height: 122px;
  margin-top: 8px;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid #263042;
  background: #0d141c;
  color: #e6ecf4;
  font-size: 13px;
  line-height: 1.55;
  resize: vertical;
  outline: none;
}

#otDetailVeil .otd-summary-desc-input:focus {
  border-color: rgba(255, 213, 0, .48);
  box-shadow: 0 0 0 1px rgba(255, 213, 0, .18);
}

#otDetailVeil .otd-summary-desc-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

#otDetailVeil .otd-summary-meta-table {
  display: flex;
  flex-direction: column;
}

#otDetailVeil .otd-summary-meta-table .otd-summary-row {
  min-height: 0;
  padding: 10px 15px;
  border-bottom: 1px solid #202a38;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

#otDetailVeil .otd-summary-meta-table .otd-summary-row:last-child {
  border-bottom: 0;
}

#otDetailVeil .otd-summary-meta-table .otd-summary-key {
  font-size: 12.5px;
  color: #8a98a6;
}

#otDetailVeil .otd-summary-meta-table .otd-summary-value-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  flex: 1;
}

#otDetailVeil .otd-summary-meta-table .otd-summary-value {
  font-size: 13px;
  font-weight: 600;
  color: #e6ecf4;
  text-align: right;
}

#otDetailVeil #otd-tab-panel-costos #otd-cost-breakdown {
  border: 1px solid #263042;
  border-radius: 11px;
  overflow: hidden;
  background: #131b26;
}

#otDetailVeil .otd-tab-empty {
  padding: 34px 16px;
  text-align: center;
  color: #586474;
  font-size: 13px;
  border: 1px dashed #2b3846;
  border-radius: 9px;
}

#otDetailVeil .otd-tab-empty-evidence {
  border-color: #30404e;
  border-radius: 11px;
  padding: 38px 20px;
}

#otDetailVeil .otd-tab-empty-icon {
  font-size: 30px;
  margin-bottom: 10px;
}

#otDetailVeil .otd-tab-empty-title {
  font-size: 14px;
  color: #586474;
}

#otDetailVeil .otd-tab-empty-sub {
  font-size: 12px;
  color: #586474;
  margin-top: 5px;
}

#otDetailVeil .otd-cost-table-head,
#otDetailVeil .otd-cost-table-row {
  display: grid;
  grid-template-columns: 2.4fr .7fr 1fr 1fr;
  align-items: center;
}

#otDetailVeil .otd-cost-table-head {
  padding: 9px 15px;
  background: #0f151f;
  border-bottom: 1px solid #263042;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #8a98a6;
}

#otDetailVeil .otd-cost-table-row {
  padding: 9px 15px;
  border-bottom: 1px solid #202a38;
}

#otDetailVeil .otd-cost-table-row:last-of-type {
  border-bottom: 1px solid #202a38;
}

#otDetailVeil .otd-cost-table-concept,
#otDetailVeil .otd-cost-table-qty,
#otDetailVeil .otd-cost-table-price {
  font-size: 12.5px;
  color: #c4cfd8;
}

#otDetailVeil .otd-cost-table-concept {
  font-weight: 600;
  color: #eef3f8;
}

#otDetailVeil .otd-cost-table-qty {
  text-align: center;
}

#otDetailVeil .otd-cost-table-price {
  text-align: right;
}

#otDetailVeil .otd-cost-table-amount {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffd500;
  text-align: right;
}

#otDetailVeil .otd-cost-table-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  background: #131b26;
}

#otDetailVeil .otd-cost-table-total span:first-child {
  font-size: 12px;
  color: #8a98a6;
}

#otDetailVeil .otd-cost-table-total span:last-child {
  font-size: 14px;
  font-weight: 800;
  color: #ffd500;
}

#otDetailVeil .otd-tab-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

#otDetailVeil .otd-tab-media-frame {
  position: relative;
  width: 100%;
  padding-top: 70%;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid #30404e;
  background: #000;
  cursor: zoom-in;
}

#otDetailVeil .otd-tab-media-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

#otDetailVeil .otd-tab-media-note {
  font-size: 11px;
  color: #c4cfd8;
  margin-top: 5px;
}

#otDetailVeil .otd-tab-media-meta {
  font-size: 10px;
  color: #7b8894;
  margin-top: 2px;
}

#otDetailVeil .otd-activity-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}

#otDetailVeil .otd-activity-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffd500;
  margin-top: 6px;
  flex-shrink: 0;
}

#otDetailVeil .otd-activity-copy {
  min-width: 0;
}

#otDetailVeil .otd-activity-action {
  font-size: 13px;
  font-weight: 600;
  color: #eef3f8;
}

#otDetailVeil .otd-activity-meta {
  font-size: 12.5px;
  color: #8a98a6;
  margin-top: 3px;
}

#otDetailVeil .otd-panel-kicker,
#otDetailVeil .otd-section-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

#otDetailVeil .otd-panel-subkicker,
#otDetailVeil .otd-section-subline,
#otDetailVeil .otd-section-side-note,
#otDetailVeil .otd-section-meta,
#otDetailVeil .otd-main-action-hint {
  color: #8a98a6;
}

#otDetailVeil .otd-section-action-btn {
  min-height: 30px;
  padding: 0 11px;
  border-radius: 10px;
  gap: 8px;
  border-color: rgba(64,80,98,.92);
  background: rgba(27,40,58,.58);
  color: #b8d4ea;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .72px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
  flex-shrink: 0;
}

#otDetailVeil .otd-section-action-btn:hover {
  border-color: rgba(91,127,160,.88);
  background: rgba(31,48,69,.76);
  color: #d3e8f8;
}

#otDetailVeil .otd-section-action-plus {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(72,176,232,.12);
  border: 1px solid rgba(72,176,232,.24);
  color: #7bbce8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

#otDetailVeil .otd-timer-shell {
  padding: 10px;
}

#otDetailVeil .otd-timer-display {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .8px;
  color: #ffd500;
}

#otDetailVeil .otd-timer-status {
  font-size: 10.5px;
  color: #8a98a6;
}

#otDetailVeil .otd-timer-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

#otDetailVeil .otd-timer-actions > .otd-action-btn-primary {
  grid-column: 1 / -1;
}

#otDetailVeil .otd-action-btn,
#otDetailVeil .otd-validate-btn {
  min-height: 0;
  padding: 9px 8px;
  border-radius: 9px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .75px;
  text-transform: uppercase;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  line-height: 1.1;
  text-align: center;
}

#otDetailVeil .otd-validate-btn {
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
  font-size: 11.5px;
  letter-spacing: .9px;
}

#otDetailVeil .otd-validate-btn:disabled,
#otDetailVeil .otd-falla-status-btn:disabled {
  background: #3d4450 !important;
  color: #7b8894 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

#otDetailVeil .otd-falla-status-control {
  display: flex;
  border: 1px solid #2b3846;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 11px;
}

#otDetailVeil .otd-falla-status-btn {
  flex: 1;
  padding: 7px 4px;
  border: 0;
  background: #131b26;
  color: #7b8894;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  cursor: pointer;
}

#otDetailVeil .otd-falla-status-btn.is-active[data-color="#8a98a6"] {
  background: rgba(138,152,166,.2);
  color: #8a98a6;
}

#otDetailVeil .otd-falla-status-btn.is-active[data-color="#3b82c4"] {
  background: rgba(59,130,196,.2);
  color: #3b82c4;
}

#otDetailVeil .otd-falla-status-btn.is-active[data-color="#2eab6f"] {
  background: rgba(46,171,111,.2);
  color: #2eab6f;
}

#otDetailVeil .otd-falla-filter-row {
  display: flex;
  gap: 5px;
}

#otDetailVeil .otd-falla-filter-chip {
  padding: 5px 11px;
  border-radius: 7px;
  border: 1px solid #2b3846;
  background: #131b26;
  color: #8a98a6;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
}

#otDetailVeil .otd-falla-filter-chip.is-active {
  background: linear-gradient(135deg,#ffd500,#ffe040);
  color: #0a0c10;
  border-color: transparent;
}

#otDetailVeil .otd-falla-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#otDetailVeil .otd-falla-card {
  position: relative;
  border: 1px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  background: #182230;
  opacity: 1;
}

#otDetailVeil .otd-falla-card.state-pendiente,
#otDetailVeil .otd-falla-card.state-pausada {
  background: #182230;
}

#otDetailVeil .otd-falla-card.state-en_proceso {
  background: #1b2634;
  border-color: #3a4a5c;
}

#otDetailVeil .otd-falla-card.state-completada {
  background: #182230;
  opacity: .55;
}

#otDetailVeil .otd-falla-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #9aaab8;
}

#otDetailVeil .otd-falla-card.is-critica::before {
  background: #e5484d;
}

#otDetailVeil .otd-falla-card.is-alta::before {
  background: #f5a524;
}

#otDetailVeil .otd-falla-card.is-media::before,
#otDetailVeil .otd-falla-card.is-baja::before {
  background: #9aaab8;
}

#otDetailVeil .otd-falla-card.state-completada::before {
  background: #2eab6f;
}

#otDetailVeil .otd-falla-card-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px 9px 15px;
  cursor: pointer;
}

#otDetailVeil .otd-falla-check-wrap {
  flex-shrink: 0;
}

#otDetailVeil .otd-falla-check {
  width: 19px;
  height: 19px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  border: 1.5px solid #485a6d;
  background: transparent;
  color: #0a0c10;
}

#otDetailVeil .otd-falla-check.is-checked {
  border-color: #2eab6f;
  background: #2eab6f;
}

#otDetailVeil .otd-falla-check:disabled {
  cursor: not-allowed;
}

#otDetailVeil .otd-falla-card-main {
  flex: 1;
  min-width: 0;
}

#otDetailVeil .otd-falla-chip-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

#otDetailVeil .otd-falla-folio {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .4px;
  color: #9aaab8;
}

#otDetailVeil .otd-falla-sev {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .7px;
}

#otDetailVeil .otd-falla-state-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  border-radius: 100px;
  border: 1px solid transparent;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}

#otDetailVeil .otd-falla-time {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: .6px;
  color: #7b8894;
}

#otDetailVeil .otd-falla-desc {
  display: block;
  width: 100%;
  margin-top: 3px;
  font-size: 12.5px;
  color: #c9d4de;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#otDetailVeil .otd-falla-desc.is-completed {
  color: #8a98a6;
  text-decoration: line-through;
}

#otDetailVeil .otd-falla-chevron {
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(19,27,38,.96);
  color: #c9d4de;
  font-size: 12px;
  font-weight: 800;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-top: 0;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

#otDetailVeil .otd-falla-chevron:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.24);
}

#otDetailVeil .otd-falla-card.state-completada .otd-falla-chevron {
  color: #7fe0b4;
  border-color: rgba(46,171,111,.36);
  background: rgba(46,171,111,.1);
}

#otDetailVeil .otd-falla-row-action {
  border: 1px solid rgba(255,255,255,.16);
  background: #131b26;
  color: #c9d4de;
  border-radius: 999px;
  min-height: 28px;
  padding: 0 11px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .2px;
  cursor: pointer;
  flex-shrink: 0;
  align-self: center;
}

#otDetailVeil .otd-falla-row-action:hover {
  background: rgba(255,255,255,.08);
}

#otDetailVeil .otd-falla-row-action-reopen {
  color: #7fe0b4;
  border-color: rgba(46,171,111,.4);
  background: rgba(46,171,111,.12);
}

#otDetailVeil .otd-falla-accordion {
  padding: 2px 12px 12px 15px;
  border-top: 1px solid #232f3d;
}

#otDetailVeil .otd-falla-detail-copy {
  font-size: 13px;
  color: #dbe4ec;
  line-height: 1.5;
  margin-top: 10px;
  text-wrap: pretty;
}

#otDetailVeil .otd-falla-detail-meta {
  font-size: 11.5px;
  color: #8a98a6;
  margin-top: 5px;
}

#otDetailVeil .otd-falla-card-controls {
  display: block;
  margin-top: 0;
}

#otDetailVeil .otd-falla-status-control {
  margin-top: 11px;
}

#otDetailVeil .otd-falla-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

#otDetailVeil .otd-falla-tool-btn {
  min-height: 0;
  padding: 10px 6px;
  border-radius: 8px;
  background: #131b26;
  border: 1px solid #30404e;
  color: #c4cfd8;
  font-size: 12.5px;
  font-weight: 500;
}

#otDetailVeil .otd-falla-tool-btn-accent {
  background: rgba(46,171,111,.11);
  border-color: rgba(46,171,111,.4);
  color: #7fe0b4;
}

#otDetailVeil .otd-falla-ref {
  margin-top: 8px;
}

#otDetailVeil .otd-falla-doc-block {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(72,176,232,.16);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(16,24,36,.92) 0%, rgba(14,20,30,.96) 100%);
}

#otDetailVeil .otd-falla-doc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

#otDetailVeil .otd-falla-doc-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #eef3f8;
}

#otDetailVeil .otd-falla-doc-subtitle {
  margin-top: 4px;
  font-size: 11.5px;
  line-height: 1.45;
  color: #8a98a6;
}

#otDetailVeil .otd-falla-doc-status {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(138,152,166,.18);
  background: rgba(138,152,166,.08);
  color: #9ba9b7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .05em;
}

#otDetailVeil .otd-falla-doc-status.has-content {
  background: rgba(72,176,232,.12);
  border-color: rgba(72,176,232,.26);
  color: #8fd3ff;
}

#otDetailVeil .otd-falla-doc-composer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

#otDetailVeil .otd-falla-doc-select {
  width: 180px;
  min-height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(56,72,88,.92);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #0f1723;
  background: linear-gradient(180deg, rgba(15,23,35,.96) 0%, rgba(12,19,29,.96) 100%);
  color: #eef3f8;
  padding: 0 12px;
  font: inherit;
  font-size: 12px;
  color-scheme: dark;
  outline: none;
}

#otDetailVeil .otd-falla-doc-select:focus {
  border-color: rgba(255,213,0,.34);
  box-shadow: 0 0 0 2px rgba(255,213,0,.08);
}

#otDetailVeil .otd-falla-doc-select option {
  background: #0f1723;
  color: #eef3f8;
}

#otDetailVeil .otd-falla-doc-textarea {
  width: 100%;
  min-height: 88px;
  max-height: 180px;
  resize: vertical;
  border-radius: 10px;
  border: 1px solid rgba(56,72,88,.92);
  background: linear-gradient(180deg, rgba(9,16,26,.98) 0%, rgba(11,18,28,.98) 100%);
  color: #eef3f8;
  padding: 12px 13px;
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
}

#otDetailVeil .otd-falla-doc-textarea:focus {
  outline: none;
  border-color: rgba(72,176,232,.5);
  box-shadow: 0 0 0 1px rgba(72,176,232,.24);
}

#otDetailVeil .otd-falla-doc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

#otDetailVeil .otd-falla-doc-toolbar-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 320px;
}

#otDetailVeil .otd-falla-doc-ai-btn {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 9px;
  white-space: nowrap;
  border-color: rgba(255,213,0,.24);
  background: rgba(255,213,0,.07);
  color: #f6d768;
  flex: 0 0 auto;
}

#otDetailVeil .otd-falla-doc-ai-btn:hover,
#otDetailVeil .otd-falla-doc-ai-btn:focus {
  border-color: rgba(255,213,0,.42);
  background: rgba(255,213,0,.11);
  color: #ffe289;
}

#otDetailVeil .otd-falla-doc-meta {
  font-size: 11.5px;
  color: #8a98a6;
  line-height: 1.45;
  min-width: 0;
  flex: 1 1 220px;
}

#otDetailVeil .otd-falla-history-shell {
  margin-top: 12px;
  border: 1px solid rgba(48,64,78,.7);
  border-radius: 10px;
  background: rgba(8,14,23,.44);
  overflow: hidden;
}

#otDetailVeil .otd-falla-history-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-bottom: 1px solid rgba(48,64,78,.7);
  background: rgba(14,21,32,.86);
}

#otDetailVeil .otd-falla-history-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #eef3f8;
}

#otDetailVeil .otd-falla-history-caption {
  font-size: 11px;
  color: #7f8d9b;
}

#otDetailVeil .otd-falla-history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(95,124,150,.55) rgba(12,19,29,.22);
}

#otDetailVeil .otd-falla-history-item {
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px solid rgba(48,64,78,.7);
  background: rgba(10,17,26,.72);
}

#otDetailVeil .otd-falla-history-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

#otDetailVeil .otd-falla-history-type {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(138,152,166,.18);
  background: rgba(138,152,166,.08);
  color: #c4cfd8;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}

#otDetailVeil .otd-falla-history-type.is-diagnostico {
  color: #8fd3ff;
  background: rgba(72,176,232,.12);
  border-color: rgba(72,176,232,.26);
}

#otDetailVeil .otd-falla-history-type.is-prueba {
  color: #ffe78a;
  background: rgba(255,213,0,.12);
  border-color: rgba(255,213,0,.24);
}

#otDetailVeil .otd-falla-history-type.is-solucion {
  color: #7fe0b4;
  background: rgba(46,171,111,.12);
  border-color: rgba(46,171,111,.26);
}

#otDetailVeil .otd-falla-history-type.is-seguimiento {
  color: #c7b5ff;
  background: rgba(108,92,231,.14);
  border-color: rgba(108,92,231,.24);
}

#otDetailVeil .otd-falla-history-meta {
  font-size: 11px;
  color: #8a98a6;
  line-height: 1.35;
  text-align: right;
}

#otDetailVeil .otd-falla-history-copy {
  margin-top: 8px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #eef3f8;
  white-space: pre-wrap;
}

#otDetailVeil .otd-falla-history-empty {
  padding: 10px 11px;
  border-radius: 10px;
  border: 1px dashed rgba(48,64,78,.76);
  background: rgba(10,17,26,.42);
  color: #8a98a6;
  font-size: 12px;
}

#otDetailVeil .otd-falla-doc-save {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 9px;
  letter-spacing: .06em;
  text-transform: none;
  font-size: 12px;
  white-space: nowrap;
}

#otDetailVeil .otd-falla-history-list::-webkit-scrollbar {
  width: 10px;
}

#otDetailVeil .otd-falla-history-list::-webkit-scrollbar-track {
  background: rgba(12,19,29,.24);
  border-radius: 999px;
}

#otDetailVeil .otd-falla-history-list::-webkit-scrollbar-thumb {
  background: rgba(95,124,150,.55);
  border-radius: 999px;
  border: 2px solid rgba(12,19,29,.24);
}

#otDetailVeil .otd-falla-ref-head {
  min-height: 0;
  padding: 8px 11px;
  border-radius: 8px;
  background: #131b26;
  border: 1px solid #30404e;
  border-left: 3px solid #ffd500;
}

#otDetailVeil .otd-falla-ref-head-main {
  font-size: 12.5px;
  color: #eef3f8;
  font-weight: 600;
}

#otDetailVeil .otd-ref-pill.is-pending {
  background: rgba(212,95,46,.18);
  color: #e8a87c;
}

#otDetailVeil .otd-ref-pill.is-dispatched {
  background: rgba(108,92,231,.18);
  color: #b6abff;
}

#otDetailVeil .otd-ref-pill.is-rejected {
  background: rgba(216,86,105,.16);
  color: #f0a0ac;
}

#otDetailVeil .otd-linked-ref-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: start;
  padding: 9px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(28,40,57,.94), rgba(25,36,51,.96));
  border: 1px solid rgba(48,64,78,.92);
}

#otDetailVeil .otd-linked-ref-main {
  min-width: 0;
}

#otDetailVeil .otd-linked-ref-title {
  font-size: 13.5px;
  line-height: 1.2;
  font-weight: 700;
  color: #eef3f8;
}

#otDetailVeil .otd-linked-ref-meta {
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #b4c0cc;
}

#otDetailVeil .otd-linked-ref-provider {
  margin-top: 4px;
  font-size: 10.5px;
  line-height: 1.25;
  color: #7f8d9b;
}

#otDetailVeil .otd-linked-ref-rail {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  min-width: 106px;
}

#otDetailVeil .otd-linked-ref-badge {
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .75px;
}

#otDetailVeil .otd-linked-ref-badge .s-dot {
  width: 5px;
  height: 5px;
}

#otDetailVeil .otd-ref-edit-btn {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .65px;
  color: #c4cfd8;
  border-color: rgba(64,80,98,.92);
}

#otDetailVeil .otd-ref-edit-btn:hover {
  background: rgba(255,255,255,.03);
  border-color: rgba(95,124,150,.78);
}

#otDetailVeil .otd-falla-ref-chevron {
  font-size: 12px;
  color: #c4cfd8;
}

#otDetailVeil .otd-falla-status-btn.is-active:disabled[data-color="#8a98a6"] {
  background: rgba(138,152,166,.2) !important;
  color: #8a98a6 !important;
}

#otDetailVeil .otd-falla-status-btn.is-active:disabled[data-color="#3b82c4"] {
  background: rgba(59,130,196,.2) !important;
  color: #3b82c4 !important;
}

#otDetailVeil .otd-falla-status-btn.is-active:disabled[data-color="#2eab6f"] {
  background: rgba(46,171,111,.2) !important;
  color: #2eab6f !important;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-evidence-hint {
  display: block !important;
  margin-bottom: 10px;
  color: #8a98a6;
  font-size: 12px;
}

#otDetailVeil #otd-tab-panel-evidencias #otd-media-drop {
  display: flex !important;
  position: relative;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  border: 1px dashed #30404e;
  border-radius: 10px;
  background: #131b26;
  color: #dbe4ec;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}

#otDetailVeil #otd-tab-panel-evidencias #otd-media-drop span {
  pointer-events: none;
}

#otDetailVeil #otd-tab-panel-evidencias #otd-media-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

#otDetailVeil #otd-tab-panel-evidencias #otd-new-previews.media-previews {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-empty-evidence {
  margin-bottom: 12px;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-carousel-shell {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-nav {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid #30404e;
  background: #131b26;
  color: #dbe4ec;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-track {
  display: flex;
  gap: 12px;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-card {
  flex: 0 0 220px;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-frame {
  position: relative;
  width: 100%;
  height: 152px;
  padding-top: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #30404e;
  background: #0b1017;
  cursor: zoom-in;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-frame::after {
  content: "🔍";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4,5,8,.66);
  font-size: 12px;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-frame.is-document {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
  cursor: pointer;
  text-decoration: none;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-frame.is-document::after {
  content: "↗";
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-document-preview {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #e6ecf4;
  text-align: center;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-document-preview strong {
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255,213,0,.18);
  color: #ffe27a;
  font-size: 11px;
  letter-spacing: .7px;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-document-preview span {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 11px;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-document-preview small {
  color: #9aaab8;
  font-size: 10px;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-note {
  margin-top: 7px;
  font-size: 12.5px;
  color: #e6ecf4;
  font-weight: 600;
}

#otDetailVeil #otd-tab-panel-evidencias .otd-tab-media-meta {
  margin-top: 3px;
  font-size: 11px;
  color: #8a98a6;
}

#otDetailVeil .ot-detail-foot {
  flex-shrink: 0;
  padding: 8px 16px 10px;
  border-top: 1px solid rgba(38,48,66,.92);
  background: linear-gradient(180deg, rgba(14,20,30,.96), rgba(12,18,28,.98));
}

#otDetailVeil .ot-detail-foot-tools {
  margin-right: auto;
}

#otDetailVeil .otd-mobile-pdf-btn {
  display: none;
}

#otDetailVeil .otd-mobile-pdf-btn-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  font-size: 12px;
  line-height: 1;
}

#otDetailVeil .ot-detail-foot-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

#otDetailVeil .ot-detail-foot .btn {
  min-height: 34px;
  padding: 8px 12px;
}

@media (max-width: 1180px) {
  #otDetailVeil.ot-detail-inline .otd-body-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 10px;
  }

  #otDetailVeil.ot-detail-inline .otd-control-col {
    position: static;
    width: 100%;
    flex: 0 0 auto;
  }

  #otDetailVeil.ot-detail-inline .otd-control-panel {
    width: 100%;
  }

  #otDetailVeil.ot-detail-inline .otd-hero-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  #otDetailVeil.ot-detail-inline .otd-tabbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 10px;
    padding: 8px 12px 0;
    scrollbar-width: none;
  }

  #otDetailVeil.ot-detail-inline .otd-tabbar::-webkit-scrollbar {
    display: none;
  }

  #otDetailVeil.ot-detail-inline .otd-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  #otDetailVeil .otd-linked-ref-card {
    grid-template-columns: 1fr;
  }

  #otDetailVeil .otd-linked-ref-rail {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .ot-page-detail-view {
    height: auto;
    min-height: 0;
  }

  .ot-page-detail-host {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  #otDetailVeil {
    left: 0;
    padding: 12px;
  }

  #otDetailVeil .otd-modal-shell {
    height: min(92vh, calc(100vh - 72px));
    min-height: 0;
  }

  #otDetailVeil.ot-detail-inline {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  #otDetailVeil.ot-detail-inline .otd-modal-shell {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  #otDetailVeil .otd-hero-strip,
  #otDetailVeil .otd-workspace,
  #otDetailVeil .otd-support-grid {
    grid-template-columns: 1fr;
  }

  #otDetailVeil .otd-timer-actions {
    grid-template-columns: 1fr;
  }

  #otDetailVeil.ot-detail-inline .otd-body-layout {
    display: flex;
    flex-direction: column;
    height: auto;
    gap: 10px;
  }

  #otDetailVeil.ot-detail-inline .otd-control-col {
    position: static;
    top: auto;
    width: 100%;
    min-width: 0;
  }

  #otDetailVeil.ot-detail-inline .otd-body {
    display: block;
    flex: 0 0 auto;
    min-height: 0;
    overflow: visible;
    padding: 10px 12px 14px;
    scrollbar-gutter: auto;
  }

  #otDetailVeil.ot-detail-inline .otd-body-layout,
  #otDetailVeil.ot-detail-inline .otd-body-main,
  #otDetailVeil.ot-detail-inline .otd-control-col,
  #otDetailVeil.ot-detail-inline .otd-control-panel {
    height: auto;
    overflow: visible;
  }

  #otDetailVeil.ot-detail-inline .ot-detail-foot {
    position: static;
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  #otDetailVeil.ot-detail-inline .otd-top {
    padding: 8px 10px 6px !important;
    gap: 6px;
  }

  #otDetailVeil.ot-detail-inline .otd-top-title {
    font-size: 15px;
    line-height: 1.06;
  }

  #otDetailVeil.ot-detail-inline .otd-top-subtitle,
  #otDetailVeil.ot-detail-inline .otd-top-folio {
    font-size: 10px;
  }

  #otDetailVeil.ot-detail-inline .otd-top-pills .spill {
    min-height: 24px;
    padding: 0 8px;
    font-size: 9.5px;
  }

  #otDetailVeil.ot-detail-inline .otd-hero-strip {
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 4px 10px 0;
  }

  #otDetailVeil.ot-detail-inline .otd-tabbar {
    gap: 8px;
    padding: 8px 10px 2px;
  }

  #otDetailVeil.ot-detail-inline .otd-tab-btn {
    padding-bottom: 6px;
    font-size: 11.5px;
  }

  #otDetailVeil.ot-detail-inline .otd-body {
    padding: 10px 12px 12px;
  }

  #otDetailVeil.ot-detail-inline .otd-falla-filter-row {
    flex-wrap: wrap;
  }

  #otDetailVeil.ot-detail-inline .otd-summary-desc-head,
  #otDetailVeil.ot-detail-inline .otd-progress-head,
  #otDetailVeil.ot-detail-inline .otd-control-meta-row,
  #otDetailVeil.ot-detail-inline .otd-summary-meta-table .otd-summary-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  #otDetailVeil.ot-detail-inline .otd-summary-meta-table .otd-summary-row {
    padding: 10px 12px;
  }

  #otDetailVeil.ot-detail-inline .otd-summary-meta-table .otd-summary-value-wrap,
  #otDetailVeil.ot-detail-inline .otd-summary-meta-table .otd-summary-value {
    justify-content: flex-start;
    text-align: left;
    width: 100%;
  }

  #otDetailVeil.ot-detail-inline .otd-control-meta-value {
    text-align: left;
    width: 100%;
  }

  #otDetailVeil.ot-detail-inline .otd-falla-tools {
    grid-template-columns: 1fr;
  }

  #otDetailVeil.ot-detail-inline .otd-falla-doc-head,
  #otDetailVeil.ot-detail-inline .otd-falla-doc-toolbar,
  #otDetailVeil.ot-detail-inline .otd-falla-history-bar {
    flex-direction: column;
    align-items: stretch;
  }

  #otDetailVeil.ot-detail-inline .otd-falla-doc-toolbar-main {
    flex-direction: column;
    align-items: stretch;
  }

  #otDetailVeil.ot-detail-inline .otd-falla-doc-select,
  #otDetailVeil.ot-detail-inline .otd-falla-doc-ai-btn,
  #otDetailVeil.ot-detail-inline .otd-falla-doc-save {
    width: 100%;
  }

  #otDetailVeil.ot-detail-inline .otd-falla-history-head {
    flex-direction: column;
    align-items: flex-start;
  }

  #otDetailVeil.ot-detail-inline .otd-falla-history-meta {
    text-align: left;
  }

  #otDetailVeil.ot-detail-inline .otd-falla-history-list {
    max-height: 220px;
  }

  #otDetailVeil .ot-detail-foot-tools {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    gap: 8px;
    width: 100%;
    margin-right: 0;
  }

  #otDetailVeil .otd-mobile-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 10px;
    border-color: rgba(95,111,130,.34);
    background: linear-gradient(180deg, rgba(18,28,42,.94), rgba(13,21,31,.98));
    color: #d7e1eb;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .35px;
    text-transform: uppercase;
  }

  #otDetailVeil .otd-mobile-pdf-btn:hover,
  #otDetailVeil .otd-mobile-pdf-btn:focus {
    border-color: rgba(255,213,0,.28);
    color: #f5f7fa;
    background: linear-gradient(180deg, rgba(21,33,49,.96), rgba(14,23,34,.98));
  }

  #otDetailVeil .otd-more-actions-footer {
    width: 100%;
  }

  #otDetailVeil .otd-more-actions-footer .otd-more-actions-toggle {
    width: 100%;
  }

  #otDetailVeil .ot-detail-foot {
    padding: 8px 12px 12px;
    gap: 8px;
  }

  #otDetailVeil .ot-detail-foot,
  #otDetailVeil .ot-detail-foot-tools,
  #otDetailVeil .ot-detail-foot-actions {
    flex-direction: column;
    align-items: stretch;
  }

  #otDetailVeil .ot-detail-foot-actions {
    justify-content: stretch;
  }

  #otDetailVeil .ot-detail-foot .btn {
    width: 100%;
  }
}

@media (max-width: 640px){
  .almx-shell--inventario .almx-toolbar{
    gap:10px;
    margin-bottom:10px;
  }

  .almx-shell--inventario .almx-doc-help-wrap,
  .almx-shell--inventario .almx-toolbar-copy,
  .almx-shell--inventario [data-alm-sync-status],
  .almx-shell--inventario .almx-table-sku-meta,
  .almx-shell--inventario .almx-table--inventario th:nth-child(3),
  .almx-shell--inventario .almx-table--inventario th:nth-child(4),
  .almx-shell--inventario .almx-table--inventario th:nth-child(5),
  .almx-shell--inventario .almx-table--inventario th:nth-child(6),
  .almx-shell--inventario .almx-table--inventario td:nth-child(3),
  .almx-shell--inventario .almx-table--inventario td:nth-child(4),
  .almx-shell--inventario .almx-table--inventario td:nth-child(5),
  .almx-shell--inventario .almx-table--inventario td:nth-child(6){
    display:none;
  }

  .almx-shell--inventario .almx-panel--inventario{
    padding:0;
  }

  .almx-shell--inventario .almx-toolbar-actions{
    gap:10px;
  }

  .almx-shell--inventario .almx-search-row{
    width:100%;
  }

  .almx-shell--inventario .almx-search-row .fi{
    width:100%;
    min-height:52px;
    padding:0 18px;
    border-radius:16px;
    font-size:15px;
    background:#121820;
    border-color:#30404e;
  }

  .almx-shell--inventario .almx-filter-row{
    width:100%;
    gap:10px;
    justify-content:flex-start;
    flex-wrap:wrap;
  }

  .almx-shell--inventario .almx-action-row{
    width:100%;
    margin-left:0;
    justify-content:stretch;
    gap:10px;
  }

  .almx-shell--inventario .almx-action-row .almx-toolbar-btn{
    flex:1 1 100%;
    width:100%;
    min-width:0;
    min-height:46px;
    padding:0 14px;
    border-radius:14px;
    font-size:12px;
    letter-spacing:.6px;
  }

  .almx-shell--inventario .almx-action-row .almx-toolbar-btn-label{
    display:block;
    width:100%;
    text-align:center;
    white-space:normal;
    line-height:1.15;
  }

  .almx-shell--inventario .almx-filter-row .almx-filter-chip{
    flex:0 0 auto;
    justify-content:center;
    min-height:42px;
    padding:0 15px;
    border-radius:14px;
    font-size:12px;
    letter-spacing:.55px;
  }

  .almx-shell--inventario .almx-inventory-head{
    margin:14px 2px 12px;
  }

  .almx-shell--inventario .almx-inventory-title{
    font-size:18px;
    line-height:1.1;
  }

  .almx-shell--inventario .almx-toolbar-count{
    font-size:12px;
    letter-spacing:1px;
    color:#9aaab8;
  }

  .almx-shell--inventario .almx-table-scroll{
    max-height:none;
    overflow:hidden;
    border:1px solid #30404e;
    border-radius:18px;
    background:#18202e;
  }

  .almx-shell--inventario .ot-table.almx-table--inventario{
    min-width:0;
    width:100%;
    table-layout:fixed;
  }

  .almx-shell--inventario .almx-table--inventario thead{
    display:table-header-group;
  }

  .almx-shell--inventario .almx-table--inventario th:nth-child(1){
    width:28%;
  }

  .almx-shell--inventario .almx-table--inventario th:nth-child(2){
    width:72%;
  }

  .almx-shell--inventario .almx-table--inventario th:nth-child(1),
  .almx-shell--inventario .almx-table--inventario td:nth-child(1){
    border-right:1px solid #263042;
  }

  .almx-shell--inventario .almx-table--inventario thead th{
    padding:12px 16px;
    background:#0b0e14;
    font-size:11px;
    letter-spacing:2px;
    color:#9aaab8;
  }

  .almx-shell--inventario .almx-table--inventario tbody tr{
    background:#18202e;
  }

  .almx-shell--inventario .almx-table--inventario td{
    padding:16px;
    border-top:1px solid #263042;
    vertical-align:middle;
  }

  .almx-shell--inventario .almx-table--inventario td:nth-child(1){
    padding-right:14px;
  }

  .almx-shell--inventario .almx-table-part{
    font-size:14px;
    letter-spacing:.75px;
    color:#ffd500;
  }

  .almx-shell--inventario .almx-table-name{
    font-size:17px;
    line-height:1.22;
    font-weight:700;
  }

  .almx-shell--inventario [data-alm-pagination]{
    display:block;
    margin-top:12px;
  }

  .almx-shell--inventario [data-alm-pagination] .ot-pagination-bar{
    gap:8px;
    margin-top:0;
    align-items:flex-start;
  }

  .almx-shell--inventario [data-alm-pagination] .ot-pagination-info{
    width:100%;
    font-size:11px;
    line-height:1.35;
  }

  .almx-shell--inventario [data-alm-pagination] .ot-pagination-actions{
    width:100%;
    gap:6px;
    justify-content:flex-start;
  }

  .almx-shell--inventario [data-alm-pagination] .ot-page-btn{
    min-height:36px;
    min-width:36px;
    padding:0 10px;
    border-radius:11px;
    font-size:11px;
    letter-spacing:.8px;
  }

  .veil.almx-overlay.almx-overlay--create-item{
    padding:0;
    align-items:stretch;
    justify-content:flex-start;
    background:rgba(7,10,14,.92);
    backdrop-filter:none;
  }

  .almx-modal--create-item{
    width:100%;
    max-width:none;
    height:100%;
    max-height:none;
    min-height:0;
    align-self:stretch;
    border-radius:0;
    border-left:none;
    border-right:none;
  }

  .almx-modal--create-item .almx-modal-head{
    padding:12px 12px 10px;
    gap:10px;
    align-items:flex-start;
  }

  .almx-modal--create-item .almx-modal-title{
    font-size:15px;
    line-height:1.12;
  }

  .almx-modal--create-item .almx-modal-body{
    padding:12px;
    gap:12px;
  }

  .almx-modal--create-item .almx-modal-foot{
    padding:8px 10px calc(8px + var(--safe-bot));
    gap:8px;
    border-radius:0;
    position:sticky;
    bottom:0;
    z-index:2;
  }

  .almx-modal--create-item .almx-action-btn{
    min-height:44px;
    font-size:12px;
    letter-spacing:.4px;
  }

  .almx-modal--create-item .almx-create-type-toggle{
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
  }

  .almx-modal--create-item .almx-create-type-btn{
    width:100%;
    min-height:46px;
    font-size:13px;
  }

  .almx-modal--create-item .almx-create-inline-head{
    align-items:flex-start;
    gap:8px;
  }

  .almx-modal--create-item #alm-create-ai-btn,
  .almx-modal--create-item #alm-create-desc-opt-btn{
    width:34px!important;
    height:34px!important;
    min-width:34px;
    border-radius:10px;
    font-size:15px!important;
  }

  .almx-modal--create-item #alm-create-category,
  .almx-modal--create-item .almx-dialog-input{
    font-size:16px;
    min-height:50px;
    padding:12px 14px;
  }

  .almx-modal--create-item #alm-create-description{
    min-height:108px;
  }

  .almx-modal--create-item .almx-location-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .almx-modal--create-item .almx-adjust-row{
    display:grid;
    grid-template-columns:1fr;
    gap:5px;
  }

  .almx-modal--create-item .almx-adjust-row strong{
    font-size:14px;
    word-break:break-word;
  }
}

@media (max-width: 768px){
  .estado-motivo-overlay{
    padding:0;
    align-items:flex-end;
    background:rgba(0,0,0,.68);
  }

  .estado-motivo-sheet{
    width:100%;
    border-left:0;
    border-right:0;
    border-bottom:0;
    border-radius:18px 18px 0 0;
    padding:10px 14px calc(12px + var(--safe-bot));
    box-shadow:0 -14px 32px rgba(0,0,0,.32);
  }

  .estado-motivo-kicker{
    font-size:11px;
    letter-spacing:1.8px;
  }

  .estado-motivo-title{
    font-size:16px;
  }

  .estado-motivo-copy{
    margin-bottom:10px;
  }

  .estado-motivo-input{
    margin-bottom:10px;
  }

  .estado-motivo-input--textarea{
    min-height:76px;
  }
}

@media (max-width: 520px){
  .estado-motivo-actions{
    gap:6px;
  }

  .estado-motivo-actions .btn{
    min-height:42px;
    padding:0 12px;
  }
}

@media (min-width: 769px){
  .estado-motivo-overlay{
    align-items:center;
    padding:24px;
  }
}

@media (max-width: 768px){
  .rh-modal{
    width:min(100%,calc(100vw - 20px));
    max-width:min(100%,calc(100vw - 20px));
    border-radius:18px;
  }

  .rh-modal-head{
    padding:16px 16px 14px;
    gap:12px;
  }

  .rh-modal-title{
    font-size:17px;
  }

  .rh-modal-sub{
    max-width:none;
  }

  .rh-modal-body{
    padding:14px 16px;
    gap:14px;
  }

  .rh-modal--employee,
  .rh-modal--expediente,
  .rh-modal--position,
  .rh-modal--position-detail{
    max-height:min(92vh,calc(100vh - 18px));
  }

  .rh-split-layout,
  .rh-exp-grid,
  .rh-exp-hero,
  .rh-field-grid--3,
  .rh-segmented-grid,
  .rh-field-grid--2,
  .rh-field-grid--employee-top,
  .rh-field-grid--position-top,
  .rh-field-grid--bank,
  .rh-field-grid--contact,
  .rh-field-grid--health,
  .rh-field-grid--salary,
  .rh-field-grid--salary-support,
  .rh-field-grid--position-pay,
  .rh-field-grid--position-meta,
  .rh-field-grid--position-benefits,
  .rh-position-stat-grid,
  .rh-exp-info-grid,
  .rh-exp-info-grid--2,
  .rh-exp-fiscal-edit,
  .rh-choice-grid--compact,
  .rh-choice-grid--benefits,
  .rh-choice-grid--risk{
    grid-template-columns:1fr;
  }

  .rh-position-head,
  .rh-info-row,
  .rh-occupancy-item{
    flex-direction:column;
    align-items:flex-start;
  }

  .rh-salary-detail-head,
  .rh-detail-occupant{
    flex-direction:column;
    align-items:flex-start;
  }

  .rh-detail-actions{
    width:100%;
    justify-content:flex-start;
  }

  .rh-detail-grid--salary,
  .rh-detail-grid--benefits,
  .rh-detail-stats{
    grid-template-columns:1fr;
  }

  .rh-detail-occupant-bar{
    width:100%;
  }

  .rh-info-value{
    text-align:left;
  }

  .rh-segmented-option span{
    min-height:58px;
  }

  .rh-exp-name{
    font-size:21px;
  }

  .rh-exp-actions .btn{
    flex:1 1 100%;
  }

  .rh-modal-foot{
    padding:12px 16px 16px;
    flex-wrap:wrap;
  }

  .rh-modal-foot .btn{
    flex:1 1 100%;
  }
}

@media (min-width: 769px) and (max-width: 1024px){
  .rh-modal--employee,
  .rh-modal--expediente{
    width:min(100%,calc(100vw - 32px));
    max-width:min(100%,calc(100vw - 32px));
  }

  .rh-split-layout,
  .rh-exp-grid{
    grid-template-columns:1fr;
  }

  .rh-exp-hero{
    grid-template-columns:1fr;
  }
}

/* Technical tool assignment module */
.rh-emp-payroll-row{
  display:grid;
  gap:8px;
  padding:10px;
  border:1px solid rgba(46,61,80,.9);
  border-radius:10px;
  background:linear-gradient(145deg,rgba(18,27,40,.94),rgba(8,14,24,.94));
}
.rh-emp-payroll-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.rh-emp-payroll-amount{
  color:#f3f6fa;
  font-size:13px;
  font-variant-numeric:tabular-nums;
}
.rh-emp-payroll-title{
  color:#eef3f9;
  font-size:12px;
  font-weight:650;
  line-height:1.4;
  overflow-wrap:anywhere;
}
.rh-emp-payroll-meta{
  display:flex;
  flex-wrap:wrap;
  gap:4px 10px;
  color:#8ea0b3;
  font-size:10px;
  line-height:1.4;
}
.rh-emp-payroll-actions{
  display:flex;
  justify-content:flex-end;
  padding-top:6px;
  border-top:1px solid rgba(46,61,80,.58);
}
.rh-emp-payroll-action{
  min-height:30px;
  padding:0 10px;
  font-size:11px;
}
.rh-emp-responsiva-link{
  display:inline-flex;
  align-items:center;
  justify-self:start;
  min-height:26px;
  max-width:100%;
  padding:0 9px;
  border:1px solid rgba(255,213,0,.28);
  border-radius:7px;
  background:rgba(255,213,0,.07);
  color:var(--gold2);
  font:600 10px 'Inter',sans-serif;
  cursor:pointer;
}
.rh-emp-responsiva-link:hover{
  border-color:rgba(255,213,0,.55);
  background:rgba(255,213,0,.13);
}
.rh-emp-responsiva-link:focus-visible,
.rh-responsiva-close:focus-visible{
  outline:2px solid var(--gold2);
  outline-offset:2px;
}
.rh-emp-responsiva-missing{
  color:#9aaabd;
  font-size:10px;
}
.rh-responsiva-veil{
  position:fixed;
  inset:0;
  z-index:99999;
  display:grid;
  place-items:center;
  padding:18px;
  background:rgba(4,8,14,.82);
  backdrop-filter:blur(5px);
}
.rh-responsiva-dialog{
  display:flex;
  flex-direction:column;
  width:min(1120px,100%);
  height:min(94vh,940px);
  min-height:0;
  overflow:hidden;
  border:1px solid rgba(65,82,104,.9);
  border-radius:14px;
  background:#111a27;
  box-shadow:0 24px 80px rgba(0,0,0,.5);
}
.rh-responsiva-head{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:11px 14px;
  border-bottom:1px solid rgba(58,73,93,.72);
}
.rh-responsiva-heading{
  min-width:0;
}
.rh-responsiva-kicker{
  color:#899bb0;
  font-size:9px;
  font-weight:700;
  letter-spacing:1.1px;
  text-transform:uppercase;
}
.rh-responsiva-heading h2{
  margin:3px 0 0;
  color:#f1f5fa;
  font-size:14px;
  line-height:1.3;
}
.rh-responsiva-date{
  margin-top:3px;
  color:#90a0b2;
  font-size:10px;
}
.rh-responsiva-actions{
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:8px;
}
.rh-responsiva-actions .btn{
  min-height:30px;
  padding:0 10px;
  font-size:10px;
}
.rh-responsiva-close{
  display:grid;
  width:30px;
  height:30px;
  place-items:center;
  border:1px solid rgba(58,73,93,.88);
  border-radius:8px;
  background:#0b121c;
  color:#d7e0eb;
  font-size:18px;
  cursor:pointer;
}
.rh-responsiva-content{
  flex:1 1 auto;
  min-height:0;
  overflow:auto;
  background:#d8dde5;
}
.rh-responsiva-frame{
  display:block;
  width:100%;
  min-height:100%;
  border:0;
  background:#fff;
}
.rh-tool-payroll-request.is-focus{
  outline:2px solid rgba(255,213,0,.52);
  outline-offset:2px;
}
@media (max-width:760px){
.rh-responsiva-veil{
    padding:7px;
  }
.rh-responsiva-dialog{
    width:100%;
    height:calc(100vh - 14px);
    border-radius:11px;
  }
.rh-responsiva-head{
    align-items:flex-start;
    gap:8px;
    padding:9px;
  }
.rh-responsiva-actions{
    gap:5px;
  }
.rh-responsiva-actions .btn{
    max-width:138px;
    min-height:29px;
    white-space:normal;
  }
.rh-responsiva-close{
    width:28px;
    height:28px;
  }
.rh-emp-payroll-actions button{
    width:100%;
    justify-content:center;
  }
}

/* Herramienta por tecnico */
.tooltech-shell{
  min-height:calc(100vh - 92px);
  margin:-8px -8px 0;
  color:#e6ecf4;
  background:#07090d;
  border:1px solid #263042;
  border-radius:0 0 18px 18px;
  overflow:hidden;
  font-family:Inter,Arial,sans-serif;
}
.tooltech-topbar{
  height:108px;
  padding:20px 36px;
  border-bottom:1px solid #263042;
  background:#090b10;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
}
.tooltech-kicker{
  font-family:'Barlow Condensed',Inter,sans-serif;
  color:#ffd500;
  font-size:15px;
  font-weight:900;
  letter-spacing:5px;
  text-transform:uppercase;
  line-height:1;
}
.tooltech-topbar h1{
  margin:6px 0 0;
  color:#f5f7fc;
  font-size:32px;
  line-height:1.05;
  font-weight:900;
  letter-spacing:-.6px;
}
.tooltech-plus{
  width:72px;
  height:72px;
  border:0;
  border-radius:16px;
  background:#ffd500;
  color:#090b10;
  font-size:32px;
  font-weight:900;
  cursor:pointer;
}
.tooltech-kpis{
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:18px;
  padding:38px 40px 24px;
}
.tooltech-kpis>div{
  min-height:106px;
  padding:26px 30px;
  border:1px solid #30404e;
  border-radius:20px;
  background:#18202e;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.025);
}
.tooltech-kpis strong{
  display:block;
  color:#f5f7fc;
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-size:38px;
  line-height:1;
  font-weight:900;
}
.tooltech-kpis span{
  display:block;
  margin-top:10px;
  color:#8fa0b4;
  font-size:20px;
}
.tooltech-kpis .is-gold strong{color:#ffd500}
.tooltech-kpis .is-danger strong{color:#e97d78}
.tooltech-filters{
  display:flex;
  gap:14px;
  padding:0 40px 28px;
  flex-wrap:wrap;
}
.tooltech-filters button,
.tooltech-btn{
  min-height:54px;
  padding:0 24px;
  border-radius:14px;
  border:1px solid #30404e;
  background:#18202e;
  color:#cbd6e2;
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-size:18px;
  font-weight:900;
  letter-spacing:1px;
  text-transform:uppercase;
  cursor:pointer;
}
.tooltech-filters button.is-active,
.tooltech-btn--primary{
  border-color:transparent;
  background:#ffd500;
  color:#0a0c10;
}
.tooltech-btn--ghost{background:#121820;color:#cbd6e2}
.tooltech-btn--success{border-color:rgba(46,171,111,.45);background:rgba(46,171,111,.12);color:#9ef2cc}
.tooltech-search{
  display:flex;
  align-items:center;
  gap:18px;
  margin:0 40px 26px;
  padding:0 22px;
  height:76px;
  border:1px solid #30404e;
  border-radius:18px;
  background:#121820;
}
.tooltech-search span{color:#8fa0b4;font-size:26px}
.tooltech-search input{
  flex:1;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:#f5f7fc;
  font-size:26px;
  font-family:Inter,Arial,sans-serif;
}
.tooltech-list-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:0 40px 26px;
}
.tooltech-list-top span{
  color:#9dc2e8;
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-size:20px;
  font-weight:900;
  letter-spacing:1.2px;
}
.tooltech-tech-table,
.tooltech-table{
  margin:0 40px 40px;
  border:1px solid #30404e;
  border-radius:18px;
  background:#18202e;
  overflow:hidden;
}
.tooltech-tech-head,
.tooltech-tech-row{
  display:grid;
  grid-template-columns:1.4fr .7fr .7fr 1.05fr 1.05fr 1.1fr;
  align-items:center;
  gap:18px;
}
.tooltech-tech-head,
.tooltech-table-head{
  min-height:68px;
  padding:0 28px;
  background:#0b0e14;
  color:#9aaab8;
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-size:18px;
  font-weight:900;
  letter-spacing:4px;
  text-transform:uppercase;
}
.tooltech-tech-row{
  min-height:98px;
  padding:0 28px;
  border-top:1px solid #263042;
  cursor:pointer;
}
.tooltech-tech-row:hover,
.tooltech-tool-row:hover{background:#1d2635}
.tooltech-tech-row strong,
.tooltech-tool-main strong{
  display:block;
  color:#f5f7fc;
  font-size:22px;
  line-height:1.15;
}
.tooltech-tech-row span,
.tooltech-tool-main span{
  display:block;
  margin-top:4px;
  color:#8fa0b4;
  font-size:18px;
}
.tooltech-tech-row>b,
.tooltech-tool-value{
  color:#cbd6e2;
  font-size:24px;
  font-weight:900;
}
.tooltech-row-actions,
.tooltech-tool-actions{
  display:flex;
  gap:10px;
  justify-content:flex-end;
  align-items:center;
}
.tooltech-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:34px;
  padding:0 16px;
  border-radius:999px;
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-size:16px;
  font-weight:900;
  letter-spacing:.7px;
  text-transform:uppercase;
}
.tooltech-pill--is-jade{background:rgba(46,171,111,.16);border:1px solid rgba(46,171,111,.5);color:#9ef2cc}
.tooltech-pill--is-crimson{background:rgba(233,96,112,.16);border:1px solid rgba(233,96,112,.5);color:#ffc2ca}
.tooltech-pill--is-ice{background:rgba(59,130,196,.16);border:1px solid rgba(59,130,196,.5);color:#cfe6ff}
.tooltech-pill--is-gold{background:rgba(255,213,0,.14);border:1px solid rgba(255,213,0,.4);color:#ffe68a}
.tooltech-detail-head{
  min-height:96px;
  padding:18px 36px;
  border-bottom:1px solid #263042;
  background:#18202e;
  display:flex;
  align-items:center;
  gap:22px;
}
.tooltech-detail-head>strong{
  color:#f5f7fc;
  font-size:26px;
  font-weight:900;
}
.tooltech-detail-actions{
  margin-left:auto;
  display:flex;
  gap:12px;
  align-items:center;
}
.tooltech-detail-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:38px;
  padding:34px 44px 44px;
  align-items:start;
}
.tooltech-side{
  order:2;
  position:sticky;
  top:18px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:20px;
}
.tooltech-tools-panel{order:1;min-width:0}
.tooltech-avatar{
  width:96px;
  height:96px;
  border-radius:50%;
  background:#ffd500;
  color:#0a0c10;
  display:flex;
  align-items:center;
  justify-content:center;
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-size:34px;
  font-weight:900;
}
.tooltech-side h2{
  margin:0;
  color:#fff;
  font-size:27px;
  text-align:center;
}
.tooltech-side>p{
  margin:-14px 0 10px;
  color:#8fa0b4;
  font-size:18px;
  text-align:center;
}
.tooltech-side-card{
  width:100%;
  border:1px solid #30404e;
  border-radius:18px;
  background:#121820;
  overflow:hidden;
}
.tooltech-side-card>div{
  display:flex;
  justify-content:space-between;
  gap:18px;
  padding:18px 22px;
  border-top:1px solid #263042;
}
.tooltech-side-card>div:first-child{border-top:0}
.tooltech-side-card span,
.tooltech-side-card p,
.tooltech-side-card small{
  color:#8fa0b4;
  font-size:17px;
}
.tooltech-side-card small{
  display:block;
  padding:20px 22px 12px;
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-weight:900;
  letter-spacing:2px;
  text-transform:uppercase;
}
.tooltech-side-card strong{
  color:#f5f7fc;
  font-size:25px;
  font-weight:900;
}
.tooltech-side-card strong.is-danger{color:#e97d78}
.tooltech-side-card>.tooltech-pill{margin:0 22px 14px}
.tooltech-review-dates{
  display:grid!important;
  grid-template-columns:1fr 1fr;
}
.tooltech-side-card p{
  margin:0;
  padding:0 22px 20px;
}
.tooltech-table{margin:0}
.tooltech-table-head,
.tooltech-tool-row{
  display:grid;
  grid-template-columns:minmax(0,1fr) 120px 170px 270px;
  align-items:center;
  gap:18px;
}
.tooltech-tool-group{
  padding:14px 28px;
  border-top:1px solid #263042;
  background:#121820;
  color:#8fa0b4;
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-size:16px;
  font-weight:900;
  letter-spacing:3px;
  text-transform:uppercase;
}
.tooltech-tool-row{
  min-height:82px;
  padding:0 28px;
  border-top:1px solid #263042;
}
.tooltech-quiet-btn{
  min-height:48px;
  padding:0 18px;
  border-radius:12px;
  border:1px solid #30404e;
  background:#121820;
  color:#cbd6e2;
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-size:15px;
  font-weight:900;
  letter-spacing:.8px;
  text-transform:uppercase;
  cursor:pointer;
}
.tooltech-quiet-btn--danger{border-color:rgba(233,96,112,.45);color:#ffc2ca}
.tooltech-review-band{
  margin-bottom:22px;
  padding:22px 24px;
  border:1px solid rgba(255,213,0,.45);
  border-radius:18px;
  background:rgba(255,213,0,.055);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.tooltech-review-band strong{
  display:block;
  color:#ffd500;
  font-size:22px;
}
.tooltech-review-band span{
  display:block;
  margin-top:5px;
  color:#aab4c5;
  font-size:18px;
}
.tooltech-empty{
  padding:36px 20px;
  color:#8fa0b4;
  text-align:center;
}
.tooltech-alert{
  margin:16px 36px 0;
  padding:12px 14px;
  border:1px solid rgba(255,213,0,.35);
  border-radius:14px;
  background:rgba(255,213,0,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
}
@media (max-width: 1180px){
  .tooltech-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tooltech-detail-grid{grid-template-columns:1fr}
  .tooltech-side{order:1;position:relative;top:auto}
  .tooltech-tools-panel{order:2}
}
@media (max-width: 720px){
  .tooltech-shell{margin:0;border-radius:0}
  .tooltech-topbar{height:auto;padding:18px}
  .tooltech-topbar h1{font-size:26px}
  .tooltech-plus{width:56px;height:56px}
  .tooltech-kpis,.tooltech-detail-grid{padding:18px;gap:12px}
  .tooltech-kpis{grid-template-columns:1fr}
  .tooltech-filters,.tooltech-list-top{padding-left:18px;padding-right:18px}
  .tooltech-search{margin-left:18px;margin-right:18px}
  .tooltech-tech-table{margin:0 18px 22px}
  .tooltech-tech-head{display:none}
  .tooltech-tech-row{grid-template-columns:1fr;gap:10px;padding:18px;min-height:0}
  .tooltech-table-head{display:none}
  .tooltech-tool-row{grid-template-columns:1fr;gap:10px;padding:16px}
  .tooltech-tool-actions,.tooltech-row-actions{justify-content:flex-start;flex-wrap:wrap}
  .tooltech-detail-head{padding:14px 18px;flex-wrap:wrap}
  .tooltech-detail-actions{width:100%;margin-left:0}
}

/* Herramienta por tecnico - compactacion visual v2 */
.tooltech-shell{
  min-height:calc(100vh - 104px);
  margin:0;
  border-radius:16px;
  background:#07090d;
}
.tooltech-shell,
.tooltech-shell *{
  box-sizing:border-box;
}
.tooltech-topbar{
  height:78px;
  padding:18px 28px 16px;
  align-items:center;
}
.tooltech-kicker{
  font-size:12px;
  letter-spacing:3.4px;
}
.tooltech-topbar h1{
  margin-top:5px;
  font-size:25px;
  letter-spacing:-.25px;
}
.tooltech-plus{
  width:auto;
  min-width:52px;
  height:52px;
  padding:0 16px;
  border-radius:13px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  font-size:22px;
}
.tooltech-plus b{
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-size:12px;
  font-weight:900;
  letter-spacing:.9px;
  text-transform:uppercase;
}
.tooltech-kpis{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:9px;
  padding:20px 28px 16px;
}
.tooltech-kpis>div{
  min-height:78px;
  padding:15px 16px;
  border-radius:15px;
}
.tooltech-kpis strong{
  font-size:27px;
}
.tooltech-kpis span{
  margin-top:7px;
  font-size:12.5px;
  line-height:1.22;
}
.tooltech-filters{
  gap:8px;
  padding:0 28px 18px;
}
.tooltech-filters button,
.tooltech-btn{
  min-height:38px;
  padding:0 14px;
  border-radius:12px;
  font-size:13px;
  letter-spacing:.8px;
}
.tooltech-search{
  height:50px;
  margin:0 28px 16px;
  padding:0 16px;
  gap:12px;
  border-radius:14px;
}
.tooltech-search span{
  font-size:20px;
}
.tooltech-search input{
  font-size:18px;
}
.tooltech-list-top{
  padding:0 28px 14px;
}
.tooltech-list-top span{
  font-size:16px;
}
.tooltech-tech-table{
  margin:0 28px 28px;
  overflow-x:auto;
  border-radius:15px;
}
.tooltech-tech-head,
.tooltech-tech-row{
  min-width:920px;
  grid-template-columns:minmax(220px,1.35fr) 92px 110px minmax(190px,1fr) 190px 220px;
  gap:12px;
}
.tooltech-tech-head{
  min-height:48px;
  padding:0 20px;
  font-size:13px;
  letter-spacing:3px;
}
.tooltech-tech-row{
  min-height:68px;
  padding:0 20px;
}
.tooltech-tech-row strong,
.tooltech-tool-main strong{
  font-size:17px;
}
.tooltech-tech-row span,
.tooltech-tool-main span{
  font-size:14px;
}
.tooltech-tech-row>b,
.tooltech-tool-value{
  font-size:17px;
}
.tooltech-row-actions,
.tooltech-tool-actions{
  gap:8px;
}
.tooltech-pill{
  min-height:28px;
  padding:0 12px;
  font-size:12px;
}
.tooltech-detail-head{
  min-height:72px;
  padding:14px 28px;
  gap:14px;
}
.tooltech-detail-head>strong{
  font-size:21px;
}
.tooltech-detail-grid{
  grid-template-columns:minmax(0,1fr) 300px;
  gap:24px;
  padding:24px 28px 32px;
}
.tooltech-avatar{
  width:74px;
  height:74px;
  font-size:26px;
}
.tooltech-side{
  gap:14px;
}
.tooltech-side h2{
  font-size:21px;
}
.tooltech-side>p{
  margin:-10px 0 6px;
  font-size:14px;
}
.tooltech-side-card{
  border-radius:15px;
}
.tooltech-side-card>div{
  padding:14px 18px;
}
.tooltech-side-card span,
.tooltech-side-card p,
.tooltech-side-card small{
  font-size:13px;
}
.tooltech-side-card small{
  padding:16px 18px 10px;
  letter-spacing:1.8px;
}
.tooltech-side-card strong{
  font-size:21px;
}
.tooltech-side-card>.tooltech-pill{
  margin:0 18px 12px;
}
.tooltech-side-card p{
  padding:0 18px 16px;
}
.tooltech-table{
  overflow-x:auto;
  border-radius:15px;
}
.tooltech-table-head,
.tooltech-tool-row{
  min-width:840px;
  grid-template-columns:minmax(260px,1fr) 92px 140px 220px;
  gap:12px;
}
.tooltech-table-head{
  min-height:48px;
  padding:0 20px;
  font-size:13px;
  letter-spacing:3px;
}
.tooltech-tool-group{
  min-width:840px;
  padding:11px 20px;
  font-size:12px;
  letter-spacing:2.4px;
}
.tooltech-tool-row{
  min-height:68px;
  padding:0 20px;
}
.tooltech-quiet-btn{
  min-height:36px;
  padding:0 12px;
  border-radius:10px;
  font-size:12px;
}
.tooltech-review-band{
  margin-bottom:16px;
  padding:16px 18px;
  border-radius:15px;
}
.tooltech-review-band strong{
  font-size:17px;
}
.tooltech-review-band span{
  font-size:14px;
}
.tooltech-alert{
  margin:14px 28px 0;
}
@media (max-width: 1280px){
  .tooltech-kpis{
    grid-template-columns:repeat(5,minmax(104px,1fr));
    overflow-x:auto;
  }
  .tooltech-kpis>div{
    min-width:104px;
  }
  .tooltech-kpis strong{
    font-size:25px;
  }
  .tooltech-kpis span{
    font-size:12px;
  }
}
@media (max-width: 980px){
  .tooltech-detail-grid{
    grid-template-columns:1fr;
  }
  .tooltech-side{
    order:1;
    position:relative;
    top:auto;
    align-items:stretch;
  }
  .tooltech-tools-panel{
    order:2;
  }
}

/* Herramienta por tecnico - ajuste final de proporcion y orden */
.tooltech-detail-grid{
  grid-template-columns:minmax(0,1fr) clamp(240px,28vw,300px);
}
.tooltech-tools-panel{
  order:1;
}
.tooltech-side{
  order:2;
  position:sticky;
  top:18px;
  align-items:center;
}

@media (max-width: 1100px){
  .tooltech-topbar{
    height:70px;
    padding:14px 24px;
  }
  .tooltech-topbar h1{
    font-size:23px;
  }
  .tooltech-plus{
    width:auto;
    height:46px;
    padding:0 13px;
    font-size:23px;
  }
  .tooltech-kpis{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:8px;
    padding:14px 24px 12px;
    overflow:visible;
  }
  .tooltech-kpis>div{
    min-width:0;
    min-height:76px;
    padding:12px 13px;
  }
  .tooltech-kpis strong{
    font-size:24px;
  }
  .tooltech-kpis span{
    margin-top:6px;
    font-size:10.5px;
    line-height:1.2;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    white-space:normal;
    overflow:hidden;
  }
  .tooltech-filters{
    padding:0 24px 12px;
  }
  .tooltech-filters button,
  .tooltech-btn{
    min-height:34px;
    padding:0 11px;
    font-size:12px;
  }
  .tooltech-search{
    height:44px;
    margin:0 24px 12px;
  }
  .tooltech-list-top{
    padding:0 24px 12px;
  }
  .tooltech-tech-table{
    margin:0 24px 24px;
  }
  .tooltech-tech-head,
  .tooltech-tech-row{
    min-width:760px;
    grid-template-columns:minmax(190px,1fr) 70px 88px 142px 140px 110px;
    gap:8px;
  }
  .tooltech-tech-head{
    min-height:42px;
    padding:0 16px;
    font-size:11.5px;
    letter-spacing:2.4px;
  }
  .tooltech-tech-row{
    min-height:60px;
    padding:0 16px;
  }
  .tooltech-tech-row strong,
  .tooltech-tool-main strong{
    font-size:15px;
  }
  .tooltech-tech-row span,
  .tooltech-tool-main span{
    font-size:12.5px;
  }
  .tooltech-tech-row>b,
  .tooltech-tool-value{
    font-size:15px;
  }
  .tooltech-row-actions{
    gap:6px;
  }
  .tooltech-detail-grid{
    grid-template-columns:minmax(0,1fr) 240px;
    gap:18px;
    padding:20px 24px 28px;
  }
  .tooltech-detail-head{
    min-height:76px;
    padding:12px 24px;
    gap:10px;
  }
  .tooltech-detail-actions{
    gap:8px;
  }
  .tooltech-table-head,
  .tooltech-tool-row{
    min-width:100%;
    grid-template-columns:minmax(0,1fr) 76px;
    gap:8px;
  }
  .tooltech-tool-group{
    min-width:100%;
  }
  .tooltech-table-head span:nth-child(n+3){
    display:none;
  }
  .tooltech-tool-row{
    min-height:0;
    padding:10px 16px;
  }
  .tooltech-tool-main{
    min-width:0;
  }
  .tooltech-tool-main strong{
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
  }
  .tooltech-tool-main span{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }
  .tooltech-tool-state{
    grid-column:1;
    justify-content:flex-start;
  }
  .tooltech-tool-actions{
    grid-column:2;
    justify-content:flex-end;
    flex-wrap:wrap;
  }
  .tooltech-side{
    align-items:stretch;
  }
  .tooltech-avatar{
    align-self:center;
  }
  .tooltech-side-card>div{
    padding:12px 14px;
  }
  .tooltech-side-card small{
    padding:14px 14px 9px;
  }
  .tooltech-side-card>.tooltech-pill{
    margin:0 14px 10px;
  }
  .tooltech-side-card p{
    padding:0 14px 14px;
  }
}

@media (max-width: 860px){
  .tooltech-detail-grid{
    grid-template-columns:1fr;
  }
  .tooltech-side{
    order:1;
    position:relative;
    top:auto;
  }
  .tooltech-tools-panel{
    order:2;
  }
}

/* Herramienta por tecnico - operacion diaria */
.tooltech-tech-cell small{
  display:none;
}
.tooltech-tech-cell b{
  color:#cbd6e2;
  font-size:15px;
  font-weight:800;
}
.tooltech-tech-status{
  min-width:0;
}
.tooltech-tech-row:focus-visible,
.tooltech-btn:focus-visible,
.tooltech-quiet-btn:focus-visible,
.tooltech-plus:focus-visible{
  outline:2px solid #ffd500;
  outline-offset:2px;
}
.tooltech-review-counter{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border:1px solid rgba(255,213,0,.28);
  border-radius:10px;
  background:rgba(255,213,0,.07);
  color:#ffe268;
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-size:12px;
  font-weight:800;
  letter-spacing:.7px;
  text-transform:uppercase;
}
.tooltech-review-band>div{
  flex:1;
  min-width:0;
}
.tooltech-review-band.is-complete{
  border-color:rgba(46,171,111,.4);
  background:rgba(46,171,111,.07);
}
.tooltech-review-band.is-complete strong{
  color:#9ef2cc;
}
.tooltech-review-progress{
  height:5px;
  margin-top:12px;
  overflow:hidden;
  border-radius:999px;
  background:#263042;
}
.tooltech-review-progress i{
  display:block;
  height:100%;
  border-radius:inherit;
  background:#ffd500;
  transition:width .2s ease;
}
.tooltech-tool-row.is-reviewed{
  background:rgba(46,171,111,.045);
}
.tooltech-tool-row.is-busy{
  opacity:.66;
  pointer-events:none;
}
.tooltech-review-done{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:0 10px;
  border:1px solid rgba(46,171,111,.34);
  border-radius:9px;
  background:rgba(46,171,111,.09);
  color:#9ef2cc;
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-size:12px;
  font-weight:800;
  letter-spacing:.6px;
  text-transform:uppercase;
}
.tooltech-review-done.is-missing{
  border-color:rgba(233,96,112,.38);
  background:rgba(233,96,112,.09);
  color:#ffc2ca;
}
.tooltech-missing-editor{
  grid-column:1 / -1;
  display:grid;
  gap:8px;
  padding:12px;
  border:1px solid rgba(233,96,112,.34);
  border-radius:11px;
  background:#101720;
}
.tooltech-missing-editor label{
  color:#ffc2ca;
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-size:11px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
}
.tooltech-missing-editor textarea{
  width:100%;
  min-height:68px;
  resize:vertical;
  border:1px solid #30404e;
  border-radius:9px;
  background:#090d13;
  color:#e6ecf4;
  padding:10px 11px;
  font:13px/1.4 Inter,Arial,sans-serif;
  outline:none;
}
.tooltech-missing-editor textarea:focus{
  border-color:#ffd500;
  box-shadow:0 0 0 3px rgba(255,213,0,.09);
}
.tooltech-missing-editor>div{
  display:flex;
  justify-content:flex-end;
  gap:8px;
}

/* Asignacion tecnica - formulario guiado */
.prestamo-assignment-panel{
  max-width:680px!important;
  box-shadow:0 28px 80px rgba(0,0,0,.52);
}
.prestamo-assignment-head{
  padding:16px 20px!important;
  background:#182231;
}
.prestamo-assignment-subtitle{
  margin-top:4px;
  color:#93a2b5;
  font-size:12px;
  line-height:1.4;
}
.prestamo-assignment-progress{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  padding:0 20px;
  border-bottom:1px solid #263042;
  background:#10161f;
}
.prestamo-requirement{
  min-width:0;
  min-height:46px;
  display:flex;
  align-items:center;
  gap:7px;
  padding:8px 10px;
  color:#758398;
  font-size:11.5px;
  line-height:1.2;
}
.prestamo-requirement b{
  color:#667487;
  font-size:15px;
}
.prestamo-requirement.is-ready{
  color:#bfead7;
}
.prestamo-requirement.is-ready b{
  color:#62d69f;
}
.prestamo-assignment-body{
  padding:16px 20px!important;
  scrollbar-width:thin;
  scrollbar-color:#3a4657 transparent;
}
.prestamo-assignment-panel [data-prestamo-line]{
  grid-template-columns:36px minmax(0,1fr) 88px 82px!important;
  gap:8px!important;
}
.prestamo-assignment-panel [data-prestamo-line]:has([data-prestamo-remove-line]){
  grid-template-columns:36px minmax(0,1fr) 88px 82px 28px!important;
}
.prestamo-line-search{
  width:88px!important;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:6px;
}
.prestamo-line-search b{
  font-family:'Barlow Condensed',Inter,sans-serif;
  font-size:11px;
  letter-spacing:.7px;
  text-transform:uppercase;
}
.prestamo-assignment-foot{
  align-items:center;
  justify-content:space-between!important;
  padding:12px 20px!important;
}
.prestamo-submit-status{
  color:#8d9aac;
  font-size:11.5px;
}
.prestamo-submit-status.is-ready{
  color:#9ef2cc;
}
.prestamo-assignment-foot-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
#prestamo-modal-submit:disabled{
  opacity:1;
}

@media (max-width: 1100px){
  .tooltech-tech-table{
    overflow:visible;
    border:0;
    background:transparent;
  }
  .tooltech-tech-head{
    display:none;
  }
  .tooltech-tech-row{
    min-width:0;
    grid-template-columns:minmax(0,1fr) auto auto;
    grid-template-areas:
      "person status status"
      "tools value review"
      "actions actions actions";
    gap:10px 16px;
    min-height:0;
    margin-bottom:10px;
    padding:14px 16px;
    border:1px solid #293646;
    border-radius:13px;
    background:#141c28;
    cursor:pointer;
  }
  .tooltech-tech-row:hover{
    border-color:#3d4e63;
  }
  .tooltech-tech-person{
    grid-area:person;
    min-width:0;
  }
  .tooltech-tech-status{
    grid-area:status;
    justify-self:end;
  }
  .tooltech-tech-cell{
    min-width:0;
  }
  .tooltech-tech-cell--tools{grid-area:tools}
  .tooltech-tech-cell--value{grid-area:value}
  .tooltech-tech-cell--review{grid-area:review}
  .tooltech-tech-cell small{
    display:block;
    margin-bottom:3px;
    color:#718095;
    font-family:'Barlow Condensed',Inter,sans-serif;
    font-size:10px;
    font-weight:700;
    letter-spacing:.8px;
    text-transform:uppercase;
  }
  .tooltech-tech-cell span{
    margin:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .tooltech-row-actions{
    grid-area:actions;
    justify-content:flex-start;
    padding-top:2px;
  }
  .tooltech-review-band{
    align-items:stretch;
    flex-direction:column;
  }
  .tooltech-review-band .tooltech-btn{
    align-self:flex-start;
  }
}

@media (max-width: 760px){
  [data-prestamo-main-overlay],
  [data-prestamo-responsiva-overlay],
  [data-prestamo-zoom-overlay]{
    inset:0!important;
    padding:0!important;
  }
  [data-prestamo-panel]{
    max-width:none!important;
    max-height:100%!important;
    border-radius:0!important;
  }
  .prestamo-assignment-overlay{
    inset:0!important;
    padding:0!important;
    align-items:stretch!important;
  }
  .prestamo-assignment-panel{
    max-width:none!important;
    max-height:none!important;
    height:100%;
    border:0!important;
    border-radius:0!important;
  }
  .prestamo-assignment-progress{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:0 12px;
  }
  .prestamo-requirement{
    min-height:38px;
    padding:6px 8px;
  }
  .prestamo-assignment-body{
    padding:14px!important;
  }
  .prestamo-assignment-panel [data-prestamo-line],
  .prestamo-assignment-panel [data-prestamo-line]:has([data-prestamo-remove-line]){
    grid-template-columns:32px minmax(0,1fr) 76px!important;
  }
  .prestamo-assignment-panel [data-prestamo-line] .almx-salida-qty{
    grid-column:2;
  }
  .prestamo-assignment-panel [data-prestamo-remove-line]{
    grid-column:3;
    grid-row:2;
    justify-self:end;
  }
  .prestamo-line-search{
    width:76px!important;
  }
  .prestamo-assignment-foot{
    align-items:stretch;
    flex-direction:column;
  }
  .prestamo-assignment-foot-actions{
    width:100%;
  }
  .prestamo-assignment-foot-actions button{
    flex:1;
  }
  .tooltech-detail-head{
    align-items:flex-start;
  }
  .tooltech-detail-actions{
    flex-wrap:wrap;
  }
  .tooltech-review-band{
    align-items:stretch;
    flex-direction:column;
  }
}

@media (max-width: 560px){
  .tooltech-plus{
    width:44px;
    min-width:44px;
    padding:0;
  }
  .tooltech-plus b{
    display:none;
  }
  .tooltech-kpis{
    padding-left:16px;
    padding-right:16px;
  }
  .tooltech-filters,
  .tooltech-list-top{
    padding-left:16px;
    padding-right:16px;
  }
  .tooltech-search,
  .tooltech-tech-table{
    margin-left:16px;
    margin-right:16px;
  }
  .tooltech-tech-row{
    grid-template-columns:1fr 1fr;
    grid-template-areas:
      "person person"
      "status status"
      "tools value"
      "review review"
      "actions actions";
  }
  .tooltech-tech-status{
    justify-self:start;
  }
  .tooltech-row-actions .tooltech-btn{
    flex:1;
  }
}

/* Herramienta por tecnico - escala operativa compacta */
#page-prestamo-herramienta{
  padding:12px 16px 32px;
}
.tooltech-shell{
  min-height:calc(100vh - 84px);
  border-radius:12px;
}
.tooltech-kpis{
  gap:6px;
  padding:10px 14px 8px;
}
.tooltech-kpis>div{
  min-height:56px;
  padding:9px 11px;
  border-radius:10px;
}
.tooltech-kpis strong{
  font-size:20px;
  line-height:1;
}
.tooltech-kpis span{
  margin-top:5px;
  font-size:9.5px;
  line-height:1.15;
}
.tooltech-filters{
  gap:6px;
  padding:0 14px 8px;
}
.tooltech-filters button,
.tooltech-btn{
  min-height:30px;
  padding:0 10px;
  border-radius:8px;
  font-size:11px;
  letter-spacing:.55px;
}
.tooltech-search{
  height:36px;
  margin:0 14px 8px;
  padding:0 11px;
  border-radius:9px;
}
.tooltech-search span{
  font-size:17px;
}
.tooltech-search input{
  font-size:13px;
}
.tooltech-list-top{
  min-height:32px;
  padding:0 14px 7px;
}
.tooltech-list-top span{
  font-size:13px;
  letter-spacing:.9px;
}
.tooltech-tech-table{
  margin:0 14px 16px;
  border-radius:10px;
}
.tooltech-tech-head{
  min-height:34px;
  padding:0 12px;
  font-size:10px;
  letter-spacing:1.6px;
}
.tooltech-tech-row{
  min-height:52px;
  padding:0 12px;
}
.tooltech-tech-row strong,
.tooltech-tool-main strong{
  font-size:13px;
  line-height:1.18;
}
.tooltech-tech-row span,
.tooltech-tool-main span{
  font-size:11px;
}
.tooltech-tech-cell b,
.tooltech-tech-row>b,
.tooltech-tool-value{
  font-size:13px;
}
.tooltech-pill{
  min-height:24px;
  padding:0 8px;
  border-radius:7px;
  font-size:10px;
  letter-spacing:.55px;
}
.tooltech-row-actions,
.tooltech-detail-actions,
.tooltech-tool-actions{
  gap:6px;
}
.tooltech-detail-head{
  min-height:54px;
  padding:9px 14px;
  gap:8px;
}
.tooltech-detail-head>strong{
  font-size:17px;
}
.tooltech-detail-grid{
  grid-template-columns:minmax(0,1fr) 210px;
  gap:12px;
  padding:14px 14px 20px;
}
.tooltech-table,
.tooltech-side-card{
  border-radius:10px;
}
.tooltech-table-head{
  min-height:34px;
  padding:0 12px;
  font-size:10px;
  letter-spacing:1.7px;
}
.tooltech-tool-group{
  min-height:30px;
  padding:0 12px;
  font-size:9.5px;
}
.tooltech-tool-row{
  min-height:54px;
  padding:8px 12px;
}
.tooltech-quiet-btn{
  min-height:28px;
  padding:0 9px;
  border-radius:7px;
  font-size:10px;
}
.tooltech-avatar{
  width:48px;
  height:48px;
  font-size:18px;
}
.tooltech-side{
  gap:7px;
}
.tooltech-side h2{
  font-size:16px;
}
.tooltech-side>p{
  font-size:11px;
}
.tooltech-side-card>div{
  padding:9px 11px;
}
.tooltech-side-card span,
.tooltech-side-card p,
.tooltech-side-card small{
  font-size:10px;
}
.tooltech-side-card strong{
  font-size:18px;
}
.tooltech-side-card small{
  padding:11px 11px 7px;
}
.tooltech-side-card>.tooltech-pill{
  margin:0 11px 8px;
}
.tooltech-side-card p{
  padding:0 11px 10px;
}
.tooltech-review-band{
  gap:8px;
  margin-bottom:10px;
  padding:10px 12px;
  border-radius:10px;
}
.tooltech-review-band strong{
  font-size:13px;
}
.tooltech-review-band span{
  margin-top:3px;
  font-size:10.5px;
  line-height:1.35;
}
.tooltech-review-counter{
  min-height:30px;
  padding:0 9px;
  border-radius:8px;
  font-size:10.5px;
}
.prestamo-assignment-panel{
  max-width:620px!important;
  border-radius:13px!important;
}
.prestamo-assignment-head{
  padding:12px 16px!important;
}
.prestamo-assignment-progress{
  padding:0 14px;
}
.prestamo-requirement{
  min-height:36px;
  padding:6px 8px;
  font-size:10.5px;
}
.prestamo-assignment-body{
  padding:12px 16px!important;
  gap:10px!important;
}
.prestamo-assignment-foot{
  padding:9px 16px!important;
}

@media (max-width: 1100px){
  .tooltech-kpis{
    grid-template-columns:repeat(5,minmax(0,1fr));
    gap:6px;
    padding:10px 14px 8px;
  }
  .tooltech-kpis>div{
    min-height:56px;
    padding:9px 10px;
  }
  .tooltech-tech-table{
    margin:0 14px 16px;
  }
  .tooltech-tech-row{
    grid-template-columns:minmax(170px,1fr) 88px 90px 130px;
    grid-template-areas:
      "person tools value status"
      "review review actions actions";
    gap:7px 12px;
    margin-bottom:7px;
    padding:10px 12px;
    border-radius:10px;
  }
  .tooltech-tech-cell small{
    font-size:9px;
    letter-spacing:.45px;
  }
  .tooltech-row-actions{
    padding-top:0;
    justify-content:flex-end;
  }
  .tooltech-detail-grid{
    grid-template-columns:minmax(0,1fr) 210px;
    gap:12px;
    padding:14px 14px 20px;
  }
  .tooltech-detail-head{
    min-height:54px;
    padding:9px 14px;
  }
}

@media (max-width: 860px){
  .tooltech-detail-grid{
    grid-template-columns:1fr;
  }
}

@media (max-width: 560px){
  #page-prestamo-herramienta{
    padding:8px 0 24px;
  }
  .tooltech-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:10px 12px 8px;
  }
  .tooltech-kpis>div:last-child{
    grid-column:1 / -1;
  }
  .tooltech-filters,
  .tooltech-list-top{
    padding-left:12px;
    padding-right:12px;
  }
  .tooltech-search,
  .tooltech-tech-table{
    margin-left:12px;
    margin-right:12px;
  }
}

/* Detalle tecnico: contener columnas y acciones dentro de la reticula */
.tooltech-detail-grid{
  grid-template-columns:minmax(0,1fr) clamp(250px,22vw,330px);
  gap:clamp(12px,1.5vw,24px);
  padding:clamp(14px,1.8vw,26px);
}
.tooltech-tools-panel,
.tooltech-table{
  min-width:0;
  width:100%;
}
.tooltech-table{
  overflow:hidden;
}
.tooltech-table-head,
.tooltech-tool-row{
  min-width:0;
  grid-template-columns:minmax(0,1fr) 84px 120px minmax(205px,auto);
  gap:12px;
  padding-left:16px;
  padding-right:16px;
}
.tooltech-tool-main{
  min-width:0;
}
.tooltech-tool-main strong{
  overflow-wrap:anywhere;
}
.tooltech-tool-value,
.tooltech-tool-state{
  min-width:0;
}
.tooltech-tool-actions{
  min-width:0;
  flex-wrap:wrap;
  gap:6px;
}
.tooltech-quiet-btn{
  min-width:0;
  white-space:nowrap;
}
.tooltech-review-dates{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  padding:12px 11px;
}
.tooltech-review-dates>div{
  min-width:0;
}
.tooltech-review-dates span{
  display:block;
  margin-bottom:3px;
  font-size:10px;
}
.tooltech-review-dates strong{
  display:block;
  color:#dbe4ef;
  font-size:14px!important;
  line-height:1.2;
  white-space:nowrap;
}
.tooltech-side-card p{
  overflow-wrap:anywhere;
}

@media (max-width: 1100px){
  .tooltech-detail-grid{
    grid-template-columns:minmax(0,1fr);
    gap:14px;
  }
  .tooltech-table-head{
    display:none;
  }
  .tooltech-tool-row{
    grid-template-columns:minmax(0,1fr) minmax(180px,auto);
    grid-template-areas:
      "main value"
      "state actions";
    gap:7px 10px;
    padding:9px 11px;
  }
  .tooltech-tool-main{grid-area:main}
  .tooltech-tool-value{grid-area:value;justify-self:end}
  .tooltech-tool-state{grid-area:state}
  .tooltech-tool-actions{
    grid-area:actions;
    justify-content:flex-end;
  }
  .tooltech-side{
    order:2;
    position:static;
    display:grid;
    grid-template-columns:44px minmax(110px,1fr) repeat(2,minmax(0,1fr));
    align-items:center;
    gap:8px;
  }
  .tooltech-side .tooltech-avatar{
    grid-column:1;
    grid-row:1 / span 2;
    align-self:center;
  }
  .tooltech-side h2{
    grid-column:2;
    grid-row:1;
    text-align:left;
  }
  .tooltech-side>p{
    grid-column:2;
    grid-row:2;
    margin:0;
    text-align:left;
  }
  .tooltech-side-card{
    grid-row:1 / span 2;
    height:100%;
  }
  .tooltech-side>.tooltech-side-card:nth-of-type(2){
    grid-column:3;
  }
  .tooltech-side>.tooltech-side-card:nth-of-type(3){
    grid-column:4;
  }
}

@media (max-width: 860px){
  .tooltech-side{
    grid-template-columns:40px minmax(100px,1fr) repeat(2,minmax(0,1fr));
    gap:7px;
  }
  .tooltech-side-card>div{
    gap:6px;
  }
  .tooltech-side-card strong{
    font-size:16px;
  }
}

@media (max-width: 560px){
  .tooltech-detail-head{
    flex-wrap:wrap;
  }
  .tooltech-detail-head>strong{
    flex:1 1 calc(100% - 120px);
  }
  .tooltech-detail-actions{
    width:100%;
    margin-left:0;
  }
  .tooltech-detail-actions>*{
    flex:1 1 auto;
  }
  .tooltech-detail-grid{
    padding:12px;
  }
  .tooltech-tool-row{
    grid-template-columns:minmax(0,1fr) 72px;
    grid-template-areas:
      "main value"
      "state state"
      "actions actions";
  }
  .tooltech-tool-actions{
    justify-content:flex-start;
  }
  .tooltech-side{
    grid-template-columns:40px minmax(0,1fr);
  }
  .tooltech-side-card{
    grid-column:1 / -1!important;
    grid-row:auto;
  }
  .tooltech-side .tooltech-avatar{
    grid-column:1;
    grid-row:1 / span 2;
  }
  .tooltech-side h2{
    grid-column:2;
    grid-row:1;
  }
  .tooltech-side>p{
    grid-column:2;
    grid-row:2;
  }
  .tooltech-side-card>div{
    padding:8px 10px;
  }
}

/* Detalle de asignacion: densidad compacta sin forzar cuatro columnas */
.prestamo-detail-overlay{
  padding:12px!important;
  overflow:hidden;
}
.prestamo-detail-panel{
  box-sizing:border-box;
  width:min(560px,100%);
  max-width:560px;
  max-height:min(88vh,760px);
  border-radius:14px!important;
  box-shadow:0 22px 54px rgba(0,0,0,.4);
}
.prestamo-detail-head{
  min-width:0;
}
.prestamo-detail-head>div:first-child{
  min-width:0;
}
.prestamo-detail-title{
  overflow-wrap:anywhere;
}
.prestamo-detail-close{
  grid-column:2;
  grid-row:1;
  width:28px;
  height:28px;
}
.prestamo-detail-actions{
  min-width:0;
  align-items:center;
}
.prestamo-detail-actions button{
  min-width:0;
  max-width:100%;
  white-space:nowrap;
}
.prestamo-detail-body{
  min-width:0;
  scrollbar-gutter:stable;
  overscroll-behavior:contain;
}
.prestamo-detail-data-grid{
  min-width:0;
}
.prestamo-detail-card{
  min-width:0;
  overflow:hidden;
}
.prestamo-detail-card>div:last-child{
  overflow-wrap:anywhere;
}
.prestamo-evidence-section{
  min-width:0;
}
.prestamo-evidence-title{
  font-size:11px;
  letter-spacing:1px;
}
.prestamo-evidence-card{
  min-width:0;
  padding:10px!important;
  gap:8px!important;
}
.prestamo-evidence-subject{
  line-height:1.35;
  overflow-wrap:anywhere;
}
.prestamo-evidence-photos{
  grid-template-columns:repeat(auto-fill,minmax(64px,88px))!important;
  gap:6px!important;
}
.prestamo-evidence-signature{
  max-width:220px!important;
  height:88px!important;
}

@media (max-width: 900px){
  .prestamo-detail-overlay{
    top:calc(var(--topbar-h) + var(--safe-top))!important;
    left:0!important;
    right:0!important;
    bottom:calc(var(--nav-h) + var(--safe-bot))!important;
    padding:10px!important;
  }
  .prestamo-detail-panel{
    width:min(560px,100%);
    max-width:min(560px,100%);
    max-height:100%;
  }
}

@media (max-width: 560px){
  .prestamo-detail-head{
    padding:11px 12px!important;
    gap:7px 10px!important;
  }
  .prestamo-detail-title{
    font-size:14px!important;
  }
  .prestamo-detail-actions{
    gap:5px!important;
  }
  .prestamo-detail-actions button{
    height:29px!important;
    padding:0 8px!important;
    font-size:10.5px!important;
  }
  .prestamo-detail-body{
    padding:11px 12px!important;
    gap:9px!important;
  }
  .prestamo-detail-data-grid{
    gap:6px!important;
  }
  .prestamo-detail-card{
    padding:8px!important;
  }
}

@media (max-width: 360px){
  .prestamo-detail-data-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  .prestamo-detail-actions button{
    flex:1 1 120px;
  }
}

/* Detalle de herramientas asignadas: replica la tabla de referencia */
.tooltech-detail-grid--reference{
  display:block;
  padding:16px 22px 24px;
}
.tooltech-detail-grid--reference .tooltech-tools-panel{
  width:100%;
  min-width:0;
}
.tooltech-table--reference{
  width:100%;
  min-width:0;
  overflow:hidden;
  border:2px solid #2b3948;
  border-radius:24px;
  background:#172030;
}
.tooltech-table--reference .tooltech-table-head,
.tooltech-table--reference .tooltech-tool-row{
  min-width:0;
  grid-template-columns:minmax(0,1.6fr) minmax(82px,.34fr) minmax(0,1.8fr);
  grid-template-areas:none;
  gap:12px;
  padding-left:32px;
  padding-right:32px;
}
.tooltech-table--reference .tooltech-table-head{
  display:grid;
  min-height:74px;
  align-items:center;
  background:#0b0d13;
  color:#9aaab8;
  font-size:17px;
  letter-spacing:2.8px;
}
.tooltech-table--reference .tooltech-tool-group{
  display:flex;
  align-items:center;
  min-width:0;
  min-height:62px;
  padding:0 32px;
  border-top:1px solid #293345;
  background:#121820;
  color:#8f9eae;
  font-size:16px;
  letter-spacing:2.4px;
}
.tooltech-table--reference .tooltech-tool-row{
  min-height:108px;
  align-items:center;
  border-top:1px solid #293345;
  background:#182131;
  transition:background .16s ease;
}
.tooltech-table--reference .tooltech-tool-row:hover{
  background:#1d2635;
}
.tooltech-table--reference .tooltech-tool-row.is-missing,
.tooltech-table--reference .tooltech-tool-row.is-missing:hover{
  background:#242536;
}
.tooltech-table--reference .tooltech-tool-main,
.tooltech-table--reference .tooltech-tool-value,
.tooltech-table--reference .tooltech-tool-state,
.tooltech-table--reference .tooltech-tool-actions{
  grid-area:auto;
  min-width:0;
}
.tooltech-table--reference .tooltech-tool-main strong{
  color:#edf1f7;
  font-size:25px;
  line-height:1.2;
}
.tooltech-table--reference .tooltech-tool-main span{
  color:#8d9bab;
  font-size:20px;
  line-height:1.25;
}
.tooltech-table--reference .tooltech-tool-value{
  color:#c4ced9;
  font-size:27px;
  font-weight:750;
  white-space:nowrap;
}
.tooltech-table--reference .tooltech-tool-state{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.tooltech-table--reference .tooltech-pill{
  min-height:42px;
  padding:0 19px;
  border-radius:999px;
  font-size:16px;
  letter-spacing:.2px;
}
.tooltech-table--reference .tooltech-tool-actions{
  display:flex;
  align-items:center;
  gap:14px;
  flex-wrap:wrap;
}
.tooltech-table--reference .tooltech-quiet-btn{
  min-height:58px;
  padding:0 20px;
  border:1px solid #344454;
  border-radius:13px;
  background:#202534;
  color:#c3ccd7;
  font-size:15px;
  font-weight:800;
  letter-spacing:.25px;
}
.tooltech-table--reference .tooltech-quiet-btn--danger{
  border-color:rgba(213,99,107,.5);
  background:rgba(198,75,86,.12);
  color:#e7a0a0;
}
.tooltech-table--reference .tooltech-payroll-btn{
  border-width:2px;
  padding-inline:20px;
  text-transform:uppercase;
}
.tooltech-table--reference .tooltech-missing-editor{
  grid-column:1 / -1;
}

@media (max-width: 1180px){
  .tooltech-detail-grid--reference{
    padding:14px;
  }
  .tooltech-table--reference .tooltech-table-head{
    display:none;
  }
  .tooltech-table--reference .tooltech-tool-row{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "main value"
      "state state";
    gap:10px 14px;
    padding:16px 20px;
  }
  .tooltech-table--reference .tooltech-tool-main{grid-area:main}
  .tooltech-table--reference .tooltech-tool-value{grid-area:value}
  .tooltech-table--reference .tooltech-tool-state{grid-area:state}
  .tooltech-table--reference .tooltech-tool-actions{grid-area:auto}
  .tooltech-table--reference .tooltech-tool-group{
    min-height:48px;
    padding:0 20px;
    font-size:13px;
  }
  .tooltech-table--reference .tooltech-tool-row{
    min-height:0;
  }
  .tooltech-table--reference .tooltech-tool-main strong{
    font-size:20px;
  }
  .tooltech-table--reference .tooltech-tool-main span{
    font-size:15px;
  }
  .tooltech-table--reference .tooltech-tool-value{
    font-size:22px;
  }
  .tooltech-table--reference .tooltech-pill{
    min-height:36px;
    padding:0 14px;
    font-size:13px;
  }
  .tooltech-table--reference .tooltech-quiet-btn{
    min-height:44px;
    padding:0 14px;
    font-size:12px;
  }
}

@media (max-width: 560px){
  .tooltech-detail-grid--reference{
    padding:10px;
  }
  .tooltech-table--reference{
    border-radius:14px;
  }
  .tooltech-table--reference .tooltech-tool-row{
    gap:8px 10px;
    padding:13px 14px;
  }
  .tooltech-table--reference .tooltech-tool-main strong{
    font-size:17px;
  }
  .tooltech-table--reference .tooltech-tool-main span{
    font-size:12px;
  }
  .tooltech-table--reference .tooltech-tool-value{
    font-size:16px;
  }
  .tooltech-table--reference .tooltech-tool-state{
    gap:8px;
  }
  .tooltech-table--reference .tooltech-tool-actions{
    gap:7px;
  }
  .tooltech-table--reference .tooltech-quiet-btn{
    min-height:38px;
    padding:0 10px;
    font-size:10px;
  }
}

/* Recalibracion global y resumen lateral del modulo tecnico */
#page-prestamo-herramienta{
  min-width:0;
  padding:8px 12px 20px;
}
.tooltech-shell{
  container-type:inline-size;
  width:100%;
  max-width:100%;
  min-width:0;
  min-height:calc(100vh - 76px);
  border-radius:10px;
}
.tooltech-topbar{
  height:62px;
  padding:10px 18px;
}
.tooltech-kicker{
  font-size:10px;
  letter-spacing:2.2px;
}
.tooltech-topbar h1{
  margin-top:3px;
  font-size:20px;
}
.tooltech-plus{
  min-width:38px;
  height:38px;
  padding:0 11px;
  border-radius:9px;
  font-size:18px;
}
.tooltech-kpis{
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:7px;
  padding:14px 18px 10px;
  overflow:visible;
}
.tooltech-kpis>div{
  min-width:0;
  min-height:62px;
  padding:10px 12px;
  border-radius:10px;
}
.tooltech-kpis strong{
  font-size:22px;
}
.tooltech-kpis span{
  margin-top:5px;
  font-size:11px;
  line-height:1.2;
}
.tooltech-filters{
  gap:6px;
  padding:0 18px 10px;
}
.tooltech-filters button,
.tooltech-shell .tooltech-btn{
  min-height:32px;
  padding:0 11px;
  border-radius:8px;
  font-size:11px;
  letter-spacing:.45px;
}
.tooltech-search{
  height:38px;
  margin:0 18px 10px;
  padding:0 12px;
  border-radius:9px;
}
.tooltech-search input{
  font-size:13px;
}
.tooltech-list-top{
  min-height:34px;
  padding:0 18px 8px;
}
.tooltech-list-top span{
  font-size:12px;
}
.tooltech-tech-table{
  min-width:0;
  margin:0 18px 18px;
  overflow:hidden;
  border-radius:10px;
}
.tooltech-tech-head,
.tooltech-tech-row{
  min-width:0;
  grid-template-columns:minmax(150px,1.4fr) 66px 86px minmax(125px,1.1fr) 112px auto;
  gap:8px;
  padding-left:14px;
  padding-right:14px;
}
.tooltech-tech-head{
  min-height:38px;
  font-size:10px;
  letter-spacing:1.5px;
}
.tooltech-tech-row{
  min-height:58px;
}
.tooltech-tech-row strong{
  font-size:14px;
}
.tooltech-tech-row span,
.tooltech-tech-cell span{
  font-size:11px;
}
.tooltech-tech-cell b,
.tooltech-tech-row>b{
  font-size:13px;
}
.tooltech-row-actions{
  gap:5px;
}
.tooltech-detail-head{
  min-height:56px;
  padding:9px 16px;
  gap:10px;
}
.tooltech-detail-head>strong{
  font-size:18px;
}
.tooltech-detail-actions{
  gap:6px;
}
.tooltech-detail-grid--reference{
  display:grid;
  grid-template-columns:minmax(0,1fr) 240px;
  gap:14px;
  align-items:start;
  padding:14px 16px 18px;
}
.tooltech-detail-grid--reference .tooltech-tools-panel,
.tooltech-detail-grid--reference .tooltech-table--reference{
  min-width:0;
  width:100%;
}
.tooltech-table--reference{
  border-radius:14px;
}
.tooltech-table--reference .tooltech-table-head,
.tooltech-table--reference .tooltech-tool-row{
  grid-template-columns:minmax(0,1.5fr) minmax(68px,.3fr) minmax(0,1.8fr);
  gap:8px;
  padding-left:16px;
  padding-right:16px;
}
.tooltech-table--reference .tooltech-table-head{
  min-height:44px;
  font-size:11px;
  letter-spacing:1.8px;
}
.tooltech-table--reference .tooltech-tool-group{
  min-height:38px;
  padding:0 16px;
  font-size:11px;
  letter-spacing:1.6px;
}
.tooltech-table--reference .tooltech-tool-row{
  min-height:60px;
}
.tooltech-table--reference .tooltech-tool-main strong{
  font-size:15px;
  line-height:1.2;
}
.tooltech-table--reference .tooltech-tool-main span{
  font-size:12px;
  line-height:1.2;
}
.tooltech-table--reference .tooltech-tool-value{
  font-size:16px;
}
.tooltech-table--reference .tooltech-tool-state{
  gap:7px;
}
.tooltech-table--reference .tooltech-pill{
  min-height:28px;
  padding:0 10px;
  font-size:10px;
}
.tooltech-table--reference .tooltech-tool-actions{
  gap:6px;
}
.tooltech-table--reference .tooltech-quiet-btn{
  min-height:28px;
  padding:0 10px;
  border-radius:8px;
  font-size:10px;
}
.tooltech-side--reference{
  position:sticky;
  top:12px;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:8px;
  min-width:0;
}
.tooltech-side-profile{
  display:flex;
  align-items:center;
  gap:9px;
  min-width:0;
  padding:2px 2px 6px;
}
.tooltech-side-profile .tooltech-avatar{
  flex:0 0 38px;
  width:38px;
  height:38px;
  font-size:15px;
}
.tooltech-side-profile>div:last-child{
  min-width:0;
}
.tooltech-side-profile h2{
  overflow:hidden;
  color:#edf1f7;
  font-size:13px;
  line-height:1.2;
  text-align:left;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tooltech-side-profile p{
  overflow:hidden;
  margin:3px 0 0;
  color:#8998a8;
  font-size:10px;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tooltech-side--reference .tooltech-side-card{
  border-radius:9px;
  background:#111720;
}
.tooltech-side--reference .tooltech-side-card>div{
  min-height:36px;
  align-items:center;
  gap:8px;
  padding:7px 10px;
}
.tooltech-side--reference .tooltech-side-card span,
.tooltech-side--reference .tooltech-side-card small,
.tooltech-side--reference .tooltech-side-card p{
  font-size:10px;
}
.tooltech-side--reference .tooltech-side-card strong{
  font-size:14px;
}
.tooltech-side--reference .tooltech-side-card small{
  padding:10px 10px 7px;
  letter-spacing:1px;
}
.tooltech-side--reference .tooltech-side-card>.tooltech-pill{
  min-height:23px;
  margin:0 10px 7px;
  padding:0 8px;
  font-size:9px;
}
.tooltech-side--reference .tooltech-review-dates{
  gap:6px;
  padding:7px 9px;
}
.tooltech-side--reference .tooltech-review-dates span{
  margin-bottom:2px;
  font-size:9px;
}
.tooltech-side--reference .tooltech-review-dates strong{
  font-size:11px!important;
}
.tooltech-side--reference .tooltech-side-card p{
  padding:0 10px 8px;
}

@container (max-width: 760px){
  .tooltech-table--reference .tooltech-tool-row{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "main value"
      "state state";
    gap:6px 10px;
    min-height:0;
    padding:8px 12px;
  }
  .tooltech-table--reference .tooltech-tool-main{grid-area:main}
  .tooltech-table--reference .tooltech-tool-value{grid-area:value}
  .tooltech-table--reference .tooltech-tool-state{
    grid-area:state;
    display:flex;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:8px;
  }
  .tooltech-table--reference .tooltech-tool-actions{
    flex-wrap:wrap;
    justify-content:flex-end;
    gap:5px;
  }
  .tooltech-table--reference .tooltech-quiet-btn{
    min-height:26px;
    padding:0 8px;
    font-size:9px;
  }
  .tooltech-table--reference .tooltech-tool-main strong{
    font-size:14px;
    overflow-wrap:anywhere;
  }
  .tooltech-table--reference .tooltech-tool-value{
    font-size:14px;
  }
  .tooltech-table--reference .tooltech-pill{
    min-height:22px;
    padding:0 8px;
    font-size:9px;
  }
}

@container (max-width: 940px){
  .tooltech-kpis{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .tooltech-tech-table{
    margin-right:12px;
    margin-left:12px;
  }
  .tooltech-tech-head{
    display:none;
  }
  .tooltech-tech-row{
    grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:
      "person status"
      "tools value"
      "review review"
      "actions actions";
    gap:7px 10px;
    min-height:0;
    padding:10px 12px;
  }
  .tooltech-tech-person{grid-area:person;min-width:0}
  .tooltech-tech-status{grid-area:status;justify-self:end}
  .tooltech-tech-cell--tools{grid-area:tools}
  .tooltech-tech-cell--value{grid-area:value;justify-self:end}
  .tooltech-tech-cell--review{grid-area:review;min-width:0}
  .tooltech-row-actions{grid-area:actions;justify-content:flex-start}
  .tooltech-tech-cell small{
    display:block;
    margin-bottom:2px;
    color:#77889a;
    font-size:9px;
  }
  .tooltech-detail-grid--reference{
    grid-template-columns:minmax(0,1fr);
    gap:10px;
    padding:12px;
  }
  #page-prestamo-herramienta .tooltech-side--reference{
    position:static;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:7px;
  }
  .tooltech-side-profile{
    grid-area:1 / 1 / 2 / -1;
    padding:0 2px;
  }
  #page-prestamo-herramienta .tooltech-side--reference>.tooltech-side-card--summary{
    grid-area:2 / 1 / 3 / 2;
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  #page-prestamo-herramienta .tooltech-side--reference>.tooltech-side-card--summary>div{
    flex-direction:column;
    align-items:flex-start;
    justify-content:center;
    gap:3px;
    min-width:0;
    padding:7px 9px;
    border-top:0;
    border-left:1px solid #263042;
  }
  #page-prestamo-herramienta .tooltech-side--reference>.tooltech-side-card--summary>div:first-child{
    border-left:0;
  }
  #page-prestamo-herramienta .tooltech-side--reference>.tooltech-side-card--review{
    grid-area:2 / 2 / 3 / 3;
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    align-items:center;
    gap:6px 10px;
    padding:8px 10px;
  }
  #page-prestamo-herramienta .tooltech-side--reference>.tooltech-side-card--review small{
    grid-column:1 / -1;
    padding:0;
  }
  #page-prestamo-herramienta .tooltech-side--reference>.tooltech-side-card--review>.tooltech-pill{
    grid-column:1;
    grid-row:2;
    margin:0;
  }
  #page-prestamo-herramienta .tooltech-side--reference>.tooltech-side-card--review .tooltech-review-dates{
    grid-column:2;
    grid-row:2;
    padding:0;
  }
  #page-prestamo-herramienta .tooltech-side--reference>.tooltech-side-card--review p{
    grid-column:3;
    grid-row:2;
    align-self:center;
    padding:0;
    white-space:nowrap;
  }
}

@container (max-width: 680px){
  .tooltech-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding:10px 12px 8px;
  }
  .tooltech-kpis>div{
    min-height:54px;
    padding:8px 9px;
  }
  .tooltech-kpis strong{
    font-size:19px;
  }
  .tooltech-kpis span{
    font-size:9px;
  }
  .tooltech-tech-row{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr);
    grid-template-areas:
      "person person"
      "status status"
      "tools value"
      "review review"
      "actions actions";
  }
  .tooltech-tech-status,
  .tooltech-tech-cell--value{
    justify-self:start;
  }
  .tooltech-side--reference .tooltech-side-card--review{
    grid-template-columns:minmax(0,1fr) auto;
  }
  #page-prestamo-herramienta .tooltech-side--reference{
    grid-template-columns:minmax(0,1fr);
  }
  .tooltech-side-profile,
  #page-prestamo-herramienta .tooltech-side--reference>.tooltech-side-card--summary,
  #page-prestamo-herramienta .tooltech-side--reference>.tooltech-side-card--review{
    grid-area:auto;
  }
  .tooltech-side--reference .tooltech-side-card--review .tooltech-review-dates{
    grid-column:1 / -1;
    grid-row:3;
  }
  .tooltech-side--reference .tooltech-side-card--review p{
    grid-column:1 / -1;
    grid-row:4;
    white-space:normal;
  }
}

@container (max-width: 440px){
  .tooltech-detail-grid--reference{
    padding:8px;
  }
  .tooltech-side--reference .tooltech-side-card--summary{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
  .tooltech-side--reference .tooltech-side-card--summary>div:last-child{
    grid-column:1 / -1;
    border-top:1px solid #263042;
    border-left:0;
  }
  .tooltech-table--reference .tooltech-tool-row{
    padding:11px 12px;
  }
}

@media (max-width: 760px){
  .rh-tool-payroll-request{
    grid-template-columns:minmax(0,1fr) !important;
  }
}

@media (max-width: 480px){
  .rh-tool-payroll-controls{
    grid-template-columns:minmax(0,1fr) 74px !important;
  }
  .rh-tool-payroll-controls select,
  .rh-tool-payroll-controls button,
  .rh-tool-payroll-controls input[type="text"]{
    grid-column:1 / -1;
    width:100%;
  }
}

@media screen{
  #mainScroll.has-prestamo-responsiva{
    z-index:121;
  }

  .alm-prestamo-responsiva-overlay{
    position:fixed;
    inset:0;
    z-index:120;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:clamp(8px,2vw,24px);
    background:rgba(4,5,8,.82);
    backdrop-filter:blur(3px);
  }

  .alm-prestamo-responsiva-panel{
    display:flex;
    flex-direction:column;
    width:min(1080px,100%);
    height:min(90vh,960px);
    height:min(90dvh,960px);
    max-height:calc(100vh - 16px);
    max-height:calc(100dvh - 16px);
    min-width:0;
    overflow:hidden;
    border:1px solid #30404e;
    border-radius:18px;
    background:#18202e;
    box-shadow:0 24px 72px rgba(0,0,0,.42);
  }

  .alm-prestamo-responsiva-panel > :first-child{
    flex-shrink:0;
    min-width:0;
  }

  .alm-prestamo-responsiva-actions{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:8px;
    flex-shrink:0;
  }

  .alm-prestamo-responsiva-action{
    min-height:34px;
    padding:0 11px;
    border:1px solid #30404e;
    border-radius:8px;
    background:#18202e;
    color:#d8e0ea;
    font:600 11px 'Barlow Condensed',sans-serif;
    letter-spacing:.35px;
    cursor:pointer;
    white-space:nowrap;
  }

  .alm-prestamo-responsiva-action:hover{
    border-color:#718096;
    background:#202b3a;
  }

  .alm-prestamo-responsiva-action--primary{
    border-color:transparent;
    background:linear-gradient(135deg,#ffd500,#ffe040);
    color:#0a0c10;
  }

  .alm-prestamo-responsiva-action--primary:hover{
    border-color:transparent;
    background:#ffe040;
  }

  .alm-prestamo-responsiva-action:disabled{
    opacity:.62;
    cursor:wait;
  }

  .alm-prestamo-responsiva-actions button:focus-visible{
    outline:2px solid #ffd500;
    outline-offset:2px;
  }

  .alm-prestamo-responsiva-content{
    flex:1;
    min-width:0;
    min-height:0;
    overflow:auto;
    overscroll-behavior:contain;
    padding:clamp(8px,1.8vw,18px);
    background:#d7dce4;
    scrollbar-gutter:stable;
  }

  #alm-prestamo-responsiva-body{
    width:100%;
    min-width:0;
    margin:0 auto;
  }

  #alm-prestamo-responsiva-body > :not(.btpdf){
    box-sizing:border-box;
    width:100% !important;
    max-width:760px;
    margin-right:auto !important;
    margin-left:auto !important;
    overflow-wrap:anywhere;
  }

  #alm-prestamo-responsiva-body table{
    width:100% !important;
    max-width:100%;
    table-layout:fixed;
    border-collapse:collapse;
  }

  #alm-prestamo-responsiva-body th,
  #alm-prestamo-responsiva-body td{
    overflow-wrap:anywhere;
    word-break:break-word;
  }

  #alm-prestamo-responsiva-body > :not(.btpdf) table th,
  #alm-prestamo-responsiva-body > :not(.btpdf) table td{
    color:#17202a !important;
  }

  #alm-prestamo-responsiva-body > :not(.btpdf) table td:not(:first-child){
    background-color:#fff;
  }

  #alm-prestamo-responsiva-body img{
    max-width:100%;
    height:auto;
    object-fit:contain;
  }

  #alm-prestamo-responsiva-body .btpdf{
    width:100%;
    max-width:210mm;
    margin:0 auto;
  }

  #alm-prestamo-responsiva-body .btpdf-page,
  #alm-prestamo-responsiva-body .btpdf-sheet{
    width:100%;
    min-height:0;
  }

  #alm-prestamo-responsiva-body .btpdf-table-shell{
    max-width:100%;
    overflow-x:auto;
  }
}

@media screen and (max-width:600px){
  .alm-prestamo-responsiva-panel{
    height:calc(100vh - 16px);
    height:calc(100dvh - 16px);
    border-radius:14px;
  }

  .alm-prestamo-responsiva-panel > :first-child{
    padding:11px 12px !important;
  }

  .alm-prestamo-responsiva-head{
    flex-wrap:wrap;
  }

  .alm-prestamo-responsiva-actions{
    width:100%;
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(0,1fr) 34px;
  }

  .alm-prestamo-responsiva-action{
    width:100%;
    min-width:0;
    padding:0 6px;
    font-size:10px;
  }

  .alm-prestamo-responsiva-content{
    padding:8px;
  }

  #alm-prestamo-responsiva-body > :not(.btpdf){
    font-size:14px !important;
  }

  #alm-prestamo-responsiva-body table td,
  #alm-prestamo-responsiva-body table th{
    padding:6px !important;
    font-size:12px;
  }

  #alm-prestamo-responsiva-body .btpdf-header,
  #alm-prestamo-responsiva-body .btpdf-doc-band,
  #alm-prestamo-responsiva-body .btpdf-sheet-top{
    flex-wrap:wrap;
  }

  #alm-prestamo-responsiva-body .btpdf-kpis{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  #alm-prestamo-responsiva-body .btpdf-specs{
    grid-template-columns:minmax(0,1fr);
  }

  #alm-prestamo-responsiva-body .btpdf-table{
    min-width:650px;
  }
}

/* Grouped employee detail and editor share the same compact reading rhythm. */
#rhAltaVeil .rh-exp-nav--editor{
  flex-shrink:0;
  margin:10px 16px 0;
}
#rhAltaVeil .rh-modal--employee{
  width:min(100%,800px);
  max-width:800px;
}
#rhAltaVeil .rh-modal-body{
  padding:12px 16px;
  min-height:0;
}
#rhAltaVeil .rh-split-layout{
  grid-template-columns:minmax(0,1fr);
  gap:12px;
}
#rhAltaVeil .rh-panel-card{
  min-width:0;
  padding:12px 14px;
  border-radius:10px;
}
#rhAltaVeil .rh-field-help,
#rhAltaVeil .rh-panel-copy{
  font-size:12px;
  line-height:1.5;
  color:#b2c1d2;
}
#rhAltaVeil .rh-field-grid--identity{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
#rhAltaVeil .rh-input{
  width:100%;
  min-width:0;
  min-height:36px;
  border-radius:7px;
}
.rh-emp-detail-shell .rh-emp-card--wide{
  grid-column:1 / -1;
}
.rh-emp-detail-shell .rh-emp-input-look,
.rh-emp-detail-shell .rh-emp-select-look{
  min-height:32px;
  padding:7px 10px;
  font-size:13px;
  border-radius:7px;
  overflow-wrap:anywhere;
}
.rh-emp-detail-shell .rh-emp-detail-tools .btn{
  min-height:34px;
  padding:6px 10px;
  font-size:12px;
}
.rh-emp-detail-shell .rh-emp-sub-note,
.rh-emp-detail-shell .rh-emp-field-label,
.rh-emp-detail-shell .rh-emp-chip-label,
.rh-emp-detail-shell .rh-emp-empty-note{
  color:#b2c1d2;
}
@media(max-width:600px){
  .rh-emp-detail-shell .rh-emp-detail-topbar{
    align-items:flex-start;
    flex-direction:column;
  }
  .rh-emp-detail-shell .rh-emp-detail-grid{
    grid-template-columns:minmax(0,1fr);
  }
  .rh-exp-nav button{
    flex:1 1 calc(50% - 6px);
  }
  #rhAltaVeil .rh-field-grid{
    grid-template-columns:minmax(0,1fr);
  }
  #rhAltaVeil .rh-modal-head,
  #rhAltaVeil .rh-modal-foot{
    padding:12px;
  }
  #rhAltaVeil .rh-modal-body{
    padding:10px;
  }
  #rhAltaVeil .rh-exp-nav--editor{
    margin:8px 10px 0;
  }
}

/* Contextual help is portalled above cards and modals to avoid clipping. */
.rh-emp-detail-shell > .rh-exp-nav{
  position:sticky;
  top:0;
  z-index:5;
  box-shadow:0 5px 12px #0003;
}
.rh-debt-grid,
.rh-tools-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px 20px;
}
.rh-exp-subgroup{
  min-width:0;
  border-top:1px solid #304054;
  padding-top:12px;
}
.rh-exp-subgroup--wide{grid-column:1 / -1}
.rh-emp-detail-shell .rh-exp-subgroup > .rh-emp-chip-label:first-child{
  margin-top:0;
  font-weight:700;
}
.rh-exp-help{
  display:inline-flex;
  justify-content:center;
  align-items:center;
  flex:none;
  width:24px;
  height:24px;
  margin-left:4px;
  padding:0;
  border:1px solid #60758e;
  border-radius:50%;
  background:#1b2939;
  color:#dce8f6;
  font:600 12px/1 sans-serif;
  text-transform:none;
  letter-spacing:0;
  vertical-align:middle;
  cursor:help;
}
.rh-exp-help:hover,
.rh-exp-help:focus-visible{
  color:#ffe36b;
  border-color:#ffe36b;
}
.rh-exp-tooltip{
  position:fixed;
  z-index:100000;
  width:max-content;
  max-width:min(310px,calc(100vw - 24px));
  box-sizing:border-box;
  padding:12px 14px;
  border:1px solid #62758b;
  border-radius:8px;
  background:#182535;
  box-shadow:0 8px 24px #0006;
  color:#eef4fb;
  font-size:13px;
  line-height:1.5;
  overflow-wrap:anywhere;
}
.rh-exp-tooltip[hidden]{display:none}
.rh-emp-detail-shell .rh-emp-card-title,
#rhAltaVeil .rh-panel-title{
  display:flex;
  align-items:center;
  gap:6px;
  min-height:26px;
}
.rh-emp-detail-shell .rh-emp-card{
  background:#101923;
  border-color:#304054;
}
.rh-emp-detail-shell .rh-emp-card-head{
  align-items:center;
  flex-wrap:wrap;
}
.rh-emp-detail-shell .rh-emp-kv{
  display:flex;
  justify-content:space-between;
  gap:16px;
  padding:8px 0;
  border-bottom:1px solid #283849;
}
.rh-emp-detail-shell .rh-emp-kv span{color:#b2c1d2}
.rh-emp-detail-shell .rh-emp-kv strong{overflow-wrap:anywhere;min-width:0}
.rh-emp-detail-shell .rh-emp-input-look,
.rh-emp-detail-shell .rh-emp-select-look{
  background:#152231;
  border-color:transparent;
  box-shadow:none;
}
.rh-emp-detail-shell .rh-emp-select-look::after{display:none}
.rh-emp-detail-shell .rh-emp-inline-actions:empty{display:none}
.rh-emp-detail-shell .rh-emp-loan-status{text-align:left}
.rh-emp-detail-shell .rh-emp-loan-status.is-neutral{color:#b2c1d2}
.rh-emp-detail-shell .rh-emp-inline-input{
  background:none;
  border:0;
  padding:4px 0;
  font-size:24px;
  justify-content:flex-start;
}
.rh-emp-detail-shell .rh-emp-card .btn:not(.btn-gold):not(.btn-danger),
.rh-emp-detail-shell .rh-emp-detail-tools .btn:not(.btn-gold){
  background:#152231;
  color:#d3dfed;
  border:1px solid #42556a;
}
.rh-salary-summary{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:8px 0 12px;
}
.rh-salary-summary .rh-emp-field-block{
  margin:0;
  padding:12px;
  border:1px solid #34475c;
  border-radius:8px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.rh-salary-summary .rh-emp-field-label{min-height:26px}
.rh-emp-detail-shell .rh-salary-summary .rh-emp-input-look{
  background:none;
  border:0;
  padding:4px 0 0;
  font-size:22px;
  font-weight:700;
  font-variant-numeric:tabular-nums;
}
.rh-salary-summary .rh-salary-total{
  background:#203245;
  border-color:#697b8d;
}
.rh-exp-secondary{
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid #304054;
}
.rh-exp-secondary summary{
  cursor:pointer;
  color:#c3d2e4;
  font-size:12px;
  padding:4px 0;
}
.rh-exp-secondary summary:focus-visible{outline:2px solid #ffe36b;outline-offset:3px}
.rh-emp-detail-shell .rh-emp-tool-block{
  margin-top:16px;
  padding-top:12px;
  border-top:1px solid #304054;
}
.rh-emp-detail-shell .rh-emp-tool-block .rh-emp-chip-label{
  font-weight:700;
  font-size:12px;
  margin:0 0 8px;
}
.rh-emp-detail-shell .rh-emp-empty-note{font-size:13px;line-height:1.5}
.rh-emp-detail-shell .rh-emp-doc-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 20px;
}
.rh-emp-detail-shell .rh-emp-doc-row{
  display:grid;
  grid-template-columns:28px minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  padding:12px 0;
  border-bottom:1px solid #304054;
}
.rh-doc-status{
  display:block;
  color:#b2c1d2;
  font-size:11px;
  margin-top:4px;
  font-weight:400;
}
.rh-emp-detail-shell .rh-emp-doc-name{overflow-wrap:anywhere}
.rh-emp-detail-shell .rh-emp-doc-upload,
.rh-emp-detail-shell .rh-emp-doc-check{min-width:28px;min-height:28px}
.rh-emp-detail-shell .rh-emp-doc-upload{color:#e5eef8}
@media(min-width:761px){
  .rh-emp-detail-shell[data-rh-seccion-activa="general"] .rh-emp-detail-grid{
    grid-template-areas:"fiscal contrato" "contacto contrato";
    align-items:stretch;
  }
  .rh-emp-detail-shell [data-rh-card="fiscal"]{grid-area:fiscal}
  .rh-emp-detail-shell [data-rh-card="contrato"]{grid-area:contrato}
  .rh-emp-detail-shell [data-rh-card="contacto"]{grid-area:contacto}
  .rh-emp-detail-shell[data-rh-seccion-activa="bienestar"] .rh-emp-detail-grid{
    grid-template-areas:"vacaciones solicitudes" "cursos salud";
    align-items:stretch;
  }
  .rh-emp-detail-shell [data-rh-card="vacaciones"]{grid-area:vacaciones}
  .rh-emp-detail-shell [data-rh-card="solicitudes"]{grid-area:solicitudes}
  .rh-emp-detail-shell [data-rh-card="cursos"]{grid-area:cursos}
  .rh-emp-detail-shell [data-rh-card="salud"]{grid-area:salud}
}
@media(max-width:760px){
  .rh-emp-detail-shell .rh-emp-detail-grid,
  .rh-emp-detail-shell .rh-emp-doc-list,
  .rh-debt-grid,
  .rh-tools-grid,
  .rh-salary-summary{grid-template-columns:minmax(0,1fr)}
  .rh-salary-summary .rh-emp-field-block{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    align-items:center;
    gap:8px;
  }
  .rh-emp-detail-shell .rh-salary-summary .rh-emp-input-look{font-size:19px}
}

.rh-debt-notice{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border:1px solid #927438;
  border-radius:6px;
  background:#342b18;
  color:#ffe09a;
  font-size:11px;
  font-weight:600;
  line-height:1.4;
}
.rh-debt-notice.is-compact{
  margin-left:6px;
  padding:3px;
  vertical-align:middle;
}
.rh-debt-notice svg{flex:none}
.rh-debt-breakdown[hidden]{display:none}
#rh-adeudos-resumen{gap:6px}
.rh-debt-total,
.rh-debt-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.rh-debt-total{
  margin:8px 0;
  padding:12px;
  border-radius:8px;
  background:#1a2a3b;
}
.rh-debt-total > div,
.rh-debt-row > div{min-width:0}
.rh-debt-total span,
.rh-debt-row strong{font-size:13px;font-weight:600;color:#e4edf8}
.rh-debt-total small,
.rh-debt-row small{
  display:block;
  margin-top:4px;
  color:#b2c1d2;
  font-size:12px;
  line-height:1.5;
}
.rh-debt-total > strong{font-size:20px}
.rh-debt-total > strong,
.rh-debt-row > strong{flex:none;font-variant-numeric:tabular-nums;color:#f1f5fa}
.rh-debt-row{
  border-bottom:1px solid #304054;
  padding:12px 0;
}
.rh-debt-clear{color:#b2c1d2;font-size:12px;margin:4px 0}
.rh-org-summary{
  display:grid;
  gap:8px;
  padding-top:12px;
  margin-top:8px;
  border-top:1px solid #304054;
}
.rh-org-summary .rh-emp-sub-note,
.rh-org-summary .rh-emp-chip-label{margin:0}
#rhAltaVeil .rh-org-mode{
  display:flex;
  align-items:center;
  gap:8px;
  margin:12px 0 8px;
  color:#e4edf8;
  font-size:13px;
  cursor:pointer;
}
#rhAltaVeil .rh-org-mode input{width:18px;height:18px;flex:none}
#rhAltaVeil .rh-org-fields{border:0;margin:12px 0 0;padding:0;min-width:0}
#rhAltaVeil .rh-org-fields legend{margin-bottom:8px}
#rhAltaVeil .rh-org-fields:disabled .rh-input{color:#b2c1d2;opacity:1;cursor:not-allowed}
.rh-emp-detail-shell .rh-debt-details{margin-top:0;border-top:0;padding:4px 0 8px}
.rh-emp-detail-shell .rh-debt-details > .rh-emp-tool-list{margin-top:8px}
@media(max-width:480px){
  .rh-debt-total{align-items:flex-start;flex-direction:column;gap:8px}
  .rh-debt-row{gap:8px}
  .rh-debt-row > strong{font-size:12px}
}

.almx-employee-picker{position:relative;min-width:0}
.almx-modal--salida .almx-employee-picker #alm-salida-destino{padding-right:72px}
.almx-employee-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;border-left:1px solid #30404e;padding:3px 0 3px 9px;background:transparent;color:#aebdcd;font:600 11px/1.2 Inter,sans-serif;cursor:pointer}
.almx-employee-clear:hover{color:#ffe066}
.almx-employee-clear:focus-visible,.almx-employee-option:focus-visible{outline:2px solid #ffe066;outline-offset:2px}
.almx-employee-selected{display:flex;align-items:center;gap:6px;margin-top:6px;color:#d7e6f4;font-size:11px;line-height:1.35}
.almx-employee-selected:not([hidden])::before{content:"✓";color:#62d6a0;font-weight:700}
.almx-employee-suggestions{position:absolute;z-index:20;top:calc(100% + 6px);left:0;right:0;max-height:min(290px,38vh);overflow:auto;padding:5px;border:1px solid #40536a;border-radius:10px;background:linear-gradient(180deg,#1a2431 0%,#121923 100%);box-shadow:0 14px 32px rgba(0,0,0,.4);overscroll-behavior:contain}
.almx-employee-suggestions[hidden],.almx-employee-selected[hidden],.almx-employee-clear[hidden]{display:none}
.almx-employee-results-count{padding:5px 8px 7px;color:#aab9c8;font-size:10px}
.almx-employee-option{width:100%;display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:9px;padding:8px;border:1px solid transparent;border-radius:7px;background:transparent;color:#e6ecf4;text-align:left;cursor:pointer}
.almx-employee-option:hover,.almx-employee-option.is-active{border-color:#40536a;background:#202d3c}
.almx-employee-option[aria-selected=true]{border-color:#927c34;background:rgba(255,213,0,.07)}
.almx-employee-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#263647;color:#f4d46e;font-size:12px;font-weight:700}
.almx-employee-option-copy{min-width:0}
.almx-employee-option-copy strong,.almx-employee-option-copy small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.almx-employee-option-copy strong{font-size:12px;font-weight:600}
.almx-employee-option-copy small{margin-top:2px;color:#aab9c8;font-size:10px}
.almx-employee-check{padding:0 5px;color:#62d6a0}
.almx-employee-empty{padding:12px 9px;color:#c5d0db;font-size:11px;line-height:1.45}
.almx-employee-note,.almx-employee-hint{margin-top:6px;color:#aab9c8;font-size:10.5px;line-height:1.4}
.almx-employee-hint{color:#8797a8}
.almx-modal--salida{max-width:640px;max-height:100%}
.almx-modal--salida .almx-modal-head{padding:16px 20px}
.almx-modal--salida .almx-modal-title{font-size:18px;line-height:1.3}
.almx-modal--salida .almx-modal-body{min-height:0;gap:14px;padding:16px 20px}
.almx-modal--salida .almx-form-grid{align-items:start;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.almx-modal--salida .almx-field{display:flex;flex-direction:column;align-self:start;min-width:0;gap:7px}
.almx-modal--salida .almx-field>span,.almx-modal--salida .almx-field-label{margin:0;font:600 11px/1.4 Inter,sans-serif;letter-spacing:.6px;text-transform:uppercase;color:#b6c2ce}
.almx-modal--salida .almx-field>.fi,.almx-modal--salida .almx-field>.fsel,.almx-modal--salida #alm-salida-destino{height:40px;min-height:40px;padding:9px 11px;font-size:13px;line-height:20px;box-sizing:border-box}
.almx-modal--salida .almx-employee-picker #alm-salida-destino{padding-right:72px}
.almx-modal--salida .almx-employee-selected,.almx-modal--salida .almx-employee-note,.almx-modal--salida .almx-employee-hint{margin-top:0;overflow-wrap:anywhere}
.almx-modal--salida .almx-employee-hint{color:#aab9c8;line-height:1.5}
.almx-modal--salida .almx-employee-suggestions{top:auto;bottom:calc(100% + 6px)}
.almx-modal--salida .almx-employee-option span{margin:0;font-family:inherit;font-size:inherit;letter-spacing:normal;text-transform:none;color:inherit}
.almx-modal--salida .almx-modal-foot{padding:12px 20px}
@media(max-width:600px){
  .almx-modal--salida{max-width:100%;max-height:100%}
  .almx-modal--salida .almx-form-grid{grid-template-columns:minmax(0,1fr);gap:12px}
  .almx-modal--salida .almx-modal-head,.almx-modal--salida .almx-modal-body,.almx-modal--salida .almx-modal-foot{padding:14px}
  .almx-modal--salida .almx-field>.fi,.almx-modal--salida .almx-field>.fsel,.almx-modal--salida #alm-salida-destino{height:44px;min-height:44px;font-size:16px}
  .almx-modal--salida .almx-modal-foot .almx-action-btn{flex:1 1 0;min-height:44px;padding:9px 10px}
}
@media(max-width:600px){
  .almx-employee-suggestions{max-height:34vh}
  .almx-employee-option{min-height:44px;padding:8px}
}
