/* ============================================================
   AMS CLIENT PORTAL — GLOBAL STYLES
   Fonts loaded via HTML <link>: Bebas Neue, DM Mono, DM Sans,
   Barlow Condensed, IBM Plex Mono, Inter
   ============================================================ */

:root {
  --bg-dark:        #0f0d0b;
  --bg-panel:       #1a1714;
  --bg-card:        #f5f0ea;
  --bg-dashboard:   #f0ebe3;
  --red-primary:    #c0392b;
  --red-light:      #e74c3c;
  --text-white:     #ffffff;
  --text-light:     #d4cfc8;
  --text-muted:     #8a8078;
  --text-dark:      #1a1714;
  --green:          #27ae60;
  --yellow:         #f39c12;
  --border-light:   #e0d9d0;
  --gold:           #d4a44c;
  --navy:           #2c3e6b;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
  font-family: 'Inter', sans-serif;
  background: var(--bg-dark);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   SCREEN 1 — LOGIN
   ============================================================ */

#screen-login {
  display: flex;
  width: 100%;
  height: 100%;
  min-height: 100vh;
}

/* Left column */
.login-left {
  flex: 1;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  padding: 36px 48px 48px;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow top-left matching reference */
.login-left::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(160,40,20,0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- SHARED LOGO LOCKUP ---- */
.ams-logo-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  outline: none;
}

.ams-logo-lockup:focus-visible {
  outline: 2px solid #c0392b;
  outline-offset: 2px;
  border-radius: 2px;
}

.ams-logo-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.025em;
  color: #f4f0e6;
}

.ams-logo-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(244, 240, 230, 0.55);
  transition: color 0.2s ease;
  white-space: nowrap;
}

.ams-logo-lockup:hover .ams-logo-sub {
  color: rgba(244, 240, 230, 0.75);
}

/* Stacked variant — used in sidebar */
.ams-logo-lockup.stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
}

/* Legacy login-logo kept for safety — replaced by lockup above */
.login-logo {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

.login-hero {
  position: relative;
  z-index: 1;
  margin-top: 120px;
}

.login-hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 80px;
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--text-white);
}

.login-hero h1 .red {
  color: var(--red-primary);
}

.login-hero p {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-light);
  max-width: 320px;
  line-height: 1.65;
  margin-top: 22px;
  opacity: 0.85;
}

.login-watermark {
  position: absolute;
  bottom: -60px;
  left: 20px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 320px;
  color: var(--text-muted);
  opacity: 0.07;
  letter-spacing: -0.02em;
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  line-height: 1;
}

/* Right column */
.login-right {
  width: 380px;
  min-width: 340px;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 44px;
}

.login-panel-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 26px;
  color: var(--text-white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-panel-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 7px;
}

.login-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 22px 0;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  background: #1e1b17;
  border: 1px solid #2e2a25;
  color: var(--text-white);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 13px 14px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  border-color: var(--red-primary);
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.form-checkbox-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-light);
  cursor: pointer;
}

.form-checkbox-row input[type="checkbox"] {
  accent-color: var(--red-primary);
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.form-forgot {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--red-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.form-forgot:hover {
  color: var(--red-light);
}

.btn-signin {
  width: 100%;
  background: var(--red-primary);
  color: var(--text-white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-signin:hover {
  background: var(--red-light);
}

.login-security {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}

.login-demo-note {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 4px;
  padding: 13px 14px;
  margin-top: 18px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
}

#login-error {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--red-light);
  margin-top: 8px;
  min-height: 16px;
}

/* ============================================================
   SCREEN 2 — DASHBOARD
   ============================================================ */

#screen-dashboard {
  display: flex;
  width: 100%;
  height: 100vh;
  background: var(--bg-dashboard);
  overflow: hidden;
}

/* ---- SIDEBAR ---- */
.sidebar {
  width: 190px;
  min-width: 190px;
  background: var(--bg-panel);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  flex-shrink: 0;
}

.sidebar-logo-wrap {
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Sidebar logo uses the shared lockup; no extra rules needed here */

.sidebar-badge {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  color: var(--text-muted);
  border: 1px solid rgba(138,128,120,0.5);
  border-radius: 3px;
  padding: 2px 5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar-nav {
  flex: 1;
  padding: 10px 0;
  overflow-y: auto;
}

.nav-section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 12px 16px 4px;
  opacity: 0.7;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 16px;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 5px;
  margin: 1px 6px;
  transition: background 0.15s ease, color 0.15s ease;
  position: relative;
  text-decoration: none;
}

.nav-item:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-light);
}

/* Active nav: full red background row, matching reference */
.nav-item.active {
  background: var(--red-primary);
  color: var(--text-white);
  border-radius: 5px;
}

.nav-item .nav-icon {
  font-size: 13px;
  width: 15px;
  text-align: center;
  flex-shrink: 0;
}

.nav-item .nav-chevron {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-muted);
}

.nav-item.active .nav-chevron {
  color: rgba(255,255,255,0.6);
}

.nav-badge {
  margin-left: auto;
  background: var(--red-primary);
  color: var(--text-white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 400;
}

.nav-item.active .nav-badge {
  background: rgba(255,255,255,0.25);
}

.sidebar-user {
  padding: 12px 14px;
  border-top: 1px solid rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  gap: 9px;
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--red-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: var(--text-white);
  flex-shrink: 0;
}

.user-info {
  flex: 1;
  min-width: 0;
}

.user-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.user-logout {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 13px;
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.user-logout:hover {
  color: var(--text-light);
}

/* ---- MAIN AREA ---- */
.main-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ---- HEADER BAR — dark, matching reference ---- */
.header-bar {
  background: var(--bg-panel);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.header-breadcrumb {}

.header-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1;
}

.header-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-date-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px;
  border-radius: 20px;
  background: transparent;
}

.header-icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  color: var(--text-muted);
  padding: 4px 6px;
  border-radius: 4px;
  transition: color 0.15s ease;
  position: relative;
}

.header-icon-btn:hover {
  color: var(--text-light);
}

.notif-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 7px;
  height: 7px;
  background: var(--red-primary);
  border-radius: 50%;
}

/* ---- MAIN CONTENT SCROLL ---- */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 32px;
  background: var(--bg-dashboard);
}

/* ---- SAVINGS BANNER ---- */
.savings-banner {
  background: var(--bg-dark);
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  margin: 0 -20px;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.banner-icon {
  font-size: 18px;
  opacity: 0.9;
}

.banner-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-white);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.banner-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.banner-right {
  text-align: right;
}

.banner-amount {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 30px;
  color: var(--red-primary);
  line-height: 1;
  letter-spacing: 0.02em;
}

.banner-annualized {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 3px;
}

/* ---- KPI CARDS ---- */
.kpi-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.kpi-card {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 18px 20px;
  border-top-width: 3px;
}

.kpi-card.red   { border-top-color: var(--red-primary); }
.kpi-card.navy  { border-top-color: var(--navy); }
.kpi-card.green { border-top-color: var(--green); }
.kpi-card.gold  { border-top-color: var(--gold); }

.kpi-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kpi-value {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: 34px;
  color: var(--text-dark);
  line-height: 1.1;
  margin-top: 6px;
}

.kpi-change {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  margin-top: 4px;
}

.kpi-change.up        { color: var(--green); }
.kpi-change.rate-down { color: var(--red-primary); }

/* ---- CHARTS ROW ---- */
.charts-row {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  align-items: stretch;
}

.chart-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 18px 20px;
}

.chart-card.chart-main {
  flex: 1;
  min-width: 0;
}

.chart-card.chart-donut {
  width: 280px;
  min-width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.chart-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chart-toggle-group {
  display: flex;
  gap: 3px;
}

.chart-toggle {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border-light);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chart-toggle.active {
  background: var(--text-dark);
  color: var(--text-white);
  border-color: var(--text-dark);
}

.chart-toggle:hover:not(.active) {
  background: rgba(0,0,0,0.05);
}

.chart-canvas-wrap {
  position: relative;
  height: 220px;
  flex: 1;
}

.chart-donut .chart-canvas-wrap {
  height: 210px;
  flex: 0 0 210px;
}

/* Donut legend — horizontal row matching reference */
.donut-legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 12px;
  justify-content: center;
}

.donut-legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  color: var(--text-dark);
}

.donut-legend-swatch {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* ---- TRANSACTIONS TABLE ---- */
.table-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 18px 20px;
  margin-top: 18px;
}

.table-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.table-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.table-view-all {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--red-primary);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.table-view-all:hover {
  color: var(--red-light);
}

.txn-table {
  width: 100%;
  border-collapse: collapse;
}

.txn-table th {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: left;
  padding: 0 10px 10px;
  border-bottom: 1px solid var(--border-light);
}

.txn-table td {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-dark);
  padding: 11px 10px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s ease;
}

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

.txn-table tbody tr:hover td {
  background: rgba(0,0,0,0.025);
}

.txn-id {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
}

.status-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.status-pill::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-pill.approved {
  background: rgba(39,174,96,0.1);
  color: var(--green);
  border: 1px solid rgba(39,174,96,0.25);
}

.status-pill.approved::before {
  background: var(--green);
}

.status-pill.pending {
  background: rgba(243,156,18,0.1);
  color: var(--yellow);
  border: 1px solid rgba(243,156,18,0.25);
}

.status-pill.pending::before {
  background: var(--yellow);
}

/* ---- UPLOAD CARD ---- */
.upload-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 18px 20px;
  margin-top: 18px;
}

.upload-card-header {
  margin-bottom: 14px;
}

.upload-card-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--text-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-card-sub {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}

.upload-zone {
  border: 2px dashed var(--border-light);
  border-radius: 5px;
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--red-primary);
  background: rgba(192,57,43,0.03);
}

.upload-zone p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.btn-choose-file {
  display: inline-block;
  background: var(--red-primary);
  color: var(--text-white);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  transition: background 0.15s ease;
  border: none;
}

.btn-choose-file:hover {
  background: var(--red-light);
}

#uploadStatus {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 10px;
  min-height: 18px;
}

#uploadStatus.success { color: var(--green); }
#uploadStatus.error   { color: var(--red-light); }

/* ---- RIGHT PANEL ---- */
.right-panel {
  width: 260px;
  min-width: 240px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-light);
  padding: 18px 16px;
  overflow-y: auto;
  flex-shrink: 0;
}

.panel-section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pci-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.pci-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: var(--green);
}

.pci-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
}

.pci-bar-wrap {
  width: 100%;
  height: 5px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}

.pci-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  width: 87%;
}

.pci-bar-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 6px;
}

.panel-divider {
  height: 1px;
  background: var(--border-light);
  margin: 16px 0;
}

.team-section-header {
  margin-bottom: 10px;
}

.team-card {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-light);
}

.team-card:last-child {
  border-bottom: none;
}

.team-card-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.team-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  color: var(--text-white);
  flex-shrink: 0;
}

.team-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-dark);
  line-height: 1.2;
}

.team-role {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.team-actions {
  display: flex;
  gap: 6px;
}

.btn-team {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  transition: background 0.15s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.btn-team.call {
  background: var(--red-primary);
  color: var(--text-white);
}

.btn-team.call:hover {
  background: var(--red-light);
}

.btn-team.email,
.btn-team.ticket {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
}

.btn-team.email:hover,
.btn-team.ticket:hover {
  background: rgba(0,0,0,0.05);
  color: var(--text-dark);
}

/* ============================================================
   STATEMENT HISTORY (client dashboard)
   ============================================================ */

.stmt-history-list {
  padding: 0 4px;
}

.stmt-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.stmt-row:last-child {
  border-bottom: none;
}

.stmt-info {
  flex: 1;
  min-width: 0;
}

.stmt-name {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stmt-meta {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.stmt-notes {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--text-dark);
  background: #faf8f5;
  border-left: 2px solid var(--red-primary);
  padding: 6px 10px;
  margin-top: 6px;
}

.stmt-status {
  display: inline-block;
  font-family: 'DM Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.stmt-status-pending   { background: #fff3cd; color: #856404; }
.stmt-status-review    { background: #cce5ff; color: #004085; }
.stmt-status-approved  { background: #d4edda; color: #155724; }
.stmt-status-needs-info{ background: #f8d7da; color: #721c24; }

.stmt-empty {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 20px 0;
  text-align: center;
}

/* ============================================================
   AMS LOGO LOCKUP — stacked variant (sidebar)
   ============================================================ */

.ams-logo-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  text-decoration: none;
  outline: none;
}

.ams-logo-lockup:focus-visible {
  outline: 2px solid #c0392b;
  outline-offset: 2px;
}

.ams-logo-lockup.stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.ams-logo-wordmark {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.025em;
  color: #f4f0e6;
}

.ams-logo-sub {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(244, 240, 230, 0.55);
  transition: color 0.2s;
}

.ams-logo-lockup:hover .ams-logo-sub {
  color: rgba(244, 240, 230, 0.75);
}
