/* =========================
   Topbar — Minimal Pro (A-LAB verde)
   (LIMPIO: sin duplicados)
   ========================= */

:root{
  --ring: 0 0 0 3px rgba(52,211,153,.18), 0 0 0 1px rgba(52,211,153,.26);
}

/* =========================
   CONTENEDOR TOPBAR (más angosta + lo más baja posible)
   ========================= */
.topbar{
  position: sticky;
  top: 12px;
  z-index: 50;

  /* ✅ no tan larga */
  max-width: 1280px;
  width: calc(100% - 32px);
  margin: 12px auto;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(15,22,36,.92);
  box-shadow: none;

  /* ✅ mínima altura real: ajusta acá */
  padding: 8px 12px;
}

.topbarInner{
  display:flex;
  align-items:center;
  gap: 14px;
  min-width: 0;
}

/* =========================
   BRAND (logo + textos)
   ========================= */
.tbBrand{
  display:flex;
  align-items:center;
  gap: 12px;
  min-width: 0;
  flex: 0 0 auto;
}

/* ✅ LOGO grande SIN contenedor (sin fondo/borde) */
.tbLogo{
  /* ⬇️ si querés más grande, subí a 74/78/82 */
  width: 82px;
  height: 82px;

  object-fit: contain;
  display:block;
  flex: 0 0 auto;

  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}

/* Textos */
.tbBrandText{ min-width:0; }

.tbTitle{
  margin: 0;
  font-weight: 950;
  font-size: 20px;
  line-height: 1.05;
}

.tbSub{
  margin-top: 3px;
  font-weight: 750;
  font-size: 12px;
  color: rgba(255,255,255,.62);

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 360px;
}

/* =========================
   SEARCH (más finito)
   ========================= */
.tbSearchWrap{
  flex: 1 1 auto;
  min-width: 220px;
  display:flex;
  justify-content:center;
  position: relative; /* para dropdown */
}

.tbSearch{
  width: min(640px, 100%);
  height: 38px;              /* ✅ más bajo */
  border-radius: 14px;

  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.92);

  padding: 0 14px;
  font-weight: 750;

  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.tbSearch::placeholder{
  color: rgba(255,255,255,.42);
  font-weight: 650;
}

.tbSearch:focus{
  border-color: rgba(52,211,153,.35);
  box-shadow: var(--ring);
}

/* =========================
   RIGHT (reloj)
   ========================= */
.tbRight{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  gap: 10px;
  white-space: nowrap;
}

.tbClock{
  padding: 8px 12px;         /* ✅ más bajo */
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.86);
  font-weight: 900;
}

/* =========================
   Responsive
   ========================= */
@media (max-width: 980px){
  .topbarInner{
    flex-wrap: wrap;
    gap: 10px;
  }

  /* logo un toque más chico en móvil para que no explote */
  .tbLogo{
    width: 60px;
    height: 60px;
  }

  .tbSearchWrap{
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .tbSearch{
    width: 100%;
  }

  .tbSub{ display:none; }
}

/* =========================
   Dropdown búsqueda (si lo usás)
   ========================= */
.appTopbar__dd{
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 60;

  border-radius: 14px;
  overflow: hidden;

  background: #0F1624;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: none;
}

.appTopbar__ddHead{
  padding: 10px 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.appTopbar__ddList { display: grid; }

.appTopbar__ddItem{
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;

  padding: 10px 12px;
  text-align: left;
  border: 0;
  cursor: pointer;

  color: rgba(255,255,255,0.90);
  background: transparent;
}

.appTopbar__ddItem:hover,
.appTopbar__ddItem.is-active{
  background: rgba(255,255,255,0.04);
}

.appTopbar__ddLogoWrap{
  width: 28px;
  height: 28px;
  border-radius: 10px;

  display: grid;
  place-items: center;

  background: rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}

.appTopbar__ddLogo{
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}

.appTopbar__ddMain{ line-height: 1.15; }
.appTopbar__ddName{
  font-weight: 900;
  font-size: 13px;
}
.appTopbar__ddTeam{
  margin-top: 2px;
  font-size: 12px;
  color: rgba(255,255,255,0.60);
}

.appTopbar__ddEmpty{
  padding: 12px;
  color: rgba(255,255,255,0.60);
  font-size: 13px;
}
