
/* Hootag Design System · Unified Chrome-like Tab Strip · 0.8.4.3 C05
   One visual language for Client 360 + Organization Settings.
   IMPORTANT: never wrap to a second visual row. */
.hootag-tabs-host{
  position:relative!important;
  display:block!important;
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  margin:0 0 14px!important;
  overflow:visible!important;
}

/* Neutralize the legacy C04 wrapper if a tab bar survives a soft SPA transition. */
.hootag-tabs-shell{
  display:contents!important;
}

.r-tabs.big.hootag-scroll-tabs,
.settings-tabs.hootag-scroll-tabs,
.hootag-scroll-tabs{
  position:relative!important;
  display:flex!important;
  flex-direction:row!important;
  flex-wrap:nowrap!important;
  align-items:flex-end!important;
  gap:0!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  box-sizing:border-box!important;
  overflow-x:auto!important;
  overflow-y:hidden!important;
  overscroll-behavior-x:contain;
  scroll-behavior:smooth;
  scrollbar-width:none!important;
  -webkit-overflow-scrolling:touch;
  touch-action:pan-x;
  white-space:nowrap!important;
  padding:4px 52px 0 4px!important;
  margin:0!important;
  background:#eaf0f6!important;
  border:1px solid #d5dee8!important;
  border-radius:15px 15px 10px 10px!important;
  box-shadow:inset 0 -1px 0 rgba(18,38,61,.08)!important;
}
.r-tabs.big.hootag-scroll-tabs::-webkit-scrollbar,
.settings-tabs.hootag-scroll-tabs::-webkit-scrollbar,
.hootag-scroll-tabs::-webkit-scrollbar{display:none!important}

/* Chrome-like semi-continuous tabs: not standalone rounded buttons. */
.r-tabs.big.hootag-scroll-tabs>button,
.settings-tabs.hootag-scroll-tabs>button,
.hootag-scroll-tabs>button{
  position:relative!important;
  flex:0 0 auto!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:40px!important;
  height:40px!important;
  min-width:max-content!important;
  width:auto!important;
  margin:0!important;
  padding:0 15px!important;
  border:0!important;
  border-right:1px solid rgba(113,132,153,.22)!important;
  border-radius:11px 11px 0 0!important;
  background:transparent!important;
  color:#56677b!important;
  box-shadow:none!important;
  font:inherit!important;
  font-weight:550!important;
  line-height:1!important;
  letter-spacing:0!important;
  text-transform:none!important;
  white-space:nowrap!important;
  user-select:none!important;
  -webkit-user-select:none!important;
  cursor:pointer!important;
  transition:background .16s ease,color .16s ease,box-shadow .16s ease!important;
}
.r-tabs.big.hootag-scroll-tabs>button:last-child,
.settings-tabs.hootag-scroll-tabs>button:last-child,
.hootag-scroll-tabs>button:last-child{border-right-color:transparent!important}

.r-tabs.big.hootag-scroll-tabs>button:hover,
.settings-tabs.hootag-scroll-tabs>button:hover,
.hootag-scroll-tabs>button:hover{
  background:rgba(255,255,255,.54)!important;
  color:#21344b!important;
}

/* Same active treatment in every consuming module. */
.r-tabs.big.hootag-scroll-tabs>button.active,
.settings-tabs.hootag-scroll-tabs>button.active,
.hootag-scroll-tabs>button.active,
.r-tabs.big.hootag-scroll-tabs>button[aria-selected="true"],
.settings-tabs.hootag-scroll-tabs>button[aria-selected="true"],
.hootag-scroll-tabs>button[aria-selected="true"]{
  z-index:2!important;
  background:#fff!important;
  color:#174f81!important;
  border-right-color:transparent!important;
  box-shadow:
    0 -1px 0 #cfd9e4,
    1px 0 0 #cfd9e4,
    -1px 0 0 #cfd9e4,
    0 3px 0 #fff!important;
  font-weight:650!important;
}
.r-tabs.big.hootag-scroll-tabs>button.active::before,
.settings-tabs.hootag-scroll-tabs>button.active::before,
.hootag-scroll-tabs>button.active::before,
.r-tabs.big.hootag-scroll-tabs>button[aria-selected="true"]::before,
.settings-tabs.hootag-scroll-tabs>button[aria-selected="true"]::before,
.hootag-scroll-tabs>button[aria-selected="true"]::before{
  content:""!important;
  position:absolute!important;
  top:0!important;
  left:10px!important;
  right:10px!important;
  height:2px!important;
  border-radius:999px!important;
  background:#1d6da8!important;
}

/* Force-removes legacy Organization Settings dark pills. */
.settings-tabs.hootag-scroll-tabs>button,
.settings-tabs.hootag-scroll-tabs>button:not(.active){
  background:transparent!important;
  color:#56677b!important;
  border-color:rgba(113,132,153,.22)!important;
}
.settings-tabs.hootag-scroll-tabs>button.active,
.settings-tabs.hootag-scroll-tabs>button[aria-selected="true"]{
  background:#fff!important;
  color:#174f81!important;
}

/* Reorder feedback. */
.hootag-scroll-tabs>button.hootag-dragging{
  opacity:.55!important;
  transform:translateY(-2px)!important;
  box-shadow:0 8px 20px rgba(20,42,67,.14)!important;
}
.hootag-scroll-tabs.hootag-drag-active{cursor:grabbing!important}

/* Fixed options control belongs to the strip but never consumes/wraps a row. */
.hootag-tabs-tools{
  position:absolute!important;
  right:5px!important;
  top:5px!important;
  z-index:40!important;
  margin:0!important;
}
.hootag-tabs-tools>button{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:38px!important;
  height:38px!important;
  padding:0!important;
  border:1px solid #d0dae5!important;
  border-radius:10px 10px 7px 7px!important;
  background:#f8fbfd!important;
  color:#31465d!important;
  box-shadow:0 1px 2px rgba(20,42,67,.04)!important;
  cursor:pointer!important;
  font-size:18px!important;
  font-weight:800!important;
}
.hootag-tabs-tools>button:hover{background:#fff!important}

.hootag-tabs-menu{
  position:absolute!important;
  right:0!important;
  top:43px!important;
  z-index:150!important;
  width:min(310px,calc(100vw - 36px))!important;
  padding:8px!important;
  border:1px solid #d0dae5!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#162538!important;
  box-shadow:0 18px 45px rgba(18,36,60,.18)!important;
}
.hootag-tabs-menu b,.hootag-tabs-menu small{display:block!important}
.hootag-tabs-menu small{color:#718197!important;margin:2px 8px 8px!important}
.hootag-tabs-menu button{
  display:block!important;
  width:100%!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:9px 10px!important;
  border:0!important;
  border-radius:9px!important;
  background:transparent!important;
  color:#162538!important;
  box-shadow:none!important;
  text-align:left!important;
  white-space:normal!important;
  cursor:pointer!important;
}
.hootag-tabs-menu button:hover{background:#f2f6fa!important}
.hootag-tabs-menu button.active{font-weight:800!important;background:#f2f6fa!important}
.hootag-tabs-menu button:disabled{opacity:.45!important;cursor:not-allowed!important}
.hootag-tabs-saving{
  position:absolute!important;
  right:48px!important;
  top:-18px!important;
  font-size:10px!important;
  color:#718197!important;
}

/* Project 360 metadata remains separate from the contact action. */
.r-head.split.hootag-project-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto auto!important;
  align-items:start!important;
  column-gap:16px!important;
  row-gap:8px!important;
}
.hootag-project-head .project-meta-properties{
  grid-column:2!important;
  align-self:center!important;
  display:flex!important;
  gap:8px!important;
  flex-wrap:nowrap!important;
  margin:0!important;
}
.hootag-project-head .project-head-actions{
  grid-column:3!important;
  align-self:start!important;
  display:flex!important;
  justify-content:flex-end!important;
  margin:0!important;
}
.hootag-project-head .project-head-actions>.project-meta-properties{display:none!important}
.hootag-project-head .client-contact-menu{z-index:160!important}
.project-meta-property{
  display:flex!important;
  flex-direction:column!important;
  gap:2px!important;
  min-width:108px!important;
  padding:7px 10px!important;
  border:1px solid #d3dde7!important;
  border-radius:11px!important;
  background:#fff!important;
}
.project-meta-property small{
  display:block!important;
  font-size:9px!important;
  letter-spacing:.06em!important;
  text-transform:uppercase!important;
  color:#76869a!important;
}
.project-meta-property b{
  display:block!important;
  font-size:12px!important;
  line-height:1.25!important;
  color:#1c2d41!important;
}

@media(max-width:900px){
  .r-tabs.big.hootag-scroll-tabs,
  .settings-tabs.hootag-scroll-tabs,
  .hootag-scroll-tabs{padding-right:48px!important}
  .r-head.split.hootag-project-head{
    grid-template-columns:minmax(0,1fr) auto!important;
  }
  .hootag-project-head .project-meta-properties{
    grid-column:1!important;
    grid-row:2!important;
    justify-content:flex-start!important;
  }
  .hootag-project-head .project-head-actions{
    grid-column:2!important;
    grid-row:1 / span 2!important;
  }
}
@media(max-width:620px){
  .r-tabs.big.hootag-scroll-tabs>button,
  .settings-tabs.hootag-scroll-tabs>button,
  .hootag-scroll-tabs>button{
    height:38px!important;
    min-height:38px!important;
    padding:0 13px!important;
  }
  .hootag-tabs-tools{top:4px!important}
  .hootag-tabs-tools>button{width:36px!important;height:36px!important}
  .r-head.split.hootag-project-head{
    display:flex!important;
    flex-direction:column!important;
    gap:10px!important;
  }
  .hootag-project-head .project-meta-properties,
  .hootag-project-head .project-head-actions{width:100%!important}
  .hootag-project-head .project-meta-properties{order:2!important}
  .hootag-project-head .project-head-actions{order:3!important;justify-content:flex-start!important}
}
