/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[13].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  /* Sidebar (dark, brand navy) */
  --sidebar-bg: #131b2e;
  --sidebar-line: rgba(255, 255, 255, 0.08);
  --sidebar-text: #aab2c5;
  --sidebar-text-active: #ffffff;
  --sidebar-active-bg: #2f6fe4;

  /* Main content (light, matches product UI) */
  --bg: #f4f6fb;
  --surface: #ffffff;
  --line: #e6e8f0;
  --text: #1b2333;
  --text-muted: #7c8494;

  --accent: #2f6fe4;
  --accent-sky: #7cc1f0;

  --risk-low: #3fa76b;    /* low risk / positive */
  --risk-medium: #e08a3c; /* attention */
  --risk-high: #d64545;   /* elevated risk / negative */

  --font-sans: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  padding: 0;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px 20px;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 8px 20px 8px;
  border-bottom: 1px solid var(--sidebar-line);
  margin-bottom: 20px;
}

.brand-logo {
  width: 100%;
  height: auto;
  display: block;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--sidebar-text);
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-item svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-text-active);
}

.nav-item.active svg {
  opacity: 1;
}

/* Fake user badge */
.user-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 8px;
  border-top: 1px solid var(--sidebar-line);
  padding-top: 16px;
}

.user-badge .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.user-badge .who {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.user-badge .who .n {
  font-size: 13px;
  font-weight: 500;
  color: #ffffff;
}

.user-badge .who .r {
  font-size: 11.5px;
  color: #8891a3;
}

/* Main content */
.main {
  flex: 1 1;
  min-width: 0;
  padding: 32px 40px;
}

.page-header {
  margin-bottom: 24px;
}

.page-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}

.page-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.page-title {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: var(--text);
}

.page-subtitle {
  font-size: 14.5px;
  color: var(--text-muted);
  max-width: 620px;
}

.select-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text);
  white-space: nowrap;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 24px;
}

.card + .card {
  margin-top: 16px;
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.stat-value.risk-low {
  color: var(--risk-low);
}
.stat-value.risk-medium {
  color: var(--risk-medium);
}
.stat-value.risk-high {
  color: var(--risk-high);
}

.stat-sub {
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}

.stat-sub.risk-low {
  color: var(--risk-low);
}
.stat-sub.risk-medium {
  color: var(--risk-medium);
}
.stat-sub.risk-high {
  color: var(--risk-high);
}
.stat-sub.muted {
  color: var(--text-muted);
  font-weight: 400;
}

/* Dashboard 2-column layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
}

.panel-title {
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 16px 0;
  color: var(--text);
}

.panel-footer-link {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 12px 12px 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tag .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.tag.risk-low {
  color: var(--risk-low);
  background: rgba(63, 167, 107, 0.1);
}

.tag.risk-medium {
  color: var(--risk-medium);
  background: rgba(224, 138, 60, 0.12);
}

.tag.risk-high {
  color: var(--risk-high);
  background: rgba(214, 69, 69, 0.1);
}

/* Risk score pill used in the portfolios mini-table */
.risk-pill {
  display: inline-flex;
  padding: 3px 9px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12.5px;
}

.risk-pill.risk-low {
  color: var(--risk-low);
  background: rgba(63, 167, 107, 0.12);
}
.risk-pill.risk-medium {
  color: var(--risk-medium);
  background: rgba(224, 138, 60, 0.14);
}
.risk-pill.risk-high {
  color: var(--risk-high);
  background: rgba(214, 69, 69, 0.14);
}

.trend {
  font-size: 12.5px;
  font-weight: 500;
}
.trend.up {
  color: var(--risk-low);
}
.trend.down {
  color: var(--risk-high);
}

/* Notifications */
.notif-list {
  display: flex;
  flex-direction: column;
}

.notif-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.notif-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notif-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 5px;
  flex-shrink: 0;
}
.notif-dot.danger {
  background: var(--risk-high);
}
.notif-dot.success {
  background: var(--risk-low);
}
.notif-dot.info {
  background: var(--accent);
}

.notif-message {
  font-size: 13.5px;
  color: var(--text);
  flex: 1 1;
}

.notif-time {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}

.placeholder-note {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 4px;
}

.mono {
  font-family: var(--font-mono);
}

@media (max-width: 900px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

