/* Module hub — same pill-link layout as Accounting Hub */

.tms-hub-app .tms-app-header {
  text-align: center;
}

.tms-hub-app .tms-app-header h1 {
  margin-left: auto;
  margin-right: auto;
}

.tms-hub-back {
  text-align: center;
  margin: 0 0 0.75rem;
}

.tms-hub-back a {
  font-weight: 700;
  text-decoration: none;
  color: #1e3a5f;
}

.tms-hub-back a:hover {
  text-decoration: underline;
}

.tms-hub-app .banner-ok,
.tms-hub-app .banner-warn {
  text-align: center;
}

.tms-hub-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

/* One gradient canvas behind the whole hub (Loads, Tariff, Carrier Integration) */
.page.tms-has-appearance .tms-hub-appearance-canvas {
  background: var(--tms-panel-gradient);
  border-radius: 12px;
  padding: 16px 18px 24px;
  max-width: 1100px;
  margin: 0 auto 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.page.tms-has-appearance .tms-hub-appearance-canvas .tms-appearance-picker {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.85);
  margin-bottom: 14px;
}

.page.tms-has-appearance .tms-hub-appearance-canvas .tms-hub-wrap .panel,
.page.tms-has-appearance .tms-hub-appearance-canvas .tms-hub-intro,
.page.tms-has-appearance .tms-hub-appearance-canvas .tms-hub-group-panel {
  background: transparent;
  box-shadow: none;
  border: none;
}

.tms-hub-app .tms-hub-wrap .panel,
.tms-hub-app .tms-hub-wrap .tms-hub-group-panel,
.tms-hub-app .tms-hub-wrap .tms-hub-intro {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto 8px;
  padding: 12px 0 18px;
  border: none;
}

.tms-hub-app .page:not(.tms-has-appearance) .tms-hub-wrap .panel,
.tms-hub-app .page:not(.tms-has-appearance) .tms-hub-wrap .tms-hub-group-panel,
.tms-hub-app .page:not(.tms-has-appearance) .tms-hub-wrap .tms-hub-intro {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

.tms-hub-app .tms-page-title,
.tms-hub-app h2.tms-page-title {
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
  width: 100%;
}

.tms-hub-app .tms-section-title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b9bd5;
  margin: 0 0 16px;
  padding: 0 0 10px;
  border-bottom: 2px solid #93c5fd;
}

.tms-hub-app .tms-list-hint,
.tms-hub-app .tms-hub-intro .muted {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.tms-hub-intro {
  text-align: center;
}

.tms-hub-group-panel {
  text-align: center;
}

.tms-hub-link-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 10px;
  max-width: 960px;
  margin: 0 auto;
}

.tms-hub-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 210px;
  min-width: 200px;
  max-width: 280px;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #0f172a;
  border-radius: 999px;
  text-decoration: none;
  text-align: center;
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

a.tms-hub-link:hover {
  background: #e2e8f0;
  border-color: #1e3a5f;
}

.tms-hub-link--pending {
  opacity: 0.55;
  cursor: default;
  border-style: dashed;
}

.tms-hub-link--detail {
  opacity: 0.85;
  cursor: default;
  border-style: dotted;
  font-size: 14px;
}

.tms-hub-link-note {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
}
