/* Ensigna Tours V9.0.1 · Responsive & Reliability Patch */

/* Admin data must never depend on reveal animations to exist on screen. */
body[data-ensigna-user-type="admin"] .ensigna-motion-reveal,
body[data-ensigna-user-type="admin"] .v894-admin-motion,
body[data-ensigna-user-type="operacion"] .ensigna-motion-reveal,
body[data-ensigna-user-type="operacion"] .v894-admin-motion,
body[data-ensigna-user-type="coordinador"] .ensigna-motion-reveal,
body[data-ensigna-user-type="coordinador"] .v894-admin-motion{
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
}

/* V9 tabs are navigation, not carousels. Wrap instead of hiding options in horizontal scroll. */
body[data-ensigna-user-type="admin"] .v9-tabs{
  display:flex;
  flex-wrap:wrap;
  overflow:visible;
  max-width:100%;
  gap:7px;
}
body[data-ensigna-user-type="admin"] .v9-tabs a{
  min-width:0;
  white-space:normal;
  text-align:center;
}

/* Operation: every trip action stays visible on desktop, tablet and mobile. */
body[data-ensigna-user-type="admin"] .unit-card > .v9-tabs{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:7px;
  padding-bottom:0;
}
body[data-ensigna-user-type="admin"] .unit-card > .v9-tabs a{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:38px;
  padding:8px 7px;
  line-height:1.15;
}

/* WhatsApp commercial stages: chips wrap naturally, no lateral strip. */
body[data-ensigna-user-type="admin"] .opp-toolbar{
  display:flex!important;
  flex-wrap:wrap!important;
  overflow:visible!important;
  margin-inline:0!important;
  gap:8px!important;
  padding-bottom:10px!important;
}
body[data-ensigna-user-type="admin"] .opp-filter{
  flex:0 1 auto!important;
  max-width:100%;
  white-space:normal!important;
  text-align:center;
}

/* Header actions on narrow screens: no cropped buttons. */
@media(max-width:760px){
  body[data-ensigna-user-type="admin"] .admin-title-row .admin-actions{
    display:grid!important;
    grid-template-columns:1fr!important;
    width:100%!important;
    margin-top:0!important;
    gap:8px!important;
  }
  body[data-ensigna-user-type="admin"] .admin-title-row .admin-actions > *{
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    white-space:normal!important;
  }

  /* The fixed bubble covered cards/badges. Mobile already has Menu > Más. */
  body[data-ensigna-user-type="admin"] .admin-more-floating{
    display:none!important;
  }

  body[data-ensigna-user-type="admin"] .unit-card > .v9-tabs{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:390px){
  body[data-ensigna-user-type="admin"] .unit-card > .v9-tabs{
    grid-template-columns:1fr;
  }
}

/* Traveler checklist */
.v901-traveler-checklist{
  margin-top:14px;
  padding:15px;
  border:1px solid rgba(67,48,172,.12);
  border-radius:18px;
  background:linear-gradient(145deg,#fff,#f7f8ff);
}
.v901-traveler-checklist header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.v901-traveler-checklist h3{margin:0;color:#171f38;font-size:1rem}
.v901-traveler-checklist p{margin:4px 0 0;color:#68768d;font-size:.82rem;line-height:1.4}
.v901-checklist-list{display:grid;gap:8px}
.v901-check-item{
  display:grid;
  grid-template-columns:30px minmax(0,1fr);
  gap:10px;
  align-items:center;
  padding:10px 11px;
  border-radius:13px;
  background:#fff;
  border:1px solid rgba(67,48,172,.08);
}
.v901-check-item > span{
  width:30px;height:30px;border-radius:10px;display:grid;place-items:center;
  background:#fff3df;color:#a45d00;font-weight:900;
}
.v901-check-item strong{display:block;color:#27324a;font-size:.86rem}
.v901-check-item small{display:block;margin-top:2px;color:#758197;font-size:.74rem;line-height:1.35}
.v901-check-item.is-done > span{background:#dcfce7;color:#166534}
.v901-check-item.is-done{opacity:.78}
.v901-check-item.is-bingo > span{background:#ede9fe;color:#4c1d95}
.v901-checklist-complete{padding:10px 12px;border-radius:12px;background:#ecfdf5;color:#166534;font-weight:800;font-size:.82rem}
