/* ==========================================================================
   Clearspace Internal Tool — Design System
   Brand: DM Sans, #3BABFF (blue), #323D4C (dark), #16191A (charcoal)
   ========================================================================== */

/* -- Base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #16191A;
  background: #f9fafb;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }

/* -- Layout -- */
.layout { display: flex; height: 100vh; }
.main-content { flex: 1; overflow: auto; }

/* -- Navigation -- */
.nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  font-size: 1.0625rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  transition: all 0.15s ease;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-link:hover {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}
.nav-link.active {
  color: #fff;
  background: #3BABFF;
  font-weight: 500;
}
.nav-link.active svg { color: #fff; }
.nav-icon { flex-shrink: 0; }
.nav-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* -- Cards -- */
.card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  padding: 1.75rem;
}
.card-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

/* -- Stat cards -- */
.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  padding: 1.5rem 1.75rem;
}
.stat-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.stat-value {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.15;
  margin-top: 0.375rem;
  letter-spacing: -0.03em;
}
.stat-sub {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* -- Forms -- */
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.input-field {
  display: block;
  padding: 0.5625rem 0.875rem;
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  color: #16191A;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  font-family: inherit;
  box-sizing: border-box;
}
.input-field:focus {
  outline: none;
  border-color: #3BABFF;
  box-shadow: 0 0 0 3px rgba(59, 171, 255, 0.1);
}
.input-field::placeholder { color: #d1d5db; }
select.input-field {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.875rem center;
  padding-right: 2.25rem;
  box-sizing: border-box;
  cursor: pointer;
}

/* -- Buttons -- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  background: #3BABFF;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease;
  letter-spacing: -0.01em;
  font-family: inherit;
  text-decoration: none;
}
.btn-primary:hover { background: #2a9aee; text-decoration: none; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #323D4C;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease;
  letter-spacing: -0.01em;
  font-family: inherit;
  text-decoration: none;
}
.btn-secondary:hover { background: #e9eaec; text-decoration: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: #6b7280;
  background: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
  font-family: inherit;
  text-decoration: none;
}
.btn-ghost:hover { color: #16191A; background: #f3f4f6; text-decoration: none; }

.btn-danger {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #F05A5A;
  background: rgba(240, 90, 90, 0.08);
  border: 1px solid rgba(240, 90, 90, 0.2);
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
  text-decoration: none;
}
.btn-danger:hover { background: rgba(240, 90, 90, 0.15); text-decoration: none; }

/* Legacy .btn compat */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5625rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  background: none;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; }
.btn-outline { border-color: #e5e7eb; background: #fff; }
.btn-outline:hover { background: #f3f4f6; }
.btn-sm { padding: 4px 10px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* -- Tables -- */
.table-main { border-collapse: collapse; }
.table-main thead { background: #f9fafb; border-bottom: 1px solid #e5e7eb; }
.table-main th {
  padding: 0.875rem 1.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.table-main td {
  padding: 1rem 1.25rem;
  font-size: 0.9375rem;
  border-bottom: 1px solid #f3f4f6;
  color: #16191A;
}
.table-main tbody tr:last-child td { border-bottom: none; }
.table-main tbody tr:hover td { background: #fafafa; }
.table-main tbody tr.bg-brand-blue-dark:hover td { background: #323D4C; }

.table-compact th {
  padding: 0.375rem 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: left;
  border-bottom: 1px solid #f3f4f6;
}
.table-compact td {
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  border-bottom: 1px solid #f9fafb;
}

/* -- Status badges -- */
.stage-badge {
  display: inline-block;
  padding: 0.2rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  white-space: nowrap;
  letter-spacing: -0.005em;
}
.badge-blue-light  { background: rgba(59, 171, 255, 0.1);  color: #3BABFF; }
.badge-blue-medium { background: rgba(59, 171, 255, 0.2);  color: #2a7abf; }
.badge-green       { background: rgba(179, 193, 0, 0.15);  color: #4a5c1e; }
.badge-green-dark  { background: rgba(179, 193, 0, 0.15);  color: #3F4D32; }
.badge-gray        { background: #f3f4f6;                   color: #9ca3af; }
.badge-red         { background: rgba(240, 90, 90, 0.1);   color: #c0392b; }

/* Legacy badge compat */
.badge {
  display: inline-block;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 500;
  border-radius: 9999px;
  white-space: nowrap;
}
.badge-outline { border: 1px solid #e5e7eb; background: transparent; color: #6b7280; }

/* -- Detail fields -- */
.detail-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.3rem;
}
.detail-value {
  font-size: 0.9375rem;
  color: #16191A;
  line-height: 1.5;
}

/* -- Quick link buttons -- */
.quick-link-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.5rem;
  border-radius: 0.625rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  width: 100%;
}
.quick-link-btn:hover { border-color: #d1d5db; box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07); }
.quick-link-btn-empty { border-style: dashed; background: #fafafa; }
.quick-link-btn-empty:hover { border-color: #3BABFF; background: rgba(59, 171, 255, 0.03); box-shadow: none; }
.quick-link-icon { display: flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; border-radius: 0.5rem; flex-shrink: 0; }
.quick-link-label { font-size: 0.75rem; font-weight: 500; color: #374151; letter-spacing: -0.01em; }

/* -- Link buttons -- */
.link-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.625rem;
  border-radius: 0.5rem;
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}
.link-btn:hover { border-color: #d1d5db; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06); }
.link-btn-empty { border-style: dashed; border-color: #e5e7eb; background: #fafafa; }
.link-btn-empty:hover { border-color: #3BABFF; background: rgba(59, 171, 255, 0.03); box-shadow: none; }

/* -- Flash messages -- */
.flash-msg { animation: flashIn 0.3s ease; }
@keyframes flashIn {
  from { opacity: 0; transform: translateY(-0.5rem); }
  to   { opacity: 1; transform: translateY(0); }
}

/* -- Scrollbar -- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #9ca3af; }

/* -- Tom Select overrides -- */
.ts-wrapper { min-height: 0 !important; border: none !important; padding: 0 !important; }
.ts-wrapper.single .ts-control,
.ts-wrapper.multi .ts-control {
  padding: 0.5625rem 0.875rem !important;
  font-size: 0.9375rem !important;
  line-height: 1.5 !important;
  border: 1px solid #d1d5db !important;
  border-radius: 0.5rem !important;
  background-color: #fff !important;
  color: #16191A !important;
  font-family: inherit !important;
  box-shadow: none !important;
  min-height: 0 !important;
  cursor: pointer;
  height: auto !important;
}
.ts-wrapper.single .ts-control {
  padding-right: 2rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 0.75rem center !important;
}
.ts-wrapper.single.focus .ts-control,
.ts-wrapper.multi.focus .ts-control {
  border-color: #3BABFF !important;
  box-shadow: 0 0 0 3px rgba(59, 171, 255, 0.1) !important;
}
.ts-wrapper .ts-control > input {
  font-size: 0.9375rem !important;
  font-family: inherit !important;
  color: #16191A !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1.5 !important;
  height: auto !important;
}
.ts-wrapper .ts-control > input::placeholder { color: #9ca3af !important; }
.ts-wrapper .ts-control > .item { margin: 0 !important; line-height: 1.5 !important; }
.ts-dropdown {
  font-size: 0.9375rem !important;
  font-family: inherit !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
  margin-top: 4px !important;
  overflow: hidden;
}
.ts-dropdown .ts-dropdown-content { max-height: 280px; padding: 4px 0; }
.ts-dropdown .option { padding: 0.5rem 0.875rem !important; font-size: 0.9375rem !important; cursor: pointer; }
.ts-dropdown .option.active { background: rgba(59, 171, 255, 0.08) !important; color: #16191A !important; }
.ts-dropdown .option:hover { background: #f9fafb; }
.ts-wrapper.multi .ts-control > .item {
  background: rgba(59, 171, 255, 0.1) !important;
  color: #16191A !important;
  border: none !important;
  border-radius: 0.375rem !important;
  padding: 0.125rem 0.5rem !important;
  margin: 0.125rem 0.25rem 0.125rem 0 !important;
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
}
.ts-wrapper.multi .ts-control > .item .remove { border: none !important; font-size: 1rem; }

/* -- Auth Pages -- */
.alert {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}
.alert-warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}
.alert-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}
.login-body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #f8fafc;
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.login-container {
  width: 100%;
  max-width: 400px;
  padding: 24px;
}
.login-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 36px;
}
.login-brand {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.login-subtitle {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 28px;
}
.login-field { margin-bottom: 16px; }
.login-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 6px;
  color: #334155;
}
.login-field input {
  width: 100%;
  padding: 10px 14px;
  font-size: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  box-sizing: border-box;
}
.login-field input:focus {
  border-color: #3BABFF;
  box-shadow: 0 0 0 3px rgba(59, 171, 255, 0.1);
}
.login-field input::placeholder { color: #94a3b8; }
.login-btn {
  width: 100%;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  background: #323D4C;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 8px;
  font-family: inherit;
  transition: background 0.15s;
}
.login-btn:hover { background: #16191A; }
.login-btn-microsoft {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  font-size: 15px;
  font-weight: 500;
  background: #fff;
  color: #1e293b;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  box-sizing: border-box;
}
.login-btn-microsoft:hover { background: #f8fafc; border-color: #cbd5e1; }
.login-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  gap: 12px;
}
.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}
.login-divider span {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

/* ==========================================================================
   Project-Specific Styles
   ========================================================================== */

/* -- Page Content -- */
.page-content { padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; }
.page-header h2 { font-size: 18px; font-weight: 600; }
.subtitle { font-size: 13px; color: #6b7280; margin-top: 2px; }
.refresh-area { display: flex; align-items: center; gap: 8px; }

/* -- Typography helpers -- */
.text-muted { color: #6b7280; }
.text-xs { font-size: 11px; }
.text-sm { font-size: 13px; }
.mono { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; }
.bold { font-weight: 600; }
.num { text-align: right; }
.truncate { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.text-green { color: #16a34a; }
.text-red { color: #dc2626; }
.text-yellow { color: #ca8a04; }
.text-orange { color: #ea580c; }

/* -- External link badges [WR] [PC] [DC] -- */
.link-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 1px 5px;
  border-radius: 3px;
  text-decoration: none;
  line-height: 1.5;
  margin-right: 2px;
  transition: opacity 0.15s;
}
.link-badge:last-child { margin-right: 0; }
.link-badge:hover { opacity: 0.65; }
.link-badge-wr,
.link-badge-pc,
.link-badge-dc { background: #f3f4f6; color: #6b7280; }
.links-cell { white-space: nowrap; }

/* -- Status badge colors (Wrike D&B Projects workflow) -- */
.bg-dark { background: #334155; color: #f1f5f9; }
.bg-red { background: #fee2e2; color: #991b1b; }
.bg-purple { background: #ede9fe; color: #6b21a8; }
.bg-indigo { background: #e0e7ff; color: #3730a3; }
.bg-blue { background: #dbeafe; color: #1e40af; }
.bg-teal { background: #ccfbf1; color: #0f766e; }
.bg-orange { background: #ffedd5; color: #9a3412; }
.bg-amber { background: #fef3c7; color: #92400e; }
.bg-green { background: #dcfce7; color: #166534; }
.bg-purple-dark { background: #c4b5fd; color: #4c1d95; }
.bg-yellow { background: #fef9c3; color: #854d0e; }
.bg-emerald { background: #d1fae5; color: #065f46; }
.bg-gray { background: #f3f4f6; color: #6b7280; }

/* -- KPI Cards -- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .kpi-grid { grid-template-columns: 1fr; } }

.kpi-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  padding: 1.5rem 1.75rem;
  background: #fff;
}
.kpi-title {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.kpi-value {
  font-size: 2rem;
  font-weight: 600;
  margin-top: 0.375rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.kpi-subtitle {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 0.25rem;
}

/* -- Filter Bar -- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.filter-select {
  height: 36px;
  padding: 0 10px;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff;
  color: #16191A;
  cursor: pointer;
  min-width: 130px;
  font-family: inherit;
}
.filter-select:focus {
  outline: none;
  border-color: #3BABFF;
  box-shadow: 0 0 0 3px rgba(59, 171, 255, 0.1);
}
.filter-search {
  height: 36px;
  padding: 0 10px 0 32px;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") 10px center no-repeat;
  color: #16191A;
  min-width: 170px;
  font-family: inherit;
}
.filter-search::placeholder { color: #9ca3af; }
.filter-search:focus {
  outline: none;
  border-color: #3BABFF;
  box-shadow: 0 0 0 3px rgba(59, 171, 255, 0.1);
}

/* -- Data Table (legacy) -- */
.table-container {
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  overflow-x: auto;
  background: #fff;
}
.data-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.data-table thead tr { background: #f9fafb; }
.data-table th {
  padding: 0.875rem 1.25rem;
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  white-space: nowrap;
  user-select: none;
  border-bottom: 1px solid #e5e7eb;
}
.data-table th.num { text-align: right; }
.data-table th.sortable { cursor: pointer; }
.data-table th.sortable:hover { color: #16191A; }
.data-table th.sortable::after { content: ' \2195'; font-size: 10px; opacity: 0.4; }
.data-table th.sort-asc::after { content: ' \2191'; opacity: 1; }
.data-table th.sort-desc::after { content: ' \2193'; opacity: 1; }
.data-table td {
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid #f3f4f6;
  white-space: nowrap;
}
.data-table tbody tr:hover { background: #fafafa; }
.data-table .row-unmatched { opacity: 0.55; }
.data-table .totals-row { background: #f9fafb; border-top: 2px solid #e5e7eb; }
.data-table .totals-row td { padding: 0.875rem 1.25rem; font-weight: 600; }
.data-table .empty-state { text-align: center; padding: 32px; color: #9ca3af; }
.data-table .group-header-row { background: #323D4C; }
.data-table .group-header-row td { padding: 6px 12px; font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.data-table .subtotal-row { background: #f3f4f6; border-top: 1px solid #d1d5db; }
.data-table .subtotal-row td { padding: 6px 12px; font-weight: 600; font-size: 12px; color: #323D4C; }

/* -- Weighted Total Row (FPU) -- */
.data-table .weighted-total-row { background: #f9fafb; border-top: 2px solid #e5e7eb; }
.data-table .weighted-total-row td { padding: 0.875rem 1.25rem; font-weight: 600; }

/* -- Budget tabs -- */
.budget-tabs { display: flex; gap: 0; margin-bottom: 0; border-bottom: 2px solid #e5e7eb; }
.budget-tab {
  padding: 8px 20px; font-size: 13px; font-weight: 600; cursor: pointer;
  background: none; border: none; color: #6b7280;
  border-bottom: 2px solid transparent; margin-bottom: -2px; transition: all 0.15s;
}
.budget-tab:hover { color: #323D4C; }
.budget-tab.active { color: #16191A; border-bottom-color: #3BABFF; }
.budget-tab-panel { display: none; }
.budget-tab-panel.active { display: block; }

/* -- Budget table specifics -- */
.budget-table-wrap { overflow-x: auto; }
.budget-table { font-size: 12px; }
.budget-table th, .budget-table td { padding: 5px 10px; }
.budget-table .desc-cell { white-space: nowrap; min-width: 180px; }
.budget-table .col-sep { width: 8px; min-width: 8px; max-width: 8px; padding: 0; border-bottom-color: transparent; background: #fff; }
.budget-table .col-group-header th { border-bottom: none; padding-bottom: 0; }
.budget-table .col-group-label { text-align: center; font-size: 11px; font-weight: 600; color: #16191A; border-bottom: 2px solid #323D4C; padding-bottom: 4px; }
.budget-table .group-header-row td { border-bottom: none; }
.budget-table .subtotal-row .col-sep,
.budget-table .totals-row .col-sep,
.budget-table .group-header-row .col-sep { background: transparent; }

.project-link { font-size: 0.9375rem; }
.project-link:hover { text-decoration: underline; }
.icon-warning { color: #f59e0b; vertical-align: middle; margin-left: 4px; }

/* -- Metric Cards (detail page) -- */
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .metric-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .metric-grid { grid-template-columns: repeat(2, 1fr); } }

.metric-card {
  border: 1px solid #e5e7eb;
  border-radius: 0.875rem;
  padding: 1rem 1.25rem;
  background: #fff;
}
.metric-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.metric-value {
  font-size: 18px;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  margin-top: 2px;
}

/* -- Project Detail Header -- */
.pd-header { margin-bottom: 0; }
.pd-header-title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd-title { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: #16191A; }
.pd-header-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; flex-wrap: wrap; }
.pd-meta-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pd-meta-tag { font-size: 13px; color: #6b7280; font-weight: 500; }
.pd-meta-tag + .pd-meta-tag::before { content: '\00b7'; margin-right: 8px; color: #d1d5db; font-weight: 400; }
.pd-meta-links { display: flex; gap: 6px; }
.pd-ext-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: #6b7280;
  padding: 4px 10px; border: 1px solid #e5e7eb; border-radius: 0.5rem;
  transition: all 0.15s; text-decoration: none;
}
.pd-ext-link:hover { color: #16191A; border-color: #9ca3af; background: #f9fafb; text-decoration: none; }

/* -- Summary KPI Strip -- */
.pd-kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 16px; }
@media (max-width: 900px) { .pd-kpi-strip { grid-template-columns: repeat(2, 1fr); } }
.pd-kpi-card {
  background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 0.875rem;
  padding: 16px 20px; display: flex; flex-direction: column; gap: 6px;
}
.pd-kpi-label { font-size: 0.7rem; font-weight: 600; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.07em; }
.pd-kpi-val {
  font-family: 'JetBrains Mono', 'SF Mono', monospace;
  font-size: 22px; font-weight: 600; color: #16191A; letter-spacing: -0.02em; line-height: 1.1;
}
.pd-kpi-val.text-green { color: #16a34a; }
.pd-kpi-val.text-red { color: #dc2626; }

/* -- Summary Two-Column Cards -- */
.pd-summary-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: stretch; }
.pd-summary-cols > * { min-height: 0; }
@media (max-width: 900px) { .pd-summary-cols { grid-template-columns: 1fr; } }

.pd-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.875rem; overflow: hidden; display: flex; flex-direction: column; }
.pd-card-header {
  font-size: 14px; font-weight: 700; color: #16191A;
  padding: 16px 20px 12px; border-bottom: 1px solid #f3f4f6;
}

/* Project details key-value list */
.pd-detail-list { padding: 4px 0; flex: 1; }
.pd-detail-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 20px; }
.pd-detail-row + .pd-detail-row { border-top: 1px solid #f3f4f6; }
.pd-detail-key { font-size: 13px; color: #6b7280; font-weight: 500; }
.pd-detail-val { font-family: 'JetBrains Mono', 'SF Mono', monospace; font-size: 13px; font-weight: 400; color: #323D4C; }

/* Timeline table */
.pd-timeline-table { width: 100%; border-collapse: collapse; flex: 1; }
.pd-timeline-table thead th { font-size: 13px; font-weight: 500; color: #6b7280; padding: 10px 20px; text-align: left; border-bottom: 1px solid #f3f4f6; }
.pd-timeline-table tbody td { font-family: 'JetBrains Mono', 'SF Mono', monospace; font-size: 13px; font-weight: 400; padding: 10px 20px; color: #323D4C; }
.pd-timeline-table tbody tr + tr td { border-top: 1px solid #f3f4f6; }
.pd-ms-name { font-family: 'DM Sans', sans-serif !important; font-weight: 600; color: #16191A !important; }
.summary-dates-table tbody td { padding: 10px 12px; border-bottom: 1px solid #f3f4f6; }
.summary-dates-table tbody tr:last-child td { border-bottom: none; }
.summary-date-label { font-weight: 600; color: #323D4C; font-size: 12px; }

/* -- Separator -- */
.separator { border: none; border-top: 1px solid #e5e7eb; margin: 8px 0; }
.section-title { font-size: 13px; font-weight: 500; margin-bottom: 12px; }

/* -- Tabs (analytics) -- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid #e5e7eb; padding-bottom: 0; }
.tab {
  padding: 8px 16px; font-size: 13px; font-weight: 500; color: #6b7280;
  background: none; border: none; border-bottom: 2px solid transparent;
  cursor: pointer; transition: all 0.15s; margin-bottom: -1px;
}
.tab:hover { color: #16191A; }
.tab.active { color: #16191A; border-bottom-color: #3BABFF; }

.chart-area { height: 300px; margin-top: 16px; }

/* -- Pod Performance: Editable cards -- */
.editable-card { cursor: pointer; transition: border-color 0.15s, box-shadow 0.15s; }
.editable-card:hover { border-color: #3BABFF; box-shadow: 0 0 0 1px #3BABFF; }

/* -- Pod Performance: Editable table cells -- */
.editable-cell { cursor: pointer; position: relative; }
.editable-cell:hover { background: rgba(59, 171, 255, 0.06) !important; }

/* -- Pod Performance: Source selector -- */
.source-select {
  font-size: 0.75rem; padding: 2px 4px;
  border: 1px solid #d1d5db; border-radius: 4px;
  background: #f9fafb; color: #16191A; cursor: pointer; width: 90px;
}
.source-select:hover { border-color: #9ca3af; }
.source-select:focus { outline: none; border-color: #3BABFF; box-shadow: 0 0 0 2px rgba(59, 171, 255, 0.15); }

/* -- Pod Performance: Clickable cells -- */
.clickable-cell { cursor: pointer; transition: background 0.15s; }
.clickable-cell:hover { background: #f3f4f6 !important; }

/* -- Pod Performance: Column widths -- */
#pod-cost-summary-table,
#payroll-table { table-layout: fixed; }
#pod-cost-summary-table th,
#payroll-table th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
#pod-cost-summary-table td,
#payroll-table td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#payroll-table td:nth-child(1),
#payroll-table td:nth-child(2) { white-space: normal; word-break: break-word; }
#pod-cost-summary-table col.col-num { width: 20%; }
#payroll-table col.col-num { width: 15%; }
#payroll-table col.col-date { width: 10%; }

/* Comp tables */
#ytd-table,
#forecast-table { table-layout: auto; min-width: 1020px; }
#ytd-table th,
#forecast-table th { white-space: normal; vertical-align: top; line-height: 1.3; width: 1px; }

/* -- Scrollable table with sticky header -- */
.table-scrollable { max-height: 560px; overflow-y: auto; }
.table-scrollable thead th {
  position: sticky; top: 0; background: #f9fafb; z-index: 1;
  border-bottom: none; box-shadow: inset 0 -1px 0 #e5e7eb;
}
.table-scrollable tfoot tr { position: sticky; bottom: 0; background: #f9fafb; }

/* -- Clickable % Complete cell -- */
.pct-clickable { cursor: pointer; transition: background 0.15s; }
.pct-clickable:hover { background: rgba(59, 171, 255, 0.06) !important; color: #3BABFF; }

/* -- Modal -- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.5);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
}
.modal-content {
  background: #fff; border-radius: 0.875rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  width: 90%; max-width: 720px; max-height: 90vh;
  overflow: hidden; display: flex; flex-direction: column;
}
.modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid #e5e7eb;
}
.modal-header h3 { font-size: 1rem; font-weight: 600; color: #16191A; }
.modal-close { background: none; border: none; font-size: 1.5rem; color: #9ca3af; cursor: pointer; padding: 0 4px; line-height: 1; }
.modal-close:hover { color: #16191A; }
.modal-body { padding: 20px; height: 360px; position: relative; }
.modal-loading, .modal-empty { text-align: center; color: #6b7280; padding-top: 140px; font-size: 0.875rem; }
.modal-body .data-table { border: none; }
.modal-body .data-table td,
.modal-body .data-table th { padding: 6px 16px; }

/* -- Icon animation -- */
.icon { transition: transform 0.3s; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* -- Detail tabs (button-styled) -- */
.detail-tabs { display: flex; gap: 6px; margin-top: 16px; margin-bottom: 20px; }
.detail-tab {
  padding: 7px 18px; font-size: 13px; font-weight: 600; cursor: pointer;
  background: #f3f4f6; border: 1px solid #e5e7eb; border-radius: 0.5rem;
  color: #6b7280; transition: all 0.15s; white-space: nowrap;
}
.detail-tab:hover { background: #e9eaec; color: #323D4C; }
.detail-tab.active { background: #3BABFF; border-color: #3BABFF; color: #fff; }
.detail-tab-panel { display: none; }
.detail-tab-panel.active { display: block; }

/* -- Phases & Milestones flat table -- */
.ms-flat-table { font-size: 13px; }
.ms-flat-table th { padding: 8px 16px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em; color: #9ca3af; }
.ms-flat-table td { padding: 7px 16px; }
.ms-flat-table .ms-title-cell { padding-left: 32px; }
.ms-flat-table .ms-empty-row td { padding-left: 32px; font-size: 12px; font-style: italic; }
.ms-flat-table .group-header-row { background: #f3f4f6; cursor: pointer; user-select: none; }
.ms-flat-table .group-header-row:hover { background: #e9eaec; }
.ms-flat-table .group-header-row td { color: #16191A; font-size: 13px; font-weight: 600; padding: 8px 16px; }
.ms-chev { display: inline-block; margin-right: 8px; vertical-align: -1px; transition: transform 0.2s ease; transform: rotate(90deg); }
.ms-collapsed .ms-chev { transform: rotate(0deg); }
.ms-flat-table .ms-phase-done { background: #f9fafb; }
.ms-flat-table .ms-phase-done:hover { background: #f3f4f6; }
.ms-flat-table .ms-phase-done td { color: #9ca3af; }
.ms-flat-table .ms-phase-done .badge { opacity: 0.55; }
.ms-row-completed td { color: #9ca3af; }
.ms-row-completed .badge { opacity: 0.55; }

/* -- Sidebar Build Info -- */
.sidebar-build { padding: 8px 16px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-build-branch { font-size: 11px; color: rgba(255,255,255,0.5); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-build-commit { font-size: 11px; font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; color: rgba(255,255,255,0.5); }

/* -- Sidebar User -- */
.sidebar-user { padding: 8px; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; gap: 0; }
.sidebar-user .nav-link { color: rgba(255,255,255,0.6); font-size: 0.8125rem; padding: 0.5rem 1rem; }
.sidebar-user .nav-link:hover { color: rgba(255,255,255,0.9); }
.sidebar-user .nav-link.active { color: #fff; }
.sidebar-user-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-user-email-link { cursor: default; }
.sidebar-user-email-link:hover { background: transparent !important; }

/* -- Pod Performance: Two-Panel Bonus Summary -- */
.bonus-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 1rem; }
@media (max-width: 800px) { .bonus-summary-grid { grid-template-columns: 1fr; } }
.bonus-panel { border: 1px solid #e5e7eb; border-radius: 0.875rem; padding: 20px 24px; background: #fff; }
.bonus-panel.secondary { background: #f9fafb; }
.bonus-panel-title {
  font-size: 0.7rem; font-weight: 700; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 14px;
}
.bonus-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13px; gap: 12px; }
.bonus-row-label { color: #323D4C; display: flex; align-items: center; gap: 4px; flex-shrink: 0; }
.bonus-row-label.muted { color: #6b7280; font-size: 12px; }
.bonus-value {
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px; text-align: right; color: #16191A; white-space: nowrap;
}
.bonus-row.sub-row .bonus-row-label { padding-left: 12px; }
.bonus-row.bold-row .bonus-row-label { font-weight: 700; }
.bonus-row.bold-row .bonus-value { font-weight: 700; }
.bonus-row.total-row { margin-top: 8px; padding-top: 12px; border-top: 2px solid #323D4C; }
.bonus-row.total-row .bonus-row-label { font-weight: 700; font-size: 14px; color: #16191A; }
.bonus-row.total-row .bonus-value { font-size: 20px; font-weight: 700; }
.bonus-row.highlight-row { margin-top: 8px; padding: 10px 12px; border-radius: 0.5rem; background: #f3f4f6; }
.bonus-row.highlight-row .bonus-row-label { font-weight: 700; font-size: 14px; color: #16191A; }
.bonus-row.highlight-row .bonus-value { font-size: 20px; font-weight: 700; }
.bonus-row.pool-positive .bonus-value { color: #16a34a; }
.bonus-row.pool-negative .bonus-value { color: #9ca3af; }
.bonus-row.editable { cursor: pointer; border-radius: 4px; padding-left: 4px; padding-right: 4px; }
.bonus-row.editable:hover { background: #f3f4f6; }
.bonus-row.clickable-info { cursor: pointer; border-radius: 4px; padding-left: 4px; padding-right: 4px; }
.bonus-row.clickable-info:hover { background: #f3f4f6; }

/* Inline edit for Target Net Fees */
.bonus-value--editable { display: inline-flex; align-items: center; gap: 6px; }
.bonus-edit-value { cursor: pointer; }
.bonus-edit-value:hover { text-decoration: underline; text-decoration-style: dashed; text-underline-offset: 3px; }
.bonus-edit-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 1px solid #d1d5db; border-radius: 4px;
  background: #fff; color: #6b7280; cursor: pointer; padding: 0;
  opacity: 0.6; transition: opacity 0.15s, border-color 0.15s, color 0.15s;
}
.bonus-edit-btn:hover { opacity: 1; border-color: #9ca3af; color: #323D4C; }
.bonus-inline-edit { display: inline-flex; align-items: center; gap: 4px; }
.bonus-input-prefix { font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace; font-size: 13px; font-weight: 700; color: #6b7280; }
.bonus-inline-edit input[type="number"] {
  width: 130px; padding: 4px 8px; border: 1px solid #d1d5db; border-radius: 4px;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 13px; font-weight: 700; text-align: right; outline: none;
}
.bonus-inline-edit input[type="number"]:focus { border-color: #3BABFF; box-shadow: 0 0 0 2px rgba(59, 171, 255, 0.15); }
.bonus-inline-edit input[type="number"]::-webkit-inner-spin-button,
.bonus-inline-edit input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.bonus-inline-edit input[type="number"] { -moz-appearance: textfield; }
.bonus-save-btn, .bonus-cancel-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 1px solid #d1d5db; border-radius: 4px;
  background: #fff; cursor: pointer; padding: 0; font-size: 14px; line-height: 1;
  transition: background 0.15s, border-color 0.15s; flex-shrink: 0; position: relative; z-index: 1;
}
.bonus-save-btn { color: #16a34a; }
.bonus-save-btn:hover { background: #f0fdf4; border-color: #16a34a; }
.bonus-cancel-btn { color: #9ca3af; }
.bonus-cancel-btn:hover { background: #fef2f2; border-color: #dc2626; color: #dc2626; }
.bonus-divider { border: none; border-top: 1px solid #e5e7eb; margin: 4px 0; }
.bonus-divider.thick { border-top-width: 2px; border-top-color: #d1d5db; }
.bonus-info-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 14px; height: 14px; border-radius: 50%; border: 1px solid #9ca3af;
  color: #9ca3af; font-size: 9px; font-style: normal; font-weight: 700;
  cursor: help; flex-shrink: 0; line-height: 1; text-decoration: none;
}
.bonus-below-hurdle { text-align: right; font-size: 11px; color: #9ca3af; margin-top: 2px; font-style: italic; }
.bonus-row.result-row .bonus-row-label { font-weight: 700; }
.bonus-row.result-row .bonus-value { font-weight: 700; }

/* -- Settings Page -- */
.settings-section { margin-bottom: 32px; }
.settings-section-title {
  font-size: 0.7rem; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 6px;
}
.settings-section-divider { height: 1px; background: #e5e7eb; margin-bottom: 12px; }
.settings-section-desc { font-size: 13px; color: #6b7280; margin-bottom: 16px; }
.settings-pod-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .settings-pod-grid { grid-template-columns: 1fr; } }
.settings-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 0.875rem; padding: 20px 24px; }
.settings-card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.settings-card-title { font-size: 14px; font-weight: 600; color: #16191A; }
.settings-save-status { font-size: 11px; transition: color 0.15s; }
.settings-field { margin-bottom: 14px; }
.settings-field label { display: block; font-size: 12px; font-weight: 500; color: #6b7280; margin-bottom: 4px; }
.settings-input-wrap {
  display: flex; align-items: center; border: 1px solid #d1d5db;
  border-radius: 0.5rem; overflow: hidden; background: #fff; transition: border-color 0.15s;
}
.settings-input-wrap:focus-within { border-color: #3BABFF; box-shadow: 0 0 0 3px rgba(59, 171, 255, 0.1); }
.settings-input-prefix {
  padding: 0 8px; font-size: 12px; color: #9ca3af; background: #f9fafb;
  border-right: 1px solid #e5e7eb; height: 32px; display: flex; align-items: center;
  flex-shrink: 0; user-select: none;
}
.settings-input-wrap input {
  border: none; outline: none; padding: 0 8px; font-size: 13px;
  color: #16191A; height: 32px; flex: 1; min-width: 0; background: transparent;
}
.settings-card-footer {
  margin-top: 20px; display: flex; align-items: center; gap: 10px;
  padding-top: 16px; border-top: 1px solid #f3f4f6;
}

/* -- Inline Override Inputs -- */
.override-input {
  width: 100%; max-width: 130px; border: 1px solid transparent;
  border-radius: 4px; padding: 4px 6px; font-family: inherit;
  font-size: 13px; text-align: right; color: #16191A;
  background: transparent; transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.override-input:hover { border-color: #e5e7eb; background: #f9fafb; }
.override-input:focus { outline: none; border-color: #3BABFF; background: #fff; box-shadow: 0 0 0 3px rgba(59, 171, 255, 0.1); }
.override-input--red { color: #dc2626; }
.override-computed { color: #6b7280; font-size: 13px; }

/* -- Skeleton / Shimmer Loading -- */
.loading-shimmer {
  display: inline-block;
  background: linear-gradient(90deg, #e5e7eb 25%, #f3f4f6 50%, #e5e7eb 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: 4px;
  vertical-align: middle;
}
.loading-shimmer--text { width: 72px; height: 13px; }
.loading-shimmer--card { width: 100%; height: 18px; margin: 4px 0; }
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}

.skeleton-card {
  background: #fff; border: 1px solid #e5e7eb;
  border-radius: 0.875rem; padding: 16px 20px; min-height: 80px;
}
.skeleton-card .shimmer-label { width: 90px; height: 11px; margin-bottom: 12px; }
.skeleton-card .shimmer-value { width: 110px; height: 22px; }

.pod-loading-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: #6b7280; margin-left: 12px; transition: opacity 0.2s;
}
.pod-loading-status .spinner-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #3BABFF; animation: pulse-dot 1s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.2); }
}

/* -- Progress Bar -- */
.pod-progress-bar {
  position: relative; width: 100%; height: 3px;
  background: #e5e7eb; border-radius: 3px; overflow: hidden;
  opacity: 0; transition: opacity 0.2s ease;
}
.pod-progress-bar.active { opacity: 1; }
.pod-progress-bar__fill {
  position: absolute; top: 0; left: 0; height: 100%; width: 0%;
  background: #3BABFF; border-radius: 3px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.pod-progress-bar__fill.indeterminate {
  width: 30% !important;
  animation: progress-slide 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes progress-slide {
  0%   { left: -30%; }
  100% { left: 100%; }
}

/* -- Sidebar collapse support -- */
.sidebar.collapsed { width: 56px; }
.sidebar.collapsed .nav-label { display: none; }
.sidebar.collapsed .sidebar-build { display: none; }
.sidebar.collapsed .sidebar-brand-text { display: none; }
.sidebar-toggle {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.5); padding: 4px; border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: color 0.15s, background 0.15s, transform 0.2s;
}
.sidebar-toggle:hover { color: #fff; background: rgba(255,255,255,0.1); }
.sidebar.collapsed .sidebar-toggle { transform: rotate(180deg); }
