/* ===============================================
   NAVIGATION HUBS — Manage, Calendar, Lowe's
   (#1205 nav consolidation)

   Shared card/section chrome for the additive hub
   landing pages. Every rule this file overrides is
   defined in this same file — Propshaft loads all
   CSS twice, so media queries must stay local.
=============================================== */
/* [#10/#3] No hub owns a search box or an explainer any more — the global
   topbar bar drives the card filter, so .hub-toolbar, .hub-search, and
   .hub-toolbar__note went out with their last markup. */
.hub-empty {
  font-size: 13px;
  color: var(--text-3);
  padding: 18px 0;
}

.hub-section {
  margin-bottom: 26px;
}
.hub-section[hidden] {
  display: none;
}
.hub-section__head {
  margin-bottom: 10px;
}
.hub-section__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-1);
}
.hub-section__blurb {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
  margin-top: 2px;
}

.hub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hub-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 76px;
  background: var(--surface);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.12s, box-shadow 0.12s;
}
.hub-card:hover {
  border-color: var(--brass);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
}
.hub-card[hidden] {
  display: none;
}
.hub-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
  background: rgba(194, 151, 72, 0.10);
  color: var(--brass);
}
.hub-card__body {
  flex: 1;
  min-width: 0;
}
.hub-card__title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hub-card__desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.4;
}
.hub-card__badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--brass);
  color: #fff;
}
.hub-card__arrow {
  color: var(--text-3);
  font-size: 12px;
  flex-shrink: 0;
  transition: color 0.12s;
}
.hub-card:hover .hub-card__arrow {
  color: var(--brass-lo);
}

/* -----------------------------------------------
   WORKSPACE TABS
   Top-level switcher between the views of one
   workspace (Jobs → Leads / Installs / Customers,
   Lowe's → IME / Coverage / Territories). Sits
   In the shared app header, above any in-page .ftab
   scope filters, with a deliberately different shape.
----------------------------------------------- */
.workspace-tabs {
  display: flex;
  align-items: stretch;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  overflow-x: auto;
}
.workspace-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
  text-decoration: none;
  white-space: nowrap;
}
.workspace-tab:hover {
  color: var(--text-1);
}
.workspace-tab.is-active {
  color: var(--text-1);
  border-bottom-color: var(--brass);
}
.workspace-tab__count {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--surface-hi);
  border: 1px solid var(--border-lo);
  color: var(--text-2);
}

@media (max-width: 1024px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .hub-search {
    max-width: none;
  }
  .hub-card {
    padding: 14px 16px;
  }
  .workspace-tab {
    padding: 9px 11px;
    font-size: 13px;
  }
}
