@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  color-scheme: light;
}

body {
  font-family: "Pretendard", sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
}

.ssobig-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(248, 250, 252, 0.92);
  backdrop-filter: blur(8px);
}

.ssobig-topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.ssobig-topbar-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.ssobig-topbar-home:hover {
  color: #334155;
}

.ssobig-topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.125rem;
  flex: 1;
  min-width: 0;
  scrollbar-width: thin;
}

.ssobig-topbar-link {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 0.4rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ssobig-topbar-link:hover {
  border-color: #cbd5e1;
  color: #1e293b;
}

.ssobig-topbar-link.is-active {
  border-color: #1d4ed8;
  background: #dbeafe;
  color: #1e3a8a;
}

.ssobig-topbar-logout {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #64748b;
  border-radius: 0.625rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ssobig-topbar-logout:hover {
  border-color: #fca5a5;
  background: #fef2f2;
  color: #dc2626;
}

.dashboard-shell {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.section-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.chart-container {
  position: relative;
  width: 100%;
  min-height: 260px;
}

.chart-container.tall {
  min-height: 360px;
}

.chart-container canvas {
  width: 100% !important;
  height: 100% !important;
}

.responsive-text {
  overflow-wrap: anywhere;
  word-break: keep-all;
}

.table-wrap {
  overflow-x: auto;
}

.table-wrap table {
  min-width: 720px;
}

@media (max-width: 640px) {
  .ssobig-topbar-inner {
    padding: 0.65rem 1rem;
  }

  .ssobig-topbar-home span {
    display: none;
  }

  .ssobig-topbar-link {
    font-size: 0.76rem;
    padding: 0.35rem 0.65rem;
  }

  .ssobig-topbar-logout {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }

  .dashboard-shell {
    padding: 1.5rem 1rem 2.5rem;
  }

  .chart-container {
    min-height: 220px;
  }

  .chart-container.tall {
    min-height: 280px;
  }
}
