:root {
  --menta-black: #232533;
  --menta-blue: #315DF5;
  --white: #FFFFFF;
  --light-gray: #F2F2F2;
  --border: #E6E6EC;
  --text-muted: #6B6E7E;
  --success: #1B9E5A;
  --warning: #B45309;
  --danger:  #B91C1C;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  overflow-x: hidden;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300; color: var(--menta-black); background: var(--white);
  line-height: 1.45; -webkit-font-smoothing: antialiased; text-align: left;
}
strong, b { font-weight: 700; }
a { color: var(--menta-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

#auth-screen {
  position: fixed; inset: 0; z-index: 100;
  background: linear-gradient(135deg, #315DF5 0%, #232533 70%);
  display: flex; align-items: center; justify-content: center; padding: 24px;
}
#auth-screen.hidden { display: none; }
.auth-card {
  background: rgba(255,255,255,0.06); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-lg);
  padding: 48px 40px; width: 100%; max-width: 420px; color: var(--white);
}
.auth-logo { display: flex; align-items: center; margin-bottom: 32px; }
.auth-title { font-size: 24px; font-weight: 300; margin-bottom: 8px; line-height: 1.2; }
.auth-sub { font-size: 12px; font-weight: 300; opacity: 0.75; margin-bottom: 32px; }
.auth-field { margin-bottom: 16px; }
.auth-field label { display: block; font-size: 11px; opacity: 0.75; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
.auth-field input {
  width: 100%; padding: 12px 14px; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-sm); color: var(--white);
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 300; outline: none; transition: border 0.2s;
}
.auth-field input:focus { border-color: var(--white); }
.auth-btn {
  width: 100%; padding: 12px 14px; margin-top: 8px; background: var(--white); color: var(--menta-black);
  border: none; border-radius: var(--radius-sm); font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700; cursor: pointer; transition: transform 0.1s;
}
.auth-btn:hover { transform: translateY(-1px); }
.auth-error { font-size: 12px; color: #FFB4B4; margin-top: 10px; min-height: 14px; }
.auth-foot { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 11px; opacity: 0.6; line-height: 1.5; }

.portal { display: grid; grid-template-columns: 260px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; align-self: start; height: 100vh; background: var(--menta-black); color: var(--white); padding: 32px 24px; display: flex; flex-direction: column; }
.sidebar-logo { display: flex; align-items: center; justify-content: center; margin-bottom: 40px; }
.auth-logo img { height: 32px; width: auto; }
.sidebar-logo img { height: 28px; width: auto; }
.client-tag { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 32px; }
.client-tag .label { font-size: 10px; opacity: 0.55; text-transform: uppercase; letter-spacing: 0.5px; }
.client-tag .name { font-weight: 700; font-size: 15px; margin-top: 4px; }
.client-tag .period { font-size: 12px; opacity: 0.75; margin-top: 2px; }
.nav { list-style: none; flex: 1; }
.nav li a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; margin-bottom: 2px; font-size: 13px; font-weight: 300; color: rgba(255,255,255,0.7); border-radius: var(--radius-sm); transition: background 0.15s, color 0.15s; text-decoration: none; }
.nav li a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.nav li a.active { background: var(--menta-blue); color: var(--white); }
.nav-num { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; background: rgba(255,255,255,0.10); border-radius: 4px; font-size: 10px; font-weight: 700; }
.nav li a.active .nav-num { background: rgba(255,255,255,0.18); }

.main { background: var(--white); min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 24px 100px; border-bottom: 1px solid var(--border); background: var(--white); position: sticky; top: 0; z-index: 10; min-width: 0; }
.breadcrumb { font-size: 12px; color: var(--text-muted); }
.breadcrumb .sep { margin: 0 6px; opacity: 0.5; }

.content { padding: 56px 100px; max-width: 1320px; margin: 0 auto; min-width: 0; }
.section { margin-bottom: 88px; scroll-margin-top: 80px; }
.section-head { margin-bottom: 32px; }
.section-eyebrow { font-size: 11px; font-weight: 700; color: var(--menta-blue); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.section-title { font-size: 24px; font-weight: 300; letter-spacing: -0.3px; }
.section-sub { font-size: 13px; color: var(--text-muted); margin-top: 6px; max-width: 820px; }

.month-selector {
  display: inline-block; background: rgba(49,93,245,0.08); border: 1px solid rgba(49,93,245,0.25);
  border-radius: 8px; padding: 4px 30px 4px 10px; font-family: 'Inter', sans-serif; font-size: 18px; font-weight: 300;
  color: var(--menta-black); letter-spacing: -0.3px; cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='none' stroke='%23315DF5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3 4.5l3 3 3-3'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; transition: background-color 0.15s, border-color 0.15s;
}
.month-selector:hover { background-color: rgba(49,93,245,0.14); border-color: rgba(49,93,245,0.4); }
.month-selector:focus { outline: none; border-color: var(--menta-blue); box-shadow: 0 0 0 3px rgba(49,93,245,0.15); }
.section-title-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.hero-card { background: linear-gradient(135deg, #315DF5 0%, #232533 100%); border-radius: var(--radius-lg); padding: 32px; color: var(--white); margin-bottom: 28px; }
.hero-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.hero-metric .label { font-size: 11px; opacity: 0.7; text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 8px; }
.hero-metric .value { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.hero-metric .sub { font-size: 11px; opacity: 0.65; margin-top: 4px; }

.rsa-table-wrap { overflow: hidden; border-radius: var(--radius-md); background: #F5EFE5; }
.rsa-head, .rsa-row { display: grid; grid-template-columns: 1fr 210px 70px 200px; align-items: center; padding: 12px 32px; }
.rsa-head { background: transparent; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-muted); }
.rsa-row { font-size: 13px; border-top: 1px solid rgba(0,0,0,0.06); }
.rsa-row .num, .rsa-head .num { text-align: right; font-variant-numeric: tabular-nums; }
.rsa-row .pct, .rsa-head .pct { text-align: center; font-weight: 700; }
.rsa-row.total { background: var(--menta-blue); color: var(--white); font-weight: 700; border-top: none; }
