/* Firma adı ve günlük teklif sayısı, tek yatay sırada. */
.app-topbar > #daily-quote-summary {
  display: block;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: 44px;
  max-height: none;
  padding: 3px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}
.app-topbar > #daily-quote-summary[hidden] { display: none; }
#daily-quote-summary > .daily-quote-row {
  display: flex;
  align-items: center;
  gap: 7px;
  width: max-content;
  min-width: 0;
  margin-inline: auto;
}
#daily-quote-summary .daily-quote-company {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 5px 9px;
  border: 1px solid #dce5ec;
  border-radius: 8px;
  background: #f8fafc;
  box-shadow: none;
  text-align: left;
  scroll-snap-align: start;
  transform: none;
}
#daily-quote-summary .daily-quote-company strong {
  width: auto;
  max-width: 190px;
  color: #3a5062;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.3;
}
#daily-quote-summary .daily-quote-company span {
  flex: 0 0 auto;
  width: auto;
  padding: 4px 6px;
  border-radius: 5px;
  color: #42647a;
  background: #eaf0f5;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
#daily-quote-summary .daily-quote-company:is(:hover, .is-active) {
  border-color: #91b9b4;
  background: #eef7f5;
  box-shadow: none;
  transform: none;
}
#daily-quote-summary .daily-quote-company:focus-visible {
  outline: 2px solid #438d88;
  outline-offset: 1px;
}
.header-tools-toggle, .header-tools-menu { display: none; }

@media (min-width: 901px) {
  .app-topbar:has(> #daily-quote-summary:not([hidden])) {
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    gap: 14px;
  }
  .app-topbar:has(> #daily-quote-summary:not([hidden])) > .session-actions {
    grid-column: 3;
    grid-row: 1;
  }
}
@media (min-width: 701px) and (max-width: 900px) {
  .app-topbar:has(> #daily-quote-summary:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 5px 12px;
  }
  .app-topbar > #daily-quote-summary {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  #daily-quote-summary > .daily-quote-row { margin-inline: 0; }
}
@media (max-width: 700px) {
  .is-authenticated .app-topbar,
  .app-topbar:has(> #daily-quote-summary:not([hidden])) {
    grid-template-columns: minmax(90px, 1fr) max-content;
    gap: 5px 8px;
    padding: 7px 8px;
    overflow: visible;
  }
  .is-authenticated .app-topbar > .app-brand {
    min-width: 90px;
    gap: 6px;
  }
  .is-authenticated .app-topbar .app-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }
  .is-authenticated .app-topbar .app-brand strong { font-size: 14px; }
  .is-authenticated .app-topbar .app-brand small { font-size: 9px; }
  .is-authenticated .app-topbar > .session-actions {
    grid-column: 2;
    grid-row: 1;
    gap: 5px;
  }
  .is-authenticated .app-topbar .session-user,
  .is-authenticated .app-topbar .session-user-trigger {
    width: 36px;
    max-width: 36px;
    height: 36px;
    min-height: 36px;
  }
  .is-authenticated .app-topbar .session-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .is-authenticated .app-topbar .admin-open-btn {
    width: auto;
    min-width: 65px;
    height: 36px;
    min-height: 36px;
    padding-inline: 9px;
    font-size: 11px;
    white-space: nowrap;
  }
  .app-topbar > #daily-quote-summary {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 43px;
    padding: 2px 1px 5px;
  }
  #daily-quote-summary > .daily-quote-row { margin-inline: 0; }
  #daily-quote-summary .daily-quote-company { gap: 8px; }
  .header-tools-toggle {
    display: inline-grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid #d5dee8;
    border-radius: 10px;
    color: #3d566c;
    background: #f5f8fb;
    cursor: pointer;
  }
  .header-tools-toggle svg { width: 21px; height: 21px; fill: currentColor; }
  .header-tools-toggle[aria-expanded="true"] { border-color: #8fa9be; background: #eaf1f7; }
  .header-tools-toggle:focus-visible { outline: 2px solid #438d88; outline-offset: 2px; }
  .header-tools-menu {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 20;
    top: calc(100% + 7px);
    right: 0;
    width: min(260px, calc(100vw - 28px));
    gap: 5px;
    padding: 8px;
    border: 1px solid #d5dfe8;
    border-radius: 13px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(25, 42, 59, .18);
  }
  .header-tools-menu > :is(button, a) {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    height: auto;
    padding: 9px 11px;
    border: 1px solid #e2e8ef;
    border-radius: 8px;
    color: #36536b;
    background: #f8fafc;
    box-shadow: none;
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
    text-align: left;
    transform: none;
  }
  .header-tools-menu > :is(button, a)[hidden],
  .header-tools-toggle[hidden],
  .header-tools-menu[hidden] { display: none !important; }
  .header-tools-menu > :is(button, a) svg { flex: 0 0 19px; width: 19px; height: 19px; }
  .header-tools-menu .q4-campaign-open-btn > span:not(.header-tools-label) { display: none; }
  .header-tools-menu > :is(button, a):focus-visible { outline: 2px solid #438d88; outline-offset: 1px; }
}
.header-tools-label { display: none; }
@media (max-width: 700px) {
  .header-tools-menu .header-tools-label { display: inline; }
}
