/* GOIC alpha42: header desktop compact. Mobile keeps the established layout. */
/* Reuse the sidebar brand without rotating the letters when the menu opens. */
.topbar.alpha42-topbar-compact .alpha42-menu-trigger.menu-brand-trigger {
 padding: 0 !important;
 border: 0 !important;
 background: transparent !important;
 box-shadow: none !important;
 transform: none !important;
 font-family: inherit;
}

.alpha42-topbar-compact .menu-brand-trigger .brand-mark {
 width: 100%;
 height: 100%;
 border-radius: inherit;
 font-size: 18px;
 font-weight: 900;
 line-height: 1;
}

.alpha42-desktop-glyph,
.alpha42-search-field-icon,
.alpha42-smart-search-form kbd {
 display: none;
}

.alpha42-mobile-glyph {
 display: inline-flex;
 align-items: center;
 justify-content: center;
}

/* Aceeasi iconita SVG de cautare pe toate headerele mobile, indiferent de mod. */
@media (max-width: 900px) {
 .alpha42-topbar-compact .smart-search-toggle-btn .alpha42-mobile-glyph {
  display: inline-flex !important;
  width: 21px !important;
  height: 21px !important;
  min-width: 21px !important;
  flex: 0 0 21px !important;
 }

 .alpha42-topbar-compact .smart-search-toggle-btn .alpha42-mobile-glyph .alpha42-svg {
  display: block !important;
  width: 21px !important;
  height: 21px !important;
 }
}

@media (min-width: 901px) {
 .topbar.alpha42-topbar-compact {
  grid-template-columns: minmax(150px, .58fr) minmax(0, 1.42fr) !important;
  min-height: 64px !important;
  padding: 8px 16px !important;
  gap: 14px !important;
  background:
   linear-gradient(90deg, rgba(255, 255, 255, .97), rgba(248, 250, 252, .94)) !important;
  border-bottom-color: rgba(203, 213, 225, .72) !important;
  box-shadow: 0 7px 24px rgba(15, 23, 42, .065) !important;
 }

 .alpha42-topbar-compact .alpha42-topbar-main {
  min-width: 0 !important;
  gap: 9px !important;
 }

 .alpha42-topbar-compact .alpha42-menu-trigger,
 .alpha42-topbar-compact .alpha42-filter-btn {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  flex: 0 0 40px !important;
  padding: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: #334155 !important;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .06) !important;
 }

 .alpha42-topbar-compact .alpha42-menu-trigger:hover,
 .alpha42-topbar-compact .alpha42-filter-btn:hover {
  border-color: #fdba74 !important;
  background: #fff7ed !important;
  color: #ea580c !important;
 }

 .alpha42-topbar-compact .header-title-block {
  min-width: 0 !important;
  flex: 0 1 auto !important;
  max-width: clamp(142px, 18vw, 300px) !important;
  margin-right: 3px;
 }

 .alpha42-topbar-compact .header-title-block h1 {
  max-width: 100% !important;
  color: #172033;
  font-size: clamp(17px, 1.38vw, 21px) !important;
  font-weight: 950 !important;
  letter-spacing: -.035em !important;
  line-height: 1.05 !important;
 }

 .alpha42-topbar-compact .alpha42-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  min-width: 0 !important;
 }

 .alpha42-topbar-compact .alpha42-command-dock {
  order: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  min-width: 0 !important;
 }

 .alpha42-topbar-compact .alpha42-plan-inline {
  order: 1 !important;
  gap: 7px !important;
  width: auto !important;
  min-width: 40px !important;
  padding: 4px 9px 4px 4px !important;
 }

 .alpha42-topbar-compact .alpha42-filter-btn {
  order: 2 !important;
 }

 .alpha42-topbar-compact .alpha42-agent-actions {
  order: 3 !important;
 }

 .alpha42-topbar-compact .header-action-cluster,
 .alpha42-topbar-compact .header-agent-cluster {
  position: static !important;
  isolation: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: auto !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
 }

 .alpha42-topbar-compact .header-action-cluster::before,
 .alpha42-topbar-compact .header-action-cluster::after,
 .alpha42-topbar-compact .header-agent-cluster::before,
 .alpha42-topbar-compact .header-agent-cluster::after {
  content: none !important;
  display: none !important;
 }

 .alpha42-topbar-compact .header-action-cluster > .header-icon-btn,
 .alpha42-topbar-compact .header-action-cluster > .header-smart-search > .header-icon-btn,
 .alpha42-topbar-compact .header-agent-cluster .notification-toggle,
 .alpha42-topbar-compact .header-agent-cluster .userbox-button {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
  flex: 0 0 40px !important;
  padding: 0 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 13px !important;
  background: #fff !important;
  color: #475569 !important;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .055) !important;
  overflow: visible !important;
  transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease !important;
 }

 .alpha42-topbar-compact .header-action-cluster > .header-icon-btn + .header-icon-btn,
 .alpha42-topbar-compact .header-action-cluster > .header-smart-search,
 .alpha42-topbar-compact .header-agent-cluster .userbox-button {
  border-left: 1px solid #e2e8f0 !important;
 }

 .alpha42-topbar-compact .header-action-cluster .header-icon-btn:hover,
 .alpha42-topbar-compact .header-agent-cluster .notification-toggle:hover,
 .alpha42-topbar-compact .header-agent-cluster .userbox-button:hover,
 .alpha42-topbar-compact .header-agent-cluster .header-notifications.is-open .notification-toggle,
 .alpha42-topbar-compact .header-agent-cluster .header-user-menu.is-open .userbox-button {
  border-color: #fdba74 !important;
  background: #fff7ed !important;
  color: #ea580c !important;
  box-shadow: 0 8px 20px rgba(234, 88, 12, .12) !important;
  transform: translateY(-1px) !important;
 }

 .alpha42-topbar-compact .header-action-cluster .header-icon-btn.active {
  border-color: #fdba74 !important;
  background: #fff1df !important;
  color: #c2410c !important;
  box-shadow: inset 0 -2px 0 #f97316, 0 6px 17px rgba(249, 115, 22, .12) !important;
 }

 .alpha42-topbar-compact .header-action-cluster .header-action-icon,
 .alpha42-topbar-compact .header-agent-cluster .notification-icon,
 .alpha42-topbar-compact .header-agent-cluster .avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  flex: 0 0 26px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
  font-size: 0 !important;
 }

 .alpha42-topbar-compact .header-agent-cluster .avatar::before {
  content: none !important;
  display: none !important;
 }

 .alpha42-topbar-compact .alpha42-mobile-glyph {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: initial;
  font-size: 20px !important;
  line-height: 1 !important;
 }

 .alpha42-topbar-compact .alpha42-desktop-glyph {
  display: none !important;
 }

 .alpha42-topbar-compact .alpha42-svg {
  display: block;
  width: 20px;
  height: 20px;
 }

 .alpha42-topbar-compact .alpha42-avatar-letter {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: 15px !important;
  font-weight: 950;
  line-height: 1 !important;
 }

 .alpha42-topbar-compact .header-action-label,
 .alpha42-topbar-compact .userbox-text {
  display: none !important;
 }

 .alpha42-topbar-compact .header-action-cluster > .alpha42-primary-action {
  width: auto !important;
  min-width: 130px !important;
  flex: 0 0 auto !important;
  gap: 8px !important;
  padding: 0 15px 0 12px !important;
  border-color: #fb923c !important;
  background: linear-gradient(135deg, #ff8a00 0%, #ffb000 100%) !important;
  color: #172033 !important;
  box-shadow: 0 8px 20px rgba(249, 115, 22, .2) !important;
 }

 .alpha42-topbar-compact .header-action-cluster > .alpha42-primary-action:hover,
 .alpha42-topbar-compact .header-action-cluster > .alpha42-primary-action.active {
  border-color: #f97316 !important;
  background: linear-gradient(135deg, #ff7a00 0%, #ffb800 100%) !important;
  color: #172033 !important;
  box-shadow: 0 10px 24px rgba(249, 115, 22, .27) !important;
 }

 .alpha42-topbar-compact .header-action-cluster > .alpha42-primary-action .header-action-label {
  display: inline !important;
  color: inherit !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  letter-spacing: -.015em !important;
  white-space: nowrap !important;
 }

 .alpha42-topbar-compact .header-action-cluster > .alpha42-primary-action .header-action-icon {
  width: 25px !important;
  height: 25px !important;
  min-width: 25px !important;
  flex-basis: 25px !important;
  color: inherit !important;
 }

 .alpha42-topbar-compact .alpha42-plan-pill:not(.alpha42-plan-inline) {
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 4px !important;
  border-radius: 13px !important;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .055) !important;
 }

 .alpha42-topbar-compact .alpha42-plan-pill .header-subscription-pill-icon {
  width: 30px !important;
  height: 30px !important;
  flex: 0 0 30px !important;
  border-radius: 9px !important;
 }

 .alpha42-topbar-compact .alpha42-plan-pill .header-subscription-pill-copy {
  display: grid !important;
  line-height: 1 !important;
 }

 .alpha42-topbar-compact .alpha42-plan-pill .header-subscription-pill-copy small {
  font-size: 7px !important;
 }

 .alpha42-topbar-compact .alpha42-plan-pill .header-subscription-pill-copy strong {
  max-width: 72px !important;
  font-size: 11px !important;
 }

 .alpha42-topbar-compact .header-notifications,
 .alpha42-topbar-compact .header-user-menu {
  height: 40px !important;
  align-self: center !important;
 }

 .alpha42-topbar-compact .notification-badge {
  top: -5px !important;
  right: -5px !important;
  left: auto !important;
  min-width: 18px !important;
  height: 18px !important;
  padding: 0 4px !important;
  border: 2px solid #fff !important;
  font-size: 9px !important;
  line-height: 14px !important;
 }

 .alpha42-topbar-compact .notification-menu,
 .alpha42-topbar-compact .user-dropdown {
  top: calc(100% + 10px) !important;
 }

 .alpha42-topbar-compact .header-active-route-strip {
  margin: 0 -16px -8px !important;
 }
}

@media (min-width: 1280px) {
 .alpha42-topbar-compact .alpha42-tools-actions {
  flex: 1 1 auto !important;
  min-width: 220px !important;
 }

 .alpha42-topbar-compact .alpha42-smart-search {
  display: flex !important;
  flex: 1 1 clamp(220px, 22vw, 360px) !important;
  width: clamp(220px, 22vw, 360px) !important;
  height: 40px !important;
  min-width: 220px !important;
  border: 0 !important;
 }

 .alpha42-topbar-compact .alpha42-smart-search > .smart-search-toggle-btn {
  display: none !important;
 }

 .alpha42-topbar-compact .alpha42-smart-search-form,
 .alpha42-topbar-compact .alpha42-smart-search.is-open .alpha42-smart-search-form {
  position: relative !important;
  inset: auto !important;
  z-index: auto !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 40px !important;
  padding: 0 !important;
  border: 1px solid #dbe3ed !important;
  border-radius: 13px !important;
  background: #f8fafc !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, .035) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: hidden !important;
 }

 .alpha42-topbar-compact .alpha42-smart-search-form:focus-within {
  border-color: #fb923c !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .12) !important;
 }

 .alpha42-topbar-compact .alpha42-search-field-icon {
  position: absolute;
  left: 12px;
  z-index: 1;
  display: block !important;
  width: 21px;
  height: 21px;
  color: #64748b;
  pointer-events: none;
 }

 .alpha42-topbar-compact .alpha42-smart-search-form input {
  width: 100% !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 42px 0 39px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #172033 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
 }

 .alpha42-topbar-compact .alpha42-smart-search-form input:focus {
  box-shadow: none !important;
 }

 .alpha42-topbar-compact .alpha42-smart-search-form kbd {
  position: absolute;
  right: 8px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 24px;
  border: 1px solid #dbe3ed;
  border-radius: 7px;
  background: #fff;
  color: #94a3b8;
  font: 800 12px/1 system-ui, sans-serif;
  box-shadow: 0 2px 5px rgba(15, 23, 42, .045);
  pointer-events: none;
 }
}

@media (min-width: 901px) and (max-width: 1099px) {
 .topbar.alpha42-topbar-compact {
  grid-template-columns: minmax(118px, .45fr) minmax(0, 1.55fr) !important;
  gap: 8px !important;
  padding-inline: 10px !important;
 }

 .alpha42-topbar-compact .alpha42-header-actions,
 .alpha42-topbar-compact .alpha42-command-dock,
 .alpha42-topbar-compact .header-action-cluster,
 .alpha42-topbar-compact .header-agent-cluster {
  gap: 4px !important;
 }

 .alpha42-topbar-compact .header-action-cluster > .alpha42-primary-action {
  width: 40px !important;
  min-width: 40px !important;
  flex-basis: 40px !important;
  padding: 0 !important;
 }

 .alpha42-topbar-compact .header-action-cluster > .alpha42-primary-action .header-action-label {
  display: none !important;
 }

 .alpha42-topbar-compact .header-title-block h1 {
  font-size: 16px !important;
 }

 .alpha42-topbar-compact .alpha42-plan-inline {
  width: 40px !important;
  min-width: 40px !important;
  padding: 4px !important;
 }

 .alpha42-topbar-compact .alpha42-plan-inline .header-subscription-pill-copy {
  display: none !important;
 }
}

@media (min-width: 1100px) and (max-width: 1279px) {
 .alpha42-topbar-compact .header-title-block h1 {
  font-size: 18px !important;
 }
}
