/* TalentHub / Pulax — product motion system */
:root {
  --thp-ease: cubic-bezier(.22,1,.36,1);
  --thp-ease-out: cubic-bezier(.16,1,.3,1);
}
@keyframes thp-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes thp-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes thp-scale-in {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes thp-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.thp-animate-in { animation: thp-fade-up .5s var(--thp-ease-out) both; }
.thp-animate-in-delay-1 { animation-delay: .06s; }
.thp-animate-in-delay-2 { animation-delay: .12s; }
.thp-animate-in-delay-3 { animation-delay: .18s; }
.thp-animate-in-delay-4 { animation-delay: .24s; }

.thp-kpi-grid > .thp-kpi:nth-child(1) { animation: thp-fade-up .45s var(--thp-ease-out) .05s both; }
.thp-kpi-grid > .thp-kpi:nth-child(2) { animation: thp-fade-up .45s var(--thp-ease-out) .1s both; }
.thp-kpi-grid > .thp-kpi:nth-child(3) { animation: thp-fade-up .45s var(--thp-ease-out) .15s both; }
.thp-kpi-grid > .thp-kpi:nth-child(4) { animation: thp-fade-up .45s var(--thp-ease-out) .2s both; }
.thp-kpi-grid > .thp-kpi:nth-child(5) { animation: thp-fade-up .45s var(--thp-ease-out) .25s both; }
.thp-kpi-grid > .thp-kpi:nth-child(6) { animation: thp-fade-up .45s var(--thp-ease-out) .3s both; }

.thp-card {
  transition: box-shadow .25s var(--thp-ease), transform .25s var(--thp-ease), border-color .2s ease;
}
.thp-card:hover {
  box-shadow: 0 12px 40px rgba(15, 23, 42, .09);
}
.thp-kpi {
  transition: transform .2s var(--thp-ease), box-shadow .2s var(--thp-ease), border-color .2s ease;
  cursor: default;
}
.thp-kpi--link {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.thp-kpi--link:hover,
a.thp-kpi:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(10, 132, 255, .14);
  border-color: rgba(10, 132, 255, .35);
}
.thp-kpi__hint {
  display: block;
  font-size: .72rem;
  color: var(--thp-text-2, #64748b);
  margin-top: .35rem;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .2s ease, transform .2s ease;
}
.thp-kpi--link:hover .thp-kpi__hint {
  opacity: 1;
  transform: translateY(0);
}
.thp-btn {
  transition: transform .14s var(--thp-ease), box-shadow .14s ease, background .15s ease, opacity .15s ease;
}
.thp-btn:hover { transform: translateY(-1px); }
.thp-btn:active { transform: scale(.98); }
.thp-acard {
  transition: box-shadow .22s var(--thp-ease), transform .22s var(--thp-ease), border-color .2s ease;
  animation: thp-fade-up .4s var(--thp-ease-out) both;
}
.thp-acard:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, .12);
}
.thp-chart-wrap { animation: thp-scale-in .55s var(--thp-ease-out) both; }
.thp-app-main > .thp-page-head { animation: thp-fade-up .4s var(--thp-ease-out) both; }
.thp-sidebar__link {
  transition: background .15s ease, color .15s ease, padding-left .18s var(--thp-ease);
}
.thp-sidebar__link:hover { padding-left: .35rem; }
.thp-sidebar__brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.thp-sidebar__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
  flex-shrink: 0;
  object-fit: contain;
  background: #0a1628;
}
.thp-sidebar__mark {
  background: #0a1628 !important;
  padding: 2px;
}
.thp-sidebar__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0A84FF, #5E5CE6);
  color: #fff;
  font-weight: 700;
  font-size: .95rem;
}
.thp-sidebar__mark img,
.thp-sidebar__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}
.thp-click-row {
  cursor: pointer;
  transition: background .15s ease;
}
.thp-click-row:hover { background: rgba(10, 132, 255, .06); }
.thp-charts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
@media (prefers-reduced-motion: reduce) {
  .thp-animate-in, .thp-acard, .thp-chart-wrap, .thp-app-main > .thp-page-head,
  .thp-kpi-grid > .thp-kpi {
    animation: none !important;
  }
  .thp-card, .thp-kpi, .thp-btn, .thp-acard, .thp-sidebar__link {
    transition: none !important;
  }
}


/* Full wordmark brand */
.thp-sidebar__brand {
  padding: .85rem 1rem 1rem;
  border-bottom: 1px solid var(--thp-border, rgba(255,255,255,.08));
}
.thp-sidebar__brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.thp-sidebar__logo-full {
  display: block;
  width: 100%;
  max-width: 168px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  object-position: left center;
}
/* Sidebar / surfaces — token-driven (themes via DesignSystem) */
.thp-sidebar {
  background: var(--thp-sidebar-bg) !important;
  border-right: 1px solid var(--thp-sidebar-border, var(--thp-border));
  color: var(--thp-sidebar-text);
}
.thp-sidebar__link {
  color: var(--thp-sidebar-text) !important;
  border-radius: 8px;
  margin: 2px 8px;
  padding: .55rem .75rem !important;
}
.thp-sidebar__link:hover,
.thp-sidebar__link.is-active {
  background: var(--thp-sidebar-active-bg, var(--thp-primary-soft)) !important;
  color: var(--thp-sidebar-active) !important;
}
.thp-sidebar__dot { background: currentColor; opacity: .4; }
.thp-sidebar__link.is-active .thp-sidebar__dot { opacity: 1; color: var(--thp-sidebar-active); }
.thp-sidebar__foot .thp-sidebar__link { opacity: .9; }
.thp-sidebar__brand-link {
  background: transparent !important;
  box-shadow: none !important;
  padding: .25rem 0 !important;
}
.thp-app-main {
  background: var(--thp-bg);
}
.thp-page-head {
  margin-bottom: 1.25rem;
}
.thp-h1 {
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--thp-text);
}
.thp-card {
  border-radius: var(--thp-radius, 12px) !important;
  border: 1px solid var(--thp-border) !important;
  box-shadow: var(--thp-card-shadow);
  background: var(--thp-surface);
}
.thp-kpi {
  border-radius: var(--thp-radius, 12px) !important;
  background: var(--thp-surface);
  border: 1px solid var(--thp-border);
  padding: 1rem 1.15rem;
}
.thp-kpi__value {
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--thp-text);
}
.thp-kpi__label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--thp-text-2);
  font-weight: 600;
}
.thp-btn--primary {
  background: var(--thp-button) !important;
  background-image: none !important;
  border: 1px solid var(--thp-button-border, var(--thp-button)) !important;
  color: var(--thp-button-text) !important;
  box-shadow: var(--thp-shadow-sm);
}
.thp-btn--primary:hover {
  filter: brightness(1.05);
}
.thp-report-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: 1rem;
}
.thp-report-tabs a,
.thp-report-tabs button {
  border: 1px solid var(--thp-border);
  background: var(--thp-surface);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .85rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--thp-text);
  transition: all .15s ease;
}
.thp-report-tabs a.is-active,
.thp-report-tabs button.is-active {
  background: var(--thp-accent);
  border-color: var(--thp-accent);
  color: var(--thp-button-text, #fff);
}
.thp-report-panel[hidden] { display: none !important; }


/* Sidebar logo — full brand width */
.thp-sidebar__brand {
  padding: 14px 12px 12px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}
.thp-sidebar__brand-link {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.thp-sidebar__logo-full {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: 52px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
